query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
TODO Autogenerated method stub | @Override
public void check() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void idleCheck() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void waitCheck(double hours) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void orgasm() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String getDescription() {
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 |
if naanu.txt is not found, this constructor creates the file and appends data into the file. | public static void main(String[] args) throws Throwable {
FileWriter fw = new FileWriter("naanu.txt", false); //the constructor uses boolean append as the second argument which says whether or not the data written should be appended
fw.write("Govinda");
fw.write("\n"); //this statement acts as the print statement that moves the cursor to the next line
fw.write("Krishna");
fw.write("\n");
fw.write("SriHari");
//fw.flush(); //to give guarantee that the last character of data is returned to the file.
fw.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void createFileUmidade() throws IOException {\r\n\t\tInteger defaultUmidade = 30;\r\n\t\tarqUmidade = new File(pathUmidade);\r\n\t\tif(!arqUmidade.exists()) {\r\n\t\t\tarqUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {\r\n\t\t\tFileReader fr = new FileReader(getArqUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}",
"private static void createFileContribuicaoUmidade() throws IOException{\r\n\t\tInteger contribuicaoDefault = 0;\r\n\t\tarqContribuicaoUmidade = new File(pathContribuicaoUmidade);\r\n\t\tif(!arqContribuicaoUmidade.exists()) {\r\n\t\t\tarqContribuicaoUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqContribuicaoUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(contribuicaoDefault.toString() + String.valueOf('\\n'));\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {//Se arquivo existir\r\n\t\t\tFileReader fr = new FileReader(getArqContribuicaoUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio(modificado)*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqContribuicaoUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(contribuicaoDefault.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma contribuicao Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}",
"Data() throws IOException {\n // Initialise new default path from scratch\n path = Path.of(\"src/main/data/duke.txt\");\n new File(\"src/main/data\").mkdirs();\n new File(path.toString()).createNewFile();\n }",
"public EnigmaFile() throws Exception\n {\n\n String path = Main.class.getClassLoader().getResource(\"filein.txt\").getPath();\n File currentDirectory=new File(path);\n finstream = new FileInputStream(currentDirectory);\n\n\n String pathToWrite = path.replaceFirst(\"filein.txt\",\"fileout.txt\");\n File outputFile = new File(pathToWrite);\n br = new BufferedReader(new InputStreamReader(finstream));\n outputFile.createNewFile();\n FileWriter fileWrite = new FileWriter(outputFile.getAbsoluteFile());\n writer = new BufferedWriter(fileWrite);\n\n\n }",
"public AncFile() {\n }",
"public Data(String path) throws IOException {\n this.path = Paths.get(\"src/main/data/duke.txt\").toAbsolutePath();\n if (Files.notExists(this.path)) {\n new File(String.valueOf(path)).createNewFile();\n }\n }",
"public DataIO() throws IOException {\n if (!QuizFile.isFile())\n QuizFile.createNewFile();\n }",
"public void openFile() throws IOException {\n\t\tclientOutput.println(\">>> Unesite putanju do fajla fajla koji zelite da otvorite: \");\n\t\tuserInput = clientInput.readLine();\n\n\t\tizabraniF = new File(userInput);\n\n\t\t// Provera tipa fajla (.txt ili binarni)\n\t\tif (izabraniF.getName().endsWith(\".txt\")) {\n\t\t\tBufferedReader br = null;\n\t\t\ttry {\n\t\t\t\tbr = new BufferedReader(new FileReader(userInput));\n\n\t\t\t\tboolean kraj = false;\n\n\t\t\t\twhile (!kraj) {\n\t\t\t\t\tpom = br.readLine();\n\t\t\t\t\tif (pom == null)\n\t\t\t\t\t\tkraj = true;\n\t\t\t\t\telse\n\t\t\t\t\t\tclientOutput.println(pom);\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tpom = null;\n\t\t\ttry {\n\t\t\t\tFileInputStream fIs = new FileInputStream(izabraniF);\n\t\t\t\tbyte[] b = new byte[(int) izabraniF.length()];\n\t\t\t\tfIs.read(b);\n\t\t\t\tpom = new String(Base64.getEncoder().encode(b), \"UTF-8\");\n\t\t\t\tclientOutput.println(pom);\n\t\t\t\tfIs.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tclientOutput.println(\">>> Fajl nije pronadjen!\");\n\t\t\t}\n\t\t}\n\t}",
"public void createFile() throws IOException {\n String newName = input.getText();\n File user = new File(\"SaveData\\\\UserData\\\\\" + newName + \".txt\");\n\n if (user.exists() && !user.isDirectory()) {\n input.setStyle(\"-fx-border-color: red\");\n }\n if (user.exists() && !user.isDirectory() || newName.isEmpty()) {\n input.setStyle(\"-fx-border-color: red\");\n ERROR_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n\n }\n else {\n input.setStyle(\"-fx-border-color: default\");\n playerList.getItems().addAll(newName);\n PrintWriter newUser = new PrintWriter(new FileWriter(\"SaveData\\\\UserData\\\\\" + newName + \".txt\"));\n newUser.write(\"0 0 0 0 icon0 car\");\n newUser.close();\n MAIN_MENU_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }\n }",
"protected void initDataFile(File outFile) throws IOException,\n FileNotFoundException {\n String directory = PropiedadesAplicacion.getProperty(\"DataFile.dir\",\n System.getProperty(\"user.dir\"));\n this.outputFile = new File(directory, outFile.getName());\n if (this.outputFile.exists()) {\n if (!this.outputFile.delete()) {\n throw new IOException(\"NO SE PUDO BORRAR ARCHIVO: \"\n + outFile.getAbsolutePath());\n }\n if (!this.outputFile.createNewFile()) {\n throw new IOException(\"NO SE PUDO CREAR ARCHIVO: \"\n + outFile.getAbsolutePath());\n }\n }\n this.foStream = new FileOutputStream(this.outputFile);\n this.dataSize = 1;\n this.item = 0;\n if (logger.isInfoEnabled()) {\n logger.info(\"ASIGNADO WRITER A: \"\n + this.outputFile.getAbsolutePath());\n }\n }",
"private void createStudentNotaFile(Nota n, String feedback) throws IOException {\n String numeStud = \"src/main/java/DataAll/DateStudenti/\"+ n.getStudent().getNumele()+\".txt\";\n File file = new File(numeStud);\n if(!file.exists()) {\n file.createNewFile();\n }\n BufferedWriter br = new BufferedWriter(new FileWriter(file,true));\n br.write(\"Tema: \" + n.getTema().getID().toString());\n br.newLine();\n br.write(\"Nota: \"+ n.getNota().toString());\n br.newLine();\n br.write(\"Predata_in_saptamana: \"+ n.getDataPredareTema().toString());\n br.newLine();\n br.write(\"Deadline: \" + n.getTema().getDeadline().toString());\n br.newLine();\n br.write(\"Feedback: \"+ feedback);\n br.newLine();\n br.newLine();\n try{\n br.close();\n }catch(Exception ex){\n throw new ValidationException(\"Error in closing the BufferedWriter\"+ex);\n }\n\n }",
"public n501070324_PedidosAssistencia() {\n super(\"Pedidos.txt\");\n }",
"public static void main(String[] args) throws IOException {\n File ruta = new File(\"C:\\\\Users\\\\usuario\\\\Documents\\\\curso de java online sepe\\\\unidad 1 clase file\\\\ejercicios\");\n // establecer el nombre del fichero a crear\n File f = new File(ruta, \"datos.txt\");\n File f1 = new File(ruta, \"datosNuevos.txt\");\n // imprimir la ruta absoluta del archivo\n System.out.println(f.getAbsolutePath());\n // Devuelve un String conteniendo el directorio padre del File. Devuelve null si no tiene directorio padre. del archivo\n System.out.println(f.getParent());\n // imprimir la ruta absoluta de la ruta del archivo\n System.out.println(ruta.getAbsolutePath());\n // Devuelve un String conteniendo el directorio padre del File. Devuelve null si no tiene directorio padre. de la ruta\n System.out.println(ruta.getParent());\n if (!f.exists()) { //se comprueba si el fichero existe o no\n System.out.println(\"Fichero \" + f.getName() + \" no existe\");\n if (!ruta.exists()) { //se comprueba si la ruta existe o no\n System.out.println(\"El directorio \" + ruta.getName() + \" no existe\");\n if (ruta.mkdir()) { //se crea la carpeta\n System.out.println(\"Directorio creado\");\n if (f.createNewFile()) { //se crea el fichero.\n System.out.println(\"Fichero \" + f.getName() + \" creado\");\n } else {\n System.out.println(\"No se ha podido crear \" + f.getName());\n }\n } else {\n System.out.println(\"No se ha podido crear \" + ruta.getName());\n }\n } else { //si la ruta existe creamos el fichero\n if (f.createNewFile()) {\n System.out.println(\"Fichero \" + f.getName() + \" creado\");\n } else {\n System.out.println(\"No se ha podido crear \" + f.getName());\n }\n }\n } else { //el fichero existe. Mostramos el tamaño\n System.out.println(\"Fichero \" + f.getName() + \" existe\");\n System.out.println(\"Tamaño \" + f.length() + \" bytes\");\n }\n\n // mostrar los archivos en esa carpeta\n File f2 = new File(ruta, \".\");\n // creamos un array para mostrar todos los archivos en esa ruta\n String[] listaArchivos = f2.list();\n if (!f1.exists()) { //se comprueba si el fichero existe o no\n System.out.println(\"Fichero \" + f1.getName() + \" no existe\");\n }\n if (f1.createNewFile()) { //se crea el fichero. Si se ha creado correctamente\n System.out.println(\"Fichero \" + f1.getName() + \" creado\");\n } else {\n System.out.println(\"No se ha podido crear \" + f1.getName());\n }\n for (int i = 0; i < listaArchivos.length; i++) {\n System.out.println(listaArchivos[i]);\n }\n // mostrar el numero de archivos en esa carpeta\n String[] elementos = ruta.list();\n System.out.println(\"La carpeta \" + ruta.getAbsolutePath() + \" tiene \" + elementos.length + \" subelementos\");\n }",
"public InventarioFile(){\r\n \r\n }",
"public static void main(String[] args) {\n\t\tFile file = new File(\"test/a.txt\");\r\n\t\tFileUtil.createFile(file);\r\n\t\t/*if(! file.exists()){\r\n\t\t\ttry {\r\n\t\t\t\tSystem.out.println(file.getAbsolutePath());\r\n\t\t\t\tfile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t*/\r\n\t}",
"public void Leer() throws FileNotFoundException\n {\n // se crea una nueva ruta en donde se va a ir a leer el archivo\n String ruta = new File(\"datos.txt\").getAbsolutePath(); \n archivo=new File(ruta); \n }",
"public BrihaspatiProFile() {\n }",
"public static void init(){\n Path path = FileDirectoryUtil.getPath(\"src\", \"fileIO\", \"test.txt\");\n FileDirectoryUtil.tryCreateDirectory(path);\n\n // Try to create the file\n path = Paths.get(path.toAbsolutePath().toString(), \"test.txt\");\n FileDirectoryUtil.tryCreateFile(path);\n\n // Print out the final location of the file\n System.out.println(path.toAbsolutePath());\n\n // Try to write to the file\n IOUtil.tryWriteToFile(getContent(), path);\n\n // Try to print the content of the file\n IOUtil.tryPrintContents(path);\n\n }",
"void createFile()\n {\n //Check if file already exists\n try {\n File myObj = new File(\"src/main/java/ex45/exercise45_output.txt\");\n if (myObj.createNewFile()) {\n System.out.println(\"File created: \" + myObj.getName());// created\n } else {\n System.out.println(\"File already exists.\"); //exists\n }\n //Error check\n } catch (IOException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n }",
"public void adduserFile(Usuari usuari) throws FileNotFoundException, IOException{\r\n FileWriter fw = new FileWriter(fitxerUsuaris, true);\r\n \r\n fw.write(usuari.getDni());\r\n fw.write(usuari.getNom());\r\n fw.write(usuari.getCognom1());\r\n fw.write(usuari.getCognom2());\r\n fw.write(usuari.getPassword());\r\n \r\n fw.close();\r\n }",
"static void createNewFile(String path) \n\t\t{\n\t\tLinkedList<String> defaultData = new LinkedList<String>();\n\t\tdefaultData.add(\"1,Frank,West,98,95,87,78,77,80\");\n\t\tdefaultData.add(\"2,Dianne,Greene,78,94,88,87,95,92\");\n\t\tdefaultData.add(\"3,Doug,Lei,78,94,88,87,95,92\");\n\t\tdefaultData.add(\"4,James,Hewlett,69,92,74,77,89,91\");\n\t\tdefaultData.add(\"5,Aroha,Wright,97,92,87,83,82,92\");\n\t\t\n\t\ttry \n\t\t{\n\t\t\tPrintWriter newFile = new PrintWriter(path, \"UTF-8\"); // Create .txt file in given path\n\t\t\t\n\t\t\tfor (String s : defaultData) \n\t\t\t{\n\t\t\t\tnewFile.println(s); // Write To file\n\t\t\t}\n\t\t\t\n\t\t\tnewFile.close(); // Close File\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"studentData.txt Created Successfully!\");\n\t\t\n\t}",
"public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }",
"public User(File file){\n\t try {\n\t Scanner line;\n\t \t BufferedReader in = new BufferedReader(new FileReader(file));\n\t \t line = new Scanner(in.readLine());\n\t \t line.next(); //username:\n\t \t username = line.next(); \n\t \t line.close();\n\t \t line = new Scanner(in.readLine());\n\t \t line.next(); //password:\n\t \t password = line.next();\n\t \t line.close();\n\t \t line = new Scanner(in.readLine());\n\t \t line.next(); //name:\n\t \t line.useDelimiter(\"\\\\n\");\n\t name = line.next().substring(1);\n\t \t line.close();\n\t \t line = new Scanner(in.readLine());\n\t \t line.next(); //image:\n\t \t imageLocation = line.next();\n\t \t line.close();\n\t \t line = new Scanner(in.readLine());\n\t \t line.next(); //friends:\n\t \t line.useDelimiter(\",| \");\n\t \t while(line.hasNext()){\n\t \t\t friends.add(line.next());\n\t \t }\n\t \t line.close();\n\t \t in.readLine(); //posts:\n\t \t while(in.ready()){\n\t \t\t posts.add(new Post(username,in.readLine()));\n\t \t }\n\t \t in.close();\n\t }catch(IOException e) {\n\t \t System.out.println(e.getMessage());\n\t }\n\t }",
"public static void createOrOpenUsersFile() {\n try {\r\n File usersFile = new File(\"users.txt\");\r\n if (usersFile.createNewFile()) {\r\n System.out.println(\"\\nFile \" + usersFile.getName() + \" has been created.\");\r\n } else {\r\n System.out.println(\"\\nFile \" + usersFile.getName() + \" is ready.\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"An error occurred.\");\r\n e.printStackTrace();\r\n }\r\n }",
"public static void main(String[] args) {\n File myFile = new File (\"d:/names.txt\");\r\n // para saber si el archivo no existe, devuelve true o false\r\n System.out.println(\"file.exists(): \" + myFile.exists());\r\n System.out.println(\"file.isDirectory(): \" + myFile.isDirectory());\r\n // para saber la fecha de modificación\r\n System.out.println(\"file.lastModified(): \" + myFile.lastModified());\r\n // para saber el nombre del archivo\r\n System.out.println(\"file.getName(): \" + myFile.getName());\r\n // para saber la ruta\r\n System.out.println(\"file.getPath(): \" + myFile.getPath());\r\n // para saber el tamaño en bytes que ocupa en disco\r\n System.out.println(\"file.length(): \" + myFile.length()+\" bytes\");\r\n // para saber si es de lectura, devuelve true o false\r\n System.out.println(\"file.canRead():\" + myFile.canRead());\r\n\r\n //File newfolder = new File(\"D:/carpeta con archivos año mío\");\r\n //System.out.println(newfolder.mkdir());\r\n\r\n // si fuera un directorio, para saber los archivos que contiene\r\n File carpeta = new File(\"D:/carpeta_con_archivos\");\r\n System.out.println(\"----listado archivos D:/carpeta_archivos------\");\r\n for (String archivo : carpeta.list()) {\r\n System.out.println(archivo);\r\n }\r\n\r\n //agregar una linea nueva a un archivo existente (METODO 1)\r\n /*try {\r\n //abra el archivo , TRUE en un forma append (agregar nuevos valores)\r\n FileWriter myFile2 = new FileWriter(\"d:/names.txt\", true);\r\n //cargar en memora ram del SO el contenido del archivo\r\n BufferedWriter dataFile = new BufferedWriter(myFile2);\r\n //agregar una nueva linea\r\n dataFile.write(\"\\nnueva linea tres\");\r\n dataFile.close();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }*/\r\n //agregar una linea nueva a un archivo existente (METODO 1 optimizado)\r\n /*try{\r\n BufferedWriter dataFile = new BufferedWriter(new FileWriter(\"d:/names.txt\",true));\r\n //agregamos la nueva linea\r\n dataFile.write(\"nueva linea sin borrar\");\r\n dataFile.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }*/\r\n // agregar nueva linea con metodo super optimizado en lineas (METODO FLAHS)\r\n try{\r\n PrintWriter myFile3 = new PrintWriter(new BufferedWriter(new FileWriter(\"d:/names.txt\", true)));\r\n myFile3.println(\"Otra nueva línea mezclando las dos librerías (PrintWriter + FileWriter) \");\r\n myFile3.close();\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n }",
"public void createFiles() {\r\n try {\r\n FileWriter file = new FileWriter(registerNumber + \".txt\");\r\n file.write(\"Name : \" + name + \"\\n\");\r\n file.write(\"Surname : \" + surname + \"\\n\");\r\n file.write(\"Registration Number : \" + registerNumber + \"\\n\");\r\n file.write(\"Position : \" + position + \"\\n\");\r\n file.write(\"Year of Start : \" + yearOfStart + \"\\n\");\r\n file.write(\"Total Salary : \" + Math.round(totalSalary) + \".00 TL\" +\"\\n\");\r\n file.close();\r\n }\r\n catch(IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\tFile f = new File(\"c:\\\\Ranjan\", \"ranjan1.txt\");\n\t\tf.createNewFile();\n\t\t\n\t\tSystem.out.println(f.getPath());\n\t\tSystem.out.println(f);\n\t}",
"myFile(String Name){\n\t this.FileName = Name + \".txt\"\t;\n\t System.out.println(FileName);\n\t try {\n\t\treadFile() ;\n\t} catch (IOException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t\tSystem.out.println(\"No,This File Please run again\"); \n\t}\n\t}",
"public final static void createNullFile(String nFile) {\r\n File file = new File(nFile);\r\n try {\r\n if (!file.exists())\r\n file.createNewFile();\r\n }\r\n catch (IOException ex) {\r\n }\r\n }",
"@Override\n\tpublic void init() throws RemoteException {\n\t\ttry {\n\t\t\tFile f5 = new File(\"TxtData/warein.txt\");\n\t\t\tFileWriter fw5 = new FileWriter(f5);\n\t\t\tBufferedWriter bw1 = new BufferedWriter(fw5);\n\t\t\tbw1.write(\"\");\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}",
"private void crearNave(String accion) {\n\t\tthis.naveCreada=true;\n\t\tpausa = false;\n\t\t\n\t\tString [] info = accion.split(\"#\");\n\t\tString [] xA = info[3].split(\"=\");\n\t\tString [] yA = info[4].split(\"=\");\n\t\tString [] vxA = info[5].split(\"=\");\n\t\tString [] vyA = info[6].split(\"=\");\n\t\tString [] anA = info[7].split(\"=\");\n\t\t\n\t\tdouble x = Double.valueOf(xA[1]);\n\t\tdouble y = Double.valueOf(yA[1]);\n\t\tdouble velocidadx = Double.valueOf(vxA[1]);\n\t\tdouble velocidady = Double.valueOf(vyA[1]);\n\t\tdouble an = Double.valueOf(anA[1]);\n\t\t\n\t\tthis.nave = new Nave (x, y, an, 0.2, 0.98, 0.05, 20, this);\n\t\tnave.setVelocidadX(velocidadx);\n\t\tnave.setVelocidadY(velocidady);\n\t}",
"public static void createFile(String file) throws FileNotFoundException {\n\t\tif(!file.contains(\".txt\")) {\n\t\t\tthrow new IllegalArgumentException(\"Wrong format\"); \n\t\t}\n\t\tPrintWriter pw = new PrintWriter(file);\n\t\tpw.close();\n\n\t}",
"public static void checkTextFile(String dir){\n java.nio.file.Path checkFilePath = java.nio.file.Paths.get(dir+\"/data/duke.txt\");\n boolean fileExists = java.nio.file.Files.exists(checkFilePath);\n //text file not exists, create one\n if(!fileExists) {\n try {\n File dukeFile = new File(dir+\"/data/duke.txt\");\n dukeFile.createNewFile();\n } catch (IOException e) {\n System.out.println(\"An error occurred while creating file.\");\n e.printStackTrace();\n }\n }\n }",
"public static void addArquivo(String texto, String nomeArquivo){\n\t\ttry {\n\t\t\tboolean logExiste = false;\n\t\t\tFile file = new File(nomeArquivo);\n\t\t\tlogExiste = file.exists();\n\t\t\t\n\t\t\tFileWriter fw = new FileWriter(nomeArquivo, true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\n\t\t\tif (logExiste)\n\t\t\t\tbw.append(\"\\n\" + texto);\n\t\t\telse\n\t\t\t\tbw.write(texto);\n\t\t\t\n\t\t\t\n\t\t\tbw.close();\n\t\t\t\n\t\t\t}\n\t\t\tcatch (IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"Impossivel gravar no arquivo\");\n\t\t\t}\n\t}",
"void initializeFile(MyCalendar cal, File file) {\n\n\t\tString path = System.getProperty(\"user.dir\");\n\t\tString fName = path+\"/events.txt\";\n\t\ttry {\n\t\t\tFile events = file;\n\t\t\tif(file.exists()) {\n\t\t\t\tFileReader fr = new FileReader(file);\n\t\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\t\tString line = br.readLine(); \n\n\t\t\t\tString name = null;\n\t\t\t\tString second = null;\n\t\t\t\tif(line != null) {\n\t\t\t\t\twhile(line!=null) {\n\t\t\t\t\t\tname = line;\n\t\t\t\t\t\tsecond = br.readLine();\n\t\t\t\t\t\tString[] arr = null;\n\t\t\t\t\t\tif(!br.equals(\"\")) {\n\t\t\t\t\t\t\tarr = second.split(\" \");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(arr.length == 5) {\n\t\t\t\t\t\t\tcal.createRecurringFromFile(name, arr);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(arr.length == 3) {\n\t\t\t\t\t\t\tcal.createEventFromFile(name, arr);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tline = br.readLine();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//initializeFile(file);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception x){\n\t\t\tx.printStackTrace();\n\t\t}\n\t}",
"void abreArquivo (String filetText, String fileData){\n //Abre e le o arquivo\n arquivo.abrirArquivo(filetText); //Le primeiro arquivo\n separaDados.salvaInstrucao (arquivo.arquivo, memoria); //Salva na memoria de texto\n\n arquivo.abrirArquivo(fileData); //Le arquivo de dados\n separaDados.salvaDados (arquivo.arquivo, memoria); //Armazena arquivo lido na memoria\n }",
"private void initializeFile()\n\t{\n\t\tHighScore[] h={new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \"),new HighScore(0,0,\" \"),new HighScore(0,0,\" \"),\n\t\t\t\tnew HighScore(0,0,\" \")};\n\t\ttry \n\t\t{\n\t\t\tSystem.out.println(\"Hi1\");\n\t\t\tObjectOutputStream o=new ObjectOutputStream(new FileOutputStream(\"HighScores.dat\"));\n\t\t\to.writeObject(h);\n\t\t\to.close();\n\t\t} catch (FileNotFoundException e) {e.printStackTrace();}\n\t\tcatch (IOException e) {e.printStackTrace();}\n\t}",
"RandomAccessData(File f,String mode) throws FileNotFoundException {\n super(f,mode);\n }",
"public AppGenALexicos(File f) {\n initComponents();\n String cadena = \"\";\n try {\n FileReader fr = new FileReader(f);\n try (BufferedReader br = new BufferedReader(fr)) {\n while ((cadena = br.readLine()) != null) {\n jTextArea1.append(cadena + \"\\n\");\n }\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(AppCompiladores.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(AppCompiladores.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public AddOOS() throws IOException {\n super();\n }",
"public static void main(String[] args) {\n\n\t\tFile fi = new File(\"C:/test_io\");\n\t\tif(fi.exists()) {\n\t\t\t\n\t\t\tSystem.out.println(\"exists!\");\n\t\t}else {\n\t\t\tSystem.out.println(\"new\");\n\t\t\tfi.mkdir();\n\t\t}\n\t\t\n\t\tFile fic1 = new File(fi, \"AA\");\n\t\tfic1.mkdir();\n\t\t\n\t\tFile fic2 = new File(\"C:/test_io\", \"BB\");\n\t\tfic2.mkdir();\n\t\t\n\t\tFile fitxt = new File(fic1,\"a.txt\");\n\t\t\n\t\ttry {//checked exception\n\t\t\tfitxt.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void leerDeFichero() {\n try\n {\n Scanner sc = new Scanner(new File(\"texto.txt\"));\n while (sc.hasNextLine() && !textoCompleto())\n addFrase(sc.nextLine());\n sc.close();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n }",
"public void loadData() {\n Path path= Paths.get(filename);\n Stream<String> lines;\n try {\n lines= Files.lines(path);\n lines.forEach(ln->{\n String[] s=ln.split(\";\");\n if(s.length==3){\n try {\n super.save(new Teme(Integer.parseInt(s[0]),Integer.parseInt(s[1]),s[2]));\n } catch (ValidationException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }else\n System.out.println(\"linie corupta in fisierul teme.txt\");});\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void criaTrolls() throws FileNotFoundException, IOException{\n \n String[] vetorNomes;\n vetorNomes = new String[20];\n int i = 0;\n String endereco = System.getProperty(\"user.dir\");\n endereco = endereco + \"/nomes/Nomes.txt\";\n Scanner leitor = new Scanner(new FileReader(endereco));\n while(leitor.hasNext() && i < 20){\n \n vetorNomes[i] = leitor.next();\n ++i;\n }\n // Atribuindo nomes aos trolls.\n Random gerador = new Random();\n int qtde = gerador.nextInt(2);\n for(i = 0; i < qtde; ++i){\n \n int rd = gerador.nextInt(20);\n setNome(vetorNomes[rd], i);\n }\n setQtdeTrolls(qtde);\n }",
"public void makeCustomChallengesFile() {\n customChallengeData = new File(wnwData, \"custom_challenges.dat\");\n try {\n customChallengeData.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n makeSessionFile();\n }",
"public void LoadTxt(File Arquivo) {\n if (Arquivo.exists()) {\r\n\r\n try {\r\n\r\n FileReader FR = new FileReader(Arquivo);\r\n BufferedReader BW = new BufferedReader(new InputStreamReader(new FileInputStream(Arquivo.getAbsolutePath()), \"ISO-8859-1\"));\r\n\r\n //BufferedReader BW = new BufferedReader(FR);\r\n\r\n String dados;\r\n String[] paraArray = new String[3];\r\n String matricula;\r\n \r\n String serie = Arquivo.getName();\r\n int pos = serie.lastIndexOf(\".\");\r\n if (pos > 0) {\r\n serie = serie.substring(0, pos);\r\n }\r\n\r\n Sala novaSala = new Sala(serie); //CRIANDO SALA COM NOME DE TURMA\r\n salas2.add(novaSala); // ADICIONANDO SALA NA LISTA DE SALAS\r\n while ((dados = BW.readLine()) != null) {\r\n paraArray = dados.split(\";\");\r\n\r\n matricula = /*Integer.parseInt*/ (paraArray[0]);\r\n //senha = /*Integer.parseInt*/(paraArray[2]);\r\n Dados novoDado = new Dados(matricula, paraArray[1], paraArray[2]);\r\n\r\n novoDado.setSerie(serie); //ADICIONANDO TURMA AO DADO\r\n novaSala.getDadosalas().add(novoDado); //ADICIONANDO DADOS A LISTA DE DADOS QUE ESTA EM SALA\r\n\r\n }\r\n \r\n\r\n BW.close();\r\n FR.close();\r\n\r\n } catch (Exception e) {\r\n System.out.println(\"Erro ao carregar arquivo acima\");\r\n System.out.println(e.getMessage());\r\n\r\n }\r\n\r\n } else {\r\n System.out.println(\"Nenhum arquivo de dados encontrado\");\r\n }\r\n\r\n }",
"public void addFile(File inFile) throws IOException {\n write(org.apache.commons.io.FileUtils.readFileToString(inFile, Charset.defaultCharset()));\n }",
"public NAFReader() {\n super(\"Hamamatsu Aquacosmos\", \"naf\");\n domains = new String[] {FormatTools.LM_DOMAIN};\n }",
"public FileLoader(File file)throws IOException{\n rows =new Vector<String>();\n _file = file;\n loadTSPTWFile();\n }",
"public Admin()\n {\n File f1 = new File(\"adm1.txt\");//checking whether file exists or not\n\t\tif(f1.exists())\n\t\t{\n try{\n \tadd_admin(\"1\", \"1\", \"1\", \"CO1\", 123, \"878451\",true,\"1\", \"1\");\n \tFileInputStream file = new FileInputStream(f1);\n BufferedInputStream b=new BufferedInputStream(file);\n b.mark(0);\n b.reset();\n ObjectInputStream obj = new ObjectInputStream(b);\n \n Admin e=null;\n e=(Admin) obj.readObject();//reading object from the file \n adm_list.insert(e);//inserting in the current linked list and appending the data in the file\n \n if(file.markSupported())//marking the pointer in the file to start the traversal\n file.reset();\n obj.close();//closing the streams\n file.close(); \n }\n catch(Exception e)//catching exceptions\n {\n \n }\n \n\t\t} \n }",
"void create() {\n\t\ttry {\n\t\t\tFile file = new File(\"Student.txt\");\n\t\t\t//File named Student.txt is created\n\t\t\tboolean x = file.createNewFile();\n\t\t\tif (x) {\n\t\t\t\tSystem.out.println(\"File has been created successfully! \");\n\t\t\t//Message of successful creation after new file is created\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"File already present\");\n\t\t\t\t//message if file already exists\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Exception Occurred:\");\n\n\t\t}\t\t\t\t\n\t\t\n\t\t\t\t\n\t\ttry {\n\t\tPrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(\"Student.txt\", true)));\n\t\tint x = 1;\n\t\t\n\t\tdo {\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\tint y;\n\t\t\t//take input from user for name,roll no and mobile no.\n\t\t\t\n\t\t\tSystem.out.print(\"\\nEnter Student Name: \");\n\t\t\tstudentname = br.readLine();\n\t\t\t\n\t\t\tSystem.out.print(\"Student Roll no: \");\n\t\t\trollno = Integer.parseInt(br.readLine());\t\t\n\t\t\t\n\t\t\tSystem.out.print(\"Mobile Number: \");\n\t\t\tmob_no = Integer.parseInt(br.readLine());\n\t\t\t\n\t\t\tSystem.out.print(\"Marks : \");\n\t\t\tmarks = Float.parseFloat(br.readLine());\n\t\t\t\n\t\t\t//display student data\n\n\t\t\tpw.println(studentname + \"\\t\" + rollno + \"\\t\" + marks + \"\\t\" + mob_no);\n\t\t\t\n\t\t\tSystem.out.println(\"Do you want to enter more records? \\n1) Yes\\n2) No\");\n\t\t\t\n\t\t\ty = sc.nextInt();\n\t\t\t\n\t\t\tif(y == 2) {\n\t\t\t\tx = 0;\n\t\t\t}\n\t\t}while(x==1); //loop to add more records\n\t\tpw.close();\n\t\t}catch(IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}",
"public static void main(String[] arg) throws IOException{\n var a = new Abonnemang[100]; // Steg 1 och 2\r\n // Koppla en scanner till filen och läs filen\r\n Scanner fil = new Scanner(new File(\"abonnemang2.txt\"));\r\n int n = 0; // antal olika abonnemang\r\n while (fil.hasNext() && n < 100) {\r\n // läs en rad i filen\r\n a[n] = new Abonnemang();\r\n a[n++].init(fil.nextInt(), fil.nextInt(),fil.nextLine().trim()); \r\n }\r\n // Sök abonnemang\r\n var scan = new Scanner(System.in);\r\n while(true) { \r\n System.out.print(\"Vilket abonnemang söker du? \");\r\n if (!scan.hasNextLine())\r\n break;\r\n var sökt = new Abonnemang();\r\n sökt.namn = scan.nextLine();\r\n // Leta efter abonnemanget i arrayen a\r\n int i = Arrays.binarySearch(a, 0, n, sökt);\r\n if (i >= 0) // abonnemanget hittades\r\n System.out.println(a[i]);\r\n else\r\n System.out.println(\"Kunde inte hitta \" + sökt.namn);\r\n } \r\n }",
"public static void main(String[] args) {\n File file = new File (\"tesEt.txt\");\n // Path file = Paths.get(\"test.txt\");\n // System.out.println(file.get);\n System.out.println(file.getAbsoluteFile());\n System.out.println(file.isAbsolute());\n System.out.println(file.exists());\n \n // try {\n // // File.createTempFile(\"prefix\", \"suffix\");\n // sy\n // } catch (IOException e) {\n // // TODO Auto-generated catch block\n // e.printStackTrace();\n // }finally\n // {\n // System.out.println(\"hehehehe\");\n // }\n // file.\n\n }",
"public File() {\n\t\tthis.name = \"\";\n\t\tthis.data = \"\";\n\t\tthis.creationTime = 0;\n\t}",
"@Test\n public void createFile(){\n try\n {\n URI uri = new URI(\"http://www.yu.edu/documents/doc390\");//given the complete uri\n String path = uri.getAuthority() + this.disectURI(uri);//get the Path which is www.yu.edu\\documents\n File file = new File(baseDir.getAbsolutePath() + File.separator + path);//make a File with the full class path and with the \"URI Path\"\n Files.createDirectories(file.toPath());//create the directories we didn't have before, ie not apart of the baseDir\n\n File theFile = new File(file.getAbsolutePath() + File.separator + \"doc390.txt\");//create a new File with the document as the last piece\n //wrap in a try because if the file is already there than we don't need to create a file\n if(!theFile.exists())Files.createFile(theFile.toPath());//create this file in the computer\n\n //write to the file -- in the real application this is the writing of the json\n FileWriter fileWriter = new FileWriter(theFile);\n fileWriter.write(\"HaYom sishi BShabbos\");\n fileWriter.flush();\n fileWriter.close();\n\n }\n catch(Exception e){\n e.printStackTrace();\n }\n }",
"public void add() {\n\t\ttry (RandomAccessFile raf = new RandomAccessFile(\"Address.dat\", \"rw\")) // Create RandomAccessFile object\n\t\t{\n\t\t\traf.seek(raf.length()); // find index in raf file\n\t\t\t // # 0 -> start from 0\n\t\t\t // # 1 -> start from 93 (32 + 32 + 20 + 2 + 5 + '\\n')\n\t\t\t // # 2 -> start from 186 (32 + 32 + 20 + 2 + 5 + '\\n') * 2\n\t\t\t // # 3 -> start from 279 (32 + 32 + 20 + 2 + 5 + '\\n') * 3\n\t\t \twrite(raf); // store the contact information at the above position\n\t\t}\n\t\tcatch (FileNotFoundException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tcatch (IndexOutOfBoundsException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public static void AssociaNomeProbe() throws IOException {\n\tList<String> listaProbesComuniConRawData = new ArrayList<String>();\n\tString line;\n\tBufferedReader CommonU133APlus2CoordPlus2completo = new BufferedReader(\n\t\t\tnew FileReader(\n\t\t\t\t\t\"C:\\\\Documents and Settings\\\\Administrator\\\\Desktop\\\\Nuovacartella\\\\tmp\\\\ProbesComuniU133A-Plus2(coordPlus2)completo.txt\"));\n\twhile ((line = CommonU133APlus2CoordPlus2completo.readLine()) != null) {\n\t\tlistaProbesComuniConRawData.add(line);\n\t}\n\tCommonU133APlus2CoordPlus2completo.close();\n\tCollections.sort(listaProbesComuniConRawData);\n\tSystem.out.println(\"numero probes con raw data: \"+listaProbesComuniConRawData.size());\n\t\n\t\n\t//legge il file dei probes comuni col nome del probe e lo riscrive mettendo la colonna dei nomi alla fine\n\tString line1;\n\tBufferedWriter bw = new BufferedWriter(new FileWriter(\"C:\\\\Documents and Settings\\\\Administrator\\\\Desktop\\\\Nuovacartella\\\\tmp\\\\ProbesComuniU133A-Plus2(coordPlus2)daOrdinare.txt\"));\n\tBufferedReader CommonU133APlus2CoordPlus2WithNameDaOrdinare = new BufferedReader(\n\t\t\tnew FileReader(\n\t\t\t\t\t\"C:\\\\Documents and Settings\\\\Administrator\\\\Desktop\\\\Nuovacartella\\\\tmp\\\\ProbesComuniU133A-Plus2(coordPlus2).txt\"));\n\twhile ((line1 = CommonU133APlus2CoordPlus2WithNameDaOrdinare.readLine()) != null) {\n\t\tString[] riga = line1.split(\"\\t\");\n\t\tbw.write(riga[1]+\"\\t\"+riga[2]+\"\\t\"+riga[3]+\"\\t\"+riga[0]+\"\\r\\n\");\n\t\tbw.flush();\n\t}CommonU133APlus2CoordPlus2WithNameDaOrdinare.close(); bw.close();\n\t\n\t\n\t//legge il file con la colonna dei nomi alla fine e lo ordina\n\tList<String> listaProbesComuniConNomeProbe = new ArrayList<String>();\n\tString line2;\n\tBufferedReader CommonU133APlus2CoordPlus2WithName = new BufferedReader(\n\t\t\tnew FileReader(\n\t\t\t\t\t\"C:\\\\Documents and Settings\\\\Administrator\\\\Desktop\\\\Nuovacartella\\\\tmp\\\\ProbesComuniU133A-Plus2(coordPlus2)daOrdinare.txt\"));\n\twhile ((line2 = CommonU133APlus2CoordPlus2WithName.readLine()) != null) {\n\t\t//String[] riga = line.split(\"\\t\");\t\t\t\n\t\tlistaProbesComuniConNomeProbe.add(line2);\n\t\t\n\t}CommonU133APlus2CoordPlus2WithName.close();\n\tCollections.sort(listaProbesComuniConNomeProbe);\n\t\n\tSystem.out.println(\"numero probes con nome: \"+listaProbesComuniConNomeProbe.size());\n\t\n\t//associa i nomi dei probes al file dei probes comuni con i raw data (intensita, dev standard e num pixel)\n\tint i;\n\tString riga1;\n\tString riga2;\n\tBufferedWriter bw1 = new BufferedWriter(new FileWriter(\"C:\\\\Documents and Settings\\\\Administrator\\\\Desktop\\\\Nuovacartella\\\\tmp\\\\ProbesComuniU133A-Plus2(coordPlus2-intensitaPlus2)ordinati.txt\"));\n\tfor(i=0; i<listaProbesComuniConNomeProbe.size(); i++) {\n\t\t\n\t\triga1 = listaProbesComuniConNomeProbe.get(i).toString();\n\t\triga2 = listaProbesComuniConRawData.get(i).toString();\n\t\tString[] field1 = riga1.split(\"\\t\");\n\t\tString[] field2 = riga2.split(\"\\t\");\n\t\tif (field1[0].equalsIgnoreCase(field2[0]) && field1[1].equalsIgnoreCase(field2[1])) {\n\t\t\tSystem.out.println(i);\n\t\t\tbw1.write(field1[3]+\"\\t\"+field2[0]+\"\\t\"+field2[1]+\"\\t\"+field2[2]+\"\\t\"+field2[3]+\"\\t\"+field2[4]+\"\\r\\n\");\n\t\t\tbw1.flush();\n\t\t}\t\t\n\t}\n\tbw1.close();\t\n}",
"private void init() {\n\n DateFormat dateFormatter = new SimpleDateFormat(\"YYYY_MM_dd-HH_mm_ss_SSS\");\n String timeString = dateFormatter.format(new Date(System.currentTimeMillis()));\n urlsFile = new File(\"urls_\" + timeString + \".txt\");\n emailsFile = new File(\"emails_\" + timeString + \".txt\");\n\n try {\n urlsFile.createNewFile();\n emailsFile.createNewFile();\n urlsWriter = new PrintWriter(urlsFile.getPath(), \"UTF-8\");\n emailsWriter = new PrintWriter(emailsFile.getPath(), \"UTF-8\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tFile f = new File(\"data/testfile.dat\");\n\t\t\tboolean b = f.createNewFile();\n\t\t\t\n\t\t\tif (b){\n\t\t\t\tSystem.out.println(\"File created!\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Already exists\");\n\t\t\t}\n\t\t\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"Exception occured\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\tFile file = new File(\"F:/Chandu/Test/Test1/Test2/Test3/Test4\");\n\t\t\n\t\t//create a directory\n\t\t\n\t\tboolean isFolderCreated =file.mkdirs();\n\t\t\n\t\tSystem.out.println(isFolderCreated);\n\t\t\n\t\t//get AbsolutePath\n\t\t\n\t\tString absolutePath =file.getAbsolutePath();\n\t\tSystem.out.println(absolutePath);\n\t\t\n\t\tString canonicalPath =file.getCanonicalPath();\n\t\tSystem.out.println(canonicalPath);\n\t\t\n\t\tboolean isDirectory =file.isDirectory();\n\t\t\n\t\tSystem.out.println(isDirectory);\n\t\t\n\t\t//how to create file\n\t\t\n\t\tFile file1 = new File(\"F:/Chandu/Test/abc.java\") ;\n\t\t\n\t\t//write data into file\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}",
"public Unscrambler(String file) throws FileNotFoundException\n {\n newFile = new File(file);\n\n }",
"public void openFile()\r\n {\r\n try // open file\r\n {\r\n input = new RandomAccessFile( \"clients.dat\", \"r\" );\r\n } // end try\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"File does not exist.\" );\r\n } // end catch\r\n }",
"public static void main(String[] args) throws IOException {\n\t\t\r\n File file = new File(\"C:\\\\Users\\\\balaji\\\\Desktop\\\\commons\\\\commons-io-2.6\\\\text file\\\\text1.txt\");\r\n\t\t\r\n\t\tFileUtils.write(file, \"Learning is Growing\", \"UTF-8\", false);\r\n\r\n\r\n\t}",
"public void crearPrimerFichero(){\n File f=new File(getApplicationContext().getFilesDir(),\"datos.json\");\n // si no existe lo creo\n if(!f.exists()) {\n String filename = \"datos.json\";\n String fileContents = \"[]\";\n FileOutputStream outputStream;\n\n try {\n outputStream = openFileOutput(filename, Context.MODE_PRIVATE);\n outputStream.write(fileContents.getBytes());\n outputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n }",
"public static void main(String[] args) {\n\t\tString ruta=\"personas.txt\";\n\t\tFile fichero = new File(ruta);\n\t\tif (!fichero.exists()) {\n\t\t\ttry {\n\t\t\t\tfichero.createNewFile();\n\t\t\t\tSystem.out.println(\"Archivo creado\");\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}else {\n\t\t\ttry {\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(ruta, false));\n\t\t\t\tScanner sc = new Scanner (System.in);\n\t\t\t\tString introducir=\"\";\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.println(\"Introduce el dni de la persona:\");\n\t\t\t\t\tString dni=sc.nextLine();\n\t\t\t\t\tSystem.out.println(\"Introduce el nombre:\");\n\t\t\t\t\tString nombre=sc.nextLine();\n\t\t\t\t\tSystem.out.println(\"Introduce lo apellidos:\");\n\t\t\t\t\tString apellidos=sc.nextLine();\n\t\t\t\t\tSystem.out.println(\"Introduce la dirección:\");\n\t\t\t\t\tString direccion=sc.nextLine();\n\t\t\t\t\tSystem.out.println(\"Introduce el teléfono:\");\n\t\t\t\t\tString telefono=sc.nextLine();\n\t\t\t\t\tSystem.out.println(\"Introduce el email:\");\n\t\t\t\t\tString email=sc.nextLine();\n\t\t\t\t\tSystem.out.println(\"¿Desea introducir los datos de otra persona?\");\n\t\t\t\t\tintroducir=sc.nextLine();\n\t\t\t\t\tbw.write(dni +\"//\"+nombre +\"//\"+apellidos +\"//\"+direccion +\"//\"+ telefono + \"//\" + email);\n\t\t\t\t\tbw.newLine();\n\t\t\t\t}while(introducir.equalsIgnoreCase(\"si\"));\n\t\t\t\tbw.close();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void fileOpen () {\n\t\ttry {\n\t\t\tinput = new Scanner(new File(file));\n\t\t\tSystem.out.println(\"file created\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"file could not be created\");\n\t\t}\n\t}",
"private void createFile(String outputData, File file) {\n try {\n FileWriter writer = new FileWriter(file);\n writer.write(outputData);\n writer.close();\n } catch (IOException e) {\n e.getSuppressed();\n }\n }",
"Points(String filepath){\n readPointsFile(filepath); //dengan file points.txt\n }",
"public static void createUsername(Login newEmp) throws FileNotFoundException, IOException {\n\t\tString employeeUsername = \"\";\n\t\tdo {\n\t\t\temployeeUsername = JOptionPane.showInputDialog(\"Please enter a username.\");\n\t\t\tif (!newEmp.setUsername(employeeUsername)) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Wrong employee name, please try again\");\n\t\t\t}\n\t\t} while (!newEmp.setUsername(employeeUsername));\n\t\t/*\n\t\t Text file is stored in a source folder.\n\t\t */\n\t\tFileOutputStream fstream = new FileOutputStream(\"./src/Phase5/username.txt\", true);\n\t\tDataOutputStream outputFile = new DataOutputStream(fstream);\n\t\toutputFile.writeUTF(employeeUsername + \", \");\n\t\toutputFile.close();\n\t}",
"@Override\n\tpublic void salvaSuFile() {\n\t\tString path = \"alimenti.txt\";\n\t\tString allergeni = Alimento.getStringaAllergeni(getElencoAllergeni());\n\t\ttry {\n\t\t\tFile file = new File(path);\n\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\tbw.write(getNome() + \" - \" + getPrezzo() + \"€\\n\");\n\t\t\tbw.write(\"Adatto a vegani: \" + (getVegano() ? \"sì\\n\" : \"no\\n\"));\n\t\t\tbw.write(\"Adatto a vegetariani: \" + (getVegetariano() ? \"sì\\n\" : \"no\\n\"));\n\t\t\tbw.write(\"Tipologia: \" + getTipoPortata().getNome().toUpperCase() + \"\\n\");\n\t\t\tbw.write(\"Cottura: \" + getTipoCottura().getNome().toUpperCase() + \"\\n\");\n\t\t\tbw.write(\"Allergeni: \" + (allergeni.isEmpty() ? \"--\" : allergeni) + \"\\n\\n\");\n\t\t\tbw.flush();\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected void buildNCFile() {\n ncFile.empty();\n fillNCFile();\n ncFile.finish();\n }",
"private void createAndPlaceDiacFile( File dataFile, String diagnostic ) throws FileNotFoundException, IOException\n {\n FileOutputStream fopStream;\n final String diacExtension = \".diac\";\n String origFileName = dataFile.getName();\n int dotPos = origFileName.lastIndexOf( \".\" );\n String strippedFileName = origFileName.substring( 0, dotPos ); // filename without extension, and without the dot!\n \n //create the file\n File diacFile = FileHandler.getFile( new String( failureDir + File.separator + strippedFileName + diacExtension ) );\n byte[] diacData = diagnostic.getBytes();\n \n //fill the diagnostic in to it\n fopStream = new FileOutputStream( diacFile );\n fopStream.write( diacData );\n fopStream.close();\n }",
"BucsUserFile(File f,String unm,UserFileType ft)\n{\n this();\n set(f,unm,ft);\n}",
"private FileManager()\n {\n bookFile.open(\"bookdata.txt\");\n hisFile.open(\"history.txt\");\n idFile.open(\"idpassword.txt\");\n createIDMap();\n createHisMap(Customer.getInstance());\n }",
"public void createPatient() throws IOException\n {\n addPatientToList();\n \n //creates the patient's empty folders and files\n File userFolder = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB); \n File patientEvaluation = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm\");\n File patientProgressReports = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/ProgressNotes\"); \n \n try\n \t{\n \tuserFolder.mkdir();\n patientEvaluation.mkdir();\n patientProgressReports.mkdir();\n \t//result = true;\n \t} \n \tcatch(SecurityException se)\n \t{\n \t//handle it\n \t} \n \t\n File listOfProgressReports = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/ProgressReports.txt\");\n FileWriter writer = new FileWriter(listOfProgressReports, true);\t \n BufferedWriter bufferedreader = new BufferedWriter(writer);\n writer.append(\"\");\n bufferedreader.close();\n writer.close();\n \n \n /*if(result) \n \t{ \n \t\tSystem.out.println(\"DIR created\"); \n \t}*/\n \n //creates the patient's empty evaluation form files\n File signedStatus = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/signed.txt\");\n FileWriter w = new FileWriter(signedStatus, true);\t \n BufferedWriter b = new BufferedWriter(w);\n w.append(\"false\");\n b.close();\n w.close();\n \n File firstName = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/first.txt\");\n FileWriter writ = new FileWriter(firstName, true);\t \n BufferedWriter bw = new BufferedWriter(writ);\n writ.append(currentPatientFirstName);\n bw.close();\n writ.close();\n \n File lastName = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/last.txt\");\n FileWriter writ1 = new FileWriter(lastName, true);\t \n BufferedWriter bw1 = new BufferedWriter(writ1);\n writ1.append(currentPatientLastName);\n bw1.close();\n writ1.close();\n \n File age = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/age.txt\");\n FileWriter writ2 = new FileWriter(age, true);\t \n BufferedWriter bw2 = new BufferedWriter(writ2);\n writ2.append(\"\");\n bw2.close();\n writ2.close();\n \n File dob = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/dateofbirth.txt\");\n FileWriter writ3 = new FileWriter(dob, true);\t \n BufferedWriter bw3 = new BufferedWriter(writ3);\n writ3.append(\"\");\n bw3.close();\n writ3.close();\n \n File maritalstatus = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/maritalstatus.txt\");\n FileWriter writ4 = new FileWriter(maritalstatus, true);\t \n BufferedWriter bw4 = new BufferedWriter(writ4);\n writ4.append(\"\");\n bw4.close();\n writ4.close();\n \n File ethnicity = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/ethnicity.txt\");\n FileWriter writ5 = new FileWriter(ethnicity, true);\t \n BufferedWriter bw5 = new BufferedWriter(writ5);\n writ5.append(\"\");\n bw5.close();\n writ5.close();\n\n File ethnicityother = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/ethnicity-other.txt\");\n FileWriter writt = new FileWriter(ethnicityother, true);\t \n BufferedWriter bww = new BufferedWriter(writt);\n writt.append(\"\");\n bww.close();\n writt.close();\n \n File sex = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/sex.txt\");\n FileWriter writ6 = new FileWriter(sex, true);\t \n BufferedWriter bw6 = new BufferedWriter(writ6);\n writ6.append(\"\");\n bw6.close();\n writ6.close();\n \n File referredBy = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/referredby.txt\");\n FileWriter writ7 = new FileWriter(referredBy, true);\t \n BufferedWriter bw7 = new BufferedWriter(writ7);\n writ7.append(\"\");\n bw7.close();\n writ7.close();\n \n File referredByTherapist = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/referredby-therapist.txt\");\n FileWriter writ8 = new FileWriter(referredByTherapist, true);\t \n BufferedWriter bw8 = new BufferedWriter(writ8);\n writ8.append(\"\");\n bw8.close();\n writ8.close();\n \n File referredByOther = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/referredby-other.txt\");\n FileWriter writ9 = new FileWriter(referredByOther, true);\t \n BufferedWriter bw9 = new BufferedWriter(writ9);\n writ9.append(\"\");\n bw9.close();\n writ9.close();\n \n //dr. prince\n File reasonForReferral = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/reasonforreferral.txt\");\n FileWriter writ10 = new FileWriter(reasonForReferral, true);\t \n BufferedWriter bw10 = new BufferedWriter(writ10);\n writ10.append(\"\");\n bw10.close();\n writ10.close();\n \n File sourceOfInformation = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/sourceofinformation.txt\");\n FileWriter writ11 = new FileWriter(sourceOfInformation, true);\t \n BufferedWriter bw11 = new BufferedWriter(writ11);\n writ11.append(\"\");\n bw11.close();\n writ11.close();\n \n File sourceOfInformationOther = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/sourceofinformation-other.txt\");\n FileWriter writ12 = new FileWriter(sourceOfInformationOther, true);\t \n BufferedWriter bw12 = new BufferedWriter(writ12);\n writ12.append(\"\");\n bw12.close();\n writ12.close();\n \n File reliabilityOfInformation = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/reliabilityofinformation.txt\");\n FileWriter writ13 = new FileWriter(reliabilityOfInformation, true);\t \n BufferedWriter bw13 = new BufferedWriter(writ13);\n writ13.append(\"\");\n bw13.close();\n writ13.close();\n \n File reliabilityOfInformationOther = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/reliabilityofinformation-other.txt\");\n FileWriter writ14 = new FileWriter(reliabilityOfInformationOther, true);\t \n BufferedWriter bw14 = new BufferedWriter(writ14);\n writ14.append(\"\");\n bw14.close();\n writ14.close();\n \n File historyOfPresentIllness = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/historyofpresentillness.txt\");\n FileWriter writ15 = new FileWriter(historyOfPresentIllness, true);\t \n BufferedWriter bw15 = new BufferedWriter(writ15);\n writ15.append(\"\");\n bw15.close();\n writ15.close();\n \n File signsSymptoms = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/signsandsymptoms.txt\");\n FileWriter writ16 = new FileWriter(signsSymptoms, true);\t \n BufferedWriter bw16 = new BufferedWriter(writ16);\n writ16.append(\"\");\n bw16.close();\n writ16.close();\n \n File currentMedications = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/currentmedications.txt\");\n FileWriter writ17 = new FileWriter(currentMedications, true);\t \n BufferedWriter bw17 = new BufferedWriter(writ17);\n writ17.append(\"\");\n bw17.close();\n writ17.close();\n \n File pastHistoryOf = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/pasthistoryof.txt\");\n FileWriter writ18 = new FileWriter(pastHistoryOf, true);\t \n BufferedWriter bw18 = new BufferedWriter(writ18);\n writ18.append(\"\");\n bw18.close();\n writ18.close();\n \n File pastHistoryOfText = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/pasthistoryoftext.txt\");\n FileWriter writ19 = new FileWriter(pastHistoryOfText, true);\t \n BufferedWriter bw19 = new BufferedWriter(writ19);\n writ19.append(\"\");\n bw19.close();\n writ19.close();\n \n File medicationTrialsTable = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/medicationtrialstable.txt\");\n FileWriter writ20 = new FileWriter(medicationTrialsTable, true);\t \n BufferedWriter bw20 = new BufferedWriter(writ20);\n writ20.append(\"\");\n bw20.close();\n writ20.close();\n \n File medicationTrialsComments = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/medicationtrialscomments.txt\");\n FileWriter writ21 = new FileWriter(medicationTrialsComments, true);\t \n BufferedWriter bw21 = new BufferedWriter(writ21);\n writ21.append(\"\");\n bw21.close();\n writ21.close();\n \n File substanceUseHistory = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/substanceusehistory.txt\");\n FileWriter writ22 = new FileWriter(substanceUseHistory, true);\t \n BufferedWriter bw22 = new BufferedWriter(writ22);\n writ22.append(\"\");\n bw22.close();\n writ22.close();\n \n File deniesHistoryOf = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/denieshistoryof.txt\");\n FileWriter writ23 = new FileWriter(deniesHistoryOf, true);\t \n BufferedWriter bw23 = new BufferedWriter(writ23);\n writ23.append(\"\");\n bw23.close();\n writ23.close();\n \n File deniesHistoryOfText = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/denieshistoryoftext.txt\");\n FileWriter writ24 = new FileWriter(deniesHistoryOfText, true);\t \n BufferedWriter bw24 = new BufferedWriter(writ24);\n writ24.append(\"\");\n bw24.close();\n writ24.close();\n \n File socialHistoryText = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/socialhistorytext.txt\");\n FileWriter writ25 = new FileWriter(socialHistoryText, true);\t \n BufferedWriter bw25 = new BufferedWriter(writ25);\n writ25.append(\"\");\n bw25.close();\n writ25.close();\n \n File socialHistoryParents = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/socialhistoryparents.txt\");\n FileWriter writ26 = new FileWriter(socialHistoryParents, true);\t \n BufferedWriter bw26 = new BufferedWriter(writ26);\n writ26.append(\"\");\n bw26.close();\n writ26.close();\n \n File socialHistorySiblings = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/socialhistorysiblings.txt\");\n FileWriter writ27 = new FileWriter(socialHistorySiblings, true);\t \n BufferedWriter bw27 = new BufferedWriter(writ27);\n writ27.append(\"\");\n bw27.close();\n writ27.close();\n \n File socialHistoryChildren = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/socialhistorychildren.txt\");\n FileWriter writ28 = new FileWriter(socialHistoryChildren, true);\t \n BufferedWriter bw28 = new BufferedWriter(writ28);\n writ28.append(\"\");\n bw28.close();\n writ28.close();\n \n File familyHistoryOfMentalIllness = new File(installationPath + \"/userdata/\" + currentPatientFirstName + currentPatientLastName + currentPatientDOB + \"/EvaluationForm/familyhistoryofmentalillness.txt\");\n FileWriter writ29 = new FileWriter(familyHistoryOfMentalIllness, true);\t \n BufferedWriter bw29 = new BufferedWriter(writ29);\n writ29.append(\"\");\n bw29.close();\n writ29.close();\n \n }",
"public static void arqTexto(JTextArea ta) throws IOException {\n Path arqTexto = Paths.get(\"src\\\\ex01\\\\arqTexto.txt\").toAbsolutePath();\n Files.deleteIfExists(arqTexto);\n Files.createFile(arqTexto);\n \n //Cria um FileOutputStram atraves do arqBinario\n FileWriter fw = new FileWriter(arqTexto.toFile());\n fw.write(\"12345\");\n \n //Fecha o FileWriter\n fw.close();\n \n //Cria uma Filereader atraves do arqText e um BufferedReader atraves do fr\n FileReader fr = new FileReader(arqTexto.toFile());\n BufferedReader br = new BufferedReader(fr);\n \n //Le uma linha atraves do br e escreve essa linha na textArea\n ta.setText(br.readLine());\n \n //Fecha o fr e o br\n fr.close();\n br.close();\n \n }",
"private static void dosyaYazici(String text)\n {\n File log = new File(\"log.txt\");\n try\n {\n if (!log.exists())\n {\n log.createNewFile();\n }\n FileWriter fileWriter = new FileWriter(log,true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.append(text+\"\\n\");\n bufferedWriter.close();\n //System.out.print(\"TEST\");\n }\n catch (IOException e)\n {\n System.out.print(\"DOSYA HATASI!\");\n e.printStackTrace();\n }\n\n }",
"@NonNull\n\t\tBuilder addFile(@NonNull File file);",
"public SecurityLog()\n {\n String fileName = \"Log.txt\";\n File output = new File(fileName);\n if(output.exists())\n readFile(fileName);\n }",
"public NFA(File f){readMachineDescription(f);}",
"static void createAuthorsFile () throws IOException {\n\t\tBufferedReader dataFile = new BufferedReader(new FileReader(DATAFILE));\n\t\tString inputLine;\n\t\t\n\t\tPrintWriter isbnLabeledDataFile = new PrintWriter(new FileWriter(ISBNLABELLEDDATAFILE));\n\t\t\n\t\tSet<String> books = new HashSet<String>();\n\t\twhile ((inputLine = dataFile.readLine()) != null) {\n\t\t\tif (inputLine.indexOf('\\t') == -1) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString[] fields = inputLine.split(\"\\t\");\n\t\t\tif (fields.length != 4) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tfinal String bookId = fields[1];\n\t\t\tif (books.contains(bookId)) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tbooks.add(bookId);\n\t\t\t\tString authorString = getAuthorString(bookId);\n\t\t\t\tisbnLabeledDataFile.println(bookId + \"\\t\" + authorString);\n\t\t\t\tout.println(bookId + \"\\t\" + authorString);\n\t\t\t}\n\t\t}\n\t\tdataFile.close();\n\t\tisbnLabeledDataFile.close();\n\t}",
"private void initializeTestFile(File testFile) throws IOException {\n testReader = new ASCIIreader(testFile);\n }",
"public Account load() throws IOException {\n Account account = new Account();\n try {\n FileReader fileReader = new FileReader(fileName);\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n String line;\n while ((line = bufferedReader.readLine()) != null) {\n //if (line.contains(\"#\")) { continue; }\n String[] info = line.split(\" @ \");\n\n switch (info[0]) {\n case \"INIT\":\n account.setToInitialize(Boolean.parseBoolean(info[1]));\n break;\n case \"BS\":\n account.setBaseSavings(Float.parseFloat((info[1])));\n break;\n case \"INC\":\n parseIncome(info, account);\n break;\n case \"EXP\":\n parseExpenditure(info, account);\n break;\n case \"G\":\n parseGoal(info, account);\n break;\n case \"INS\":\n parseInstalment(info, account);\n break;\n case \"LOA\":\n parseLoan(info, account);\n break;\n case \"BAN\":\n parseBankAccount(info, account);\n break;\n default:\n throw new DukeException(\"OOPS!! Your file has been corrupted/ input file is invalid!\");\n }\n }\n bufferedReader.close();\n } catch (FileNotFoundException err) {\n final File parentDir = new File(\"dataFG\");\n parentDir.mkdir();\n final String hash = \"moneyAccount\";\n final String fileName = hash + \".txt\";\n final File file = new File(parentDir, fileName);\n file.createNewFile();\n } catch (IOException | DateTimeParseException | DukeException e) {\n e.printStackTrace();\n }\n return account;\n }",
"public void createTestFileWithoutKey() {\n\t\tList<String> lines = new ArrayList<>(0);\n\t\tPath file = Paths.get(TEST_FILE_NAME);\n\t\ttry {\n\t\t\tFiles.write(file, lines);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public VentanaPrincipal() throws IOException {\n initComponents();\n buscador = new Busqueda();\n }",
"public PatternCreator() {\n \n BasicNeFileName =\n Tools.readString(\"Enter existing BasicNE file name: \");\n // \"/home/kwinkler/diasdem/DIAsDEM.workbench2/data/samples/de/heins/\"\n // + \"BasicNE.csv\";\n InitialCompositeNeFileName =\n Tools.readString(\"Enter existing DgapSourceCompositeNE file name: \");\n // \"/home/kwinkler/diasdem/DIAsDEM.workbench2/data/samples/de/heins/\"\n // + \"DgapSourceCompositeNE.csv\";\n ExtendedCompositeNeFileName =\n Tools.readString(\"Enter DgapExtendedCompositeNE file name to be created:\");\n // \"/home/kwinkler/diasdem/DIAsDEM.workbench2/data/samples/de/heins/\"\n // + \"DgapExtendedCompositeNE.csv\";\n \n try {\n MyCsvFile = new CsvFile(BasicNeFileName, false);\n BasicNEs = MyCsvFile.getValues();\n NumberOfBasicNEs = MyCsvFile.countTuples();\n }\n catch (IOException e) {\n System.out.println(\"Error: Cannot open BasicNeFileName ...\");\n }\n \n try {\n MyCsvFile = new CsvFile(InitialCompositeNeFileName, false);\n InitialCompositeNEs = MyCsvFile.getValues();\n NumberOfInitialCompositeNEs = MyCsvFile.countTuples();\n }\n catch (IOException e) {\n System.out.println(\"Error: Cannot open InitialCompositeNeFileName ...\");\n }\n \n this.extendInitialCompositeNEs();\n ExtendedCompositeNEs = MyCombinator.ExtendedCompositeNEs;\n \n try {\n if (!ExtendedCompositeNeFileName.endsWith(\".csv\")) {\n ExtendedCompositeNeFileName += \".csv\";\n }\n MyCsvFile.save(ExtendedCompositeNEs, ExtendedCompositeNeFileName);\n // System.out.println(\n // \"I successfully created the extended composite NE file \"\n // + ExtendedCompositeNeFileName);\n }\n catch (IOException e) {\n System.out.println(\"Error: Cannot write ExtendedCompositeNeFileName ...\");\n }\n \n }",
"public void abrirArchivo() {\r\n try {\r\n entrada = new Scanner(new File(\"estudiantes.txt\"));\r\n } // fin de try\r\n catch (FileNotFoundException fileNotFoundException) {\r\n System.err.println(\"Error al abrir el archivo.\");\r\n System.exit(1);\r\n } // fin de catch\r\n }",
"public void init() {\n File file = new File(FILE);\n if (!file.exists()) {\n File file2 = new File(file.getParent());\n if (!file2.exists()) {\n file2.mkdirs();\n }\n }\n if (this.accessFile == null) {\n try {\n this.accessFile = new RandomAccessFile(FILE, \"rw\");\n } catch (FileNotFoundException unused) {\n }\n }\n }",
"public WritingFont(File file) throws IOException {\n\t\tthis();\n\t\tif (file == null)\n\t\t\tthrow new NullPointerException();\n\n\t\tString name = file.getName();\n\t\tint i = name.lastIndexOf('.');\n\t\tname = i == -1 ? name : name.substring(0, i);\n\t\tproperties.set(NAME, name);\n\n\t\tInputStream in = null;\n\t\ttry {\n\t\t\tin = new FileInputStream(file);\n\t\t\tpopulate(in, file.getAbsolutePath());\n\t\t} finally {\n\t\t\tif (in != null) {\n\t\t\t\tin.close();\n\t\t\t}\n\t\t}\n\t}",
"public void writeAddInfo(AnnotatedUtterance u) {\n\t\tif (optionsOutput != null) {\n\t\t\tif (optionsOutput.isDontDisplay(\"com\", 1))\n\t\t\t\treturn;\n\t\t\tif (!optionsOutput.isDoDisplay(\"com\", 1))\n\t\t\t\treturn;\n\t\t}\n\t\tif (optionsOutput.raw == true || optionsOutput.noHeader == true) return;\n\t\t// Ajout des informations additionnelles présents dans les fichiers txt\n\t\tfor (String s : u.coms) {\n\t\t\tString infoType = Utils.getInfoType(s);\n\t\t\tString infoContent = Utils.getInfo(s);\n\t\t\tout.println(\"\\t\\t\" + infoType + \"\\t\" + infoContent);\n\t\t}\n\t}",
"public void atualiza_ficheiro_user(){//Atualiza o ficheiro users\n File f1 = new File(\"users.txt\");\n String pesq = \"\";\n if (f1.exists() && f1.isFile()){\n try{\n FileWriter fw = new FileWriter(f1);\n BufferedWriter bw = new BufferedWriter(fw);\n // 0 1 2 3 4 5 6 7\n // ':id:admin:nome:username:password:notificacoes:pesquisas'\n for(int i=0; i< lista_utilizadores.size();i++){\n int aux = 0;\n int aux_ativo = 0;\n if(lista_utilizadores.get(i).get_administrador()){\n aux = 1;\n }\n pesq = \"\";\n for(int j = 0; j < lista_utilizadores.get(i).get_pesquisas().size(); j++){\n\n pesq = pesq.concat(lista_utilizadores.get(i).get_pesquisas().get(j));\n pesq = pesq.concat(\"-\");\n }\n //System.out.println(\"pesq de = \" + i + \"| Pesquisa = \" + pesq);\n\n bw.append(\":\"+lista_utilizadores.get(i).get_id()+\":\"+aux+\":\"+lista_utilizadores.get(i).get_nome()+\":\"+lista_utilizadores.get(i).get_username()+\":\"+lista_utilizadores.get(i).get_password()+\":\"+lista_utilizadores.get(i).get_notificacoes()+\":\"+pesq+\":\");\n bw.newLine();\n }\n bw.close();\n\n fw.close();\n }\n catch (IOException ex) {\n System.out.println(\"Erro a escrever no ficheiro.\");\n }\n }\n else {\n System.out.println(\"Ficheiro nao existe.\");\n }\n }",
"public ShortFile(String shortFile) {\r\n newText = shortFile;\r\n }",
"static void initContacts(){\n String directory = \"contacts\";\n String filename = \"contacts.txt\";\n Path contactsDirectory= Paths.get(directory);\n Path contactsFile = Paths.get(directory, filename);\n try {\n if (Files.notExists(contactsDirectory)) {\n Files.createDirectories((contactsDirectory));\n System.out.println(\"Created directory\");\n }\n if (!Files.exists(contactsFile)) {\n Files.createFile(contactsFile);\n System.out.println(\"Created file\");\n }\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n }",
"public void initializeBookStore() throws IOException{\r\n //creates new file called \"Book.txt\". \r\n file = new File(\"Book.txt\");\r\n //adds/writes into the file created. \r\n in = new FileWriter(\"Book.txt\", true);\r\n write = new BufferedWriter(in);\r\n \r\n if(file.length() == 0){\r\n write.write(data);\r\n write.newLine();\r\n write.close();\r\n }\r\n }",
"void readNutrients(String filename) throws FileNotFoundException {\n\t\t//reads the file, computes the number of unique nutrient objects\n\t\t//uses StringBuilder to append the unique Nutrient_Code\n\t\tScanner input=new Scanner(new File(filename));\n\t\tint numOfRow=0;\n\t\tStringBuilder uniqueNutrient=new StringBuilder();\n\t\twhile(input.hasNextLine()) {\n\t\t\tString row0=input.nextLine();\n\t\t\tString[] split0=row0.split(((char)34+\",\"+(char)34));\n\t\t\tif(!uniqueNutrient.toString().contains(split0[1]+\",\")) {\n\t\t\t\tuniqueNutrient=uniqueNutrient.append(split0[1]+\",\");\n\t\t\t\tnumOfRow++;\n\t\t\t}\n\t\t}\n\t\t//load the products array one by one, using constructor\n\t\t//keep only the unique nutrient objects\n\t\tnutrients=new Nutrient[numOfRow-1];\n\t\tScanner input2=new Scanner(new File(filename));\n\t\tinput2.nextLine();\n\t\tint i=0;\n\t\tStringBuilder uniqueNutrien2=new StringBuilder();\n\t\twhile(input2.hasNextLine()) {\n\t\t\tString row=input2.nextLine();\n\t\t\tString[] split1=row.split(((char)34+\",\"+(char)34));\n\t\t\tif(!uniqueNutrien2.toString().contains(split1[1]+\",\")) {\n\t\t\t\tuniqueNutrien2.append(split1[1]+\",\");\n\t\t\t\tnutrients[i++]=new Nutrient(split1[1], split1[2], split1[5]);\n\t\t\t}\n\t\t}\n\n\t\t//reads the file, computes the number of unique productNutrient objects\n\t\tScanner input3 =new Scanner(new File(filename));\n\t\tinput3.nextLine();\n\t\tint numOfRowProductNutrient=0;\n\t\twhile(input3.hasNextLine()) {\n\t\t\tnumOfRowProductNutrient++;\n\t\t\tinput3.nextLine();\n\t\t}\n\t\t//load the products array one by one, using constructor\n\t\tproductNutrients=new ProductNutrient[numOfRowProductNutrient];\n\t\tScanner input4=new Scanner(new File(filename));\n\t\tinput4.nextLine();\n\t\tint i2=0;\n\t\twhile(input4.hasNextLine()) {\n\t\t\tString row=input4.nextLine();\n\t\t\tString[] split1=row.split(((char)34+\",\"+(char)34));\n\t\t\tproductNutrients [i2++]=new ProductNutrient(split1[0].substring\n\t\t\t\t\t(1, split1[0].length()), split1[1], split1[2], \n\t\t\t\t\tFloat.parseFloat(split1[4]),split1[5].substring(0, split1[5].length()-1));\n\t\t}\n\t\t//close the input\n\t\tinput.close();\n\t\tinput2.close();\n\t\tinput3.close();\n\t\tinput4.close();\n\t}",
"public void read() {\n String line = \"\";\n int counter = 0;\n try {\n input = new BufferedReader(new FileReader(file));\n while (line != null) {\n if (!(line.equals(\"arglebargle\"))) {//not a default\n names.add(line);\n }\n }\n input.close();\n }\n catch (IOException e) {\n }\n }",
"public void testAppendDataInFile() throws IOException {\n\t\tfinal CachedParserDocument pdoc = new CachedParserDocument(this.tempFilemanager,0);\n\t\tassertTrue(pdoc.inMemory());\n\t\tassertEquals(0, pdoc.length());\n\t\tassertFalse(this.outputFile.exists());\n\t\t\n\t\t// copying data\n\t\tthis.appendData(TESTFILE, pdoc);\n\t\t\n\t\t// some tests\n\t\tassertFalse(pdoc.inMemory());\n\t\tassertEquals(this.fileSize, pdoc.length());\n\t\tassertTrue(this.outputFile.exists());\n\t\tassertEquals(TESTFILE, pdoc.getTextAsReader());\n\t\tassertEquals(TESTFILE, pdoc.getTextFile());\n\t\tassertFalse(pdoc.inMemory());\n\t}",
"public static void createSimpleFile( final Configuration conf, final Path file, String data ) throws IOException\r\n\t{\r\n\t\tFSDataOutputStream out = null;\r\n\t\ttry {\r\n\t\t\tout = file.getFileSystem(conf).create(file);\r\n\t\t\tout.write(data.getBytes(\"UTF-8\"));\r\n\t\t} finally {\r\n\t\t\tif (out!=null) {\r\n\t\t\t\tout.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public boolean addNew(String path, String name, String info) throws IOException {\n\t\tString newLast = (Integer.toString(getNumber(path) + 1));\n\t\tFile f = new File (path + \"aacont.txt\");\n\t\tFileWriter fw = new FileWriter(f);\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tbw.write(newLast);\n\t\tbw.close();\n\t\t//Create student's file\n\t\tf = new File (path + name.trim().replace(\" \", \"\").toLowerCase() + \".txt\");\n\t\tfw = new FileWriter(f);\n\t\tbw = new BufferedWriter(fw);\n\t\tbw.write(info);\n\t\tbw.close();\n\t\t//Add student to the list\n\t\tFileReader fr = null;\n\t\ttry {\n\t\t\tf = new File(path + \"aaall.txt\");\n\t\t\tfr = new FileReader (f);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tString line, total = \"\";\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\ttotal += line + \"\\n\";\n\t\t\t}\n\t\t\tfw = new FileWriter(f);\n\t\t\tbw = new BufferedWriter(fw);\n\t\t\tbw.write(total + name);\n\t\t\tbr.close();\n\t\t\treturn true;\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\treturn false;\n\t\t}\n\t\tfinally {\n\t\t\tif (fr != null) {\n\t\t\t\tfr.close();\n\t\t\t\tbw.close();\n\t\t\t}\n\t\t}\n\t}",
"private ControlloFile() {\n\t}"
] | [
"0.6357028",
"0.62215114",
"0.5865417",
"0.5855924",
"0.57790285",
"0.56562537",
"0.5621291",
"0.5596348",
"0.55854076",
"0.54939646",
"0.5490221",
"0.54617596",
"0.54555064",
"0.5402841",
"0.5378721",
"0.5366933",
"0.5358732",
"0.53568745",
"0.53521127",
"0.53519696",
"0.5349043",
"0.529586",
"0.5290059",
"0.5289423",
"0.52814233",
"0.5279725",
"0.52767813",
"0.52697074",
"0.5263734",
"0.5248699",
"0.51967543",
"0.5194664",
"0.51803815",
"0.5165392",
"0.51624024",
"0.5158669",
"0.5151755",
"0.5123841",
"0.511584",
"0.5112147",
"0.5111492",
"0.5105632",
"0.5090421",
"0.50845265",
"0.50817645",
"0.5071515",
"0.5071069",
"0.506098",
"0.50570184",
"0.5054264",
"0.50315773",
"0.50249",
"0.501926",
"0.50156516",
"0.5006328",
"0.50054264",
"0.5002259",
"0.49998277",
"0.49874488",
"0.49830964",
"0.497877",
"0.4978701",
"0.49717265",
"0.497157",
"0.49679932",
"0.4967537",
"0.49660218",
"0.49642292",
"0.49594352",
"0.49571502",
"0.4953629",
"0.49455622",
"0.49373522",
"0.49332023",
"0.49327746",
"0.49285904",
"0.49221715",
"0.4920076",
"0.49193454",
"0.49167654",
"0.49124113",
"0.4912217",
"0.49092507",
"0.49057925",
"0.48998755",
"0.48939604",
"0.48914218",
"0.48883036",
"0.4883124",
"0.48779085",
"0.48767853",
"0.48712373",
"0.48685783",
"0.48633978",
"0.48628342",
"0.48620456",
"0.48617613",
"0.4850274",
"0.4848527",
"0.48458868"
] | 0.5991074 | 2 |
Created by gustavo on 16/07/16. | public interface GetNinjasClient {
@GET("{job_kind}")
Observable<Response<String>> list(@Path("job_kind") String jobKind);
@GET("{job_id}")
Observable<Response<String>> getInfo(@Path("job_id") String id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void m50366E() {\n }",
"public void mo38117a() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private void kk12() {\n\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 anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n public void init() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"private void init() {\n\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\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 public void init() {}",
"public void method_4270() {}",
"@Override\n\tprotected void initialize() {\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}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n void init() {\n }",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void init() {\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\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"public void mo21877s() {\n }",
"public void skystonePos4() {\n }",
"public void mo12628c() {\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}"
] | [
"0.59788597",
"0.5876653",
"0.5765054",
"0.5730155",
"0.5730155",
"0.5722694",
"0.5711097",
"0.57018286",
"0.56736755",
"0.56702816",
"0.5670264",
"0.56671715",
"0.56525534",
"0.56226015",
"0.5609535",
"0.5604414",
"0.5585401",
"0.55846375",
"0.55688494",
"0.55547494",
"0.5541051",
"0.5541051",
"0.5541051",
"0.5541051",
"0.5541051",
"0.55370766",
"0.5534439",
"0.5533712",
"0.5533108",
"0.55215466",
"0.5518822",
"0.5510468",
"0.54806715",
"0.5479867",
"0.5479455",
"0.5479455",
"0.54755044",
"0.5461952",
"0.5456833",
"0.5450943",
"0.54428184",
"0.54404026",
"0.5435187",
"0.54049355",
"0.5382542",
"0.5379425",
"0.5368676",
"0.5367841",
"0.53663194",
"0.5363773",
"0.53630817",
"0.53630817",
"0.53630817",
"0.53630817",
"0.53630817",
"0.53630817",
"0.53621",
"0.53621",
"0.53621",
"0.5360704",
"0.5359636",
"0.535659",
"0.5351085",
"0.5351085",
"0.5350137",
"0.53489965",
"0.53489965",
"0.53489965",
"0.5345881",
"0.5340227",
"0.53398925",
"0.53398925",
"0.53398925",
"0.53315467",
"0.5331263",
"0.53307414",
"0.53162974",
"0.53162974",
"0.5312443",
"0.53113496",
"0.53092396",
"0.53092396",
"0.53092396",
"0.53092396",
"0.53092396",
"0.53092396",
"0.53092396",
"0.53072244",
"0.5302187",
"0.52972865",
"0.52923965",
"0.5292032",
"0.52803314",
"0.52746594",
"0.52719617",
"0.5268893",
"0.5259542",
"0.5251244",
"0.5251244",
"0.5242635",
"0.52381784"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) throws IOException {
FileInputStream f=new FileInputStream("D:\\AccuSelenium\\Ram\\TEST\\TestData\\LoginData.xls");
HSSFWorkbook w=new HSSFWorkbook(f);
HSSFSheet s=w.getSheet("sheet1");
System.out.println(s.getRow(1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
If image not present in the cache, load it from database. If the image was found, it is stored into the cache. If image was not found, recorded "image not found" string into image data. Write image to response | public void service(HttpServletRequest req, HttpServletResponse res)
throws IOException, ServletException {
ServletOutputStream out = null;
DeliverableImage aImage = null;
MailingComponent comp = null;
if(cacheMap == null) {
cacheMap = (TimeoutLRUMap) WebApplicationContextUtils.getWebApplicationContext(this.getServletContext()).getBean("imageCache");
}
if(req.getParameter("ci") == null || req.getParameter("mi") == null || req.getParameter("name") == null) {
return;
}
if(req.getParameter("name").length() == 0) {
return;
}
String cacheKey = req.getParameter("ci") + "-" + req.getParameter("mi") + "-" + req.getParameter("name");
aImage = (DeliverableImage) cacheMap.get(cacheKey);
if(aImage == null) {
try {
MailingComponentDao mDao = (MailingComponentDao) WebApplicationContextUtils.getWebApplicationContext(this.getServletContext()).getBean("MailingComponentDao");
comp = mDao.getMailingComponentByName(Integer.parseInt(req.getParameter("mi")), Integer.parseInt(req.getParameter("ci")), req.getParameter("name"));
} catch (Exception e) {
logger.error("Exception: "+e, e);
return;
}
if(comp != null) {
aImage = new DeliverableImage();
aImage.mtype = comp.getMimeType();
aImage.imageData = comp.getBinaryBlock();
cacheMap.put(cacheKey, aImage);
if (logger.isDebugEnabled()) logger.debug("added to cache: "+cacheKey);
} else {
aImage = new DeliverableImage();
aImage.mtype = "text/html";
aImage.imageData = "image not found".getBytes();
// cacheMap.put(cacheKey, aImage);
if (logger.isDebugEnabled()) logger.debug("added not found to cache: "+cacheKey);
}
}
if(aImage != null) {
try {
res.setContentType(aImage.mtype);
out = res.getOutputStream();
out.write(aImage.imageData);
out.flush();
out.close();
} catch (Exception e) {
logger.error(e.getMessage());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Bitmap getImageCache(Integer cacheKey)\n {\n synchronized (mLinkedHashMap)\n {\n Bitmap bitmap;\n // Get file from cache\n String file = mLinkedHashMap.get(cacheKey);\n if (file != null)\n {\n bitmap = BitmapFactory.decodeFile(file);\n Log.i(\"DiskLruCache\", \"DiskCacheHit for Image with CacheKey: \"+cacheKey.toString());\n return bitmap;\n }\n else\n {\n // Construct existing file path\n String cacheKeyStr = String.valueOf(cacheKey);\n String existingFile = createFilePath(cacheDirectory, cacheKeyStr);\n // Get the file using the constructed file path\n assert existingFile != null;\n File existFile = new File(existingFile);\n if (existFile.exists())\n {\n // If the file exists, we will store the the key in reference list\n referenceAdd(cacheKey, existingFile);\n return BitmapFactory.decodeFile(existingFile);\n }\n }\n return null;\n }//synchronized (mLinkedHashMap)\n }",
"private static void setCacheTag(File image, HttpServletRequest request, HttpServletResponse response) {\n String fileName = image.getName();\n long length = image.length();\n long lastModified = image.lastModified();\n String eTag = fileName + \"_\" + length + \"_\" + lastModified;\n long expires = System.currentTimeMillis() + DEFAULT_EXPIRE_TIME;\n\n // Validate request headers for caching ---------------------------------------------------\n\n // If-None-Match header should contain \"*\" or ETag. If so, then return 304.\n String ifNoneMatch = request.getHeader(\"If-None-Match\");\n if (ifNoneMatch != null && matches(ifNoneMatch, eTag)) {\n response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);\n response.setHeader(\"ETag\", eTag); // Required in 304.\n response.setDateHeader(\"Expires\", expires); // Postpone cache with 1 week.\n return;\n }\n\n // If-Modified-Since header should be greater than LastModified. If so, then return 304.\n // This header is ignored if any If-None-Match header is specified.\n long ifModifiedSince = request.getDateHeader(\"If-Modified-Since\");\n if (ifNoneMatch == null && ifModifiedSince != -1 && ifModifiedSince + 1000 > lastModified) {\n response.setStatus(HttpServletResponse.SC_NOT_MODIFIED);\n response.setHeader(\"ETag\", eTag); // Required in 304.\n response.setDateHeader(\"Expires\", expires); // Postpone cache with 1 week.\n return;\n }\n\n if (null == ifNoneMatch && ifModifiedSince == -1) {\n// response.setHeader(HTTPCacheHeader.CACHE_CONTROL.getName(), cacheControl.toString());\n response.setDateHeader(\"Expires\", expires); // Postpone cache with 1 week.\n }\n\n\n }",
"private void getPic(final CacheHolder cacheHolder, final CacheImage imageInfo) {\n String fileName = cacheHolder.getCode() + \"_\" + imageInfo.getURL().substring(imageInfo.getURL().lastIndexOf('/') + 1);\n fileName = Common.ClearForFileName(fileName).toLowerCase();\n final String target = MainForm.profile.dataDir + fileName;\n imageInfo.setFilename(fileName);\n try {\n File ftest = new File(target);\n if (ftest.exists()) {\n if (ftest.length() == 0) {\n ftest.delete();\n }\n else {\n cacheHolder.getDetails().getImages().add(imageInfo);\n }\n }\n else {\n if (downloadPics) {\n UrlFetcher.fetchDataFile(imageInfo.getURL(), target);\n ftest = new File(target);\n if (ftest.exists()) {\n if (ftest.length() > 0) {\n cacheHolder.getDetails().getImages().add(imageInfo);\n }\n else {\n ftest.delete();\n }\n }\n }\n }\n }\n catch (final IOException e) {\n String ErrMessage;\n String wp, n;\n if (cacheHolder != null && cacheHolder.getCode() != null)\n wp = cacheHolder.getCode();\n else\n wp = \"WP???\";\n if (cacheHolder != null && cacheHolder.getName() != null)\n n = cacheHolder.getName();\n else\n n = \"name???\";\n\n String m;\n try {\n m = e.getMessage();\n if (m == null)\n m = \"\";\n }\n catch (Exception e2) {\n m = \"\";\n }\n\n if (m.length() == 0)\n ErrMessage = \"Ignoring error: OCXMLImporter.getPic: IOExeption == null, while downloading picture: \" + fileName + \" from URL:\" + imageInfo.getURL();\n else {\n if (m.equalsIgnoreCase(\"could not connect\") || m.equalsIgnoreCase(\"unkown host\")) {\n // is there a better way to find out what happened?\n ErrMessage = MyLocale.getMsg(1618, \"Ignoring error in cache: \") + n + \" (\" + wp + \")\" + MyLocale.getMsg(1619, \": could not download image from URL: \") + imageInfo.getURL();\n }\n else {\n ErrMessage = MyLocale.getMsg(1618, \"Ignoring error in cache: \") + n + \" (\" + wp + \"): ignoring IOException: \" + m + \" while downloading picture:\" + fileName + \" from URL:\" + imageInfo.getURL();\n }\n }\n inf.addWarning(ErrMessage);\n Preferences.itself().log(ErrMessage, e, true);\n }\n }",
"private void loadImage(){\n Log.d(getString(R.string.app_name), \"photoURL: \" + photoURL);\n String hash = photoURL.substring(0, photoURL.lastIndexOf(\".\"));\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(hash.getBytes());\n hash = bytesToHex(md.digest());\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n// File cachedFile = new File(getCacheDir(), photoURL.substring(0, photoURL.lastIndexOf(\".\")));\n File cachedFile = new File(getCacheDir(), hash);\n if(cachedFile.exists()) {\n //load image from cache\n Glide.with(getApplicationContext())\n .load(cachedFile)\n .diskCacheStrategy(DiskCacheStrategy.NONE)\n// .crossFade()\n .into(picture);\n// TileBitmapDrawable.attachTileBitmapDrawable(picture, getCacheDir() + \"/\" + photoURL.split(\"\\\\.\")[0], null, null);\n setupPictureClickListener();\n\n postImageLoaded();\n } else {\n //download image\n setupReloadButtonListener();\n initImageLoader();\n }\n }",
"protected Image forceCaching(Image img) throws IOException {\n/* 221 */ if (img instanceof ImageRawStream) {\n/* 222 */ ImageRawStream raw = (ImageRawStream)img;\n/* 223 */ if (log.isDebugEnabled()) {\n/* 224 */ log.debug(\"Image is made cacheable: \" + img.getInfo());\n/* */ }\n/* */ \n/* */ \n/* 228 */ ByteArrayOutputStream baout = new ByteArrayOutputStream();\n/* 229 */ InputStream in = raw.createInputStream();\n/* */ try {\n/* 231 */ IOUtils.copy(in, baout);\n/* */ } finally {\n/* 233 */ IOUtils.closeQuietly(in);\n/* */ } \n/* 235 */ byte[] data = baout.toByteArray();\n/* 236 */ raw.setInputStreamFactory((ImageRawStream.InputStreamFactory)new ImageRawStream.ByteArrayStreamFactory(data));\n/* 237 */ return (Image)raw;\n/* */ } \n/* 239 */ return null;\n/* */ }",
"public static void cacheImage(final File file, ImageRequest imageCallback) {\n\n HttpURLConnection urlConnection = null;\n FileOutputStream fileOutputStream = null;\n InputStream inputStream = null;\n boolean isGif = false;\n\n try{\n // Setup the connection\n urlConnection = (HttpURLConnection) new URL(imageCallback.mUrl).openConnection();\n urlConnection.setConnectTimeout(ImageManager.LONG_CONNECTION_TIMEOUT);\n urlConnection.setReadTimeout(ImageManager.LONG_REQUEST_TIMEOUT);\n urlConnection.setUseCaches(true);\n urlConnection.setInstanceFollowRedirects(true);\n\n // Set the progress to 0\n imageCallback.sendProgressUpdate(imageCallback.mUrl, 0);\n\n // Connect\n inputStream = urlConnection.getInputStream();\n\n // Do not proceed if the file wasn't downloaded\n if(urlConnection.getResponseCode()==404){\n urlConnection.disconnect();\n return;\n }\n\n // Check if the image is a GIF\n String contentType = urlConnection.getHeaderField(\"Content-Type\");\n if(contentType!=null){\n isGif = contentType.equals(GIF_MIME);\n }\n\n // Grab the length of the image\n int length = 0;\n try{\n String fileLength = urlConnection.getHeaderField(\"Content-Length\");\n if(fileLength!=null){\n length = Integer.parseInt(fileLength);\n }\n }catch(NumberFormatException e){\n if(ImageManager.DEBUG){\n e.printStackTrace();\n }\n }\n\n // Write the input stream to disk\n fileOutputStream = new FileOutputStream(file, true);\n int byteRead = 0;\n int totalRead = 0;\n final byte[] buffer = new byte[8192];\n int frameCount = 0;\n\n // Download the image\n while ((byteRead = inputStream.read(buffer)) != -1) {\n\n // If the image is a gif, count the start of frames\n if(isGif){\n for(int i=0;i<byteRead-3;i++){\n if( buffer[i] == 33 && buffer[i+1] == -7 && buffer[i+2] == 4 ){\n frameCount++;\n\n // Once we have at least one frame, stop the download\n if(frameCount>1){\n fileOutputStream.write(buffer, 0, i);\n fileOutputStream.close();\n\n imageCallback.sendProgressUpdate(imageCallback.mUrl, 100);\n imageCallback.sendCachedCallback(imageCallback.mUrl, true);\n\n urlConnection.disconnect();\n return;\n }\n }\n }\n }\n\n // Write the buffer to the file and update the total number of bytes\n // read so far (used for the callback)\n fileOutputStream.write(buffer, 0, byteRead);\n totalRead+=byteRead;\n\n // Update the callback with the current progress\n if(length>0){\n imageCallback.sendProgressUpdate(imageCallback.mUrl, \n (int) (((float)totalRead/(float)length)*100) );\n }\n }\n\n // Tidy up after the download\n if (fileOutputStream != null){\n fileOutputStream.close();\n }\n\n // Sent the callback that the image has been downloaded\n imageCallback.sendCachedCallback(imageCallback.mUrl, true);\n\n if (inputStream != null){\n inputStream.close();\n }\n\n // Disconnect the connection\n urlConnection.disconnect();\n } catch (final MalformedURLException e) {\n if (ImageManager.DEBUG){\n e.printStackTrace();\n }\n\n // If the file exists and an error occurred, delete the file\n if (file != null){\n file.delete();\n }\n\n } catch (final IOException e) {\n if (ImageManager.DEBUG){\n e.printStackTrace();\n }\n\n // If the file exists and an error occurred, delete the file\n if (file != null){\n file.delete();\n }\n\n }\n\n }",
"public static void loadCacheImage(Context context, final ImageView imageView, String imageUrl, String tag) {\n Cache cache = MySingleton.getInstance(context).getRequestQueue().getCache();\n Cache.Entry entry = cache.get(imageUrl);\n if (entry != null) {\n try {\n Bitmap bitmap = BitmapFactory.decodeByteArray(entry.data, 0, entry.data.length);\n imageView.setImageBitmap(bitmap);\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(\"ERROR\", e.getMessage());\n }\n } else {\n cache.invalidate(imageUrl, true);\n cache.clear();\n ImageRequest request = new ImageRequest(imageUrl,\n new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n }\n }, 0, 0, null,\n new Response.ErrorListener() {\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n Log.e(\"ERROR VOLLY 1\", error.getMessage() + \"\");\n imageView.setImageResource(R.drawable.ic_check_black_24dp);\n }\n });\n request.setTag(tag);\n MySingleton.getInstance(context).addToRequestQueue(request);\n }\n }",
"public interface ImageCache {\n public Bitmap get(String url);\n public void put(String url,Bitmap bitmap);\n}",
"private void loadAndCacheImages(Node node, FileContext cachedImageFilesystem) throws Exception\n {\n String imagePathBase = \"/\" + node.getTypeCode() + \"/\" + node.getNid();\n ImagesReponse imagesReponse = this.queryRemoteApi(ImagesReponse.class, imagePathBase + ImagesReponse.PATH, null);\n if (imagesReponse != null && imagesReponse.getNodes() != null && imagesReponse.getNodes().getNode() != null) {\n for (Image i : imagesReponse.getNodes().getNode()) {\n node.addImage(i);\n\n URI imageUri = UriBuilder.fromUri(Settings.instance().getTpAccessApiBaseUrl())\n .path(BASE_PATH)\n .path(imagePathBase + \"/image/\" + i.getData().mediaObjectId + \"/original\")\n .replaceQueryParam(ACCESS_TOKEN_PARAM, this.getAccessToken())\n .replaceQueryParam(FORMAT_PARAM, FORMAT_JSON)\n .build();\n\n ClientConfig config = new ClientConfig();\n Client httpClient = ClientBuilder.newClient(config);\n Response response = httpClient.target(imageUri).request().get();\n if (response.getStatus() == Response.Status.OK.getStatusCode()) {\n org.apache.hadoop.fs.Path nodeImages = new org.apache.hadoop.fs.Path(HDFS_CACHE_ROOT_PATH + node.getNid());\n if (!cachedImageFilesystem.util().exists(nodeImages)) {\n cachedImageFilesystem.mkdir(nodeImages, FsPermission.getDirDefault(), true);\n }\n org.apache.hadoop.fs.Path cachedImage = new org.apache.hadoop.fs.Path(nodeImages, i.getData().mediaObjectId);\n i.setCachedUrl(cachedImage.toUri());\n if (!cachedImageFilesystem.util().exists(cachedImage)) {\n try (OutputStream os = cachedImageFilesystem.create(cachedImage, EnumSet.of(CreateFlag.CREATE, CreateFlag.OVERWRITE))) {\n IOUtils.copy(response.readEntity(InputStream.class), os);\n }\n }\n }\n else {\n throw new IOException(\"Error status returned while fetching remote API data;\" + response);\n }\n\n }\n }\n }",
"private void storeImage(Boolean hasImage){\n if (hasImage) {\r\n RequestQueue queue = Volley.newRequestQueue(getBaseContext());\r\n final String command = getString(R.string.server_address) + \"/\" + getString(R.string.get_image_server)\r\n + \"username=\" + username;\r\n// Request a string response from the provided URL.\r\n StringRequest stringRequest = new StringRequest(Request.Method.GET, command,\r\n new Response.Listener<String>() {\r\n @Override\r\n public void onResponse(String response) {\r\n // Display the first 500 characters of the response string.\r\n //Log.d(\"ddd\", \"command :\" + command);\r\n //Log.d(\"ddd\", \"writing :\" + response);\r\n loadImageInGUI(response);\r\n Utility.writeOnPreferences(activity, \"image\", response);\r\n Utility.reloadActivity(activity);\r\n\r\n }\r\n }, new Response.ErrorListener() {\r\n @Override\r\n public void onErrorResponse(VolleyError error) {\r\n //Log.d(\"aaa\", error.toString());\r\n }\r\n\r\n });\r\n\r\n// Add the request to the RequestQueue.\r\n queue.add(stringRequest);\r\n }\r\n }",
"private void cacheUserImages() {\n User user = User.getLoggedInUser(this);\n if (user != null) {\n ImageView view = new ImageView(this);\n Picasso.with(this).load(user.getBannerImageUrl()).into(view);\n\n ImageView view2 = new ImageView(this);\n Picasso.with(this).load(user.getProfileImageUrl()).into(view2);\n }\n }",
"public interface ImageCache {\r\n\tpublic Bitmap getBitmap(String url);\r\n\r\n\tpublic void putBitmap(String url, Bitmap bitmap);\r\n\r\n\tpublic void clear();\r\n}",
"public void run() {\n if(request!=null && request.mLoadDelay>0){\n try {\n Thread.sleep(request.mLoadDelay);\n } catch (InterruptedException e){\n if(ImageManager.DEBUG){\n e.printStackTrace();\n }\n }\n }\n\n File file = null;\n\n // If the URL is not a local reseource, grab the file\n if(!getUrl().startsWith(\"content://\")){\n\n // Grab a link to the file\n file = new File(getFullCacheFileName(mContext, getUrl()));\n\n // If the file doesn't exist, grab it from the network\n if (!file.exists()){\n cacheImage( file, request);\n } \n\n // Otherwise let the callback know the image is cached\n else if(request!=null){\n request.sendCachedCallback(getUrl(), true);\n }\n\n // Check if the file is a gif\n boolean isGif = isGif(getUrl());\n\n // If the file downloaded was a gif, tell all the callbacks\n if( isGif && request!=null ){\n request.sendGifCallback(getUrl());\n }\n }\n\n // Check if we should cache the image and the dimens\n boolean shouldCache = false;\n int maxWidth = MAX_WIDTH;\n int maxHeight = MAX_HEIGHT;\n if(request!=null){\n maxWidth = request.mMaxWidth;\n maxHeight = request.mMaxHeight;\n shouldCache = request.mCacheImage;\n }\n\n // If any of the callbacks request the image should be cached, cache it\n if(shouldCache && \n (request!=null&&request.mContext!=null)||request==null){\n\n // First check the image isn't actually in the cache\n Bitmap bitmap = get(getUrl());\n\n // If the bitmap isn't in the cache, try to grab it\n // Or the bitmap was in the cache, but is of no use\n if(bitmap == null){\n\n if(!getUrl().startsWith(\"content://\")){\n bitmap = decodeBitmap(file, maxWidth, maxHeight);\n }else{\n Uri uri = Uri.parse(getUrl());\n try{\n InputStream input = mContext.getContentResolver().openInputStream(uri);\n bitmap = BitmapFactory.decodeStream(input);\n input.close();\n }catch(FileNotFoundException e){\n if(DEBUG){\n e.printStackTrace();\n }\n }catch(IOException e){\n if(DEBUG){\n e.printStackTrace();\n }\n }\n }\n\n // If we grabbed the image ok, add to the cache\n if(bitmap!=null){\n addEntry(getUrl(), bitmap);\n }\n }\n\n // Send the cached callback\n if(request!=null){\n request.sendCallback(getUrl(), bitmap);\n }\n }\n }",
"public static Bitmap getImage(String url){\n\t\tBitmap image = BitmapFactory.decodeStream(\n\t\t\t\topenStream(url));\n\t\tLog.i(\"IMAGE\",\"Cache hit on \"+hashURL(url));\n\t\treturn image;\n\t}",
"public void requestImage(final ImageRequest request) {\n\n // If the request has no URL, abandon it\n if(request.mUrl==null){\n return;\n }\n\n // Create the image download runnable\n final ImageDownloadThread imageDownloadThread = new ImageDownloadThread(){\n\n public void run() {\n\n // Sleep the request for the specified time\n if(request!=null && request.mLoadDelay>0){\n try {\n Thread.sleep(request.mLoadDelay);\n } catch (InterruptedException e){\n if(ImageManager.DEBUG){\n e.printStackTrace();\n }\n }\n }\n\n File file = null;\n\n // If the URL is not a local reseource, grab the file\n if(!getUrl().startsWith(\"content://\")){\n\n // Grab a link to the file\n file = new File(getFullCacheFileName(mContext, getUrl()));\n\n // If the file doesn't exist, grab it from the network\n if (!file.exists()){\n cacheImage( file, request);\n } \n\n // Otherwise let the callback know the image is cached\n else if(request!=null){\n request.sendCachedCallback(getUrl(), true);\n }\n\n // Check if the file is a gif\n boolean isGif = isGif(getUrl());\n\n // If the file downloaded was a gif, tell all the callbacks\n if( isGif && request!=null ){\n request.sendGifCallback(getUrl());\n }\n }\n\n // Check if we should cache the image and the dimens\n boolean shouldCache = false;\n int maxWidth = MAX_WIDTH;\n int maxHeight = MAX_HEIGHT;\n if(request!=null){\n maxWidth = request.mMaxWidth;\n maxHeight = request.mMaxHeight;\n shouldCache = request.mCacheImage;\n }\n\n // If any of the callbacks request the image should be cached, cache it\n if(shouldCache && \n (request!=null&&request.mContext!=null)||request==null){\n\n // First check the image isn't actually in the cache\n Bitmap bitmap = get(getUrl());\n\n // If the bitmap isn't in the cache, try to grab it\n // Or the bitmap was in the cache, but is of no use\n if(bitmap == null){\n\n if(!getUrl().startsWith(\"content://\")){\n bitmap = decodeBitmap(file, maxWidth, maxHeight);\n }else{\n Uri uri = Uri.parse(getUrl());\n try{\n InputStream input = mContext.getContentResolver().openInputStream(uri);\n bitmap = BitmapFactory.decodeStream(input);\n input.close();\n }catch(FileNotFoundException e){\n if(DEBUG){\n e.printStackTrace();\n }\n }catch(IOException e){\n if(DEBUG){\n e.printStackTrace();\n }\n }\n }\n\n // If we grabbed the image ok, add to the cache\n if(bitmap!=null){\n addEntry(getUrl(), bitmap);\n }\n }\n\n // Send the cached callback\n if(request!=null){\n request.sendCallback(getUrl(), bitmap);\n }\n }\n }\n };\n\n // Set the url of the request\n imageDownloadThread.setUrl(request.mUrl);\n\n // Set the creation time of the request\n imageDownloadThread.setCreated(request.mCreated);\n\n // Assign a priority to the request\n if(request.mImageListener==null){\n // If there is no image listener, assign it background priority\n imageDownloadThread.setPriority(BACKGROUND_PRIORITY);\n }else{\n // If there is an image listener, assign it UI priority\n imageDownloadThread.setPriority(UI_PRIORITY);\n }\n\n // If the new request is not a duplicate of an entry of the active and \n // task queues, add the request to the task queue\n if(!mTaskQueue.contains(imageDownloadThread) && \n !mActiveTasks.contains(imageDownloadThread)){\n mThreadPool.execute(imageDownloadThread);\n }\n\n // If the request is a duplicate, add it to the blocked tasks queue\n else{\n mBlockedTasks.add(imageDownloadThread);\n }\n }",
"public synchronized void setPictureFromCache() {\n Runnable run = new Runnable() {\n @Override\n public void run() {\n File file = new File(context.getExternalFilesDir(null), pictureName);\n if (file != null) {\n Bitmap myBitmap = BitmapFactory.decodeFile(file.getAbsolutePath());\n if (imageView != null) {\n //imageView.setImageDrawable(new BitmapDrawable(null, myBitmap));\n new ResizeImage(imageView, file.getAbsolutePath()).setImageView();\n }\n }\n }\n };\n new Handler(context.getMainLooper()).post(run);\n }",
"private Bitmap loadAndCacheBitmap(File cacheFile, String url) {\n File tempFile = new File(cacheFile.getPath() + \"temp_file\");\n Bitmap bitmap = null;\n HttpURLConnection connection = null;\n OutputStream tempOs = null;\n OutputStream cacheOs = null;\n\n try {\n URL imageUrl = new URL(url);\n\n // Create connection\n connection = (HttpURLConnection) imageUrl.openConnection();\n connection.setConnectTimeout(CONNECTION_TIMEOUT);\n connection.setReadTimeout(CONNECTION_TIMEOUT);\n connection.setInstanceFollowRedirects(true);\n\n // Save image to temp file\n InputStream is = connection.getInputStream();\n tempOs = new FileOutputStream(tempFile);\n StreamUtils.copy(is, tempOs);\n\n Log.d(\"HIHO\", \"bitmap from web\");\n\n // Decode and scale image to reduce memory consumption\n bitmap = decodeAndScale(tempFile);\n\n // Save scaled bitmap to cache file\n cacheOs = new FileOutputStream(cacheFile);\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, cacheOs);\n\n } catch (IOException e) {\n Log.e(TAG, \"Error while image was loaded and stored\", e);\n // Remove cached file if something go wrong\n cacheFile.delete();\n } finally {\n StreamUtils.closeQuietly(tempOs);\n StreamUtils.closeQuietly(cacheOs);\n // Remove temp file\n tempFile.delete();\n if (connection != null) connection.disconnect();\n }\n\n return bitmap;\n }",
"private void loadCache(Context ctx, ImageLoader img) {\r\n RequestOptions options = getCommonOptions(img);\r\n options.diskCacheStrategy(DiskCacheStrategy.ALL);\r\n\r\n Glide.with(ctx).load(img.getUrl()).apply(options).into(img.getImgView());\r\n }",
"public static Bitmap getRemoteImage(String url, String cacheDir)\r\n \t\t\tthrows Exception {\r\n \t\tBufferedInputStream reader = null;\r\n \t\tBitmap bitMap = null;\r\n \t\tString fileName = url;\r\n \t\t// extract just the filename portion of the url\r\n \t\tif (fileName.contains(\"/\")\r\n \t\t\t\t&& fileName.lastIndexOf(\"/\") < fileName.length() + 1) {\r\n \t\t\tfileName = fileName.substring(fileName.lastIndexOf(\"/\") + 1);\r\n \t\t}\r\n \t\t// now check the cache\r\n \t\tif (cacheDir != null && cacheDir.trim().length()>0) {\r\n \t\t\tFile f = new File(cacheDir + \"/\" + fileName);\r\n \t\t\tif (f.exists()) {\r\n \t\t\t\t// if the file exists, return the local version\r\n \t\t\t\tbitMap = BitmapFactory.decodeFile(f.getAbsolutePath());\r\n \t\t\t\treturn bitMap;\r\n \t\t\t}\r\n \t\t}\r\n \t\t// if we get here, then we had a cache miss (or aren't using the cache)\r\n \t\ttry {\r\n \t\t\tif (cacheDir == null || cacheDir.trim().length()==0) {\r\n \t\t\t\t// if we aren't using the cache, download directly into the\r\n \t\t\t\t// bitmap\r\n \t\t\t\tDefaultHttpClient client = new DefaultHttpClient();\r\n \t\t\t\tHttpResponse response = client.execute(new HttpGet(url));\r\n \t\t\t\treader = new BufferedInputStream(response.getEntity()\r\n \t\t\t\t\t\t.getContent());\r\n \t\t\t\tbitMap = BitmapFactory.decodeStream(reader);\r\n \t\t\t} else {\r\n \t\t\t\t// if we are using the cache, download the file manually.\r\n \t\t\t\t// we need to do this instead of loading the bitmap and calling\r\n \t\t\t\t// compress since\r\n \t\t\t\t// that may not preserve the original file type so subsequent\r\n \t\t\t\t// call will encounter cache misses.\r\n \t\t\t\thttpDownload(url, cacheDir + \"/\" + fileName);\r\n \t\t\t\tbitMap = BitmapFactory.decodeFile(cacheDir + \"/\" + fileName);\r\n \t\t\t}\r\n \r\n \t\t} finally {\r\n \t\t\tif (reader != null) {\r\n \t\t\t\treader.close();\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn bitMap;\r\n \r\n \t}",
"@Override\n public void onResourceReady(File image,\n GlideAnimation<? super File> glideAnimation) {\n callback.onCacheHit(image);\n }",
"public void loadImage(final String path, final ImageView imageView){\r\n imageView.setTag(path);\r\n if (mUIHandler==null){\r\n mUIHandler=new Handler(){\r\n @Override\r\n public void handleMessage(Message msg) {\r\n //Get the image and set its imageView.\r\n ImgBeanHolder holder= (ImgBeanHolder) msg.obj;\r\n Bitmap bitmap = holder.bitmap;\r\n ImageView imageview= holder.imageView;\r\n String path = holder.path;\r\n if (imageview.getTag().toString().equals( path)){\r\n imageview.setImageBitmap(bitmap);\r\n }\r\n }\r\n };\r\n }\r\n //Get the bitmap through the path in the cache.\r\n Bitmap bm=getBitmapFromLruCache(path);\r\n if (bm!=null){\r\n refreshBitmap(bm, path, imageView);\r\n }else{\r\n addTask(() -> {\r\n //Get the size of the image which wants to be displayed.\r\n ImageSize imageSize= getImageViewSize(imageView);\r\n //Compress the image.\r\n Bitmap bm1 =decodeSampledBitmapFromPath(imageSize.width,imageSize.height,path);\r\n //Put the image into the cache.\r\n addBitmapToLruCache(path, bm1);\r\n //Refresh the display of the image.\r\n refreshBitmap(bm1, path, imageView);\r\n mSemaphoreThreadPool.release();\r\n });\r\n }\r\n\r\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse resp)\n throws IOException {\n ServletContext sc = getServletContext();\n String uri = req.getRequestURI();\n String servletBase = req.getServletPath();\n\n boolean Companyflag = (req.getParameter(\"company\") != null) ? true : false;\n String imagePath = defaultImgPath;\n String requestedFileName = \"\";\n if (Companyflag) {\n imagePath = defaultCompanyImgPath;\n String companyId = null;\n try {\n companyId = sessionHandlerImpl.getCompanyid(req);\n } catch (Exception ee) {\n }\n if (StringUtil.isNullOrEmpty(companyId)) {\n String domain = URLUtil.getDomainName(req);\n if (!StringUtil.isNullOrEmpty(domain)) {\n //@@@ - Uncomment\n//\t\t\t\t\tcompanyId = DBCon.getCompanyid(domain);\n requestedFileName = \"/original_\" + companyId + \".png\";\n } else {\n requestedFileName = \"logo.gif\";\n }\n } else {\n requestedFileName = \"/\" + companyId + \".png\";\n }\n } else {\n requestedFileName = uri.substring(uri.lastIndexOf(servletBase)\n + servletBase.length());\n }\n String fileName = null;\n\n fileName = storageHandlerImpl.GetProfileImgStorePath() + requestedFileName;\n // Get the MIME type of the image\n String mimeType = sc.getMimeType(fileName);\n if (mimeType == null) {\n sc.log(\"Could not get MIME type of \" + fileName);\n resp.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);\n return;\n }\n\n // Set content type\n resp.setContentType(mimeType);\n\n // Set content size\n File file = new File(fileName);\n if (!file.exists()) {\n if (fileName.contains(\"_100.\")) {\n file = new File(fileName.replaceAll(\"_100.\", \".\"));\n }\n if (!file.exists()) {\n file = new File(sc.getRealPath(imagePath));\n }\n }\n\n resp.setContentLength((int) file.length());\n\n // Open the file and output streams\n FileInputStream in = new FileInputStream(file);\n OutputStream out = resp.getOutputStream();\n\n // Copy the contents of the file to the output stream\n byte[] buf = new byte[4096];\n int count = 0;\n while ((count = in.read(buf)) >= 0) {\n out.write(buf, 0, count);\n }\n in.close();\n out.close();\n }",
"private void getNewImage() {\n try {\n URL imageUrl = new URL(path);\n URLConnection uc = imageUrl.openConnection();\n\n InputStream is = uc.getInputStream();\n BufferedInputStream bis = new BufferedInputStream(is);\n\n ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n int current;\n while ((current = bis.read()) != -1) {\n buffer.write((byte) current);\n }\n final byte[] data = buffer.toByteArray();\n // enqueue UI update as a priority\n Handler handler = new Handler(Looper.getMainLooper());\n handler.post(new Runnable() {\n public void run() {\n view.setImageBitmap(BitmapFactory.decodeByteArray(\n data, 0, data.length));\n }\n });\n // update database while that is queueing\n ContentValues values = new ContentValues();\n values.put(MovieEntry.COLUMN_POSTER, data);\n context.getContentResolver().update(MovieEntry.buildMovieUriWithId(movieId),\n values, null, null);\n } catch (Exception E) {\n Log.i(TAG, E.toString());\n E.printStackTrace();\n }\n }",
"@GET\n @Path(\"image\")\n @Produces(MediaType.TEXT_PLAIN)\n public Response voidImage() {\n return Response.status(Response.Status.NOT_FOUND).build();\n }",
"public File getPictureFromCache() {\n if (context != null) {\n File file = new File(context.getExternalFilesDir(null), pictureName);\n return file;\n }\n return null;\n }",
"@RequestMapping(path = \"/memdownload\", method = RequestMethod.GET)\n public ResponseEntity<Resource> download(@RequestParam(\"image\") String image) throws IOException {\n File file = new ClassPathResource(SERVER_LOCATION + File.separator + image).getFile();\n\n HttpHeaders header = new HttpHeaders();\n header.add(HttpHeaders.CONTENT_DISPOSITION, \"attachment; filename=img.jpg\");\n header.add(\"Cache-Control\", \"no-cache, no-store, must-revalidate\");\n header.add(\"Pragma\", \"no-cache\");\n header.add(\"Expires\", \"0\");\n\n Path path = Paths.get(file.getAbsolutePath());\n ByteArrayResource resource = new ByteArrayResource(Files.readAllBytes(path));\n\n return ResponseEntity.ok()\n .headers(header)\n .contentLength(file.length())\n .contentType(MediaType.parseMediaType(\"application/octet-stream\"))\n .body(resource);\n\n }",
"public Bitmap loadImageCache( String url ){\n\t\tString path = createPath(url, context);\n\t\tLog.i( TAG, \"loadImageCache: \" + path );\n\n\t\tBitmap bitmap = null;\n\t\tFile file = new File( path );\n\n \tif( file.exists() ) {\n \t\tLog.i( TAG, \"loadImageCache - Arquivo existe\" );\n\n\t\t\ttry {\n\t\t\t\tFileInputStream infile = new FileInputStream(file);\n\t\t\t\tbitmap = BitmapFactory.decodeStream(infile);\n\t\t\t\tinfile.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tLog.i( TAG, \"ERROR: loadImageCache: \" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\tLog.i( TAG, \"ERROR: loadImageCache: \" + e);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n \treturn bitmap;\n\t}",
"private Bitmap downloadBitmap(String url) {\n \tFile bufferFolder = new File(MainActivity.image_cache_dir);\n\t\tif(!bufferFolder.exists()) bufferFolder.mkdirs();\n \t//If it is in the local file, get it from there.\n \tFile imageFile = new File(MainActivity.image_cache_dir + getFileName(url));\n\t\tif(imageFile.exists()) {\n\t\t\tSystem.out.println(\"get image from \" + imageFile.getAbsolutePath());\n\t\t\treturn BitmapFactory.decodeFile(imageFile.getAbsolutePath());\t\t\t\t\t\t\n\t\t}else{\n\t\t\tSystem.out.println(\"image \" + imageFile.getAbsolutePath() + \" doesn't exist!\");\n\t\t}\n \n \tfinal int IO_BUFFER_SIZE = 4 * 1024;\n\n // AndroidHttpClient is not allowed to be used from the main thread\n// final HttpClient client = (mode == Mode.NO_ASYNC_TASK) ? new DefaultHttpClient() :\n// AndroidHttpClient.newInstance(\"Android\");\n// final HttpGet getRequest = new HttpGet(url);\n HttpClient client = new DefaultHttpClient();\n HttpGet getRequest = new HttpGet(url);\n try {\n HttpResponse response = client.execute(getRequest);\n final int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != HttpStatus.SC_OK) {\n Log.w(\"ImageDownloader\", \"Error \" + statusCode +\n \" while retrieving bitmap from \" + url);\n return null;\n }else{\n \tLog.w(\"ImageDownloader\", \"HttpStatus.SC_OK \" + statusCode +\n \" while retrieving bitmap from \" + url);\n }\n\n final HttpEntity entity = response.getEntity();\n if (entity != null) {\n InputStream inputStream = null;\n try {\n inputStream = entity.getContent();\n // return BitmapFactory.decodeStream(inputStream);\n // Bug on slow connections, fixed in future release.\n \n FlushedInputStream flushedInputStream = new FlushedInputStream(inputStream);\n // Need to be fixed: Save the loaded picture directly and transfer into bitmap then.\n FileOutputStream fout = null;\n \t\ttry {\n \t\t\t\tfout = new FileOutputStream(imageFile);\t\t\t\t\n \t\t\t\t /*\n * Read bytes to the Buffer until there is nothing more to read(-1).\n */\n \t\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(512);\n int current = 0;\n while ((current = flushedInputStream.read()) != -1) {\n baf.append((byte) current);\n }\n fout.write(baf.toByteArray()); \n \t\t\t\t//System.out.println(\"bitmap.compress \" + imageFile.getAbsolutePath());\n \t\t} catch (FileNotFoundException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t}finally{\n \t\t\t\tif(fout != null){\n \t\t\t\t\ttry {\n \t\t\t\t\t\tfout.flush();\n \t\t\t\t\t\tfout.close();\n \t\t\t\t\t} catch (IOException e) {\t\t\t\t\t\t\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t}\t\t\t\t\t\n \t\t\t\t}\t \n \t\t\t} \t\t \n //return BitmapFactory.decodeStream(flushedInputStream);\n \t\t\treturn BitmapFactory.decodeFile(imageFile.getAbsolutePath());\n } finally {\n if (inputStream != null) {\n inputStream.close();\n }\n entity.consumeContent();\n }\n }\n } catch (IOException e) {\n getRequest.abort();\n Log.w(LOG_TAG, \"I/O error while retrieving bitmap from \" + url, e);\n } catch (IllegalStateException e) {\n getRequest.abort();\n Log.w(LOG_TAG, \"Incorrect URL: \" + url);\n } catch (Exception e) {\n getRequest.abort();\n Log.w(LOG_TAG, \"Error while retrieving bitmap from \" + url, e);\n } finally {\n if ((client instanceof AndroidHttpClient)) {\n ((AndroidHttpClient) client).close();\n }\n }\n return null;\n }",
"public void saveImageCache(Integer key, Bitmap data)\n {\n synchronized(mLinkedHashMap)\n {\n if(mLinkedHashMap.get(key) == null)\n {\n try\n {\n String cacheKeyStr = String.valueOf(key);\n final String filePath = createFilePath(cacheDirectory, cacheKeyStr);\n if (writeBitmapToFile(data, filePath))\n {\n referenceAdd(key, filePath);\n flushCache();\n }\n }\n catch (IOException e)\n {\n Log.e(\"DiskLruCache\", \"Error in put: \" + e.getMessage());\n }\n }// if (mLinkedHashMap.get(key) == null)\n }// synchronized (mLinkedHashMap)\n }",
"public Drawable getDrawableCache(Integer cacheKey)\n {\n synchronized (mLinkedHashMap)\n {\n Drawable image;\n // Get file from cache\n String file = mLinkedHashMap.get(cacheKey);\n if (file != null)\n {\n image = Drawable.createFromPath(file);\n Log.i(\"DiskLruCache\", \"DiskCacheHit\");\n return image;\n }\n else\n {\n // Construct existing file path\n String cacheKeyStr = String.valueOf(cacheKey);\n String existingFile = createFilePath(cacheDirectory, cacheKeyStr);\n // Get the file using the constructed file path\n assert existingFile != null;\n File existFile = new File(existingFile);\n if (existFile.exists())\n {\n // If the file exists, we will store the the key in reference list\n referenceAdd(cacheKey, existingFile);\n return Drawable.createFromPath(existingFile);\n }\n }\n return null;\n }//synchronized (mLinkedHashMap)\n }",
"@GET\n @Path(\"{factoryId}/image\")\n @Produces(\"image/*\")\n public Response getImage(@PathParam(\"factoryId\") String factoryId, @DefaultValue(\"\") @QueryParam(\"imgId\") String imageId)\n throws FactoryUrlException {\n Set<FactoryImage> factoryImages = factoryStore.getFactoryImages(factoryId, null);\n if (factoryImages == null) {\n LOG.warn(\"Factory URL with id {} is not found.\", factoryId);\n throw new FactoryUrlException(Status.NOT_FOUND.getStatusCode(), \"Factory URL with id \" + factoryId + \" is not found.\");\n }\n if (imageId.isEmpty()) {\n if (factoryImages.size() > 0) {\n FactoryImage image = factoryImages.iterator().next();\n return Response.ok(image.getImageData(), image.getMediaType()).build();\n } else {\n LOG.warn(\"Default image for factory {} is not found.\", factoryId);\n throw new FactoryUrlException(Status.NOT_FOUND.getStatusCode(),\n \"Default image for factory \" + factoryId + \" is not found.\");\n }\n } else {\n for (FactoryImage image : factoryImages) {\n if (image.getName().equals(imageId)) {\n return Response.ok(image.getImageData(), image.getMediaType()).build();\n }\n }\n }\n LOG.warn(\"Image with id {} is not found.\", imageId);\n throw new FactoryUrlException(Status.NOT_FOUND.getStatusCode(), \"Image with id \" + imageId + \" is not found.\");\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t throws ServletException, IOException\r\n\t {\n\t String requestedImage = request.getPathInfo();\r\n\r\n\t // Checkeamos el nombre.\r\n\t if (requestedImage == null) {\r\n\t // si no existe mandamos no found.\r\n\t \r\n\t response.sendError(HttpServletResponse.SC_NOT_FOUND); // 404.\r\n\t return;\r\n\t }\r\n\r\n\t //se prepara el ogjeto.\r\n\t File image = new File(imagePath, URLDecoder.decode(requestedImage, \"UTF-8\"));\r\n\r\n\t // se comprueba que exista en el sistema de ficheros.\r\n\t if (!image.exists()) {\r\n\t //si no existe mandamos not-found.\r\n\t response.sendError(HttpServletResponse.SC_NOT_FOUND); // 404.\r\n\t return;\r\n\t }\r\n\r\n\t // compobanmos el contenttype\r\n\t String contentType = getServletContext().getMimeType(image.getName());\r\n\r\n\t // comprobamos que sea una imagen\r\n\t if (contentType == null || !contentType.startsWith(\"image\")) {\r\n\t //si no lo es-not-found\r\n\t response.sendError(HttpServletResponse.SC_NOT_FOUND); // 404.\r\n\t return;\r\n\t }\r\n\r\n\t // Iniciamos el servlet response.\r\n\t response.reset();\r\n\t response.setBufferSize(DEFAULT_BUFFER_SIZE);\r\n\t response.setContentType(contentType);\r\n\t response.setHeader(\"Content-Length\", String.valueOf(image.length()));\r\n\t response.setHeader(\"Content-Disposition\", \"inline; filename=\\\"\" + image.getName() + \"\\\"\");\r\n\r\n\t // Preparamos streams.\r\n\t BufferedInputStream input = null;\r\n\t BufferedOutputStream output = null;\r\n\r\n\t try {\r\n\t //Abrimos streams.\r\n\t input = new BufferedInputStream(new FileInputStream(image), DEFAULT_BUFFER_SIZE);\r\n\t output = new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);\r\n\r\n\t // Write escribimos el fichero en el response.\r\n\t byte[] buffer = new byte[DEFAULT_BUFFER_SIZE];\r\n\t int length;\r\n\t while ((length = input.read(buffer)) > 0) {\r\n\t output.write(buffer, 0, length);\r\n\t }\r\n\t } finally {\r\n\t // cerramos streams.\r\n\t close(output);\r\n\t close(input);\r\n\t }\r\n\t }",
"@Override\n\t\t\tpublic Bitmap getBitmap(String url) {\n\t\t\t\treturn cache.get(url);\n\t\t\t}",
"@Override\n public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext) throws IOException {\n if (requestContext.getProperty(CACHE_USED) == null && responseContext.getEntity() instanceof Result) {\n Result result = (Result) responseContext.getEntity();\n String requestPath = requestContext.getUriInfo().getPath();\n\n log.info(\"{} - caching result: {}\", requestPath, result);\n\n cache.putIfAbsent(requestPath, result);\n }\n }",
"public boolean searchCache(String url) {\n\t\tif (imageViewReference != null) {\n\t\t\tImageView imageView = imageViewReference.get();\n\t\t\tif (imageView != null) { \t\n\n\t\t\t\t// check for cached copy\n\t\t\t\tif (cache.containsKey(url)) {\n\n\t\t\t\t\t// set bitmap on image view\n\t\t\t\t\timageView.setImageBitmap(cache.get(url));\n\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public void loadImageToImageView(MyViewHolder holder, int position) {\n String imageUrl = listOfArticles.get(position).getImage().getImageUrl();\n if (getBitmapFromMemCache(imageUrl) != null) {\n holder.imageView.setImageBitmap(mLruCache.get(imageUrl));\n }\n }",
"public void getImage(final String url, final GetImageListener listener) {\n String localFileName = getLocalImageFileName(url);\n final Bitmap image = loadImageFromFile(localFileName);\n if (image == null) { //if image not found - try downloading it from parse\n firebaseModel.getImage(url, new GetImageListener() {\n @Override\n public void onComplete(String url) {\n //2. save the image localy\n String localFileName = getLocalImageFileName(url);\n //Log.d(\"TAG\",\"save image to cache: \" + localFileName);\n saveImageToFile(image,localFileName);\n //3. return the image using the listener\n listener.onComplete(image.toString());\n }\n\n @Override\n public void fail() {\n listener.fail();\n }\n });\n }else {\n //Log.d(\"TAG\",\"OK reading cache image: \" + localFileName);\n listener.onComplete(image.toString());\n }}",
"@Override\n public Bitmap getImage(String url) {\n try {\n if (!taskForUrlAlreadyRunning(url)) {\n imageDownloadTaskMap.put(url, startDownload(url));\n }\n } catch (MalformedURLException e) {\n Log.i(\"ImageDownloadManager\", \"Malformed url\" + url);\n }\n return null;\n }",
"@Override\n\tpublic File getImage(String name) {\n\n\t\tFile returnValue = new File(RestService.imageDirectory + name + \".png\");\n\t\t\n\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t{ \n\t\t return returnValue;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturnValue = new File(RestService.imageDirectory + name + \".jpg\");\n\t\t\t\n\t\t\tif(returnValue.exists() && !returnValue.isDirectory()) \n\t\t\t{ \n\t\t\t return returnValue;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void onResponse(ImageLoader.ImageContainer response, boolean isImmediate) {\n if(response.getBitmap() != null){\n image.setImageBitmap(response.getBitmap());\n }\n }",
"@Override\n public void onResponse(Bitmap response) {\n if (weakReference != null && response != null) {\n ImageView imageView = weakReference.get();\n ImageRequestCustom imageRequestCustom = getImageRequestCustom(imageView);\n if (this == imageRequestCustom && imageView != null) {\n imageView.setImageBitmap(response);\n }\n }\n }",
"private Bitmap getBitmapFromNetwork(String code) {\n\t\ttry {\n\t\t\tBitmap bitmap = NetworkHelper.get().getBitmapFromNetwork(30000, code);\n\t\t\tif (bitmap == null) {\n\t\t\t\tthrow new IOException(\"Cannot GET Bitmap From Network.\");\n\t\t\t}\n\n\t\t\tString imgDirPath = MxApplication.getAppExternalCacheDir();\n\t\t\tFile imgDir = new File(imgDirPath);\n\t\t\tif (!imgDir.exists() || !imgDir.isDirectory()) {\n\t\t\t\tif (!imgDir.mkdirs()) {\n\t\t\t\t\tLog.e(ImageLoader.class.getSimpleName(), \"Cannot Save Image Cause By Creating File Failed.\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFile imgFile = new File(imgDirPath + File.separator + code + IMG_SUFFIX);\n\t\t\tif (!imgFile.exists() || !imgFile.isFile()) {\n\t\t\t\tboolean createFile = false;\n\t\t\t\ttry {\n\t\t\t\t\tcreateFile = imgFile.createNewFile();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tif (!createFile) {\n\t\t\t\t\tLog.e(ImageLoader.class.getSimpleName(), \"Cannot Save Image Cause By Creating File Failed.\");\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(imgFile);\n\t\t\tbitmap.compress(Bitmap.CompressFormat.PNG, 100, outputStream);\n\t\t\tputToBitmapCache(code, bitmap);\n\t\t\treturn bitmap;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (TimeoutException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n public void onLoadingComplete(String imageUri, View view, Bitmap loadedImage) {\n\n MemoryCache cache = ImageLoader.getInstance().getMemoryCache();\n cache.put(imageUri, loadedImage);\n holder.img.setImageBitmap(loadedImage);\n }",
"public interface ImageCache {\n Drawable get(Uri uri);\n\n boolean hasEntry(Uri uri);\n\n void preload(Uri uri);\n\n void purge();\n\n void setImageResolver(NotificationInlineImageResolver notificationInlineImageResolver);\n }",
"private Bitmap imageLoadedFromInternalStorage(String imageName)\n\t{\n\t\ttry {\n\t\t\tFile f=new File(getApplicationContext().getDir(\"imageDir\", MODE_PRIVATE).getPath()+\"/\", imageName.replaceFirst(\"/\", \"\") +\".jpg\");\n\t\t\tBitmap b = BitmapFactory.decodeStream(new FileInputStream(f));\n\t\t\treturn b;\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\ttry{\n\t\t\t\tFile f=new File(getApplicationContext().getDir(\"imageDir\", MODE_PRIVATE).getPath()+\"/\", getLogoID(shopName).replaceFirst(\"/\", \"\") +\".jpg\");\n\t\t\t\tBitmap c = BitmapFactory.decodeStream(new FileInputStream(f));\n\t\t\t\treturn c;\n\t\t\t\t\n\t\t\t} catch (Exception e2)\t{\n\t\t\t\t\n\t\t\t\tint lId = getResources().getIdentifier(\"shoplogo_no_image\", \"drawable\", \"com.loyal3.loyal3\");\n\t\t\t\t\n\t\t\t\tBitmap noImage = BitmapFactory.decodeResource(getResources(), lId);\n\t\t\t\t\n\t\t\t\treturn noImage;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}",
"@Override\n protected Bitmap doInBackground(String... params) {\n imageUrl = params[0];\n ImageView thumbnail = imageViewReference.get();\n try {\n InputStream is = (InputStream) new URL(imageUrl).getContent();\n Bitmap bitmap = ImageCommons.decodeSampledBitmapFromInputStream(is, thumbnail.getWidth(), thumbnail.getHeight());\n addBitmapToMemoryCache(imageUrl, bitmap);\n return bitmap;\n } catch (IOException e) {\n e.printStackTrace();\n }\n catch (Exception e){\n e.printStackTrace();\n }\n\n Log.d(\"myLog\", getClass().getSimpleName() + \" Erro ao fazer download de imagem\");\n return ImageCommons.decodeSampledBitmapFromResource(context.getResources(), R.drawable.ic_launcher, 70, 70);\n }",
"@Override\n public void onComplete(Bitmap bitMap) {\n String localFileName = getLocalImageFileName(url);\n //Log.d(\"TAG\",\"save image to cache: \" + localFileName);\n\n saveImageToFile(bitMap,localFileName);\n //3. return the image using the listener\n listener.onComplete(bitMap);\n }",
"private void getImage() {\n StorageReference storageReference = FirebaseStorage.getInstance().getReference();\n StorageReference photoReference = storageReference.child(\"images/\" + globals.chosenProp);\n\n ImageView imageView = (ImageView) findViewById(R.id.ivImage);\n\n final long ONE_MEGABYTE = 1024 * 1024;\n photoReference.getBytes(ONE_MEGABYTE).addOnSuccessListener(new OnSuccessListener<byte[]>() {\n @Override\n public void onSuccess(byte[] bytes) {\n Bitmap bmp = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);\n imageView.setImageBitmap(bmp);\n\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception exception) {\n Toast.makeText(getApplicationContext(), \"No Such file or Path found!\", Toast.LENGTH_LONG).show();\n }\n });\n }",
"public void setRemoteImage(ImageView imageView, String url, int position) {\r\n\t\tif(imageView == null) {\r\n\t\t\tLog.w(TAG, \"setRemoteImage() imageView == null.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\timageView.setTag(url);\r\n\t\tif(url == null || url.equals(\"\")) {\r\n\t\t\tLog.w(TAG, \"setRemoteImage() url == null or url is empty.\");\r\n\t\t\timageView.setImageBitmap(getLoadingImage());\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tBitmap bitmap = mImageCacheHelper.getImage(url);\r\n\t\tif (bitmap != null) {\r\n\t\t\tLog.d(TAG, \"setRemoteImage() found image from cache.\");\r\n\t\t\timageView.setImageBitmap(bitmap);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\timageView.setImageBitmap(getLoadingImage());\r\n\t\tif (isFling()) {\r\n\t\t\t// No need to load image when lazy load is set true and the ListView is fling(not touch scroll).\r\n\t\t\tLog.v(TAG, \"AbsListView is fling, no need to load remote image.\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// bitmap is null, that means never download or downloading or bitmap has been GC(no local copy) or download failed.\r\n\t\tDownloadTaskStatus status = mTaskStatus.get(url);\r\n\t\tboolean needNewTask = false;\r\n\t\tif(status != null) {\r\n\t\t\tif(status == DownloadTaskStatus.PENDING || status == DownloadTaskStatus.RUNNING) {\r\n\t\t\t\t// downloading, not need to run another task to download the same image.\r\n\t\t\t\tLog.v(TAG, \"Position \" + position + \" is downloading. No need to load another one.\");\r\n\t\t\t} else if(status == DownloadTaskStatus.SUCCESS) {\r\n\t\t\t\t// download success but image not found, that means bitmap has been GC(no local copy).\r\n\t\t\t\tLog.w(TAG, \"position \" + position + \" has been GC. Reload it.\");\r\n\t\t\t\tneedNewTask = true;\r\n\t\t\t} else if(status == DownloadTaskStatus.FAILED) {\r\n\t\t\t\t// download failed.\r\n\t\t\t\tif(mReloadIfFailed) {\r\n\t\t\t\t\tLog.w(TAG, \"position \" + position + \" download failed. Reload it.\");\r\n\t\t\t\t\tmTaskStatus.remove(url);\r\n\t\t\t\t\tneedNewTask = true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tLog.d(TAG, \"position \" + position + \" download failed. ReloadIfFailed false, no need to reload it.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// never download.\r\n\t\t\tLog.w(TAG, \"position \" + position + \" never download. Load it.\");\r\n\t\t\tneedNewTask = true;\r\n\t\t}\r\n\t\tif(needNewTask) {\r\n\t\t\tLog.d(TAG, \"setRemoteImage() for position \" + position + \" with url \" + url);\r\n\t\t\tnew ImageDownloadTask(mViewGroup, url).execute();\r\n\t\t}\r\n\t}",
"public Bitmap getCacheImage(String tag) {\n return getCacheImage(0, 0, tag);\n }",
"Map getImageCode(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;",
"public Image execute(ImageInfo info, Image originalImage, Map hints, ImageSessionContext context) throws ImageException, IOException {\n/* 118 */ if (hints == null) {\n/* 119 */ hints = Collections.EMPTY_MAP;\n/* */ }\n/* 121 */ long start = System.currentTimeMillis();\n/* 122 */ Image img = null;\n/* */ \n/* */ \n/* 125 */ Image lastCacheableImage = null;\n/* */ \n/* 127 */ int converterCount = this.converters.size();\n/* 128 */ int startingPoint = 0;\n/* 129 */ if (this.cache != null) {\n/* 130 */ for (int i = converterCount - 1; i >= 0; i--) {\n/* 131 */ ImageConverter converter = getConverter(i);\n/* 132 */ ImageFlavor flavor = converter.getTargetFlavor();\n/* 133 */ img = this.cache.getImage(info, flavor);\n/* 134 */ if (img != null) {\n/* 135 */ startingPoint = i + 1;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 140 */ if (img == null && this.loader != null) {\n/* */ \n/* 142 */ ImageFlavor flavor = this.loader.getTargetFlavor();\n/* 143 */ img = this.cache.getImage(info, flavor);\n/* */ } \n/* */ } \n/* 146 */ if (img == null && originalImage != null) {\n/* 147 */ img = originalImage;\n/* */ }\n/* */ \n/* 150 */ boolean entirelyInCache = true;\n/* */ \n/* 152 */ if (img == null && this.loader != null) {\n/* */ \n/* 154 */ img = this.loader.loadImage(info, hints, context);\n/* 155 */ if (log.isTraceEnabled()) {\n/* 156 */ long duration = System.currentTimeMillis() - start;\n/* 157 */ log.trace(\"Image loading using \" + this.loader + \" took \" + duration + \" ms.\");\n/* */ } \n/* */ \n/* */ \n/* 161 */ entirelyInCache = false;\n/* 162 */ if (img.isCacheable()) {\n/* 163 */ lastCacheableImage = img;\n/* */ }\n/* */ } \n/* 166 */ if (img == null) {\n/* 167 */ throw new ImageException(\"Pipeline fails. No ImageLoader and no original Image available.\");\n/* */ }\n/* */ \n/* */ \n/* 171 */ if (converterCount > 0) {\n/* 172 */ for (int i = startingPoint; i < converterCount; i++) {\n/* 173 */ ImageConverter converter = getConverter(i);\n/* 174 */ start = System.currentTimeMillis();\n/* 175 */ img = converter.convert(img, hints);\n/* 176 */ if (log.isTraceEnabled()) {\n/* 177 */ long duration = System.currentTimeMillis() - start;\n/* 178 */ log.trace(\"Image conversion using \" + converter + \" took \" + duration + \" ms.\");\n/* */ } \n/* */ \n/* */ \n/* 182 */ entirelyInCache = false;\n/* 183 */ if (img.isCacheable()) {\n/* 184 */ lastCacheableImage = img;\n/* */ }\n/* */ } \n/* */ }\n/* */ \n/* */ \n/* */ \n/* 191 */ if (this.cache != null && !entirelyInCache) {\n/* 192 */ if (lastCacheableImage == null)\n/* */ {\n/* 194 */ lastCacheableImage = forceCaching(img);\n/* */ }\n/* 196 */ if (lastCacheableImage != null) {\n/* 197 */ if (log.isTraceEnabled()) {\n/* 198 */ log.trace(\"Caching image: \" + lastCacheableImage);\n/* */ }\n/* 200 */ this.cache.putImage(lastCacheableImage);\n/* */ } \n/* */ } \n/* 203 */ return img;\n/* */ }",
"@Override\n protected void onPostExecute(Bitmap result) {\n progressBar.setVisibility(View.INVISIBLE);\n if(result!=null)\n imageView.setImageBitmap(result);\n else\n Toast.makeText(DisplayItem.this, \"Image Does Not exist or Network Error\", Toast.LENGTH_SHORT).show();\n }",
"protected Bitmap getImage(URL url) {\n\n HttpURLConnection iconConn = null;\n try {\n iconConn = (HttpURLConnection) url.openConnection();\n iconConn.connect();\n int response = iconConn.getResponseCode();\n //if the reponse 200 the successfull\n if (response == 200) {\n return BitmapFactory.decodeStream(iconConn.getInputStream());\n } else {\n return null;\n }\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n } finally {\n if (iconConn != null) {\n iconConn.disconnect();\n }\n }\n }",
"public Image getImage(URL paramURL, String paramString) {\n/* */ try {\n/* 298 */ return getImage(new URL(paramURL, paramString));\n/* 299 */ } catch (MalformedURLException malformedURLException) {\n/* 300 */ return null;\n/* */ } \n/* */ }",
"public Image getImageById(final String imageId)\n {\n GetImageByIdQuery getImageByIdQuery = new GetImageByIdQuery(imageId);\n List<Image> ImageList = super.queryResult(getImageByIdQuery);\n if (CollectionUtils.isEmpty(ImageList) || ImageList.size() > 1)\n {\n LOG.error(\"The Image cannot be found by this id:\" + imageId);\n return null;\n }\n return ImageList.get(0);\n }",
"final public void doGet(ServerTask task, HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n String imageName = req.getParameter(\"image\");\n if (imageName != null) {\n if (task == null) {\n throw new ServletException(\"Task undefined!\");\n }\n // send image\n ByteArrayOutputStream stream = new ByteArrayOutputStream(32*1024);\n boolean localFileDefined = false;\n Map data = (Map)dataFileNames.get(new Integer(task.getId()));\n if (data != null) {\n String fileName = (String)data.get(imageName);\n if (fileName != null) {\n localFileDefined = true;\n FileInputStream in = null;\n try {\n File fileTmp = new File(fileName + \".$$$\");\n File file = new File(fileName);\n if ((fileTmp.exists() || file.exists()) && System.currentTimeMillis()-file.lastModified() < 129600000) { // 36 hours\n // check if a temporary file with extension \".$$$\" exists and wait up to 10 seconds\n for (int i = 0; i < 10 && fileTmp.exists(); ++i) {\n try {\n Thread.sleep(1000); // wait 1 second\n } catch (InterruptedException ex) {\n }\n }\n in = new FileInputStream(file);\n stream.reset();\n StreamUtils.writeData(in, stream, false, true);\n }\n } catch (Exception e) {\n } finally {\n StreamUtils.close(in);\n }\n }\n }\n if (!localFileDefined) {\n Connection con = null;\n Statement stmt = null;\n try {\n con = servlet.getConnection();\n stmt = con.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT data,last_update,update_interval FROM zeta.data WHERE task_id=\" + task.getId()\n + \" AND class_name='\" + getClass().getName() + \"' AND type='\" + imageName + '\\'');\n if (rs.next()) {\n InputStream in = rs.getBinaryStream(1);\n Timestamp t = rs.getTimestamp(2);\n /*if (in == null && t == null) { // create first time only, i.e. data or last_update is null\n rs.close();\n synchronized (this) {\n rs = stmt.executeQuery(\"SELECT last_update FROM zeta.data WHERE task_id=\" + task.getId()\n + \" AND class_name='\" + getClass().getName() + \"' AND type='\" + imageName + \"' AND last_update IS NULL\");\n boolean createPage = (rs.next());\n rs.close();\n if (createPage) {\n BufferedImage image = createImage(task.getId(), con, imageName);\n if (image == null) {\n throw new ServletException(\"No image available!\");\n }\n stream.reset();\n // ToDo: only PNG format is supported for images\n com.sun.jimi.core.encoder.png.PNGEncoder encoder = new com.sun.jimi.core.encoder.png.PNGEncoder();\n encoder.encodeImage(com.sun.jimi.core.Jimi.createRasterImage(image.getSource()), stream);\n stream.close();\n Timestamp timestamp = new Timestamp(System.currentTimeMillis());\n pStmt = con.prepareStatement(\"UPDATE zeta.data SET (last_update,data)=('\" + timestamp.toString()\n + \"',?) WHERE task_id=\" + task.getId()\n + \" AND class_name='\" + getClass().getName() + \"' AND type='\" + imageName + '\\'');\n pStmt.setBytes(1, stream.toByteArray());\n pStmt.execute();\n }\n }\n } else*/ if (in != null && t != null && System.currentTimeMillis()-t.getTime() < 4*rs.getInt(3)+129600000) { // 4 times of update interval plus 36 hours\n stream.reset();\n StreamUtils.writeData(in, stream, false, true);\n rs.close();\n }\n }\n } catch (SQLException e) {\n throw new ServletException(e);\n } finally {\n DatabaseUtils.close(stmt);\n DatabaseUtils.close(con);\n }\n }\n resp.setContentType(\"image/png\");\n resp.setContentLength(stream.size());\n resp.setHeader(\"Cache-Control\", \"max-age=3600\"); //1 hour\n stream.writeTo(resp.getOutputStream());\n //resp.getWriter().print(stream.toString(resp.getCharacterEncoding()));\n } else /*if (req.getParameter(\"page\") != null)*/ {\n // send page\n try {\n StringBuffer buffer = new StringBuffer(100*1024);\n buffer.append(\"<tr><td><br><form type=\\\"GET\\\" action=\\\"\");\n String servletPath = servlet.getRootPath() + servlet.getHandlerPath(getClass());\n buffer.append(servletPath);\n buffer.append(\"\\\">\");\n Map parameters = req.getParameterMap();\n Iterator iter = parameters.keySet().iterator();\n while (iter.hasNext()) {\n String param = (String)iter.next();\n if (!param.equals(\"task\")) {\n buffer.append(\"<input name=\\\"\");\n buffer.append(param);\n buffer.append(\"\\\" type=\\\"hidden\\\" value=\\\"\");\n buffer.append(parameters.get(param));\n buffer.append(\"\\\">\");\n }\n }\n\n buffer.append(\"Task name: <select name=\\\"task\\\">\");\n iter = servlet.getTaskManager().getServerTasks();\n while (iter.hasNext()) {\n ServerTask serverTask = (ServerTask)iter.next();\n if (task == null) {\n task = serverTask;\n }\n buffer.append(\"<option value=\\\"\");\n buffer.append(serverTask.getName());\n buffer.append((serverTask.getId() == task.getId())? \"\\\" selected>\" : \"\\\">\");\n buffer.append(serverTask.getName());\n }\n buffer.append(\"</select> <input type=\\\"submit\\\" value=\\\"Select\\\"></form></td></tr><tr><td><small> </small></td></tr>\");\n if (isAllLocalAvailable) {\n buffer.append(createPage((task == null)? 0 : task.getId(), req, null));\n } else {\n Connection con = null;\n String dbError = \"The back-end database server is down.\";\n try {\n con = servlet.getConnection();\n dbError = null;\n buffer.append(createPage((task == null)? 0 : task.getId(), req, con));\n } catch (SQLException se) {\n dbError = se.getMessage();\n servlet.log(se);\n } catch (ServletException se) {\n dbError = se.getMessage();\n servlet.log(se);\n } finally {\n DatabaseUtils.close(con);\n }\n if (dbError != null) {\n buffer.append(\"<tr><td>This statistic is not available at moment (\");\n buffer.append(dbError);\n buffer.append(\")!<p>Please try again later.</p></td></tr>\");\n }\n }\n resp.setContentType(\"text/html\");\n resp.setContentLength(buffer.length());\n resp.setHeader(\"Cache-Control\", \"max-age=600\"); //10 minutes\n resp.getWriter().print(buffer.toString());\n } catch (ServletException e) {\n throw e;\n } catch (Exception e) {\nservlet.log(e);\n throw new ServletException(e);\n }\n }\n }",
"private void createImageCache(){\n ImageCacheManager.getInstance().init(this,\n this.getPackageCodePath()\n , DISK_IMAGECACHE_SIZE\n , DISK_IMAGECACHE_COMPRESS_FORMAT\n , DISK_IMAGECACHE_QUALITY\n , ImageCacheManager.CacheType.MEMORY);\n }",
"private Bitmap getBitmap(String url) {\n File file = diskCache.getData(url);\n Bitmap bitmap = decode(file);\n if (bitmap == null) {\n // If no then load it\n bitmap = loadAndCacheBitmap(file, url);\n } else {\n Log.d(\"HIHO\", \"bitmap from memory\");\n }\n\n return bitmap;\n }",
"@Override\n public void run() {\n if (imageViewReused(loadDataHolder))\n return;\n // Download image from web url\n Bitmap bitmap = getBitmap(loadDataHolder.getUrl());\n\n // Save to cache\n if (bitmap != null) {\n memoryCache.put(loadDataHolder.getUrl(), bitmap);\n }\n\n if (imageViewReused(loadDataHolder))\n return;\n\n // Get bitmap to display\n BitmapDisplayRunnable displayRunnable =\n new BitmapDisplayRunnable(bitmap, loadDataHolder);\n\n // Post message to handler associated with UI thread\n handler.post(displayRunnable);\n }",
"public ImageContainer getImage(String username, String imageName) {\r\n\t\tImageContainer ic;\r\n\t\tPoint p = StaticFunctions.hashToPoint(username, imageName);\r\n\t\t//If the image is saved on the bootstrap, loadImageContainer, otherwise start routing to the destinationPeer \r\n\t\tif(lookup(p)) {\r\n\t\t\ttry {\r\n\t\t\t\tic = loadImageContainer(username, imageName);\r\n\t\t\t\treturn ic;\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tString destinationPeerIP = routing(p).getIp_adresse();\r\n\t\t\tImage img = new PeerClient().getImage(destinationPeerIP, username, imageName);\r\n\t\t if(img != null) {\r\n\t\t \t ic = RestUtils.convertImgToIc(img);\r\n\t\t \t return ic;\r\n\t\t }\r\n\t\t}\r\n\t\treturn null;\r\n\t\t\r\n\t}",
"public void saveImageFromURL(final CacheLoaderCallBack callBack) {\n Executors.newFixedThreadPool(1).execute(new Runnable() {\n @Override\n public void run() {\n if (context != null) {\n OutputStream os = null;\n InputStream is = null;\n final File file = new File(context.getExternalFilesDir(null), pictureName);\n\n try {\n URL url = new URL(loadUrl);\n httpConnection = (HttpURLConnection) url.openConnection();\n httpConnection.setDoInput(true);\n httpConnection.connect();\n is = httpConnection.getInputStream();\n Bitmap bit = BitmapFactory.decodeStream(is);\n os = new FileOutputStream(file);\n bit.compress(Bitmap.CompressFormat.JPEG, 85, os);\n is.close();\n os.close();\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n callBack.onSuccess();\n }\n };\n new Handler(Looper.getMainLooper()).post(runnable);\n httpConnection.disconnect();\n } catch (final IOException e) {\n Log.w(\"ExternalStorage\", \"Error writing \" + file, e);\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n callBack.onError(e.getMessage());\n }\n };\n new Handler(Looper.getMainLooper()).post(runnable);\n } finally {\n if (httpConnection != null) {\n httpConnection.disconnect();\n try {\n os.flush();\n os.close();\n is.close();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n });\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString name = req.getParameter(IMAGE_NAME);\n\t\tString imageSize = req.getParameter(IMAGE_SIZE);\n\n\t\tresp.setContentType(\"image/jpeg\");\n\n\t\tPath imgPath = null;\n\t\tif (imageSize.equals(THUMBNAIL)) {\n\t\t\timgPath = Paths.get(getServletContext().getRealPath(THUMBNAILS_FILE)).resolve(name);\n\t\t} else {\n\t\t\timgPath = Paths.get(getServletContext().getRealPath(BASE_RESOURCES)).resolve(name);\n\t\t}\n\n\t\tBufferedImage bi = ImageIO.read(imgPath.toFile());\n\t\tOutputStream out = resp.getOutputStream();\n\t\tImageIO.write(bi, \"jpg\", out);\n\t\tout.close();\n\t}",
"public void update(BaseImageObject result) {\n mImageObject = result;\n\n // Try to get product image from LRCCache\n String imageUrl = result.getImageThumbnailUrl();\n if (imageUrl != null) {\n Bitmap productImageBitmap = (Bitmap) LRUCache.getValue(imageUrl);\n if (productImageBitmap != null) {\n Utils.updateImageWithDrawable(productImageBitmap, mImageView);\n } else if (mImageObject != null) {\n // If get nothing from LRCCache, fetch the image by BitmapFetcher \n getImageFromBackground(mImageObject.getImageThumbnailUrl());\n \n } \n } else {\n mImageView.setImageResource(R.drawable.noimage);\n }\n \n if (mImageObject != null) {\n mImageText.setText(mImageObject.getImageName());\n }\n }",
"protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == 7 && resultCode == RESULT_OK) {\n\n Bitmap bitmap = (Bitmap) data.getExtras().get(\"data\");\n currentBitMap = bitmap;\n imageView.setImageBitmap(bitmap);\n }\n\n try {\n if (requestCode == IMG_RESULT && resultCode == RESULT_OK && data != null) {\n Uri URI = data.getData();\n String[] FILE = {MediaStore.Images.Media.DATA};\n\n Cursor cursor = getContentResolver().query(URI, FILE, null, null, null);\n cursor.moveToFirst();\n\n int columnIndex = cursor.getColumnIndex(FILE[0]);\n String ImageDecode = cursor.getString(columnIndex);\n cursor.close();\n\n currentBitMap = BitmapFactory.decodeFile(ImageDecode);\n imageView.setImageBitmap(currentBitMap);\n }\n } catch (Exception e) {\n Toast.makeText(this, \"Please try again\", Toast.LENGTH_LONG)\n .show();\n }\n }",
"public boolean checkCache(HttpServletRequest request, HttpServletResponse response, File file) throws IOException\n {\n String requestIfModifiedSince = request.getHeader(IF_MODIFIED_SINCE);\n Date lastModified = new Date(file.lastModified());\n try {\n if(requestIfModifiedSince!=null){\n Date requestDate = getDateFromHttpDate(requestIfModifiedSince);\n if (file != null)\n if (!requestDate.before(lastModified))\n { // Not modified since last time\n response.setHeader(LAST_MODIFIED, request.getHeader(IF_MODIFIED_SINCE));\n response.sendError(HttpServletResponse.SC_NOT_MODIFIED);\n return true; // Success - use your cached copy\n }\n }\n } catch (ParseException e) {\n // Fall through\n }\n // If they want it again, send them my cached copy\n if ((file == null) || (!file.exists()))\n return false; // Error - cache doesn't exist\n response.addHeader(LAST_MODIFIED, getHttpDate(lastModified));\n \n InputStream inStream = new FileInputStream(file);\n OutputStream writer = response.getOutputStream();\n copyStream(inStream, writer);\n inStream.close();\n writer.close();\n return true; // Success - I returned the cached copy\n }",
"@Override\n\t\t\tpublic void onBizSuccess(String responseDescription, JSONObject data, String flag) {\n\t\t\t\ttry {\n\t\t\t\t\tString image_url = data.getString(\"image_url\");\n\t\t\t\t\tImageUtil.drawImageFromUri(image_url, img);\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void filter(ContainerRequestContext requestContext) throws IOException {\n String requestPath = requestContext.getUriInfo().getPath();\n\n Result cachedResult = cache.get(requestPath);\n if (cachedResult != null) {\n log.info(\"{} - responding with cached result: {}\", requestPath, cachedResult);\n\n requestContext.setProperty(CACHE_USED, Boolean.TRUE);\n\n requestContext.abortWith(\n Response.ok(cachedResult).type(MediaType.APPLICATION_JSON).build());\n } else {\n log.info(\"{} - no result in cache\", requestPath);\n }\n }",
"@Test\n void readImage() throws Exception {\n ResultActions resultActions = mockMvc.perform(get(\"/v1/file/image-byte\")\n .param(\"name\", \"icon.jpg\")\n .contentType(MediaType.TEXT_PLAIN_VALUE))\n .andDo(resultHandler -> {\n String path = writeFile(resultHandler.getResponse().getContentAsByteArray(), \".jpg\");\n logger.debug(\"Image File recorded locally at: \" + path);\n }\n );\n\n resultActions\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.IMAGE_JPEG_VALUE))\n ;\n }",
"public Bitmap getFromCache(final String key) {\n\n\t\ttry {\n\t\t\tif (Constants.CACHE_DIR_PATH.endsWith(\"/\"))\n\t\t\t\treturn BitmapFactory.decodeFile(Constants.CACHE_DIR_PATH + key);\n\t\t\telse\n\t\t\t\treturn BitmapFactory.decodeFile(Constants.CACHE_DIR_PATH + \"/\"\n\t\t\t\t\t\t+ key);\n\t\t} catch (Error e) {\n\n\t\t\t//Logs.show(e);\n\n\t\t}\n\t\treturn null;\n\t}",
"static CacheResult createCacheFile(String url, int statusCode,\n Headers headers, String mimeType, boolean forceCache) {\n // This method is public but hidden. We break functionality.\n return null;\n }",
"@RequestMapping(\"/user.imagecode\")\n public void getImageCode(HttpSession session, HttpServletResponse response) throws Exception {\n String vericode = VerificationCode.getSecurityCode();\n session.setAttribute(\"verityCode\", vericode);\n // 设置返回的内容\n response.setContentType(\"img/jpeg\");\n // 浏览器不缓存响应内容--验证码图片,点一次就要刷新一次,所以不能有缓存出现\n response.setHeader(\"Pragma\", \"No-cache\");\n response.setHeader(\"Cache-Control\", \"no-cache\");\n // 设置验证码失效时间\n response.setDateHeader(\"Expires\", 0);\n // 以字节流发过去,交给img的src属性去解析即可\n ImageIO.write(new CreateVerificationCodeImage(vericode).createImage(), \"JPEG\", response.getOutputStream());\n }",
"private void downloadingImage(Intent intent) {\n Bitmap bitmap = null;\n InputStream in = null;\n int responseCode = -1;\n\n String urlPath = intent.getStringExtra(URL);\n\n String fileName = intent.getStringExtra(FILENAME);\n\n /*7.2 mb on web and 15.85 mb on mobile image file*/\n String s = \"https://upload.wikimedia.org/wikipedia/commons/0/05/Sambro_Island_Lighthouse_%282%29.jpg\";\n\n try {\n\n URL url = new URL(urlPath);//params[0]\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.connect();\n responseCode = httpURLConnection.getResponseCode();\n if (responseCode == HttpURLConnection.HTTP_OK) {\n in = httpURLConnection.getInputStream();\n bitmap = BitmapFactory.decodeStream(in);\n in.close();\n\n if (bitmap != null) {\n // successfully finished\n result = Activity.RESULT_OK;\n saveImage(bitmap, fileName);\n } else {\n publishResults(fileName, result);\n }\n }\n\n } catch (MalformedURLException e) {\n publishResults(fileName, Activity.RESULT_CANCELED);\n e.printStackTrace();\n } catch (IOException e) {\n publishResults(fileName, Activity.RESULT_CANCELED);\n e.printStackTrace();\n } catch (Exception e) {\n publishResults(fileName, Activity.RESULT_CANCELED);\n Log.v(TAG, \"Exception : \" + e.getMessage());\n }\n }",
"protected Image retrieveImage(String imageLocationPath) {\t\n\t\tImage image = null;\n\t\ttry {\n\t\t\timage = new Image(imageLocationPath);\n\t\t}\n\t\tcatch (NullPointerException | IllegalArgumentException e) {\n\t\t\tnew ErrorHandler(\"Fatal error displaying media\");\n\t\t}\n\t\t\n\t\treturn image;\n }",
"public static Drawable LoadImageFromWebOperations(String url, File cacheDir) {\n\t\ttry {\n\t\t\tDrawable d = null;\n\t\t\tString[] urlDir = url.split(\"/\");\n\t\t\tint sizeMax=600;\n\t\t\ttry {\n\t\t\t\t// File cacheDir = new File(ruta+File.separator+ urlDir[8]);\n\t\t\t\tif (!cacheDir.exists()) {\n\t\t\t\t\tcacheDir.mkdirs();\n\n\t\t\t\t}\n\t\t\t\tFile cacheDirName = new File(cacheDir + File.separator\n\t\t\t\t\t\t+ urlDir[urlDir.length - 1]);\n\n\t\t\t\tif (!cacheDirName.exists() || cacheDirName.length() == 0) {\n\t\t\t\t\tcacheDirName.createNewFile();\n\t\t\t\t\tInputStream is = (InputStream) new URL(url).getContent();\n\t\t\t\t\tBitmap bit = BitmapFactory.decodeStream(is);\n\t\t\t\t\t//Alto\n\t\t\t\t\tBitmap bit2=null;\n\t\t\t\t\tFileOutputStream fo = new FileOutputStream(cacheDirName);\n\t\t\t\t\t// Drawable d = Drawable.createFromStream(is, \"src name\");\n\t\t\t\t\tif(bit.getHeight()>sizeMax){\n\t\t\t\t\t\tbit2=Bitmap.createScaledBitmap(bit,(sizeMax*bit.getWidth()/bit.getHeight()), sizeMax, false);\n\t\t\t\t\t\tbit2.compress(CompressFormat.JPEG, 95, fo);\n\t\t\t\t\t}else if(bit.getWidth()>sizeMax){\n\t\t\t\t\t\tbit2=Bitmap.createScaledBitmap(bit,sizeMax, (sizeMax* bit.getHeight()/bit.getWidth()), false);\n\t\t\t\t\t\tbit2.compress(CompressFormat.JPEG, 95, fo);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbit.compress(CompressFormat.JPEG, 95, fo);\n\t\t\t\t\t}\n\n\t\t\t\t\tif(Constants.DEBUG) Log.v(Constants.TAG,\"Url: \"+cacheDir + File.separator\n\t\t\t\t\t\t\t+ urlDir[urlDir.length - 1]);\n\t\t\t\t\tif(Constants.DEBUG) Log.v(Constants.TAG,\"Ancho y alto: \"+(bit.getWidth()+\" \"+bit.getHeight()));\n\t\t\t\t\tif(Constants.DEBUG) Log.v(Constants.TAG,\"Size1: \"+(bit.getRowBytes()*bit.getHeight()));\n\t\t\t\t\tbit.recycle();\n\t\t\t\t\tif(bit2!=null){\n\t\t\t\t\t\tif(Constants.DEBUG) Log.v(Constants.TAG,\"Size2: \"+(bit2.getRowBytes()*bit2.getHeight()));\n\t\t\t\t\t\tbit2.recycle();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.gc();\n\t\t\t\tRuntime.getRuntime().gc();\n\t\t\t\td = Drawable.createFromPath(cacheDirName.getPath());\n\t\t\t} catch (OutOfMemoryError e) {\n\t\t\t\tSystem.gc();\n\t\t\t\tRuntime.getRuntime().gc();\n\t\t\t}\n\t\t\t//\n\n\t\t\treturn d;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"private static void readFromCache(com.facebook.internal.ImageDownloader.RequestKey r2, android.content.Context r3, boolean r4) {\n /*\n r0 = 0;\n r1 = 0;\n if (r4 == 0) goto L_0x0014;\n L_0x0004:\n r4 = r2.uri;\n r4 = com.facebook.internal.UrlRedirectCache.getRedirectedUri(r4);\n if (r4 == 0) goto L_0x0014;\n L_0x000c:\n r4 = com.facebook.internal.ImageResponseCache.getCachedImageStream(r4, r3);\n if (r4 == 0) goto L_0x0015;\n L_0x0012:\n r0 = 1;\n goto L_0x0015;\n L_0x0014:\n r4 = r1;\n L_0x0015:\n if (r0 != 0) goto L_0x001d;\n L_0x0017:\n r4 = r2.uri;\n r4 = com.facebook.internal.ImageResponseCache.getCachedImageStream(r4, r3);\n L_0x001d:\n if (r4 == 0) goto L_0x002a;\n L_0x001f:\n r3 = android.graphics.BitmapFactory.decodeStream(r4);\n com.facebook.internal.Utility.closeQuietly(r4);\n issueResponse(r2, r1, r3, r0);\n goto L_0x0039;\n L_0x002a:\n r3 = removePendingRequest(r2);\n if (r3 == 0) goto L_0x0039;\n L_0x0030:\n r4 = r3.isCancelled;\n if (r4 != 0) goto L_0x0039;\n L_0x0034:\n r3 = r3.request;\n enqueueDownload(r3, r2);\n L_0x0039:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.internal.ImageDownloader.readFromCache(com.facebook.internal.ImageDownloader$RequestKey, android.content.Context, boolean):void\");\n }",
"@Override\r\n public void handleMessage(Message msg) {\n ImgBeanHolder holder= (ImgBeanHolder) msg.obj;\r\n Bitmap bitmap = holder.bitmap;\r\n ImageView imageview= holder.imageView;\r\n String path = holder.path;\r\n if (imageview.getTag().toString().equals( path)){\r\n imageview.setImageBitmap(bitmap);\r\n }\r\n }",
"@Override\n public void onComplete(String url) {\n String localFileName = getLocalImageFileName(url);\n //Log.d(\"TAG\",\"save image to cache: \" + localFileName);\n saveImageToFile(image,localFileName);\n //3. return the image using the listener\n listener.onComplete(image.toString());\n }",
"com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();",
"static public void readRepository(){\n File cache_file = getCacheFile();\n if (cache_file.exists()) {\n try {\n // Read the cache acutally\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n Document document = builder.parse(cache_file);\n NodeList images_nodes = document.getElementsByTagName(\"image\");\n for (int i = 0; i < images_nodes.getLength(); i++) {\n Node item = images_nodes.item(i);\n String image_path = item.getTextContent();\n File image_file = new File(image_path);\n if (image_file.exists()){\n AppImage image = Resources.loadAppImage(image_path);\n images.add(image);\n }\n }\n }\n catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n }",
"public void loadTo(String url, ImageView imageView) {\n relationsMap.put(imageView, url);\n\n // If image already cached just show it\n Bitmap bitmap = memoryCache.getData(url);\n if (bitmap != null) {\n Log.d(\"HIHO\", \"bitmap from memory\");\n imageView.setImageBitmap(bitmap);\n } else {\n loadAndDisplay(url, imageView);\n }\n }",
"private static void putInPersistentCache(final Asset asset) {\n \n \t\tif (!usePersistentCache) {\n \t\t\treturn;\n \t\t}\n \n \t\tif (!assetIsInPersistentCache(asset)) {\n \n \t\t\tfinal File assetFile = getAssetCacheFile(asset);\n \n \t\t\tnew Thread() {\n \t\t\t\t@Override\n \t\t\t\tpublic void run() {\n \n \t\t\t\t\ttry {\n \t\t\t\t\t\tassetFile.getParentFile().mkdirs();\n \t\t\t\t\t\t// Image\n \t\t\t\t\t\tOutputStream out = new FileOutputStream(assetFile);\n \t\t\t\t\t\tout.write(asset.getImage());\n \t\t\t\t\t\tout.close();\n \n \t\t\t\t\t} catch (IOException ioe) {\n \t\t\t\t\t\tlog.error(\"Could not persist asset while writing image data\", ioe);\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}.start();\n \n \t\t}\n \t\tif (!assetInfoIsInPersistentCache(asset)) {\n \n \t\t\tFile infoFile = getAssetInfoFile(asset);\n \n \t\t\ttry {\n \t\t\t\t// Info\n \t\t\t\tOutputStream out = new FileOutputStream(infoFile);\n \t\t\t\tProperties props = new Properties();\n \t\t\t\tprops.put(NAME, asset.getName() != null ? asset.getName() : \"\");\n \t\t\t\tprops.store(out, \"Asset Info\");\n \t\t\t\tout.close();\n \n \t\t\t} catch (IOException ioe) {\n \t\t\t\tlog.error(\"Could not persist asset while writing image properties\", ioe);\n \t\t\t\treturn;\n \t\t\t}\n \n \t\t}\n \t}",
"@Override\n public boolean onResourceReady(GlideDrawable resource,\n String model,\n Target<GlideDrawable> target,\n boolean isFromMemoryCache,\n boolean isFirstResource) {\n imageView.setTag(imageUrl);\n return false;\n }",
"@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String fileName = defaultImage;\n Result<String> result;\n try {\n UserService userService = UserServiceFactory.getUserService();\n DatastoreService datastore = DatastoreServiceFactory.getDatastoreService();\n\n String userId = userService.getCurrentUser().getUserId();\n Key userKey = KeyFactory.createKey(\"User\", userId);\n Entity userEntity = datastore.get(userKey);\n fileName = (String) userEntity.getProperty(\"avatarName\");\n result = new Result<String>(true, \"File name successsfully retrieved\", fileName);\n } catch (EntityNotFoundException e) {\n result = new Result<String>(false, \"Error: User is not logged in!\");\n }\n\n Gson gson = new Gson();\n\n // Respond with the user details.\n response.setContentType(\"application/json;\");\n response.getWriter().println(gson.toJson(result));\n }",
"@Override\r\n\tprotected String doInBackground(Integer... arg0) {\n\t\tmData.loadSpecificImage(mImageName, mImageView);\r\n\t\treturn null;\r\n\t}",
"@Override\n public void onHttpResponseReceived(Bitmap response, Params<Bitmap> params) {\n if(null != mBitmapFetcher && !mBitmapFetcher.isCancelled()){\n final String baseUrl = params.getUrl();\n if (baseUrl.equals(mImageObject.getImageThumbnailUrl())) {\n Utils.updateImageWithDrawable(response, mImageView);\n }\n mBitmapFetcher = null;\n }\n }",
"private byte[] queryImageAnswer() throws IOException\r\n {\r\n assertEquals(TimeSpan.get(myQueryTime, Milliseconds.ONE), EasyMock.getCurrentArguments()[1]);\r\n ByteArrayOutputStream out = new ByteArrayOutputStream();\r\n ImageIO.write(ImageUtil.LOADING_IMAGE, \"png\", out);\r\n\r\n return out.toByteArray();\r\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n if (weakReference != null) {\n ImageView imageView = weakReference.get();\n if (imageView != null) {\n imageView.setImageResource(resId);\n }\n }\n }",
"private void getUserImage(){\r\n \t//setProgressBarIndeterminateVisibility(true);\r\n \t\r\n \tusername=null;\r\n \tfor(int i=0; i<senderList.size(); i++) {\t// kovetkezo felhasznalo kepe\r\n \t\tString str=senderList.get(i);\r\n \t\tif (!userImage.containsKey(str)) {\r\n \t\t\tusername=str;\r\n \t\t\tbreak;\r\n \t\t}\r\n \t}\r\n \t\r\n \tif (username==null) return;\r\n \t\r\n\t String url = \"ImageDownload?size=medium&username=\" + username +\r\n\t \t\t\t\t\t\t \"&ssid=\" + UserInfo.getSSID();\r\n\t downloadUserImage = new HttpGetByteConnection(url, mHandler, TASK_GETUSERIMAGE);\r\n\t downloadUserImage.start();\r\n }",
"@Override\n protected String getRequestedImage(HttpServletRequest req) {\n\treturn null;\n }",
"private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }",
"@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode == RESULT_OK && requestCode ==200){\n Uri uri_img=data.getData();\n try{\n assert uri_img != null;\n InputStream input_img = updateView.getContext().getContentResolver().openInputStream(uri_img);\n DecodeImage_stream = BitmapFactory.decodeStream(input_img);\n chooseImage.setImageBitmap(DecodeImage_stream);\n }catch (FileNotFoundException f){\n Log.d(\"add new file not found:\",f.getMessage());\n }\n }\n }",
"private void loadImage(URL url) {\n //do resource intensive operation to load image\n }",
"public Bitmap get(String url) {\n if(url!=null){\n synchronized (mBitmapCache) {\n\n // Get the image from the cache\n final Bitmap bitmap = mBitmapCache.get(url);\n\n // Check if the bitmap is in the cache\n if (bitmap != null) {\n return bitmap;\n }\n }\n }\n\n return null;\n }",
"ImageContentData findContentData(String imageId);",
"public interface BitmapCache {\n void put(BitmapRequest bitmapRequest, Bitmap bitmap);\n\n Bitmap get(BitmapRequest bitmapRequest);\n\n boolean remove(BitmapRequest bitmapRequest);\n\n void clear();\n}",
"@Override\n protected void onPostExecute(Bitmap bitmap) {\n if (isCancelled()) {\n bitmap = null;\n }\n\n addBitmapToCache(url, bitmap);\n \n // write to cache file at the same time\n // Defect: Because transfer into bitmap, we can't save as GIF with transparent background\n // saveBitmapToCacheFile(url, bitmap);\n \n if (imageViewReference != null) {\n ImageView imageView = imageViewReference.get();\n BitmapDownloaderTask bitmapDownloaderTask = getBitmapDownloaderTask(imageView);\n // Change bitmap only if this process is still associated with it\n // Or if we don't use any bitmap to task association (NO_DOWNLOADED_DRAWABLE mode)\n if ((this == bitmapDownloaderTask) || (mode != Mode.CORRECT)) {\n imageView.setImageBitmap(bitmap);\n }\n }\n }",
"private void setImage(String downloaderUri, String thubo) {\n blogImageView = mView.findViewById(R.id.postView_image_post);\n\n //request optional to assign temporary image appear before while loading the image from db.\n RequestOptions requestOptions = new RequestOptions();\n requestOptions.placeholder(R.drawable.postlist);\n\n //Glide.with(context).applyDefaultRequestOptions(requestOptions).load(thubo).into(blogImageView);\n Glide.with(context).applyDefaultRequestOptions(requestOptions).load(downloaderUri).thumbnail(\n Glide.with(context).load(thubo)\n ).into(blogImageView);\n\n }",
"@Override\n protected String doInBackground(String... params) {\n bitmap = DownloadImageBitmap(url);\n return null;\n }",
"public void retrieveDetailedImage(){\n //Build request for raw JSON data\n ImageRequest imageRequest = new ImageRequest(currentBook.thumbnail, new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap image) {\n //Image is returned\n mBackgroundImage.setImageBitmap(image);\n mBookImage.setImageBitmap(image); // Sets cover in case book was called from context where no cover provided\n }\n }, 5000, 5000, ImageView.ScaleType.CENTER, Bitmap.Config.RGB_565,\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n //Print error\n ErrorUtils.errorDialog(BookDetailsActivity.this, \"Could not connect to the server\", \"Could not connect to the server at this time, please try again later.\");\n }\n });\n //Start the JSON request\n queue.add(imageRequest);\n }"
] | [
"0.65368026",
"0.65052044",
"0.64828855",
"0.63566554",
"0.63488406",
"0.63347316",
"0.6325496",
"0.63148683",
"0.6215795",
"0.6208067",
"0.61510754",
"0.6148965",
"0.61010367",
"0.6042051",
"0.5992438",
"0.59805924",
"0.5957703",
"0.59548724",
"0.5929144",
"0.5888863",
"0.58562464",
"0.584434",
"0.58394855",
"0.5820512",
"0.57967323",
"0.5778879",
"0.5721071",
"0.5674959",
"0.5641205",
"0.5583161",
"0.55528814",
"0.55447423",
"0.55427456",
"0.55250096",
"0.55125856",
"0.5511374",
"0.54993784",
"0.5490045",
"0.54683864",
"0.5461303",
"0.54597616",
"0.54556274",
"0.5449615",
"0.54489607",
"0.5446785",
"0.5435547",
"0.5419554",
"0.5417334",
"0.54129595",
"0.5412763",
"0.54113907",
"0.54077846",
"0.5397343",
"0.5387385",
"0.5386919",
"0.53798395",
"0.536853",
"0.5363241",
"0.5354195",
"0.5350582",
"0.53428227",
"0.5333639",
"0.5331709",
"0.532756",
"0.53121895",
"0.5300905",
"0.5298939",
"0.5298806",
"0.52965915",
"0.52940595",
"0.5286667",
"0.5279675",
"0.5276677",
"0.5270454",
"0.52603245",
"0.5257072",
"0.52540594",
"0.52497375",
"0.5237913",
"0.5233479",
"0.5233031",
"0.52237004",
"0.5222312",
"0.5221016",
"0.52207994",
"0.5218024",
"0.5210657",
"0.5209111",
"0.5208623",
"0.5208118",
"0.5205062",
"0.5203424",
"0.52020526",
"0.5192879",
"0.51853335",
"0.5183852",
"0.5181087",
"0.5174833",
"0.5174167",
"0.51727337"
] | 0.58666456 | 20 |
Method Name: verifyMachineBalance Description: ATM dispenses money It will attempt to provide every customer with money using the largest available bill | public void dispenseMoney(float withdrawAmount, float totalBills, int[] bill, int[] availableAmount) {
int amount, remain;
String plural;
for(int i = 0; i < bill.length; i++){
if (withdrawAmount >= bill[i]){
amount = (int) withdrawAmount / bill[i];
remain = (int) withdrawAmount % (amount * bill[i]);
availableAmount[i] -= amount;
totalBills -= bill[i] * amount;
plural = ((amount > 1) ? "s" : "");
System.out.println(amount + " bill" + plural + " $" + bill[i]);
if (remain == 0){
break;
}
else {
withdrawAmount = remain;
}
}
else {
continue;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic double checkBalance(String mobileNo) {\n\t\tCustomer custCheckBalance = custMap.get(mobileNo);\r\n\t\tdouble amount = custCheckBalance.getInitialBalance();\r\n\t\treturn amount;\r\n\t}",
"public Masary_Error CheckBillType(String BTC, double CusAmount, String CustId, double serv_balance, double masry_balance, double billamount, double fees, Main_Provider provider, double deductedAmount) {\n Masary_Error Status = new Masary_Error();\n try {\n Masary_Bill_Type bill_type = MasaryManager.getInstance().getBTC(BTC);\n double trunccusamount = Math.floor(CusAmount);\n// double deductedAmount = MasaryManager.getInstance().GetDeductedAmount(Integer.parseInt(CustId), Integer.parseInt(BTC), CusAmount, provider.getPROVIDER_ID());\n if ((deductedAmount > serv_balance) || deductedAmount == -1) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-501\", provider);\n } else if (!bill_type.isIS_PART_ACC() && CusAmount < billamount) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-502\", provider);\n } else if (!bill_type.isIS_OVER_ACC() && CusAmount > billamount && billamount != 0) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-503\", provider);\n } else if (!bill_type.isIS_ADV_ACC() && billamount == 0) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-504\", provider);\n } else if (!bill_type.isIS_FRAC_ACC() && (CusAmount - trunccusamount) > 0) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-505\", provider);\n } else if ((CusAmount > masry_balance) || deductedAmount == -2 || deductedAmount == -3 || deductedAmount == -4) {\n Status = MasaryManager.getInstance().GETMasary_Error(\"-506\", provider);\n } else {\n Status = MasaryManager.getInstance().GETMasary_Error(\"200\", provider);\n }\n } catch (Exception ex) {\n\n MasaryManager.logger.error(\"Exception \" + ex.getMessage(), ex);\n }\n\n return Status;\n }",
"@Test\n public void test_total_balance2() {\n assertEquals(1200, ao2.totalBalanceOfAccountsOwned(), EPS);\n }",
"@Test\n public void whenComputingBillForPeopleOver70WithDiagnosisXRayAndECG() {\n double result = billingService.computeBill(1);\n // 90% discount on Diagnosis (60£) = 6\n // 90% discount on X-RAY (150£) = 15\n // 90% discount on ECG (200.40£) = 20.04\n Assert.assertEquals(41.04, result, 0);\n }",
"public void checkBalance()\n\t{\n\t\tList<Account> accounts = Main.aDao.getAllAccounts(this.loggedIn.getUserId());\n\t\tdouble accountsTotal = 0;\n\t\t\n\t\tfor(Account a : accounts)\n\t\t{\n\t\t\taccountsTotal += a.getBalance();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Total funds available across all accounts:\\n\" + accountsTotal);\n\t}",
"abstract int checkBalance(String accountno) throws RemoteException;",
"private void doCheckBalance() {\n while (true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n ui.displayMessage(\"Balance: \" + userAccount.getBalance());\n break;\n } catch (Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n }",
"@Override\n\tpublic void checkBalance() {\n\t\tSystem.out.println(\"balance is checked\");\n\t}",
"private void checkAmount() throws IOException {\n //System.out.println(\"The total amount in the cash machine is: \" + amountOfCash);\n for (int i : typeOfCash.keySet()) {\n Integer r = typeOfCash.get(i);\n if (r < 20) {\n sendAlert(i);\n JOptionPane.showMessageDialog(null, \"$\" + i + \"bills are out of stock\");\n }\n }\n }",
"@Then(\"^Mobile: Verify the balance in card before and after switching the mode of transacations$\")\n\tpublic void mobile_Verify_the_balance_in_card_before_and_after_switching_the_mode_of_transacations() throws Throwable {\n\t\tdriver.findElement(By.id(\"HambergerMenuBtn\")).click();\n\t\tThread.sleep(3000);\n\t\tdriver.findElement(By.linkText(\"Log out\")).click();\n\t\tThread.sleep(6000);\n\t}",
"public double checkCashInBrokerage(long socialSecurityNumber, String userName, String password) throws AuthenticationException,UnauthorizedActionException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getBrokerageAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n return getPatron(socialSecurityNumber).getBrokerageAccount().getAvailableBalance();\r\n }",
"void accbal()\r\n{\r\nScanner sc5 = new Scanner(System.in);\r\nSystem.out.print(\"Please Enter the Amount you want to Withdraw\");\r\nint accbal = sc5.nextInt();\r\nif(accbal <= money[x]) \r\n{\r\n money[x] = money[x] - accbal;\r\n System.out.println(\"Amount Withdrawn is\"+accbal);\r\n System.out.println(\"The Current Balance is \"+money[x]);\r\n}\r\nelse \r\n{\r\n System.out.println(\"Insufficient balance!!!Please enter a lesser amount and try again\");\r\n}\r\n}",
"public String myAfterBalanceAmount() {\r\n\t\tint count=0;\r\n\t\tList<SavingAccount> acc = null;\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Before Repeat\");\r\n\t\t\tacc = getSavingAccountList();\r\n\r\n\t\t\tfor (SavingAccount savingAcc : acc) {\r\n\t\t\t\tif (!(\"0\".equals(savingAcc.getState()))) {\r\n\t\t\t\t\tif (savingAcc.getState().equals(\"active\")) {\r\n\t\t\t\t\t\tint maxRepeat = Integer.parseInt(savingAcc\r\n\t\t\t\t\t\t\t\t.getRepeatable());\r\n\r\n\t\t\t\t\t\tDate date = new Date();\r\n\t\t\t\t\t\tDate systemDate = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAccSer\r\n\t\t\t\t\t\t\t\t\t\t.convertDateToStringDDmmYYYY(date));\r\n\r\n\t\t\t\t\t\tDate dateEnd = savingAccSer\r\n\t\t\t\t\t\t\t\t.convertStringToDateDDmmYYYY(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t.getDateEnd());\r\n\r\n\t\t\t\t\t\tif (systemDate.getTime() == dateEnd.getTime()) {\r\n\t\t\t\t\t\t\tDate newEndDate = DateUtils.addMonths(systemDate,\r\n\t\t\t\t\t\t\t\t\tsavingAcc.getInterestRateId().getMonth());\r\n\r\n\t\t\t\t\t\t\tfloat balance = savingAcc.getBalanceAmount();\r\n\t\t\t\t\t\t\tfloat interest = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getInterestRate();\r\n\r\n\t\t\t\t\t\t\tint month = savingAcc.getInterestRateId()\r\n\t\t\t\t\t\t\t\t\t.getMonth();\r\n\t\t\t\t\t\t\tint days = Days\r\n\t\t\t\t\t\t\t\t\t.daysBetween(\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateStart())),\r\n\t\t\t\t\t\t\t\t\t\t\tnew DateTime(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tsavingAccSer\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.convertStringToDate(savingAcc\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDateEnd())))\r\n\t\t\t\t\t\t\t\t\t.getDays();\r\n\t\t\t\t\t\t\tfloat amountAll = balance\r\n\t\t\t\t\t\t\t\t\t+ (balance * ((interest / (100)) / 360) * days);\r\n\t\t\t\t\t\t\tsavingAcc.setDateStart(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(systemDate));\r\n\t\t\t\t\t\t\tsavingAcc.setDateEnd(savingAccSer\r\n\t\t\t\t\t\t\t\t\t.convertDateToString(newEndDate));\r\n\t\t\t\t\t\t\tsavingAcc.setBalanceAmount(amountAll);\r\n\t\t\t\t\t\t\tsavingAcc.setRepeatable(\"\" + (maxRepeat + 1));\r\n\t\t\t\t\t\t\tupdateSavingAccount(savingAcc);\r\n\t\t\t\t\t\t\tcount+=1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcontinue;\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\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"Successfully!! \"+ count +\" Saving Account has been updated. Minh Map!!!\");\r\n\t\t\t\r\n\t\t\treturn \"success\";\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"Exception\");\r\n\r\n\t\t}\r\n\t\treturn \"Fail\";\r\n\t}",
"public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }",
"private int doComp() {\n\t\tDbTime totalTime = pubService.getDbTime();\n\t\tString beginDate = \"\";\n\t\tString endDate = pubService.getTotalDateStr();\n\t\tString yesterdayStr = pubService.getYesterdayStr();\n\t\t\n\t\tReBankAccept reBankAccept = new ReBankAccept();\n\t\treBankAccept.setOrgId(1);\n\t\treBankAccept.setCheckType(\"N\");\n\t\tList<ReBankAccept> reBankAcceptList= sqlSessionTemplate.selectList(\"com.tmount.db.order.dao.ReBankAcceptMapper.selectBySelective\",reBankAccept);\n\t\tSystem.out.println(\"...records...\"+reBankAcceptList.size()+\"...\");\n\t\tfor(ReBankAccept aReBankAccept:reBankAcceptList){\n\t\t\t\n\t\t\tString billOrder = aReBankAccept.getBankAccept()+\"\";\n\t\t\tDate payTime = aReBankAccept.getPayTime();\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd\");\n\t\t\tGregorianCalendar gc = new GregorianCalendar();\n\t\t\tgc.setTime(payTime); \n\t\t\tString payDate=df.format(gc.getTime());\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"payDate = \"+ payDate);\n\t\t\tSystem.out.println(\"billOrder = \"+ billOrder);\n\t\t\t\n\t\t\tStringBuffer strbuf = new StringBuffer();\n\t\t\tiRet = settle.QuerySingleOrder(payDate,billOrder,strbuf);\n\t\t\tif (iRet == 0)\n\t\t\t{\n\t\t\t\t//System.out.println(strbuf);\n\t\t\t\tString[] strArr = strbuf.toString().split(\"\\n\");\n\t\t\t\tif(strArr.length!=4){\n\t\t\t\t\tSystem.out.println(\"...strbuf format error...\");\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tString billData = strArr[0];//交易日期\n\t\t\t\tString dealData = strArr[1];//处理日期\n\t\t\t\tString orderStatus = strArr[2];//定单状态 0-已结帐,1-已撤销,2-部分结帐,3-退款,4-未结帐,5-无效状态,6-未知状态\n\t\t\t\tString strAmount = strArr[3];//定单金额\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"billData:[\"+billData+\"]\");\n\t\t\t\tSystem.out.println(\"dealData:[\"+dealData+\"]\");\n\t\t\t\tSystem.out.println(\"orderStatus:[\"+orderStatus+\"]\");\n\t\t\t\tSystem.out.println(\"strAmount:[\"+strAmount+\"]\");\n\t\t\t\t\n\t\t\t\tif(\"0\".equals(orderStatus)){\n\t\t\t\t\tif(\"Y\".equals(aReBankAccept.getPayType())){//已经是支付状态\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tint payCount = sqlSessionTemplate.selectOne(\"com.tmount.db.order.dao.ReBankOrderAcceptMapper.countPayStatusByBankAccept\",aReBankAccept.getBankAccept());\n\t\t\t\t\t\tif(payCount>0){//银行流水对应的商城订单有支付完成的\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else{//银行流水对应的商城订单没有支付完成的,对该未结账订单进行 支付(商城的支付服务逻辑)、结账\n\t\t\t\t\t\t\tOrderService orderservice = new OrderService();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlong payId = 0;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tpayId = orderService.userBankOrderPay(aReBankAccept.getBankAccept(),1,\"通过对账程序对本地的订单进行缴费\");\n\t\t\t\t\t\t\t\tSystem.out.println(\"@:***payId***[\"+payId+\"]\");\n\t\t\t\t\t\t\t} catch (ShopBusiException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t} catch (ShopParamException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//此处调用封装支付服务的函数,并将函数返回值赋给payId\n\t\t\t\t\t\t\taReBankAccept.setPayType(\"Y\");\n\t\t\t\t\t\t\taReBankAccept.setPayCommitTime(pubService.getDbTime().getDbTime());\n\t\t\t\t\t\t\taReBankAccept.setPayId(payId);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\taReBankAccept.setCheckType(\"Y\");\t\n\t\t\t\t\tsqlSessionTemplate.update(\"com.tmount.db.order.dao.ReBankAcceptMapper.updateByPrimaryKeySelective\", aReBankAccept);\n\t\t\t\t\t\n\t\t\t\t\t//入银行结算表 对账成功写结算表\n\t\t\t\t\tBkBankChangeAccept bkBankChangeAccept = new BkBankChangeAccept();\n\t\t\t\t\tbkBankChangeAccept.setBankAccept(aReBankAccept.getBankAccept());\n\t\t\t\t\tbkBankChangeAccept.setOrgId(aReBankAccept.getOrgId());\n\t\t\t\t\tbkBankChangeAccept.setPrice(aReBankAccept.getPrice());\n\t\t\t\t\tbkBankChangeAccept.setPayTime(aReBankAccept.getPayTime());\n\t\t\t\t\tbkBankChangeAccept.setPayId(aReBankAccept.getPayId());\n\t\t\t\t\tsqlSessionTemplate.insert(\"com.tmount.db.order.dao.BkBankChangeAcceptMapper.insertSelective\",bkBankChangeAccept);\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"...iRet...\"+iRet);\n\t\t\t\tSystem.out.println(settle.GetLastErr(iRet));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"...totalTime.getDbTime().getHours()...\"+totalTime.getDbTime().getHours());\n\t\t\t\tSystem.out.println(\"...Long.parseLong(payDate)...\"+Long.parseLong(payDate));\n\t\t\t\tSystem.out.println(\"...Long.parseLong(pubService.getYesterdayStr())...\"+Long.parseLong(pubService.getYesterdayStr()));\n\t\t\t\t//招商银行订单的有效期是到第二天的1点(这里防止有遗漏,设置到两点之后失效)\n\t\t\t\tif(totalTime.getDbTime().getHours()>1&&Long.parseLong(payDate)<= Long.parseLong(pubService.getYesterdayStr())){\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tmoveHis(aReBankAccept);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn 0;\n\t}",
"void checkBalance() {\n\t\tSystem.out.println(\"Account balance: \" + balance);\n\t}",
"@Test\n public void testMoreRequired() throws VendingMachineInventoryException{\n service.addFunds(\"1.00\");\n Item testitem = new Item(\"testitem\", \"1.50\", \"5\");\n service.addItem(\"testitem\", testitem);\n BigDecimal moneyRequired = service.moreRequired(\"testitem\");\n BigDecimal expectedMoneyRequired = new BigDecimal(\"0.50\");\n assertEquals(moneyRequired, expectedMoneyRequired);\n }",
"@Override\r\npublic void checkBalance() {\n\t\r\n}",
"public static void INTTransfer_Insufficientbalance() {\n\n try {\n clickHarmburgerMenuBTN();\n clickTransferBTN();\n clickIntertnational();\n internationalFundTransfer();\n waitToElement(\"//android.widget.TextView[@text='Insufficient balance.']\");\n\n MobileElement insufficientMSG = driver.findElement(By.xpath(\"//android.widget.TextView[@text='Insufficient balance.']\"));\n verifyElementIsDisplayed(insufficientMSG, \"Insufficient Balance\");\n clickCancelButton();\n\n } catch (Exception e) {\n ReportHelper.logReportStatus(LogStatus.FAIL, \"unable to verify the message\" + e.getMessage());\n }\n\n\n }",
"@Override\n\tpublic int checkBill(MarketTransaction t) {\n\t\treturn 0;\n\t}",
"protected boolean ensureBalance(BigInteger value)\n {\n String account = appContext.getSettingProvider().getSelectedAccount();\n\n BigInteger balance = appContext.getServiceProvider().getAccountService().getAccountBalance(account).get();\n if(balance == null)\n {\n appContext.getMessageService().showErrorMessage(\"Cannot reach the exchange service. Try again later.\");\n return false;\n }\n\n if(balance.compareTo(value) < 0)\n {\n appContext.getMessageService().showErrorMessage(\"You need at least \" + value.toString() + \" wei to do that!\");\n return false;\n }\n\n return true;\n }",
"private boolean checkIsValid(BankClient client, Message message) {\n int lastDigit = message.getMessageContent() % BASE_TEN;\n int amount = message.getMessageContent() / BASE_TEN;\n if (lastDigit <= DEPOSIT_WITHDRAWAL_FLAG) {\n return amount <= client.getDepositLimit();\n } else {\n return amount <= client.getWithdrawalLimit();\n }\n }",
"@Test\n public void test_total_balance3() {\n assertEquals(0, ao3.totalBalanceOfAccountsOwned(), EPS);\n }",
"public void verifyBusinessRules(Coin Coin) throws Exception {\n\t}",
"@Test\n public void testDecimalAutoLoan() {\n LoanTerms loanTerms = new LoanTerms(30, 500000, LoanType.SCB, 40, 3000, 21000);\n\n /* Get Loan Details */\n LoanDetails details = new HomeLoanCalculator(loanTerms).calculateLoanDetails();\n\n /* Check Values */\n assertThat(details.getMonthlyPayment(), is(\"$466.15\"));\n }",
"Boolean checkAccountHasSufficientBalance(PrintWriter out, Account from, Double amount);",
"public static void main(String[] args) {\n\n\t\tDemo dem = new Demo();\n\t\tBigDecimal initialDeposit = new BigDecimal(0);\n\n\t\tPerson customer1 = dem.addPerson(\"Ade\", \"104 Lane Dr\", 28738);\n\t\tdem.customers.put(dem.custTracker, customer1);\n\t\tBigDecimal startingNum1 = new BigDecimal(100);\n\t\tCustomer customer2 = dem.addPerson(\"Jane\", \"104 Lane Dr\", 43436);\n\t\tdem.customers.put(dem.custTracker, customer2);\n\t\tBigDecimal startingNum2 = new BigDecimal(30);\n\t\tCompany company1 = dem.addCompany(\"This Company\", \"3948 Lego Ln\", 76858);\n\t\tdem.customers.put(dem.custTracker, company1);\n\t\tBigDecimal startingNum3 = new BigDecimal(30124);\n\t\t\n\t\t\n\n\t\tSavings forcustomer1 = dem.addSavAcc(startingNum1);\n\t\tdem.accounts.put(dem.accTracker, forcustomer1);\n\t\tCurrent forcustomer2 = dem.addCurrAcc(startingNum2, 5615652, 8744155); //saving first check num and next cheque num\n\t\tdem.accounts.put(dem.accTracker, forcustomer2);\n\t\tCurrent forcompany1 = dem.addCurrAcc(startingNum3, 52929526, 615651922);\n\t\tdem.accounts.put(dem.accTracker, forcompany1);\n\n\t\tBigDecimal withdrawl = new BigDecimal(110); //testing no overdraft of savings\n\t\tforcustomer1.withdraw(withdrawl);\n\t\t\n\t\tBigDecimal deposit = new BigDecimal(40); //test deposit method\n\t\tforcustomer2.deposit(deposit);\n\t\t\n\t\tBigDecimal reset = new BigDecimal(1000);\n\t\tcustomer1.reset(reset);\n\n\t\t\n\t\tcompany1.add(deposit);\n\t\t\n\t\t\n\t\t//company1.add(bd);\n\t\t\n\t\t//forcustomer2.overdraw(); // test overdraft fee method\n\t\t\n\t\t//BigDecimal correctbalance = new BigDecimal(1000); // test correction method\n\t\t//forcustomer2.correction(correctbalance);\n\n\t\t\n\t\t\n\t\tSystem.out.println(dem.customers);\n\t\tSystem.out.println(dem.accounts);\n\n\t\t// BigDecimal accBalance = new BigDecimal(0);\n\t\t// currAcc.setBalance(accBalance); // okay it works. i guess. so thats good.\n\t\t// System.out.println(currAcc.getBalance());\n\t\t//\n\t\t// accountSetUp(accBalance, 1000);\n\t}",
"public void balance(int arg1)\n \n {\n \tint sum=0;\n int s;\n int i=0;\n response=RestAssured.get(\"http://18.222.188.206:3333/accounts\");\n Bala=response.jsonPath().getList(\"Balance\");\n while(i<=Bala.size())\n {\n try\n {\n if(Bala.get(i)!=null)\n {\n s=Integer.parseInt(Bala.get(i));\n if(s>arg1)\n {\n sum++;\n }\n }\n }\n catch(Exception e)\n {\n \n }\n i++;\n \n }\n System.out.println(\"The number of accounts with balance 200000= \"+sum);\n }",
"public void decreaseMoneyForReserve(String login,BigDecimal money);",
"public void testOneWithdrawal(){\n\t\t//Pre-conditions\n\t\tteller.setWorking(true);\n\t\tteller.setHost(host);\n\t\t\n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller should have no pending transactions, but it has: \" +teller.pendingTransactions.size(),0,teller.pendingTransactions.size());\n\t\t\n\t\tassertEquals(\"Teller should have no pending loans, but it has \" + teller.pendingLoans.size(),0,teller.pendingTransactions.size());\n\t\tassertEquals(\"Teller should have no accountsListed, but it has \" + teller.accountsListed.size(),0,teller.accountsListed.size());\n\t\t\n\t\t//Step 0 of test - Teller has an account for this customer already \n\t\tteller.accountsListed.add(new BankAccount(withdraw,100));\n\t\t\n\t\t//Post-conditions of step 0 \n\t\tassertEquals(\"Teller should have one account listed, instead it has \" + teller.accountsListed.size(),1,teller.accountsListed.size());\n\t\tassertEquals(\"Teller's only account should have a balance of 100, instead it has \" + teller.accountsListed.get(0).getBalance(), \n\t\t\t\t100.0,teller.accountsListed.get(0).getBalance());\n\t\t\n\t\t//Step 1 of test\n\t\t//msgGoSeeTeller(Banker)\n\t\twithdraw.msgGoSeeTeller(teller);\n\t\t\n\t\t//Post-conditions of step 1 \n\t\tassertEquals(\"Teller's state should be busy, but instead it is: \" + teller.getState(),\"Busy\",teller.getState());\n\t\tassertEquals(\"Teller should have one pending transaction, but it has: \" +teller.pendingTransactions.size(),\n\t\t\t\t1,teller.pendingTransactions.size());\n\t\tassertEquals(\"Teller's transaction should be to withdraw 100 dollars, instead it is for \" + teller.pendingTransactions.get(withdraw), \n\t\t\t\t-100.0, teller.pendingTransactions.get(withdraw));\n\t\t\n\t\t//Step 2 of test\n\t\tassertTrue(\"Teller's scheduler should return true, but it doesn't.\", teller.pickAndExecuteAnAction());\n\t\t\n\t\t//Post-conditions of step 2 \n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller should have no pending transactions, but it has: \" +teller.pendingTransactions.size(),0,teller.pendingTransactions.size());\n\t\tassertTrue(\"Host's log should have a message stating \\\"Updated account, and added teller\\\", instead it reads: \" + host.log.getLastLoggedEvent().toString(), \n\t\t\t\thost.log.containsString(\"Updated account, and added teller\"));\n\t\tassertTrue(\"Customer's log should have a message stating \\\"Got 100.0 dollars, leaving bank.\\\", instead it reads: \" + withdraw.log.getLastLoggedEvent().toString(),\n\t\t\t\twithdraw.log.containsString(\"Got 100.0 dollars, leaving bank.\"));\n\t\tassertEquals(\"Customer's account stored in teller should be updated with the correct balance of 0.0, instead it has \" + teller.accountsListed.get(0).getBalance(), \n\t\t\t\t0.0, teller.accountsListed.get(0).getBalance());\n\t\t\n\t}",
"@Test\n\tpublic void testRecalculateAccountBalance() {\n\t\tSmsAccount smsAccount = new SmsAccount();\n\t\tsmsAccount.setSakaiUserId(\"1\");\n\t\tsmsAccount.setSakaiSiteId(\"1\");\n\t\tsmsAccount.setMessageTypeCode(\"1\");\n\t\tsmsAccount.setOverdraftLimit(1000L);\n\t\tsmsAccount.setCredits(10L);\n\t\tsmsAccount.setAccountName(\"accountname\");\n\t\tsmsAccount.setAccountEnabled(true);\n\t\thibernateLogicLocator.getSmsAccountLogic()\n\t\t\t\t.persistSmsAccount(smsAccount);\n\t\tinsertTestTransactionsForAccount(smsAccount);\n\n\t\tAssert.assertTrue(smsAccount.exists());\n\n\t\tList<SmsTransaction> transactions = hibernateLogicLocator\n\t\t\t\t.getSmsTransactionLogic().getSmsTransactionsForAccountId(\n\t\t\t\t\t\tsmsAccount.getId());\n\n\t\tAssert.assertNotNull(transactions);\n\t\tAssert.assertTrue(transactions.size() > 0);\n\n\t\tsmsBillingImpl.recalculateAccountBalance(smsAccount.getId());\n\n\t\tSmsAccount recalculatedAccount = hibernateLogicLocator\n\t\t\t\t.getSmsAccountLogic().getSmsAccount(smsAccount.getId());\n\t\tAssert.assertNotNull(recalculatedAccount);\n\t\tAssert.assertTrue(recalculatedAccount.getCredits() == 6660);\n\t}",
"@Override\r\n\tpublic double monthlyFee(double balance) {\r\n \tif(balance >= 300){\r\n \treturn 0;\r\n \t}\r\n \telse\r\n \treturn 5;\r\n \t}",
"public boolean checkBankBalance(int value1,int amount1)\n {\n if(value1==amount1)\n {\n return true;\n }\n return false;\n }",
"@org.junit.Test\r\n public void testPayBackSumShouldBeSameOrHigher() {\r\n Prospect p = new Prospect(\"Doris\", 1000, 5, 2);\r\n MortgageCalculation m = new MortgageCalculation(p);\r\n double result = m.getFixedMonthlyPayment();\r\n double payBackSum = result * p.getYears() * 12;\r\n\r\n assertTrue(payBackSum >= p.getTotalLoan());\r\n }",
"private void validateBalance(Double fromBalance, Double transferAmount) throws PaymentsException {\n\t\tif ((fromBalance - transferAmount) <= 0) {\n\t\t\tlogger.error(\"Not enough balance.\");\n\t\t\tthrow new PaymentsException(\" Not enough funds. \");\n\t\t\t\n\t\t}\n\t}",
"public _179._6._235._119.cebwebservice.Bill billing_CalculateDetailMonthlyBill(java.lang.String accessToken, int tariff, int kwh) throws java.rmi.RemoteException;",
"public void testOneDeposit(){\n\t\t//Pre-conditions\n\t\tteller.setWorking(true);\n\t\tteller.setHost(host);\n\t\t\n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller should have no pending transactions, but it has: \" +teller.pendingTransactions.size(),0,teller.pendingTransactions.size());\n\t\t\n\t\tassertEquals(\"Teller should have no pending loans, but it has \" + teller.pendingLoans.size(),0,teller.pendingTransactions.size());\n\t\tassertEquals(\"Teller should have no accountsListed, but it has \" + teller.accountsListed.size(),0,teller.accountsListed.size());\n\t\t\n\t\t//Step 0 of test - Host sends the teller a new account for the incoming customer\n\t\tteller.msgHereIsAccount(new BankAccount(deposit,0));\n\t\t\n\t\t//Post-conditions of step 0 \n\t\tassertEquals(\"Teller should have one account listed, instead it has \" + teller.accountsListed.size(),1,teller.accountsListed.size());\n\t\tassertEquals(\"Teller's only account should have a balance of 0, instead it has \" + teller.accountsListed.get(0).getBalance(), \n\t\t\t\t0.0,teller.accountsListed.get(0).getBalance());\n\t\t\n\t\t//Step 1 of test\n\t\t//msgGoSeeTeller(Banker)\n\t\tdeposit.msgGoSeeTeller(teller);\n\t\t\n\t\t//Post-conditions of step 1 \n\t\tassertEquals(\"Teller's state should be busy, but instead it is: \" + teller.getState(),\"Busy\",teller.getState());\n\t\tassertEquals(\"Teller should have one pending transaction, but it has: \" +teller.pendingTransactions.size(),\n\t\t\t\t1,teller.pendingTransactions.size());\n\t\tassertEquals(\"Teller's transaction should be to deposit 100 dollars, instead it is for \" + teller.pendingTransactions.get(deposit), \n\t\t\t\t100.0, teller.pendingTransactions.get(deposit));\n\t\t\n\t\t//Step 2 of test\n\t\tassertTrue(\"Teller's scheduler should return true, but it doesn't.\", teller.pickAndExecuteAnAction());\n\t\t\n\t\t//Post-conditions of step 2 \n\t\tassertEquals(\"Teller's state should be free, but instead it is: \" + teller.getState(),\"Free\",teller.getState());\n\t\tassertEquals(\"Teller should have no pending transactions, but it has: \" +teller.pendingTransactions.size(),0,teller.pendingTransactions.size());\n\t\tassertTrue(\"Host's log should have a message stating \\\"Updated account, and added teller\\\", instead it reads: \" + host.log.getLastLoggedEvent().toString(), \n\t\t\t\thost.log.containsString(\"Updated account, and added teller\"));\n\t\tassertTrue(\"Customer's log should have a message stating \\\"Got 0.0 dollars, leaving bank.\\\", instead it reads: \" + deposit.log.getLastLoggedEvent().toString(),\n\t\t\t\tdeposit.log.containsString(\"Got 0.0 dollars, leaving bank.\"));\n\t\tassertEquals(\"Customer's account stored in teller should be updated with the correct balance of 100.0, instead it has \" + teller.accountsListed.get(0).getBalance(), 100.0, teller.accountsListed.get(0).getBalance());\n\t\t\n\t}",
"private void DetermineBalance() {\n\t\t\n\t\tString query = \"SELECT Ticket_Class FROM Customer_Flight_Information WHERE Customer_Name = \"+name;\n\t\tCursor cursor = deltaDB.rawQuery(query, null);\n\t\t\n\t\ttry{\n\t\t\tif(cursor.moveToFirst()){\n\t\t\t String ticketClass = cursor.getString(cursor.getColumnIndex(\"Ticket_Class\"));\n\t\t\t \n\t\t\t switch(ticketClass){\n\t\t\t \t\n\t\t\t \t\tcase \"Economy Class\":\n\t\t\t \t\t\tprice_txt.setText(\"$315\");\n\t\t\t \t\tbreak;\n\t\t\t \t\t\n\t\t\t \t\tcase \"Business Class\":\n\t\t\t \t\t\tprice_txt.setText(\"$365\");\n\t\t\t \t\tbreak;\n\t\t\t \t\t\n\t\t\t \t\tcase \"First Class\":\n\t\t\t \t\t\tprice_txt.setText(\"$420\");\n\t\t\t \t\tbreak;\t\n\t\t\t }\n\t\t\t}\n\t\t}finally{\n\t\t\tcursor.close();\n\t\t}\n\t}",
"public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }",
"boolean check(double amount) {\n\t\treturn (balance >= amount);\n\t}",
"private void calculateBill() {\n\t\tif (unit <= 100) {\r\n\t\t\tbill = unit * 5;\r\n\t\t}else if(unit<=200){\r\n\t\t\tbill=((unit-100)*7+500);\r\n\t\t}else if(unit<=300){\r\n\t\t\tbill=((unit-200)*10+1200);\r\n\t\t}else if(unit>300){\r\n\t\t\tbill=((unit-300)*15+2200);\r\n\t\t}\r\n\t\tSystem.out.println(\"EB amount is :\"+bill);\r\n\t}",
"protected void acceptedPaymentVerification() {\n BillingSummaryPage.tableBillingGeneralInformation.getRow(1)\n .getCell(\"Current Due\").waitFor(cell -> !cell.getValue().equals(\"Calculating...\"));\n\n assertThat(BillingSummaryPage.tableBillingGeneralInformation.getRow(1))\n .hasCellWithValue(\"Current Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Paid\", modalPremiumAmount.get().toString());\n\n assertThat(BillingSummaryPage.tableBillsAndStatements.getRow(1).getCell(\"Status\")).valueContains(PAID_IN_FULL);\n\n assertThat(BillingSummaryPage.tablePaymentsOtherTransactions)\n .with(POLICY_NUMBER, masterPolicyNumber.get())\n .with(TYPE, PAYMENT)\n .with(TableConstants.BillingPaymentsAndTransactionsGB.AMOUNT, String.format(\"(%s)\", modalPremiumAmount.get().toString()))\n .containsMatchingRow(1);\n\n }",
"private static double checkUserBalance(User user, Document doc, Printer printer) {\n\t\t\n\t\tdouble balance = user.getBalance().doubleValue();\n\t\tint pagesToPrint = printer.numPagesToPrint(doc).intValue();\n\t\t\n\t\tchar format = doc.getPageFormat();\n\t\tchar toner = doc.getPageToner();\n\n\t\tdouble pricing = 0.0;\n\n\t\t// Get printer pricing\n\t\tif(format == '4' && toner == 'B') {\n\t\t\tpricing = printer.getPrinterPricing().getPriceA4Black().doubleValue();\n\t\t} else if(format == '4' && toner == 'C') {\n\t\t\tpricing = printer.getPrinterPricing().getPriceA4Color().doubleValue();\n\t\t} else if(format == '3' && toner == 'B') {\n\t\t\tpricing = printer.getPrinterPricing().getPriceA3Black().doubleValue();\n\t\t} else if(format == '3' && toner == 'C') {\n\t\t\tpricing = printer.getPrinterPricing().getPriceA3Color().doubleValue();\n\t\t}\n\t\t\n\t\t// Calc total cost\n\t\tdouble totalCost = pricing * pagesToPrint;\n\t\t\n\t\tif(balance >= totalCost) return 0;\n\t\telse return totalCost;\n\t}",
"@Override\n\tpublic Monies change(int amount, Monies balance) throws CashRegisterException {\n\t\tif (balance.getMonetaryValue() < amount) {\n\t\t\tthrow new CashRegisterException(CashRegisterExceptionType.INSUFFICIENT_AMT, amount);\n\t\t}\n\n\t\tList<Integer> searchSpace = createChangeCombinationSearchSpace(amount, balance);\n\n\t\t// if the sum of all eligible banknotes is less than\n\t\t// the change amount we don't proceed.\n\t\t// For example if we have to change 14 and after filtering 20's\n\t\t// we are left with 5, 5, and 2. While the cash register had more\n\t\t// money originally than the change amount, the change banknotes that\n\t\t// we have are not appropriate to process the change.\n\t\tif (searchSpace.stream().mapToInt(Integer::intValue).sum() < amount) {\n\t\t\tthrow new CashRegisterException(CashRegisterExceptionType.NO_EXACT_CHANGE, amount);\n\t\t}\n\n\t\tArrayList<Integer> tempSearchSpace = new ArrayList<Integer>(searchSpace);\n\t\tArrayList<Integer> selectedBankNotes = new ArrayList<Integer>();\n\t\tArrayList<List<Integer>> goodCombinations = new ArrayList<List<Integer>>();\n\t\tint remainingAmount = amount;\n\n\t\tRandom random = new Random();\n\t\tint randomIndex;\n\t\t// Randomized search with pre-set size\n\t\tfor (int i = 0; i < MAX_NUMBER_OF_ATTEMPTS_FOR_FINDING_EXACT_CHANGE; i++) {\n\t\t\trandomIndex = random.nextInt(tempSearchSpace.size());\n\t\t\tInteger banknote = tempSearchSpace.get(randomIndex);\n\t\t\t// Since we continuously shrink the search set we do\n\t\t\t// not to have numbers greater than amount. So we don't need to\n\t\t\t// check\n\t\t\t// if the remaining amount is greater or equal to remaining\n\t\t\t// banknotes.\n\t\t\tremainingAmount -= banknote;\n\t\t\tselectedBankNotes.add(banknote);\n\n\t\t\tshrinkChangeCombinationSearchSpace(randomIndex, remainingAmount, tempSearchSpace);\n\n\t\t\t// if we found a combination we store it\n\t\t\tif (remainingAmount == 0) {\n\t\t\t\tstoreNewCombination(selectedBankNotes, goodCombinations);\n\t\t\t}\n\t\t\t// if we found a combination we reload everything\n\t\t\t// and look for others up to our number of randomized tries\n\t\t\t// or if there are no more banknotes that are smaller or equal\n\t\t\t// to the amount we have remaining.\n\t\t\tif (remainingAmount == 0 || tempSearchSpace.size() == 0) {\n\t\t\t\tselectedBankNotes = new ArrayList<Integer>();\n\t\t\t\tremainingAmount = amount;\n\t\t\t\ttempSearchSpace = new ArrayList<Integer>(searchSpace);\n\t\t\t}\n\t\t}\n\t\t// We have multiple combinations here.\n\t\t// The code is setup to handle these combinations differently through\n\t\t// strategy pattern. For the time being only one strategy has been\n\t\t// implemented\n\t\t// that takes the first combination from the list. Others could the\n\t\t// combinations\n\t\t// with fewest number of banknotes or the banknotes with the smallest\n\t\t// denominations.\n\t\tif (goodCombinations.size() > 0) {\n\t\t\ttry {\n\t\t\t\tMonies changedMonies = convertBankNotesToMonies(selectChangeCombination(goodCombinations));\n\t\t\t\treturn changedMonies;\n\t\t\t} catch (MoniesException mex) {\n\t\t\t\tthrow new CashRegisterException(CashRegisterExceptionType.UNEXPECTED_CURRENCY, mex);\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new CashRegisterException(CashRegisterExceptionType.NO_EXACT_CHANGE, amount);\n\t\t}\n\t}",
"@Test\n\tpublic void testGetEuroBalance(){\n\t\tForexService fakeForexService = new FakeForexService();\n\t\t// 1.11 - EUR-GBP rate\n\t\tcurrentAccount.setForexService(fakeForexService);\n\t\tBigDecimal expectedEuroBalance = new BigDecimal(Double.toString(133.755));\n\t\t\n\t\t// Act\n\t\tBalance actualBalanceEuro = currentAccount.checkBalance(\"EUR\");\n\t\t\n\t\t// Assert\n\t\tassertEquals(expectedEuroBalance, actualBalanceEuro.getAmount());\n\t}",
"public void checkOut(Customer customer) {\n\n customer.greetCustomer();\n System.out.println(\"--------------------------------------\");\n\n // Tussentotaalprijs berekenen en printen\n int firstTotalPrice = calculateTotalPrice(customer.basket);\n\n System.out.println(\"Het tussentotaal is: \" + firstTotalPrice + \" euro\");\n\n // Korting berekenen\n int discount = calculateDiscount(customer.basket);\n\n //int finalTotalPrice = calculateEndPrice(firstTotalPrice, discount);\n }",
"@Test\n\tpublic void moneyTrnasferExcetionInsufficientBalanceOfFromAccount() {\n\t\t\n\t\tString accountNumberFrom = createAccount(\"krishna\",4000);\n\t\tString accountNumberTo = createAccount(\"ram\",2000);\n\t\tdouble amountToBeTranfered = 40000.0;\n\t\tMoneyTransfer moneyTransfer = new MoneyTransfer();\n\t\tmoneyTransfer.setAccountNumberFrom(Integer.parseInt(accountNumberFrom));\n\t\tmoneyTransfer.setAccountNumberTo(Integer.parseInt(accountNumberTo));\n\t\tmoneyTransfer.setAmount(amountToBeTranfered);\n\t\t\n\t\tString requestBody = gson.toJson(moneyTransfer);\n\t\t\n\t\tRequestSpecification request = RestAssured.given();\n\t\trequest.body(requestBody);\n\t\tResponse response = request.put(\"/transfer\");\n\t\t\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - START\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"Account Number - \");\n\t\tsb.append(accountNumberFrom);\n\t\tsb.append(\" do not have sufficient amout to transfer.\");\n\t\t// This logic is required due to response has been set as mix of Message and return data value. - END\n\t\t\n\t\tAssertions.assertEquals(sb.toString(), response.asString());\n\t\t\n\t}",
"public double checkBalanceSavings(long socialSecurityNumber, String userName, String password) throws AuthenticationException,UnauthorizedActionException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getSavingsAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n return getPatron(socialSecurityNumber).getSavingsAccount().getAvailableBalance();\r\n }",
"double getBalance();",
"double getBalance();",
"@Test\n public void holdTest() {\n\n PaymentDto paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String firstPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n\n //init and authorize second payment, but there is 700 cents of 1000 withhold - ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String secondPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n\n //confirm first payment - OK\n\n paymentDto = confirmPayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n\n //confirm second payment, which was filed on authorization - still got ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = confirmPayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n }",
"@Test\n\tpublic void testPayBill() {\n\t\tAccount acc1 = new Account(00000, \"acc1\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"acc1\", 00000, 0, \"\"));\n\t\ttransactions.add(1, new Transaction(03, \"acc1\", 00000, 100.00, \"CC\"));\n\t\ttransactions.add(2, new Transaction(00, \"acc1\", 00000, 0, \"\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Bills Paid\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to pay bills\", testResult);\n\t}",
"@Test\n public void testRBIPaymentStrategy() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n /***\n * Create loan product with RBI strategy\n */\n final Integer loanProductID = createLoanProduct(\"100\", \"0\", LoanProductTestBuilder.RBI_INDIA_STRATEGY);\n Assertions.assertNotNull(loanProductID);\n\n /***\n * Apply for loan application and verify loan status\n */\n final String savingsId = null;\n final String principal = \"12,000.00\";\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n String.valueOf(clientID), collateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanID = applyForLoanApplicationWithPaymentStrategy(clientID, loanProductID, null, savingsId, principal,\n LoanApplicationTestBuilder.RBI_INDIA_STRATEGY, collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"3200\", String.valueOf(firstInstallment.get(\"totalOutstandingForPeriod\")));\n\n /***\n * Make payment for installment #1\n */\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3200\"), loanID);\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"0.00\", String.valueOf(firstInstallment.get(\"totalOutstandingForPeriod\")));\n\n /***\n * Verify 2nd and 3rd repayments dues before making excess payment for installment no 2\n */\n HashMap secondInstallment = loanSchedule.get(2);\n HashMap thirdInstallment = loanSchedule.get(3);\n\n validateNumberForEqual(\"3200\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n validateNumberForEqual(\"3200\", String.valueOf(thirdInstallment.get(\"totalOutstandingForPeriod\")));\n\n validateNumberForEqual(\"3000\", String.valueOf(secondInstallment.get(\"principalOutstanding\")));\n validateNumberForEqual(\"3100\", String.valueOf(thirdInstallment.get(\"principalOutstanding\")));\n\n /***\n * Make payment for installment #2\n */\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3200\"), loanID);\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n /***\n * Verify 2nd and 3rd repayments after making excess payment for installment no 2\n */\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0.00\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n /***\n * According to RBI Excess payment should go to principal portion of next installment, but as interest\n * recalculation is not implemented, it wont make any difference to schedule even though if we made excess\n * payment, so excess payments will behave the same as regular payment with the excess amount\n */\n thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"3200\", String.valueOf(thirdInstallment.get(\"totalOutstandingForPeriod\")));\n validateNumberForEqual(\"3100\", String.valueOf(thirdInstallment.get(\"principalOutstanding\")));\n validateNumberForEqual(\"0\", String.valueOf(thirdInstallment.get(\"principalPaid\")));\n validateNumberForEqual(\"0\", String.valueOf(thirdInstallment.get(\"interestPaid\")));\n validateNumberForEqual(\"100.00\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n /***\n * Make payment with due amount of 3rd installment on 4th installment date\n */\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3200\"), loanID);\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n /***\n * Verify overdue interests are deducted first and then remaining amount for interest portion of due installment\n */\n thirdInstallment = loanSchedule.get(3);\n HashMap fourthInstallment = loanSchedule.get(4);\n\n validateNumberForEqual(\"100\", String.valueOf(thirdInstallment.get(\"totalOutstandingForPeriod\")));\n validateNumberForEqual(\"100\", String.valueOf(thirdInstallment.get(\"principalOutstanding\")));\n\n validateNumberForEqual(\"2900\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n validateNumberForEqual(\"100\", String.valueOf(fourthInstallment.get(\"interestPaid\")));\n validateNumberForEqual(\"0.00\", String.valueOf(fourthInstallment.get(\"interestOutstanding\")));\n\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3000\"), loanID);\n\n /***\n * verify loan is closed as we paid full amount\n */\n loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanAccountIsClosed(loanStatusHashMap);\n\n }",
"@Test\r\n public void test10() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(20,0,0,5555),Consts.PARTTIME_MAX_INCOME +1 , 100, 100);\r\n assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 10, correct : 0, got : \"+ loan);\r\n \t}\r\n \r\n }",
"public static void main(String[] args)\n {\n final String DISPLAYMESSAGE = \"Please enter your account number (int), account type (char), minimum balance, and current balance: \";\n \n final double SAVINGSINTREST = 0.04;\n final double CHECKINGSERVICEFEE = 25;\n final double SAVINGSSERVICEFEE = 10;\n double minimumBalance, currentBalance, checkingIntrestRate, serviceCharge;\n \n int accountNumber;\n \n char accountType;\n \n boolean checking = false;\n boolean savings = true;\n boolean applyFee = false;\n \n checkingIntrestRate = 0;\n \n //\n Scanner accountInfo = new Scanner(System.in);\n \n System.out.println(DISPLAYMESSAGE);\n accountNumber = accountInfo.nextInt();\n accountType = accountInfo.next().charAt(0);\n accountType = Character.toLowerCase(accountType);\n minimumBalance = accountInfo.nextDouble();\n currentBalance = accountInfo.nextDouble();\n //System.out.printf(\"Account Number: %0d\", accountNumber);\n \n // \n switch (accountType)\n {\n case 'c':\n checking = true;\n System.out.println(\"Account Number: \" + accountNumber);\n System.out.println(\"Account type: \" + accountType);\n \n\n if ((minimumBalance + 5000) > currentBalance)\n {\n checkingIntrestRate = 0.03;\n System.out.printf(\"You have earned $%.2f intrest on your account%n\", (currentBalance * checkingIntrestRate));\n currentBalance = currentBalance + (currentBalance * checkingIntrestRate);\n \n }\n else\n {\n checkingIntrestRate = 0.05;\n System.out.printf(\"You have earned $%.2f intrest on your account%n\", (currentBalance * checkingIntrestRate));\n currentBalance = currentBalance + (currentBalance * checkingIntrestRate);\n }\n \n break;\n \n case 's':\n savings = true;\n System.out.println(\"Account Number: \" + accountNumber);\n System.out.println(\"Account type: \" + accountType);\n System.out.printf(\"You have earned $%.2f intrest on your account%n\", (currentBalance * SAVINGSINTREST));\n currentBalance = currentBalance + (currentBalance * SAVINGSINTREST);\n\n\n break;\n \n default:\n System.out.println(\"Invalid account type!\");\n \n }\n \n if (minimumBalance > currentBalance)\n { \n if (accountType == 'c')\n {\n System.out.printf(\"Your account balance has fallen below the $%.0f minimum balance %n\", minimumBalance);\n System.out.printf(\"You have been charged a $%.2f Service Fee %n\", CHECKINGSERVICEFEE);\n currentBalance = (currentBalance - CHECKINGSERVICEFEE);\n System.out.printf(\"Your current balance is $%.2f%n\", currentBalance);\n \n }\n else\n {\n System.out.printf(\"Your account balance has fallen below the $%.0f minimum balance %n\", minimumBalance);\n System.out.printf(\"You have been charged a $%.2f Service Fee %n\", SAVINGSSERVICEFEE);\n currentBalance = (currentBalance - SAVINGSSERVICEFEE);\n System.out.printf(\"Your current balance is $%.2f%n\", currentBalance);\n }\n }\n \n \n \n \n }",
"@Test\n public void SameTokenNameCloseExchangeBalanceIsNotEnough() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(0);\n InitExchangeBeforeSameTokenNameActive();\n long exchangeId = 1;\n String firstTokenId = \"abc\";\n long firstTokenQuant = 100_000_001L;\n String secondTokenId = \"def\";\n long secondTokenQuant = 400000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetMap = accountCapsule.getAssetMap();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetMap.get(firstTokenId));\n Assert.assertEquals(null, assetMap.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_FIRST, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n fail();\n } catch (ContractValidateException e) {\n Assert.assertTrue(e instanceof ContractValidateException);\n Assert.assertEquals(\"exchange balance is not enough\",\n e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }",
"@Test\r\n public void test5() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(56,0,0,5555), 0 , 100, 100);\r\n assertTrue(loan == Consts.FULL_SUBSIDY);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 5, correct : 2816, got : \"+ loan);\r\n \t}\r\n }",
"public Money getTotalBalance();",
"public void setCustomerCheckAmount(java.math.BigDecimal customerCheckAmount) {\r\n this.customerCheckAmount = customerCheckAmount;\r\n }",
"private boolean isValidTransaction(double remainingCreditLimit, double transactionAmount){\n return transactionAmount <= remainingCreditLimit;\n }",
"public BigDecimal validateBalance() throws BalanceException {\n\n BigDecimal balanceOfBankAccount;\n try {\n LOG.info(\"Enter balance for account: \");\n balanceOfBankAccount = IOService.getInstance().readBigDecimal();\n } catch (NumberFormatException err){\n throw new BalanceException( \"Incorrect entry. Please input only integer.\", err);\n }\n return balanceOfBankAccount;\n\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @Test\n public void testInterestPayment ()\n {\n initializeService();\n //assertEquals(0.10, accountingService.bankInterest, \"interest set by bootstrap\")\n \n // set the interest to 12%\n accountingService.setBankInterest(0.12);\n\n // bob is in the hole\n bob.updateCash(-1000.0);\n\n // move to midnight, activate and check messages\n timeService.setCurrentTime(new DateTime(2011, 1, 27, 0, 0, 0, 0, DateTimeZone.UTC).toInstant());\n final Map<Broker, List> msgMap = new HashMap<Broker, List>();\n doAnswer(new Answer() {\n public Object answer(InvocationOnMock invocation) {\n Object[] args = invocation.getArguments();\n msgMap.put((Broker)args[0], (List)args[1]);\n return null;\n }\n }).when(mockProxy).sendMessages(isA(Broker.class), anyList());\n accountingService.activate(timeService.getCurrentTime(), 3);\n verify(mockProxy, times(2)).sendMessages(isA(Broker.class), anyList());\n\n // should have bank tx and cash position for Bob\n assertEquals(2, msgMap.get(bob).size(), \"two messages\");\n Object btx1 = findFirst(msgMap.get(bob), new Predicate<Object>() {\n public boolean apply (Object thing) {\n return (thing instanceof BankTransaction);\n }\n });\n assertNotNull(btx1, \"found bank tx\");\n assertEquals(-1000.0 * 0.12 / 365.0, ((BankTransaction)btx1).getAmount(), 1e-6, \"correct amount\");\n Object cp1 = findFirst(msgMap.get(bob), new Predicate<Object>() {\n public boolean apply (Object thing) {\n return (thing instanceof CashPosition);\n }\n });\n assertNotNull(cp1, \"found cash posn\");\n assertEquals(-1000.0 * (1.0 + 0.12 / 365.0), ((CashPosition)cp1).getBalance(), 1e-6, \"correct amount\");\n }",
"@Test\r\n public void test11() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(20,0,0,5555), Consts.PARTTIME_MAX_INCOME, 99, 100);\r\n assertTrue(loan == Consts.HALF_LOAN + Consts.HALF_SUBSIDY);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 11, correct : 4960, got : \"+ loan);\r\n \t}\r\n \r\n }",
"private void listBalances() {\n\t\t\r\n\t}",
"@Test\n public void SameTokenNameOpenExchangeBalanceIsNotEnough() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(1);\n InitExchangeSameTokenNameActive();\n long exchangeId = 1;\n String firstTokenId = \"123\";\n long firstTokenQuant = 100_000_001L;\n String secondTokenId = \"456\";\n long secondTokenQuant = 400000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetV2Map = accountCapsule.getAssetMapV2();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetV2Map.get(firstTokenId));\n Assert.assertEquals(null, assetV2Map.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_FIRST, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n fail();\n } catch (ContractValidateException e) {\n Assert.assertTrue(e instanceof ContractValidateException);\n Assert.assertEquals(\"exchange balance is not enough\",\n e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }",
"private void checkDebtTotal(Double totalDebt, Double amountInCurrencyDefault) {\n\t\tif(amountInCurrencyDefault > totalDebt) {\n\t\t\tthrow new PaymentExceedsTotalDebtException(String.format(\"El pago con monto '%1$,.2f' excede la deuda del usuario '%2$,.2f'\", amountInCurrencyDefault, totalDebt));\n\t\t}\n\t}",
"@Test\n\tpublic void testDebitLateMessage() {\n\t\tLong origionalAccountBalance = 100L;\n\t\tint creditEstimate = 50;\n\n\t\tSmsAccount smsAccount = new SmsAccount();\n\t\tsmsAccount.setSakaiUserId(\"5\");\n\t\tsmsAccount.setSakaiSiteId(\"5\");\n\t\tsmsAccount.setMessageTypeCode(\"12345\");\n\t\tsmsAccount.setOverdraftLimit(1000L);\n\t\tsmsAccount.setCredits(origionalAccountBalance);\n\t\tsmsAccount.setAccountName(\"accountName\");\n\t\tsmsAccount.setAccountEnabled(true);\n\t\thibernateLogicLocator.getSmsAccountLogic()\n\t\t\t\t.persistSmsAccount(smsAccount);\n\n\t\tSmsTask smsTask = new SmsTask();\n\t\tsmsTask.setSakaiSiteId(SmsConstants.SMS_DEV_DEFAULT_SAKAI_SITE_ID);\n\t\tsmsTask.setSenderUserName(\"sakaiUserId\");\n\t\tsmsTask.setSmsAccountId(smsAccount.getId());\n\t\tsmsTask.setDateCreated(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setDateToSend(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setStatusCode(SmsConst_DeliveryStatus.STATUS_PENDING);\n\t\tsmsTask.setAttemptCount(2);\n\t\tsmsTask.setMessageBody(SmsConstants.SMS_DEV_DEFAULT_SMS_MESSAGE_BODY);\n\t\tsmsTask.setSenderUserName(\"senderUserName\");\n\t\tsmsTask.setMaxTimeToLive(1);\n\t\tsmsTask.setCreditEstimate(creditEstimate);\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(smsTask.getDateToSend());\n\t\tcal.add(Calendar.SECOND, smsTask.getMaxTimeToLive());\n\t\tsmsTask.setDateToExpire(cal.getTime());\n\t\thibernateLogicLocator.getSmsTaskLogic().persistSmsTask(smsTask);\n\n\t\tsmsBillingImpl.debitLateMessages(smsTask, 1);\n\t\t// Check the account balance was deducted from\n\t\tSmsAccount retAccount = hibernateLogicLocator.getSmsAccountLogic()\n\t\t\t\t.getSmsAccount(smsAccount.getId());\n\t\tAssert.assertNotNull(retAccount);\n\t\tAssert.assertTrue(retAccount.getCredits() < origionalAccountBalance);\n\t}",
"@Test\r\n public void test12() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(22,0,0,5555),0 , 100, 100);\r\n assertTrue(loan == Consts.FULL_LOAN + Consts.FULL_SUBSIDY);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 12, correct : 9904, got : \"+ loan);\r\n \t}\r\n }",
"public abstract void msgComputeBill(String choice, Customer c, Waiter w, int tableNumber, Map<String, Double> menu);",
"@Test\n public void testGiveChange() throws Exception {\n System.out.println(\"giveChange\");\n //CashRegister instance = new CashRegister();\n assertEquals(0.0, instance.giveChange(), EPSILON);\n instance.scanItem(0.55);\n instance.scanItem(1.27);\n double expResult = 0.18;\n instance.collectPayment(Money.QUARTER, 8);\n double result = instance.giveChange();\n assertEquals(expResult, result, EPSILON);\n \n }",
"@Test\n void bankListIsAccountExistToTransfer_accountExistWithSufficientMoneyToTransfer_success() {\n ByteArrayOutputStream outContent = new ByteArrayOutputStream();\n System.setOut(new PrintStream(outContent));\n BankList bankList = new BankList(storage);\n Ui uiTest = new Ui();\n Bank newSavingAccount = new Saving(\"Test Saving Account\", 1000, 2000);\n Bank newInvestmentAccount = new Investment(\"Test Investment Account\", 1000);\n String expectedReturnType = \"investment\";\n\n try {\n bankList.bankListAddBank(newSavingAccount, uiTest);\n bankList.bankListAddBank(newInvestmentAccount, uiTest);\n outContent.reset();\n String returnType = bankList.getTransferBankType(\"Test Investment Account\",\n 500);\n assertEquals(expectedReturnType, returnType);\n\n\n } catch (BankException error) {\n System.out.println(\"Expected no throw, but error thrown\");\n }\n\n assertEquals(2, bankList.getBankListSize());\n\n }",
"@Override\r\n\tpublic List<CoinsResponse> billsToCoinstRef(List<BillToExchange> lstBillToExchange) throws ExchangeMachineException {\n\t\t\r\n\t\tDouble dTotal = 0.0;\r\n\t\tList<CoinsResponse> lstCoinsResponse = new ArrayList<CoinsResponse>();\r\n\t\tString erroMessage = null;\r\n\t\t\r\n\t\tfor(BillToExchange billToExchange : lstBillToExchange) {\r\n\t\t\tdTotal = dTotal + (billToExchange.getBillQuantity() * billToExchange.getBillAmount().doubleValue());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\t\t//Iterate over coins denomination for calculation\r\n\t\t\tcoinExchangeWrapper.setTotal(new BigDecimal(dTotal).setScale(2, RoundingMode.FLOOR));\r\n\t\t\tfor(CoinsDTO coins : coinsDispenser.getCoinsDispenser() ) {\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"Coin id : \" + coins.getId() + \" Denomination : \" + coins.getCoinDenomination() + \" Quantity : \" + coins.getCoinQuantity());\r\n\t\t\t\t\r\n\t\t\t\tif(coins.getCoinQuantity() > 0) {\r\n\t\t\t\t\tcoinExchangeWrapper.setCurrentCoinDenomination(coins.getCoinDenomination());\r\n\t\t\t\t\tcoinExchangeWrapper.setCurrentCoinQuantity(coins.getCoinQuantity());\r\n\t\t\t\t\tcoinExchangeWrapper.setMaxCoinQuantity(coins.getCoinMaxQuantity());\r\n\t\t\t\t\tgetCoinsCalculation(coinExchangeWrapper, lstCoinsResponse);\r\n\t\t\t\t\tcoins.setCoinQuantity(coinExchangeWrapper.getCurrentCoinQuantity());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Total Remain for Calculation : \" + coinExchangeWrapper.getTotal());\r\n\t\t\t\t\r\n\t\t\t\tif(coinExchangeWrapper.getTotal().compareTo(BigDecimal.ZERO) == 0) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//Amount still not completed, needs to raise error\r\n\t\t\tif(coinExchangeWrapper.getTotal().compareTo(BigDecimal.ZERO) != 0) {\r\n\t\t\t\t//Raise exception\r\n\t\t\t\terroMessage = \"Not Enough coins to complete exchange\";\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\r\n\t\t}catch(Exception e) {\r\n\t\t\tif(erroMessage != null) {\r\n\t\t\t\tthrow getExchangeMachineException(erroMessage, e);\r\n\t\t\t}else {\r\n\t\t\t\tthrow getExchangeMachineException(e.getMessage(), e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn lstCoinsResponse;\r\n\t}",
"@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\t\t\t\tpublic void verifySAPGasCustomer_AnnualServiceAmount()\t\n\t\t\t\t{\t\n\t\t\t\t\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the SAP SMR page for Electricity customer\");\n\t\t\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRGasUserforsingleMeter\");\n\t\t\t\t\t\t new SubmitMeterReadAction()\n\t\t\t\t\t\t .openSMRpage(\"Gas\")\n\t\t\t\t\t\t.verifyAnonymousSAPGasCustomersRewrite(smrProfile);\n\t\t\t\t}",
"public double getBalance() {\n\n double balance = 0;\n balance = overDraftLimit;\n return balance;\n\n }",
"@Test\n public void testImpossible1TransferMoney() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0000\");\n AccountOfUser acc2 = new AccountOfUser(0, \"0000 0000 0000 0001\");\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n bank.addAccountToUser(user.getPassport(), acc2);\n assertThat(bank.transferMoney(user.getPassport(), acc.getRequisites(), user.getPassport(), acc2.getRequisites(), 100), is(false));\n }",
"public int hasBalance(UUID uuid, int number) {\r\n\t\tPennyGame plugin = PennyGame.getPlugin(PennyGame.class);\r\n\t\t//int previousTicketCount = getTicketCount(uuid);\r\n\t\t//number = Math.min(number, this.maxTicketCount - previousTicketCount);\r\n\t\tRegisteredServiceProvider<Economy> rsp = plugin.getServer().getServicesManager().getRegistration(Economy.class);\r\n\t\tEconomy econ = rsp.getProvider();\r\n\t\tOfflinePlayer player = Bukkit.getOfflinePlayer(uuid);\r\n\t\tdouble balance = econ.getBalance(player);\r\n\t\tnumber = (int)Math.min(number, (balance / this.ticketPrice));\r\n\t\t//number = (int)Math.min(number - (number - (balance / this.ticketPrice)), number);\r\n\t\t\r\n\t\treturn number;\t\r\n\t}",
"@Test\n public void test5() throws InsufficientCashException {\n Map<Integer, Integer> map1 = new TreeMap<Integer, Integer>();\n map1.put(1000, 0);\n map1.put(500, 10);\n map1.put(100, 1);\n map1.put(25, 0);\n map1.put(10, 0);\n map1.put(5, 0);\n map1.put(1, 99);\n try {\n assertEquals(map1, cashRegister.withdraw(50, 100));\n } catch (InsufficientCashException e) {\n fail();\n } catch (IllegalArgumentException e) {\n assertEquals(e.getMessage(), \"Invalid arguments\");\n }\n }",
"@Test(expected=InvalidInputException.class)\n\tpublic void testDepositAmountForInvalidMobileNumber(){\n\t\tservice= new WalletServiceImpl();\n\t\tBigDecimal bg= new BigDecimal(9000);\n\t\tCustomer customer=service.depositAmount(\"9020320132\", bg);\n\t}",
"@Test\r\n public void test8() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(20,0,0,5555), Consts.FULLTIME_MAX_INCOME +1 , 100, 100);\r\n assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 8, correct : 0, got : \"+ loan);\r\n \t}\r\n \r\n }",
"@Test(priority = 5)\n public void viewAccountBalance() throws IOException, InterruptedException {\n WebElement viewbalanceBtn = driver.findElement(By.xpath(Utility.fetchLocator(\"viewBalanceBtn_XPATH\")));\n viewbalanceBtn.click();\n Thread.sleep(3000);\n //Print out balance\n WebElement availableBalance = driver.findElement(By.xpath(Utility.fetchLocator(\"availableBalance_XPATH\")));\n String balanceText = availableBalance.getText();\n System.out.println(\"The balance is \" + balanceText);\n //Close modal for balance info\n WebElement balanceModal = driver.findElement(By.className(Utility.fetchLocator(\"closeModalBalance_CLASS\")));\n balanceModal.click();\n Thread.sleep(3000);\n }",
"public int calculateBill() {\n\t\treturn chargeVehicle(); \n\t}",
"@Override\r\n\tpublic JSONObject valid(Merchant merchant,String amount) {\n\t\tBank bank = merchant.getBanks().stream().filter(b -> b.getBankType().equals(true)).findFirst().get();\r\n\t\tBigDecimal money = bank.getOverMoney().subtract(new BigDecimal(amount)).subtract(merchant.getFee());\r\n\t\t\r\n\t\tif (merchant.getState() != 1){\r\n\t\t\treturn Result.error.toJson(\"商户状态异常,拒绝代付\");\r\n\t\t}\r\n\t\t\r\n\t\tif (!bank.getPayeeState()){\r\n\t\t\treturn Result.error.toJson(\"未开启代付功能\");\r\n\t\t}\r\n\t\t\r\n\t\tif (money.compareTo(BigDecimal.ZERO) < 0){\r\n\t\t\treturn Result.error.toJson(\"账户余额不足\");\r\n\t\t}\r\n\t\treturn Result.success.toJson(\"校验成功\");\r\n\t}",
"@Test\n public void loanWithCahargesOfTypeAmountPercentageAndCashBasedAccountingEnabled() {\n\n final Integer clientID = ClientHelper.createClient(REQUEST_SPEC, RESPONSE_SPEC);\n ClientHelper.verifyClientCreatedOnServer(REQUEST_SPEC, RESPONSE_SPEC, clientID);\n\n // Add charges with payment mode regular\n List<HashMap> charges = new ArrayList<>();\n Integer percentageDisbursementCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanDisbursementJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\"));\n addCharges(charges, percentageDisbursementCharge, \"1\", null);\n\n Integer percentageSpecifiedDueDateCharge = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageSpecifiedDueDateCharge, \"1\", \"29 September 2011\");\n\n Integer percentageInstallmentFee = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanInstallmentJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", false));\n addCharges(charges, percentageInstallmentFee, \"1\", \"29 September 2011\");\n\n final Account assetAccount = ACCOUNT_HELPER.createAssetAccount();\n final Account incomeAccount = ACCOUNT_HELPER.createIncomeAccount();\n final Account expenseAccount = ACCOUNT_HELPER.createExpenseAccount();\n final Account overpaymentAccount = ACCOUNT_HELPER.createLiabilityAccount();\n\n List<HashMap> collaterals = new ArrayList<>();\n\n final Integer collateralId = CollateralManagementHelper.createCollateralProduct(REQUEST_SPEC, RESPONSE_SPEC);\n Assertions.assertNotNull(collateralId);\n final Integer clientCollateralId = CollateralManagementHelper.createClientCollateral(REQUEST_SPEC, RESPONSE_SPEC,\n clientID.toString(), collateralId);\n Assertions.assertNotNull(clientCollateralId);\n addCollaterals(collaterals, clientCollateralId, BigDecimal.valueOf(1));\n\n final Integer loanProductID = createLoanProduct(false, CASH_BASED, assetAccount, incomeAccount, expenseAccount, overpaymentAccount);\n final Integer loanID = applyForLoanApplication(clientID, loanProductID, charges, null, \"12,000.00\", collaterals);\n Assertions.assertNotNull(loanID);\n HashMap loanStatusHashMap = LoanStatusChecker.getStatusOfLoan(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n LoanStatusChecker.verifyLoanIsPending(loanStatusHashMap);\n\n ArrayList<HashMap> loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n verifyLoanRepaymentSchedule(loanSchedule);\n\n List<HashMap> loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"120.00\", \"0.0\", \"0.0\");\n\n // check for disbursement fee\n HashMap disbursementDetail = loanSchedule.get(0);\n validateNumberForEqual(\"120.00\", String.valueOf(disbursementDetail.get(\"feeChargesDue\")));\n\n // check for charge at specified date and installment fee\n HashMap firstInstallment = loanSchedule.get(1);\n validateNumberForEqual(\"149.11\", String.valueOf(firstInstallment.get(\"feeChargesDue\")));\n\n // check for installment fee\n HashMap secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"29.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n\n LOG.info(\"-----------------------------------APPROVE LOAN-----------------------------------------\");\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.approveLoan(\"20 September 2011\", loanID);\n LoanStatusChecker.verifyLoanIsApproved(loanStatusHashMap);\n LoanStatusChecker.verifyLoanIsWaitingForDisbursal(loanStatusHashMap);\n\n LOG.info(\"-------------------------------DISBURSE LOAN-------------------------------------------\");\n String loanDetails = LOAN_TRANSACTION_HELPER.getLoanDetails(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n loanStatusHashMap = LOAN_TRANSACTION_HELPER.disburseLoanWithNetDisbursalAmount(\"20 September 2011\", loanID,\n JsonPath.from(loanDetails).get(\"netDisbursalAmount\").toString());\n LoanStatusChecker.verifyLoanIsActive(loanStatusHashMap);\n\n final JournalEntry[] assetAccountInitialEntry = { new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"12000.00\"), JournalEntry.TransactionType.DEBIT) };\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 September 2011\", assetAccountInitialEntry);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 September 2011\",\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.0\", \"120.00\", \"0.0\");\n\n LOG.info(\"-------------Make repayment 1-----------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 October 2011\", Float.parseFloat(\"3300.60\"), loanID);\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageDisbursementCharge, loanCharges, \"1\", \"0.00\", \"120.00\", \"0.0\");\n validateCharge(percentageSpecifiedDueDateCharge, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"90.89\", \"29.11\", \"0.0\");\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2911.49\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"149.11\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"240.00\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentageSpecifiedDueDateCharge), \"29 October 2011\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"149.70\", String.valueOf(secondInstallment.get(\"feeChargesDue\")));\n LOAN_TRANSACTION_HELPER.waiveChargesForLoan(loanID, (Integer) getloanCharge(percentageInstallmentFee, loanCharges).get(\"id\"),\n LoanTransactionHelper.getWaiveChargeJSON(String.valueOf(2)));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentageInstallmentFee, loanCharges, \"1\", \"61.19\", \"29.11\", \"29.70\");\n\n LOG.info(\"----------Make repayment 2------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3271.49\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3271.49\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2969.72\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"181.77\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"0\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"--------------Waive interest---------------\");\n LOAN_TRANSACTION_HELPER.waiveInterest(\"20 December 2011\", String.valueOf(61.79), loanID);\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap thirdInstallment = loanSchedule.get(3);\n validateNumberForEqual(\"60.59\", String.valueOf(thirdInstallment.get(\"interestOutstanding\")));\n\n Integer percentagePenaltySpecifiedDueDate = ChargesHelper.createCharges(REQUEST_SPEC, RESPONSE_SPEC,\n ChargesHelper.getLoanSpecifiedDueDateJSON(ChargesHelper.CHARGE_CALCULATION_TYPE_PERCENTAGE_AMOUNT, \"1\", true));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"29 September 2011\", \"1\"));\n loanCharges.clear();\n loanCharges = LOAN_TRANSACTION_HELPER.getLoanCharges(loanID);\n validateCharge(percentagePenaltySpecifiedDueDate, loanCharges, \"1\", \"0.00\", \"120.0\", \"0.0\");\n\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n secondInstallment = loanSchedule.get(2);\n validateNumberForEqual(\"120\", String.valueOf(secondInstallment.get(\"totalOutstandingForPeriod\")));\n\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"3300.60\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"2791.49\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 October 2011\",\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"149.11\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"240\"), JournalEntry.TransactionType.CREDIT));\n\n LOG.info(\"----------Make repayment 3 advance------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 November 2011\", Float.parseFloat(\"3301.78\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"3301.78\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3149.11\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 November 2011\",\n new JournalEntry(Float.parseFloat(\"30.29\"), JournalEntry.TransactionType.CREDIT),\n new JournalEntry(Float.parseFloat(\"122.38\"), JournalEntry.TransactionType.CREDIT));\n LOAN_TRANSACTION_HELPER.addChargesForLoan(loanID, LoanTransactionHelper\n .getSpecifiedDueDateChargesForLoanAsJSON(String.valueOf(percentagePenaltySpecifiedDueDate), \"10 January 2012\", \"1\"));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n HashMap fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"120\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3240.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Pay applied penalty ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"120\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120\"), JournalEntry.TransactionType.DEBIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"120.00\"), JournalEntry.TransactionType.CREDIT));\n loanSchedule.clear();\n loanSchedule = LOAN_TRANSACTION_HELPER.getLoanRepaymentSchedule(REQUEST_SPEC, RESPONSE_SPEC, loanID);\n fourthInstallment = loanSchedule.get(4);\n validateNumberForEqual(\"0\", String.valueOf(fourthInstallment.get(\"penaltyChargesOutstanding\")));\n validateNumberForEqual(\"3120.58\", String.valueOf(fourthInstallment.get(\"totalOutstandingForPeriod\")));\n\n LOG.info(\"----------Make repayment 4 ------------\");\n LOAN_TRANSACTION_HELPER.makeRepayment(\"20 January 2012\", Float.parseFloat(\"3120.58\"), loanID);\n JOURNAL_ENTRY_HELPER.checkJournalEntryForAssetAccount(assetAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"3120.58\"), JournalEntry.TransactionType.DEBIT),\n new JournalEntry(Float.parseFloat(\"3089.68\"), JournalEntry.TransactionType.CREDIT));\n JOURNAL_ENTRY_HELPER.checkJournalEntryForIncomeAccount(incomeAccount, \"20 January 2012\",\n new JournalEntry(Float.parseFloat(\"30.90\"), JournalEntry.TransactionType.CREDIT));\n }",
"@Test\r\n public void test13()\r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(21,0,0,5555), 0 , 99, 100);\r\n assertTrue(loan == Consts.HALF_LOAN + Consts.HALF_SUBSIDY);\r\n \t\t\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 13, correct : 4960, got : \"+ loan);\r\n \t}\r\n }",
"@Test(expected=InvalidInputException.class)\n\t\tpublic void testWithdrawAmountForInvalidMobileNumber(){\n\t\t\tservice= new WalletServiceImpl();\n\t\t\tBigDecimal bg= new BigDecimal(9000);\n\t\t\tCustomer customer=service.withdrawAmount(\"9020320132\", bg);\n\t\t}",
"int updateBalance(CardVO cv) throws RemoteException;",
"@Test\n public void SameTokenNameCloseExchangeBalanceIsNotEnough2() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(0);\n InitExchangeBeforeSameTokenNameActive();\n long exchangeId = 2;\n String firstTokenId = \"_\";\n long firstTokenQuant = 1000_000_000001L;\n String secondTokenId = \"def\";\n long secondTokenQuant = 400000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetMap = accountCapsule.getAssetMap();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetMap.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_FIRST, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n fail();\n } catch (ContractValidateException e) {\n Assert.assertTrue(e instanceof ContractValidateException);\n Assert.assertEquals(\"exchange balance is not enough\",\n e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }",
"public void enoughForTransfer(double amount) throws BankException {\n if (this.currentAmount + amount > MAX_AMOUNT) {\n logger.warning(\"The amount in the receiving bank account cannot exceed 9 digits\");\n throw new BankException(\"The amount in the receiving bank account cannot exceed 9 digits\");\n }\n }",
"@Test\n\tpublic void depositTest(){\n\t\tCustomer cus = new Customer(\"wgl\", myDate, \"Beijing\");\n\t\tAccount cAcc = new CurrentAccount(cus);\n\t\tbc.deposit(cAcc, 500, true);\n\t\tboolean flag = false;\n\t\tif(cAcc.getBalance() == 500.0){\n\t\t\tflag = true;\n\t\t}\n\t\tassertTrue(flag);\n\t}",
"public BigDecimal borrow(Account acct) {\n\t\tBigDecimal amt = maxLoans.subtract(acct.loans);\n\t\tif (amt.compareTo(BigDecimal.ZERO) < 0)\n\t\t\tamt = BigDecimal.ZERO;\n\t\treturn amt;\n\t}",
"@Test\n\tpublic void testDebitCard() {\n\t\tassertEquals(100.0, card.getBalance());\n\t}",
"private boolean actualizarBPartner() {\n if (!isReceipt() && getC_BPartner_ID() != 0 && !isAllocated()) {\n MBPartner bp = new MBPartner(getCtx(), getC_BPartner_ID(), get_TrxName());\n BigDecimal previo = bp.getTotalOpenBalance();\n BigDecimal actual = Env.ZERO;\n\n BigDecimal monto = getAllocatedAmt();\n if (monto == null) {\n monto = Env.ZERO;\n }\n\n //\tSuma el monto no asignado del pago, al saldo del proveedor\n actual = previo.add(getPayAmt().add(monto));\n\n bp.setTotalOpenBalance(actual);\n return bp.save();\n }\n else\n return false;\n }",
"@Test(expected = BidAmountException.class)\n public void bidIsLessThanHighestBidIsRejected() {\n knownUsers.login(seller.userName(), seller.password());\n knownUsers.annointSeller(seller.userName());\n\n knownUsers.login(bidder.userName(), bidder.password());\n\n Auction testAuction = new Auction(seller, item, startingPrice, startTime, endTime);\n testAuction.onStart();\n\n Bid firstBid = new Bid(bidder, startingPrice, startTime.plusMinutes(2));\n\n testAuction.submitBid(firstBid);\n\n testAuction.submitBid(firstBid);\n\n\n }",
"@Test\n public void SameTokenNameOpenExchangeBalanceIsNotEnough2() {\n dbManager.getDynamicPropertiesStore().saveAllowSameTokenName(1);\n InitExchangeSameTokenNameActive();\n long exchangeId = 2;\n String firstTokenId = \"_\";\n long firstTokenQuant = 1000_000_000001L;\n String secondTokenId = \"456\";\n long secondTokenQuant = 400000000L;\n\n byte[] ownerAddress = ByteArray.fromHexString(OWNER_ADDRESS_FIRST);\n AccountCapsule accountCapsule = dbManager.getAccountStore().get(ownerAddress);\n Map<String, Long> assetV2Map = accountCapsule.getAssetMapV2();\n Assert.assertEquals(10000_000000L, accountCapsule.getBalance());\n Assert.assertEquals(null, assetV2Map.get(secondTokenId));\n\n ExchangeWithdrawActuator actuator = new ExchangeWithdrawActuator(getContract(\n OWNER_ADDRESS_FIRST, exchangeId, firstTokenId, firstTokenQuant),\n dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n\n try {\n actuator.validate();\n actuator.execute(ret);\n fail();\n } catch (ContractValidateException e) {\n Assert.assertTrue(e instanceof ContractValidateException);\n Assert.assertEquals(\"exchange balance is not enough\",\n e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse(e instanceof ContractExeException);\n } finally {\n dbManager.getExchangeStore().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeStore().delete(ByteArray.fromLong(2L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(1L));\n dbManager.getExchangeV2Store().delete(ByteArray.fromLong(2L));\n }\n }",
"public boolean checkPayment(int debt) {\n\t\tboolean couldSell = false;\t\n\t\tSystem.out.println(\"here\");\n\t\tcouldSell = checkSellHouses(debt);\n\t\tSystem.out.println(\"here\");\n\t\tSystem.out.println(getMoney());\n\t\tif(!couldSell) {\n\t\t\tArrayList<PropertyCard> soloCardsToMortgage = new ArrayList<>();\n\t\t\tfor(PropertyCard c: getCards()) {\n\t\t\t\tif(!c.isInMortgage() && !isCollectionFull(c) && !checkCollection(this, c)) {\n\t\t\t\t\tsoloCardsToMortgage.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrayList<PropertyCard> almostCompleteCards = new ArrayList<>();\n\t\t\tfor(PropertyCard c: getCards()) {\n\t\t\t\t//still will not get full Collection and in Mortgage but will dodge already taken\n\t\t\t\tif(checkCollection(this, c)) {\n\t\t\t\t\talmostCompleteCards.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcouldSell = checkMortgageCards(soloCardsToMortgage, almostCompleteCards, debt);\n\t\t\tif(!couldSell) {\n\t\t\t\tcouldSell = chooseWhatToSell(soloCardsToMortgage, debt);\n\t\t\t\tif(!couldSell) {\n\t\t\t\t\tcouldSell = chooseWhatToSell(almostCompleteCards, debt);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn couldSell;\n\t}",
"@Test\n public void testImpossible2TransferMoney() {\n Bank bank = new Bank();\n User user = new User(\"Petr\", \"0000 000000\");\n AccountOfUser acc = new AccountOfUser(0, \"0000 0000 0000 0001\");\n bank.addUser(user);\n bank.addAccountToUser(user.getPassport(), acc);\n assertThat(bank.transferMoney(user.getPassport(), \"0000 0000 0000 0000\", user.getPassport(), acc.getRequisites(), 100), is(false));\n }",
"@Test\r\n public void test7() \r\n {\r\n \tint loan = -1;\r\n \ttry{\r\n \t\tloan = p.getMonthlyAmount(TestHelper.getSSN(20,0,0,5555),Consts.FULLTIME_MAX_INCOME +1 , 101, 100);\r\n \t assertTrue(loan == Consts.ZERO);\r\n \t}catch(AssertionError err){\r\n \t\tSystem.out.println(\"Test 7, correct : 0, got : \"+ loan);\r\n \t}\r\n \r\n }",
"public static void atmCheckDepositValid(String accNum, int amount) {\n\t\ttry {\n\t\t\tif (amount >= 0 && amount <= 200000) {\n\t\t\t\tif (AccMgr.checkDailyDepositLimit(accNum, amount)) {\n\t\t\t\t\tAccMgr.performDailyDeposit(amount, accNum);\n\t\t\t\t\tTransactionFileMgr.addDepTransaction(accNum, Integer.toString(amount));\n\t\t\t\t\tSystem.out.println(\"Deposit successfully!\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"You have exceeded the daily limit.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Please enter a number between 0 - 200000:\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}",
"public static void findLargestBalance(ArrayList<Account> accounts){\n if (accounts.isEmpty()){\r\n System.out.println(\"There is no account\");\r\n } else {\r\n Account largestAcct = accounts.get(0);\r\n int counterNull = 0;\r\n\r\n //have only one account\r\n if (accounts.size() == 1){\r\n System.out.println(\"Account that has largest balance: \" + largestAcct.getID());\r\n }\r\n\r\n //have more than 1 accounts\r\n if (accounts.size() > 1){\r\n\r\n //compare the first two accounts to see if it return null or a double\r\n largestAcct = accounts.get(1).largestAccount(largestAcct);\r\n\r\n //if largest account equals null, we cannot invoke the method\r\n //assign the largest to be one of the 2 accounts to continue comparing\r\n if (largestAcct == null){\r\n largestAcct = accounts.get(0);\r\n counterNull++;\r\n }\r\n\r\n //comparing the array elements with the current largest account\r\n for (int i = 2; i < accounts.size(); i++){\r\n largestAcct = accounts.get(i).largestAccount(largestAcct);\r\n //count the number of null return from largest account\r\n if (largestAcct == null){\r\n counterNull++;\r\n largestAcct = accounts.get(i);\r\n }\r\n }\r\n\r\n //when all accounts have the same balance, \r\n //the number of null counter equals the number of accounts minus one \r\n if (counterNull == accounts.size() - 1)\r\n System.out.printf(\"All acounts have the same balance of %.2f \\n\", accounts.get(0).getBalance());\r\n else\r\n System.out.println(\"Account(s) that has largest balance: \" + largestAcct.getID());\r\n } \r\n }\r\n }",
"private void doDeposit() {\n while (true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n int amountDeposited = ui.takeDepositEnvelope();\n userAccount.credit(amountDeposited);\n ui.deliverMoney(amountDeposited);\n ui.displayNewBalance(userAccount);\n break;\n\n } catch (Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n\n }"
] | [
"0.6462042",
"0.6360145",
"0.60955334",
"0.60522205",
"0.6036383",
"0.58710885",
"0.5821101",
"0.574734",
"0.5739771",
"0.5704898",
"0.5681072",
"0.56609213",
"0.5648338",
"0.5643328",
"0.56191975",
"0.5617331",
"0.56110626",
"0.5608729",
"0.5566647",
"0.55573004",
"0.5550886",
"0.553808",
"0.55350375",
"0.5531041",
"0.54987365",
"0.54866785",
"0.5483511",
"0.54803723",
"0.54802555",
"0.5478404",
"0.54553914",
"0.5454671",
"0.54499894",
"0.54434925",
"0.54362494",
"0.5427286",
"0.54096663",
"0.54062265",
"0.5405515",
"0.539864",
"0.53896296",
"0.53884137",
"0.53841066",
"0.5377569",
"0.5363842",
"0.5361225",
"0.5359281",
"0.5354441",
"0.53430146",
"0.53430146",
"0.53294736",
"0.5327695",
"0.5325184",
"0.5318391",
"0.5310199",
"0.5307548",
"0.5306237",
"0.53014094",
"0.529554",
"0.52919793",
"0.52913827",
"0.528517",
"0.5284746",
"0.52701336",
"0.52608234",
"0.52595764",
"0.52561885",
"0.5256005",
"0.5254555",
"0.52508396",
"0.52496755",
"0.523084",
"0.52245426",
"0.5223696",
"0.52187425",
"0.52159846",
"0.52133375",
"0.521303",
"0.520134",
"0.5196955",
"0.5185279",
"0.51797485",
"0.5171153",
"0.51602453",
"0.51598126",
"0.5156755",
"0.5154952",
"0.5154617",
"0.515034",
"0.5149036",
"0.5145085",
"0.5143456",
"0.51357627",
"0.5134979",
"0.5131647",
"0.51305467",
"0.51304257",
"0.5121793",
"0.5120537",
"0.5119976"
] | 0.5220908 | 74 |
Initialize with URL from preferences | public RDB() throws Exception
{
this(Preferences.getURL());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n maestro = new Maestro();\n String nombreUsuario = System.getProperty(\"nombreUsuario\");\n maestro = maestro.obtenerMaestro(nombreUsuario);\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n\n txtIntervalWaktu.setText(AutoStatic.SETTINGS.getLikeInterval());\n txtIdentifier.setText(AutoStatic.SETTINGS.getLikeButton());\n\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n\r\n try {\r\n BasicConfigurator.configure();\r\n\r\n stopAutoRefreshMenuItem.setDisable(true);\r\n\r\n GetPrefs();\r\n createSensorObj(pref, 1);\r\n createSensorObj(pref, 2);\r\n createSensorObj(pref, 3);\r\n RefreshNum.setVisible(false);\r\n RefreshNumLabel.setVisible(false);\r\n log.info(\"Application startup\");\r\n log.debug(\"Hello this is an debug message\");\r\n log.error(\"Hello this is an error message\");\r\n\r\n } catch (ThingSpeakException | UnirestException | FileNotFoundException ex) {\r\n log.log(Priority.ERROR, ex);\r\n }\r\n\r\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n //Polaczenie polaczenie;\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n setInfoUser();\n }",
"public void configureURL(View view) {\n\n //get url from edit text\n urlString = urlText.getText().toString();\n\n if((urlString.contains(\"https://\") && urlString.length()>8) || (urlString.contains(\"http://\") && urlString.length()>7)) {\n PreferenceManager.getDefaultSharedPreferences(getApplicationContext()).edit().putString(\"urlString_\"+alarmID, urlString).apply();\n\n //determine if from configureURLButton or searchButton (require different actions)\n boolean fromConfigureURLButton;\n if(view.getTag().toString().equals(\"configure\")) {\n fromConfigureURLButton = true;\n } else {\n fromConfigureURLButton = false;\n }\n\n Intent intent = new Intent(getApplicationContext(), WebAlarmActivity.class);\n intent.putExtra(\"urlString\", urlString);\n intent.putExtra(\"fromConfigureURLButton\", fromConfigureURLButton);\n intent.putExtra(\"alarmID\", alarmID);\n startActivity(intent);\n } else {\n Toast.makeText(getApplicationContext(), \"Your URL is malformed!\", Toast.LENGTH_SHORT).show();\n }\n\n\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n \r\n // TODO\r\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n iniciar();\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n \n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n loadApprovalList();\n }",
"public void setURL(String url);",
"@Override\n public void initialize(URL url, ResourceBundle rb){\n // TODO\n }",
"public void initialize(URL url, ResourceBundle rb) {\n\t\t\n\t}",
"@Override\n public void initialize(URL url, ResourceBundle rb)\n {\n // TODO\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n //Carga Los componentes de la tapPersonal\r\n lanzaPersonal();\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // TODO\r\n }"
] | [
"0.6505043",
"0.64986336",
"0.6287532",
"0.6219584",
"0.62078136",
"0.6163785",
"0.6149648",
"0.6141603",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61206394",
"0.61193347",
"0.6111175",
"0.6097197",
"0.6086856",
"0.60673875",
"0.60624087",
"0.6052521",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956",
"0.6037956"
] | 0.0 | -1 |
Must be called to release resources | @Override
public void close()
{
try
{
connection.close();
}
catch (final SQLException e)
{
// Ignore, shutting down anyway
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"unused\")\n\t\t\tprivate void dispose() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void releaseResouces() {\n\t\tsuper.releaseResouces();\n\t}",
"@Override\r\n\tprotected void dispose() {\n\t\t\r\n\t}",
"@Override\n public void release() {\n \n }",
"@Override\n\t\t\tpublic void dispose() {\n\t\t\t}",
"@Override\n public void cleanup() {\n \n }",
"@Override\n public void cleanup() {\n \n }",
"@Override\n public void dispose() {\n \n }",
"@Override\n public void release() {\n }",
"@Override\n \t\t\tpublic void dispose() {\n \n \t\t\t}",
"private void dispose() {\n\n\t}",
"@Override\n\t\tpublic void dispose() {\n\t\t \n\t\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void release() {\n\r\n\t}",
"@Override\n public void dispose() {\n\n }",
"@Override\r\n\tpublic void release()\r\n\t{\n\t}",
"@Override\n public void release() {\n }",
"@Override\n\tpublic void release() {\n\t\t\n\t}",
"@Override\n\tpublic void release() {\n\n\t}",
"@Override\n\tpublic void release() {\n\n\t}",
"@Override\n\tpublic void releaseAllResources() {\n\t}",
"@Override\n\tpublic void release() {\n\t}",
"@Override\n public void release() {\n super.release();\n init();\n }",
"public void releaseResources();",
"@Override\r\n\tpublic void cleanup() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dispose() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}",
"@Override\r\n\tpublic void dispose()\r\n\t{}",
"public void release() {\r\n return;\r\n }",
"@Override\n\tprotected void doDispose() {\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\n\tpublic void dispose() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t}",
"@Override\r\n\tpublic void dispose() {\n\t}",
"@Override\n public void dispose() {\n\n }",
"@Override\n public void dispose() {\n\n }",
"protected void release()\n {\n }",
"@Override\n\tpublic void dispose () {\n\n\t}",
"@Override\r\n\tpublic void dispose() {\n\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\r\n\t}",
"@Override\r\n\tpublic void dispose() {\n\r\n\t}",
"@Override\n protected void releaseBuffer() {\n }",
"@Override\n public void release() {\n output = null;\n super.release();\n }",
"@Override\r\n public void cleanup() {\n }",
"@Override\n public void dispose() {\n \n }",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n\tpublic void dispose() {\n\n\t}",
"@Override\n public void dispose() {\n\n }",
"public void dispose() {\n\t\t\t\r\n\t\t}",
"protected void releaseReferences() {\r\n\r\n\t}"
] | [
"0.77260774",
"0.7478803",
"0.7308871",
"0.7294784",
"0.7270011",
"0.72686",
"0.72686",
"0.7257508",
"0.724588",
"0.7233039",
"0.72251374",
"0.72164375",
"0.7146917",
"0.7146917",
"0.7146917",
"0.7146917",
"0.7146917",
"0.7146917",
"0.7146917",
"0.7146917",
"0.71345264",
"0.7133872",
"0.71207654",
"0.7099868",
"0.7074427",
"0.7055147",
"0.7055147",
"0.7034761",
"0.7030508",
"0.7025029",
"0.7001863",
"0.7001099",
"0.6998554",
"0.6998366",
"0.6983369",
"0.69808835",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.6972341",
"0.694085",
"0.694085",
"0.6929286",
"0.6929286",
"0.69254",
"0.69240034",
"0.6918869",
"0.6918869",
"0.6918869",
"0.6918869",
"0.6918869",
"0.6918869",
"0.6918869",
"0.6918869",
"0.69149995",
"0.6907563",
"0.6907505",
"0.6903064",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6900867",
"0.6895684",
"0.6886309",
"0.68831086"
] | 0.0 | -1 |
Set JDBC statement parameter to NULL for null or empty strings | public static void setStringOrNULL(final PreparedStatement statement,
final int index, final String value) throws Exception
{
if (value == null || value.length() == 0)
statement.setNull(index, java.sql.Types.VARCHAR);
else
statement.setString(index, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNull (JaqyPreparedStatement stmt, int column, ParameterInfo paramInfo) throws Exception;",
"public void setNull(PreparedStatement st, int index) throws HibernateException, SQLException {\n st.setCharacterStream(index, null, 0);\n }",
"@Override\n public void setNonNullParameter(PreparedStatement ps, int i, Watermark parameter, JdbcType jdbcType)\n throws SQLException {\n ps.setString(i, parameter.toString());\n }",
"void setNull(int index, int sqlType) throws SQLException;",
"public void setNull(int parameterIndex, int sqlType) throws SQLException {\n currentPreparedStatement.setNull(parameterIndex, sqlType);\n }",
"public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException {\n currentPreparedStatement.setNull(parameterIndex, sqlType, typeName);\n\n }",
"@Override\n public void setNull() {\n\n }",
"void clearParameters() throws SQLException;",
"void setNull(int index, int sqlType, String typeName)\n throws SQLException;",
"Statement clearParameters();",
"@Test(expected = NullPointerException.class)\n public void givenNullValueShouldReturnNullPointerException() {\n transpose.setString(null);\n }",
"@Override\n\tpublic ParameterMetaData getParameterMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"public void clearStatement() {\n\t\tif (pstmt != null) {\n\t\t\ttry {\n\t\t\t\tpstmt.clearParameters();\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t} \t\n\t\t}\n\t}",
"@Test\n\tpublic void retrieve_null_value() throws Exception {\n\t\tif (dialect instanceof DerbyDialect) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tjdbcExecutor_test_null(Long.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Integer.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Short.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Byte.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Double.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Float.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Boolean.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(String.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Character.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Date.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Time.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Timestamp.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(java.util.Date.class, \"select ? from jdbc_test\", (Object)null);\n\t\t\n\t\tjdbcExecutor_test_null(byte[].class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Clob.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Blob.class, \"select ? from jdbc_test\", (Object)null);\n\t\n\t}",
"private String bindNull() {\n String op;\n \n if (operator == null) {\n op = null;\n } else if (operator.equals(\"=\")) {\n op = \"IS\";\n } else if (operator.equals(\"!=\")) {\n op = \"IS NOT\";\n } else {\n op = operator;\n }\n if (column != null && skipNulls) {\n return \"1 = 1\";\n } else {\n return cond(column, op, \"NULL\");\n }\n }",
"@Test\n\tpublic void retrieve_literal_null_value() throws Exception {\n\t\tif (configuration.startsWith(\"derby\")) return;\n\t\t\n\t\t\n\t\tjdbcExecutor_test_null(Long.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Integer.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Short.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Byte.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Double.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Float.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Boolean.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(String.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Character.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Date.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Time.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Timestamp.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(java.util.Date.class, \"select null from jdbc_test\");\n\t\t\n\t\tjdbcExecutor_test_null(byte[].class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Clob.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Blob.class, \"select null from jdbc_test\");\n\t\n\t}",
"NullStatement createNullStatement();",
"public void setColumnNull(String column)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n setColumnNullInternal(canonicalize(column));\n }",
"private void setColumnNullInternal(String column)\n {\n data.put(canonicalize(column), NULL_OBJECT);\n }",
"@Override\n\tpublic String objectToSQLString(Object arg0) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void setNonNullParameter(PreparedStatement ps, int i,\n\t Chromosome parameter, JdbcType jdbcType) throws SQLException\n\t{\n\t\tps.setInt(i, parameter.getChr());\n\t}",
"public void setValueNull()\n\t{\n\t\tallValues.clear();\n\t}",
"@Impure\n public abstract void encodeNull(int typeCode) throws DatabaseException;",
"@Override\n public void setParameter(String parameter, String value) {\n //no parameters\n }",
"public void updateNull(int columnIndex) throws SQLException\n {\n m_rs.updateNull(columnIndex);\n }",
"public static void filter(String value, PreparedStatement preparedStatement, int index)\n throws Exception {\n\n if (value != null) {\n preparedStatement.setString(index, value.trim());\n } else {\n preparedStatement.setNull(index, java.sql.Types.NULL);\n }\n }",
"@Override\n public String getPreparedStatementQuery() throws SQLException {\n StringBuilder sb = new StringBuilder();\n\n String statementQuery = getStatementQuery();\n\n // iterate over the characters in the query replacing the parameter placeholders\n // with the actual values\n int currentParameter = 0;\n for( int pos = 0; pos < statementQuery.length(); pos ++) {\n char character = statementQuery.charAt(pos);\n if( statementQuery.charAt(pos) == '?' && currentParameter < getParameterCount()) {\n // replace with parameter value\n boolean shouldQuote = true;\n switch( parameterMetaData.getParameterType(currentParameter+1)) {\n case Types.BIT:\n case Types.TINYINT:\n case Types.SMALLINT:\n case Types.INTEGER:\n case Types.BIGINT:\n case Types.FLOAT:\n case Types.REAL:\n case Types.DOUBLE:\n case Types.NUMERIC:\n case Types.DECIMAL:\n case Types.BOOLEAN:\n shouldQuote = false;\n }\n if( parameterValues.get(currentParameter) == null) {\n sb.append(\"NULL\");\n } else {\n if( shouldQuote ) {\n sb.append(\"'\");\n }\n sb.append(parameterValues.get(currentParameter));\n if( shouldQuote ) {\n sb.append(\"'\");\n }\n }\n currentParameter++;\n } else {\n sb.append(character);\n }\n }\n\n return sb.toString();\n }",
"public void clearParameters() throws SQLException {\n currentPreparedStatement.clearParameters();\n }",
"private void setValues(PreparedStatement statement, int index, Object obj)\n\t\t\tthrows SQLException {\n\t\tif (obj != null) {\n\t\t\tstatement.setObject(index, obj);\n\t\t} else {\n\t\t\tstatement.setNull(index, Types.NULL);\n\t\t}\n\t}",
"@Override\n\tpublic String toSql() {\n\t\treturn null;\n\t}",
"@Override\n public String Inject(String value, SchemaBuilder schema)\n {\n return \"ReplaceWithNull\";\n }",
"private String setNullIfEmpty(String in) {\n if (in != null && in.trim().length() == 0) {\n return null;\n }\n return in;\n }",
"@Override\n\tpublic String[] getParameterValues(String arg0) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void setParameter(PreparedStatement ps, int arg1, Object arg2, String arg3) throws SQLException {\n\t}",
"@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tString[] columnNames) throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updateNull(String columnName) throws SQLException\n {\n m_rs.updateNull(columnName);\n }",
"public void setParam(String param) {\n this.param = param == null ? null : param.trim();\n }",
"public void setParam(String param) {\n this.param = param == null ? null : param.trim();\n }",
"public void preparedStatementSetString(Identity identity) throws SQLException {\r\n\t\t\r\n\t\tif (identity.getDisplayName() != null && identity.getEmail() == null) {\r\n\t\t\tpreparedStatement.setString(1, identity.getDisplayName());\r\n\t\t\tpreparedStatement.setString(2, identity.getUid());\r\n\t\t}\r\n\t\t\r\n\t\tif (identity.getEmail() != null && identity.getDisplayName() == null) {\r\n\t\t\tpreparedStatement.setString(1, identity.getEmail());\r\n\t\t\tpreparedStatement.setString(2, identity.getUid());\r\n\t\t}\r\n\t\t\r\n\t\tif(identity.getDisplayName() != null && identity.getEmail() != null ) {\r\n\t\t\tpreparedStatement.setString(1, identity.getDisplayName());\r\n\t\t\tpreparedStatement.setString(2, identity.getEmail());\r\n\t\t\tpreparedStatement.setString(3, identity.getUid());\r\n\t\t}\r\n\t}",
"public static void notNullOrEmpty(String parameter, String name)\n {\n if(parameter == null || parameter.isEmpty()) {\n throw new IllegalArgumentException(name + \" is null or empty.\");\n }\n }",
"Statement setParameter(String name, Object param);",
"private static boolean handleNull(ResultSet rs, \n PreparedStatement ps, \n int index, \n int type)\n throws SQLException \n {\n boolean result = false;\n if (rs.wasNull()) {\n ps.setNull(index, type);\n result = true;\n }\n return result;\n }",
"void setInitSql(String value);",
"@Override\n public String visit(EmptyStmt n, Object arg) {\n return null;\n }",
"protected static boolean isDBNull( String s )\r\n\t{\r\n\t\treturn ( s == null ) || s.equals( \"\\\\N\" ) || s.equals( \"NULL\" );\r\n\t}",
"private void nullColumns(List columns)\n {\n for (Iterator iterator = columns.iterator(); iterator.hasNext(); )\n {\n setColumnNullInternal((String) iterator.next());\n }\n }",
"@Override\n public boolean setParameter(String parameterName, String value) {\n return false;\n }",
"@Override\n\tpublic String updateStatement() throws Exception {\n\t\treturn null;\n\t}",
"PreparedStatementEx(PreparedStatement preparedStatement, String sql) {\r\n this.pStmt = preparedStatement;\r\n this.origSql = (null == sql) ? EMPTY_SQL : sql;\r\n }",
"void executeUpdate(String noParamQuery, Connection conn);",
"@Override\n public String updateStatement() throws Exception {\n return null;\n }",
"public void clearParams() {\n setParams((String[]) null);\n }",
"public String getNullColumnString() {\n \t\treturn \"\";\n \t}",
"@Override\r\n\t\tpublic CallableStatement prepareCall(String sql) throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updateNull(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"updateNull\", columnName);\n update(columnName, ValueNull.INSTANCE);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\n\tpublic String getParameter(String name) {\n\t\treturn null;\n\t}",
"void setNilValue();",
"private void serializeNull(final StringBuffer buffer)\n {\n buffer.append(\"N;\");\n }",
"@OfMethod({\"setNull(java.lang.String, int)\",\n \"setNull(java.lang.String,int,java.lang.String)\",\n \"setNull(int, int)\",\n \"setNull(int,int,java.lang.String)\"})\n public void testSetNull() throws Exception {\n CallableStatement instance = newClosedCall();\n\n try {\n instance.setNull(getParameterName(), getParameterType());\n fail(\"Allowed set null by parameter name and type after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNull(getParameterName(), getParameterType(), getParameterTypeName());\n fail(\"Allowed set null by parameter name, type and type name after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNull(getParameterIndex(), getParameterType());\n fail(\"Allowed set null by parameter index and type after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNull(getParameterIndex(), getParameterType(), getParameterTypeName());\n fail(\"Allowed set null by parameter index, type and type name after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }",
"@Override\n\tpublic String getSqlWhere() {\n\t\treturn null;\n\t}",
"public static String notNull(String p_in) {\n\t\tString ret = p_in;\n\t\tif (ret==null) ret=\"\";\n\t\treturn ret;\n\n\t}",
"public static String getSQLString(String val){\n\t\n\t\tif(val==null || val.equals(\"\")){\n\t\t\treturn null;\n\t\t}else{\n\t\t\treturn \"'\" + val + \"'\";\n\t\t}\n\t}",
"public static void setPregnancyRecordIdsToNull(Connection conn, String uuid) throws Exception {\r\n \tString sql = \"UPDATE pregnancy \" +\r\n \t\t\t\"SET patient_id=null, pregnancy_begin_encounter_id=null, pregnancy_end_encounter_id=null, labour_admission_encounter_id= null \" +\r\n \t\t\t\"WHERE uuid=?\";\r\n \tArrayList values = new ArrayList();\r\n \tvalues.add(uuid);\r\n \tDatabaseUtils.update(conn, sql, values.toArray());\r\n }",
"@Override\n\tpublic void flagNull() {\n\t\t\n\t}",
"public T caseParamStatement(ParamStatement object) {\n\t\treturn null;\n\t}",
"@Test(expected = NullPointerException.class)\n public void testNullPut() throws IOException {\n putRowInDB(table, null);\n }",
"@Override\n\tpublic boolean handlesNullVsEmptyLOBs() {\n\t\treturn false;\n\t}",
"public String replaceMissingWithNull(String value);",
"@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tint autoGeneratedKeys) throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void updateNull(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"updateNull\", columnIndex);\n update(columnIndex, ValueNull.INSTANCE);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"protected abstract NativeSQLStatement createNativeIsNotEmptyStatement();",
"public void setColNull(Boolean colNull) {\r\n\t\tthis.colNull = colNull;\r\n\t}",
"@Override\n\tpublic Query createNativeQuery(String sqlString) {\n\t\treturn null;\n\t}",
"@Override\n public void prepare(PreparedStatement statement) {\n }",
"public void setParameter3(String parameter3) {\n this.parameter3 = parameter3 == null ? null : parameter3.trim();\n }",
"private void setNull() {\n\n this.txtExamDate.setDate(null);\n this.txtCourseName.setText(null);\n this.txtCourseName.requestFocus();\n }",
"@Override\n public String getDbString() {\n return null;\n }",
"public void prepareExecuteNoSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteNoSelect();\n }",
"@Test(expectedExceptions = DataAccessException.class)\r\n public void testUpdateNull() {\r\n recordDao.update(null);\r\n }",
"public void testSetPostalCode_NullString() {\r\n try {\r\n address.setPostalCode(null);\r\n fail(\"IAE expected\");\r\n } catch (IllegalArgumentException e) {\r\n //good\r\n }\r\n }",
"public SQLServerParam(SQLServerParam source) {\n if (source.Database != null) {\n this.Database = new String(source.Database);\n }\n if (source.Table != null) {\n this.Table = new String(source.Table);\n }\n if (source.Resource != null) {\n this.Resource = new String(source.Resource);\n }\n if (source.SnapshotMode != null) {\n this.SnapshotMode = new String(source.SnapshotMode);\n }\n }",
"void setNullable(boolean nullable);",
"public void stringCommandNoReturn(String command) throws SQLException {\n try (PreparedStatement prep = conn.prepareStatement(command)) {\n //executes command\n try {\n prep.execute();\n } catch (SQLException e) {\n throw new SQLException(\"Failed to execute query: \" + e);\n }\n }\n }",
"public static boolean nullity(String param) {\n return (param == null || param.trim().equals(\"\"));\n }",
"protected boolean isEmptyValue(final String parameter) {\n // String value = parameters.get(parameter);\n // return isEmptyString(value);\n return false;\n }",
"@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tint[] columnIndexes) throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"@Override\n\tpublic void visit(JdbcParameter arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void visit(JdbcParameter arg0) {\n\n\t}",
"public void setNullable(boolean isNullable) throws DBException {\n _isNullable = isNullable;\n }",
"public void setNullable(boolean isNullable) throws DBException {\n _isNullable = isNullable;\n }",
"@Test(timeout = 4000)\n public void test100() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n SQLUtil.addOptionalCondition((String) null, stringBuilder0);\n assertEquals(\"null\", stringBuilder0.toString());\n }",
"@Impure\n public void encodeNull(@Nonnull CustomType customType) throws DatabaseException {\n encodeNull(getSQLType(customType));\n }",
"Statement setParameters(Object... params);",
"@Override\n\tpublic String[] getParameterValues(String name) {\n\t\treturn null;\n\t}",
"void setValues(PreparedStatement ps) throws SQLException;",
"protected abstract NativeSQLStatement createNativeIsEmptyStatement();",
"public void setIdPermisosNull(boolean idPermisosNull)\r\n\t{\r\n\t\tthis.idPermisosNull = idPermisosNull;\r\n\t}",
"@OfMethod({\"setString(java.lang.String,java.lang.String)\", \"setString(int,java.lang.String)\"})\n public void testSetString() throws Exception {\n CallableStatement instance = newClosedCall();\n\n try {\n instance.setString(getParameterName(), \"\");\n fail(\"Allowed set string by parameter name after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setString(getParameterIndex(), \"\");\n fail(\"Allowed set string by parameter index after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }",
"@Override\n public String visit(NullLiteralExpr n, Object arg) {\n return null;\n }",
"public static String convertNullToBlank(String s) {\n \tif(s==null) return \"\";\n \treturn s;\n }"
] | [
"0.7524335",
"0.6709396",
"0.64133954",
"0.6292344",
"0.62648237",
"0.6162452",
"0.61378235",
"0.6075371",
"0.6057674",
"0.60080576",
"0.5920295",
"0.5848743",
"0.58135784",
"0.58078855",
"0.58045864",
"0.57840294",
"0.5751509",
"0.5747347",
"0.5702473",
"0.566236",
"0.565359",
"0.5640052",
"0.5621853",
"0.55918545",
"0.55803573",
"0.55776525",
"0.55773354",
"0.5542124",
"0.55285853",
"0.54469943",
"0.5442918",
"0.54389614",
"0.5426582",
"0.54072124",
"0.5391782",
"0.53723985",
"0.53607684",
"0.53607684",
"0.53519315",
"0.5340907",
"0.53407663",
"0.5339681",
"0.5335269",
"0.52827626",
"0.5278434",
"0.5275637",
"0.5275429",
"0.5272871",
"0.52607274",
"0.52436984",
"0.52436113",
"0.5230206",
"0.5229519",
"0.52293944",
"0.52284586",
"0.5219972",
"0.5210967",
"0.52105755",
"0.5205757",
"0.5201129",
"0.5191914",
"0.5188055",
"0.5185482",
"0.5184573",
"0.51828575",
"0.5180152",
"0.51710504",
"0.5168971",
"0.5164723",
"0.5119703",
"0.51191485",
"0.5110196",
"0.5103198",
"0.50992155",
"0.50717735",
"0.5056344",
"0.50496966",
"0.5045522",
"0.50414956",
"0.5030615",
"0.50176376",
"0.5016981",
"0.50097835",
"0.5005847",
"0.50042117",
"0.50041085",
"0.5003539",
"0.49978116",
"0.4995858",
"0.4995858",
"0.4989408",
"0.4975605",
"0.4971698",
"0.4968033",
"0.49679074",
"0.49654546",
"0.4961171",
"0.49566123",
"0.49560094",
"0.495501"
] | 0.62162 | 5 |
Set JDBC statement parameter to NULL for zero | public static void setIntOrNULL(final PreparedStatement statement,
final int index, final int value) throws Exception
{
if (value == 0)
statement.setNull(index, java.sql.Types.INTEGER);
else
statement.setInt(index, value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setNull (JaqyPreparedStatement stmt, int column, ParameterInfo paramInfo) throws Exception;",
"public void setNull(PreparedStatement st, int index) throws HibernateException, SQLException {\n st.setCharacterStream(index, null, 0);\n }",
"void setNull(int index, int sqlType) throws SQLException;",
"public void setNull(int parameterIndex, int sqlType) throws SQLException {\n currentPreparedStatement.setNull(parameterIndex, sqlType);\n }",
"@Override\n public void setNonNullParameter(PreparedStatement ps, int i, Watermark parameter, JdbcType jdbcType)\n throws SQLException {\n ps.setString(i, parameter.toString());\n }",
"Statement clearParameters();",
"@Override\n\tpublic void setNonNullParameter(PreparedStatement ps, int i,\n\t Chromosome parameter, JdbcType jdbcType) throws SQLException\n\t{\n\t\tps.setInt(i, parameter.getChr());\n\t}",
"public void setNull(int parameterIndex, int sqlType, String typeName) throws SQLException {\n currentPreparedStatement.setNull(parameterIndex, sqlType, typeName);\n\n }",
"void clearParameters() throws SQLException;",
"void setNull(int index, int sqlType, String typeName)\n throws SQLException;",
"NullStatement createNullStatement();",
"@Override\n\tpublic ParameterMetaData getParameterMetaData() throws SQLException {\n\t\treturn null;\n\t}",
"public void clearStatement() {\n\t\tif (pstmt != null) {\n\t\t\ttry {\n\t\t\t\tpstmt.clearParameters();\n\t\t\t} catch (SQLException se) {\n\t\t\t\tse.printStackTrace();\n\t\t\t} \t\n\t\t}\n\t}",
"@Override\n public void setNull() {\n\n }",
"@Test\n\tpublic void retrieve_null_value() throws Exception {\n\t\tif (dialect instanceof DerbyDialect) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tjdbcExecutor_test_null(Long.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Integer.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Short.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Byte.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Double.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Float.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Boolean.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(String.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Character.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Date.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Time.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Timestamp.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(java.util.Date.class, \"select ? from jdbc_test\", (Object)null);\n\t\t\n\t\tjdbcExecutor_test_null(byte[].class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Clob.class, \"select ? from jdbc_test\", (Object)null);\n\t\tjdbcExecutor_test_null(Blob.class, \"select ? from jdbc_test\", (Object)null);\n\t\n\t}",
"@Override\n\tpublic int isNullable(int arg0) throws SQLException {\n\t\treturn 0;\n\t}",
"public void updateNull(int columnIndex) throws SQLException\n {\n m_rs.updateNull(columnIndex);\n }",
"private void setValues(PreparedStatement statement, int index, Object obj)\n\t\t\tthrows SQLException {\n\t\tif (obj != null) {\n\t\t\tstatement.setObject(index, obj);\n\t\t} else {\n\t\t\tstatement.setNull(index, Types.NULL);\n\t\t}\n\t}",
"public void clearParameters() throws SQLException {\n currentPreparedStatement.clearParameters();\n }",
"public void prepareExecuteNoSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteNoSelect();\n }",
"@Override\n\tpublic void setParameter(PreparedStatement ps, int arg1, Object arg2, String arg3) throws SQLException {\n\t}",
"public void updateNull(int columnIndex) throws SQLException {\n\n try {\n debugCodeCall(\"updateNull\", columnIndex);\n update(columnIndex, ValueNull.INSTANCE);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void setVoid_Inventory_ID (int Void_Inventory_ID)\n{\nif (Void_Inventory_ID <= 0) set_Value (\"Void_Inventory_ID\", null);\n else \nset_Value (\"Void_Inventory_ID\", new Integer(Void_Inventory_ID));\n}",
"@Override\n\tpublic String updateStatement() throws Exception {\n\t\treturn null;\n\t}",
"private static boolean handleNull(ResultSet rs, \n PreparedStatement ps, \n int index, \n int type)\n throws SQLException \n {\n boolean result = false;\n if (rs.wasNull()) {\n ps.setNull(index, type);\n result = true;\n }\n return result;\n }",
"@Override\r\n\t\tpublic CallableStatement prepareCall(String sql) throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"Statement setParameter(int index, Object param);",
"@Test\n\tpublic void retrieve_literal_null_value() throws Exception {\n\t\tif (configuration.startsWith(\"derby\")) return;\n\t\t\n\t\t\n\t\tjdbcExecutor_test_null(Long.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Integer.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Short.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Byte.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Double.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Float.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Boolean.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(String.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Character.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Date.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Time.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Timestamp.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(java.util.Date.class, \"select null from jdbc_test\");\n\t\t\n\t\tjdbcExecutor_test_null(byte[].class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Clob.class, \"select null from jdbc_test\");\n\t\tjdbcExecutor_test_null(Blob.class, \"select null from jdbc_test\");\n\t\n\t}",
"Statement setParameter(String name, Object param);",
"@Override\n public String updateStatement() throws Exception {\n return null;\n }",
"@Impure\n public abstract void encodeNull(int typeCode) throws DatabaseException;",
"public static void setStringOrNULL(final PreparedStatement statement,\r\n\t\t\tfinal int index, final String value) throws Exception\r\n\t{\r\n if (value == null || value.length() == 0)\r\n \tstatement.setNull(index, java.sql.Types.VARCHAR);\r\n else\r\n \tstatement.setString(index, value);\r\n\t}",
"@OfMethod({\"setNull(java.lang.String, int)\",\n \"setNull(java.lang.String,int,java.lang.String)\",\n \"setNull(int, int)\",\n \"setNull(int,int,java.lang.String)\"})\n public void testSetNull() throws Exception {\n CallableStatement instance = newClosedCall();\n\n try {\n instance.setNull(getParameterName(), getParameterType());\n fail(\"Allowed set null by parameter name and type after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNull(getParameterName(), getParameterType(), getParameterTypeName());\n fail(\"Allowed set null by parameter name, type and type name after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNull(getParameterIndex(), getParameterType());\n fail(\"Allowed set null by parameter index and type after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n\n try {\n instance.setNull(getParameterIndex(), getParameterType(), getParameterTypeName());\n fail(\"Allowed set null by parameter index, type and type name after close.\");\n } catch (SQLException ex) {\n checkException(ex);\n }\n }",
"private void setColumnNullInternal(String column)\n {\n data.put(canonicalize(column), NULL_OBJECT);\n }",
"@Override\n\tpublic String objectToSQLString(Object arg0) {\n\t\treturn null;\n\t}",
"@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tint autoGeneratedKeys) throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public T caseParamStatement(ParamStatement object) {\n\t\treturn null;\n\t}",
"@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tint[] columnIndexes) throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void setM_Inventory_ID (int M_Inventory_ID)\n{\nif (M_Inventory_ID <= 0) set_Value (\"M_Inventory_ID\", null);\n else \nset_Value (\"M_Inventory_ID\", new Integer(M_Inventory_ID));\n}",
"@Test\n public void resultSetNullTest() throws GeneralException {\n JavaRuleContext testRuleContext = buildTestJavaRuleContext();\n testRuleContext.getArguments().remove(JDBCBuildMapRule.ARG_RESULT_SET);\n\n assertThrows(GeneralException.class, () -> jdbcBuildMapRule.execute(testRuleContext));\n verify(jdbcBuildMapRule).internalValidation(eq(testRuleContext));\n verify(jdbcBuildMapRule, never()).internalExecute(eq(testRuleContext), any());\n }",
"@Override\n\tpublic String toSql() {\n\t\treturn null;\n\t}",
"public void setPoolable(boolean poolable) throws SQLException {\n currentPreparedStatement.setPoolable(poolable);\n }",
"private String bindNull() {\n String op;\n \n if (operator == null) {\n op = null;\n } else if (operator.equals(\"=\")) {\n op = \"IS\";\n } else if (operator.equals(\"!=\")) {\n op = \"IS NOT\";\n } else {\n op = operator;\n }\n if (column != null && skipNulls) {\n return \"1 = 1\";\n } else {\n return cond(column, op, \"NULL\");\n }\n }",
"@Override\n\tpublic void visit(JdbcParameter arg0) {\n\n\t}",
"@Override\n\tpublic void visit(JdbcParameter arg0) {\n\t\t\n\t}",
"public void setQuantityToNull(DrinkItem drinkItem) throws SQLException{\n\t\tPreparedStatement myStmt = null;\n\t\ttry{\n\t\t\tmyStmt = myConn.prepareStatement(\"update drink set quantity = null where drink_code =?\");\n\t\t\tmyStmt.setInt(1, drinkItem.getDrinkCode());\n\t\t\tmyStmt.executeUpdate();\n\t\t}\n\t\tfinally{\n\t\t\tif(myStmt != null)\n\t\t\t\tmyStmt.close();\n\t\t}\n\t}",
"@Override\n public void setParameter(String parameter, String value) {\n //no parameters\n }",
"@Override\r\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\r\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\r\n\t}",
"public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }",
"public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }",
"public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }",
"public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }",
"@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tint resultSetType, int resultSetConcurrency)\r\n\t\t\t\tthrows SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void setValueNull()\n\t{\n\t\tallValues.clear();\n\t}",
"@Override\r\n\tpublic void setPoolable(boolean poolable) throws SQLException {\n\r\n\t}",
"@Override\n public void prepare(PreparedStatement statement) {\n }",
"void setNilValue();",
"void executeUpdate(String noParamQuery, Connection conn);",
"public void updateNull(String columnName) throws SQLException\n {\n m_rs.updateNull(columnName);\n }",
"@Override\n\tpublic void setParameter(PreparedStatement ps, int i, String parameter,\n\t\t\tJdbcType jdbcType) throws SQLException {\n\t\t\n\t}",
"public void setValue(int param1Int) {\n/* 294 */ this.s.setValue(-param1Int);\n/* */ }",
"@Override\r\n\tpublic void setPoolable(boolean poolable) throws SQLException {\n\t\t\r\n\t}",
"private void setDefaults(Connection conn) throws SQLException {\r\n conn.setAutoCommit(false);\r\n }",
"@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tint resultSetType, int resultSetConcurrency,\r\n\t\t\t\tint resultSetHoldability) throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"@Override\n\tpublic void flagNull() {\n\t\t\n\t}",
"public void setNullable(boolean isNullable) throws DBException {\n _isNullable = isNullable;\n }",
"public void setNullable(boolean isNullable) throws DBException {\n _isNullable = isNullable;\n }",
"@Test(timeout = 4000)\n public void test114() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBDataType dBDataType0 = DBDataType.getInstance(\"null\");\n Integer integer0 = RawTransaction.COMMIT;\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"null\", defaultDBTable0, dBDataType0, integer0, integer0);\n String string0 = SQLUtil.renderColumnTypeWithSize((DBColumn) defaultDBColumn0);\n assertEquals(\"NULL(0,0)\", string0);\n }",
"@Override\n\tpublic void setPoolable(boolean poolable) throws SQLException {\n\t\t\n\t}",
"public boolean setModeParameter(long arg0) {\n\t\treturn false;\n\t}",
"public void updateNull(String columnName) throws SQLException {\n\n try {\n debugCodeCall(\"updateNull\", columnName);\n update(columnName, ValueNull.INSTANCE);\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void setColNull(Boolean colNull) {\r\n\t\tthis.colNull = colNull;\r\n\t}",
"protected abstract NativeSQLStatement createNativeIsEmptyStatement();",
"@Test(timeout = 4000)\n public void test095() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n stringBuilder0.append((-1.0));\n SQLUtil.addRequiredCondition((String) null, stringBuilder0);\n assertEquals(\"-1.0 and null\", stringBuilder0.toString());\n }",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"XSRSH.S\", (DBTable) null, (-2837), \"qfck0HL\");\n defaultDBColumn0.setDefaultValue(\"2GY_\");\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\"XSRSH.S QFCK0HL DEFAULT 2GY_ NULL\", string0);\n }",
"@Override\n\tpublic void setPoolable(boolean poolable)\n\t\tthrows SQLException {\n \n }",
"PreparedStatementEx(PreparedStatement preparedStatement, String sql) {\r\n this.pStmt = preparedStatement;\r\n this.origSql = (null == sql) ? EMPTY_SQL : sql;\r\n }",
"public interface PreparedStatement extends Statement \n {\n /**\n 59: * This method executes a prepared SQL query and returns its ResultSet.\n 60: *\n 61: * @return The ResultSet of the SQL statement.\n 62: * @exception SQLException If an error occurs.\n 63: */\n ResultSet executeQuery() throws SQLException;\n \n /**\n 67: * This method executes an SQL INSERT, UPDATE or DELETE statement. SQL\n 68: * statements that return nothing such as SQL DDL statements can be executed.\n 69: *\n 70: * @return The result is either the row count for INSERT, UPDATE or DELETE\n 71: * statements; or 0 for SQL statements that return nothing.\n 72: * @exception SQLException If an error occurs.\n 73: */\n int executeUpdate() throws SQLException;\n \n /**\n 7: * This method populates the specified parameter with a SQL NULL value\n 78: * for the specified type.\n 79: *\n 80: * @param index The index of the parameter to set.\n 81: * @param sqlType The SQL type identifier of the parameter from \n 82: * <code>Types</code>\n 83: *\n 84: * @exception SQLException If an error occurs.\n 85: */\n void setNull(int index, int sqlType) throws SQLException;\n \n /**\n : * This method sets the specified parameter from the given Java\n 90: * <code>boolean</code> value.\n 91: *\n 92: * @param index The index of the parameter value to set.\n 93: * @param value The value of the parameter.\n 94: * @exception SQLException If an error occurs.\n 95: */\n void setBoolean(int index, boolean value) throws SQLException;\n \n /**\n : * This method sets the specified parameter from the given Java\n 100: * <code>byte</code> value.\n 101: *\n 102: * @param index The index of the parameter value to set.\n 103: * @param value The value of the parameter.\n 104: * @exception SQLException If an error occurs.\n 105: */\n void setByte(int index, byte value) throws SQLException;\n \n /**\n 109: * This method sets the specified parameter from the given Java\n 110: * <code>short</code> value.\n 111: *\n 112: * @param index The index of the parameter value to set.\n 113: * @param value The value of the parameter.\n 114: * @exception SQLException If an error occurs.\n 115: */\n void setShort(int index, short value) throws SQLException;\n \n /**\n 119: * This method sets the specified parameter from the given Java\n 120: * <code>int</code> value.\n 121: *\n 122: * @param index The index of the parameter value to set.\n 123: * @param value The value of the parameter.\n 124: * @exception SQLException If an error occurs.\n 125: */\n void setInt(int index, int value) throws SQLException;\n \n /**\n 129: * This method sets the specified parameter from the given Java\n 130: * <code>long</code> value.\n 131: *\n 132: * @param index The index of the parameter value to set.\n 133: * @param value The value of the parameter.\n 134: * @exception SQLException If an error occurs.\n 135: */\n void setLong(int index, long value) throws SQLException;\n \n /**\n 139: * This method sets the specified parameter from the given Java\n 140: * <code>float</code> value.\n 141: *\n 142: * @param index The index of the parameter value to set.\n 143: * @param value The value of the parameter.\n 144: * @exception SQLException If an error occurs.\n 145: */\n void setFloat(int index, float value) throws SQLException;\n \n /**\n 149: * This method sets the specified parameter from the given Java\n 150: * <code>double</code> value.\n 151: *\n 152: * @param index The index of the parameter value to set.\n 153: * @param value The value of the parameter.\n 154: * @exception SQLException If an error occurs.\n 155: */\n void setDouble(int index, double value) throws SQLException;\n \n /**\n 159: * This method sets the specified parameter from the given Java\n 160: * <code>java.math.BigDecimal</code> value.\n 161: *\n 162: * @param index The index of the parameter value to set.\n 163: * @param value The value of the parameter.\n 164: * @exception SQLException If an error occurs.\n 165: */\n void setBigDecimal(int index, BigDecimal value) throws\n SQLException;\n \n /**\n 170: * This method sets the specified parameter from the given Java\n 171: * <code>String</code> value.\n 172: *\n 173: * @param index The index of the parameter value to set.\n 174: * @param value The value of the parameter.\n 175: * @exception SQLException If an error occurs.\n 176: */\n void setString(int index, String value) throws SQLException;\n \n /**\n 180: * This method sets the specified parameter from the given Java\n 181: * <code>byte</code> array value.\n 182: *\n 183: * @param index The index of the parameter value to set.\n 184: * @param value The value of the parameter.\n 185: * @exception SQLException If an error occurs.\n 186: */\n void setBytes(int index, byte[] value) throws SQLException;\n \n /**\n 190: * This method sets the specified parameter from the given Java\n 191: * <code>java.sql.Date</code> value.\n 192: *\n 193: * @param index The index of the parameter value to set.\n 194: * @param value The value of the parameter.\n 195: * @exception SQLException If an error occurs.\n 196: */\n void setDate(int index, Date value) throws SQLException;\n \n /**\n 200: * This method sets the specified parameter from the given Java\n 201: * <code>java.sql.Time</code> value.\n 202: *\n 203: * @param index The index of the parameter value to set.\n 204: * @param value The value of the parameter.\n 205: * @exception SQLException If an error occurs.\n 206: */\n void setTime(int index, Time value) throws SQLException;\n \n /**\n 210: * This method sets the specified parameter from the given Java\n 211: * <code>java.sql.Timestamp</code> value.\n 212: *\n 213: * @param index The index of the parameter value to set.\n 214: * @param value The value of the parameter.\n 215: * @exception SQLException If an error occurs.\n 216: */\n void setTimestamp(int index, Timestamp value)\n throws SQLException;\n \n /**\n 221: * This method sets the specified parameter from the given Java\n 222: * ASCII <code>InputStream</code> value.\n 223: *\n 224: * @param index The index of the parameter value to set.\n 225: * @param stream The stream from which the parameter value is read.\n 226: * @param count The number of bytes in the stream.\n 227: * @exception SQLException If an error occurs.\n 228: */\n void setAsciiStream(int index, InputStream stream, int count)\n throws SQLException;\n \n /**\n 233: * This method sets the specified parameter from the given Java\n 234: * Unicode UTF-8 <code>InputStream</code> value.\n 235: *\n 236: * @param index The index of the parameter value to set.\n 237: * @param stream The stream from which the parameter value is read.\n 238: * @param count The number of bytes in the stream.\n 239: * @exception SQLException If an error occurs.\n 240: * @deprecated\n 241: */\n void setUnicodeStream(int index, InputStream stream, int count)\n throws SQLException;\n \n /**\n 246: * This method sets the specified parameter from the given Java\n 247: * binary <code>InputStream</code> value.\n 248: *\n 249: * @param index The index of the parameter value to set.\n 250: * @param stream The stream from which the parameter value is read.\n 251: * @param count The number of bytes in the stream.\n 252: * @exception SQLException If an error occurs.\n 253: */\n void setBinaryStream(int index, InputStream stream, int count)\n throws SQLException;\n \n /**\n 258: * This method clears all of the input parameter that have been\n 259: * set on this statement.\n 260: *\n 261: * @exception SQLException If an error occurs.\n 262: */\n void clearParameters() throws SQLException;\n \n /**\n 266: * This method sets the specified parameter from the given Java\n 267: * <code>Object</code> value. The specified SQL object type will be used.\n 268: *\n 269: * @param index The index of the parameter value to set.\n 270: * @param value The value of the parameter.\n 271: * @param sqlType The SQL type to use for the parameter, from \n 272: * <code>Types</code>\n 273: * @param scale The scale of the value, for numeric values only.\n 274: * @exception SQLException If an error occurs.\n 275: * @see Types\n 276: */\n void setObject(int index, Object value, int sqlType, int scale)\n throws SQLException;\n \n /**\n 281: * This method sets the specified parameter from the given Java\n 282: * <code>Object</code> value. The specified SQL object type will be used.\n 283: *\n 284: * @param index The index of the parameter value to set.\n 285: * @param value The value of the parameter.\n 286: * @param sqlType The SQL type to use for the parameter, from \n 287: * <code>Types</code>\n 288: * @exception SQLException If an error occurs.\n 289: * @see Types\n 290: */\n void setObject(int index, Object value, int sqlType)\n throws SQLException;\n \n /**\n 295: * This method sets the specified parameter from the given Java\n 296: * <code>Object</code> value. The default object type to SQL type mapping\n 297: * will be used.\n 298: *\n 299: * @param index The index of the parameter value to set.\n 300: * @param value The value of the parameter.\n 301: * @exception SQLException If an error occurs.\n 302: */\n void setObject(int index, Object value) throws SQLException;\n \n /**\n 306: * This method executes a prepared SQL query.\n 307: * Some prepared statements return multiple results; the execute method\n 308: * handles these complex statements as well as the simpler form of\n 309: * statements handled by executeQuery and executeUpdate.\n 310: *\n 311: * @return The result of the SQL statement.\n 312: * @exception SQLException If an error occurs.\n 313: */\n boolean execute() throws SQLException;\n \n /**\n 317: * This method adds a set of parameters to the batch for JDBC 2.0.\n 318: * @exception SQLException If an error occurs.\n 319: */\n void addBatch() throws SQLException;\n /**\n 323: * This method sets the specified parameter from the given Java\n 324: * character <code>Reader</code> value.\n 325: *\n 326: * @param index The index of the parameter value to set.\n 327: * @param reader The reader from which the parameter value is read.\n 328: * @param count The number of characters in the stream.\n 329: * @exception SQLException If an error occurs.\n 330: */\n void setCharacterStream(int index, Reader reader, int count)\n throws SQLException;\n \n /**\n 335: * This method sets the specified parameter from the given Java\n 336: * <code>Ref</code> value. The default object type to SQL type mapping\n 337: * will be used.\n 338: *\n 339: * @param index The index of the parameter value to set.\n 340: * @param value The <code>Ref</code> used to set the value of the parameter.\n 341: * @exception SQLException If an error occurs.\n 342: */\n void setRef(int index, Ref value) throws SQLException;\n \n /**\n 346: * This method sets the specified parameter from the given Java\n 347: * <code>Blob</code> value. The default object type to SQL type mapping\n 348: * will be used.\n 349: *\n 350: * @param index The index of the parameter value to set.\n 351: * @param value The <code>Blob</code> used to set the \n 352: * value of the parameter.\n 353: * @exception SQLException If an error occurs.\n 354: */\n void setBlob(int index, Blob value) throws SQLException;\n \n /**\n 358: * This method sets the specified parameter from the given Java\n 359: * <code>Clob</code> value. The default object type to SQL type mapping\n 360: * will be used.\n 361: *\n 362: * @param index The index of the parameter value to set.\n 363: * @param value The <code>Clob</code> used to set the\n 364: * value of the parameter.\n 365: * @exception SQLException If an error occurs.\n 366: */\n void setClob(int index, Clob value) throws SQLException;\n \n /**\n 370: * This method sets the specified parameter from the given Java\n 371: * <code>Array</code> value. The default object type to SQL type mapping\n 372: * will be used.\n 373: *\n 374: * @param index The index of the parameter value to set.\n 375: * @param value The value of the parameter.\n 376: * @exception SQLException If an error occurs.\n 377: */\n void setArray(int index, Array value) throws SQLException;\n \n /**\n 381: * This method returns meta data for the result set from this statement.\n 382: *\n 383: * @return Meta data for the result set from this statement.\n 384: * @exception SQLException If an error occurs.\n 385: */\n ResultSetMetaData getMetaData() throws SQLException;\n \n /**\n 389: * This method sets the specified parameter from the given Java\n 390: * <code>java.sql.Date</code> value.\n 391: *\n 392: * @param index The index of the parameter value to set.\n 393: * @param value The value of the parameter.\n 394: * @param cal The <code>Calendar</code> to use for timezone and locale.\n 395: * @exception SQLException If an error occurs.\n 396: */\n void setDate(int index, Date value, Calendar cal)\n throws SQLException;\n \n /**\n 401: * This method sets the specified parameter from the given Java\n 402: * <code>java.sql.Time</code> value.\n 403: *\n 404: * @param index The index of the parameter value to set.\n 405: * @param value The value of the parameter.\n 406: * @param cal The <code>Calendar</code> to use for timezone and locale.\n 407: * @exception SQLException If an error occurs.\n 408: */\n void setTime(int index, Time value, Calendar cal)\n throws SQLException;\n \n /**\n 413: * This method sets the specified parameter from the given Java\n 414: * <code>java.sql.Timestamp</code> value.\n 415: *\n 416: * @param index The index of the parameter value to set.\n 417: * @param value The value of the parameter.\n 418: * @param cal The <code>Calendar</code> to use for timezone and locale.\n 419: * @exception SQLException If an error occurs.\n 420: */\n void setTimestamp(int index, Timestamp value, Calendar cal)\n throws SQLException;\n \n /**\n 425: * This method populates the specified parameter with a SQL NULL value\n 426: * for the specified type.\n 427: *\n 428: * @param index The index of the parameter to set.\n 429: * @param sqlType The SQL type identifier of the parameter from\n 430: * <code>Types</code>\n 431: * @param typeName The name of the data type, for user defined types.\n 432: * @exception SQLException If an error occurs.\n 433: */\n void setNull(int index, int sqlType, String typeName)\n throws SQLException;\n \n /**\n 438: * This method sets the specified parameter from the given Java\n 439: * <code>java.net.URL</code> value.\n 440: * \n 441: * @param index The index of the parameter to set.\n 442: * @param value The value of the parameter.\n 443: * @exception SQLException If an error occurs.\n 444: * @since 1.4\n 445: */\n void setURL(int index, URL value) throws SQLException;\n \n /**\n 449: * Returns information about the parameters set on this \n 450: * <code>PreparedStatement</code> (see {@link ParameterMetaData} for a\n 451: * detailed description of the provided information).\n 452: * \n 453: * @return Meta data for the parameters of this statement.\n 454: * @see ParameterMetaData\n 455: * @since 1.4\n 456: */\n ParameterMetaData getParameterMetaData() throws SQLException;\n }",
"void setInitSql(String value);",
"@Test(expected = NullPointerException.class)\n public void testNullPut() throws IOException {\n putRowInDB(table, null);\n }",
"@Override\n public boolean setParameter(String parameterName, String value) {\n return false;\n }",
"@Override\r\n\t\tpublic String nativeSQL(String sql) throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public static void convertAndSetParameter(PreparedStatement p, int number, Column column, Object value)\n throws SQLException\n {\n StringFormatter formatter;\n int type;\n Object o;\n\n // Get the column's type.\n\n type = column.getType();\n\n // Set the parameter to null if the value is null.\n\n if (value == null)\n {\n p.setNull(number, type);\n return;\n }\n\n // Convert the object to the correct type.\n\n try\n {\n formatter = column.getFormatter();\n if (value instanceof String)\n {\n o = formatter.parse((String)value, type);\n }\n else\n {\n o = ConvertObject.convertObject(value, type, formatter);\n }\n }\n catch (XMLMiddlewareException e)\n {\n throw new SQLException(\"[XML-DBMS] \" + e.getMessage());\n }\n\n // Call setParameter to actually set the parameter\n\n setParameter(p, number, column, o);\n }",
"public void setIdPermisosNull(boolean idPermisosNull)\r\n\t{\r\n\t\tthis.idPermisosNull = idPermisosNull;\r\n\t}",
"@Override\r\n\t\tpublic PreparedStatement prepareStatement(String sql,\r\n\t\t\t\tString[] columnNames) throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"@Test(expectedExceptions = DataAccessException.class)\r\n public void testUpdateNull() {\r\n recordDao.update(null);\r\n }",
"@Test(timeout = 4000)\n public void test100() throws Throwable {\n StringBuilder stringBuilder0 = new StringBuilder();\n SQLUtil.addOptionalCondition((String) null, stringBuilder0);\n assertEquals(\"null\", stringBuilder0.toString());\n }",
"public void setColumnNull(String column)\n {\n if (! hasColumn(column))\n throw new IllegalArgumentException(\"No such column \" + column);\n \n setColumnNullInternal(canonicalize(column));\n }",
"public void cancel() throws SQLException {\n currentPreparedStatement.cancel();\n }",
"void setValues(PreparedStatement ps) throws SQLException;",
"private void setParameterToStatement(CallableStatement callableStatement,\n\t\t\tint index, String value, int dataType, String paramType)\n\t\t\tthrows SQLException {\n\t\tLOGGER.info(\"index = [\" + index + \"], dataType = [\" + dataType\n\t\t\t\t+ \"], value = [\" + value + \"], paramType = [\" + paramType + \"]\");\n\n\t\tif (paramType.equalsIgnoreCase(\"in\")\n\t\t\t\t|| paramType.equalsIgnoreCase(\"inout\")) {\n\t\t\tif (value != null) {\n\t\t\t\tcallableStatement.setString(index, value);\n\t\t\t} else {\n\t\t\t\tcallableStatement.setNull(index, dataType);\n\t\t\t}\n\t\t} else if (paramType.equalsIgnoreCase(\"out\")) {\n\t\t\tcallableStatement.registerOutParameter(index, dataType);\n\t\t}\n\t\tif (paramType.equalsIgnoreCase(\"inout\")) {\n\t\t\tcallableStatement.registerOutParameter(index, dataType);\n\t\t}\n\t}",
"@Test(timeout = 4000)\n public void test115() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable();\n DBDataType dBDataType0 = DBDataType.getInstance((-3888), \"z+)yoxC0\");\n Integer integer0 = new Integer((-3888));\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\"z+)yoxC0\", defaultDBTable0, dBDataType0, integer0);\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\"z+)yoxC0 Z+)YOXC0(-3888) NULL\", string0);\n }",
"@Override\r\n\t\tpublic Savepoint setSavepoint() throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"public void setInt(int parameterIndex, int x) throws SQLException {\n currentPreparedStatement.setInt(parameterIndex, x);\n\n }",
"public static void setPregnancyRecordIdsToNull(Connection conn, String uuid) throws Exception {\r\n \tString sql = \"UPDATE pregnancy \" +\r\n \t\t\t\"SET patient_id=null, pregnancy_begin_encounter_id=null, pregnancy_end_encounter_id=null, labour_admission_encounter_id= null \" +\r\n \t\t\t\"WHERE uuid=?\";\r\n \tArrayList values = new ArrayList();\r\n \tvalues.add(uuid);\r\n \tDatabaseUtils.update(conn, sql, values.toArray());\r\n }",
"@Override\r\n\t\tpublic CallableStatement prepareCall(String sql, int resultSetType,\r\n\t\t\t\tint resultSetConcurrency) throws SQLException {\n\t\t\treturn null;\r\n\t\t}",
"@Test(timeout = 4000)\n public void test117() throws Throwable {\n DBDataType dBDataType0 = DBDataType.getInstance(33554432, \" zELECT l `kROM&\");\n DefaultDBColumn defaultDBColumn0 = new DefaultDBColumn(\" zELECT l `kROM&\", (DBTable) null, dBDataType0);\n defaultDBColumn0.setDefaultValue(\" NULL\");\n String string0 = SQLUtil.renderColumn(defaultDBColumn0);\n assertEquals(\" zELECT l `kROM& ZELECT L `KROM& DEFAULT NULL NULL\", string0);\n }",
"private void serializeNull(final StringBuffer buffer)\n {\n buffer.append(\"N;\");\n }",
"@Override\n\tpublic void setSQLXML(int parameterIndex, SQLXML xmlObject) throws SQLException {\n\t\t\n\t}",
"public static void setParameter(PreparedStatement p, int number, Column column, Object value)\n throws SQLException\n {\n byte[] b;\n InputStream stream;\n int type;\n\n type = column.getType();\n\n if (value == null)\n {\n p.setNull(number, type);\n return;\n }\n\n try\n {\n switch (type)\n {\n case Types.BIT:\n p.setBoolean(number, ((Boolean)value).booleanValue());\n break;\n\n case Types.TINYINT:\n p.setByte(number, ((Byte)value).byteValue());\n break;\n\n case Types.SMALLINT:\n p.setShort(number, ((Short)value).shortValue());\n break;\n\n case Types.INTEGER:\n p.setInt(number, ((Integer)value).intValue());\n break;\n\n case Types.BIGINT:\n p.setLong(number, ((Long)value).longValue());\n break;\n\n case Types.REAL:\n p.setFloat(number, ((Float)value).floatValue());\n break;\n\n case Types.FLOAT:\n case Types.DOUBLE:\n p.setDouble(number, ((Double)value).doubleValue());\n break;\n\n case Types.DECIMAL:\n case Types.NUMERIC:\n p.setBigDecimal(number, (BigDecimal)value);\n break;\n\n case Types.CHAR:\n case Types.VARCHAR:\n p.setString(number, (String)value);\n break;\n\n case Types.LONGVARCHAR:\n // First try to pass the value as Unicode. If this fails,\n // assume it is because setUnicodeStream() is not supported.\n // Next, try calling setAsciiStream(). If this also fails,\n // then return the exception.\n try\n {\n b = ((String)value).getBytes(\"UTF-16\");\n stream = new ByteArrayInputStream(b);\n p.setUnicodeStream(number, stream, b.length);\n }\n catch (Exception e)\n {\n try\n {\n b = ((String)value).getBytes(\"US-ASCII\");\n stream = new ByteArrayInputStream(b);\n p.setAsciiStream(number, stream, b.length);\n }\n catch (UnsupportedEncodingException u)\n {\n throw new SQLException(\"[XML-DBMS] \" + u.getMessage());\n }\n }\n break;\n\n case Types.BINARY:\n case Types.VARBINARY:\n b = ((ByteArray)value).getBytes();\n p.setBytes(number, b);\n break;\n\n case Types.LONGVARBINARY:\n b = ((ByteArray)value).getBytes();\n stream = new ByteArrayInputStream(b);\n p.setBinaryStream(number, stream, b.length);\n break;\n\n case Types.DATE:\n p.setDate(number, (java.sql.Date)value);\n break;\n\n case Types.TIME:\n p.setTime(number, (Time)value);\n break;\n\n case Types.TIMESTAMP:\n p.setTimestamp(number, (Timestamp)value);\n break;\n\n default:\n String name = JDBCTypes.getName(type);\n if (name == null)\n {\n name = Integer.toString(type);\n }\n throw new SQLException(\"Unsupported JDBC Type: \" + name);\n \n }\n }\n catch (ClassCastException c)\n {\n // If the value is not the expected type, then try to convert it to the\n // correct type. Note that convertAndSetParameter calls back into this\n // method. However, an infinite loop cannot occur because either (a)\n // convertAndSetParameter fails the conversion and an exception is thrown,\n // or (b) convertAndSetParameter succeeds in the conversion and this clause\n // is not reached again.\n\n convertAndSetParameter(p, number, column, value);\n }\n }"
] | [
"0.77623135",
"0.6757025",
"0.6751109",
"0.66048324",
"0.6390629",
"0.6251748",
"0.62219214",
"0.62075907",
"0.6144671",
"0.61055386",
"0.6035246",
"0.60166925",
"0.5960475",
"0.595022",
"0.5939846",
"0.59013414",
"0.5883104",
"0.58517486",
"0.57200533",
"0.56983393",
"0.56664175",
"0.5642911",
"0.5593393",
"0.5581508",
"0.5579935",
"0.5564914",
"0.5563524",
"0.5559475",
"0.5523635",
"0.5515082",
"0.5468225",
"0.5438985",
"0.5431064",
"0.54274356",
"0.5426039",
"0.54209334",
"0.53928447",
"0.5386534",
"0.5378806",
"0.535054",
"0.5348696",
"0.53359705",
"0.5330217",
"0.53206587",
"0.5319962",
"0.5316998",
"0.5315569",
"0.53085536",
"0.53079224",
"0.53079224",
"0.53079224",
"0.53079224",
"0.5297797",
"0.5268005",
"0.5256382",
"0.5248058",
"0.52445644",
"0.52358454",
"0.52267283",
"0.521451",
"0.5203158",
"0.5201472",
"0.5199476",
"0.5199197",
"0.5198929",
"0.51706076",
"0.51706076",
"0.51625735",
"0.51625645",
"0.5159742",
"0.51329887",
"0.51293397",
"0.5121687",
"0.5116673",
"0.5110718",
"0.5105432",
"0.51046616",
"0.50929606",
"0.5092166",
"0.50829655",
"0.5075578",
"0.5068628",
"0.50651795",
"0.504058",
"0.5034963",
"0.5021517",
"0.5006609",
"0.50047207",
"0.50029576",
"0.4990693",
"0.49902275",
"0.49878454",
"0.49841124",
"0.49826723",
"0.4980509",
"0.4977392",
"0.4975783",
"0.49741143",
"0.4968688",
"0.49653313"
] | 0.61566716 | 8 |
Gets the "Textseqid" element | public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()
{
synchronized (monitor())
{
check_orphaned();
gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;
target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);
if (target == null)
{
return null;
}
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public int getTEXTCODE() {\n return textcode;\n }",
"public int getIndex() {\r\n return textIndex;\r\n }",
"protocol.VersionedTextDocumentIdentifier getTextDocument();",
"public String getTxtID() {\n return txtId.getText();\n }",
"protocol.VersionedTextDocumentIdentifierOrBuilder getTextDocumentOrBuilder();",
"public String getCQcIdseq() {\n return (String) getAttributeInternal(CQCIDSEQ);\n }",
"public java.lang.Long getOTLTEXTID() {\n return OTLT_EXT_ID;\n }",
"public String getConteIdseq() {\n return (String) getAttributeInternal(CONTEIDSEQ);\n }",
"public java.lang.Long getOTLTEXTID() {\n return OTLT_EXT_ID;\n }",
"public edu.jhu.hlt.concrete.TextSpan getTextSpan() {\n return this.textSpan;\n }",
"public String getQcIdseq() {\n return (String) getAttributeInternal(QCIDSEQ);\n }",
"java.lang.String getSeq();",
"public String getTextAsString () {\n\t\tString val = null;\n\t\tif(text!=null) {\n\t\t\tText t = text.getText();\n\t\t\tTextLine[] lines = t.getLines();\n\t\t\t\n\t\t\tif(lines.length >0) {\n\t\t\t\tint endline = lines.length - 1;\n\t\t\t\tTextLine lastline = lines[endline];\n\t\t\t\tif(lastline!= null) {\n\t\t\t\t\tint endOffset = lastline.getLength();\n\t\t\t\t\tTextRange tr = new TextRange(new TextLocation(0,0), new TextLocation(endline,endOffset));\n\t\t\t\t\tval = t.getText(tr);\n\t\t\t\t} \n\t\t\t}\n\t\t}\n\t\treturn val;\n\t}",
"public int getSeqNo();",
"public int getSeqNo();",
"String getAcctgTransEntrySeqId();",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"String getText(int id);",
"public int getTextPosition() {\r\n return TextPosition;\r\n }",
"public String getPQcIdseq() {\n return (String) getAttributeInternal(PQCIDSEQ);\n }",
"public String getText() {\n\t\t\treturn text.get();\n\t\t}",
"public String getText() {\n if (_lastTag == null)\n return null;\n return _lastTag.getChildText();\n }",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"long getSeqnum();",
"public Number getSequenceNo() {\n return (Number)getAttributeInternal(SEQUENCENO);\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId getSeqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId)get_store().find_element_user(SEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public int getSeqNumber() {\n return buffer.getShort(2) & 0xFFFF;\n }",
"java.lang.String getTid();",
"java.lang.String getTid();",
"public String getPModIdseq() {\n return (String) getAttributeInternal(PMODIDSEQ);\n }",
"@objid (\"d03ac21a-47cb-44d2-820d-6136f84aa408\")\r\n public String getText() {\r\n return this.text.getText();\r\n }",
"protected Text getText() {\n \t\treturn text;\n \t}",
"public ScText newIdText()\n {\n return newIdText(\"Id\");\n }",
"public ScText newIdText()\n {\n return newIdText(\"Id\");\n }",
"public ScText newIdText()\n {\n return newIdText(\"Id\");\n }",
"public ScText newIdText()\n {\n return newIdText(\"Id\");\n }",
"public String getQrIdseq() {\n return (String) getAttributeInternal(QRIDSEQ);\n }",
"public int getCSeqNumber() {\n return cSeqHeader.getSequenceNumber();\n }",
"@Nullable\n public String getSequence() {\n return XmlUtils.getAttributeValue(this.mAdNode, \"sequence\");\n }",
"public String getText() {\r\n return this.text;\r\n }",
"public String getText() {\n\t\treturn this.text;\n\t}",
"public String getText() {\n\t\treturn this.text;\n\t}",
"SpCharInSeq getById(Integer spcharinseqId);",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\n\t\treturn text;\n\t}",
"public String getText() {\r\n return text;\r\n }",
"public String getText()\r\n {\r\n return this.text;\r\n }",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"private String getTextID(String key) {\n return fieldID.get(key).getText();\n }",
"public synchronized String getText() {\n\t\treturn text;\n\t}",
"int getSeq();",
"int getSeq();",
"int getSeq();",
"public String getText() {\r\n\t\treturn text;\r\n\t}",
"public String getText() {\r\n\t\treturn text;\r\n\t}",
"public java.lang.String getText() {\n \t\treturn text;\n \t}",
"public String getRecordText();",
"public String getRecordText();",
"public String getText() {\n return text.getText();\n }",
"public String getText(){\r\n\t\treturn text;\r\n\t}",
"public P getText() {\n return this.slp.getProduction(text);\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }",
"public String getText() {\n return text;\n }"
] | [
"0.70364094",
"0.70364094",
"0.70364094",
"0.70364094",
"0.70364094",
"0.70364094",
"0.70364094",
"0.70364094",
"0.70364094",
"0.70364094",
"0.70364094",
"0.70364094",
"0.60899097",
"0.59489024",
"0.5944589",
"0.5918847",
"0.5780374",
"0.5726825",
"0.56578386",
"0.5654797",
"0.5643514",
"0.5640316",
"0.5634944",
"0.5633684",
"0.56320524",
"0.56233627",
"0.56233627",
"0.5609217",
"0.5606568",
"0.5606568",
"0.5606568",
"0.5606568",
"0.5606568",
"0.5606568",
"0.5606568",
"0.5606568",
"0.5606568",
"0.5606568",
"0.5606568",
"0.5606568",
"0.56056774",
"0.56030124",
"0.5529432",
"0.5523521",
"0.5480247",
"0.54437083",
"0.54281837",
"0.54281837",
"0.54281837",
"0.54281837",
"0.54281837",
"0.54281837",
"0.54281837",
"0.5423621",
"0.5371124",
"0.5369204",
"0.536353",
"0.536353",
"0.53570956",
"0.5352118",
"0.5349642",
"0.53489614",
"0.53489614",
"0.53489614",
"0.53489614",
"0.5347554",
"0.5316339",
"0.53130436",
"0.5306326",
"0.53061754",
"0.53061754",
"0.5295314",
"0.5294278",
"0.5294278",
"0.5294278",
"0.5294278",
"0.5294278",
"0.5294278",
"0.5289521",
"0.52874076",
"0.5286224",
"0.5286224",
"0.5286224",
"0.5284375",
"0.528185",
"0.5276722",
"0.5276722",
"0.5276722",
"0.527637",
"0.527637",
"0.5271823",
"0.5256045",
"0.5256045",
"0.5255388",
"0.5252791",
"0.52524334",
"0.52506554",
"0.52506554",
"0.52506554",
"0.52506554"
] | 0.699825 | 12 |
Sets the "Textseqid" element | public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)
{
synchronized (monitor())
{
check_orphaned();
gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;
target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);
if (target == null)
{
target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);
}
target.set(textseqId);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setIndex(int index) {\r\n this.textIndex = index;\r\n }",
"public void setConteIdseq(String value) {\n setAttributeInternal(CONTEIDSEQ, value);\n }",
"public void setTEXTCODE(int value) {\n this.textcode = value;\n }",
"public void setTxtId(String txtId) {\n this.txtId.setText(txtId);\n }",
"public void setSeqNo (int SeqNo);",
"public void setSeqNo (int SeqNo);",
"public void setQcIdseq(String value) {\n setAttributeInternal(QCIDSEQ, value);\n }",
"public void setPModIdseq(String value) {\n setAttributeInternal(PMODIDSEQ, value);\n }",
"public void setTitleID(String val){\n\t\ttid = val;\n\t}",
"public void set_seqnum(byte value) {\n setSIntElement(offsetBits_seqnum(), 8, value);\n }",
"@Override\n\tpublic void setText(String text) {\n \tif (_assocModel == null) return;\n\t\tString mult;\n\t\tPattern p = Pattern.compile(\"([\\\\d]|\\\\Q*\\\\E)([.]{2}+([\\\\d]|\\\\Q*\\\\E))?\");\t// regex for multiplicities: (digit | *) + optional(.. (digit | *))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// can use a Collection to handle multiplicities of *; we really only care about\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the upper bound also\n\t\tMatcher m = p.matcher(text);\n\t\t// regex didn't find anything, so we'll assign a default multiplicity\n\t\tif (!m.find() || m.group().length() < 0) {\n\t\t\tmult=\"1\";\n\t\t}\n\t\telse mult = m.group();\n\t\t_assocModel.setMultiplicity(mult);\n\t\tsuper.setText(mult);\n\t}",
"public void setSequenceNo(Number value) {\n setAttributeInternal(SEQUENCENO, value);\n }",
"public void setText(String text){\n this.roomText = text;\n this.hasText = true;\n }",
"public void setOTLTEXTID(java.lang.Long value) {\n this.OTLT_EXT_ID = value;\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"@Override\r\n\tpublic void setInnerText(String arg0) {\n\t\t\r\n\t}",
"public void setText(CharSequence newText) {\n getTextBuffer().replace(new SelectionSetter(), 0, getTextBuffer().length(), newText, new SelectionSetter(0));\n }",
"public void setTextIdCreacionRegistro(String text) { doSetText(this.$element_IdCreacionRegistro, text); }",
"private void setTextID(String key, String value) {\n fieldID.get(key).setText(value);\n }",
"public void setPatentSeqId(gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId patentSeqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().find_element_user(PATENTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().add_element_user(PATENTSEQID$0);\r\n }\r\n target.set(patentSeqId);\r\n }\r\n }",
"public void setHasSynchronizedText( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), HASSYNCHRONIZEDTEXT, value);\r\n\t}",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public org.LNDCDC_ADS_PRPSL.DEAL_PNT_FEAT_LN.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN.Builder setOTLTEXTID(java.lang.Long value) {\n validate(fields()[7], value);\n this.OTLT_EXT_ID = value;\n fieldSetFlags()[7] = true;\n return this;\n }",
"@Override\n\tpublic void setInnerText(String arg0) {\n\n\t}",
"public ScText newIdText()\n {\n return newIdText(\"Id\");\n }",
"public ScText newIdText()\n {\n return newIdText(\"Id\");\n }",
"public ScText newIdText()\n {\n return newIdText(\"Id\");\n }",
"public ScText newIdText()\n {\n return newIdText(\"Id\");\n }",
"public void xsetText(org.apache.xmlbeans.XmlString text)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TEXT$18, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TEXT$18);\n }\n target.set(text);\n }\n }",
"public void setSeqId(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId seqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId)get_store().find_element_user(SEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId)get_store().add_element_user(SEQID$0);\r\n }\r\n target.set(seqId);\r\n }\r\n }",
"public void xsetText(org.apache.xmlbeans.XmlString text)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(TEXT$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(TEXT$0);\n }\n target.set(text);\n }\n }",
"public void setArtId(DBSequence value) {\n setAttributeInternal(ARTID, value);\n }",
"public void setText(java.lang.String text)\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(TEXT$18, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEXT$18);\n }\n target.setStringValue(text);\n }\n }",
"@Test\n public void tocSeqNumbering() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // SEQ fields display a count that increments at each SEQ field.\n // These fields also maintain separate counts for each unique named sequence\n // identified by the SEQ field's \"SequenceIdentifier\" property.\n // Insert a SEQ field that will display the current count value of \"MySequence\",\n // after using the \"ResetNumber\" property to set it to 100.\n builder.write(\"#\");\n FieldSeq fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.setResetNumber(\"100\");\n fieldSeq.update();\n\n Assert.assertEquals(\" SEQ MySequence \\\\r 100\", fieldSeq.getFieldCode());\n Assert.assertEquals(\"100\", fieldSeq.getResult());\n\n // Display the next number in this sequence with another SEQ field.\n builder.write(\", #\");\n fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.update();\n\n Assert.assertEquals(\"101\", fieldSeq.getResult());\n\n // Insert a level 1 heading.\n builder.insertBreak(BreakType.PARAGRAPH_BREAK);\n builder.getParagraphFormat().setStyle(doc.getStyles().get(\"Heading 1\"));\n builder.writeln(\"This level 1 heading will reset MySequence to 1\");\n builder.getParagraphFormat().setStyle(doc.getStyles().get(\"Normal\"));\n\n // Insert another SEQ field from the same sequence and configure it to reset the count at every heading with 1.\n builder.write(\"\\n#\");\n fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.setResetHeadingLevel(\"1\");\n fieldSeq.update();\n\n // The above heading is a level 1 heading, so the count for this sequence is reset to 1.\n Assert.assertEquals(\" SEQ MySequence \\\\s 1\", fieldSeq.getFieldCode());\n Assert.assertEquals(\"1\", fieldSeq.getResult());\n\n // Move to the next number of this sequence.\n builder.write(\", #\");\n fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.setInsertNextNumber(true);\n fieldSeq.update();\n\n Assert.assertEquals(\" SEQ MySequence \\\\n\", fieldSeq.getFieldCode());\n Assert.assertEquals(\"2\", fieldSeq.getResult());\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.SEQ.ResetNumbering.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.SEQ.ResetNumbering.docx\");\n\n Assert.assertEquals(4, doc.getRange().getFields().getCount());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence \\\\r 100\", \"100\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence\", \"101\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence \\\\s 1\", \"1\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(3);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence \\\\n\", \"2\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n }",
"private void setText(Text text) {\n \t\tthis.text = text;\n \t}",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public void setText(java.lang.String text)\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(TEXT$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(TEXT$0);\n }\n target.setStringValue(text);\n }\n }",
"public void setHasSynchronizedText(SynchronizedText value) {\r\n\t\tBase.set(this.model, this.getResource(), HASSYNCHRONIZEDTEXT, value);\r\n\t}",
"public void setText(String text) {\n\t\t\n\t}",
"public void setText(String text) {\r\n\r\n\t}",
"public void setText(String text) {\r\n\t\tthis.text= text;\r\n\t}",
"public static void setTargetText (ITextUnit textUnit,\r\n \t\tLocaleId locId,\r\n \t\tString text)\r\n \t{\r\n \t\t// fail fast if ( textUnit == null ) return;\r\n \t\t// fail fast if ( Util.isNullOrEmpty(locId) ) return;\r\n \t\tTextFragment target = textUnit.getTarget(locId).getFirstContent();\r\n \t\t// fail fast if ( target == null ) return;\r\n \t\ttarget.setCodedText(text);\r\n \t}",
"void setSequenceNumber(int sequenceNumber);",
"public void setText(String text) {\n this.textData = text;\n }",
"public void setTextCodigoPoaEd(String text) { doSetText(this.$element_CodigoPoaEd, text); }",
"public void setUnsynchronizedTextContent(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), UNSYNCHRONIZEDTEXTCONTENT, value);\r\n\t}",
"public void setNotiId(DBSequence value) {\r\n setAttributeInternal(NOTIID, value);\r\n }",
"void setSeq(long seq) {\n this.seq = seq;\n }",
"public void setText(java.lang.String newText) {\n \t\ttext = newText;\n \t}",
"public TextPos() {\n this.value = 1;\n }",
"public int getTEXTCODE() {\n return textcode;\n }",
"void xsetSignatureText(com.microsoft.schemas.office.x2006.digsig.STSignatureText signatureText);",
"void setText(int offset, int length, String newText)\n\t{\n\t}",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000010;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000010;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public void setText(byte[] text) {\n\t\tthis.text = text;\n\t}",
"public void getTextById(String Id) {\n\t\t\r\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t}",
"public void setText(String text) {\n\t\tthis.text = text;\n\t}",
"public void setUnsynchronizedTextContent( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), UNSYNCHRONIZEDTEXTCONTENT, value);\r\n\t}",
"public void setText(String text) {\r\n\t\tthis.text = text;\r\n\t}",
"public void setTextEl ( Object textEl ) {\r\n\t\tgetStateHelper().put(PropertyKeys.textEl, textEl);\r\n\t\thandleAttribute(\"textEl\", textEl);\r\n\t}",
"public Builder setSeqnum(long value) {\n bitField0_ |= 0x00000002;\n seqnum_ = value;\n onChanged();\n return this;\n }",
"public void setTextValorEd(String text) { doSetText(this.$element_ValorEd, text); }"
] | [
"0.6716618",
"0.6716618",
"0.6716618",
"0.6716618",
"0.6716618",
"0.6716618",
"0.6716618",
"0.6716618",
"0.6716618",
"0.6716618",
"0.6716618",
"0.6716618",
"0.578961",
"0.5701385",
"0.56872344",
"0.56226856",
"0.5614936",
"0.5614936",
"0.55614287",
"0.5550063",
"0.55422866",
"0.5539183",
"0.551319",
"0.5498288",
"0.5495257",
"0.54712915",
"0.54130554",
"0.54130554",
"0.54130554",
"0.54130554",
"0.54130554",
"0.54130554",
"0.54130554",
"0.54130554",
"0.54130554",
"0.54130554",
"0.54130554",
"0.54130554",
"0.54090023",
"0.54021895",
"0.53982306",
"0.5378406",
"0.53751624",
"0.53678536",
"0.5354845",
"0.5354845",
"0.5354845",
"0.5354845",
"0.5354845",
"0.5354845",
"0.5354845",
"0.5354845",
"0.5354845",
"0.5354845",
"0.5354845",
"0.5354845",
"0.5346144",
"0.5337792",
"0.5337229",
"0.5324214",
"0.5324214",
"0.5324214",
"0.5324214",
"0.52830553",
"0.5274717",
"0.52605283",
"0.5244084",
"0.522892",
"0.52258545",
"0.52183354",
"0.52168876",
"0.5173526",
"0.51724005",
"0.51437753",
"0.51431924",
"0.51385987",
"0.51348317",
"0.5133217",
"0.5124788",
"0.5112221",
"0.51072323",
"0.5099976",
"0.5089825",
"0.50696653",
"0.50616384",
"0.50533724",
"0.5049909",
"0.5041821",
"0.5038623",
"0.5038623",
"0.50361294",
"0.50352925",
"0.5034256",
"0.5034256",
"0.5034256",
"0.50321454",
"0.5031715",
"0.5030163",
"0.5028412",
"0.50188243"
] | 0.6645162 | 12 |
Appends and returns a new empty "Textseqid" element | public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()
{
synchronized (monitor())
{
check_orphaned();
gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;
target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId addNewTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n return target;\r\n }\r\n }",
"public ScText newIdText()\n {\n return newIdText(\"Id\");\n }",
"public ScText newIdText()\n {\n return newIdText(\"Id\");\n }",
"public ScText newIdText()\n {\n return newIdText(\"Id\");\n }",
"public ScText newIdText()\n {\n return newIdText(\"Id\");\n }",
"public org.LNDCDC_ADS_PRPSL.DEAL_PNT_FEAT_LN.apache.nifi.LNDCDC_ADS_PRPSL_DEAL_PNT_FEAT_LN.Builder clearOTLTEXTID() {\n OTLT_EXT_ID = null;\n fieldSetFlags()[7] = false;\n return this;\n }",
"public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId addNewSeqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId)get_store().add_element_user(SEQID$0);\r\n return target;\r\n }\r\n }",
"ElementText createElementText();",
"public CText() {\r\n\t\ttext = new StringBuilder();\r\n\t\tline_index = new ArrayList<>();\r\n\t\tline_index.add(0);\r\n\t}",
"public UUID createMsgId() {\r\n return UUIDFactory.newSeqUUID();\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId addNewPatentSeqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PatentSeqIdDocument.PatentSeqId)get_store().add_element_user(PATENTSEQID$0);\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.PDBSeqIdDocument.PDBSeqId addNewPDBSeqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.PDBSeqIdDocument.PDBSeqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.PDBSeqIdDocument.PDBSeqId)get_store().add_element_user(PDBSEQID$0);\r\n return target;\r\n }\r\n }",
"@Test\n public void tocSeqNumbering() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // SEQ fields display a count that increments at each SEQ field.\n // These fields also maintain separate counts for each unique named sequence\n // identified by the SEQ field's \"SequenceIdentifier\" property.\n // Insert a SEQ field that will display the current count value of \"MySequence\",\n // after using the \"ResetNumber\" property to set it to 100.\n builder.write(\"#\");\n FieldSeq fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.setResetNumber(\"100\");\n fieldSeq.update();\n\n Assert.assertEquals(\" SEQ MySequence \\\\r 100\", fieldSeq.getFieldCode());\n Assert.assertEquals(\"100\", fieldSeq.getResult());\n\n // Display the next number in this sequence with another SEQ field.\n builder.write(\", #\");\n fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.update();\n\n Assert.assertEquals(\"101\", fieldSeq.getResult());\n\n // Insert a level 1 heading.\n builder.insertBreak(BreakType.PARAGRAPH_BREAK);\n builder.getParagraphFormat().setStyle(doc.getStyles().get(\"Heading 1\"));\n builder.writeln(\"This level 1 heading will reset MySequence to 1\");\n builder.getParagraphFormat().setStyle(doc.getStyles().get(\"Normal\"));\n\n // Insert another SEQ field from the same sequence and configure it to reset the count at every heading with 1.\n builder.write(\"\\n#\");\n fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.setResetHeadingLevel(\"1\");\n fieldSeq.update();\n\n // The above heading is a level 1 heading, so the count for this sequence is reset to 1.\n Assert.assertEquals(\" SEQ MySequence \\\\s 1\", fieldSeq.getFieldCode());\n Assert.assertEquals(\"1\", fieldSeq.getResult());\n\n // Move to the next number of this sequence.\n builder.write(\", #\");\n fieldSeq = (FieldSeq) builder.insertField(FieldType.FIELD_SEQUENCE, true);\n fieldSeq.setSequenceIdentifier(\"MySequence\");\n fieldSeq.setInsertNextNumber(true);\n fieldSeq.update();\n\n Assert.assertEquals(\" SEQ MySequence \\\\n\", fieldSeq.getFieldCode());\n Assert.assertEquals(\"2\", fieldSeq.getResult());\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.SEQ.ResetNumbering.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.SEQ.ResetNumbering.docx\");\n\n Assert.assertEquals(4, doc.getRange().getFields().getCount());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence \\\\r 100\", \"100\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence\", \"101\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(2);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence \\\\s 1\", \"1\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n\n fieldSeq = (FieldSeq) doc.getRange().getFields().get(3);\n\n TestUtil.verifyField(FieldType.FIELD_SEQUENCE, \" SEQ MySequence \\\\n\", \"2\", fieldSeq);\n Assert.assertEquals(\"MySequence\", fieldSeq.getSequenceIdentifier());\n }",
"public void setTextseqId(gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId textseqId)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().add_element_user(TEXTSEQID$0);\r\n }\r\n target.set(textseqId);\r\n }\r\n }",
"gov.nih.nlm.ncbi.www.SeqLocDocument.SeqLoc addNewSeqLoc();",
"public void addUnsynchronizedTextContent( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), UNSYNCHRONIZEDTEXTCONTENT, value);\r\n\t}",
"private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}",
"private static void appendChildWithText(Document document,\n Node parent, String tagName, String textContent) {\n Element element = document.createElement(tagName);\n element.setTextContent(textContent);\n parent.appendChild(element);\n }",
"private void appendText()\n\t{\n\t\tString fieldText = \"\";\n\t\tString newText = \"\";\n\t\tfieldText = entry.getText();\n\t\t\n\t\tif(fieldText.equals (\"0\"))\n\t\t{\n\t\t\tnewText += append;\n\t\t\tfieldText = newText;\n\t\t\tentry.setText (fieldText);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfieldText += append;\n\t\t\tentry.setText (fieldText);\n\t\t}\n\t\t\n\t\tentry.grabFocus ( );\n\t\t\n\t}",
"public void append(String newText) {\n getLock().getWriteLock();\n try {\n SelectionSetter noChange = new SelectionSetter(SelectionSetter.DO_NOT_CHANGE);\n PTextBuffer buffer = getTextBuffer();\n buffer.replace(noChange, buffer.length(), 0, newText, noChange);\n } finally {\n getLock().relinquishWriteLock();\n }\n }",
"public void parse(){\n\n Integer childStart = this.findNewElement(0, this.document.length - 1);\n if(childStart == null){\n return;\n }\n\n this.root.removeData();\n this.copyTextToDocumentTree(this.root, 0, childStart - 1);\n\n DocumentSectionType childType = this.getType(childStart);\n\n do {\n Integer end = this.findNextSameLevelElement(childStart + 1, childType);\n //now we have boundaries of our new element, so let's grab it's index\n //we need appropriate matcher\n\n Matcher childMatcher = childType.getPattern().matcher(this.document[childStart]);\n childMatcher.find();\n DocumentTree child = new DocumentTree(childType, childMatcher.group(1), null);\n\n //now clear first line\n try{\n String group2 = childMatcher.group(2);\n this.document[childStart] = group2 != null ? group2 + \" \" : \"\";\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] = \"\";\n }\n try {\n this.document[childStart] += childMatcher.group(3);\n }catch(IndexOutOfBoundsException e){\n this.document[childStart] += \"\";\n }\n //and copy it's text\n this.copyTextToDocumentTree(child, childStart, end - 1);\n root.addChild(child);\n //finally, parse it\n DocumentParser childParser = new DocumentParser(child, joinChapterWithChapterNames);\n childParser.parse();\n\n childStart = end;\n }while(childStart != this.document.length);\n\n if(this.root.getType() == DocumentSectionType.CHAPTER && this.joinChapterWithChapterNames){\n DocumentTree nameNode = (DocumentTree)this.root.getChildren().get(0);\n this.root.removeData();\n this.root.appendData(nameNode.getIndex());\n this.root.replaceChild(nameNode, nameNode.getChildren());\n }\n\n }",
"private HTMLElement generateTextElement(String type, String spanID,\n \t\t\tString spanClass, String spanContent, int indentLevel) {\n \t\t// Create the span: <SPAN>spanContent</SPAN>\n \t\tHTMLElement span = new HTMLElement(IIntroHTMLConstants.ELEMENT_SPAN);\n \t\tif (spanID != null)\n \t\t\tspan.addAttribute(IIntroHTMLConstants.ATTRIBUTE_ID, spanID);\n \t\tif (spanClass != null)\n \t\t\tspan.addAttribute(IIntroHTMLConstants.ATTRIBUTE_CLASS, spanClass);\n \t\tif (spanContent != null)\n \t\t\tspan.addContent(spanContent);\n \t\t// Create the enclosing text element: <P><SPAN>spanContent</SPAN></P>\n \t\tHTMLElement text = new FormattedHTMLElement(type, indentLevel, false);\n \t\ttext.addContent(span);\n \t\treturn text;\n \t}",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId addNewRegular()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId)get_store().add_element_user(REGULAR$2);\n return target;\n }\n }",
"public void addUnsynchronizedTextContent(java.lang.String value) {\r\n\t\tBase.add(this.model, this.getResource(), UNSYNCHRONIZEDTEXTCONTENT, value);\r\n\t}",
"public gr.grnet.aquarium.message.avro.gen.UserAgreementMsg.Builder clearId() {\n id = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"HdbSequenceElements createHdbSequenceElements();",
"public Builder clearSeq() {\n bitField0_ = (bitField0_ & ~0x00000040);\n seq_ = getDefaultInstance().getSeq();\n onChanged();\n return this;\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}",
"public Builder clearSeqnum() {\n bitField0_ = (bitField0_ & ~0x00000010);\n seqnum_ = 0L;\n onChanged();\n return this;\n }",
"public Builder clearSeqnum() {\n bitField0_ = (bitField0_ & ~0x00000010);\n seqnum_ = 0L;\n onChanged();\n return this;\n }",
"public Builder clearSeqnum() {\n bitField0_ = (bitField0_ & ~0x00000002);\n seqnum_ = 0L;\n onChanged();\n return this;\n }",
"java.lang.String getSeq();",
"public Builder clearSeqnum() {\n bitField0_ = (bitField0_ & ~0x00000004);\n seqnum_ = 0L;\n onChanged();\n return this;\n }",
"public Builder clearSeqnum() {\n bitField0_ = (bitField0_ & ~0x00000004);\n seqnum_ = 0L;\n onChanged();\n return this;\n }",
"public Builder clearSeqnum() {\n bitField0_ = (bitField0_ & ~0x00000004);\n seqnum_ = 0L;\n onChanged();\n return this;\n }",
"public Builder clearSeqnum() {\n bitField0_ = (bitField0_ & ~0x00000004);\n seqnum_ = 0L;\n onChanged();\n return this;\n }",
"public Text createTextNode(String data, Element parent);",
"private Element addTextNode(Element parent, String tag, String content) {\r\n\t\tElement child = mDocument.createElement(tag);\r\n\t\tchild.setTextContent(content);\r\n\t\tparent.appendChild(child);\r\n\t\treturn child;\r\n\t}",
"public void addHasSynchronizedText( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), HASSYNCHRONIZEDTEXT, value);\r\n\t}",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId addNewItalic()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId)get_store().add_element_user(ITALIC$6);\n return target;\n }\n }",
"public TextBuilder addStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n return lastText;\n }",
"@Override\r\n public void completeElementContent() {\r\n numBytes = 0;\r\n String theElementValue = this.getText();\r\n this.mySequenceFragment = theElementValue;\r\n myByteSpecifierSequence = new ArrayList<ByteSeqSpecifier>();\r\n StringBuffer allSpecifiers = new StringBuffer(theElementValue);\r\n while (allSpecifiers.length() > 0) {\r\n try {\r\n ByteSeqSpecifier bss = new ByteSeqSpecifier(allSpecifiers);\r\n myByteSpecifierSequence.add(bss);\r\n numBytes += bss.getNumBytes();\r\n } catch (Exception e) {\r\n }\r\n }\r\n\r\n }",
"private static void appendAutoTextEntry(GlossaryDocument glossaryDoc, String name, String contents) {\n BuildingBlock buildingBlock = new BuildingBlock(glossaryDoc);\n buildingBlock.setName(name);\n buildingBlock.setGallery(BuildingBlockGallery.AUTO_TEXT);\n buildingBlock.setCategory(\"General\");\n buildingBlock.setBehavior(BuildingBlockBehavior.PARAGRAPH);\n\n Section section = new Section(glossaryDoc);\n section.appendChild(new Body(glossaryDoc));\n section.getBody().appendParagraph(contents);\n buildingBlock.appendChild(section);\n\n glossaryDoc.appendChild(buildingBlock);\n }",
"Builder addText(String value);",
"void append(String text);",
"void append(String text);",
"public gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId getTextseqId()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId target = null;\r\n target = (gov.nih.nlm.ncbi.www.TextseqIdDocument.TextseqId)get_store().find_element_user(TEXTSEQID$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"private void extendNode(Node node, String newText, int position) {\n String currentText = node.getText();\n String commonPrefix = getLongestCommonPrefix(currentText, newText);\n\n if (commonPrefix != currentText) {\n String parentText = currentText.substring(0, commonPrefix.length());\n String childText = currentText.substring(commonPrefix.length());\n splitNodeToParentAndChild(node, parentText, childText);\n }\n\n String remainingText = newText.substring(commonPrefix.length());\n if (remainingText.length() > 0) {\n addChildNode(node, remainingText, position);\n } else {\n // node.setCount(node.getCount() + 1.0);\n }\n }",
"private void removeSubElement(Element p_element)\n {\n Element parent = p_element.getParent();\n int index = parent.indexOf(p_element);\n\n // We copy the current content, clear out the parent, and then\n // re-add the old content, inserting the <sub>'s textual\n // content instead of the <sub> (this clears any embedded TMX\n // tags in the subflow).\n\n ArrayList newContent = new ArrayList();\n List content = parent.content();\n\n for (int i = content.size() - 1; i >= 0; --i)\n {\n Node node = (Node)content.get(i);\n\n newContent.add(node.detach());\n }\n\n Collections.reverse(newContent);\n parent.clearContent();\n\n for (int i = 0, max = newContent.size(); i < max; ++i)\n {\n Node node = (Node)newContent.get(i);\n\n if (i == index)\n {\n parent.addText(p_element.getText());\n }\n else\n {\n parent.add(node);\n }\n }\n }",
"public de.hpi.msd.salsa.serde.avro.Edge.Builder clearTweedId() {\n fieldSetFlags()[1] = false;\n return this;\n }",
"public Builder clearMsgId() {\n\n msgId_ = 0L;\n onChanged();\n return this;\n }",
"@Override\n\tpublic String getInnerText() {\n\t\treturn null;\n\t}",
"public void addText(String newText) {\n lb.setText(newText + \"\\n\" + lb.getText());\n instance.setVvalue(0);\n }",
"protected double addTextElement(Element parent, double x, double y, String text,\n float fontSize, String anchor, String weight, String fill) {\n Element newText = svgDocument.createElementNS(svgNS, SVGConstants.SVG_TEXT_TAG);\n newText.setTextContent(text);\n newText.setAttributeNS(null, SVGConstants.SVG_X_ATTRIBUTE, String.valueOf(x));\n newText.setAttributeNS(null, SVGConstants.SVG_Y_ATTRIBUTE, String.valueOf(y));\n newText.setAttributeNS(null, SVGConstants.SVG_FONT_FAMILY_ATTRIBUTE, \"Eurostile\");\n newText.setAttributeNS(null, SVGConstants.SVG_FONT_SIZE_ATTRIBUTE, fontSize + \"px\");\n newText.setAttributeNS(null, SVGConstants.SVG_FONT_WEIGHT_ATTRIBUTE, weight);\n newText.setAttributeNS(null, SVGConstants.SVG_TEXT_ANCHOR_ATTRIBUTE, anchor);\n newText.setAttributeNS(null, SVGConstants.SVG_FILL_ATTRIBUTE, fill);\n parent.appendChild(newText);\n \n return getTextLength(text, fontSize);\n }",
"@Override\r\n\tpublic String getInnerText() {\n\t\treturn null;\r\n\t}",
"public void insertPreservingSelection(String newText, int offset) {\n getLock().getWriteLock();\n try {\n SelectionSetter noChange = new SelectionSetter(SelectionSetter.DO_NOT_CHANGE);\n PTextBuffer buffer = getTextBuffer();\n buffer.replace(noChange, offset, 0, newText, noChange);\n } finally {\n getLock().relinquishWriteLock();\n }\n }",
"public PersonBuilderName noID()\n {\n edma_value[0] = null;\n return this;\n }",
"Builder addText(Text value);",
"public void startDocument() throws SAXException {\n\tcurGroupId = \"\";\n\tcurGeneSet.clear();\n\tmHgEntryIdHandler.reset();\n\tsuper.startDocument();\n }",
"public PartyId() {\n super();\n setContent(\"\");\n }",
"public Builder clearTid() {\n \n tid_ = getDefaultInstance().getTid();\n onChanged();\n return this;\n }",
"public org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId addNewBold()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId target = null;\n target = (org.openxmlformats.schemas.presentationml.x2006.main.CTEmbeddedFontDataId)get_store().add_element_user(BOLD$4);\n return target;\n }\n }",
"@org.junit.Test\n public void constrCompelemAdjtext2() {\n final XQuery query = new XQuery(\n \"count((element elem {1, //text(), 'string'})/text())\",\n ctx);\n try {\n query.context(node(file(\"prod/CompAttrConstructor/DupNode.xml\")));\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n assertEq(\"1\")\n );\n }",
"public Builder clearSeq() {\n\n seq_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearSeq() {\n\n seq_ = 0;\n onChanged();\n return this;\n }"
] | [
"0.63598365",
"0.63598365",
"0.63598365",
"0.63598365",
"0.63598365",
"0.63598365",
"0.63598365",
"0.63598365",
"0.63598365",
"0.63598365",
"0.63598365",
"0.63598365",
"0.56596214",
"0.56596214",
"0.56596214",
"0.56596214",
"0.53468645",
"0.523054",
"0.5055148",
"0.49756294",
"0.49304235",
"0.49207217",
"0.49207217",
"0.49207217",
"0.49207217",
"0.49207217",
"0.49207217",
"0.49207217",
"0.49207217",
"0.49207217",
"0.49207217",
"0.49207217",
"0.49207217",
"0.49198857",
"0.4903291",
"0.48591116",
"0.48566607",
"0.48248684",
"0.4797095",
"0.47879788",
"0.4778848",
"0.4753329",
"0.47284183",
"0.46859416",
"0.46776894",
"0.46775746",
"0.46662477",
"0.46639368",
"0.46552205",
"0.4649117",
"0.46463943",
"0.46463943",
"0.46463943",
"0.46463943",
"0.46463943",
"0.46463943",
"0.46463943",
"0.46463943",
"0.46463943",
"0.46463943",
"0.46463943",
"0.46463943",
"0.45855293",
"0.45676267",
"0.45676267",
"0.45564193",
"0.45480165",
"0.453935",
"0.453935",
"0.453935",
"0.453935",
"0.45390952",
"0.45203397",
"0.45202354",
"0.4519398",
"0.44993228",
"0.4497787",
"0.44930378",
"0.44903904",
"0.4488942",
"0.4488942",
"0.44795433",
"0.4471997",
"0.44609192",
"0.44487655",
"0.44231167",
"0.4420156",
"0.44091752",
"0.4408289",
"0.44072187",
"0.43927276",
"0.43896428",
"0.43880355",
"0.43846327",
"0.43796906",
"0.43765083",
"0.43746817",
"0.43674627",
"0.436628",
"0.436628"
] | 0.63093305 | 12 |
Gets the "name" element | public java.lang.String getName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getNameElement();",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getName() {\n return element.getNodeName();\n }",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}",
"@Nullable\n public String getName() {\n return getElement().getName();\n }",
"public String getName() {return this.name.getText();}",
"public java.lang.String getName();",
"String getName() ;",
"public String getName(){\n\n //returns the value of the name field\n return this.name;\n }",
"public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}",
"public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}",
"public String getName() {\n\t\treturn (String) get_Value(\"Name\");\n\t}",
"public String getName() { return name.get(); }",
"public String getName() {\r\n \t\t\treturn name;\r\n \t\t}",
"public String getName() {\r\n \treturn name;\r\n }",
"public ElementName getElementName() {\n\t\treturn elementName;\n\t}",
"@XmlElement(required = true, name = \"name\")\n public String getName() {\n return name;\n }",
"@XmlElement(required = true)\n\tpublic String getName()\n\t{\n\t\treturn name;\n\t}",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}",
"public String getName() \n {\n \treturn name;\n }",
"public StringDt getNameElement() { \n\t\tif (myName == null) {\n\t\t\tmyName = new StringDt();\n\t\t}\n\t\treturn myName;\n\t}",
"public StringDt getNameElement() { \n\t\tif (myName == null) {\n\t\t\tmyName = new StringDt();\n\t\t}\n\t\treturn myName;\n\t}",
"public StringDt getNameElement() { \n\t\tif (myName == null) {\n\t\t\tmyName = new StringDt();\n\t\t}\n\t\treturn myName;\n\t}",
"public String getName() {\r\n\t\treturn name.get();\r\n\t}",
"String getName( );",
"public String getName() // name\r\n {\r\n return name;\r\n }",
"public String getName() {\n\t \t return name; \n\t}",
"public String getName() {\n \treturn name;\n }",
"public String getName() {\n \treturn name;\n }",
"public String getName()\r\n {\r\n\treturn name;\r\n }",
"private String getName() {\n\t\treturn name;\n\t}",
"public String getName()\n \t{\n \t\treturn name;\n \t}",
"public String getName()\n {\n \treturn name;\n }",
"public String getName ()\r\n {\r\n\treturn name;\r\n }",
"public String getName()\n\t{ return name; }",
"public String getName() {\n \t\treturn name;\n \t}",
"public String getName() {\n \t\treturn name;\n \t}",
"public String getName() {\n \t\treturn name;\n \t}",
"public String getName() {\n \t\treturn name;\n \t}",
"public String getName() {\r\n return name; \r\n }",
"public String getName (){\n\t\treturn name;\n\t}",
"public String getName()\n\t{\treturn name;\t}",
"public String getName(){\r\n\t\treturn name;\r\n\t}",
"public String getName(){\r\n\t\treturn name;\r\n\t}",
"public String getName(){\r\n\t\treturn name;\r\n\t}",
"public String getName(){\r\n\t\treturn name;\r\n\t}",
"public String getName() { return (String)get(\"Name\"); }"
] | [
"0.8612842",
"0.81303006",
"0.81303006",
"0.81303006",
"0.7891161",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.78843784",
"0.7859772",
"0.7791147",
"0.77553326",
"0.7733984",
"0.76423776",
"0.7609231",
"0.7590528",
"0.7590528",
"0.7590528",
"0.75832134",
"0.75652134",
"0.7556331",
"0.75202024",
"0.7516512",
"0.7513992",
"0.7505139",
"0.7498253",
"0.7490522",
"0.7490522",
"0.7490522",
"0.7484498",
"0.74841285",
"0.748079",
"0.74805856",
"0.74790406",
"0.74790406",
"0.74779254",
"0.74697083",
"0.7465204",
"0.74597746",
"0.74588317",
"0.7458684",
"0.7444071",
"0.7444071",
"0.7444071",
"0.7444071",
"0.74349433",
"0.7431283",
"0.7424168",
"0.74229074",
"0.74229074",
"0.74229074",
"0.74229074",
"0.74121547"
] | 0.0 | -1 |
Gets (as xml) the "name" element | public org.apache.xmlbeans.XmlString xgetName()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getNameElement();",
"public abstract String getXMLName();",
"public String getXmlName() {\n return toString().toLowerCase();\n }",
"public String getXmlName() {\n return toString().toLowerCase();\n }",
"@XmlElement(required = true, name = \"name\")\n public String getName() {\n return name;\n }",
"public String getName() {\n return element.getNodeName();\n }",
"org.apache.xmlbeans.XmlString xgetName();",
"org.apache.xmlbeans.XmlString xgetName();",
"@Override\n @XmlElement(name = \"name\", required = true)\n public synchronized InternationalString getName() {\n return name;\n }",
"@XmlElement(required = true)\n\tpublic String getName()\n\t{\n\t\treturn name;\n\t}",
"@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}",
"public java.lang.String getXMLName()\n {\n return xmlName;\n }",
"public java.lang.String getXMLName()\n {\n return xmlName;\n }",
"public java.lang.String getXMLName()\n {\n return xmlName;\n }",
"public String getXMLName() {\n return _xmlName;\n }",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"@XmlElement(name=\"Spielername\")\n\tpublic String getName() {\n\t\treturn name;\n\t}",
"public final String name() {\n return node.getNodeName();\n }",
"public QName getName()\n {\n return name;\n }",
"public java.lang.String getName(){\r\n return localName;\r\n }",
"public java.lang.String getName(){\r\n return localName;\r\n }",
"public java.lang.String getName(){\r\n return localName;\r\n }",
"public org.apache.xmlbeans.XmlString xgetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$2);\r\n return target;\r\n }\r\n }",
"@Nullable\n public String getName() {\n return getElement().getName();\n }",
"public String toString()\n {\n return elementName;\n }",
"public org.apache.xmlbeans.XmlString xgetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);\n return target;\n }\n }",
"public org.apache.xmlbeans.XmlString xgetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);\n return target;\n }\n }",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"java.lang.String getName();",
"@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}",
"public StringDt getNameElement() { \n\t\tif (myName == null) {\n\t\t\tmyName = new StringDt();\n\t\t}\n\t\treturn myName;\n\t}",
"public StringDt getNameElement() { \n\t\tif (myName == null) {\n\t\t\tmyName = new StringDt();\n\t\t}\n\t\treturn myName;\n\t}",
"public StringDt getNameElement() { \n\t\tif (myName == null) {\n\t\t\tmyName = new StringDt();\n\t\t}\n\t\treturn myName;\n\t}",
"public org.apache.xmlbeans.XmlString xgetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$6);\r\n return target;\r\n }\r\n }",
"public java.lang.String getName()\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(NAME$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public java.lang.String getName()\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(NAME$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public String getName() {\n\t \t return name; \n\t}",
"public org.apache.xmlbeans.XmlString xgetName()\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(NAME$4);\n return target;\n }\n }",
"public org.apache.xmlbeans.XmlString xgetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$8);\r\n return target;\r\n }\r\n }",
"public String getName() {return this.name.getText();}",
"String getName() ;",
"public String getName() {\r\n \treturn name;\r\n }",
"public AXValue getName() {\n return name;\n }",
"public ElementName getElementName() {\n\t\treturn elementName;\n\t}",
"public SC getElementName() { return _elementName; }",
"public String getName() // name\r\n {\r\n return name;\r\n }",
"public String getName() {\r\n \t\t\treturn name;\r\n \t\t}",
"org.apache.xmlbeans.XmlString xgetDisplayName();"
] | [
"0.79326594",
"0.76257885",
"0.7533295",
"0.7533295",
"0.7519393",
"0.746541",
"0.74585706",
"0.74585706",
"0.7410739",
"0.7400476",
"0.73413235",
"0.7339228",
"0.7339228",
"0.7339228",
"0.73018277",
"0.72859776",
"0.72859776",
"0.72859776",
"0.7221325",
"0.71752113",
"0.71074355",
"0.7035966",
"0.7035966",
"0.7035966",
"0.701412",
"0.69982684",
"0.69955873",
"0.6911689",
"0.6911689",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6909647",
"0.6908431",
"0.6893612",
"0.6893612",
"0.6893612",
"0.68407404",
"0.68310696",
"0.68310696",
"0.68242943",
"0.68125576",
"0.68083936",
"0.6808387",
"0.6804425",
"0.68016154",
"0.6798303",
"0.6797896",
"0.67904973",
"0.67845726",
"0.6783302",
"0.67814606"
] | 0.68826187 | 85 |
True if has "name" element | public boolean isSetName()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(NAME$0) != 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean hasName();",
"boolean isNameRequired();",
"public boolean hasElement(String name) {\n return elements.has(name);\n }",
"public boolean hasName() {\n return result.hasName();\n }",
"boolean hasDataName();",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasName() {\n return this.hasName;\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$8) != 0;\n }\n }",
"public boolean hasName() {\n return fieldSetFlags()[1];\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasName() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$0) != 0;\n }\n }",
"public boolean isSetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$0) != 0;\n }\n }",
"public boolean hasChild(String name) {\n return peekObject().getFieldNames().contains(name);\n }",
"public boolean hasAttribute(String name) {\n // if attribute() returns a value, then this jode has that attribute\n return attribute(name, true) != null;\n }",
"abstract boolean hasXMLProperty(XMLName name);",
"public boolean isNameSet( ) {\n \t\t\treturn id == null;\n \t\t}",
"public boolean isSet(String name) {\n\t\treturn paramElem.getElementsByTagName(name).getLength() > 0;\n\t}",
"public boolean hasName() {\n return typeDeclaration.hasName();\n }",
"public boolean hasName() {\n return fieldSetFlags()[0];\n }",
"public boolean checkName(String name)\n {\n return true;\n }",
"public boolean isSetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(NAME$2) != null;\r\n }\r\n }",
"protected boolean hasAttribute(String name) {\n\tfor (int i = 0; i < this.attributeFields.size(); i++) {\n\t AttributeField af = \n\t\t(AttributeField) this.attributeFields.elementAt(i);\n\t if (af.getAttribute().getName().equals(name))\n\t\treturn true;\n\t}\n\treturn false;\n }",
"public boolean isSetName() {\r\n return this.name != null;\r\n }",
"public boolean isSetName() {\n return this.name != null;\n }",
"public boolean isSetName() {\n return this.name != null;\n }",
"public boolean isSetName() {\n return this.name != null;\n }",
"public boolean isSetName() {\n return this.name != null;\n }",
"public boolean checkName(String name)\n\t{\n\t\treturn (robotHM.containsKey(name));\n\t}",
"public boolean isSetFromName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FROMNAME$4) != 0;\n }\n }",
"boolean isSetName();",
"public boolean isSetName() {\n return this.Name != null;\n }",
"public boolean isNamed(String n) {\n return name.equals(n);\n }",
"public boolean isSetNames() {\n return this.names != null;\n }",
"public boolean isSetName() {\n return this.name != null;\n }",
"public boolean isSetName() {\n\t\treturn this.name != null;\n\t}",
"public boolean containAttribute(String name);",
"public final boolean isSimpleName() {\n return (_names.length == 1);\n }",
"public boolean hasAttribute(String name)\n/* */ {\n/* 1234 */ return findAttribute(name) != null;\n/* */ }",
"public void _hasPropertyByName() {\n requiredMethod(\"getProperties()\");\n tRes.tested(\"hasPropertyByName()\",\n (\n (oObj.hasPropertyByName(IsThere.Name)) &&\n (!oObj.hasPropertyByName(\"Jupp\")) )\n );\n }",
"@Override\n\tpublic boolean isExist(String name) {\n\t\treturn false;\n\t}",
"public boolean isGeoFenceNameHeadingNamePresent() {\r\n\t\treturn isElementPresent(addVehiclesHeader.replace(\"Add Vehicle\", \"Geo Fence Name\"), SHORTWAIT);\r\n\t}",
"boolean hasAttribute(String name);",
"boolean hasVName();",
"private boolean name() {\r\n return (\r\n (letter() && alphas()) ||\r\n (CHAR('`') && nobquotes() && MARK(QUOTE) && CHAR('`'))\r\n );\r\n }",
"public boolean contains(String name) {\n return !isDocumentFile() && hasChild(name);\n }",
"private boolean isNameValid(String name) {\n\n }"
] | [
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.81688017",
"0.76392275",
"0.75511575",
"0.75458443",
"0.7487849",
"0.74246496",
"0.74243295",
"0.74243295",
"0.74243295",
"0.74243295",
"0.74243295",
"0.74243295",
"0.7411969",
"0.7411969",
"0.7411969",
"0.7411115",
"0.74104035",
"0.74104035",
"0.73927724",
"0.7378858",
"0.7378858",
"0.7378858",
"0.7378858",
"0.7378858",
"0.7378858",
"0.737217",
"0.737217",
"0.737217",
"0.737217",
"0.73718244",
"0.73663086",
"0.7352423",
"0.7352423",
"0.73512125",
"0.73512125",
"0.7350977",
"0.733986",
"0.73214275",
"0.7321286",
"0.7321286",
"0.7321286",
"0.7321286",
"0.73018456",
"0.73018456",
"0.72439593",
"0.71628106",
"0.7096741",
"0.7089184",
"0.7084092",
"0.70803916",
"0.7063071",
"0.7002749",
"0.69728345",
"0.6953119",
"0.69096005",
"0.6897198",
"0.6897198",
"0.6897198",
"0.6897198",
"0.68954617",
"0.6892806",
"0.6866291",
"0.6866217",
"0.68396944",
"0.6830035",
"0.6817393",
"0.67966866",
"0.67853737",
"0.67767215",
"0.67659587",
"0.67452717",
"0.67334145",
"0.67037004",
"0.6696574",
"0.6684589",
"0.66820127",
"0.66677016",
"0.66286176"
] | 0.7269299 | 66 |
Sets the "name" element | public void setName(java.lang.String name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);
}
target.setStringValue(name);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String name) {\n this.name = name;\n this.box.getElement().setAttribute(\"name\", name);\n }",
"public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name)\r\n\t{\t\t\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}",
"public void setName(String value) {\n this.name = value;\n }",
"public void setName(String name)\r\n {\r\n\tthis.name = name;\r\n }",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"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) {\n\t this.name = name;\n\t }",
"public void setName(String name) {\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)\n {\n\tthis.name = name;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName(String name) \n {\n this.name = name;\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName( String name ) {\n this.name = name;\n }",
"public void setName (String name) {\r\n\t\tthis.name = name;\r\n\t}",
"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 this.name = name;\r\n }",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String inName)\n {\n name = inName;\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 }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}",
"public void setName(String inName)\n {\n\tname = inName;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName(String name) {\n \t\tthis.name = name;\n \t}",
"@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) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n\t\tthis.name = name;\r\n\t}"
] | [
"0.8414775",
"0.8335173",
"0.81755906",
"0.81755906",
"0.81547827",
"0.81547827",
"0.81547827",
"0.81523526",
"0.81523526",
"0.81523526",
"0.81523526",
"0.81512684",
"0.8146816",
"0.8146553",
"0.8143292",
"0.81335557",
"0.8133047",
"0.8123642",
"0.81227845",
"0.81227845",
"0.8121926",
"0.81170315",
"0.8116437",
"0.8116437",
"0.8116437",
"0.8114256",
"0.8113993",
"0.81127554",
"0.81122977",
"0.81122977",
"0.81122977",
"0.81114864",
"0.8105649",
"0.8105649",
"0.8105649",
"0.8105649",
"0.81040996",
"0.81034535",
"0.81033355",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80962986",
"0.80932266",
"0.80932266",
"0.80932266",
"0.80911565",
"0.8088329",
"0.8088329",
"0.8088329",
"0.80879056",
"0.808446",
"0.80818594",
"0.8076277",
"0.80733246",
"0.80733246",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685",
"0.8072685"
] | 0.0 | -1 |
Sets (as xml) the "name" element | public void xsetName(org.apache.xmlbeans.XmlString name)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);
}
target.set(name);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"public void setName(QName name)\n {\n this.name = name;\n }",
"public void setName(java.lang.String name)\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(NAME$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);\n }\n target.setStringValue(name);\n }\n }",
"public void setName(java.lang.String name)\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(NAME$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);\n }\n target.setStringValue(name);\n }\n }",
"public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(NAME$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(NAME$0);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"public void setName(String name) {\n this.name = name;\n this.box.getElement().setAttribute(\"name\", name);\n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String value) {\n this.name = value;\n }",
"public void setName(AXValue name) {\n this.name = name;\n }",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"public void setName(java.lang.String param){\r\n localNameTracker = true;\r\n \r\n this.localName=param;\r\n \r\n\r\n }",
"public void setName(java.lang.String param){\r\n localNameTracker = true;\r\n \r\n this.localName=param;\r\n \r\n\r\n }",
"public void setName(java.lang.String param){\r\n localNameTracker = true;\r\n \r\n this.localName=param;\r\n \r\n\r\n }",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"public void setName(String name) {\n this.name = name;\n }",
"void xsetName(org.apache.xmlbeans.XmlString name);",
"void xsetName(org.apache.xmlbeans.XmlString name);",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void xsetName(org.apache.xmlbeans.XmlString name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$2);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$2);\r\n }\r\n target.set(name);\r\n }\r\n }",
"public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$2);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$2);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}",
"public void xsetName(org.apache.xmlbeans.XmlString name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);\n }\n target.set(name);\n }\n }",
"public void xsetName(org.apache.xmlbeans.XmlString name)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(NAME$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(NAME$0);\n }\n target.set(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\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(java.lang.String name)\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(NAME$4);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$4);\n }\n target.setStringValue(name);\n }\n }",
"public void setName(String name) \n {\n this.name = name;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\tthis.name = name;\n\n\t}",
"public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$8);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$8);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"public void setName(String name) {\n\t this.name = name;\n\t }",
"public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$6);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$6);\r\n }\r\n target.setStringValue(name);\r\n }\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 {\r\n\tthis.name = name;\r\n }",
"public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}",
"public void setName(java.lang.String name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(NAME$26);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(NAME$26);\r\n }\r\n target.setStringValue(name);\r\n }\r\n }",
"public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}",
"public void setName(String name)\r\n\t{\t\t\r\n\t\tthis.name = name;\r\n\t}",
"@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 void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name) {\r\n this.name = name;\r\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) {\r\n\t\tthis.name=name;\r\n\t}",
"public void setName(String name)\n {\n\tthis.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 ) {\n this.name = name;\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"public void setName (String name) {\n this.name = name;\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"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) {\n \t\tthis.name = name;\n \t}",
"public void setName(String val) {\n this.name = val;\n }",
"public void xsetName(org.apache.xmlbeans.XmlString name)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(NAME$6);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$6);\r\n }\r\n target.set(name);\r\n }\r\n }",
"public void xsetName(org.apache.xmlbeans.XmlString name)\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(NAME$4);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(NAME$4);\n }\n target.set(name);\n }\n }",
"void setName(java.lang.String name);"
] | [
"0.81350136",
"0.7991412",
"0.7686241",
"0.7686241",
"0.7665467",
"0.7661672",
"0.76132125",
"0.76132125",
"0.76132125",
"0.76132125",
"0.7590936",
"0.75706536",
"0.7545307",
"0.75388503",
"0.75388503",
"0.75388503",
"0.7525892",
"0.7525892",
"0.7525892",
"0.7522843",
"0.7515721",
"0.75149405",
"0.75149405",
"0.7514717",
"0.7514717",
"0.75140476",
"0.7512924",
"0.75089246",
"0.75086695",
"0.7506358",
"0.7506358",
"0.7498531",
"0.7498531",
"0.7498531",
"0.74953836",
"0.74953836",
"0.74953836",
"0.7495059",
"0.748628",
"0.74772096",
"0.747402",
"0.7469662",
"0.74605805",
"0.74597013",
"0.74597013",
"0.74597013",
"0.74568224",
"0.7456754",
"0.7455142",
"0.74510545",
"0.745065",
"0.74497277",
"0.74497277",
"0.7449356",
"0.7449356",
"0.7449356",
"0.7449356",
"0.7449356",
"0.7449356",
"0.7449356",
"0.7446884",
"0.7445809",
"0.7445809",
"0.74438936",
"0.7438941",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.7436333",
"0.74354845",
"0.7435182",
"0.7435182",
"0.7435182",
"0.7435182",
"0.7435124",
"0.7435124",
"0.7435124",
"0.742861",
"0.742805",
"0.742805",
"0.7424695",
"0.7424332",
"0.7422047",
"0.7418721",
"0.7415851"
] | 0.74868053 | 38 |
Unsets the "name" element | public void unsetName()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(NAME$0, 0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void unsetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NAME$8, 0);\n }\n }",
"public void unsetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NAME$0, 0);\n }\n }",
"public void unsetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NAME$0, 0);\n }\n }",
"void unsetName();",
"public void unsetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(NAME$2);\r\n }\r\n }",
"private void clearName() {\n \n name_ = getDefaultInstance().getName();\n }",
"private void clearName() {\n \n name_ = getDefaultInstance().getName();\n }",
"private void clearName() {\n \n name_ = getDefaultInstance().getName();\n }",
"private void clearName() {\n \n name_ = getDefaultInstance().getName();\n }",
"public void unsetFromName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FROMNAME$4, 0);\n }\n }",
"public void unsetUniqueName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(UNIQUENAME$10, 0);\r\n }\r\n }",
"public Builder clearName() {\n name_ = getDefaultInstance().getName();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }",
"public Builder clearName() {\n name_ = getDefaultInstance().getName();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }",
"public Builder clearName() {\n name_ = getDefaultInstance().getName();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }",
"public Builder clearName() {\n name_ = getDefaultInstance().getName();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n name_ = getDefaultInstance().getName();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }",
"public Builder clearName() {\n name_ = getDefaultInstance().getName();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }",
"public void clearNName() {\n\t\tn.clearName();\n\t\tif (next != null)\n\t\t\tnext.clearNName();\n\t}",
"public void unsetAutoForwardToName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(AUTOFORWARDTONAME$12, 0);\n }\n }",
"@Request(id = 3, retryable = false, response = ResponseMessageConst.VOID)\n void clear(String name);",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000004);\n name_ = getDefaultInstance().getName();\n \n return this;\n }",
"private void clearNewName() {\n \n newName_ = getDefaultInstance().getNewName();\n }",
"public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public void setName(java.lang.String name)\n {\n name_.setLength(0);\n name_.append(name);\n }",
"public void unsetUrlName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(URLNAME$12, 0);\r\n }\r\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000002);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public void unsetFriendlyName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FRIENDLYNAME$2, 0);\r\n }\r\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000004);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000004);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000004);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000004);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n\n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public void remElementName(){\n ((MenuDMO) core).remElementName();\n }",
"@Override\n\t\tpublic Object removeAttribute(String name) {\n\t\t\treturn null;\n\t\t}",
"@Override\n\t\tpublic void removeAttribute(String name) {\n\t\t\t\n\t\t}",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public Builder clearName() {\n \n name_ = getDefaultInstance().getName();\n onChanged();\n return this;\n }",
"public void remove(String name)\n/* */ {\n/* 1177 */ for (int i = 0; i < this.attributes.size(); i++) {\n/* 1178 */ XMLAttribute attr = (XMLAttribute)this.attributes.elementAt(i);\n/* 1179 */ if (attr.getName().equals(name)) {\n/* 1180 */ this.attributes.removeElementAt(i);\n/* 1181 */ return;\n/* */ }\n/* */ }\n/* */ }",
"public org.ga4gh.models.CallSet.Builder clearName() {\n name = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"public void clearNames() {\n eventTitles = null;\n guestTitles = null;\n }",
"public void reset() {\n\t\tvar.clear();\n\t\tname.clear();\n\t}",
"public Builder clearName() {\n copyOnWrite();\n instance.clearName();\n return this;\n }",
"public Builder clearName() {\n copyOnWrite();\n instance.clearName();\n return this;\n }",
"public Builder clearName() {\n copyOnWrite();\n instance.clearName();\n return this;\n }",
"@Override\n\tpublic void removeAttribute(String name) {\n\t\t\n\t}",
"public void unsetEnumSkillName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ENUMSKILLNAME$8);\n }\n }",
"public void removeProperty(String name) {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session != null) {\n session.removeAttribute(name);\n \n // Also remove it from the input parameter list.\n Map inputParameters = (Map) session.getAttribute(\"_inputs\");\n if (inputParameters != null) {\n inputParameters.remove(name);\n }\n }\n }",
"public Builder clearName() {\n copyOnWrite();\n instance.clearName();\n return this;\n }",
"public void unsetEnodebNameValue() throws JNCException {\n delete(\"enodeb-name\");\n }",
"public BladeController removeAttr(String name) {\n\t\trequest.removeAttribute(name);\n\t\treturn this;\n\t}",
"public void unsetTag(String tagName);",
"public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder clearName() {\n name = null;\n fieldSetFlags()[0] = false;\n return this;\n }",
"void unsetDisplayName();",
"public static void removeAttribute(String name) {\n\t\tGPortalExecutionContext.getRequest().getSessionContext().removeAttribute(name);\n\t}",
"public static void clearName() {\n\t\tfor (int i = 0; i < count; i++)\n\t\t\t ((IdentifierResolver) bIdents.get(i)).clearNName();\n\t}",
"public Builder clearVName() {\n if (vNameBuilder_ == null) {\n vName_ = null;\n onChanged();\n } else {\n vName_ = null;\n vNameBuilder_ = null;\n }\n\n return this;\n }",
"public void setName(String name) {\n if (!name.equals(\"\")) {\r\n this.name = name;\r\n }\r\n\r\n\r\n\r\n\r\n }",
"public void unsetNamedAnnotTrack()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(NAMEDANNOTTRACK$38, 0);\r\n }\r\n }",
"public void reset() {\n tid.setEnabled(true);\n tid.setText(\"\");\n tname.setText(\"\");\n }",
"public void unsetShortName() {\n\t\tgetAbsoluteName = true;\n\t}",
"public void removeAttribute(String name) {\n\tif (name == null)\n\t throw new NullPointerException(\"null arg!\");\n\tif (name != null) {\n\t int i = 0;\n\t for (i = 0; i < this.attributeFields.size(); i++) {\n\t\tAttributeField af = (AttributeField) \n\t\t this.attributeFields.elementAt(i);\n\t\tif (af.getAttribute().getName().equals(name)) break;\n\t }\n\t if (i < attributeFields.size())\n\t\tattributeFields.removeElementAt(i);\n\t}\n }",
"public void removeName(Name arg0) {\n\n\t}",
"public void clear() {\r\n\t\tnameInGraph.clear();\r\n\t\tnameColor.clear();\r\n\t}",
"public void reset() {\r\n dogNameField.clear();\r\n dogText.clear();\r\n }",
"public void remove(final String name) {\r\n\t\tremove(names.indexOf(name));\r\n\t}",
"public void remove(String name);",
"public void unsetFileName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FILENAME$0, 0);\n }\n }",
"public void setName(String name) {\n\t\tthis.name = name == null ? null : name.trim();\n\t}"
] | [
"0.82012385",
"0.8118484",
"0.8118484",
"0.80990887",
"0.79177004",
"0.78141963",
"0.77397394",
"0.77397394",
"0.77397394",
"0.76534194",
"0.72676903",
"0.7053179",
"0.7041028",
"0.7041028",
"0.7041028",
"0.7013931",
"0.7013931",
"0.70125276",
"0.70125276",
"0.6998639",
"0.69546676",
"0.69472116",
"0.69453627",
"0.6943323",
"0.6937934",
"0.69295895",
"0.69273853",
"0.691031",
"0.6897229",
"0.6897229",
"0.6897229",
"0.6897229",
"0.6896268",
"0.6895271",
"0.6886391",
"0.6886391",
"0.688529",
"0.688529",
"0.6882023",
"0.6882023",
"0.6882023",
"0.6882023",
"0.6882023",
"0.6881239",
"0.6872435",
"0.6872435",
"0.6872435",
"0.6872435",
"0.6872435",
"0.6872435",
"0.6872435",
"0.6872435",
"0.6872435",
"0.6872435",
"0.6872435",
"0.6860807",
"0.68263376",
"0.6785197",
"0.6784634",
"0.6784634",
"0.6784634",
"0.6784634",
"0.6784634",
"0.6784634",
"0.6784634",
"0.6784634",
"0.6784634",
"0.6784634",
"0.6784634",
"0.6771535",
"0.6705824",
"0.667845",
"0.66593266",
"0.6637654",
"0.6637654",
"0.6637654",
"0.6636309",
"0.66280335",
"0.6621604",
"0.66100395",
"0.6607191",
"0.65323913",
"0.65323675",
"0.650683",
"0.64849204",
"0.6475858",
"0.6452265",
"0.63713896",
"0.63405055",
"0.63308394",
"0.63180465",
"0.6312589",
"0.6296319",
"0.62796795",
"0.62693614",
"0.6234997",
"0.62247336",
"0.62042165",
"0.62013185",
"0.6164264"
] | 0.8115277 | 3 |
Gets the "accession" element | public java.lang.String getAccession()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAccession() {\n return accession;\n }",
"public String getAccess();",
"String getAccess();",
"String getAccess();",
"public void setAccession(String accession) {\n this.accession = accession;\n }",
"public void setAccession(String accession) {\n this.accession = accession;\n }",
"public String getAccessionNumber()\n {\n return accessionNumber;\n }",
"public String getAccessionNumber() {\n return aao.getAccessionNumber();\n }",
"public String getAccess()\n\t\t{\n\t\t\treturn m_access;\n\t\t}",
"public org.apache.xmlbeans.XmlString xgetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSION$2, 0);\r\n return target;\r\n }\r\n }",
"public Expression getAccessExpression()\r\n {\r\n\treturn m_accessExpression;\r\n }",
"public int getAccess() {\n\t\treturn access;\n\t}",
"public IdentifierDt getAccessionNoElement() { \n\t\tif (myAccessionNo == null) {\n\t\t\tmyAccessionNo = new IdentifierDt();\n\t\t}\n\t\treturn myAccessionNo;\n\t}",
"public String getReferenceAccession() {\n return referenceProteinAccession;\n }",
"public String getAccessNum() {\r\n return accessNum;\r\n }",
"public abstract List<String> getAdditionalAccessions();",
"public AsgElements getAsgAccess() {\n\t\treturn (pAsg != null) ? pAsg : (pAsg = new AsgElements());\n\t}",
"public Long getAccessId() {\n\t\treturn this.accessId;\n\t}",
"public AccessibilityLevelElements getAccessibilityLevelAccess() {\n\t\treturn eAccessibilityLevel;\n\t}",
"public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }",
"public ModbusAccess getAccess() {\r\n\t\treturn access;\r\n\t}",
"public BasicAttributesGrammarAccess.AttributeDefinitionElements getAttributeDefinitionAccess() {\n\t\treturn gaBasicAttributes.getAttributeDefinitionAccess();\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.AccidentDetailPEL getAccidentDetail();",
"public abstract String getCvAccession();",
"public final void attributeAccess() throws RecognitionException {\r\n Token a=null;\r\n\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:2: ( ATTRIBUTTE_ACCESS (a= IDENT ) )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:4: ATTRIBUTTE_ACCESS (a= IDENT )\r\n {\r\n match(input,ATTRIBUTTE_ACCESS,FOLLOW_ATTRIBUTTE_ACCESS_in_attributeAccess1361); \r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:23: (a= IDENT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:24: a= IDENT\r\n {\r\n a=(Token)match(input,IDENT,FOLLOW_IDENT_in_attributeAccess1367); \r\n attributeAccess(a);\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"@Column(name = \"PERMISSION_ACCESS\")\n\tpublic String getPermissionAccess()\n\t{\n\t\treturn permissionAccess;\n\t}",
"public String getAnfitrion() {\r\n\t\treturn anfitrion;\r\n\t}",
"public AccessLevel getAccessLevel(){\n return this.accessLevel;\n }",
"public java.lang.String getContactAccess() {\r\n return contactAccess;\r\n }",
"public AttributeFactElements getAttributeFactAccess() {\n\t\treturn pAttributeFact;\n\t}",
"public BasicAttributesGrammarAccess.EIntElements getEIntAccess() {\n\t\treturn gaBasicAttributes.getEIntAccess();\n\t}",
"public BasicAttributesGrammarAccess.CardinalityElements getCardinalityAccess() {\n\t\treturn gaBasicAttributes.getCardinalityAccess();\n\t}",
"public int getAccessType() {\n return accessType;\n }",
"public RoleElements getRoleAccess() {\n\t\treturn pRole;\n\t}",
"public Long getAc() {\n return ac;\n }",
"public List<ChunkData> getAccess() {\n return access;\n }",
"public String getattribut() \n\t{\n\t\treturn attribut;\n\t}",
"public IdentifierDt getAccessionNo() { \n\t\tif (myAccessionNo == null) {\n\t\t\tmyAccessionNo = new IdentifierDt();\n\t\t}\n\t\treturn myAccessionNo;\n\t}",
"public DefinitionElements getDefinitionAccess() {\r\n\t\treturn pDefinition;\r\n\t}",
"public AccessType getAccessType() {\n\treturn this.accessType;\n }",
"public String getappAccess() {\n\t\treturn _appAccess;\n\t}",
"public BasicAttributesGrammarAccess.FQNElements getFQNAccess() {\n\t\treturn gaBasicAttributes.getFQNAccess();\n\t}",
"public String accessKey() {\n return this.accessKey;\n }",
"public AccessType getAccessType() {\n return accessType;\n }",
"public AccessType getAccessType() {\n return accessType;\n }",
"public FeatureElements getFeatureAccess() {\n\t\treturn pFeature;\n\t}",
"public ProyectoElements getProyectoAccess() {\n\t\treturn pProyecto;\n\t}",
"public String getAccessionStatus() {\n\t\tString t = doc.get(\"collaccessionstatus\");\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 AccessRequests accessRequests() {\n return this.accessRequests;\n }",
"public QualifiedNameElements getQualifiedNameAccess() {\n\t\treturn pQualifiedName;\n\t}",
"public QualifiedNameElements getQualifiedNameAccess() {\n\t\treturn pQualifiedName;\n\t}",
"public POPAccessPoint getAccessPoint() {\n\t\treturn popAccessPoint;\n\t}",
"public int getAccessid() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Integer) __getCache(\"accessid\")).intValue());\n }",
"public GeoTabElements getGeoTabAccess() {\n\t\treturn pGeoTab;\n\t}",
"public AssetElements getAssetAccess() {\n\t\treturn pAsset;\n\t}",
"public String getMainScoreAccession() {\n return mainScoreAccession;\n }",
"Set<String> getProteinAccessions(String experimentAccession);",
"public void setAccession(java.lang.String accession)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCESSION$2);\r\n }\r\n target.setStringValue(accession);\r\n }\r\n }",
"public java.lang.String getContactAccessId() {\r\n return contactAccessId;\r\n }",
"public void getAccessionNumber(int seqid, String tag, String gid);",
"public java.lang.String getReturnedACI() {\n return returnedACI;\n }",
"JApiModifier<AccessModifier> getAccessModifier();",
"public IIID getAccessIID()\n throws ORIOException;",
"public XmuCoreAlignElements getXmuCoreAlignAccess() {\r\n\t\treturn pXmuCoreAlign;\r\n\t}",
"public int getAccessLevel() {\n return 0;\r\n }",
"public void setAccessionNumber(String accessionNumber)\n {\n this.accessionNumber = accessionNumber;\n }",
"public BasicAttributesGrammarAccess.EnumerationElementElements getEnumerationElementAccess() {\n\t\treturn gaBasicAttributes.getEnumerationElementAccess();\n\t}",
"String getAttribute();",
"public int getAccessFlags() {\n return access_flags;\n }",
"Attribute getAttribute();",
"String getPermission();",
"public final String getAccessKeyAttribute() {\n return getAttributeValue(\"accesskey\");\n }",
"public String getApodo(){\n\t\treturn apodo;\n\t}",
"public PrimaryElements getPrimaryAccess() {\n\t\treturn pPrimary;\n\t}",
"public NCNameElements getNCNameAccess() {\n\t\treturn pNCName;\n\t}",
"public ScopeElements getScopeAccess() {\n\t\treturn eScope;\n\t}",
"public boolean isSetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ACCESSION$2) != 0;\r\n }\r\n }",
"public String getSelectedProteinAccession() {\n return selectedProteinAccession;\n }",
"public String getPermission()\r\n {\r\n return permission;\r\n }",
"public AccessControlList getAcl()\n {\n return acl;\n }",
"public InstructionElements getInstructionAccess() {\r\n\t\treturn pInstruction;\r\n\t}",
"public List<LicenseAttribution> getAttribution() {\r\n return attribution;\r\n }",
"public String getAccess_token() {\r\n\t\treturn access_token;\r\n\t}",
"public Vector<PathElement> generateAccessPath()\n\t{\n\t if ( null == this.parent )\n {\n return new Vector<PathElement>();\n }\n else if ( this.isNary() )\n {\n checkPrecondition(this.parent != null, \"N-ary node with no parent\");\n return this.parent.generateAccessPath();\n }\n else\n {\n Vector<PathElement> path = parent.generateAccessPath();\n PathElement own_element = new PathElement(this.operator, this.paramState, this.positionInParent);\n path.add(own_element);\n return path;\n }\n\t}",
"public ID0Elements getID0Access() {\n\t\treturn pID0;\n\t}",
"public ID0Elements getID0Access() {\n\t\treturn pID0;\n\t}",
"public Permission getPermission() {\n return permission;\n }",
"public String getInheritedAccess()\n\t\t{\n\t\t\treturn m_inheritedAccess;\n\t\t}",
"public BasicAttributesGrammarAccess.EBooleanElements getEBooleanAccess() {\n\t\treturn gaBasicAttributes.getEBooleanAccess();\n\t}",
"public XbaseGrammarAccess.OpAddElements getOpAddAccess() {\n\t\treturn gaXbase.getOpAddAccess();\n\t}",
"public XbaseGrammarAccess.OpAddElements getOpAddAccess() {\n\t\treturn gaXbase.getOpAddAccess();\n\t}",
"public EventElements getEventAccess() {\r\n\t\treturn pEvent;\r\n\t}",
"public int getAtk() {\n return atk;\n }",
"public int getLinkedacc() {\n\t\treturn linkedacc;\n\t}",
"public ReferenceFactElements getReferenceFactAccess() {\n\t\treturn pReferenceFact;\n\t}",
"public Access findAccessByPath(String accessId) {\n\t\tQuery q = getEm().createNamedQuery(\"Access.findAccessById\").setParameter(\"accessId\", accessId);\n\t\tif (q.getResultList().size() < 1) {\n\t\t\treturn null;\n\t\t}\n\t\treturn (Access) q.getSingleResult();\n\t}",
"public XbaseGrammarAccess.OpAddElements getOpAddAccess() {\r\n\t\treturn gaXbase.getOpAddAccess();\r\n\t}",
"public CaltreesBuildActionElements getCaltreesBuildActionAccess() {\n\t\treturn pCaltreesBuildAction;\n\t}",
"public String getAccessibleName() {\n try {\n return unoAccessibleContext.getAccessibleName();\n } catch (com.sun.star.uno.RuntimeException e) {\n return null;\n }\n }",
"public ImportSectionElements getImportSectionAccess() {\r\n\t\treturn pImportSection;\r\n\t}"
] | [
"0.79657954",
"0.71707684",
"0.7164242",
"0.7164242",
"0.6901745",
"0.6901745",
"0.6885491",
"0.68393654",
"0.6731219",
"0.66880643",
"0.6623885",
"0.6496442",
"0.635162",
"0.6327125",
"0.62839043",
"0.6234228",
"0.62322545",
"0.62019646",
"0.6138872",
"0.6054219",
"0.59009826",
"0.5890698",
"0.5880461",
"0.57381105",
"0.57249355",
"0.57221156",
"0.57096505",
"0.5653985",
"0.56458235",
"0.5642538",
"0.5639223",
"0.5633984",
"0.5628138",
"0.5618111",
"0.5611134",
"0.560436",
"0.5582771",
"0.557818",
"0.5571982",
"0.55705017",
"0.55544937",
"0.5546758",
"0.5544109",
"0.55434334",
"0.55434334",
"0.55427957",
"0.5532645",
"0.55135256",
"0.5510297",
"0.5504576",
"0.5504576",
"0.5502637",
"0.54805076",
"0.54395455",
"0.5439257",
"0.5430607",
"0.5425399",
"0.5419168",
"0.54131764",
"0.5412623",
"0.5391402",
"0.53714246",
"0.5365054",
"0.53613394",
"0.5358944",
"0.535563",
"0.5348101",
"0.5342208",
"0.53349733",
"0.5327596",
"0.5310034",
"0.5309085",
"0.53001356",
"0.5286748",
"0.52866787",
"0.52778506",
"0.52769005",
"0.5275777",
"0.52703667",
"0.52678216",
"0.52636975",
"0.52393556",
"0.5219758",
"0.5198219",
"0.5195423",
"0.5195423",
"0.5191613",
"0.5191598",
"0.51905423",
"0.51873726",
"0.51873726",
"0.5184027",
"0.5180839",
"0.5180133",
"0.51787287",
"0.5175908",
"0.5166955",
"0.5164256",
"0.5162831",
"0.51614344"
] | 0.73754054 | 1 |
Gets (as xml) the "accession" element | public org.apache.xmlbeans.XmlString xgetAccession()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSION$2, 0);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAccession() {\n return accession;\n }",
"public java.lang.String getAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"String getAccess();",
"String getAccess();",
"public String getAccess();",
"public void setAccession(String accession) {\n this.accession = accession;\n }",
"public void setAccession(String accession) {\n this.accession = accession;\n }",
"public String getAccessionNumber()\n {\n return accessionNumber;\n }",
"public String getAccess()\n\t\t{\n\t\t\treturn m_access;\n\t\t}",
"public Expression getAccessExpression()\r\n {\r\n\treturn m_accessExpression;\r\n }",
"public String getAccessionNumber() {\n return aao.getAccessionNumber();\n }",
"public abstract List<String> getAdditionalAccessions();",
"public AsgElements getAsgAccess() {\n\t\treturn (pAsg != null) ? pAsg : (pAsg = new AsgElements());\n\t}",
"public int getAccess() {\n\t\treturn access;\n\t}",
"public IdentifierDt getAccessionNoElement() { \n\t\tif (myAccessionNo == null) {\n\t\t\tmyAccessionNo = new IdentifierDt();\n\t\t}\n\t\treturn myAccessionNo;\n\t}",
"public void setAccession(java.lang.String accession)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCESSION$2);\r\n }\r\n target.setStringValue(accession);\r\n }\r\n }",
"public String getAccessNum() {\r\n return accessNum;\r\n }",
"public String getReferenceAccession() {\n return referenceProteinAccession;\n }",
"public BasicAttributesGrammarAccess.AttributeDefinitionElements getAttributeDefinitionAccess() {\n\t\treturn gaBasicAttributes.getAttributeDefinitionAccess();\n\t}",
"public AccessibilityLevelElements getAccessibilityLevelAccess() {\n\t\treturn eAccessibilityLevel;\n\t}",
"public Long getAccessId() {\n\t\treturn this.accessId;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.AccidentDetailPEL getAccidentDetail();",
"public final void attributeAccess() throws RecognitionException {\r\n Token a=null;\r\n\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:2: ( ATTRIBUTTE_ACCESS (a= IDENT ) )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:4: ATTRIBUTTE_ACCESS (a= IDENT )\r\n {\r\n match(input,ATTRIBUTTE_ACCESS,FOLLOW_ATTRIBUTTE_ACCESS_in_attributeAccess1361); \r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:23: (a= IDENT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:24: a= IDENT\r\n {\r\n a=(Token)match(input,IDENT,FOLLOW_IDENT_in_attributeAccess1367); \r\n attributeAccess(a);\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public String getattribut() \n\t{\n\t\treturn attribut;\n\t}",
"public void xsetAccession(org.apache.xmlbeans.XmlString accession)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACCESSION$2);\r\n }\r\n target.set(accession);\r\n }\r\n }",
"public AccessRequests accessRequests() {\n return this.accessRequests;\n }",
"public QualifiedNameElements getQualifiedNameAccess() {\n\t\treturn pQualifiedName;\n\t}",
"public QualifiedNameElements getQualifiedNameAccess() {\n\t\treturn pQualifiedName;\n\t}",
"@Column(name = \"PERMISSION_ACCESS\")\n\tpublic String getPermissionAccess()\n\t{\n\t\treturn permissionAccess;\n\t}",
"public String getAnfitrion() {\r\n\t\treturn anfitrion;\r\n\t}",
"public DefinitionElements getDefinitionAccess() {\r\n\t\treturn pDefinition;\r\n\t}",
"public String generarAnclajeAtributosXML(){\r\n\r\n\t\tDocument doc = new Document();\r\n\t\tElement datosClearQuest = new Element(\"datosClearQuest\");\r\n\t\tdoc.setRootElement(datosClearQuest);\r\n\t\t\r\n\t\tgenerarConexion(datosClearQuest);\r\n\t\tgenerarAnclaje(datosClearQuest);\r\n\r\n\t\treturn convertXMLToString(doc);\r\n\r\n\t}",
"public BasicAttributesGrammarAccess.CardinalityElements getCardinalityAccess() {\n\t\treturn gaBasicAttributes.getCardinalityAccess();\n\t}",
"public ModbusAccess getAccess() {\r\n\t\treturn access;\r\n\t}",
"public String getappAccess() {\n\t\treturn _appAccess;\n\t}",
"public XbaseWithAnnotationsGrammarAccess.XAnnotationOrExpressionElements getXAnnotationOrExpressionAccess() {\n\t\treturn gaXbaseWithAnnotations.getXAnnotationOrExpressionAccess();\n\t}",
"public AccessLevel getAccessLevel(){\n return this.accessLevel;\n }",
"public Element get_xml_info() {\n\t\treturn _xml_info;\n\t}",
"public BasicAttributesGrammarAccess.FQNElements getFQNAccess() {\n\t\treturn gaBasicAttributes.getFQNAccess();\n\t}",
"public String getAccessionStatus() {\n\t\tString t = doc.get(\"collaccessionstatus\");\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 List<ChunkData> getAccess() {\n return access;\n }",
"public XML getXML() {\n return _mxo;\n }",
"public BasicAttributesGrammarAccess.EIntElements getEIntAccess() {\n\t\treturn gaBasicAttributes.getEIntAccess();\n\t}",
"public void setAccessionNumber(String accessionNumber)\n {\n this.accessionNumber = accessionNumber;\n }",
"public Vector<PathElement> generateAccessPath()\n\t{\n\t if ( null == this.parent )\n {\n return new Vector<PathElement>();\n }\n else if ( this.isNary() )\n {\n checkPrecondition(this.parent != null, \"N-ary node with no parent\");\n return this.parent.generateAccessPath();\n }\n else\n {\n Vector<PathElement> path = parent.generateAccessPath();\n PathElement own_element = new PathElement(this.operator, this.paramState, this.positionInParent);\n path.add(own_element);\n return path;\n }\n\t}",
"public XbaseGrammarAccess.OpAddElements getOpAddAccess() {\n\t\treturn gaXbase.getOpAddAccess();\n\t}",
"public XbaseGrammarAccess.OpAddElements getOpAddAccess() {\n\t\treturn gaXbase.getOpAddAccess();\n\t}",
"public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }",
"public XbaseGrammarAccess.OpAddElements getOpAddAccess() {\r\n\t\treturn gaXbase.getOpAddAccess();\r\n\t}",
"public int getAccessType() {\n return accessType;\n }",
"Set<String> getProteinAccessions(String experimentAccession);",
"public FeatureElements getFeatureAccess() {\n\t\treturn pFeature;\n\t}",
"public String getAccess_token() {\r\n\t\treturn access_token;\r\n\t}",
"private FileXML getFile(Element fileNode) throws ParserException{\n NodeList accessNDList = fileNode.getElementsByTagName(\"access\");\n \n if( accessNDList == null){\n throw new ParserException(\"Missing access definition for file, line: \"+dom.compareDocumentPosition(fileNode));\n }\n List<FileXMLAccess> fileAccessList = new LinkedList();\n String path;\n String host;\n Element fileAccess;\n for(int i=0; i<accessNDList.getLength(); i++){\n fileAccess = (Element) accessNDList.item(i);\n if(!fileAccess.hasAttribute(\"host\")){\n throw new ParserException(\"Missing host in access definition, line: \"+dom.compareDocumentPosition(fileNode));\n }\n if(!fileAccess.hasAttribute(\"path\")){\n throw new ParserException(\"Missing path in access definition, line: \"+dom.compareDocumentPosition(fileNode));\n }\n path = fileAccess.getAttribute(\"path\");\n host = fileAccess.getAttribute(\"host\");\n fileAccessList.add(new FileXMLAccess(mapForAccess.get(host), path));\n }\n return new FileXML(fileAccessList);\n }",
"public ProyectoElements getProyectoAccess() {\n\t\treturn pProyecto;\n\t}",
"public String accessKey() {\n return this.accessKey;\n }",
"public List<LicenseAttribution> getAttribution() {\r\n return attribution;\r\n }",
"public abstract String getCvAccession();",
"public final String getAccessKeyAttribute() {\n return getAttributeValue(\"accesskey\");\n }",
"public java.lang.String getContactAccess() {\r\n return contactAccess;\r\n }",
"public String getAuditXml();",
"public AccessType getAccessType() {\n return accessType;\n }",
"public AccessType getAccessType() {\n return accessType;\n }",
"public interface XcdlAccess {\n /**\n * @return Possibly nested lists of properties, extracted from the XCDL file and wrapped into a CharacterizeResult\n * (which can be used with the {@link CompareProperties} interface). Note that this only returns a\n * restricted part of the XCDL. For complete access to the XCDL, use {@link XcdlParser}.\n */\n CharacteriseResult getCharacteriseResult();\n}",
"public int getAccessLevel() {\n return 0;\r\n }",
"public IdentifierDt getAccessionNo() { \n\t\tif (myAccessionNo == null) {\n\t\t\tmyAccessionNo = new IdentifierDt();\n\t\t}\n\t\treturn myAccessionNo;\n\t}",
"public AttributeFactElements getAttributeFactAccess() {\n\t\treturn pAttributeFact;\n\t}",
"public AccessType getAccessType() {\n\treturn this.accessType;\n }",
"public interface IMPDElement {\n /**\n * This method returns a vector of pointers to dash::xml::INode objects which correspond to additional <em>XML Elements</em> of certain\n * MPD elements. These <em>XML Elements</em> are not specified in <em>ISO/IEC 23009-1, Part 1, 2012</em>. \\n\n * See the example in the class description for details.\n * @return a vector of pointers to dash::xml::INode objects\n */\n public Vector<Node> GetAdditionalSubNodes();\n\n /**\n * This method returns a map with key values and mapped values of type std::string of all <em>XML Attributes</em> of certain MPD elements. \\n\n * Some of these <em>XML Attributes</em> are not specified in <em>ISO/IEC 23009-1, Part 1, 2012</em>. \\n\n * See the example in the class description for details.\n * @return a map with key values and mapped values, both of type std::string\n */\n public HashMap<String, String> GetRawAttributes();\n}",
"public java.lang.String getXml();",
"@Override\n public ArrayList<SCANAttributesXML> getAttributes() {\n return mesoCfgXML.getAttributesData();\n }",
"public int getAccessFlags() {\n return access_flags;\n }",
"public String getAccessTypeString() {\n return String.valueOf(accessType);\n }",
"public String apiAccessLevel() {\n return this.apiAccessLevel;\n }",
"public String getXML() {\n\t\treturn getXML(false);\n\t}",
"public starnamed.x.wasm.v1beta1.Types.AccessConfig getInstantiatePermission() {\n if (instantiatePermissionBuilder_ == null) {\n return instantiatePermission_ == null ? starnamed.x.wasm.v1beta1.Types.AccessConfig.getDefaultInstance() : instantiatePermission_;\n } else {\n return instantiatePermissionBuilder_.getMessage();\n }\n }",
"public BasicAttributesGrammarAccess.EnumerationElementElements getEnumerationElementAccess() {\n\t\treturn gaBasicAttributes.getEnumerationElementAccess();\n\t}",
"public String getIdentity() { \n\t\treturn getIdentityElement().getValue();\n\t}",
"public XbaseWithAnnotationsGrammarAccess.XAnnotationElementValuePairElements getXAnnotationElementValuePairAccess() {\n\t\treturn gaXbaseWithAnnotations.getXAnnotationElementValuePairAccess();\n\t}",
"public void getAccessionNumber(int seqid, String tag, String gid);",
"public NCNameElements getNCNameAccess() {\n\t\treturn pNCName;\n\t}",
"public POPAccessPoint getAccessPoint() {\n\t\treturn popAccessPoint;\n\t}",
"@Override\n\tprotected String getSpecificXML() {\n\t\t\n\t\tStringBuilder xml = new StringBuilder();\n\t\t\n\t\tstartElementWithAttributes(xml, \"Activity\");\n\t\taddStringAttribute(xml, \"activityHandle\", activityHandle);\n\t\tcloseParentElementWithAttributes(xml);\n\t\t\n\t\taddContext(xml);\n\t\taddContextMenu(xml);\n\t\taddMenuAction(xml);\n\t\taddMethods(xml);\n\t\taddDeltas(xml);\n\t\taddPublications(xml);\n\t\taddFields(xml);\n\t\t\n\t\tcloseParentElement(xml, \"Activity\");\n\t\t\n\t\treturn xml.toString();\n\t}",
"public RoleElements getRoleAccess() {\n\t\treturn pRole;\n\t}",
"public XmuCoreAlignElements getXmuCoreAlignAccess() {\r\n\t\treturn pXmuCoreAlign;\r\n\t}",
"public String getAccessionDeaccessionFromDate() {\n return accessionDeaccessionFromDate;\n }",
"public ConversionElements getConversionAccess() {\r\n\t\treturn pConversion;\r\n\t}",
"public java.lang.String getReturnedACI() {\n return returnedACI;\n }",
"public IIID getAccessIID()\n throws ORIOException;",
"public BasicAttributesGrammarAccess.EBooleanElements getEBooleanAccess() {\n\t\treturn gaBasicAttributes.getEBooleanAccess();\n\t}",
"public XbaseGrammarAccess.NumberElements getNumberAccess() {\n\t\treturn gaXbase.getNumberAccess();\n\t}",
"public XbaseGrammarAccess.NumberElements getNumberAccess() {\n\t\treturn gaXbase.getNumberAccess();\n\t}",
"public XbaseGrammarAccess.NumberElements getNumberAccess() {\r\n\t\treturn gaXbase.getNumberAccess();\r\n\t}",
"@DOMSupport(DomLevel.ONE)\r\n @Property String getSecurity();",
"public Long getAc() {\n return ac;\n }",
"public QNameElements getQNameAccess() {\n\t\treturn pQName;\n\t}",
"public XbaseGrammarAccess.XLiteralElements getXLiteralAccess() {\n\t\treturn gaXbase.getXLiteralAccess();\n\t}",
"public XbaseGrammarAccess.XLiteralElements getXLiteralAccess() {\n\t\treturn gaXbase.getXLiteralAccess();\n\t}",
"public boolean isSetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ACCESSION$2) != 0;\r\n }\r\n }",
"public abstract String getXMLName();"
] | [
"0.74041796",
"0.6910298",
"0.6694254",
"0.6694254",
"0.6655868",
"0.66148543",
"0.66148543",
"0.6339542",
"0.6257649",
"0.6151489",
"0.6095523",
"0.6072249",
"0.5929578",
"0.58509624",
"0.57967854",
"0.57667583",
"0.5766376",
"0.5756712",
"0.56437916",
"0.5534481",
"0.55335516",
"0.55333024",
"0.54000324",
"0.53767246",
"0.5373029",
"0.5359358",
"0.534429",
"0.534429",
"0.5343737",
"0.53294057",
"0.5323851",
"0.5310033",
"0.529686",
"0.5284791",
"0.5266991",
"0.5252809",
"0.5252104",
"0.5251028",
"0.5238985",
"0.5224334",
"0.5221386",
"0.52171755",
"0.5209089",
"0.52007514",
"0.5196287",
"0.519295",
"0.519295",
"0.5189829",
"0.5178537",
"0.5114494",
"0.5105911",
"0.50980127",
"0.5086332",
"0.5076826",
"0.50646496",
"0.5053195",
"0.5045841",
"0.50456554",
"0.5042031",
"0.5026243",
"0.5021897",
"0.5020566",
"0.5020566",
"0.50189465",
"0.5009069",
"0.5008468",
"0.5007345",
"0.5006387",
"0.5004708",
"0.4985053",
"0.49787274",
"0.49600667",
"0.49574244",
"0.49423382",
"0.4938998",
"0.49386433",
"0.49271244",
"0.49207753",
"0.49152845",
"0.49147412",
"0.49117014",
"0.4911104",
"0.4910339",
"0.4909373",
"0.49067637",
"0.49062166",
"0.4902707",
"0.48992592",
"0.48988706",
"0.48887503",
"0.48834172",
"0.48834172",
"0.48809087",
"0.48772547",
"0.487552",
"0.4869256",
"0.48682088",
"0.48682088",
"0.4859492",
"0.48551702"
] | 0.6741216 | 2 |
True if has "accession" element | public boolean isSetAccession()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(ACCESSION$2) != 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasAccess(String accessId);",
"public boolean isSetAccessName() {\n return this.accessName != null;\n }",
"boolean isAccess(char access);",
"boolean hasAccX();",
"public void setAccession(String accession) {\n this.accession = accession;\n }",
"public void setAccession(String accession) {\n this.accession = accession;\n }",
"public boolean hasAnio()\r\n {\r\n return this._has_anio;\r\n }",
"boolean hasExternalAttributionCredit();",
"boolean hasAttributes();",
"boolean hasAttributes();",
"public boolean isAccessible() {\n return accessible;\n }",
"boolean isAccessed (ClassMember attr) {\r\n if (accessed_attributes == null) {\r\n accessed_attributes = new java.util.Vector ();\r\n } else if (accessed_attributes.contains (attr)) {\r\n return true;\r\n } \r\n\r\n accessed_attributes.addElement (attr);\r\n return false;\r\n }",
"public String getAccession() {\n return accession;\n }",
"boolean hasAccY();",
"boolean hasAccZ();",
"boolean isReadAccess();",
"boolean isAssociative();",
"boolean isAttribute();",
"public boolean hasAI ( ) {\n\t\t// TODO: backwards compatibility required\n\t\treturn extract ( handle -> handle.hasAI ( ) );\n\t}",
"public Boolean isAccessible() {\n return this.isAccessible;\n }",
"private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isSetAccessKey() {\n return this.accessKey != null;\n }",
"public boolean isAssocProperty();",
"boolean hasInfoType();",
"public boolean hasAccess(int uid) {\n return this.mDisplay.hasAccess(uid);\n }",
"boolean hasSetAcl();",
"public boolean isNew() {\r\n\t return access == null || access.length() == 0;\r\n\t}",
"public String getAccess();",
"public boolean hasAccX() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"public boolean isAccessLevelPublic() {\r\n String level = getOption(OPTION_ACCESS_LEVEL, ACCESS_LEVEL_PUBLIC);\r\n return ACCESS_LEVEL_PUBLIC.equals(level);\r\n }",
"boolean hasExternalAttributionModel();",
"String getAccess();",
"String getAccess();",
"public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }",
"boolean hasSetAttribute();",
"public final boolean hasAccessDateTime() {\n \treturn m_accessDate != 0L ? true : false;\n }",
"public boolean hasAccessPathEdges() {\n return accessPathEdges != null;\n }",
"public boolean hasAccX() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"boolean hasInstructor(){\n\t\treturn instructor == null ? false : true;\n\t}",
"public boolean isSetAnio() {\r\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __ANIO_ISSET_ID);\r\n }",
"public boolean isTaxonomyAttribute(String name) {\n\t\tif (taxoMap != null) {\n\t\t\treturn taxoMap.containsKey(name);\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isExpandedAccessions(VertexObject vertex) {\n return (expandedAccessionsMap.containsKey(vertex.getLabel())) ?\n expandedAccessionsMap.get(vertex.getLabel()) : false;\n }",
"public boolean hasAktif() {\n return fieldSetFlags()[6];\n }",
"public boolean hasIntrospectionType() {\n return fieldSetFlags()[17];\n }",
"boolean hasElement();",
"public boolean hasAttribute(String name) {\n // if attribute() returns a value, then this jode has that attribute\n return attribute(name, true) != null;\n }",
"public final boolean hasAttribute ()\r\n {\r\n return _value.hasAttribute();\r\n }",
"private boolean validateAccess(String permission) {\n\t\tif (\"READ\".equalsIgnoreCase(permission)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public Boolean getPublicAccess() {\n return publicAccess;\n }",
"boolean isHasPermissions();",
"public boolean hasAA() {\n return fieldSetFlags()[17];\n }",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMetadata();",
"boolean hasMeta();",
"boolean hasPrincipal();",
"public boolean isSetObservationDataLink()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(OBSERVATIONDATALINK$18) != null;\r\n }\r\n }",
"public boolean hasKullaniciAdi() {\n return fieldSetFlags()[1];\n }",
"public boolean hasInfo() {\n return fieldSetFlags()[6];\n }",
"public boolean isGivingInformation();",
"@java.lang.Override\n public boolean hasAttributes() {\n return attributes_ != null;\n }",
"boolean hasAttribute(String name);",
"boolean hasUsage();",
"public boolean isMaybePresentAccessor() {\n checkNotUnknown();\n if (isPolymorphic())\n return (flags & PRESENT_ACCESSOR) != 0;\n else\n return getters != null || setters != null;\n }",
"boolean hasMetaData();",
"boolean hasAchievementType();",
"boolean isMember();",
"private boolean estPlein() {\n return (nbAssoc == associations.length);\n }",
"public boolean estPlein() {\n return this.tapis.size() == capacite;\n }"
] | [
"0.6750431",
"0.6672859",
"0.6399827",
"0.63888997",
"0.6367144",
"0.6367144",
"0.6363754",
"0.63566124",
"0.63243663",
"0.63243663",
"0.62722474",
"0.62528235",
"0.62099427",
"0.6102862",
"0.6100607",
"0.60869944",
"0.6078247",
"0.6065845",
"0.606293",
"0.60233486",
"0.6003451",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59611386",
"0.59343725",
"0.59208906",
"0.590773",
"0.59073323",
"0.59010684",
"0.5815619",
"0.58138335",
"0.57876915",
"0.57757807",
"0.57608277",
"0.57608277",
"0.57512707",
"0.5743785",
"0.57417405",
"0.57387364",
"0.57379794",
"0.57223195",
"0.5720015",
"0.5715612",
"0.5703325",
"0.5702519",
"0.5701294",
"0.5686118",
"0.5681201",
"0.5679108",
"0.5677886",
"0.5674718",
"0.5668248",
"0.5661148",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.5633209",
"0.562915",
"0.56256527",
"0.56203604",
"0.56178313",
"0.5612248",
"0.56101",
"0.5608966",
"0.56053185",
"0.5602971",
"0.5599275",
"0.55719",
"0.5564444",
"0.5560239",
"0.5548216",
"0.55309415"
] | 0.76292545 | 0 |
Sets the "accession" element | public void setAccession(java.lang.String accession)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCESSION$2);
}
target.setStringValue(accession);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAccession(String accession) {\n this.accession = accession;\n }",
"public void setAccession(String accession) {\n this.accession = accession;\n }",
"public void xsetAccession(org.apache.xmlbeans.XmlString accession)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACCESSION$2);\r\n }\r\n target.set(accession);\r\n }\r\n }",
"public String getAccession() {\n return accession;\n }",
"public void setAccess(String access)\n\t\t{\n\t\t\tm_access = access;\n\t\t}",
"public void setAccessionNumber(String accessionNumber)\n {\n this.accessionNumber = accessionNumber;\n }",
"public void setAccess(Rail access) {\n\tthis.access = access;\n }",
"public void setAccessExpression(Expression e)\r\n {\r\n\tm_accessExpression = e;\r\n\te.setParent(this, COL_ACCESS_EXPRESSION);\r\n }",
"public void setAccess(ModbusAccess access) {\r\n\t\tthis.access = access;\r\n\t}",
"public void setAccess(int nAccess)\n {\n ensureLoaded();\n m_flags.setAccess(nAccess);\n setModified(true);\n }",
"public ImagingStudy setAccessionNo(IdentifierDt theValue) {\n\t\tmyAccessionNo = theValue;\n\t\treturn this;\n\t}",
"public IBusinessObject setAccessIID(IIID access)\n throws ORIOException;",
"private void changeAccess(final BoxSharedLink.Access access){\n if (access == null){\n // Should not be possible to get here.\n Toast.makeText(this, \"No access chosen\", Toast.LENGTH_LONG).show();\n return;\n }\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setAccess(access));\n }",
"void setAccessible(boolean accessible);",
"public void addAccess(String accessId);",
"protected void setAccessType(AccessType accessType) {\n\tthis.accessType = accessType;\n }",
"public final void attributeAccess() throws RecognitionException {\r\n Token a=null;\r\n\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:2: ( ATTRIBUTTE_ACCESS (a= IDENT ) )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:4: ATTRIBUTTE_ACCESS (a= IDENT )\r\n {\r\n match(input,ATTRIBUTTE_ACCESS,FOLLOW_ATTRIBUTTE_ACCESS_in_attributeAccess1361); \r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:23: (a= IDENT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:24: a= IDENT\r\n {\r\n a=(Token)match(input,IDENT,FOLLOW_IDENT_in_attributeAccess1367); \r\n attributeAccess(a);\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"public ImagingStudy setAccessionNo( String theSystem, String theValue) {\n\t\tmyAccessionNo = new IdentifierDt(theSystem, theValue); \n\t\treturn this; \n\t}",
"public String getAccessionNumber()\n {\n return accessionNumber;\n }",
"public void setAccessibility(Accessibility accessibility) {\r\n\t\tthis.accessibility = accessibility;\r\n\t}",
"public void setAccessType(int accessType) {\n this.accessType = accessType;\n }",
"public void setPermissionAccess(String permissionAccess)\n\t{\n\t\tthis.permissionAccess = permissionAccess;\n\t}",
"public void setAccessNum(String accessNum) {\r\n this.accessNum = accessNum == null ? null : accessNum.trim();\r\n }",
"public ImagingStudy setAccessionNo( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {\n\t\tmyAccessionNo = new IdentifierDt(theUse, theSystem, theValue, theLabel); \n\t\treturn this; \n\t}",
"public void setAccessType(AccessType accessType) {\n this.accessType = accessType;\n }",
"public void setAccessType(AccessType accessType) {\n this.accessType = accessType;\n }",
"public void setappAccess(String appAccess) {\n\t\t_appAccess = appAccess;\n\t}",
"public void setAnio(int anio)\r\n {\r\n this._anio = anio;\r\n this._has_anio = true;\r\n }",
"@Override\n\tpublic void setAccessible(int accessible) {\n\t\t_userSync.setAccessible(accessible);\n\t}",
"@Override\n public ClassNode acc(int v) {\n $.access = v;\n return this;\n }",
"public void setAccessType(String accessType) {\n this.accessType = Integer.parseInt(accessType);\n }",
"void setVisibility(ASTAccessSpecNode accessSpec)\n {\n if (accessSpec.isPublic())\n this.visibility = Visibility.PUBLIC;\n else if (accessSpec.isPrivate())\n this.visibility = Visibility.PRIVATE;\n }",
"public String getAccessNum() {\r\n return accessNum;\r\n }",
"public void setInheritedAccess(String access)\n\t\t{\n\t\t\tm_inheritedAccess = access;\n\t\t}",
"void setAccessCounter(int cnt);",
"public void setDateAccess(Date dateAccess) {\n this.dateAccess = dateAccess;\n }",
"public void setAnio(int anio){\r\n \r\n \r\n this.anio = anio;\r\n \r\n }",
"public void setAccidentDetail(typekey.AccidentDetailPEL value);",
"String getAccess();",
"String getAccess();",
"public String getAccess();",
"@Override\n public void setAtk(int atk) {\n this.atk = atk;\n }",
"public Builder setInstantiatePermission(starnamed.x.wasm.v1beta1.Types.AccessConfig value) {\n if (instantiatePermissionBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n instantiatePermission_ = value;\n onChanged();\n } else {\n instantiatePermissionBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void setAcl(AccessControlList acl)\n {\n this.acl = acl;\n }",
"public String getAccessionNumber() {\n return aao.getAccessionNumber();\n }",
"public Long getAccessId() {\n\t\treturn this.accessId;\n\t}",
"public int getAccess() {\n\t\treturn access;\n\t}",
"public void setInitKey_accessid( int newValue ) {\n this.initKey_accessid = (newValue);\n }",
"public void setAccessibleName(String name) {\n // Not supported\n }",
"public void setContactAccess(java.lang.String contactAccess) {\r\n this.contactAccess = contactAccess;\r\n }",
"public abstract void setData(Map attributes, Iterator accessPoints);",
"public String getAccess()\n\t\t{\n\t\t\treturn m_access;\n\t\t}",
"public EndpointBuilder _accessURL_(URI _accessURL_) {\n this.endpointImpl.setAccessURL(_accessURL_);\n return this;\n }",
"public void unsetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ACCESSION$2, 0);\r\n }\r\n }",
"public void setDataAccessRole(String dataAccessRole) {\n this.dataAccessRole = dataAccessRole;\n }",
"void setArrowInMenuProfileAccessibilityFocus();",
"@Override\r\n\t\tpublic void setAO(int address, int value) throws IOServiceException {\n\r\n\t\t}",
"public void setAccessPoint(POPAccessPoint accessPoint) {\n\t\tthis.popAccessPoint = accessPoint;\n\t}",
"public void addAccess(ChunkData chunk) {\n this.access.add(chunk);\n }",
"public Expression getAccessExpression()\r\n {\r\n\treturn m_accessExpression;\r\n }",
"void setHeaderAccessibility(String firstName, String am, String shot);",
"public final void setCommitment_DataAccess(com.mendix.systemwideinterfaces.core.IContext context, java.util.List<da.proxies.Label> commitment_dataaccess)\r\n\t{\r\n\t\tjava.util.List<com.mendix.systemwideinterfaces.core.IMendixIdentifier> identifiers = new java.util.ArrayList<com.mendix.systemwideinterfaces.core.IMendixIdentifier>();\r\n\t\tfor (da.proxies.Label proxyObject : commitment_dataaccess)\r\n\t\t\tidentifiers.add(proxyObject.getMendixObject().getId());\r\n\t\tgetMendixObject().setValue(context, MemberNames.Commitment_DataAccess.toString(), identifiers);\r\n\t}",
"public void setAnio(int p) { this.anio = p; }",
"@Override\r\n\tpublic DTextArea setHtmlAccessKey(final String accessKey) {\r\n\t\tsuper.setHtmlAccessKey(accessKey) ;\r\n\t\treturn this ;\r\n\t}",
"private void setSITACI(Element element) {\r\n\t\tElement eSitaci = new Element(\"D_EnviaSITACI\");\r\n\t\tif(this.registrosSitaci.size()<0){\r\n\t\t\teSitaci.setText(\"NO\");\r\n\t\t\telement.addContent(eSitaci);\r\n\t\t}else{\r\n\t\t\teSitaci.setText(\"SI\");\r\n\t\t\telement.addContent(eSitaci);\r\n\t\t\tElement listaSitaci = new Element(\"N_ListaSITACI\");\r\n\t\t\tElement registroSitaci;\r\n\t\t\tElement interiorRegistroSitaci;\r\n\t\t\tfor(RegistroSitaci reg : this.registrosSitaci){\r\n\t\t\t\tregistroSitaci = new Element(\"uniqueKey\");\r\n\t\t\t\tregistroSitaci.setAttribute(\"D_Id\", \"NA\");\r\n\t\t\t\tregistroSitaci.setAttribute(\"campoCQ\", \"dbid\");\r\n\t\t\t\tregistroSitaci.setAttribute(\"entidadCQ\", \"SITACI\");\r\n\t\t\t\t\r\n\t\t\t\t//nroSitaci\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_NroSITACI\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(reg.getNroSitaci());\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//DNSorigen\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_DNSOrigen\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(reg.getDnsOrigen());\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//Longitud\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_Long\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(String.valueOf(reg.getLongitud()));\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//cantReg\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_CantReg\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(String.valueOf(reg.getCantReg()));\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//Descripcion\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_DescSITACI\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(reg.getDescripcion());\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//agrego un registro\r\n\t\t\t\tlistaSitaci.addContent(registroSitaci);\r\n\t\t\t}\r\n\t\t\t//Agrego toda la lista al cuerpo del xml\r\n\t\t\telement.addContent(listaSitaci);\r\n\t\t}\t\t\r\n\t\t\r\n\t}",
"public String getReferenceAccession() {\n return referenceProteinAccession;\n }",
"void setAcronym(String v) {\n if (v == null) {\n throw new IllegalArgumentException(\"Acronym is missing\");\n }\n acronym = v;\n }",
"public void setCurrentAlloment(int value) {\n this.currentAlloment = value;\n }",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\tmode = InputMode.ACCESS;\r\n\t\t\tinstr.setText(\"Click an element to access it. It will change to red.\");\r\n\t\t\tdefaultVar(canvas);\r\n\t\t}",
"public RgwAdminBuilder accessKey(String accessKey) {\n this.accessKey = accessKey;\n return this;\n }",
"public void setAccessRights(AccessRights accessRights) {\r\n\t\tthis.accessRights = accessRights;\r\n\t}",
"public void setAccType(int fromAcc);",
"public void setAuthority (\r\n String strAuthority) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"public void initAccessibility(){\n \n this.getAccessibleContext().setAccessibleDescription(Util.THIS.getString(\"ACSD_TreeElementAttributeListCustomizer\"));\n\n addButton.getAccessibleContext().setAccessibleDescription(Util.THIS.getString(\"ACSD_addButton\")); \n removeButton.getAccessibleContext().setAccessibleDescription(Util.THIS.getString(\"ACSD_removeButton\"));\n upButton.getAccessibleContext().setAccessibleDescription(Util.THIS.getString(\"ACSD_upButton\")); \n downButton.getAccessibleContext().setAccessibleDescription(Util.THIS.getString(\"ACSD_downButton\"));\n \n attrTable.getAccessibleContext().setAccessibleDescription(Util.THIS.getString(\"ACSD_attrTable\")); \n attrTable.getAccessibleContext().setAccessibleName(Util.THIS.getString(\"ACSN_attrTable\")); \n }",
"public void setReadWriteOnMyLatestView()\n {\n \t m_acl = \tm_acl | (1<<2);\n }",
"public void init(String id, Accessor accessItem) throws ThingsException;",
"public void setPublicAccess(Boolean publicAccess) {\n this.publicAccess = publicAccess;\n }",
"public boolean isSetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ACCESSION$2) != 0;\r\n }\r\n }",
"public void setAccessControlList(AccessControlList acl) {\n\t\tthis.acl = acl;\n\t}",
"public void setExpireAfterAccess(Duration expireAfterAccess) {\n this.expireAfterAccess = expireAfterAccess;\n }",
"Builder addAccessibilityControl(String value);",
"public void setExposeAccessContext(boolean exposeAccessContext)\r\n/* 34: */ {\r\n/* 35: 95 */ this.exposeAccessContext = exposeAccessContext;\r\n/* 36: */ }",
"@Override\n public void setParent(InheritedAccessEnabled newAccess, InheritedAccessEnabled parentAccess,\n Role role) {\n ((Preference) (newAccess)).setVisibleAtRole(role);\n }",
"public ModbusAccess getAccess() {\r\n\t\treturn access;\r\n\t}",
"private void setAid(int value) {\n \n aid_ = value;\n }",
"public void setAno( int ano ){\n this.ano = ano;\n }",
"public SetPermission() {\n initComponents();\n }",
"public void setacto()\n\t\t{\n\t\t\tacto=1;\n\t\tavance=0;\n\t\t}",
"public void setAccessibleCaption(javax.accessibility.Accessible accessible) {\n // Not supported by the UNO Accessibility API\n }",
"public final int access_list() throws RecognitionException {\n int value = 0;\n\n\n CommonTree ACCESS_SPEC15 = null;\n\n\n value = 0;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:227:3: ( ^( I_ACCESS_LIST ( ACCESS_SPEC )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:227:5: ^( I_ACCESS_LIST ( ACCESS_SPEC )* )\n {\n match(input, I_ACCESS_LIST, FOLLOW_I_ACCESS_LIST_in_access_list248);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:228:7: ( ACCESS_SPEC )*\n loop4:\n while (true) {\n int alt4 = 2;\n int LA4_0 = input.LA(1);\n if ((LA4_0 == ACCESS_SPEC)) {\n alt4 = 1;\n }\n\n switch (alt4) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:229:9: ACCESS_SPEC\n {\n ACCESS_SPEC15 = (CommonTree) match(input, ACCESS_SPEC, FOLLOW_ACCESS_SPEC_in_access_list266);\n\n value |= AccessFlags.getAccessFlag(ACCESS_SPEC15.getText()).getValue();\n\n }\n break;\n\n default:\n break loop4;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return value;\n }",
"public void setAutorizacion(String autorizacion)\r\n/* 139: */ {\r\n/* 140:236 */ this.autorizacion = autorizacion;\r\n/* 141: */ }",
"public void setAttrib(String name, String value);",
"public void setAsicIdentifier(au.gov.asic.types.DocumentIdentifierType asicIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.DocumentIdentifierType target = null;\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().find_element_user(ASICIDENTIFIER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.DocumentIdentifierType)get_store().add_element_user(ASICIDENTIFIER$0);\n }\n target.set(asicIdentifier);\n }\n }",
"public void setAccessibleSummary(javax.accessibility.Accessible accessible) {\n // Not supported by the UNO Accessibility API\n }",
"public yandex.cloud.api.operation.OperationOuterClass.Operation setAccessBindings(yandex.cloud.api.access.Access.SetAccessBindingsRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getSetAccessBindingsMethod(), getCallOptions(), request);\n }",
"public void setObstaculo(int avenida, int calle);",
"JApiModifier<AccessModifier> getAccessModifier();",
"public AAccessLevel() {\n initComponents();\n }",
"Builder addAccessibilityAPI(String value);",
"public void setPermission(String permission)\r\n {\r\n this.permission = permission;\r\n }"
] | [
"0.8031622",
"0.8031622",
"0.7396307",
"0.66605157",
"0.6605631",
"0.6487808",
"0.647825",
"0.62446624",
"0.6199751",
"0.61867255",
"0.61478853",
"0.6127272",
"0.61260235",
"0.6060561",
"0.6052694",
"0.5938476",
"0.5919479",
"0.5872347",
"0.58200353",
"0.581348",
"0.5777756",
"0.5776738",
"0.57269806",
"0.5722596",
"0.57221574",
"0.57221574",
"0.57156163",
"0.56382245",
"0.55363834",
"0.55082434",
"0.54970783",
"0.5471722",
"0.5421431",
"0.5395017",
"0.53854936",
"0.5374744",
"0.53711414",
"0.535667",
"0.53525686",
"0.53525686",
"0.53315043",
"0.53193134",
"0.52935976",
"0.52870935",
"0.5280891",
"0.5264481",
"0.52625614",
"0.5262135",
"0.52616644",
"0.52385753",
"0.5232919",
"0.5232179",
"0.5203281",
"0.5176723",
"0.5174251",
"0.51710695",
"0.5166282",
"0.51602685",
"0.51565593",
"0.51302046",
"0.5107883",
"0.50838625",
"0.5082853",
"0.50823027",
"0.5063176",
"0.5058243",
"0.50582355",
"0.50552696",
"0.50488836",
"0.5047277",
"0.50400275",
"0.50347584",
"0.5025926",
"0.5019785",
"0.5015126",
"0.5009368",
"0.5002705",
"0.4977455",
"0.49680883",
"0.49677604",
"0.49558043",
"0.49463448",
"0.49455363",
"0.49392176",
"0.49365106",
"0.493137",
"0.49254364",
"0.49223292",
"0.4916711",
"0.49158397",
"0.49155563",
"0.49036923",
"0.48977196",
"0.4889846",
"0.48871467",
"0.4883957",
"0.48825163",
"0.48823094",
"0.48754582",
"0.48749036"
] | 0.79343915 | 2 |
Sets (as xml) the "accession" element | public void xsetAccession(org.apache.xmlbeans.XmlString accession)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSION$2, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACCESSION$2);
}
target.set(accession);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAccession(java.lang.String accession)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCESSION$2);\r\n }\r\n target.setStringValue(accession);\r\n }\r\n }",
"public void setAccession(String accession) {\n this.accession = accession;\n }",
"public void setAccession(String accession) {\n this.accession = accession;\n }",
"public String getAccession() {\n return accession;\n }",
"public void setAccess(String access)\n\t\t{\n\t\t\tm_access = access;\n\t\t}",
"public void setAccessionNumber(String accessionNumber)\n {\n this.accessionNumber = accessionNumber;\n }",
"public void setAccess(Rail access) {\n\tthis.access = access;\n }",
"public IBusinessObject setAccessIID(IIID access)\n throws ORIOException;",
"public void setAccessExpression(Expression e)\r\n {\r\n\tm_accessExpression = e;\r\n\te.setParent(this, COL_ACCESS_EXPRESSION);\r\n }",
"public void addAccess(String accessId);",
"public String getAccessionNumber()\n {\n return accessionNumber;\n }",
"public final void attributeAccess() throws RecognitionException {\r\n Token a=null;\r\n\r\n try {\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:2: ( ATTRIBUTTE_ACCESS (a= IDENT ) )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:4: ATTRIBUTTE_ACCESS (a= IDENT )\r\n {\r\n match(input,ATTRIBUTTE_ACCESS,FOLLOW_ATTRIBUTTE_ACCESS_in_attributeAccess1361); \r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:23: (a= IDENT )\r\n // D:\\\\entornotrabajo\\\\workspace-sgo\\\\persistance\\\\src\\\\main\\\\java\\\\es\\\\caser\\\\persistance\\\\sql\\\\antlr\\\\SQLGrammar.g:222:24: a= IDENT\r\n {\r\n a=(Token)match(input,IDENT,FOLLOW_IDENT_in_attributeAccess1367); \r\n attributeAccess(a);\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n finally {\r\n }\r\n return ;\r\n }",
"void setAccessible(boolean accessible);",
"public void setAccess(int nAccess)\n {\n ensureLoaded();\n m_flags.setAccess(nAccess);\n setModified(true);\n }",
"public void setAccess(ModbusAccess access) {\r\n\t\tthis.access = access;\r\n\t}",
"public void setAccidentDetail(typekey.AccidentDetailPEL value);",
"public ImagingStudy setAccessionNo(IdentifierDt theValue) {\n\t\tmyAccessionNo = theValue;\n\t\treturn this;\n\t}",
"String getAccess();",
"String getAccess();",
"public String getAccess();",
"public void setPermissionAccess(String permissionAccess)\n\t{\n\t\tthis.permissionAccess = permissionAccess;\n\t}",
"private void changeAccess(final BoxSharedLink.Access access){\n if (access == null){\n // Should not be possible to get here.\n Toast.makeText(this, \"No access chosen\", Toast.LENGTH_LONG).show();\n return;\n }\n executeRequest((BoxRequestItem)getCreatedSharedLinkRequest().setAccess(access));\n }",
"protected void setAccessType(AccessType accessType) {\n\tthis.accessType = accessType;\n }",
"public void setappAccess(String appAccess) {\n\t\t_appAccess = appAccess;\n\t}",
"public ImagingStudy setAccessionNo( String theSystem, String theValue) {\n\t\tmyAccessionNo = new IdentifierDt(theSystem, theValue); \n\t\treturn this; \n\t}",
"public abstract void setData(Map attributes, Iterator accessPoints);",
"public String getAccessNum() {\r\n return accessNum;\r\n }",
"public void setAccessNum(String accessNum) {\r\n this.accessNum = accessNum == null ? null : accessNum.trim();\r\n }",
"public org.apache.xmlbeans.XmlString xgetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSION$2, 0);\r\n return target;\r\n }\r\n }",
"@Override\n\tpublic void attribute(QName qName, String value) {\n\t\t\n\t}",
"public EndpointBuilder _accessURL_(URI _accessURL_) {\n this.endpointImpl.setAccessURL(_accessURL_);\n return this;\n }",
"public void setAccessType(int accessType) {\n this.accessType = accessType;\n }",
"public String getAccess()\n\t\t{\n\t\t\treturn m_access;\n\t\t}",
"public ImagingStudy setAccessionNo( IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel) {\n\t\tmyAccessionNo = new IdentifierDt(theUse, theSystem, theValue, theLabel); \n\t\treturn this; \n\t}",
"private void setSITACI(Element element) {\r\n\t\tElement eSitaci = new Element(\"D_EnviaSITACI\");\r\n\t\tif(this.registrosSitaci.size()<0){\r\n\t\t\teSitaci.setText(\"NO\");\r\n\t\t\telement.addContent(eSitaci);\r\n\t\t}else{\r\n\t\t\teSitaci.setText(\"SI\");\r\n\t\t\telement.addContent(eSitaci);\r\n\t\t\tElement listaSitaci = new Element(\"N_ListaSITACI\");\r\n\t\t\tElement registroSitaci;\r\n\t\t\tElement interiorRegistroSitaci;\r\n\t\t\tfor(RegistroSitaci reg : this.registrosSitaci){\r\n\t\t\t\tregistroSitaci = new Element(\"uniqueKey\");\r\n\t\t\t\tregistroSitaci.setAttribute(\"D_Id\", \"NA\");\r\n\t\t\t\tregistroSitaci.setAttribute(\"campoCQ\", \"dbid\");\r\n\t\t\t\tregistroSitaci.setAttribute(\"entidadCQ\", \"SITACI\");\r\n\t\t\t\t\r\n\t\t\t\t//nroSitaci\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_NroSITACI\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(reg.getNroSitaci());\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//DNSorigen\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_DNSOrigen\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(reg.getDnsOrigen());\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//Longitud\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_Long\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(String.valueOf(reg.getLongitud()));\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//cantReg\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_CantReg\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(String.valueOf(reg.getCantReg()));\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//Descripcion\r\n\t\t\t\tinteriorRegistroSitaci = new Element(\"D_DescSITACI\");\r\n\t\t\t\tinteriorRegistroSitaci.setText(reg.getDescripcion());\r\n\t\t\t\tregistroSitaci.addContent(interiorRegistroSitaci);\r\n\t\t\t\t//agrego un registro\r\n\t\t\t\tlistaSitaci.addContent(registroSitaci);\r\n\t\t\t}\r\n\t\t\t//Agrego toda la lista al cuerpo del xml\r\n\t\t\telement.addContent(listaSitaci);\r\n\t\t}\t\t\r\n\t\t\r\n\t}",
"public java.lang.String getAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public void setAccessType(AccessType accessType) {\n this.accessType = accessType;\n }",
"public void setAccessType(AccessType accessType) {\n this.accessType = accessType;\n }",
"void setVisibility(ASTAccessSpecNode accessSpec)\n {\n if (accessSpec.isPublic())\n this.visibility = Visibility.PUBLIC;\n else if (accessSpec.isPrivate())\n this.visibility = Visibility.PRIVATE;\n }",
"@Override\n\t\tpublic void setAttribute(String name, Object o) {\n\t\t\t\n\t\t}",
"@Override\n public ClassNode acc(int v) {\n $.access = v;\n return this;\n }",
"public abstract List<String> getAdditionalAccessions();",
"public void setAccessibility(Accessibility accessibility) {\r\n\t\tthis.accessibility = accessibility;\r\n\t}",
"public void setInheritedAccess(String access)\n\t\t{\n\t\t\tm_inheritedAccess = access;\n\t\t}",
"public int getAccess() {\n\t\treturn access;\n\t}",
"public void setAttrib(String name, String value);",
"@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}",
"public void setDateAccess(Date dateAccess) {\n this.dateAccess = dateAccess;\n }",
"public Expression getAccessExpression()\r\n {\r\n\treturn m_accessExpression;\r\n }",
"public Long getAccessId() {\n\t\treturn this.accessId;\n\t}",
"private void DeviceExLinkProperty(HttpServletRequest request, HttpServletResponse response) throws IOException, NumberFormatException {\n XMLTree tree;\n tree = XMLTree.getInstance();\n int Index = Integer.parseInt(request.getParameter(\"index\"));\n String type = request.getParameter(\"type\");\n response.getWriter().write(tree.getDeviceExLinkProperties(type, Index));\n }",
"public void setAccessType(String accessType) {\n this.accessType = Integer.parseInt(accessType);\n }",
"public void setExposeAccessContext(boolean exposeAccessContext)\r\n/* 34: */ {\r\n/* 35: 95 */ this.exposeAccessContext = exposeAccessContext;\r\n/* 36: */ }",
"public String getAccessionNumber() {\n return aao.getAccessionNumber();\n }",
"public String getReferenceAccession() {\n return referenceProteinAccession;\n }",
"public void setAccessPoint(POPAccessPoint accessPoint) {\n\t\tthis.popAccessPoint = accessPoint;\n\t}",
"@Override\n\tpublic void setAttribute(String name, Object o) {\n\t\t\n\t}",
"void setAccessCounter(int cnt);",
"public void setAccessibleName(String name) {\n // Not supported\n }",
"public AsgElements getAsgAccess() {\n\t\treturn (pAsg != null) ? pAsg : (pAsg = new AsgElements());\n\t}",
"public static void set_AttributeDecl(String multiplicity, String v) throws RuntimeException\n {\n read_if_needed_();\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaAttributeDeclCmd, multiplicity, v);\n UmlCom.check();\n \n _attr_decl[UmlSettings.multiplicity_column(multiplicity)] = v;\n }",
"public void unsetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ACCESSION$2, 0);\r\n }\r\n }",
"public Builder setInstantiatePermission(starnamed.x.wasm.v1beta1.Types.AccessConfig value) {\n if (instantiatePermissionBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n instantiatePermission_ = value;\n onChanged();\n } else {\n instantiatePermissionBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void addAccess(ChunkData chunk) {\n this.access.add(chunk);\n }",
"public final void setCommitment_DataAccess(com.mendix.systemwideinterfaces.core.IContext context, java.util.List<da.proxies.Label> commitment_dataaccess)\r\n\t{\r\n\t\tjava.util.List<com.mendix.systemwideinterfaces.core.IMendixIdentifier> identifiers = new java.util.ArrayList<com.mendix.systemwideinterfaces.core.IMendixIdentifier>();\r\n\t\tfor (da.proxies.Label proxyObject : commitment_dataaccess)\r\n\t\t\tidentifiers.add(proxyObject.getMendixObject().getId());\r\n\t\tgetMendixObject().setValue(context, MemberNames.Commitment_DataAccess.toString(), identifiers);\r\n\t}",
"void setAttribute(String name, Object value);",
"void setAttribute(String name, Object value);",
"public void setInitKey_accessid( int newValue ) {\n this.initKey_accessid = (newValue);\n }",
"void addEntry(IvyXmlWriter xw) \n{\n xw.begin(\"USERFILE\");\n xw.field(\"NAME\",access_name);\n xw.field(\"JARNAME\",context_name);\n xw.field(\"ACCESS\",file_mode);\n xw.end(\"USERFILE\");\n}",
"public IdentityInfo(final String name,\n final FieldMemberAndAccessorFactory memberAndAccessorFactory) {\n super(new XSId(), name, memberAndAccessorFactory);\n if (hasNature(XMLInfoNature.class.getName())) {\n XMLInfoNature xmlNature = new XMLInfoNature(this);\n xmlNature.setNodeType(NodeType.ATTRIBUTE);\n }\n }",
"public RgwAdminBuilder accessKey(String accessKey) {\n this.accessKey = accessKey;\n return this;\n }",
"Builder addAccessibilityAPI(String value);",
"private void setUsuario(Element element) {\r\n\t\tUsuario user = (Usuario)Contexts.getSessionContext().get(\"user\");\r\n\t\t\r\n\t\tElement usuario = new Element(\"N_UsuarioAlta\");\r\n\t\tElement uniqueKey = new Element(\"uniqueKey\");\r\n\t\tuniqueKey.setAttribute(\"login_name\", user.getUsername());\r\n\t\tuniqueKey.setAttribute(\"campoCQ\", \"login_name\");\r\n\t\tuniqueKey.setAttribute(\"entidadCQ\", \"users\");\r\n\t\tusuario.addContent(uniqueKey);\r\n\t\telement.addContent(usuario);\r\n\t}",
"public void initAccessibility(){\n \n this.getAccessibleContext().setAccessibleDescription(Util.THIS.getString(\"ACSD_TreeElementAttributeListCustomizer\"));\n\n addButton.getAccessibleContext().setAccessibleDescription(Util.THIS.getString(\"ACSD_addButton\")); \n removeButton.getAccessibleContext().setAccessibleDescription(Util.THIS.getString(\"ACSD_removeButton\"));\n upButton.getAccessibleContext().setAccessibleDescription(Util.THIS.getString(\"ACSD_upButton\")); \n downButton.getAccessibleContext().setAccessibleDescription(Util.THIS.getString(\"ACSD_downButton\"));\n \n attrTable.getAccessibleContext().setAccessibleDescription(Util.THIS.getString(\"ACSD_attrTable\")); \n attrTable.getAccessibleContext().setAccessibleName(Util.THIS.getString(\"ACSN_attrTable\")); \n }",
"@Override\r\n\t\tpublic void setAO(int address, int value) throws IOServiceException {\n\r\n\t\t}",
"void setInternal(ATTRIBUTES attribute, Object iValue);",
"public void setContactAccess(java.lang.String contactAccess) {\r\n this.contactAccess = contactAccess;\r\n }",
"public IdentifierDt getAccessionNoElement() { \n\t\tif (myAccessionNo == null) {\n\t\t\tmyAccessionNo = new IdentifierDt();\n\t\t}\n\t\treturn myAccessionNo;\n\t}",
"public void setAttribute(String name, Object value);",
"public void attribute(String name, String value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n writerEscape.writeAttValue(value);\r\n this.writer.write('\"');\r\n }",
"@Override\n public void setConfigXML(Collection<Element> configXML, boolean visAvailable) {\n }",
"@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}",
"public String generarAnclajeAtributosXML(){\r\n\r\n\t\tDocument doc = new Document();\r\n\t\tElement datosClearQuest = new Element(\"datosClearQuest\");\r\n\t\tdoc.setRootElement(datosClearQuest);\r\n\t\t\r\n\t\tgenerarConexion(datosClearQuest);\r\n\t\tgenerarAnclaje(datosClearQuest);\r\n\r\n\t\treturn convertXMLToString(doc);\r\n\r\n\t}",
"public void setAccType(int fromAcc);",
"public void setAccessibleDescription(String name) {\n // Not supported\n }",
"public void set_xml_info(Element _xml_info) {\n\t\tthis._xml_info = _xml_info;\n\t}",
"@Override\n\tpublic void setAccessible(int accessible) {\n\t\t_userSync.setAccessible(accessible);\n\t}",
"public void setAccessRights(AccessRights accessRights) {\r\n\t\tthis.accessRights = accessRights;\r\n\t}",
"public boolean isSetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ACCESSION$2) != 0;\r\n }\r\n }",
"public void setAttribute14(String value)\n {\n setAttributeInternal(ATTRIBUTE14, value);\n }",
"void setHeaderAccessibility(String firstName, String am, String shot);",
"public void attribute(String name, int value)\r\n throws IOException, IllegalStateException {\r\n if (!this.isNude) throw new IllegalArgumentException(\"Cannot write attribute: too late!\");\r\n this.writer.write(' ');\r\n this.writer.write(name);\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(Integer.toString(value));\r\n this.writer.write('\"');\r\n }",
"void setAgregate(com.hps.july.persistence.StorageCard anAgregate) throws java.rmi.RemoteException;",
"public void traceAttributeDefPrivileges(HttpServletRequest request, HttpServletResponse response) {\r\n \r\n final Subject loggedInSubject = GrouperUiFilter.retrieveSubjectLoggedIn();\r\n \r\n GrouperSession grouperSession = null;\r\n \r\n AttributeDef attributeDef = null;\r\n Subject subject = null;\r\n \r\n GrouperRequestContainer grouperRequestContainer = GrouperRequestContainer.retrieveFromRequestOrCreate();\r\n \r\n try {\r\n \r\n grouperSession = GrouperSession.start(loggedInSubject);\r\n \r\n GuiResponseJs guiResponseJs = GuiResponseJs.retrieveGuiResponseJs();\r\n \r\n attributeDef = UiV2AttributeDef.retrieveAttributeDefHelper(request, \r\n AttributeDefPrivilege.ATTR_ADMIN, true).getAttributeDef();\r\n \r\n if (attributeDef == null) {\r\n return;\r\n }\r\n \r\n subject = UiV2Subject.retrieveSubjectHelper(request, true);\r\n \r\n if (subject == null) {\r\n return;\r\n }\r\n \r\n Member member = MemberFinder.findBySubject(grouperSession, subject, false);\r\n \r\n if (member == null) {\r\n \r\n guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.error, \r\n TextContainer.retrieveFromRequest().getText().get(\"privilegesTraceNoPrivilegesFound\")));\r\n \r\n return;\r\n }\r\n \r\n MembershipGuiContainer membershipGuiContainer = grouperRequestContainer.getMembershipGuiContainer();\r\n \r\n //see where to go back to\r\n if (StringUtils.equalsIgnoreCase(request.getParameter(\"backTo\"), \"subject\")) {\r\n membershipGuiContainer.setTraceMembershipFromSubject(true);\r\n }\r\n \r\n //this is a subobject\r\n grouperRequestContainer.getAttributeDefContainer().getGuiAttributeDef().setShowBreadcrumbLink(true);\r\n grouperRequestContainer.getSubjectContainer().getGuiSubject().setShowBreadcrumbLink(true);\r\n \r\n List<MembershipPath> allMembershipPaths = new ArrayList<MembershipPath>();\r\n {\r\n MembershipPathGroup membershipPathGroup = MembershipPathGroup.analyzePrivileges(attributeDef, member);\r\n allMembershipPaths.addAll(GrouperUtil.nonNull(membershipPathGroup.getMembershipPaths()));\r\n }\r\n \r\n //lets try with every entity too\r\n Subject everyEntitySubject = SubjectFinder.findAllSubject();\r\n {\r\n MembershipPathGroup membershipPathGroup = MembershipPathGroup.analyzePrivileges(attributeDef, everyEntitySubject);\r\n allMembershipPaths.addAll(GrouperUtil.nonNull(membershipPathGroup.getMembershipPaths()));\r\n }\r\n \r\n //massage the paths to only consider the ones that are allowed\r\n int membershipUnallowedCount = 0;\r\n List<MembershipPath> membershipPathsAllowed = new ArrayList<MembershipPath>();\r\n \r\n for (MembershipPath membershipPath : allMembershipPaths) {\r\n if (membershipPath.isPathAllowed()) {\r\n membershipPathsAllowed.add(membershipPath);\r\n } else {\r\n membershipUnallowedCount++;\r\n }\r\n }\r\n \r\n if (membershipUnallowedCount > 0) {\r\n membershipGuiContainer.setPathCountNotAllowed(membershipUnallowedCount);\r\n guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.info,\r\n TextContainer.retrieveFromRequest().getText().get(\"privilegesTraceGroupPathsNotAllowed\")));\r\n }\r\n \r\n if (GrouperUtil.length(membershipPathsAllowed) == 0) {\r\n \r\n if (membershipUnallowedCount > 0) {\r\n guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.error,\r\n TextContainer.retrieveFromRequest().getText().get(\"privilegesTraceGroupNoPathsAllowed\")));\r\n } else {\r\n guiResponseJs.addAction(GuiScreenAction.newMessage(GuiMessageType.error,\r\n TextContainer.retrieveFromRequest().getText().get(\"privilegesTraceAttributeDefNoPaths\")));\r\n }\r\n }\r\n \r\n tracePrivilegesHelper(membershipPathsAllowed, false, false, true);\r\n \r\n guiResponseJs.addAction(GuiScreenAction.newInnerHtmlFromJsp(\"#grouperMainContentDivId\", \r\n \"/WEB-INF/grouperUi2/membership/traceAttributeDefPrivileges.jsp\"));\r\n \r\n } finally {\r\n GrouperSession.stopQuietly(grouperSession);\r\n }\r\n \r\n }",
"public void setDataAccessRole(String dataAccessRole) {\n this.dataAccessRole = dataAccessRole;\n }",
"@Override\n\tpublic void setAttribute(String arg0, Object arg1) {\n\n\t}",
"public void setAcr(String acr) {\n this.acr = acr;\n }",
"public String getattribut() \n\t{\n\t\treturn attribut;\n\t}",
"private void addAuthentication(BasicXmlDocument document){\r\n\t\tElement auth_el = document.createElement(AuthNetField.ELEMENT_MERCHANT_AUTHENTICATION.getFieldName());\r\n\t\tElement name_el = document.createElement(AuthNetField.ELEMENT_NAME.getFieldName());\r\n\t\tname_el.appendChild(document.getDocument().createTextNode(merchant.getLogin()));\r\n\t\tElement trans_key = document.createElement(AuthNetField.ELEMENT_TRANSACTION_KEY.getFieldName());\r\n\t\ttrans_key.appendChild(document.getDocument().createTextNode(merchant.getTransactionKey()));\r\n\t\tauth_el.appendChild(name_el);\r\n\t\tauth_el.appendChild(trans_key);\r\n\t\tdocument.getDocumentElement().appendChild(auth_el);\r\n\t}",
"@Override\n\tpublic void setValue(final int attIndex, final String value) {\n\n\t}"
] | [
"0.77177316",
"0.7266573",
"0.7266573",
"0.64031035",
"0.60950273",
"0.5912387",
"0.589379",
"0.5844001",
"0.5824763",
"0.5747759",
"0.5661864",
"0.5635431",
"0.5545589",
"0.5543353",
"0.5524616",
"0.54611087",
"0.5455021",
"0.54521775",
"0.54521775",
"0.53955454",
"0.5378795",
"0.53678936",
"0.53645784",
"0.535024",
"0.53411365",
"0.5316549",
"0.5311468",
"0.52549225",
"0.52400696",
"0.52343833",
"0.5219943",
"0.52044755",
"0.5201352",
"0.51912075",
"0.5187348",
"0.5183485",
"0.51330525",
"0.51330525",
"0.51320153",
"0.50944984",
"0.5091892",
"0.5091243",
"0.5087314",
"0.5082424",
"0.5068252",
"0.506328",
"0.50530934",
"0.50457674",
"0.5042068",
"0.5011924",
"0.4979357",
"0.49692062",
"0.4957572",
"0.4956506",
"0.4953101",
"0.49476168",
"0.49420202",
"0.49358135",
"0.49022412",
"0.49009833",
"0.4888262",
"0.48713958",
"0.48683515",
"0.48623356",
"0.48498306",
"0.48372468",
"0.48372468",
"0.4836936",
"0.48366782",
"0.48298934",
"0.4828432",
"0.48180136",
"0.48072854",
"0.48061144",
"0.47988552",
"0.47914022",
"0.47853202",
"0.477136",
"0.47694623",
"0.47574535",
"0.4756292",
"0.47502398",
"0.47476006",
"0.47302714",
"0.47255477",
"0.4722396",
"0.47152913",
"0.47119737",
"0.47076607",
"0.47025076",
"0.47017863",
"0.47012514",
"0.46969303",
"0.4695944",
"0.46909696",
"0.4690617",
"0.46763602",
"0.46759728",
"0.4673664",
"0.46645156"
] | 0.74401313 | 1 |
Unsets the "accession" element | public void unsetAccession()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(ACCESSION$2, 0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clearAccess();",
"void unsetCit();",
"public void supprimerInaccessibles(){\n grammaireCleaner.nettoyNonAccGramm();\n setChanged();\n notifyObservers(\"3\");\n }",
"public void clearAccessibleSelection() {\n // To be fully implemented in a future release\n }",
"public void unsetItalic()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ITALIC$6, 0);\n }\n }",
"protected void removeAccess(final String name) {\n if (!this.hasAccess(name, true)) return;\r\n \r\n // Find line with matching name.\r\n org.bukkit.block.Sign state = this.getSignBlock();\r\n Integer removeFrom = null;\r\n if (state.getLine(2) != null && state.getLine(2).equalsIgnoreCase(name)) removeFrom = 2;\r\n else if (state.getLine(3) != null && state.getLine(3).equalsIgnoreCase(name)) removeFrom = 3;\r\n \r\n if (removeFrom == null) return; \r\n \r\n state.setLine(removeFrom, \"\");\r\n }",
"public void unsetCellAccessModeValue() throws JNCException {\n delete(\"cell-access-mode\");\n }",
"public void xsetAccession(org.apache.xmlbeans.XmlString accession)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ACCESSION$2);\r\n }\r\n target.set(accession);\r\n }\r\n }",
"void unsetOffset();",
"public void removeAccess(ChunkData chunk) {\n this.access.remove(chunk);\n }",
"public void unsetAntEfficiency() {\n this.antEfficiency = null;\n }",
"void unsetValue();",
"void unsetValue();",
"void unsetControlPosition();",
"void unsetPurpose();",
"public Builder clearAccX() {\n bitField0_ = (bitField0_ & ~0x00000004);\n accX_ = 0F;\n onChanged();\n return this;\n }",
"void unsetAnchorOffset();",
"public Value.Builder clearAktif() {\n fieldSetFlags()[6] = false;\n return this;\n }",
"public void unsetGeneral()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GENERAL$20, 0);\r\n }\r\n }",
"public void setAccession(java.lang.String accession)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCESSION$2, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCESSION$2);\r\n }\r\n target.setStringValue(accession);\r\n }\r\n }",
"public void unsetIban()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(IBAN$6, 0);\n }\n }",
"public void unsetMedication()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(MEDICATION$10, 0);\n }\n }",
"public void reclaim(final AttributeSet a) {\n }",
"void unsetDirection();",
"void unset() {\n size = min = pref = max = UNSET;\n }",
"void unsetDesc();",
"@SuppressWarnings(\"unused\")\n public static void clearLocationAccessDecision(@NonNull final Activity activity) {\n sAccessToLocation = null;\n Utils.getPreferences(activity).edit().remove(ARG_DECISION).apply();\n }",
"public void deleteAnio()\r\n {\r\n this._has_anio= false;\r\n }",
"public void unsetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(VALUE$12);\n }\n }",
"void unsetControlType();",
"public void unset(){\n\t\tcurrentInst = -1;\n\t}",
"public void unsetRegular()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(REGULAR$2, 0);\n }\n }",
"public void unsetPatent()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PATENT$16, 0);\r\n }\r\n }",
"public void clearmarks ()\n\t// clear all marks in the current node\n\t{\n\t\tgetinformation();\n\t\tundonode();\n\t\tListElement la = Pos.node().actions(), lan;\n\t\tAction a;\n\t\twhile (la != null)\n\t\t{\n\t\t\ta = (Action)la.content();\n\t\t\tlan = la.next();\n\t\t\tif (a.type().equals(\"M\") || a.type().equals(\"L\")\n\t\t\t\t|| a.type().equals(\"MA\") || a.type().equals(\"SQ\")\n\t\t\t\t|| a.type().equals(\"SL\") || a.type().equals(\"CR\")\n\t\t\t\t|| a.type().equals(\"TR\") || a.type().equals(\"LB\"))\n\t\t\t{\n\t\t\t\tPos.node().removeaction(la);\n\t\t\t}\n\t\t\tla = lan;\n\t\t}\n\t\tsetnode();\n\t\tshowinformation();\n\t\tcopy();\n\t}",
"public void clear() {\n\t members = 0;\n\t dense[0] = -1;\n\t}",
"public void resetIdioma()\r\n {\r\n this.idioma = null;\r\n }",
"public void resetIdioma()\r\n {\r\n this.idioma = null;\r\n }",
"public void resetIdioma()\r\n {\r\n this.idioma = null;\r\n }",
"public void setAccession(String accession) {\n this.accession = accession;\n }",
"public void setAccession(String accession) {\n this.accession = accession;\n }",
"public void unsetInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(INTERNAL$4, 0);\n }\n }",
"public void remModify(){\n rem(MetaDMSAG.__modify);\n }",
"private void unmarkForSecOp() {\n\t\tthis.secOpFlag = false;\n\t\tthis.secopDoc = null;\n\t}",
"public void unsetReligiousAffiliationCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(RELIGIOUSAFFILIATIONCODE$16, 0);\n }\n }",
"public void unsetGenbank()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GENBANK$8, 0);\r\n }\r\n }",
"private void clearAid() {\n \n aid_ = 0;\n }",
"public void remElementName(){\n ((MenuDMO) core).remElementName();\n }",
"public void unsetGiim()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GIIM$6, 0);\r\n }\r\n }",
"void unsetValueAttachment();",
"void unsetIdentifier();",
"void unsetName();",
"void unsetID();",
"public Builder clearAccY() {\n bitField0_ = (bitField0_ & ~0x00000008);\n accY_ = 0F;\n onChanged();\n return this;\n }",
"void unsetRef();",
"void unsetNcbi8Aa();",
"public void unsetMetadata()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(METADATA$0, 0);\n }\n }",
"public void unsetDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(DESC$10);\r\n }\r\n }",
"public void deselect();",
"public void unsetCoverage()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(COVERAGE$4);\n }\n }",
"public void unsetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(NAME$2);\r\n }\r\n }",
"@DELETE(\"/attractions/{attractionId}/visited\")\n Call<Void> unmarkVisitedAttraction(\n @Path(\"attractionId\") int attractionId,\n @Header(\"Authorization\") String bearer\n );",
"public void clearAnt()\r\n\t{\r\n\t\tthis.ant = null;\r\n\t}",
"public void unsetOID()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(OID$12);\r\n }\r\n }",
"public void unsetAntGain() {\n this.antGain = null;\n }",
"void clearOffset();",
"public void unsetExtendable()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(EXTENDABLE$22);\r\n }\r\n }",
"public Builder clearAccZ() {\n bitField0_ = (bitField0_ & ~0x00000010);\n accZ_ = 0F;\n onChanged();\n return this;\n }",
"void unsetObjectives();",
"public void unAssign(){\n\t\tthis.value = 0;\n\t}",
"public void reset() {\n onoff.reset();\n itiefe.reset();\n itiefe.setEnabled(false);\n }",
"private void Clear() {\n AAccLevel_AdEdRe_TextF_AccLevelID.setText(\"\");\n AAccLevel_AdEdRe_TextF_AccLevelName.setText(\"\");\n AAccLevel_AdEdRe_TextA_Discription.setText(\"\");\n }",
"void unsetId();",
"public void unsetBank()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BANK$0, 0);\n }\n }",
"void unsetNcbieaa();",
"public void deselect() {\n\n // reset the pin value\n pin.reset();\n\n }",
"public void unsetGi()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GI$22, 0);\r\n }\r\n }",
"public void deselect(){\n\t\tPIN.reset();\n\t}",
"void unsetDescription();",
"void unsetDescription();",
"public void unsetAddress()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ADDRESS$2);\n }\n }",
"public void unsetDataMsng()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(DATAMSNG$18, 0);\n }\n }",
"void unsetState();",
"public void unsetObservationDataLink()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(OBSERVATIONDATALINK$18);\r\n }\r\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmanager.getAbnormal().remove();\n\t\t\t\tXianlu();\n\t\t\t}",
"void unsetUnordered();",
"void uncap();",
"public void resetAttributes()\r\n\t{\r\n\t\t// TODO Keep Attribute List upto date\r\n\t\tintelligence = 0;\r\n\t\tcunning = 0;\r\n\t\tstrength = 0;\r\n\t\tagility = 0;\r\n\t\tperception = 0;\r\n\t\thonor = 0;\r\n\t\tspeed = 0;\r\n\t\tloyalty = 0;\r\n\t}",
"public void tyhjenna() {\n this.kulmat.clear();\n }",
"public void unsetId()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(ID$6);\n }\n }",
"public void unKingMe() {\r\n this.type = Type.SINGLE;\r\n }",
"@Override\n public void removeAttributes()\n {\n attributes.clear();\n }",
"@Override\n public void deselectGolem() {\n }",
"void unsetTarget();",
"@Override\n\t\tprotected void resetAttribute() {\n\t\t}",
"@Override\n\tpublic void undo() {\n\t\tsecurity.off();\n\t}",
"void unsetRequired();",
"public void resetDescripcion()\r\n {\r\n this.descripcion = null;\r\n }",
"void unsetAmount();",
"void unsetType();",
"public static void reset() {\n\t\tselectedAtts.clear();\n\t}"
] | [
"0.7495577",
"0.6346841",
"0.62852675",
"0.6170796",
"0.615613",
"0.61522406",
"0.60894823",
"0.60617125",
"0.60531193",
"0.603079",
"0.60055345",
"0.5991176",
"0.5991176",
"0.5987994",
"0.59590787",
"0.5946929",
"0.5907035",
"0.5892825",
"0.5891164",
"0.58880436",
"0.5860477",
"0.58503777",
"0.58144206",
"0.57937884",
"0.57891333",
"0.57871425",
"0.5770973",
"0.5769577",
"0.5764581",
"0.5754348",
"0.5745897",
"0.57383645",
"0.5722625",
"0.570307",
"0.5697613",
"0.56816435",
"0.56816435",
"0.56816435",
"0.567739",
"0.567739",
"0.56684875",
"0.56680185",
"0.56558865",
"0.5643463",
"0.5638418",
"0.5636274",
"0.5629059",
"0.56266177",
"0.562043",
"0.56144756",
"0.56032985",
"0.55994445",
"0.5599335",
"0.5598339",
"0.5597914",
"0.55763656",
"0.55742663",
"0.5563162",
"0.55604976",
"0.5558788",
"0.5555484",
"0.55529726",
"0.55360997",
"0.55330545",
"0.5513071",
"0.55025756",
"0.55014205",
"0.5496833",
"0.5490105",
"0.54812783",
"0.5478809",
"0.547785",
"0.5474746",
"0.5474623",
"0.5473158",
"0.5470577",
"0.54701275",
"0.54586893",
"0.54586893",
"0.54534197",
"0.5452043",
"0.5451786",
"0.54482716",
"0.54394484",
"0.54329306",
"0.5428747",
"0.5422222",
"0.5415985",
"0.5406049",
"0.5400346",
"0.53960425",
"0.5394709",
"0.5378304",
"0.53764534",
"0.53732574",
"0.5372229",
"0.5370709",
"0.5365777",
"0.5364141",
"0.5363555"
] | 0.80981433 | 0 |
Gets the "release" element | public java.lang.String getRelease()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RELEASE$4, 0);
if (target == null)
{
return null;
}
return target.getStringValue();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public org.apache.xmlbeans.XmlString xgetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RELEASE$4, 0);\r\n return target;\r\n }\r\n }",
"public String getRelease()\n {\n return release;\n }",
"public String gettRelease() {\n return tRelease;\n }",
"public ReleaseRecord getRelease() { return (ReleaseRecord)Database.getReleaseIndex().getRecord(releaseId); }",
"public Object getReleased() {\n\t\treturn this.released;\n\t}",
"public Release release() {\n if (_release == null)\n _release = new Release(this, Keys.BCC_MANIFEST_RELEASE_ID_FK);\n\n return _release;\n }",
"@Test\n public void canObtainOwnRelease() throws Exception {\n final Release release = release();\n final RtReleaseAsset asset = new RtReleaseAsset(\n new FakeRequest(),\n release,\n 1\n );\n MatcherAssert.assertThat(\n asset.release(),\n Matchers.is(release)\n );\n }",
"@Test\n\t@TestProperties(name = \"Release element ${by}:${locator} \", paramsInclude = { \"by\", \"locator\" })\n\tpublic void releaseElement() {\n\t\tnew Actions(driver).release(findElement(by, locator)).perform();\n\t}",
"public CompletableFuture<?> getReleaseFuture() {\n\t\treturn releaseFuture;\n\t}",
"public java.lang.Integer getReleaseId() {\n return releaseId;\n }",
"public String getDateOfRelease() {\n return dateOfRelease;\n }",
"@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\t\t\n\t}",
"public void setRelease(String release)\n {\n this.release = release;\n }",
"@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\n\t}",
"public String getReleaseFlag() {\r\n\t\treturn releaseFlag;\r\n\t}",
"public Version getClosestRelease() {\n\n for (Version version : projectVersions) {\n Date releaseDate = version.getReleaseDate();\n if (releaseDate != null && releaseDate.compareTo(this.getIssue().getCreated()) > 0) {\n return version;\n }\n }\n\n return NO_RELEASE;\n }",
"public Date getReleaseTime() {\r\n return releaseTime;\r\n }",
"public void unsetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(RELEASE$4, 0);\r\n }\r\n }",
"public Date getReleaseDate() {\n return releaseDate;\n }",
"public String getLastReleaseValue() {\n \treturn resolver.getLastReleaseValue();\n }",
"public Date getReleaseDate() {\n\t\treturn releaseDate;\n\t}",
"public String getReleaseDate() {\r\n return releaseDate;\r\n }",
"ElementInfo getLastCreatedOrReleasedElementInfo();",
"public Date getFirstRelease() {\n return firstRelease;\n }",
"public void xsetRelease(org.apache.xmlbeans.XmlString release)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RELEASE$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RELEASE$4);\r\n }\r\n target.set(release);\r\n }\r\n }",
"public void setReleaseId(int releaseId) { this.releaseId = releaseId; }",
"public void setRelease(java.lang.String release)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RELEASE$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RELEASE$4);\r\n }\r\n target.setStringValue(release);\r\n }\r\n }",
"@Test\r\n\tpublic void testRelease() {\n\t\tBomb bomb = new Bomb(100, 200, 300, 10, null, 0, 0, 0);\r\n\t\tBomb.Coordinates coor = bomb.getReleaseCoordinates();\r\n\t\t\r\n\t\t//making sure that X, Y, Release Alt, and Descent Speed are correct.\r\n\t\tassertEquals(coor.getX(), 100);\r\n\t\tassertEquals(coor.getY(), 200);\r\n\t\tassertEquals(bomb.getReleaseAltitude(), 300);\r\n\t\tassertEquals(bomb.getDescentSpeed(), 10);\r\n\t\t\r\n\t}",
"public boolean getIsReleased() {\n\t\treturn _isReleased;\n\t}",
"public String getReleaseDate() {\n return dateFormatter.format(release);\n }",
"public Date getReleaseDate(){\n return releaseDate;\n }",
"Object getRev();",
"@Override\n\t public void onRelease() {\n\n\t }",
"void release(String dataElementName);",
"public gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag getDbtag()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag target = null;\r\n target = (gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag)get_store().find_element_user(DBTAG$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag getDbtag()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag target = null;\r\n target = (gov.nih.nlm.ncbi.www.DbtagDocument.Dbtag)get_store().find_element_user(DBTAG$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public String getElement() { return element; }",
"public K release()\n {\n return (K) destroy().getResponse();\n }",
"Builder addReleasedEvent(PublicationEvent value);",
"public boolean isReadyForRelease() {\r\n return true;\r\n }",
"public TPM_ReleaseTransportSignedOutput getReleasedTransportSignedOutput()\r\n {\r\n TPMTransportLogEntry logEntry = log.get( log.size() - 1 );\r\n try\r\n {\r\n TPM_ReleaseTransportSignedOutput signOut = (TPM_ReleaseTransportSignedOutput) logEntry.getTransOut();\r\n return signOut;\r\n }\r\n catch ( ClassCastException cce )\r\n {\r\n return null;\r\n }\r\n }",
"public boolean isSetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(RELEASE$4) != 0;\r\n }\r\n }",
"public Status getLastReleaseStatus() {\n\treturn Status.toStatus(resolver.getLastReleaseStatus());\n }",
"boolean onRelease(float delta, EntityRef target);",
"public abstract int [] getReleasePosition();",
"String getElement();",
"public synchronized Object get() {\n try {\n Object obj = queue.take().getElement();\n\n // set next offset\n delayOffset = System.currentTimeMillis();\n\n return obj;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"public Object getElement()\r\n\t\t{ return element; }",
"public String getPress() {\n return press;\n }",
"public void settRelease(String tRelease) {\n this.tRelease = tRelease == null ? null : tRelease.trim();\n }",
"public Doc getReleasedPurchaseOrderForMaintReq(MaintenanceRequest mrq){\n\t\ttry{\n\t\t\treturn docDAO.findReleasedPurchaseOrderDocForMaintReq(mrq.getMrqId());\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving released purchase order for Job No: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}",
"Builder addReleasedEvent(PublicationEvent.Builder value);",
"public Object getElement();",
"public org.hl7.fhir.String getVersion()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().find_element_user(VERSION$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public boolean isReleased() {\n return released;\n }",
"public synchronized void release() {\n m_available = true;\n notify();\n }",
"Builder addReleasedEvent(String value);",
"public String getPress(){return this.press;}",
"public void onRelease(String param1) {\n }",
"public Element getElement()\n {\n return m_Element;\n }",
"public Object element() {\n return queue.element();\n }",
"@Override\n\tpublic void setReleaseOnFinish(boolean isRelease) {\n\t\t\n\t}",
"public Object getElement() {\n return element;\n }",
"public final void postEvent$sdk_core_api_release(com.bamtech.sdk4.internal.telemetry.RequestType r12) {\n /*\n r11 = this;\n boolean r0 = r11.isInitialized()\n if (r0 != 0) goto L_0x0007\n return\n L_0x0007:\n com.bamtech.sdk4.media.adapters.AbstractPlayerAdapter r0 = r11.playerAdapter\n com.bamtech.sdk4.media.adapters.PlaybackMetrics r0 = r0.getPlaybackMetrics()\n com.bamtech.sdk4.internal.media.StreamSample r1 = r11.createSample$sdk_core_api_release(r0)\n com.bamtech.sdk4.internal.telemetry.EventBuffer r2 = r11.streamBuffer\n r2.postEvent(r1, r12)\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n r2 = 0\n if (r12 == 0) goto L_0x002a\n com.bamtech.sdk4.media.MediaPlayhead r12 = r12.getPlayhead()\n if (r12 == 0) goto L_0x002a\n java.lang.String r12 = r12.getContentId()\n if (r12 == 0) goto L_0x002a\n goto L_0x003a\n L_0x002a:\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n if (r12 == 0) goto L_0x003c\n com.bamtech.sdk4.media.MediaDescriptor r12 = r12.getDescriptor()\n if (r12 == 0) goto L_0x003c\n java.lang.String r12 = r12.getCachedMediaId()\n L_0x003a:\n r5 = r12\n goto L_0x003d\n L_0x003c:\n r5 = r2\n L_0x003d:\n com.bamtech.sdk4.media.storage.PlayheadRecorder r3 = r11.recorder\n r12 = 0\n r4 = 1\n com.bamtech.sdk4.internal.service.ServiceTransaction r4 = serviceTransaction$default(r11, r12, r4, r2)\n long r6 = r0.getCurrentPlayheadInSeconds()\n com.bamtech.sdk4.internal.telemetry.TelemetryClientPayload r12 = r1.getClient()\n com.bamtech.sdk4.internal.media.StreamSampleTelemetryData r12 = (com.bamtech.sdk4.internal.media.StreamSampleTelemetryData) r12\n long r8 = r12.getTimestamp()\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n if (r12 == 0) goto L_0x0063\n com.bamtech.sdk4.media.MediaDescriptor r12 = r12.getDescriptor()\n if (r12 == 0) goto L_0x0063\n java.lang.String r2 = r12.getPlaybackUrl()\n L_0x0063:\n r10 = r2\n io.reactivex.Flowable r12 = r3.recordPlayheadAndBookmark(r4, r5, r6, r8, r10)\n io.reactivex.r r1 = p520io.reactivex.p525e0.C11934b.m38500b()\n io.reactivex.Flowable r12 = r12.mo30086b(r1)\n com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$1 r1 = com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$1.INSTANCE\n com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$2 r2 = com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$2.INSTANCE\n io.reactivex.disposables.Disposable r12 = r12.mo30077a(r1, r2)\n java.lang.String r1 = \"recorder.recordPlayheadA… .subscribe({}, {})\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r12, r1)\n io.reactivex.disposables.CompositeDisposable r1 = r11.compositeDisposable()\n p520io.reactivex.p524d0.C11917a.m38473a(r12, r1)\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n if (r12 == 0) goto L_0x00ad\n com.bamtech.sdk4.media.PlaybackContext r12 = r12.getPlaybackContext()\n if (r12 == 0) goto L_0x00ad\n java.lang.String r2 = r12.getPlaybackSessionId()\n if (r2 == 0) goto L_0x00ad\n com.bamtech.sdk4.media.DefaultQOSPlaybackEventListener r12 = r11.defaultQosPlaybackEventListener\n com.bamtech.sdk4.media.PlaybackSampledEventData r7 = new com.bamtech.sdk4.media.PlaybackSampledEventData\n long r3 = r0.getCurrentPlayheadInSeconds()\n java.lang.Long r5 = r0.getCurrentBitrate()\n com.bamtech.sdk4.media.BitrateType r6 = r0.getBitrateType()\n r1 = r7\n r1.<init>(r2, r3, r5, r6)\n r12.onEvent(r7)\n L_0x00ad:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bamtech.sdk4.internal.media.DefaultStreamSampler.postEvent$sdk_core_api_release(com.bamtech.sdk4.internal.telemetry.RequestType):void\");\n }",
"@Override\n\tpublic Element getElement() {\n\t\treturn null;\n\t}",
"RelatingBuildingElementType getRelatingBuildingElement();",
"public RTWElementRef lastAsElement();",
"public void release (WfAssignment from_assigment, String release_info) throws BaseException, NotAssigned {\n throw new BaseException(\"Not implemented\");\n }",
"public Element getElement() {\n/* 78 */ return this.e;\n/* */ }",
"private Collection getReleasedEvents() {\n Set events = new HashSet();\n Collection topEvents = eventPane.getTopLevelEvents();\n Set current = new HashSet();\n current.addAll(topEvents);\n Set next = new HashSet();\n GKInstance event = null;\n List values = null;\n Boolean dnr = null;\n try {\n while (current.size() > 0) {\n for (Iterator it = current.iterator(); it.hasNext();) {\n event = (GKInstance) it.next();\n dnr = (Boolean) event.getAttributeValue(DO_NOT_RELEASE);\n if (dnr != null && !dnr.booleanValue())\n events.add(event);\n if (event.getSchemClass().isValidAttribute(\"hasComponent\")) {\n values = event.getAttributeValuesList(\"hasComponent\");\n if (values != null)\n next.addAll(values);\n }\n if (event.getSchemClass().isValidAttribute(\"hasInstance\")) {\n values = event.getAttributeValuesList(\"hasInstance\");\n if (values != null)\n next.addAll(values);\n }\n }\n current.clear();\n current.addAll(next);\n next.clear();\n }\n }\n catch(Exception e) {\n System.err.println(\"EventReleaseCheckPane.getReleasedEvents(): \" + e);\n e.printStackTrace();\n }\n return events;\n }",
"public int getYearReleased(){\n\t\treturn this.YEAR_RELEASED;\n\t}",
"final public Element getElement() {\n return element;\n }",
"public NexusInstanceReference unrelease(NexusInstanceReference instanceReference) {\n Map document = arangoRepository.getDocument(ArangoDocumentReference.fromNexusInstance(instanceReference), databaseFactory.getInferredDB(false));\n if (document != null) {\n Object relativeUrl = document.get(ArangoVocabulary.NEXUS_RELATIVE_URL);\n if (relativeUrl != null) {\n NexusInstanceReference fromUrl = NexusInstanceReference.createFromUrl((String) relativeUrl);\n NexusInstanceReference originalFrom = nativeRepository.findOriginalId(fromUrl);\n //Find release instance\n Set<NexusInstanceReference> releases = nativeRepository.findOriginalIdsWithLinkTo(databaseFactory.getInferredDB(false), ArangoDocumentReference.fromNexusInstance(originalFrom.toSubSpace(SubSpace.MAIN)), ArangoCollectionReference.fromFieldName(HBPVocabulary.RELEASE_INSTANCE));\n for (NexusInstanceReference nexusInstanceReference : releases) {\n Integer currentRevision = nativeRepository.getCurrentRevision(ArangoDocumentReference.fromNexusInstance(nexusInstanceReference));\n nexusInstanceReference.setRevision(currentRevision);\n instanceManipulationController.deprecateInstanceByNexusId(nexusInstanceReference);\n }\n return fromUrl;\n }\n }\n return null;\n }",
"public E getElement() { return element; }",
"void _release();",
"String getElem();",
"@Override\n\t\tprotected Element getElement(ElementType button) {\n\t\t\treturn null;\n\t\t}",
"public T getElement() {\n return element;\n }",
"public T get() {\n return element;\n }",
"public void setReleaseId(java.lang.Integer releaseId) {\n this.releaseId = releaseId;\n }",
"public void releasePackwave(){\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"AllCheckBox\"), \"Select Wave\");\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnMore\"), \"More Button\");\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnPackWaves\"), \"Pack Waves Option\");\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"Packwavecheckbox\"), \"Select Pack Wave\");\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnRelease\"), \"Release Button\");\n\n }",
"private void releaseArrow()\n {\n \tif(bowCharge >= minReleaseCharge)\n \t{\n\t currentArrow.release(bowCharge);\n\t firedArrows.add(currentArrow);\n\t System.out.println(\"released arrow, power \" + bowCharge\n\t \t+ \" angle \" + currentArrow.getMovementAngle()); \n \t}\n \tisChargingArrow = false;\n \tcurrentArrow = null;\n \tbowCharge = 0;\n }",
"public WebElement getUntb() {\r\n\t\treturn untb;\r\n\t}",
"public void setReleaseTime(Date releaseTime) {\r\n this.releaseTime = releaseTime;\r\n }",
"private void testRelease()\n {\n if(gamepad1.x) {\n // move to 0 degrees.\n servoLeft.setPosition(0);\n //servoRight.setPosition(0);\n }\n telemetry.addData(\"Servo Left Posit++backInc;ion\", servoLeft.getPosition());\n //telemetry.addData(\"Servo Right Position\", servoRight.getPosition());\n }",
"public void release() {\n\t\t\n\t}",
"public Element getElement() {\n return element;\n }",
"public Element getElement() {\n return element;\n }",
"public void checkRelease(){\n\n\t\t//Clear boolean to indicate that the GUIItem is no longer touched\n\t\twhileTouched = false;\n\t\tif (touchObject != null)\n\t\t\tonRelease = true;\n\t}",
"@Override\n\tpublic Object pop() {\n\t\tif (elementCount == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\telementCount--;\n\t\treturn elementData[elementCount];\n\t}",
"Element getElement();",
"@Override\n\tpublic void createRelease(Version version) {\n\n\t}",
"public void release();",
"public void release();",
"public org.apache.xmlbeans.XmlString xgetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$2, 0);\n return target;\n }\n }",
"@Override\n public String getTag() {\n return this.reference;\n }",
"public T getElement() {\n\t\treturn element;\n\t}",
"public void release()\n\t{\n\t\t// System.out.println(usedBy.getName() + \": Releasing \" + toString());\n\t\tthis.usedBy = null;\n\t}",
"public void release() {\n }",
"public I_Element getElement() {\n\t\treturn element;\n\t}"
] | [
"0.72022855",
"0.68360543",
"0.67369866",
"0.66752595",
"0.66215354",
"0.6113357",
"0.6065619",
"0.6017171",
"0.598213",
"0.5807476",
"0.5752797",
"0.5752252",
"0.5683426",
"0.5680628",
"0.5666243",
"0.56659025",
"0.55938464",
"0.5562829",
"0.5559647",
"0.5525255",
"0.5521409",
"0.55179334",
"0.54605824",
"0.54498357",
"0.5442617",
"0.5343754",
"0.53198534",
"0.5314082",
"0.53015643",
"0.52812225",
"0.52664864",
"0.51423174",
"0.513976",
"0.5121505",
"0.51136184",
"0.51136184",
"0.51119554",
"0.5088106",
"0.5073585",
"0.5063741",
"0.5036421",
"0.5011452",
"0.50059134",
"0.49745372",
"0.49596855",
"0.4956504",
"0.49553075",
"0.49445075",
"0.49442327",
"0.49328026",
"0.49179742",
"0.49129602",
"0.49105042",
"0.4900738",
"0.48928893",
"0.48927963",
"0.48919702",
"0.48861194",
"0.48655012",
"0.4836946",
"0.48341727",
"0.481741",
"0.4811147",
"0.48014665",
"0.47851974",
"0.47846273",
"0.47790226",
"0.47713473",
"0.4756236",
"0.4749679",
"0.47420517",
"0.4741629",
"0.47410622",
"0.47406784",
"0.47405225",
"0.4738876",
"0.4701463",
"0.47003904",
"0.46994758",
"0.46966946",
"0.46904707",
"0.46857408",
"0.46816564",
"0.4679364",
"0.46783566",
"0.46752995",
"0.46700835",
"0.46700835",
"0.46639487",
"0.4654796",
"0.4654207",
"0.46534276",
"0.4650919",
"0.4650919",
"0.4646751",
"0.46449375",
"0.4633167",
"0.46310586",
"0.46285564",
"0.46250665"
] | 0.7405065 | 0 |
Gets (as xml) the "release" element | public org.apache.xmlbeans.XmlString xgetRelease()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RELEASE$4, 0);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RELEASE$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public String getRelease()\n {\n return release;\n }",
"public String gettRelease() {\n return tRelease;\n }",
"public String getReleaseDate() {\r\n return releaseDate;\r\n }",
"public String getDateOfRelease() {\n return dateOfRelease;\n }",
"public ReleaseRecord getRelease() { return (ReleaseRecord)Database.getReleaseIndex().getRecord(releaseId); }",
"public void setRelease(String release)\n {\n this.release = release;\n }",
"@Test\n public void canObtainOwnRelease() throws Exception {\n final Release release = release();\n final RtReleaseAsset asset = new RtReleaseAsset(\n new FakeRequest(),\n release,\n 1\n );\n MatcherAssert.assertThat(\n asset.release(),\n Matchers.is(release)\n );\n }",
"public Date getReleaseDate() {\n return releaseDate;\n }",
"private String getReleaseNotesHtml() {\r\n\t\tString pkgName = _act.getPackageName();\r\n\t\tResources res = _act.getResources();\r\n\t\tint resId = res.getIdentifier(releaseNotesXml, \"xml\", pkgName);\r\n\t\tXmlResourceParser parser = res.getXml(resId);\r\n\r\n\t\tString html = \"<html><head>\" + css + \"</head><body>\";\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint eventType = parser.getEventType();\r\n\t\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\r\n\t\t\t\tif ((eventType == XmlPullParser.START_TAG) && (parser.getName().equals(\"release\"))){\r\n\t\t\t\t\thtml = html + parseReleaseNotesXML(parser);\r\n\t\t\t\t}\r\n\t\t\t\teventType = parser.next();\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (XmlPullParserException e)\r\n\t\t{\r\n\t\t}\r\n\t\tcatch (IOException e)\r\n\t\t{\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tparser.close();\r\n\t\t}\r\n\t\thtml = html + \"</body></html>\";\r\n\t\treturn html;\r\n\t}",
"public void xsetRelease(org.apache.xmlbeans.XmlString release)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RELEASE$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RELEASE$4);\r\n }\r\n target.set(release);\r\n }\r\n }",
"public String getReleaseDate() {\n return dateFormatter.format(release);\n }",
"public Date getReleaseDate() {\n\t\treturn releaseDate;\n\t}",
"public java.lang.Integer getReleaseId() {\n return releaseId;\n }",
"public String getReleaseFlag() {\r\n\t\treturn releaseFlag;\r\n\t}",
"public void setRelease(java.lang.String release)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RELEASE$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RELEASE$4);\r\n }\r\n target.setStringValue(release);\r\n }\r\n }",
"public Release release() {\n if (_release == null)\n _release = new Release(this, Keys.BCC_MANIFEST_RELEASE_ID_FK);\n\n return _release;\n }",
"public Date getReleaseDate(){\n return releaseDate;\n }",
"public java.lang.String getXml();",
"public Date getReleaseTime() {\r\n return releaseTime;\r\n }",
"public String getLastReleaseValue() {\n \treturn resolver.getLastReleaseValue();\n }",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( VolumeRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"public Object getReleased() {\n\t\treturn this.released;\n\t}",
"public void setReleaseId(int releaseId) { this.releaseId = releaseId; }",
"ElementInfo getLastCreatedOrReleasedElementInfo();",
"public String getXML() //Perhaps make a version of this where the header DTD can be manually specified\n { //Also allow changing of generated tags to user specified values\n \n String xml = new String();\n xml= \"<?xml version = \\\"1.0\\\"?>\\n\";\n xml = xml + generateXML();\n return xml;\n }",
"public Date getFirstRelease() {\n return firstRelease;\n }",
"public String getXML() {\n\t\treturn getXML(false);\n\t}",
"Element toXML();",
"@Override\n\tpublic void createRelease(Version version) {\n\n\t}",
"public CompletableFuture<?> getReleaseFuture() {\n\t\treturn releaseFuture;\n\t}",
"public Element get_xml_info() {\n\t\treturn _xml_info;\n\t}",
"@Test\n\t@TestProperties(name = \"Release element ${by}:${locator} \", paramsInclude = { \"by\", \"locator\" })\n\tpublic void releaseElement() {\n\t\tnew Actions(driver).release(findElement(by, locator)).perform();\n\t}",
"public void setReleaseVersion(String version) {\r\n\t\tthis.version = version;\r\n\t}",
"public Version getClosestRelease() {\n\n for (Version version : projectVersions) {\n Date releaseDate = version.getReleaseDate();\n if (releaseDate != null && releaseDate.compareTo(this.getIssue().getCreated()) > 0) {\n return version;\n }\n }\n\n return NO_RELEASE;\n }",
"public String getXml() {\n return xml;\n }",
"public Set<String> getRelease_date() {\r\n return this.release_date;\r\n }",
"public boolean isReadyForRelease() {\r\n return true;\r\n }",
"public void unsetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(RELEASE$4, 0);\r\n }\r\n }",
"public String getXml() {\n\t\treturn _xml;\n\t}",
"public String toXml()\n\t{\n\t\ttry {\n\t\t\tTransformer transformer = TransformerFactory.newInstance().newTransformer();\n\t\t\tStringWriter buffer = new StringWriter();\n\t\t\ttransformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"yes\");\n\t\t\ttransformer.transform(new DOMSource(conferenceInfo), new StreamResult(buffer));\n\t\t\treturn buffer.toString();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public static String getXMLElementTagName() {\n return \"pioneeringMission\";\n }",
"public String toXMLTag() {\n\t\tfinal StringBuffer buffer = new StringBuffer();\n\t\ttoXMLTag(buffer,0);\n\t\treturn buffer.toString();\n\t}",
"Object getRev();",
"public static final int getReleaseYear() { return 2019; }",
"@GET\r\n @Produces(\"application/xml\")\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"public String toXML() {\n return null;\n }",
"public String toXML() {\n return null;\n }",
"public void setReleaseDate(String releaseDate) {\r\n this.releaseDate = releaseDate;\r\n }",
"public void setReleaseDate(String releaseDate) {\n this.releaseDate = releaseDate;\n }",
"@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property String getXmlVersion();",
"public void setReleaseDate(Date releaseDate){\n this.releaseDate = releaseDate;\n }",
"public String getBuildVersion() {\n return Build.VERSION.RELEASE;\n }",
"public org.apache.xmlbeans.XmlString xgetDescription()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DESCRIPTION$2, 0);\n return target;\n }\n }",
"public Element toXMLElement() {\n return null;\n }",
"@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"@GET\r\n @Produces(MediaType.APPLICATION_XML)\r\n public String getXml() {\r\n //TODO return proper representation object\r\n throw new UnsupportedOperationException();\r\n }",
"@Override\n\tprotected String getSpecificXML() {\n\t\t\n\t\tStringBuilder xml = new StringBuilder();\n\t\t\n\t\tstartElementWithAttributes(xml, \"Activity\");\n\t\taddStringAttribute(xml, \"activityHandle\", activityHandle);\n\t\tcloseParentElementWithAttributes(xml);\n\t\t\n\t\taddContext(xml);\n\t\taddContextMenu(xml);\n\t\taddMenuAction(xml);\n\t\taddMethods(xml);\n\t\taddDeltas(xml);\n\t\taddPublications(xml);\n\t\taddFields(xml);\n\t\t\n\t\tcloseParentElement(xml, \"Activity\");\n\t\t\n\t\treturn xml.toString();\n\t}",
"public org.apache.xmlbeans.XmlString xgetDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESC$10);\r\n return target;\r\n }\r\n }",
"@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\t\t\n\t}",
"org.apache.xmlbeans.XmlString xgetDesc();",
"public void settRelease(String tRelease) {\n this.tRelease = tRelease == null ? null : tRelease.trim();\n }",
"public String getProductVersion();",
"public String toString() {\n if ( release ) return \"Release \"+ major;\n else return \"Version \" + major + '.' + commitNumber();\n }",
"@GET\n @Produces(MediaType.APPLICATION_XML)\n public String getXml() {\n //TODO return proper representation object\n throw new UnsupportedOperationException();\n }",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public String toXML()\n\t{\n\t\treturn toXML(0);\n\t}",
"public final String toString() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<?xml version=\\\"1.0\\\"?>\").append(br());\n toXML(sb, 0);\n return sb.toString();\n }",
"@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\n\t}",
"public Element toXml(Document doc) {\n Element e = DomUtil.createElement(doc, ELEMENT_TICKET_TICKETINFO,\n NAMESPACE_TICKET);\n\n Element timeout = DomUtil.createElement(doc, ELEMENT_TICKET_TIMEOUT,\n NAMESPACE_TICKET);\n DomUtil.setText(timeout, ticket.getTimeout());\n e.appendChild(timeout);\n\n DavPrivilegeSet privileges = new DavPrivilegeSet(ticket);\n e.appendChild(privileges.toXml(doc));\n\n return e;\n }",
"public void setReleaseDate(Date releaseDate) {\n this.releaseDate = releaseDate;\n }",
"public static String showXML(Element root) {\r\n StringBuffer strbuf = new StringBuffer();\r\n try {\r\n strbuf.append(\"<\");\r\n strbuf.append(root.getName());\r\n if (!\"\".equals(root.getNamespaceURI())) {\r\n strbuf.append(\" xmlns=\\\"\");\r\n strbuf.append(root.getNamespaceURI());\r\n strbuf.append(\"\\\"\");\r\n }\r\n accessAdditionalNamespaces(root, strbuf);\r\n accessAttribute(root, strbuf);\r\n strbuf.append(\">\");\r\n accessElement(root, strbuf);\r\n strbuf.append(\"</\");\r\n strbuf.append(root.getName());\r\n strbuf.append(\">\");\r\n return strbuf.toString();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }",
"public Status getLastReleaseStatus() {\n\treturn Status.toStatus(resolver.getLastReleaseStatus());\n }",
"public String\ttoXML()\t{\n\t\treturn toXML(0);\n\t}",
"public SystemRelease getSystemReleaseMetadata(String path, LgMessageDirectorIF messages){\r\n BufferedReader in = null;\r\n XMLStreamReader xmlStreamReader; \r\n SystemRelease systemRelease = new SystemRelease();\r\n try {\r\n in = new BufferedReader(new FileReader(path));\r\n \r\n xmlStreamReader = XMLInputFactory.newInstance().createXMLStreamReader(in);\r\n \r\n for (int event = xmlStreamReader.next(); event != XMLStreamConstants.END_DOCUMENT; event = xmlStreamReader\r\n .next()) {\r\n if(event == XMLStreamConstants.START_ELEMENT && xmlStreamReader.getLocalName().equals(\"systemRelease\")){\r\n for (int i = 0; i < xmlStreamReader.getAttributeCount(); i++) {\r\n if (xmlStreamReader.getAttributeLocalName(i).equals(\"releaseId\")) {\r\n systemRelease.setReleaseId(xmlStreamReader.getAttributeValue(i));\r\n }\r\n if (xmlStreamReader.getAttributeLocalName(i).equals(\"releaseURI\")) {\r\n systemRelease.setReleaseURI(xmlStreamReader.getAttributeValue(i));\r\n }\r\n if (xmlStreamReader.getAttributeLocalName(i).equals(\"releaseDate\")) {\r\n \r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\"); \r\n Date date = formatter.parse(xmlStreamReader.getAttributeValue(i));\r\n systemRelease.setReleaseDate(date);\r\n }\r\n if (xmlStreamReader.getAttributeLocalName(i).equals(\"releaseAgency\")) {\r\n systemRelease.setReleaseAgency(xmlStreamReader.getAttributeValue(i));\r\n }\r\n if (xmlStreamReader.getAttributeLocalName(i).equals(\"basedOnRelease\")) {\r\n systemRelease.setReleaseAgency(xmlStreamReader.getAttributeValue(i));\r\n }\r\n }\r\n }\r\n \r\n xmlStreamReader.close();\r\n in.close();}\r\n } catch (XMLStreamException e) {\r\n messages.error(\"While streaming file at \" + path + \"an error occured\");\r\n e.printStackTrace();\r\n } catch (FactoryConfigurationError e) {\r\n messages.error(\"While streaming file at \" + path + \"a streaming xml configuration error occured\");\r\n e.printStackTrace();\r\n } catch (FileNotFoundException e) {\r\n messages.error(\"Problem reading file at: \" + (path == null? \"path appears to be null\": path));\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n messages.error(\"IO Problem reading file at: \" + (path == null? \"path appears to be null\": path));\r\n e.printStackTrace();\r\n } catch (ParseException e) {\r\n messages.error(\"Problems parsing the system release date --- please check your source formatting for format dd-mm-yyyy\");\r\n e.printStackTrace();\r\n }\r\n return systemRelease;\r\n }",
"public XmlElement getConfig()\n {\n return m_xml;\n }",
"public Document getXML() {\n\t\treturn null;\n\t}",
"public void setReleaseId(java.lang.Integer releaseId) {\n this.releaseId = releaseId;\n }",
"public String getXML() {\n\t\tString xml = \"\";\n\t\ttry {\n\t\t\tJAXBContext jc = JAXBContext.newInstance( QuotaUserRs.class );\n\t\t\tMarshaller m = jc.createMarshaller();\n\t\t\tStringWriter stringWriter = new StringWriter();\n\t\t\tm.marshal(this, stringWriter);\n\t\t\txml = stringWriter.toString();\n\t\t} catch (JAXBException ex) {}\n\t\treturn xml;\n\t}",
"java.lang.String getProductDescription();",
"@Override\n\tpublic String getXMLDescription() {\n\t\treturn \"<node>\" + getDescription() + \"</node>\";\n\t}",
"@Override\n public String getXmlVersion() {\n return mXml11 ? XmlConsts.XML_V_11_STR : XmlConsts.XML_V_10_STR;\n }",
"public org.hl7.fhir.String getVersion()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().find_element_user(VERSION$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public org.apache.xmlbeans.XmlString xgetDescription()\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(DESCRIPTION$14);\n return target;\n }\n }",
"public Doc getReleasedPurchaseOrderForMaintReq(MaintenanceRequest mrq){\n\t\ttry{\n\t\t\treturn docDAO.findReleasedPurchaseOrderDocForMaintReq(mrq.getMrqId());\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving released purchase order for Job No: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}",
"public String getVersion() {\r\n return (\"2004.09\");\r\n }",
"@Override\n @XmlElement(name = \"version\", required = true)\n public synchronized InternationalString getVersion() {\n return version;\n }",
"public String printToXml()\n {\n XMLOutputter outputter = new XMLOutputter();\n outputter.setFormat(org.jdom.output.Format.getPrettyFormat());\n return outputter.outputString(this.toXml());\n }",
"protected abstract String getEventChildXML();",
"public String getAuditXml();",
"public int getYearReleased(){\n\t\treturn this.YEAR_RELEASED;\n\t}",
"public org.apache.xmlbeans.XmlString xgetDescription()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(DESCRIPTION$8);\r\n return target;\r\n }\r\n }",
"@JsonProperty(\"releaseDate\")\r\n public Date getReleaseDate() {\r\n return releaseDate;\r\n }",
"public abstract String getXMLName();",
"public String toString() {\n\t\tStringBuffer result = new StringBuffer();\n\t\tresult.append(Database.getReleaseIndex().getIdentifierFromUniqueId(releaseId).toString());\n\t\tresult.append(\" [\");\n\t\tresult.append(track);\n\t\tresult.append(\"]\");\n\t\treturn result.toString();\n\t}",
"public java.lang.String getXMLName()\n {\n return xmlName;\n }",
"public java.lang.String getXMLName()\n {\n return xmlName;\n }",
"public java.lang.String getXMLName()\n {\n return xmlName;\n }",
"public static String getXMLElementTagName() {\n return \"building-type\";\n }",
"public final void postEvent$sdk_core_api_release(com.bamtech.sdk4.internal.telemetry.RequestType r12) {\n /*\n r11 = this;\n boolean r0 = r11.isInitialized()\n if (r0 != 0) goto L_0x0007\n return\n L_0x0007:\n com.bamtech.sdk4.media.adapters.AbstractPlayerAdapter r0 = r11.playerAdapter\n com.bamtech.sdk4.media.adapters.PlaybackMetrics r0 = r0.getPlaybackMetrics()\n com.bamtech.sdk4.internal.media.StreamSample r1 = r11.createSample$sdk_core_api_release(r0)\n com.bamtech.sdk4.internal.telemetry.EventBuffer r2 = r11.streamBuffer\n r2.postEvent(r1, r12)\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n r2 = 0\n if (r12 == 0) goto L_0x002a\n com.bamtech.sdk4.media.MediaPlayhead r12 = r12.getPlayhead()\n if (r12 == 0) goto L_0x002a\n java.lang.String r12 = r12.getContentId()\n if (r12 == 0) goto L_0x002a\n goto L_0x003a\n L_0x002a:\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n if (r12 == 0) goto L_0x003c\n com.bamtech.sdk4.media.MediaDescriptor r12 = r12.getDescriptor()\n if (r12 == 0) goto L_0x003c\n java.lang.String r12 = r12.getCachedMediaId()\n L_0x003a:\n r5 = r12\n goto L_0x003d\n L_0x003c:\n r5 = r2\n L_0x003d:\n com.bamtech.sdk4.media.storage.PlayheadRecorder r3 = r11.recorder\n r12 = 0\n r4 = 1\n com.bamtech.sdk4.internal.service.ServiceTransaction r4 = serviceTransaction$default(r11, r12, r4, r2)\n long r6 = r0.getCurrentPlayheadInSeconds()\n com.bamtech.sdk4.internal.telemetry.TelemetryClientPayload r12 = r1.getClient()\n com.bamtech.sdk4.internal.media.StreamSampleTelemetryData r12 = (com.bamtech.sdk4.internal.media.StreamSampleTelemetryData) r12\n long r8 = r12.getTimestamp()\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n if (r12 == 0) goto L_0x0063\n com.bamtech.sdk4.media.MediaDescriptor r12 = r12.getDescriptor()\n if (r12 == 0) goto L_0x0063\n java.lang.String r2 = r12.getPlaybackUrl()\n L_0x0063:\n r10 = r2\n io.reactivex.Flowable r12 = r3.recordPlayheadAndBookmark(r4, r5, r6, r8, r10)\n io.reactivex.r r1 = p520io.reactivex.p525e0.C11934b.m38500b()\n io.reactivex.Flowable r12 = r12.mo30086b(r1)\n com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$1 r1 = com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$1.INSTANCE\n com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$2 r2 = com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$2.INSTANCE\n io.reactivex.disposables.Disposable r12 = r12.mo30077a(r1, r2)\n java.lang.String r1 = \"recorder.recordPlayheadA… .subscribe({}, {})\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r12, r1)\n io.reactivex.disposables.CompositeDisposable r1 = r11.compositeDisposable()\n p520io.reactivex.p524d0.C11917a.m38473a(r12, r1)\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n if (r12 == 0) goto L_0x00ad\n com.bamtech.sdk4.media.PlaybackContext r12 = r12.getPlaybackContext()\n if (r12 == 0) goto L_0x00ad\n java.lang.String r2 = r12.getPlaybackSessionId()\n if (r2 == 0) goto L_0x00ad\n com.bamtech.sdk4.media.DefaultQOSPlaybackEventListener r12 = r11.defaultQosPlaybackEventListener\n com.bamtech.sdk4.media.PlaybackSampledEventData r7 = new com.bamtech.sdk4.media.PlaybackSampledEventData\n long r3 = r0.getCurrentPlayheadInSeconds()\n java.lang.Long r5 = r0.getCurrentBitrate()\n com.bamtech.sdk4.media.BitrateType r6 = r0.getBitrateType()\n r1 = r7\n r1.<init>(r2, r3, r5, r6)\n r12.onEvent(r7)\n L_0x00ad:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bamtech.sdk4.internal.media.DefaultStreamSampler.postEvent$sdk_core_api_release(com.bamtech.sdk4.internal.telemetry.RequestType):void\");\n }"
] | [
"0.70202845",
"0.6870281",
"0.6528892",
"0.59594417",
"0.5894522",
"0.58908504",
"0.58442926",
"0.58324885",
"0.5812211",
"0.57938373",
"0.578024",
"0.57762027",
"0.57597125",
"0.5722251",
"0.55816925",
"0.558018",
"0.55420107",
"0.55258805",
"0.5523556",
"0.54978114",
"0.54954344",
"0.5453479",
"0.5404318",
"0.5389125",
"0.5377515",
"0.52950287",
"0.5244098",
"0.51800835",
"0.5169334",
"0.5136909",
"0.51320994",
"0.5106411",
"0.505745",
"0.5047983",
"0.5037495",
"0.50333625",
"0.49976152",
"0.49972445",
"0.49953234",
"0.49907935",
"0.49842435",
"0.49777502",
"0.4973502",
"0.4962088",
"0.49467328",
"0.4937795",
"0.4937668",
"0.4930257",
"0.49214312",
"0.49178195",
"0.49172643",
"0.4891093",
"0.48774895",
"0.48723787",
"0.48722145",
"0.4869019",
"0.4869019",
"0.48668712",
"0.4864885",
"0.48552942",
"0.48526794",
"0.4844939",
"0.4833705",
"0.48291823",
"0.4823608",
"0.4822882",
"0.4822882",
"0.4820688",
"0.4810527",
"0.48078367",
"0.47868213",
"0.47809777",
"0.47748825",
"0.47708136",
"0.47696176",
"0.47690633",
"0.47573817",
"0.4753349",
"0.47507086",
"0.47429597",
"0.47385037",
"0.47307652",
"0.47291136",
"0.47225624",
"0.47219568",
"0.47197086",
"0.4716247",
"0.47107804",
"0.46979335",
"0.4692348",
"0.46871382",
"0.46843848",
"0.4684378",
"0.4682627",
"0.46813482",
"0.46684614",
"0.46684614",
"0.46684614",
"0.46485186",
"0.4638244"
] | 0.71008766 | 0 |
True if has "release" element | public boolean isSetRelease()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(RELEASE$4) != 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isReadyForRelease() {\r\n return true;\r\n }",
"public boolean isReleased() {\n return released;\n }",
"public boolean isSetRelease_date() {\r\n return this.release_date != null;\r\n }",
"public boolean isSetRelease_date() {\n return this.release_date != null;\n }",
"public void checkRelease(){\n\n\t\t//Clear boolean to indicate that the GUIItem is no longer touched\n\t\twhileTouched = false;\n\t\tif (touchObject != null)\n\t\t\tonRelease = true;\n\t}",
"public boolean getIsReleased() {\n\t\treturn _isReleased;\n\t}",
"@Override\n\tpublic void setReleaseOnFinish(boolean isRelease) {\n\t\t\n\t}",
"public boolean wasJustReleased() {\n\t\treturn (!mNow && mLast);\n\t}",
"public boolean hasBeenAcquired(){\r\n\t\treturn !(acquiredBy == null);\r\n\t}",
"boolean hasBuild();",
"@Test\n public void canObtainOwnRelease() throws Exception {\n final Release release = release();\n final RtReleaseAsset asset = new RtReleaseAsset(\n new FakeRequest(),\n release,\n 1\n );\n MatcherAssert.assertThat(\n asset.release(),\n Matchers.is(release)\n );\n }",
"public boolean hasProduct() {\n return productBuilder_ != null || product_ != null;\n }",
"public boolean hasProduct() {\n return product_ != null;\n }",
"boolean hasAcquireDate();",
"boolean hasElement();",
"@Test\r\n\tpublic void testRelease() {\n\t\tBomb bomb = new Bomb(100, 200, 300, 10, null, 0, 0, 0);\r\n\t\tBomb.Coordinates coor = bomb.getReleaseCoordinates();\r\n\t\t\r\n\t\t//making sure that X, Y, Release Alt, and Descent Speed are correct.\r\n\t\tassertEquals(coor.getX(), 100);\r\n\t\tassertEquals(coor.getY(), 200);\r\n\t\tassertEquals(bomb.getReleaseAltitude(), 300);\r\n\t\tassertEquals(bomb.getDescentSpeed(), 10);\r\n\t\t\r\n\t}",
"@Override\n protected boolean tryRelease(long releases) {\n\n counter.add( releases );\n return true;\n }",
"boolean hasIsRevanche();",
"@JsonIgnore\r\n public boolean hasSetReleaseDate() {\r\n return hasSetReleaseDate;\r\n }",
"@java.lang.Override\n public boolean hasBuild() {\n return instance.hasBuild();\n }",
"boolean hasQos();",
"@java.lang.Override\n public boolean hasLicensePlate() {\n return licensePlate_ != null;\n }",
"public boolean hasGravity ( ) {\n\t\treturn extract ( handle -> handle.hasGravity ( ) );\n\t}",
"@Override\n\tpublic boolean isPresent()\n\t{\n\t\treturn present;\n\t}",
"boolean hasResource();",
"public boolean isVehicleDescriptionFieldPresent() {\r\n\t\treturn isElementPresent(vehicleDescriptionField, SHORTWAIT);\r\n\t}",
"public boolean hasLicensePlate() {\n return licensePlateBuilder_ != null || licensePlate_ != null;\n }",
"boolean hasEvent();",
"@java.lang.Override\n public boolean hasPlayready() {\n return playready_ != null;\n }",
"boolean hasPakringFree();",
"boolean hasPakringFree();",
"private boolean endTagRequired(UAElement element) {\n \t\tString elementName = element.getElementName();\n \t\tif (\"a\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\tif (\"p\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\tif (\"div\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\tif (\"script\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\tif (\"textarea\".equalsIgnoreCase(elementName)) return true; //$NON-NLS-1$\n \t\treturn false;\n \t}",
"@Override\n\tpublic boolean isPresent() {\n\t\treturn false;\n\t}",
"public boolean isManageVehiclesLinkPresent() {\r\n\t\treturn isElementPresent(manageVehiclesSideBar, SHORTWAIT);\r\n\t}",
"public synchronized boolean release(K element) {\n\t\t// if (print)\n\t\t// log.error(\"Release \" + element);\n\t\tif (bufferSize < buffer.length) {\n\t\t\tbuffer[bufferSize++] = element;\n\t\t\treturn true;\n\t\t}\n\t\tif (log.isInfoEnabled()) {\n\t\t\tlog.info(\"Factory is too small. Throwing away stuff\");\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isAddVehiclesLinkPresent() {\r\n\t\treturn isElementPresent(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Add Vehicle\"), SHORTWAIT);\r\n\t}",
"boolean publish() {\n pendingOps.incrementAndGet();\n State currentState = state.get();\n if (currentState == State.FROZEN || currentState == State.RELEASED) {\n pendingOps.decrementAndGet();\n return false;\n }\n return true;\n }",
"public boolean isAcquired() {\r\n return false;\r\n }",
"@SimpleProperty(description = \"Whether the Released event should fire when the touch sensor is\" +\n \" released.\",\n category = PropertyCategory.BEHAVIOR)\n public boolean ReleasedEventEnabled() {\n return releasedEventEnabled;\n }",
"private boolean m125720o() {\n return isAdded() && !isDetached();\n }",
"boolean hasPlayready();",
"public boolean hasTarget() {\n return target != null;\n }",
"public boolean isAddVehiclesSideBarPresent() {\r\n\t\treturn isElementPresent(groupListSideBar.replace(\"Group List\", \"Add Vehicle\"), SHORTWAIT);\r\n\t}",
"boolean onRelease(float delta, EntityRef target);",
"public boolean isReserved() {\n return target.searchLink(ParentLinkName.ENTERPRISE) != null;\n }",
"boolean hasAsset();",
"boolean available()\n {\n synchronized (m_lock)\n {\n return (null == m_runnable) && (!m_released);\n }\n }",
"boolean hasTigTag();",
"private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }",
"public String getReleaseFlag() {\r\n\t\treturn releaseFlag;\r\n\t}",
"public boolean isAddVehiclesHeadingPresent() {\r\n\t\treturn isElementPresent(addVehiclesHeader, SHORTWAIT);\r\n\t}",
"public boolean hasGadget() {\n return (this.curItem instanceof Gadget);\n }",
"boolean hasBuyDescribe();",
"boolean hasRetainFlag();",
"public boolean isOccupied() {\n return !(getLease() == null);\r\n }",
"public boolean hasPushEvent();",
"public boolean hasCompleted() {\n return this.tail.value != null && NotificationLite.isComplete(leaveTransform(this.tail.value));\n }",
"public boolean hasItem() {\n return null != item;\n }",
"boolean hasIsPerformOf();",
"public boolean isReleaseTrackedNodeOnFinalize()\n {\n return releaseTrackedNodeOnFinalize;\n }",
"private boolean hasTrackingPlane() {\n for (Plane plane : session.getAllTrackables(Plane.class)) {\n if (plane.getTrackingState() == TrackingState.TRACKING) {\n return true;\n }\n }\n return false;\n }",
"boolean hasPerformAt();",
"public boolean hasPresentation();",
"public boolean isReleasable() { return isDone(); }",
"public boolean hasSig() {\n return sig_ != null;\n }",
"public boolean isVehicleNameFieldPresent() {\r\n\t\treturn isElementPresent(vehicleNameField, SHORTWAIT);\r\n\t}",
"public boolean hasSig() {\n return sigBuilder_ != null || sig_ != null;\n }",
"public boolean isHolding();",
"public boolean isSetTag() {\n return this.tag != null;\n }",
"public boolean isOccupied() {\n\t\treturn piece != null;\n\t}",
"boolean hasHasDeployedAirbag();",
"public boolean hasTarget(){\n\t\treturn this.targetComponent != null;\n\t}",
"boolean isHasResources();",
"public boolean getActionJustReleased(String name) {\n synchronized(actions) {\n InputAction action = actions.get(name);\n return action != null && action.getJustReleased(this);\n }\n }",
"public boolean hasFire() {\n/* 4796 */ if (this.vitems == null)\n/* 4797 */ return false; \n/* 4798 */ return this.vitems.hasFire();\n/* */ }",
"boolean hasDescription();",
"boolean hasDescription();",
"boolean hasDescription();",
"@java.lang.Override\n public boolean hasFairplay() {\n return fairplay_ != null;\n }",
"public boolean isComplete()\n {\n return (name != null) && (spacecraft != null) &&\n (sensor != null) && (description != null);\n }",
"boolean hasRef();",
"public static boolean hasTarget() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"tv\").getDouble(0) == 0 ? false : true;\n }",
"public boolean isOccupied() {\n return piece != null;\n }",
"@Test\r\n public void testGetMovieReleaseInfo() throws MovieDbException {\r\n LOG.info(\"getMovieReleaseInfo\");\r\n List<ReleaseInfo> result = tmdb.getMovieReleaseInfo(ID_MOVIE_BLADE_RUNNER, \"\");\r\n assertFalse(\"Release information missing\", result.isEmpty());\r\n }",
"public boolean isSetTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(TPG$30) != 0;\r\n }\r\n }",
"boolean hasReference();",
"public void setRelease(String release)\n {\n this.release = release;\n }",
"boolean hasRetentionPolicy();",
"public boolean comesFromDiagramElement() {\n return getOriginalElement() != null;\n }",
"boolean hasTagValue();",
"public boolean isHitFree()\n {\n // TODO: replace this line with your code\n }",
"public boolean hasItem() {\n return this.item != null;\n }",
"public boolean hasTarget() { \n if (isReal) {\n return get(\"tv\") == 1; // cleaned return statement up\n } else {\n return hasTargetSim.getBoolean(false);\n }\n }",
"public boolean taken() {\n return pawn.getLives() != 0;\n }",
"public boolean hasPayment() {\n return payment_ != null;\n }",
"public boolean hasToTag() {\n return toHeader != null && toHeader.getTag() != null;\n }",
"public boolean hasChildren(Object element) {\n\t\treturn false;\r\n\t}",
"private boolean _hasChild() {\r\n boolean ret = false;\r\n if (_childs != null && _childs.size() > 0) {\r\n ret = true;\r\n }\r\n\r\n return ret;\r\n }",
"public boolean isPresent() {\n\t\treturn present;\n\t}",
"public boolean isVideoCoverPresent(){\r\n\t\t return isElementPresent(videoCover(), MEDIUMWAIT);\r\n\t}"
] | [
"0.67418903",
"0.6564746",
"0.64208037",
"0.63971406",
"0.6285963",
"0.62648916",
"0.5893604",
"0.5881217",
"0.58670217",
"0.5818032",
"0.5808739",
"0.5757334",
"0.57114553",
"0.5709383",
"0.56319433",
"0.55934405",
"0.55845493",
"0.5568649",
"0.55671287",
"0.55670166",
"0.55663675",
"0.5565031",
"0.5554911",
"0.551715",
"0.551702",
"0.5514481",
"0.5504788",
"0.54980755",
"0.5483859",
"0.5483529",
"0.5483529",
"0.54834086",
"0.54806507",
"0.5480314",
"0.5479638",
"0.5463062",
"0.5457405",
"0.54567325",
"0.54509014",
"0.5446347",
"0.5441458",
"0.5434556",
"0.54331475",
"0.5416865",
"0.5401429",
"0.5394442",
"0.53835946",
"0.5383435",
"0.53813934",
"0.5374613",
"0.5370431",
"0.5360156",
"0.5343816",
"0.5343529",
"0.53361475",
"0.5325644",
"0.5324458",
"0.53202266",
"0.53181916",
"0.53106785",
"0.5309643",
"0.530821",
"0.5304902",
"0.53041154",
"0.5295023",
"0.5286878",
"0.52868193",
"0.5285568",
"0.52817374",
"0.52804625",
"0.52794886",
"0.5278649",
"0.5276258",
"0.5274737",
"0.52704954",
"0.5270154",
"0.5270154",
"0.5270154",
"0.52688605",
"0.5264754",
"0.52521116",
"0.5249245",
"0.52491933",
"0.52481765",
"0.5240098",
"0.5236809",
"0.52340096",
"0.5233327",
"0.52328354",
"0.5225597",
"0.5224017",
"0.5223055",
"0.5220946",
"0.52207124",
"0.5219666",
"0.52129084",
"0.52072066",
"0.5203451",
"0.5193838",
"0.5190974"
] | 0.753749 | 0 |
Sets the "release" element | public void setRelease(java.lang.String release)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RELEASE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RELEASE$4);
}
target.setStringValue(release);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void xsetRelease(org.apache.xmlbeans.XmlString release)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RELEASE$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RELEASE$4);\r\n }\r\n target.set(release);\r\n }\r\n }",
"@Test\n\t@TestProperties(name = \"Release element ${by}:${locator} \", paramsInclude = { \"by\", \"locator\" })\n\tpublic void releaseElement() {\n\t\tnew Actions(driver).release(findElement(by, locator)).perform();\n\t}",
"public void setRelease(String release)\n {\n this.release = release;\n }",
"@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\n\t}",
"public void unsetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(RELEASE$4, 0);\r\n }\r\n }",
"private void releaseButtonClicked(int i){\n\t\tthis.lvl = new BuilderReleaseLevelController(mc, this, model, i);\n\t\tmc.requestSwap(lvl);\n\t}",
"@Override\n\tpublic void setReleaseOnFinish(boolean isRelease) {\n\t\t\n\t}",
"void release(String dataElementName);",
"public void releaseManualCommand() {\n try {\n RequestUtils.writeProperty(DeviceService.localDevice,bacnetDevice,getObjectIdentifier(),\n PropertyIdentifier.presentValue,null,new PriorityValue(new Null()),\n new UnsignedInteger(8));\n LOG.info(\"Release: \" + getObjectIdentifier());\n } catch (BACnetException bac) {\n LOG.warn(\"Cant release: \" + getObjectIdentifier().toString());\n }\n }",
"@Override\n\t public void onRelease() {\n\n\t }",
"public void release() {\n simConnection.doCommand(\"DynamicsSetGearValue DoneControlling\");\n }",
"public void settRelease(String tRelease) {\n this.tRelease = tRelease == null ? null : tRelease.trim();\n }",
"public void release() {\n\t\t\n\t}",
"public synchronized void release() {\n m_available = true;\n notify();\n }",
"public void release (WfAssignment from_assigment, String release_info) throws BaseException, NotAssigned {\n throw new BaseException(\"Not implemented\");\n }",
"public void release(){\n\t\tthis.motor.forward();\n\t}",
"public void setReleaseId(int releaseId) { this.releaseId = releaseId; }",
"@Override\n public void release() {\n // do *not* reset tag attributes\n }",
"private void testRelease()\n {\n if(gamepad1.x) {\n // move to 0 degrees.\n servoLeft.setPosition(0);\n //servoRight.setPosition(0);\n }\n telemetry.addData(\"Servo Left Posit++backInc;ion\", servoLeft.getPosition());\n //telemetry.addData(\"Servo Right Position\", servoRight.getPosition());\n }",
"public void release() {\n }",
"public void release() {\n }",
"public void setReleased() {\n currentXOffset += xOffset;\n currentYOffset += yOffset;\n xOffset = 0;\n yOffset = 0;\n\n gameChanged = true;\n }",
"public void releasePackwave(){\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"AllCheckBox\"), \"Select Wave\");\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnMore\"), \"More Button\");\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnPackWaves\"), \"Pack Waves Option\");\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"Packwavecheckbox\"), \"Select Pack Wave\");\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnRelease\"), \"Release Button\");\n\n }",
"private void releaseArrow()\n {\n \tif(bowCharge >= minReleaseCharge)\n \t{\n\t currentArrow.release(bowCharge);\n\t firedArrows.add(currentArrow);\n\t System.out.println(\"released arrow, power \" + bowCharge\n\t \t+ \" angle \" + currentArrow.getMovementAngle()); \n \t}\n \tisChargingArrow = false;\n \tcurrentArrow = null;\n \tbowCharge = 0;\n }",
"void release()\n {\n synchronized (m_lock)\n {\n m_released = true;\n\n m_lock.notifyAll();\n }\n }",
"Builder addReleasedEvent(String value);",
"@Override\n\tpublic void adjustControlsOnRelease(RuntimeParams runtimeParams)\n\t{\n\t\t\n\t}",
"public void onRelease(String param1) {\n }",
"public void setReleaseTime(Date releaseTime) {\r\n this.releaseTime = releaseTime;\r\n }",
"public void setReleaseDate(Date releaseDate){\n this.releaseDate = releaseDate;\n }",
"@Override\n\tprotected void OnRelease() {\n\t\tsetSelected(false);\n\t}",
"@Override\n\tpublic void release() {\n\t\t\n\t}",
"public void release()\r\n\t{\r\n\t\tsuper.release();\r\n\t\t_href = null;\r\n\t\t_box = null;\r\n\t\t_bracket = null;\r\n\t\t_bracketFont = null;\r\n\r\n\t}",
"void _release();",
"public void release();",
"public void release();",
"@Override\n\tpublic void release() {\n\n\t}",
"@Override\n\tpublic void release() {\n\n\t}",
"@Override\r\n\tpublic void release()\r\n\t{\n\t}",
"public void releaseVersion(String versionValue);",
"Builder addReleasedEvent(PublicationEvent value);",
"public void setReleaseDate(Date releaseDate) {\n this.releaseDate = releaseDate;\n }",
"public void ReleaseTask() throws InterruptedException{\n\t\tThread.sleep(1000);\n\t\tlibManhattanCommonFunctions.clickAnyElement(\"//input[@id='checkAll_c0_dataForm:lv1:dataTable']\", \"XPATH\", \"CheckBox\");\n\t\tThread.sleep(2000);\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"btnRelease\"), \"Release Button\");\n\t\tThread.sleep(1000);\n\t}",
"public static void playerRelease() {\n\t\tPlayer.release();\n\t}",
"protected void release()\n {\n }",
"public abstract void release();",
"public abstract void release();",
"public abstract void release();",
"@Override\n\tpublic void release() {\n\t}",
"boolean onRelease(float delta, EntityRef target);",
"@Override\r\n\tpublic void afterRelease(ReleaseModel rm) throws FtdException {\n\r\n\t}",
"private void release(int ticket) {\n trackStatus[ticket].release();\n if (DEBUG) System.err.printf(\"Train: %d\\tReleased: %d\\n\", this.id, ticket);\n }",
"private void release() {\n\t\tinitialized = false;\n\t\tpause();\n\t\tsetOnCompletionListener(null);\n\t\tgetMp().release();\n\t\tmp = null;\n\t}",
"public void release() throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(holdChannel, 0, 2.0);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to release hole on robot\", e);\n \t\t}\n \t}",
"public void release()\n\t{\n\t\t// System.out.println(usedBy.getName() + \": Releasing \" + toString());\n\t\tthis.usedBy = null;\n\t}",
"protected void releaseFromPrison() {\n\t\tisInPrison = false;\r\n\t\tnumberOfRound = 0;\r\n\t}",
"@Override\n\tpublic void release() {\n\t\tsuper.release();\n\t\t\n\t\tthis.privilegeCode = null;\n\t\tthis.controlId = null;\n\t\tthis.controlType = null;\n\t\tthis.desc = null;\n\t}",
"@Override\n\tpublic void release(EditorInterface i, MouseEvent e) {\n\t\t\n\t}",
"@Override\n public void release() {\n }",
"void release();",
"void release();",
"@Override\r\n\tpublic void release() {\n\r\n\t}",
"public void setReleaseDate(Date date) {\r\n this.releaseDate = date;\r\n // set the fact we have called this method to set the date value\r\n this.hasSetReleaseDate=true;\r\n }",
"public Release release() {\n if (_release == null)\n _release = new Release(this, Keys.BCC_MANIFEST_RELEASE_ID_FK);\n\n return _release;\n }",
"@Override\n public void release() {\n }",
"@Override\n\tpublic void release() {\n\t\tmRendererTask.release();\n\t\tsynchronized (mSync) {\n\t\t\tisRunning = false;\n\t\t\tmSync.notifyAll();\n\t\t}\n//\t\tif (DEBUG) Log.v(TAG, \"release:finished\");\n\t}",
"public void setReleaseDate(Date releaseDate) {\n\t\tthis.releaseDate = releaseDate;\n\t}",
"@Test\n public void canObtainOwnRelease() throws Exception {\n final Release release = release();\n final RtReleaseAsset asset = new RtReleaseAsset(\n new FakeRequest(),\n release,\n 1\n );\n MatcherAssert.assertThat(\n asset.release(),\n Matchers.is(release)\n );\n }",
"public void setReleaseFlag(String releaseFlag) {\r\n\t\tthis.releaseFlag = releaseFlag;\r\n\t}",
"public void release() {\r\n return;\r\n }",
"public void mouseReleased(MouseEvent release) {\r\n\t\tif (SwingUtilities.isLeftMouseButton(release)) {\r\n\t\t\twasReleased = true;\r\n\t\t}\r\n\r\n\t\telse if (SwingUtilities.isRightMouseButton(release)) {\r\n\t\t\trClick = false;\r\n\t\t}\r\n\t}",
"public String getRelease()\n {\n return release;\n }",
"void release(String id);",
"public void _release() {\n throw new NO_IMPLEMENT(reason);\n }",
"public void setReleaseDate(String releaseDate) {\r\n this.releaseDate = releaseDate;\r\n }",
"public void addReleaseListener(ActionListener actionListener) {\r\n jRelease.addActionListener(actionListener);\r\n }",
"public static void release() {\n\t}",
"public void setReleaseDate(String releaseDate) {\n this.releaseDate = releaseDate;\n }",
"public void release() {\n\t\tsuper.release();\r\n\t\tinnerContent = null;\r\n\t\tlabelHead = null;\r\n\t\tscroll = null;\r\n\t}",
"public String gettRelease() {\n return tRelease;\n }",
"public void release() {\n super.release();\n _gboss = null;\n }",
"@KeepForSdk\n public void release() {\n if (this.zzm.decrementAndGet() < 0) {\n Log.e(\"WakeLock\", String.valueOf(this.zze).concat(\" release without a matched acquire!\"));\n }\n String zza = zza(null);\n synchronized (this.zza) {\n if (this.zzi) {\n int i;\n Integer[] numArr = (Integer[]) this.zzj.get(zza);\n if (numArr != null) {\n if (numArr[0].intValue() == 1) {\n this.zzj.remove(zza);\n i = 1;\n } else {\n numArr[0] = Integer.valueOf(numArr[0].intValue() - 1);\n }\n }\n i = 0;\n }\n if (!this.zzi) {\n }\n }\n zza(0);\n }",
"@Override\n\tpublic void createRelease(Version version) {\n\n\t}",
"public final void release() {\n explicitlyLocked = false;\n byteBase.unlock();\n }",
"private void setReleasedStyle() {\n this.setStyle(BUTTON_FREE);\n this.setPrefHeight(47);\n this.setLayoutY(getLayoutY() - 4);\n }",
"public void addOnRelease(Runnable action) {\n onRelease.add(Arguments.checkNull(action));\n }",
"public final void mo23448b() {\n Log.d(this.f26695b, \": release\");\n this.f26696c = null;\n }",
"public void release() {\n\t\t\treset();\n\t\t\tmCurrentMediaPlayer.release();\n\t\t}",
"@Override\n\tpublic void changeToReleaseRefresh() {\n\n\t}",
"Builder addReleasedEvent(PublicationEvent.Builder value);",
"@Override\n public void release() {\n \n }",
"public void checkRelease(){\n\n\t\t//Clear boolean to indicate that the GUIItem is no longer touched\n\t\twhileTouched = false;\n\t\tif (touchObject != null)\n\t\t\tonRelease = true;\n\t}",
"public final void postEvent$sdk_core_api_release(com.bamtech.sdk4.internal.telemetry.RequestType r12) {\n /*\n r11 = this;\n boolean r0 = r11.isInitialized()\n if (r0 != 0) goto L_0x0007\n return\n L_0x0007:\n com.bamtech.sdk4.media.adapters.AbstractPlayerAdapter r0 = r11.playerAdapter\n com.bamtech.sdk4.media.adapters.PlaybackMetrics r0 = r0.getPlaybackMetrics()\n com.bamtech.sdk4.internal.media.StreamSample r1 = r11.createSample$sdk_core_api_release(r0)\n com.bamtech.sdk4.internal.telemetry.EventBuffer r2 = r11.streamBuffer\n r2.postEvent(r1, r12)\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n r2 = 0\n if (r12 == 0) goto L_0x002a\n com.bamtech.sdk4.media.MediaPlayhead r12 = r12.getPlayhead()\n if (r12 == 0) goto L_0x002a\n java.lang.String r12 = r12.getContentId()\n if (r12 == 0) goto L_0x002a\n goto L_0x003a\n L_0x002a:\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n if (r12 == 0) goto L_0x003c\n com.bamtech.sdk4.media.MediaDescriptor r12 = r12.getDescriptor()\n if (r12 == 0) goto L_0x003c\n java.lang.String r12 = r12.getCachedMediaId()\n L_0x003a:\n r5 = r12\n goto L_0x003d\n L_0x003c:\n r5 = r2\n L_0x003d:\n com.bamtech.sdk4.media.storage.PlayheadRecorder r3 = r11.recorder\n r12 = 0\n r4 = 1\n com.bamtech.sdk4.internal.service.ServiceTransaction r4 = serviceTransaction$default(r11, r12, r4, r2)\n long r6 = r0.getCurrentPlayheadInSeconds()\n com.bamtech.sdk4.internal.telemetry.TelemetryClientPayload r12 = r1.getClient()\n com.bamtech.sdk4.internal.media.StreamSampleTelemetryData r12 = (com.bamtech.sdk4.internal.media.StreamSampleTelemetryData) r12\n long r8 = r12.getTimestamp()\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n if (r12 == 0) goto L_0x0063\n com.bamtech.sdk4.media.MediaDescriptor r12 = r12.getDescriptor()\n if (r12 == 0) goto L_0x0063\n java.lang.String r2 = r12.getPlaybackUrl()\n L_0x0063:\n r10 = r2\n io.reactivex.Flowable r12 = r3.recordPlayheadAndBookmark(r4, r5, r6, r8, r10)\n io.reactivex.r r1 = p520io.reactivex.p525e0.C11934b.m38500b()\n io.reactivex.Flowable r12 = r12.mo30086b(r1)\n com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$1 r1 = com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$1.INSTANCE\n com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$2 r2 = com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$2.INSTANCE\n io.reactivex.disposables.Disposable r12 = r12.mo30077a(r1, r2)\n java.lang.String r1 = \"recorder.recordPlayheadA… .subscribe({}, {})\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r12, r1)\n io.reactivex.disposables.CompositeDisposable r1 = r11.compositeDisposable()\n p520io.reactivex.p524d0.C11917a.m38473a(r12, r1)\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n if (r12 == 0) goto L_0x00ad\n com.bamtech.sdk4.media.PlaybackContext r12 = r12.getPlaybackContext()\n if (r12 == 0) goto L_0x00ad\n java.lang.String r2 = r12.getPlaybackSessionId()\n if (r2 == 0) goto L_0x00ad\n com.bamtech.sdk4.media.DefaultQOSPlaybackEventListener r12 = r11.defaultQosPlaybackEventListener\n com.bamtech.sdk4.media.PlaybackSampledEventData r7 = new com.bamtech.sdk4.media.PlaybackSampledEventData\n long r3 = r0.getCurrentPlayheadInSeconds()\n java.lang.Long r5 = r0.getCurrentBitrate()\n com.bamtech.sdk4.media.BitrateType r6 = r0.getBitrateType()\n r1 = r7\n r1.<init>(r2, r3, r5, r6)\n r12.onEvent(r7)\n L_0x00ad:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bamtech.sdk4.internal.media.DefaultStreamSampler.postEvent$sdk_core_api_release(com.bamtech.sdk4.internal.telemetry.RequestType):void\");\n }",
"public void release() {\n changeToUninitialized();\n mHasDisplay = false;\n mPlayer.release();\n }",
"public void setReleaseId(java.lang.Integer releaseId) {\n this.releaseId = releaseId;\n }",
"@Override\n\tpublic void release() {\n\t\tif (!bullet.isRecycled()) {\n\t\t\tbullet.recycle();\n\t\t}\n\t}",
"@Test\r\n\tpublic void testRelease() {\n\t\tBomb bomb = new Bomb(100, 200, 300, 10, null, 0, 0, 0);\r\n\t\tBomb.Coordinates coor = bomb.getReleaseCoordinates();\r\n\t\t\r\n\t\t//making sure that X, Y, Release Alt, and Descent Speed are correct.\r\n\t\tassertEquals(coor.getX(), 100);\r\n\t\tassertEquals(coor.getY(), 200);\r\n\t\tassertEquals(bomb.getReleaseAltitude(), 300);\r\n\t\tassertEquals(bomb.getDescentSpeed(), 10);\r\n\t\t\r\n\t}",
"public void trigger() {\n button.release(true);\n }",
"public void releasePressureToShooter() {\n fire1.set(false);\n fire2.set(false);\n }"
] | [
"0.73491126",
"0.6678814",
"0.66599596",
"0.65723866",
"0.654215",
"0.62893677",
"0.61230683",
"0.60643655",
"0.60558254",
"0.6043833",
"0.6037992",
"0.60009944",
"0.59768236",
"0.5926964",
"0.59251225",
"0.59004456",
"0.58930624",
"0.58710957",
"0.5839414",
"0.58289534",
"0.57848364",
"0.57820946",
"0.5763569",
"0.5721255",
"0.5688357",
"0.56854725",
"0.56827503",
"0.56746393",
"0.5670177",
"0.56650966",
"0.5649223",
"0.5632717",
"0.5627437",
"0.5620526",
"0.56148916",
"0.5610903",
"0.5610903",
"0.5607957",
"0.5607957",
"0.56025714",
"0.5586912",
"0.5561687",
"0.5542192",
"0.5538912",
"0.55359215",
"0.5534211",
"0.5527256",
"0.5527256",
"0.5527256",
"0.5520323",
"0.551783",
"0.5516485",
"0.55129737",
"0.55040246",
"0.55021805",
"0.55007964",
"0.54990345",
"0.5490118",
"0.5481159",
"0.5434369",
"0.54231477",
"0.54231477",
"0.5406444",
"0.54049855",
"0.5393543",
"0.5389487",
"0.5377944",
"0.53685045",
"0.5367419",
"0.53646964",
"0.5361804",
"0.53593713",
"0.5358779",
"0.53585833",
"0.5356214",
"0.5352416",
"0.5338366",
"0.5329914",
"0.53222865",
"0.5314428",
"0.5313653",
"0.53073734",
"0.5306864",
"0.5304584",
"0.530132",
"0.52943325",
"0.5294094",
"0.5290773",
"0.52890176",
"0.5274807",
"0.5265645",
"0.52572346",
"0.52456737",
"0.5244502",
"0.52400476",
"0.52343184",
"0.5232523",
"0.5218594",
"0.51811814",
"0.51658225"
] | 0.7128599 | 1 |
Sets (as xml) the "release" element | public void xsetRelease(org.apache.xmlbeans.XmlString release)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlString target = null;
target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RELEASE$4, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RELEASE$4);
}
target.set(release);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setRelease(java.lang.String release)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RELEASE$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(RELEASE$4);\r\n }\r\n target.setStringValue(release);\r\n }\r\n }",
"public void setRelease(String release)\n {\n this.release = release;\n }",
"public void setReleaseId(int releaseId) { this.releaseId = releaseId; }",
"public void setReleaseDate(Date releaseDate){\n this.releaseDate = releaseDate;\n }",
"public void releaseVersion(String versionValue);",
"public String getRelease()\n {\n return release;\n }",
"@Test\n\t@TestProperties(name = \"Release element ${by}:${locator} \", paramsInclude = { \"by\", \"locator\" })\n\tpublic void releaseElement() {\n\t\tnew Actions(driver).release(findElement(by, locator)).perform();\n\t}",
"public void settRelease(String tRelease) {\n this.tRelease = tRelease == null ? null : tRelease.trim();\n }",
"@Override\n\tpublic void createRelease(Version version) {\n\n\t}",
"public void setReleaseDate(Date releaseDate) {\n this.releaseDate = releaseDate;\n }",
"public void setReleaseDate(String releaseDate) {\r\n this.releaseDate = releaseDate;\r\n }",
"public void setReleaseDate(String releaseDate) {\n this.releaseDate = releaseDate;\n }",
"public void setReleaseTime(Date releaseTime) {\r\n this.releaseTime = releaseTime;\r\n }",
"@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\n\t}",
"public void setReleaseDate(Date date) {\r\n this.releaseDate = date;\r\n // set the fact we have called this method to set the date value\r\n this.hasSetReleaseDate=true;\r\n }",
"@Override\n public void release() {\n // do *not* reset tag attributes\n }",
"public void setReleaseVersion(String version) {\r\n\t\tthis.version = version;\r\n\t}",
"@Test\n public void canObtainOwnRelease() throws Exception {\n final Release release = release();\n final RtReleaseAsset asset = new RtReleaseAsset(\n new FakeRequest(),\n release,\n 1\n );\n MatcherAssert.assertThat(\n asset.release(),\n Matchers.is(release)\n );\n }",
"public void release (WfAssignment from_assigment, String release_info) throws BaseException, NotAssigned {\n throw new BaseException(\"Not implemented\");\n }",
"public void setReleaseDate(Date releaseDate) {\n\t\tthis.releaseDate = releaseDate;\n\t}",
"public String gettRelease() {\n return tRelease;\n }",
"public org.apache.xmlbeans.XmlString xgetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RELEASE$4, 0);\r\n return target;\r\n }\r\n }",
"void release(String dataElementName);",
"public void setReleaseFlag(String releaseFlag) {\r\n\t\tthis.releaseFlag = releaseFlag;\r\n\t}",
"@Override\n\tpublic void setReleaseOnFinish(boolean isRelease) {\n\t\t\n\t}",
"public void setReleaseId(java.lang.Integer releaseId) {\n this.releaseId = releaseId;\n }",
"public void releaseManualCommand() {\n try {\n RequestUtils.writeProperty(DeviceService.localDevice,bacnetDevice,getObjectIdentifier(),\n PropertyIdentifier.presentValue,null,new PriorityValue(new Null()),\n new UnsignedInteger(8));\n LOG.info(\"Release: \" + getObjectIdentifier());\n } catch (BACnetException bac) {\n LOG.warn(\"Cant release: \" + getObjectIdentifier().toString());\n }\n }",
"public void setOriginalReleaseYear( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALRELEASEYEAR, value);\r\n\t}",
"public void unsetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(RELEASE$4, 0);\r\n }\r\n }",
"public java.lang.String getRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(RELEASE$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public Release release() {\n if (_release == null)\n _release = new Release(this, Keys.BCC_MANIFEST_RELEASE_ID_FK);\n\n return _release;\n }",
"public void release() {\n simConnection.doCommand(\"DynamicsSetGearValue DoneControlling\");\n }",
"private void releaseButtonClicked(int i){\n\t\tthis.lvl = new BuilderReleaseLevelController(mc, this, model, i);\n\t\tmc.requestSwap(lvl);\n\t}",
"public Album setRelease_date(Set<String> release_date) {\r\n this.release_date = release_date;\r\n return this;\r\n }",
"void setVersion(String version);",
"void setVersion(String version);",
"public void addOriginalReleaseYear( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), ORIGINALRELEASEYEAR, value);\r\n\t}",
"@Override\n\t public void onRelease() {\n\n\t }",
"public String getReleaseDate() {\r\n return releaseDate;\r\n }",
"public String getReleaseFlag() {\r\n\t\treturn releaseFlag;\r\n\t}",
"public void release() {\n\t\t\n\t}",
"@Override\r\n\tpublic void afterRelease(ReleaseModel rm) throws FtdException {\n\r\n\t}",
"@JsonProperty(\"releaseDate\")\r\n public void setReleaseDate(Date releaseDate) {\r\n this.releaseDate = releaseDate;\r\n }",
"Builder addReleasedEvent(PublicationEvent value);",
"public void release() {\n }",
"public Date getReleaseDate() {\n return releaseDate;\n }",
"@Override\n\tpublic void release() {\n\t\tsuper.release();\n\t\t\n\t\tthis.privilegeCode = null;\n\t\tthis.controlId = null;\n\t\tthis.controlType = null;\n\t\tthis.desc = null;\n\t}",
"public void onRelease(String param1) {\n }",
"public final void postEvent$sdk_core_api_release(com.bamtech.sdk4.internal.telemetry.RequestType r12) {\n /*\n r11 = this;\n boolean r0 = r11.isInitialized()\n if (r0 != 0) goto L_0x0007\n return\n L_0x0007:\n com.bamtech.sdk4.media.adapters.AbstractPlayerAdapter r0 = r11.playerAdapter\n com.bamtech.sdk4.media.adapters.PlaybackMetrics r0 = r0.getPlaybackMetrics()\n com.bamtech.sdk4.internal.media.StreamSample r1 = r11.createSample$sdk_core_api_release(r0)\n com.bamtech.sdk4.internal.telemetry.EventBuffer r2 = r11.streamBuffer\n r2.postEvent(r1, r12)\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n r2 = 0\n if (r12 == 0) goto L_0x002a\n com.bamtech.sdk4.media.MediaPlayhead r12 = r12.getPlayhead()\n if (r12 == 0) goto L_0x002a\n java.lang.String r12 = r12.getContentId()\n if (r12 == 0) goto L_0x002a\n goto L_0x003a\n L_0x002a:\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n if (r12 == 0) goto L_0x003c\n com.bamtech.sdk4.media.MediaDescriptor r12 = r12.getDescriptor()\n if (r12 == 0) goto L_0x003c\n java.lang.String r12 = r12.getCachedMediaId()\n L_0x003a:\n r5 = r12\n goto L_0x003d\n L_0x003c:\n r5 = r2\n L_0x003d:\n com.bamtech.sdk4.media.storage.PlayheadRecorder r3 = r11.recorder\n r12 = 0\n r4 = 1\n com.bamtech.sdk4.internal.service.ServiceTransaction r4 = serviceTransaction$default(r11, r12, r4, r2)\n long r6 = r0.getCurrentPlayheadInSeconds()\n com.bamtech.sdk4.internal.telemetry.TelemetryClientPayload r12 = r1.getClient()\n com.bamtech.sdk4.internal.media.StreamSampleTelemetryData r12 = (com.bamtech.sdk4.internal.media.StreamSampleTelemetryData) r12\n long r8 = r12.getTimestamp()\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n if (r12 == 0) goto L_0x0063\n com.bamtech.sdk4.media.MediaDescriptor r12 = r12.getDescriptor()\n if (r12 == 0) goto L_0x0063\n java.lang.String r2 = r12.getPlaybackUrl()\n L_0x0063:\n r10 = r2\n io.reactivex.Flowable r12 = r3.recordPlayheadAndBookmark(r4, r5, r6, r8, r10)\n io.reactivex.r r1 = p520io.reactivex.p525e0.C11934b.m38500b()\n io.reactivex.Flowable r12 = r12.mo30086b(r1)\n com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$1 r1 = com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$1.INSTANCE\n com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$2 r2 = com.bamtech.sdk4.internal.media.DefaultStreamSampler$postEvent$2.INSTANCE\n io.reactivex.disposables.Disposable r12 = r12.mo30077a(r1, r2)\n java.lang.String r1 = \"recorder.recordPlayheadA… .subscribe({}, {})\"\n kotlin.jvm.internal.Intrinsics.checkReturnedValueIsNotNull(r12, r1)\n io.reactivex.disposables.CompositeDisposable r1 = r11.compositeDisposable()\n p520io.reactivex.p524d0.C11917a.m38473a(r12, r1)\n com.bamtech.sdk4.media.MediaItem r12 = r11.getMediaItem()\n if (r12 == 0) goto L_0x00ad\n com.bamtech.sdk4.media.PlaybackContext r12 = r12.getPlaybackContext()\n if (r12 == 0) goto L_0x00ad\n java.lang.String r2 = r12.getPlaybackSessionId()\n if (r2 == 0) goto L_0x00ad\n com.bamtech.sdk4.media.DefaultQOSPlaybackEventListener r12 = r11.defaultQosPlaybackEventListener\n com.bamtech.sdk4.media.PlaybackSampledEventData r7 = new com.bamtech.sdk4.media.PlaybackSampledEventData\n long r3 = r0.getCurrentPlayheadInSeconds()\n java.lang.Long r5 = r0.getCurrentBitrate()\n com.bamtech.sdk4.media.BitrateType r6 = r0.getBitrateType()\n r1 = r7\n r1.<init>(r2, r3, r5, r6)\n r12.onEvent(r7)\n L_0x00ad:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bamtech.sdk4.internal.media.DefaultStreamSampler.postEvent$sdk_core_api_release(com.bamtech.sdk4.internal.telemetry.RequestType):void\");\n }",
"public void release() {\n }",
"private void release(int ticket) {\n trackStatus[ticket].release();\n if (DEBUG) System.err.printf(\"Train: %d\\tReleased: %d\\n\", this.id, ticket);\n }",
"com.djt.cvpp.ota.orfin.vadrevent.mapper.dto.VadrRelease publishVadrReleaseEvent() \n\tthrows \n\t\tEntityAlreadyExistsException, \n\t\tValidationException;",
"Builder addReleasedEvent(PublicationEvent.Builder value);",
"private void testRelease()\n {\n if(gamepad1.x) {\n // move to 0 degrees.\n servoLeft.setPosition(0);\n //servoRight.setPosition(0);\n }\n telemetry.addData(\"Servo Left Posit++backInc;ion\", servoLeft.getPosition());\n //telemetry.addData(\"Servo Right Position\", servoRight.getPosition());\n }",
"public static void setOriginalReleaseYear( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, ORIGINALRELEASEYEAR, value);\r\n\t}",
"public Date getReleaseDate() {\n\t\treturn releaseDate;\n\t}",
"public java.lang.Integer getReleaseId() {\n return releaseId;\n }",
"void release(String id);",
"protected void release()\n {\n }",
"Builder addReleasedEvent(String value);",
"@Override\n\tpublic void adjustControlsOnRelease(RuntimeParams runtimeParams)\n\t{\n\t\t\n\t}",
"public Date getReleaseDate(){\n return releaseDate;\n }",
"public void release()\r\n\t{\r\n\t\tsuper.release();\r\n\t\t_href = null;\r\n\t\t_box = null;\r\n\t\t_bracket = null;\r\n\t\t_bracketFont = null;\r\n\r\n\t}",
"@Override\n\tpublic void release() {\n\n\t}",
"@Override\n\tpublic void release() {\n\n\t}",
"public synchronized void release() {\n m_available = true;\n notify();\n }",
"public void release();",
"public void release();",
"public void releasePackwave(){\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"AllCheckBox\"), \"Select Wave\");\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnMore\"), \"More Button\");\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnPackWaves\"), \"Pack Waves Option\");\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"Packwavecheckbox\"), \"Select Pack Wave\");\n libManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnRelease\"), \"Release Button\");\n\n }",
"public void setXml(java.lang.String newXml);",
"@Override\n\tpublic void release() {\n\t\t\n\t}",
"@Override\r\n\tpublic void release()\r\n\t{\n\t}",
"public void setTitleVersion(String val){\n\t\ttvr = val;\n\t}",
"public void release() {\n super.release();\n this.name = null;\n this.originalName = null;\n this.originalNesting = null;\n this.originalNestingName = null;\n }",
"public String getDateOfRelease() {\n return dateOfRelease;\n }",
"void setVersion(long version);",
"public void setVersion(String version);",
"@Override\n\tpublic void release() {\n\t}",
"void xsetProductDescription(x0401.oecdStandardAuditFileTaxPT1.SAFPTProductDescription productDescription);",
"public void setOriginalReleaseYear(java.lang.Integer value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALRELEASEYEAR, value);\r\n\t}",
"abstract void putXMLProperty(XMLName name, Object value);",
"@Override\n public void release() {\n }",
"public abstract void release();",
"public abstract void release();",
"public abstract void release();",
"public boolean isReadyForRelease() {\r\n return true;\r\n }",
"public void setOpeningVersion(TicketJira ticket, List<ReleaseJira> releases, ReleaseJira fv) {\r\n\t\t\r\n\t\tDate creationDate = ticket.getCreationDate();\r\n\t\t\r\n\t\tString openingVersionName = \"\";\r\n\t\tReleaseJira openingVersion = null;\r\n\t\tDate futureDate = DateCreator.getFutureDate();\r\n\t\tfor (ReleaseJira release: releases) {\r\n\t\t\t//cond1 considera solo le release (non strettamente) successive alla data di creazione del ticket\r\n\t\t\t//cond2 permette di aggiornare il risultato alla più vecchia release che soddisfa cond1\r\n\t\t\tboolean cond1 = creationDate.compareTo(release.getReleaseDate()) <= 0;\r\n\t\t\tboolean cond2 = release.getReleaseDate().before(futureDate);\r\n\t\t\tif(cond1 && cond2) {\r\n\t\t\t\topeningVersion = release;\r\n\t\t\t\tfutureDate = release.getReleaseDate();\r\n\t\t\t\topeningVersionName = release.getName();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tif(openingVersion == null) {\r\n\t\t\t\tthrow new NullPointerException(\"Opening Version null\");\r\n\t\t\t} else if(openingVersion.getReleaseDate().after(fv.getReleaseDate())) {\r\n\t\t\t\tov = fv.getName();\r\n\t\t\t} else {\r\n\t\t\t\tov = openingVersionName;\r\n\t\t\t}\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tmylogger.log(Level.SEVERE, \"Opening Version null\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"@CompositeValue(ignore=true)\n @XmlAttribute(name=\"version\")\n public void setVersion(Version version)\n {\n versionRange = new VersionRange(version, true, version, true);\n }",
"public void release()\n {\n _pixxConfiguration=null;\n }",
"@Override\r\n\tpublic void setVersion(int version) {\n\r\n\t}",
"void _release();",
"public void setVersion(Number value) {\n setAttributeInternal(VERSION, value);\n }",
"public static void addOriginalReleaseYear( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, ORIGINALRELEASEYEAR, value);\r\n\t}",
"public void setElement(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/element\",v);\n\t\t_Element=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"public void setAttribute(String string, Product product) {\n\t\t\n\t}",
"@Override\r\n\tpublic void release() {\n\r\n\t}",
"@Override\n public void release() {\n }",
"public void setElement(String newElem) { element = newElem;}",
"public void release()\n\t{\n\t\t// System.out.println(usedBy.getName() + \": Releasing \" + toString());\n\t\tthis.usedBy = null;\n\t}"
] | [
"0.7471408",
"0.6984289",
"0.6159695",
"0.6002463",
"0.59759974",
"0.5942281",
"0.5857012",
"0.5832048",
"0.58269143",
"0.5826031",
"0.5761912",
"0.57217824",
"0.5666408",
"0.5665833",
"0.5661654",
"0.5649218",
"0.5631256",
"0.56107026",
"0.56000334",
"0.55960155",
"0.5588521",
"0.5582674",
"0.55232537",
"0.5504419",
"0.54632723",
"0.54622436",
"0.54577583",
"0.54549164",
"0.54387134",
"0.5431689",
"0.53621405",
"0.52605385",
"0.52284664",
"0.52027977",
"0.5198804",
"0.5164756",
"0.5164756",
"0.5131089",
"0.5106498",
"0.50995004",
"0.5095487",
"0.50643164",
"0.50608003",
"0.50396276",
"0.50373787",
"0.50265783",
"0.50206256",
"0.5016998",
"0.50160295",
"0.50155735",
"0.50134206",
"0.5010192",
"0.4999895",
"0.49791092",
"0.49667484",
"0.49627244",
"0.49546278",
"0.49363977",
"0.49359626",
"0.49347785",
"0.49179655",
"0.49137437",
"0.48886615",
"0.48793212",
"0.48788232",
"0.48788232",
"0.48785573",
"0.485197",
"0.485197",
"0.48456186",
"0.48445776",
"0.48427805",
"0.48341367",
"0.48315132",
"0.48260507",
"0.48196617",
"0.48037598",
"0.4788905",
"0.47780603",
"0.4769252",
"0.47676528",
"0.47655",
"0.47600088",
"0.4752391",
"0.4752391",
"0.4752391",
"0.47451392",
"0.4741485",
"0.47412047",
"0.47335598",
"0.47272608",
"0.47212735",
"0.47010082",
"0.46905798",
"0.46841723",
"0.46838808",
"0.46736",
"0.46694192",
"0.4667673",
"0.46637723"
] | 0.75805753 | 0 |
Unsets the "release" element | public void unsetRelease()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(RELEASE$4, 0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void OnRelease() {\n\t\tsetSelected(false);\n\t}",
"@Override\n public void release() {\n // do *not* reset tag attributes\n }",
"void unsetRef();",
"void unsetTarget();",
"private void release() {\n\t\tinitialized = false;\n\t\tpause();\n\t\tsetOnCompletionListener(null);\n\t\tgetMp().release();\n\t\tmp = null;\n\t}",
"void unsetDesc();",
"void unsetValueAttachment();",
"public void release(){\n\t\tthis.motor.forward();\n\t}",
"void unset() {\n size = min = pref = max = UNSET;\n }",
"public void release()\r\n\t{\r\n\t\tsuper.release();\r\n\t\t_href = null;\r\n\t\t_box = null;\r\n\t\t_bracket = null;\r\n\t\t_bracketFont = null;\r\n\r\n\t}",
"void unsetWheel();",
"public void release() {\n\t\tsuper.release();\r\n\t\tinnerContent = null;\r\n\t\tlabelHead = null;\r\n\t\tscroll = null;\r\n\t}",
"public void unsetTpd()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(TPD$34, 0);\r\n }\r\n }",
"public void release() {\n\t\t\treset();\n\t\t\tmCurrentMediaPlayer.release();\n\t\t}",
"public void xsetRelease(org.apache.xmlbeans.XmlString release)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(RELEASE$4, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(RELEASE$4);\r\n }\r\n target.set(release);\r\n }\r\n }",
"void unsetTag();",
"protected void releaseFromPrison() {\n\t\tisInPrison = false;\r\n\t\tnumberOfRound = 0;\r\n\t}",
"void unsetEvent();",
"public void unset(){\n\t\tcurrentInst = -1;\n\t}",
"public void unsetTpg()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(TPG$30, 0);\r\n }\r\n }",
"public void unAssign(){\n\t\tthis.value = 0;\n\t}",
"public void release() {\n changeToUninitialized();\n mHasDisplay = false;\n mPlayer.release();\n }",
"public void unsetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GIBBMT$4, 0);\r\n }\r\n }",
"public void remTarget(){\n rem(DmpDMSAG.__target);\n }",
"void unsetAuto();",
"public void unsetInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(INTERNAL$4, 0);\n }\n }",
"@Override\n\tpublic void release() {\n\t\tsuper.release();\n\t\t\n\t\tthis.privilegeCode = null;\n\t\tthis.controlId = null;\n\t\tthis.controlType = null;\n\t\tthis.desc = null;\n\t}",
"void unpublish() {\n pendingOps.decrementAndGet();\n }",
"public void unsetFrame()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(FRAME$24);\n }\n }",
"public void release() {\n this.buffer = EMPTY_ARRAY;\n this.elementsCount = 0;\n }",
"void unsetValue();",
"void unsetValue();",
"public void release()\n {\n _pixxConfiguration=null;\n }",
"public final void mo23448b() {\n Log.d(this.f26695b, \": release\");\n this.f26696c = null;\n }",
"public void deselect() {\n\n // reset the pin value\n pin.reset();\n\n }",
"void unsetSurfaceRefs();",
"private void releaseAirfield() {\n\t\tlandedAirfield.setOccupied(false);\n\t}",
"@Test\n\t@TestProperties(name = \"Release element ${by}:${locator} \", paramsInclude = { \"by\", \"locator\" })\n\tpublic void releaseElement() {\n\t\tnew Actions(driver).release(findElement(by, locator)).perform();\n\t}",
"public void release() {\n synchronized (mLock) {\n super.release();\n detachMediaController();\n setContentUri(PlayMode.NONE, null);\n setContentFd(PlayMode.NONE, null);\n setCurrentState(State.RELEASED);\n mContext = null;\n }\n }",
"public void unsetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PRF$26, 0);\r\n }\r\n }",
"public void deselect();",
"public void releasePressureToShooter() {\n fire1.set(false);\n fire2.set(false);\n }",
"public void unsetRoadwayRef()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ROADWAYREF$16);\r\n }\r\n }",
"public void release() {\r\n return;\r\n }",
"public void release() {\r\n super.release();\r\n this.page = null;\r\n }",
"@Override\r\n\tpublic void unsetGiveValue() {\n\t\t\r\n\t}",
"@Override\n public void release() {\n\n super.release();\n collection = null;\n labelName = null;\n labelProperty = null;\n name = null;\n property = null;\n style = null;\n styleClass = null;\n\n }",
"public void release()\n\t{\n\t\t// System.out.println(usedBy.getName() + \": Releasing \" + toString());\n\t\tthis.usedBy = null;\n\t}",
"public void unsetDesc()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(DESC$10);\r\n }\r\n }",
"private void releaseArrow()\n {\n \tif(bowCharge >= minReleaseCharge)\n \t{\n\t currentArrow.release(bowCharge);\n\t firedArrows.add(currentArrow);\n\t System.out.println(\"released arrow, power \" + bowCharge\n\t \t+ \" angle \" + currentArrow.getMovementAngle()); \n \t}\n \tisChargingArrow = false;\n \tcurrentArrow = null;\n \tbowCharge = 0;\n }",
"public void unsetPart()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PART$2, 0);\n }\n }",
"public void deselect(){\n\t\tPIN.reset();\n\t}",
"public void clearRemovalTag() {\n\t levelOfRemoval = 0;\n\t}",
"void unsetDescription();",
"void unsetDescription();",
"public void unsetTag(String tagName);",
"public void remove () { this.setAsDown(); n.remove(); }",
"public void release() {\n super.release();\n this.name = null;\n this.originalName = null;\n this.originalNesting = null;\n this.originalNestingName = null;\n }",
"public void unsetAccession()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ACCESSION$2, 0);\r\n }\r\n }",
"public void unsetPir()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PIR$12, 0);\r\n }\r\n }",
"@Override\n public void release() {\n super.release();\n setBorder(null);\n setCollapsible(null);\n setFrame(null);\n setHeader(null);\n setHeight(null);\n setRowId(null);\n setShowLines(null);\n setTitle(null);\n setWidth(null);\n setShowRoot(null);\n setEnableDragDrop(null);\n setStyleLeaf(null);\n setStyleNode(null);\n setLoadAll(null);\n setStyleOdd(null);\n setStyleEven(null);\n setStyleLinesContainer(null);\n }",
"public void setReleased() {\n currentXOffset += xOffset;\n currentYOffset += yOffset;\n xOffset = 0;\n yOffset = 0;\n\n gameChanged = true;\n }",
"@Override\n\t public void onRelease() {\n\n\t }",
"void unsetBox();",
"@Override\n\tpublic void release() {\n\t\tif (!bullet.isRecycled()) {\n\t\t\tbullet.recycle();\n\t\t}\n\t}",
"void unsetControlPosition();",
"public final void releaseNoCopy() {\n explicitlyLocked = false;\n byteBase.unlockNoCopy();\n }",
"public void release() { \r\n\t remoteControlClient = null;\r\n\t }",
"void release(String dataElementName);",
"@Override\r\n public void release() {\r\n videoRendererStatus = NexVideoRendererStatus.VIDEO_RENDERER_NONE;\r\n if(mBaseView instanceof NexSurfaceTextureView) {\r\n ((NexSurfaceTextureView)mBaseView).release();\r\n }\r\n mNexPlayer = null;\r\n mSurface.release();\r\n setListener(null);\r\n }",
"public void release() {\n\t\t\n\t}",
"void unsetExchange();",
"public void release() {\n super.release();\n _gboss = null;\n }",
"void unsetParlay();",
"public void unsetPresent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PRESENT$0, 0);\n }\n }",
"void unsetDuration();",
"void unsetDuration();",
"void unsetDuration();",
"private void tear() {\n\t\tthis.torn = true;\n\t\tthis.getContainer().addToContents(getDucatContent());\n\t\tthis.getContainer().removeFromContents(this);\n\t}",
"public void unpatchAfterRelease( UGen ugen )\n\t{\n\t unpatchAfterRelease = true;\n\t ugenOutput = ugen;\n\t}",
"public void release() {\n simConnection.doCommand(\"DynamicsSetGearValue DoneControlling\");\n }",
"void release() {\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tpoint[i].sticked = false;\n\t\t\tpoint[i].beginPosition.set(point[i].position);\n\t\t}\n\n\t\tdragLock = false; //\n\t\tmouseLockedToLine = false;\n\t\tpolygonLockedToMouse = false;\n\t\t// pointLockedToMouse = false;\n\t\trotationLockedToMouse = false;\n\t\tselectedLine = -1;\n\n\t\t// isSelected =\n\t\t// pointMode = 0; // switch to deafult point mode\n\n\t\t// TODO: release all lines in this class\n\t}",
"@Override\n public void deselectGolem() {\n }",
"public void unsetGenbank()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GENBANK$8, 0);\r\n }\r\n }",
"public void unsetReset() {\n\t\twasReset=false;\n\t}",
"void unsetValueQuantity();",
"public void release() {\n\n mTextureRender = null;\n mSurfaceTexture = null;\n }",
"private void detener() {\n player.stop();\n player.release();\n player = null;\n }",
"public void _unlinkPresentation(PresentationElement presentation1);",
"public void releasePressureToReturn() {\n returnValve.set(false);\n }",
"@Override\n public void release() {\n output = null;\n super.release();\n }",
"public void unsetGi()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GI$22, 0);\r\n }\r\n }",
"public void remove() {\r\n setRemovable(true);\r\n }",
"void unsetKeyWheel();",
"void unsetState();",
"public void unpin();",
"public void unpin();",
"public void unsetVersion()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(VERSION$4, 0);\n }\n }",
"void uncap();",
"public void reset(){\n currentStage = 0;\n currentSide = sideA;\n }"
] | [
"0.6828852",
"0.6497184",
"0.6406601",
"0.6398087",
"0.63434255",
"0.6276381",
"0.6259598",
"0.62535626",
"0.6185199",
"0.618355",
"0.6176652",
"0.6175432",
"0.61273384",
"0.6119398",
"0.61183786",
"0.61022604",
"0.6095225",
"0.6088521",
"0.6046431",
"0.60444903",
"0.6041426",
"0.6025168",
"0.602135",
"0.6007289",
"0.59963596",
"0.59948134",
"0.598882",
"0.59855115",
"0.59838706",
"0.5966726",
"0.59613067",
"0.59613067",
"0.5944724",
"0.5942275",
"0.5941604",
"0.5941026",
"0.59386915",
"0.5923688",
"0.5919704",
"0.59116775",
"0.5909552",
"0.5883391",
"0.58695614",
"0.5854509",
"0.5852786",
"0.58512145",
"0.5844108",
"0.5841821",
"0.5834474",
"0.5832742",
"0.58279693",
"0.58137065",
"0.5813382",
"0.58109885",
"0.58109885",
"0.5801117",
"0.5800021",
"0.5798626",
"0.5795672",
"0.57947564",
"0.5792238",
"0.57915974",
"0.57913494",
"0.57892907",
"0.57820815",
"0.5781911",
"0.57813483",
"0.5770153",
"0.5769629",
"0.576014",
"0.57600844",
"0.5757902",
"0.5757511",
"0.575589",
"0.5738699",
"0.5737557",
"0.5737557",
"0.5737557",
"0.5734113",
"0.5723841",
"0.572351",
"0.5721225",
"0.5717324",
"0.57160646",
"0.5700882",
"0.56971437",
"0.56966144",
"0.56952554",
"0.5692332",
"0.56920433",
"0.56913215",
"0.5687118",
"0.5684938",
"0.56818837",
"0.5680781",
"0.5679781",
"0.5679781",
"0.5675331",
"0.56751174",
"0.5671581"
] | 0.79352534 | 0 |
Gets the "version" element | public java.math.BigInteger getVersion()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VERSION$6, 0);
if (target == null)
{
return null;
}
return target.getBigIntegerValue();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Number getVersion() {\n return (Number) getAttributeInternal(VERSION);\n }",
"public String getVersion () {\r\n return version;\r\n }",
"public String getVersion(){\r\n return version;\r\n }",
"public String getVersion() {\r\n return version;\r\n }",
"public String getVersion()\n {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public java.lang.String getVersion() {\r\n return version;\r\n }",
"public String getVersion() {\n return this.version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion()\n {\n return version;\n }",
"public String getVersion()\n {\n return version;\n }",
"public org.hl7.fhir.String getVersion()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().find_element_user(VERSION$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public String getVersion()\n {\n return ver;\n }",
"public Version getVersion();",
"public String getVersion () {\n return this.version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getProductVersion();",
"public static final String getVersion() { return version; }",
"public static final String getVersion() { return version; }",
"public static String getVersion() {\n\t\treturn version;\r\n\t}",
"public String getVersion();",
"public String getVersion();",
"public String getVersion();",
"public String getVersion();",
"public static String getVersion() {\n\t\treturn version;\n\t}",
"public String getVersion() {\r\n\t\treturn version;\r\n\t}",
"public String getVersion() {\n\t\treturn version;\n\t}",
"public String getVersion() {\n return _version;\n }",
"public String version() {\n return this.version;\n }",
"public String version() {\n return this.version;\n }",
"public String version() {\n return this.version;\n }",
"public String version() {\n return this.version;\n }",
"Version getVersion();",
"Version getVersion();",
"Version getVersion();",
"Version getVersion();",
"public java.lang.String getVersion() {\n return version_;\n }",
"public String getVersion() {\n\t\treturn _version;\n\t}",
"public final String getVersion() {\n return version;\n }",
"public static String getVersion() {\n return version;\n }",
"public static String getVersion() {\n return version;\n }",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"public CachetVersion getVersion() {\n JsonNode rootNode = get(\"version\");\n CachetVersion version = CachetVersion.parseRootNode(rootNode);\n\nSystem.out.println(\"SSDEDBUG: version = \" + version.getVersion() + \" (latest=\" + version.isLatest() + \")\");\n return version;\n }",
"public Integer getVersion() {\r\n return version;\r\n }",
"public Version getVersion() {\n return version;\n }",
"public static String getVersion() {\r\n\t\treturn VERSION;\r\n\t}",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public String getVersionNumber ();",
"@Override\n @XmlElement(name = \"version\", required = true)\n public synchronized InternationalString getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public static String getAppVersion(){\r\n return getProperty(\"version\");\r\n }",
"@CheckForNull\n String getVersion();",
"public int getVersion() {\n return this.version;\n }",
"public int getVersion()\n {\n return info.getVersion().intValueExact();\n }",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"public String getVersionNum();",
"public String getVersion() {\n\t\treturn (VERSION);\n\t}",
"public String getVer() {\r\n return this.ver;\r\n }",
"public Integer version() {\n return this.version;\n }",
"public final int getVersion() {\n return version;\n }",
"public static synchronized String getVersion(String name) {\r\n try {\r\n Document doc = getDocument();\r\n Element root = doc.getRootElement();\r\n Iterator iter = root.elementIterator(\"product\");\r\n while (iter.hasNext()) {\r\n Element product = (Element)iter.next();\r\n if (product.attributeValue(\"name\").equals(name)) {\r\n return product.attributeValue(\"version\");\r\n }\r\n }\r\n }\r\n catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }",
"int getCurrentVersion();",
"public long getVersion() {\n return version;\n }",
"public long getVersion() {\n return version;\n }"
] | [
"0.75245136",
"0.74244004",
"0.74192196",
"0.73962617",
"0.7371216",
"0.7344544",
"0.7344544",
"0.7343941",
"0.73345256",
"0.73309046",
"0.73309046",
"0.73309046",
"0.73309046",
"0.73309046",
"0.73309046",
"0.73309046",
"0.73309046",
"0.73309046",
"0.73309046",
"0.73309046",
"0.73269606",
"0.73269606",
"0.73130655",
"0.73047286",
"0.73012745",
"0.73002905",
"0.7293445",
"0.72916156",
"0.72891754",
"0.72891754",
"0.72884685",
"0.7284831",
"0.7284831",
"0.7284831",
"0.7284831",
"0.7280195",
"0.7271355",
"0.7264011",
"0.72464097",
"0.7238663",
"0.7238663",
"0.7238663",
"0.7238663",
"0.72241616",
"0.72241616",
"0.72241616",
"0.72241616",
"0.721224",
"0.72084165",
"0.7205545",
"0.720438",
"0.720438",
"0.71615416",
"0.71615416",
"0.71615416",
"0.71615416",
"0.71615416",
"0.71615416",
"0.71615416",
"0.71615416",
"0.7154307",
"0.71401125",
"0.71368253",
"0.7128325",
"0.71268386",
"0.71268386",
"0.71268386",
"0.71268386",
"0.71268386",
"0.7086664",
"0.7085028",
"0.70811874",
"0.70811874",
"0.70811874",
"0.70811874",
"0.70811874",
"0.70811874",
"0.70754457",
"0.7074868",
"0.7065754",
"0.70639485",
"0.70628196",
"0.70628196",
"0.70628196",
"0.70628196",
"0.70628196",
"0.70628196",
"0.70628196",
"0.70628196",
"0.70628196",
"0.70628196",
"0.70628196",
"0.7056161",
"0.70266724",
"0.7021594",
"0.7017206",
"0.70114917",
"0.69826376",
"0.69707483",
"0.6966341",
"0.6966341"
] | 0.0 | -1 |
Gets (as xml) the "version" element | public org.apache.xmlbeans.XmlInteger xgetVersion()
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInteger target = null;
target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(VERSION$6, 0);
return target;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property String getXmlVersion();",
"@Override\n @XmlElement(name = \"version\", required = true)\n public synchronized InternationalString getVersion() {\n return version;\n }",
"@Override\n public String getXmlVersion() {\n return mXml11 ? XmlConsts.XML_V_11_STR : XmlConsts.XML_V_10_STR;\n }",
"public String getVersion();",
"public String getVersion();",
"public String getVersion();",
"public String getVersion();",
"public String getVersion(){\r\n return version;\r\n }",
"public String getVersion () {\r\n return version;\r\n }",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"public String getProductVersion();",
"public String getVersion() {\r\n return version;\r\n }",
"public java.lang.String getVersion() {\r\n return version;\r\n }",
"public String getVersion()\n {\n return version;\n }",
"String getVersion() throws IOException, SoapException;",
"public String getVersion()\n {\n return version;\n }",
"public String getVersion()\n {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public String getVersion() {\n return version;\n }",
"public static String getVersion() {\n\t\treturn version;\r\n\t}",
"public Number getVersion() {\n return (Number) getAttributeInternal(VERSION);\n }",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"String getVersion();",
"public static String getVersion() {\n\t\treturn version;\n\t}",
"public String getVersion() {\r\n\t\treturn version;\r\n\t}",
"public String getVersion() {\n\t\treturn version;\n\t}",
"public String getVersion() {\n return version;\n }",
"public static final String getVersion() { return version; }",
"public static final String getVersion() { return version; }",
"public String getVersion()\n {\n return ver;\n }",
"public String getVersion () {\n return this.version;\n }",
"public java.lang.String getVersion() {\n return version_;\n }",
"Version getVersion();",
"Version getVersion();",
"Version getVersion();",
"Version getVersion();",
"public String version() {\n return this.version;\n }",
"public String version() {\n return this.version;\n }",
"public String version() {\n return this.version;\n }",
"public String version() {\n return this.version;\n }",
"public static String getVersion() {\r\n\t\treturn VERSION;\r\n\t}",
"public String getVersion() {\n return this.version;\n }",
"public String getVersion() {\n\t\treturn (VERSION);\n\t}",
"public final String getVersion() {\n return version;\n }",
"public Version getVersion();",
"public String getVersion() {\n return _version;\n }",
"public static String getVersion() {\n return version;\n }",
"public static String getVersion() {\n return version;\n }",
"public String getVersion() {\n\t\treturn _version;\n\t}",
"void visitElement_version(org.w3c.dom.Element element) { // <version>\n // element.getValue();\n org.w3c.dom.NamedNodeMap attrs = element.getAttributes();\n for (int i = 0; i < attrs.getLength(); i++) {\n org.w3c.dom.Attr attr = (org.w3c.dom.Attr)attrs.item(i);\n if (attr.getName().equals(\"name\")) { // <version name=\"???\">\n list.versions.add(attr.getValue());\n }\n }\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }",
"public String getVersionNumber ();",
"@CheckForNull\n String getVersion();",
"public String getVersion() {\r\n return (\"2004.09\");\r\n }",
"java.lang.String getApplicationVersion();",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"public int getVersion() {\n return version;\n }",
"int getCurrentVersion();",
"public static String getAppVersion(){\r\n return getProperty(\"version\");\r\n }",
"public Integer getVersion() {\r\n return version;\r\n }",
"public String getVersion()\r\n {\r\n return(\"Ver. 1.0\");\r\n }",
"@Override\n public String toString() {\n return versionString;\n }",
"public String getAppVersion() { return appVersion; }",
"public org.hl7.fhir.String getVersion()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().find_element_user(VERSION$4, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public String getVersion() {\n\t\tString version = \"0.0.0\";\n\n\t\tPackageManager packageManager = getPackageManager();\n\t\ttry {\n\t\t\tPackageInfo packageInfo = packageManager.getPackageInfo(\n\t\t\t\t\tgetPackageName(), 0);\n\t\t\tversion = packageInfo.versionName;\n\t\t} catch (NameNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn version;\n\t}",
"public String getVersion() {\n\t\tString version = \"0.0.0\";\n\n\t\tPackageManager packageManager = getPackageManager();\n\t\ttry {\n\t\t\tPackageInfo packageInfo = packageManager.getPackageInfo(\n\t\t\t\t\tgetPackageName(), 0);\n\t\t\tversion = packageInfo.versionName;\n\t\t} catch (NameNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn version;\n\t}",
"public java.lang.String getOrganizationVersion()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ORGANIZATIONVERSION$6, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }",
"public Integer getVersion() {\n return version;\n }"
] | [
"0.73049045",
"0.7093985",
"0.7052124",
"0.6911365",
"0.6911365",
"0.6911365",
"0.6911365",
"0.6902582",
"0.6862813",
"0.68454206",
"0.68454206",
"0.68454206",
"0.68454206",
"0.68454206",
"0.68454206",
"0.68454206",
"0.68454206",
"0.680917",
"0.68014634",
"0.67995733",
"0.6780136",
"0.6777377",
"0.67433053",
"0.67433053",
"0.6739911",
"0.6739911",
"0.6739911",
"0.6739911",
"0.6739911",
"0.6739911",
"0.6739911",
"0.6739911",
"0.6739911",
"0.6739911",
"0.6739911",
"0.6734199",
"0.6734199",
"0.67302483",
"0.67277753",
"0.6725265",
"0.6725265",
"0.6725265",
"0.6725265",
"0.6725265",
"0.6725265",
"0.6725265",
"0.6725265",
"0.6725265",
"0.6725265",
"0.6725265",
"0.67163223",
"0.6713779",
"0.6696627",
"0.6688889",
"0.667926",
"0.667926",
"0.66774344",
"0.6673191",
"0.66681165",
"0.66565394",
"0.66565394",
"0.66565394",
"0.66565394",
"0.6656527",
"0.6656527",
"0.6656527",
"0.6656527",
"0.6652228",
"0.66383314",
"0.66214716",
"0.6614108",
"0.6608807",
"0.6602572",
"0.6600496",
"0.6600496",
"0.6589111",
"0.65516406",
"0.6518615",
"0.6497447",
"0.6492273",
"0.6478654",
"0.64772964",
"0.64772964",
"0.64772964",
"0.64772964",
"0.64772964",
"0.64757794",
"0.6473268",
"0.6451252",
"0.64366806",
"0.6434241",
"0.6432022",
"0.6408553",
"0.64037794",
"0.64037794",
"0.6401197",
"0.6400409",
"0.6400409",
"0.6400409",
"0.6400409",
"0.6400409"
] | 0.0 | -1 |
True if has "version" element | public boolean isSetVersion()
{
synchronized (monitor())
{
check_orphaned();
return get_store().count_elements(VERSION$6) != 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasVersion();",
"boolean hasVersion();",
"boolean hasVersionNumber();",
"public boolean isSetVersion() {\n return this.version != null;\n }",
"public boolean isSetVersion() {\n return this.version != null;\n }",
"public boolean isVersion()\n {\n return !getVersion().isNull();\n }",
"@java.lang.Override\n public boolean hasVersion() {\n return instance.hasVersion();\n }",
"public boolean isSetVersion()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(VERSION$4) != 0;\n }\n }",
"boolean hasCurrentVersion();",
"public boolean hasVersion() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasVersion() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isSetVersion() {\n return EncodingUtils.testBit(__isset_bitfield, __VERSION_ISSET_ID);\n }",
"boolean hasPaymentDetailsVersion();",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean readVersionInfo() {\n\t\tboolean flag = oTest.readVersionInfo();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"@java.lang.Override\n public boolean hasVersion() {\n return ((bitField0_ & 0x00000002) != 0);\n }",
"public boolean isSetOrganizationVersion()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ORGANIZATIONVERSION$6) != 0;\r\n }\r\n }",
"boolean hasRpcVersion();",
"boolean hasRpcVersion();",
"public boolean hasEnvelopeVersion() {\n return fieldSetFlags()[12];\n }",
"public boolean hasEnsemblVersion() {\n return fieldSetFlags()[2];\n }",
"public boolean isLastVersion();",
"public boolean isFirstVersion();",
"public boolean hasNewVersion() {\n String newVersion = newVersionName();\r\n if(TextUtils.isEmpty(newVersion)) {\r\n return false;\r\n }\r\n\r\n if(newVersion.indexOf('.') == -1) {\r\n return false;\r\n }\r\n String[] newVerNums = newVersion.split(\"\\\\.\");\r\n if(newVerNums.length != 2) {\r\n return false;\r\n }\r\n\r\n int newMajorVersion = 0;\r\n try {\r\n newMajorVersion = Integer.valueOf(newVerNums[0]);\r\n } catch (NumberFormatException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n int newMinorVersion = 0;\r\n\r\n try {\r\n newMinorVersion = Integer.valueOf(newVerNums[1]);\r\n } catch (NumberFormatException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n\r\n if(newMajorVersion > mMajorVersion) {\r\n Log.i(LOG_TAG, \"find new major version update + \" + newVersionUrl());\r\n return true;\r\n } else if(newMajorVersion == mMajorVersion) {\r\n if(newMinorVersion > mMinorVersion) {\r\n Log.i(LOG_TAG, \"find new minor version update + \" + newVersionUrl());\r\n return true;\r\n }\r\n }\r\n Log.i(LOG_TAG, \"no new version found.\");\r\n\r\n return false;\r\n }",
"default boolean doesUpdateExist(String version) {\n return !getLatestVersion().getVersion().equals(version);\n }",
"public boolean isValid() {\n return (identifier != null) || version.getVersion().equals(\"0.1\");\n }",
"static boolean VersionDeclVersion(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"VersionDeclVersion\")) return false;\n if (!nextTokenIs(b, K_VERSION)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeToken(b, K_VERSION);\n p = r; // pin = 1\n r = r && report_error_(b, Version(b, l + 1));\n r = p && VersionDeclVersion_2(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }",
"private boolean checkForVersionProperties(DeployBeanDescriptor<?> desc) {\n for (DeployBeanProperty prop : desc.propertiesBase()) {\n if (prop.isVersionColumn()) {\n return true;\n }\n }\n return false;\n }",
"boolean hasVersionNamePrefix();",
"public static boolean isVersion( String version )\n {\n return isOs( null, null, null, version );\n }",
"public boolean hasDataModelCatalogueVersion() {\n return fieldSetFlags()[3];\n }",
"public boolean hasCurrentVersion() {\n return ((bitField0_ & 0x00000020) == 0x00000020);\n }",
"public boolean hasCurrentVersion() {\n return ((bitField0_ & 0x00000080) == 0x00000080);\n }",
"public boolean hasOldVersionNumber() {\n return (getVersionNumber() < CURRENT_VERSION_NO);\n }",
"private void assertVersion(Versioned vers)\n {\n final Version v = vers.version();\n assertFalse(\"Should find version information (got \"+v+\")\", v.isUnknownVersion());\n assertEquals(PackageVersion.VERSION, v);\n }",
"public boolean meetsConstraint(String version) {\n return (matches(version, this.version) && isEarlier(version, latest) && isLater(version,\n earliest));\n }",
"public boolean isSetCatalogSchemaVersion() {\n return EncodingUtils.testBit(__isset_bitfield, __CATALOGSCHEMAVERSION_ISSET_ID);\n }",
"boolean hasOperatingSystemVersionConstant();",
"@AnonymousAllowed\n private boolean checkUPMVersion() {\n boolean result = false;\n Plugin plugin = pluginAccessor\n .getPlugin(\"com.atlassian.upm.atlassian-universal-plugin-manager-plugin\");\n if (plugin == null) {\n result = false;\n } else {\n Version upmVersion = Versions.fromPlugin(plugin, false);\n String upmVersion_str = upmVersion.toString();\n StringTokenizer st = new StringTokenizer(upmVersion_str, \".\");\n int first_index = Integer.parseInt((String) st.nextElement());\n if (first_index >= 2) {\n result = true;\n }\n }\n return result;\n }",
"public boolean isExposeVersion() {\n\t\treturn this.exposeVersion;\n\t}",
"@Override\n\tpublic boolean supportsVersioning()\n\t{\n\t\treturn true;\n\t}",
"boolean hasChromeVersion();",
"@Test\n\tpublic void testGetBuildVersion() {\n\t\tString buildVersion = rmitAnalyticsModel.getBuildVersion();\n\t\tAssert.assertNotNull(buildVersion);\n\t\tAssert.assertTrue(buildVersion.isEmpty());\n\t}",
"public boolean hasUserAgentVersion() {\n return userAgentVersionTypeCase_ == 7;\n }",
"public boolean isSchemaVersionMatch() {\n return getVersionForSchema() == latestCodeVersion;\n }",
"public String getVersionsSupported();",
"public CachetVersion getVersion() {\n JsonNode rootNode = get(\"version\");\n CachetVersion version = CachetVersion.parseRootNode(rootNode);\n\nSystem.out.println(\"SSDEDBUG: version = \" + version.getVersion() + \" (latest=\" + version.isLatest() + \")\");\n return version;\n }",
"public boolean isProductVersionModified()\n\t{\n\t\treturn productVersionModified;\n\t}",
"private MappingFieldElement validateVersionFieldExistence () \n\t\t\t\tthrows ModelValidationException\n\t\t\t{\n\t\t\t\tList versionFields = mappingClass.getVersionFields();\n\n\t\t\t\t// must have exactly 1 version field (for this release)\n\t\t\t\tif (versionFields.size() != 1)\n\t\t\t\t{\n\t\t\t\t\tthrow constructClassException(mappingClass.getName(), \n\t\t\t\t\t\tnull, \"util.validation.version_field_cardinality\");\t//NOI18N\n\t\t\t\t}\n\n\t\t\t\treturn (MappingFieldElement)versionFields.get(0);\n\t\t\t}",
"public static final boolean shouldUseVersions() {\n return true;\n }",
"public boolean hasVersionNamePrefix() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }",
"@java.lang.Override\n public boolean hasPaymentDetailsVersion() {\n return instance.hasPaymentDetailsVersion();\n }",
"boolean isVersion3Allowed();",
"@Override\n\tpublic boolean getCheckOlderVersion()\n\t{\n\t\treturn false;\n\t}",
"@Override\n public void checkVersion() {\n }",
"boolean isCanonicalVersion() {\n\t\treturn isLocal() && isVersion() && !Namespace.create(this.ontology).equals(Namespace.create(this.versionIRI));\n\t}",
"public boolean hasVersionNamePrefix() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public static boolean has17() {\n return getVersion() >= 17;\n }",
"public static boolean isSnapshotVersion() {\n\t\treturn getShortVersion().toLowerCase().startsWith(\"snapshot\");\n\t}",
"Version getVersion();",
"Version getVersion();",
"Version getVersion();",
"Version getVersion();",
"public int getVersion() { return 1; }",
"boolean hasMajor();",
"public boolean upgrades(Version version) {\n return platform.map(version::compareTo).orElse(0) < 0;\n }",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"java.lang.String getVersion();",
"public String getProductVersion();",
"public boolean isNewerVersionAvailable() {\n\t\tString url = \"https://raw.githubusercontent.com/kleekru/RoboTarPC/master/currentversion\";\n\t\tLOG.info(\"checking for new version at address: {}\", url);\n\t\tthis.remoteVersion = getRemoteVersion(url);\n\t\treturn isNewerVersion(remoteVersion);\n\t}",
"String getEmptyVersion();",
"public boolean upgrades(ApplicationVersion version) {\n return application.map(version::compareTo).orElse(0) < 0;\n }",
"boolean hasDeployedModel();",
"public static boolean has18() {\n return getVersion() >= 18;\n }",
"void visitElement_version(org.w3c.dom.Element element) { // <version>\n // element.getValue();\n org.w3c.dom.NamedNodeMap attrs = element.getAttributes();\n for (int i = 0; i < attrs.getLength(); i++) {\n org.w3c.dom.Attr attr = (org.w3c.dom.Attr)attrs.item(i);\n if (attr.getName().equals(\"name\")) { // <version name=\"???\">\n list.versions.add(attr.getValue());\n }\n }\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }",
"@Override\n @XmlElement(name = \"version\", required = true)\n public synchronized InternationalString getVersion() {\n return version;\n }",
"@java.lang.Override\n public boolean hasRpcVersion() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"@java.lang.Override\n public boolean hasRpcVersion() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"private String presenceOfModule(String version) {\n String presence = StringUtils.substringBetween(version, \"<Presence>\", \"</Presence>\");\n return presence;\n }",
"public Version getVersion();",
"public void checkForUpdate(String currentVersion);",
"public static boolean has19() {\n return getVersion() >= 19;\n }",
"public String getVersion();",
"public String getVersion();",
"public String getVersion();",
"public String getVersion();",
"@CheckForNull\n String getVersion();",
"@ApiModelProperty(value = \"(Is this valid?)\")\n public Long getVersion() {\n return version;\n }",
"private boolean handleAvailableVersion(final Properties props, final String version) {\n final PluginVersion theVersion = new PluginVersion(version);\n if (theVersion.getMajor() == 0 && theVersion.getMinor() == 0 && theVersion.getPatch() == 0) {\n log.warn(\"Plugin {}: improbable version {}\", plugin.getPluginId(), version);\n }\n if (versionInfo.containsKey(theVersion)) {\n log.warn(\"Plugin {}: Duplicate version {}\", plugin.getPluginId(), version);\n }\n\n final String maxVersionInfo = StringSupport.trimOrNull(\n props.getProperty(plugin.getPluginId() + PluginSupport.MAX_IDP_VERSION_INTERFIX + version));\n if (maxVersionInfo == null) {\n log.warn(\"Plugin {}, Version {} : Could not find max idp version.\", plugin.getPluginId(), version);\n return false;\n }\n\n final String minVersionInfo = StringSupport.trimOrNull(\n props.getProperty(plugin.getPluginId() + PluginSupport.MIN_IDP_VERSION_INTERFIX + version));\n if (minVersionInfo == null) {\n log.warn(\"Plugin {}, Version {} : Could not find min idp version.\", plugin.getPluginId(), version);\n return false;\n }\n\n final String supportLevelString = StringSupport.trimOrNull(\n props.getProperty(plugin.getPluginId()+ PluginSupport.SUPPORT_LEVEL_INTERFIX + version));\n PluginSupport.SupportLevel supportLevel;\n if (supportLevelString == null) {\n log.debug(\"Plugin {}, Version {} : Could not find support level for {}.\", plugin.getPluginId(), version);\n supportLevel = SupportLevel.Unknown;\n } else {\n try {\n supportLevel = Enum.valueOf(SupportLevel.class, supportLevelString);\n } catch (final IllegalArgumentException e) {\n log.warn(\"Plugin {}, Version {} : Invalid support level {}.\",\n plugin.getPluginId(), version, supportLevelString);\n supportLevel = SupportLevel.Unknown;\n }\n }\n\n log.debug(\"Plugin {}: MaxIdP {}, MinIdP {}, Support Level {}\", \n plugin.getPluginId(), maxVersionInfo, minVersionInfo, supportLevel);\n final VersionInfo info; \n info = new VersionInfo(new PluginVersion(maxVersionInfo), new PluginVersion(minVersionInfo), supportLevel);\n versionInfo.put(theVersion, info);\n if (myPluginVersion.equals(theVersion)) {\n myVersionInfo = info;\n }\n final String downloadURL = StringSupport.trimOrNull(\n props.getProperty(plugin.getPluginId() + PluginSupport.DOWNLOAD_URL_INTERFIX + version));\n final String baseName = StringSupport.trimOrNull(\n props.getProperty(plugin.getPluginId() + PluginSupport.BASE_NAME_INTERFIX + version));\n if (baseName != null && downloadURL != null) {\n try {\n final URL url = new URL(downloadURL);\n downloadInfo.put(theVersion, new Pair<>(url, baseName));\n log.trace(\"Plugin {}, version {} : Added download URL {} baseName {} for {}\",\n plugin.getPluginId(), theVersion, url, baseName);\n } catch (final MalformedURLException e) {\n log.warn(\"Plugin {}, version {} : download URL '{}' could not be constructed\",\n plugin.getPluginId(), theVersion, downloadURL, e);\n }\n } else {\n log.info(\"Plugin {}, version {} : no download information present\", plugin.getPluginId(), theVersion);\n }\n return true;\n }",
"@java.lang.Override\n public boolean hasRpcVersion() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"@java.lang.Override\n public boolean hasRpcVersion() {\n return ((bitField0_ & 0x00000001) != 0);\n }",
"public synchronized boolean checkVersion(String strInstallDir)\n {\n int installMajorVersion = -1;\n int installMinorVersion = -1;\n int installMicroVersion = -1;\n int installBuild = -1;\n\n if (m_versionProps == null)\n {\n InputStream ins = null;\n try\n {\n if (strInstallDir == null)\n return false;\n\n if (!strInstallDir.endsWith(File.separator))\n strInstallDir += File.separator;\n\n // check if the \"version.properties\" file exists under the Rhythmyx\n // root directory\n File propFile = new File(strInstallDir +\n RxFileManager.PREVIOUS_VERSION_PROPS_FILE);\n if (propFile.exists() && propFile.isFile())\n {\n // load the version.properties file\n ins = new FileInputStream(propFile);\n m_versionProps = new Properties();\n m_versionProps.load(ins);\n }\n }\n catch(Exception e)\n {\n PSLogger.logInfo(\"ERROR : \" + e.getMessage());\n PSLogger.logInfo(e);\n return false;\n }\n finally\n {\n if (ins != null)\n {\n try\n {\n ins.close();\n }\n catch(IOException e)\n {\n }\n }\n }\n }\n\n if (m_versionProps != null)\n {\n installMajorVersion = getRequiredProperty(\n \"majorVersion\", m_versionProps);\n\n installMinorVersion = getRequiredProperty(\n \"minorVersion\", m_versionProps);\n\n installMicroVersion = getRequiredProperty(\n \"microVersion\", m_versionProps);\n \n installBuild = getRequiredProperty(\n \"buildNumber\", m_versionProps);\n }\n\n if ((installMajorVersion == -1) ||\n (installMinorVersion == -1) ||\n (installBuild == -1))\n return false;\n\n if (installMajorVersion < majorVersionFrom)\n return false;\n\n if (installMajorVersion == majorVersionFrom)\n {\n // check the minor version in this case\n if (installMinorVersion < minorVersionFrom)\n return false;\n\n if (installMinorVersion == minorVersionFrom)\n {\n \n if (installMicroVersion < microVersionFrom)\n return false;\n\n if (microVersionFrom<=0 || installMicroVersion == microVersionFrom)\n {\n \n // check the build number in this case\n if (installBuild < buildFrom)\n return false;\n }\n }\n }\n\n if (installMajorVersion > majorVersionTo)\n return false;\n\n if (installMajorVersion == majorVersionTo)\n {\n // check the minor version in this case\n if (installMinorVersion > minorVersionTo)\n return false;\n\n if (installMinorVersion == minorVersionTo)\n {\n \n // check the minor version in this case\n if (installMicroVersion > microVersionTo)\n return false;\n\n if (installMinorVersion == microVersionTo)\n {\n \n if (microVersionTo==-1 || installMinorVersion > microVersionTo)\n // check the build number in this case\n if ((buildTo != -1) && (installBuild > buildTo))\n return false;\n }\n }\n }\n\n return true;\n }",
"public static boolean instanceHasNewVersion(Object instance) {\n\n Class<?> classVersion = versions.get(instance.getClass().getName()\n .hashCode());\n\n if (DEBUG)\n System.out.println(\"instanceHasNewVersion: Class version = \"\n + classVersion);\n\n // The class has no new versions\n if (classVersion == null)\n return false;\n\n // Use reflection to obtain version object (that is added at load-time).\n Object newVersion = null;\n try {\n newVersion = instance.getClass().getField(\"_newVersion\")\n .get(instance);\n } catch (Exception e) {\n throw new RuntimeException(e.getMessage(), e);\n }\n\n // The class has a new version, but this instance does not, or the new\n // version of this instance is not of the\n // same class that the new version of its class\n if ((classVersion != null && newVersion == null)\n || (classVersion != newVersion.getClass()))\n return true;\n\n return false;\n }",
"public void testGetManagementSpecVersion() {\n String specVersion = mb.getManagementSpecVersion();\n assertNotNull(specVersion);\n assertTrue(specVersion.length() > 0);\n }",
"public static boolean hasNewVersion(Class<?> clazz) {\n return versions.get(clazz.getName().hashCode()) != null;\n }"
] | [
"0.84049785",
"0.84049785",
"0.7976284",
"0.789616",
"0.789616",
"0.7884529",
"0.7759714",
"0.76211286",
"0.74841595",
"0.72538084",
"0.7205694",
"0.70457757",
"0.68191373",
"0.6807284",
"0.6711483",
"0.6666866",
"0.66491824",
"0.66491824",
"0.66478324",
"0.6643824",
"0.6635373",
"0.65949845",
"0.6576304",
"0.65549564",
"0.65399975",
"0.6534377",
"0.64885885",
"0.6453714",
"0.6404049",
"0.64032185",
"0.6396375",
"0.6383074",
"0.63126457",
"0.63096064",
"0.6293063",
"0.6292352",
"0.6287138",
"0.61986995",
"0.61344844",
"0.6127631",
"0.6109791",
"0.6103446",
"0.60932547",
"0.6091493",
"0.6081805",
"0.60422397",
"0.60296893",
"0.599826",
"0.5986526",
"0.59843296",
"0.59754854",
"0.59746754",
"0.59721357",
"0.5960039",
"0.5941907",
"0.59400266",
"0.5934904",
"0.59295905",
"0.5927331",
"0.5927331",
"0.5927331",
"0.5927331",
"0.59235203",
"0.5915913",
"0.59040827",
"0.5888921",
"0.5888921",
"0.5888921",
"0.5888921",
"0.5888921",
"0.5888921",
"0.5888921",
"0.5888921",
"0.58729017",
"0.5853407",
"0.5845362",
"0.5839635",
"0.58372",
"0.583554",
"0.583182",
"0.5825201",
"0.5824374",
"0.5824374",
"0.58231664",
"0.5821628",
"0.58201677",
"0.58182114",
"0.5812428",
"0.5812428",
"0.5812428",
"0.5812428",
"0.58118623",
"0.5807585",
"0.58061147",
"0.58018345",
"0.58018345",
"0.57890826",
"0.5786992",
"0.5785843",
"0.5776572"
] | 0.76332664 | 7 |
Sets the "version" element | public void setVersion(java.math.BigInteger version)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.SimpleValue target = null;
target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VERSION$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VERSION$6);
}
target.setBigIntegerValue(version);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setVersion(String version);",
"void setVersion(String version);",
"public void setVersion(String version);",
"void setVersion(long version);",
"public void setVersion(Number value) {\n setAttributeInternal(VERSION, value);\n }",
"public void setVersion(int value) {\n this.version = value;\n }",
"@CompositeValue(ignore=true)\n @XmlAttribute(name=\"version\")\n public void setVersion(Version version)\n {\n versionRange = new VersionRange(version, true, version, true);\n }",
"public void setVersion(String version)\n {\n this.ver = version;\n }",
"private void setVersionNumber(int version) {\n versionNumber = version;\n }",
"public void setVersion(int version) {\n this.version = version;\n }",
"public void setVersion(int version) {\n this.version = version;\n }",
"public void setVersion(String version){\r\n this.version = version;\r\n }",
"public void setVersion(Integer version)\r\n {\r\n this.version = version;\r\n }",
"public void setVersion(Integer version) {\r\n this.version = version;\r\n }",
"public void setVersion(String value) {\n\t\tthis._version = value;\n\t}",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"@Override\r\n\tpublic void setVersion(int version) {\n\r\n\t}",
"public void setVersion( Integer version ) {\n this.version = version;\n }",
"public void setVersion(String version)\n {\n this.version = version;\n }",
"public void setVersion(long version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public final void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(java.lang.String version) {\r\n this.version = version;\r\n }",
"public void setVersion(String version) {\n\t\t\r\n\t}",
"public void setVersion(String version) {\r\n\t\tthis.version = version;\r\n\t}",
"public void setVersion(Integer version) {\n\t\tthis.version = version;\n\t}",
"@SuppressWarnings(\"unused\")\n private void setVersion(final Integer version) {\n this.version = version;\n }",
"@SuppressWarnings(\"unused\")\n private void setVersion(final Integer version) {\n this.version = version;\n }",
"public void setVersion(String _version) {\n this._version = _version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n\t\tthis.version = version;\n\t}",
"public void setVersion(final Long version);",
"public void setManifestVersion() {\n\t\tSharedPreferences.Editor editor = sp.edit();\n\t\teditor.putString(VERSION_KEY, thisVersion);\n\t\teditor.commit();\n\t}",
"public void xsetVersion(org.apache.xmlbeans.XmlInteger version)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlInteger target = null;\r\n target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(VERSION$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(VERSION$6);\r\n }\r\n target.set(version);\r\n }\r\n }",
"public void setVersion(int version)\n\t{\n\t\tconferenceInfo.setAttribute(VERSION_ATTR_NAME, Integer.toString(version));\n\t}",
"@SuppressWarnings(\"unused\")\n private void setVersion(Long version) {\n this.version = version;\n }",
"private void setVersion(long value) {\n bitField0_ |= 0x00000002;\n version_ = value;\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n version_ = value;\n onChanged();\n return this;\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n version_ = value;\n onChanged();\n return this;\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n version_ = value;\n onChanged();\n return this;\n }",
"public void setVer(Integer ver) {\n this.ver = ver;\n }",
"void visitElement_version(org.w3c.dom.Element element) { // <version>\n // element.getValue();\n org.w3c.dom.NamedNodeMap attrs = element.getAttributes();\n for (int i = 0; i < attrs.getLength(); i++) {\n org.w3c.dom.Attr attr = (org.w3c.dom.Attr)attrs.item(i);\n if (attr.getName().equals(\"name\")) { // <version name=\"???\">\n list.versions.add(attr.getValue());\n }\n }\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }",
"public void setVersion( String version )\n {\n this.version = version.toLowerCase( Locale.ENGLISH );\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n version_ = value;\n onChanged();\n return this;\n }",
"public void setVersion(org.hl7.fhir.String version)\n {\n generatedSetterHelperImpl(version, VERSION$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"public void setVersion(Long version) {\n this.version = version;\n }",
"public void setVersion(Long version) {\n this.version = version;\n }",
"public void setVersion(Long version) {\n this.version = version;\n }",
"public void setVersion(Long version) {\n this.version = version;\n }",
"public void setVersion(String version) {\r\n this.version = version == null ? null : version.trim();\r\n }",
"public void setVersion(int version)\n {\n encryptionDictionary.setInt( \"V\", version );\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n version_ = value;\n onChanged();\n return this;\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n version_ = value;\n onChanged();\n return this;\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n version_ = value;\n onChanged();\n return this;\n }",
"public void setVersion(String version) {\n this.version = version == null ? null : version.trim();\n }",
"private void setNodeVersion(int nodeVersion) {\n this.nodeVersion = nodeVersion;\r\n }",
"void xsetApplicationVersion(com.microsoft.schemas.office.x2006.digsig.STVersion applicationVersion);",
"public Builder setVersion(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n version_ = value;\n bitField0_ |= 0x00008000;\n onChanged();\n return this;\n }",
"void setApplicationVersion(java.lang.String applicationVersion);",
"public Builder setVersion(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n version_ = value;\n onChanged();\n return this;\n }",
"public Builder setCurrentVersion(int value) {\n bitField0_ |= 0x00000080;\n currentVersion_ = value;\n onChanged();\n return this;\n }",
"public void setVer(Integer ver) {\n\t\tthis.ver = ver;\n\t}",
"public final void setVersion(java.lang.String version)\r\n\t{\r\n\t\tsetVersion(getContext(), version);\r\n\t}",
"@Override\n\tpublic void setVersion(java.lang.String version) {\n\t\t_scienceApp.setVersion(version);\n\t}",
"public void incrementVersion() {\n this.version++;\n }",
"public void setVersionValue(YangEnumeration versionValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"version\",\n versionValue,\n childrenNames());\n }",
"public void setCurrentVersion(String currentVersion) {\n this.currentVersion = currentVersion;\n }",
"SchemaReference setVersion(String version);",
"public void setVersion(long param){\n \n // setting primitive attribute tracker to true\n \n if (param==java.lang.Long.MIN_VALUE) {\n localVersionTracker = false;\n \n } else {\n localVersionTracker = true;\n }\n \n this.localVersion=param;\n \n\n }",
"public void setVersionValue(String versionValue) throws JNCException {\n setVersionValue(new YangEnumeration(versionValue, new String[] {\n \"9.5.0\",\n \"10.7.0\",\n }));\n }",
"public Builder setVersion(final String value) {\n _version = value;\n return this;\n }",
"public void incrementVersion() {\n this.version += 1;\n }",
"Builder addVersion(String value);",
"public static Element mutateVersion(Element element) {\n element.textContent = Core.getGustVersion();\n return element;\n }",
"public void setUIVersion(int version);",
"public final void setVersion(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String version)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Version.toString(), version);\r\n\t}",
"public void setVersion(String componentVersion1) {\n this.version = componentVersion1;\n }",
"public void setJiveXmlVersion(String value) {\r\n ImportJive.addMessage(\"Jive XML version = \\\"\" + value + \"\\\"\");\r\n }",
"public void setServiceVersion(String serviceVersion);",
"public void setVersion(BigDecimal version) {\r\n this.version = version;\r\n }",
"public void setBuildVersion(String version) {\n buildVersion = version;\n }",
"public WriterOptions version(Version value) {\n versionValue = value;\n return this;\n }",
"public void setVersionNo(Integer versionNo) {\r\n\t\tthis.versionNo = versionNo;\r\n\t}",
"public Builder setVersion(long value) {\n copyOnWrite();\n instance.setVersion(value);\n return this;\n }",
"public void setXpeContractVersion(String value) {\n setAttributeInternal(XPECONTRACTVERSION, value);\n }",
"void visitElement_versions(org.w3c.dom.Element element) { // <versions>\n // element.getValue();\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n if (nodeElement.getTagName().equals(\"version\")) {\n visitElement_version(nodeElement);\n }\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }",
"public void setFileVersion(int fileVersion) {\r\n\t\tthis.fileVersion = fileVersion;\r\n\t}",
"public void addVersion() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"version\",\n null,\n childrenNames());\n }",
"void setVersion(int version) {\n removeOldVersion();\n\n String sql = \"INSERT INTO \" + tableName + \" (\" + VERSION_COL + \") VALUES (?)\";\n\n execute(new ExecuteStatement(sql) {\n @Override\n public void prepare(PreparedStatement statement) throws SQLException {\n statement.setInt(1, version);\n }\n });\n }",
"public void setTitleVersion(String val){\n\t\ttvr = val;\n\t}",
"public Gel_BioInf_Models.VirtualPanel.Builder setEnsemblVersion(java.lang.String value) {\n validate(fields()[2], value);\n this.ensemblVersion = value;\n fieldSetFlags()[2] = true;\n return this; \n }"
] | [
"0.7932181",
"0.7932181",
"0.7797636",
"0.77636725",
"0.77352446",
"0.76377344",
"0.76346767",
"0.75078404",
"0.7495627",
"0.7451888",
"0.7451888",
"0.7424127",
"0.7419226",
"0.73751336",
"0.7371051",
"0.7332528",
"0.7332528",
"0.73301977",
"0.73295426",
"0.7320526",
"0.7288705",
"0.7278793",
"0.7278793",
"0.7278793",
"0.7278793",
"0.7278793",
"0.7278793",
"0.7278123",
"0.72777855",
"0.7272637",
"0.72615486",
"0.72581136",
"0.7224929",
"0.72224283",
"0.72224283",
"0.7215273",
"0.7190412",
"0.7190412",
"0.7190412",
"0.71605384",
"0.71548814",
"0.71165997",
"0.7088605",
"0.7075674",
"0.6967579",
"0.69590193",
"0.68987656",
"0.68987656",
"0.68987656",
"0.6864509",
"0.6832045",
"0.683156",
"0.68282527",
"0.6822724",
"0.68201363",
"0.68201363",
"0.68201363",
"0.68201363",
"0.6785737",
"0.6772797",
"0.6759529",
"0.6759529",
"0.6759529",
"0.6753457",
"0.67533505",
"0.67198247",
"0.6717968",
"0.6697644",
"0.6677278",
"0.6665479",
"0.6656189",
"0.6645314",
"0.66445625",
"0.6626822",
"0.65937",
"0.65815896",
"0.6570368",
"0.6558353",
"0.6551207",
"0.65490836",
"0.6505796",
"0.6493735",
"0.6483228",
"0.6473506",
"0.6460247",
"0.645975",
"0.6401566",
"0.6366218",
"0.6349543",
"0.63389117",
"0.6322617",
"0.6305815",
"0.6302168",
"0.6296922",
"0.6284155",
"0.6279023",
"0.6274964",
"0.6238345",
"0.6232825",
"0.6228694"
] | 0.74236816 | 12 |
Sets (as xml) the "version" element | public void xsetVersion(org.apache.xmlbeans.XmlInteger version)
{
synchronized (monitor())
{
check_orphaned();
org.apache.xmlbeans.XmlInteger target = null;
target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(VERSION$6, 0);
if (target == null)
{
target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(VERSION$6);
}
target.set(version);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setVersion(String version);",
"void setVersion(String version);",
"public void setVersion(String version);",
"@CompositeValue(ignore=true)\n @XmlAttribute(name=\"version\")\n public void setVersion(Version version)\n {\n versionRange = new VersionRange(version, true, version, true);\n }",
"void setVersion(long version);",
"public void setVersion(Number value) {\n setAttributeInternal(VERSION, value);\n }",
"public void setVersion(int value) {\n this.version = value;\n }",
"@Override\r\n\tpublic void setVersion(int version) {\n\r\n\t}",
"public void setVersion(java.math.BigInteger version)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VERSION$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VERSION$6);\r\n }\r\n target.setBigIntegerValue(version);\r\n }\r\n }",
"public void setVersion(String version){\r\n this.version = version;\r\n }",
"void xsetApplicationVersion(com.microsoft.schemas.office.x2006.digsig.STVersion applicationVersion);",
"public void setVersion(int version) {\n this.version = version;\n }",
"public void setVersion(int version) {\n this.version = version;\n }",
"public void setVersion(String version)\n {\n this.ver = version;\n }",
"public void setVersion(Integer version)\r\n {\r\n this.version = version;\r\n }",
"public void setVersion(String value) {\n\t\tthis._version = value;\n\t}",
"private void setVersionNumber(int version) {\n versionNumber = version;\n }",
"public void setJiveXmlVersion(String value) {\r\n ImportJive.addMessage(\"Jive XML version = \\\"\" + value + \"\\\"\");\r\n }",
"public void setVersion(Integer version) {\r\n this.version = version;\r\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version)\n {\n this.version = version;\n }",
"public void setVersion(int version)\n\t{\n\t\tconferenceInfo.setAttribute(VERSION_ATTR_NAME, Integer.toString(version));\n\t}",
"public void setVersion(String version) {\n\t\t\r\n\t}",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion( Integer version ) {\n this.version = version;\n }",
"public void setVersion(String version) {\r\n\t\tthis.version = version;\r\n\t}",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n this.version = version;\n }",
"public void setVersion(java.lang.String version) {\r\n this.version = version;\r\n }",
"public final void setVersion(String version) {\n this.version = version;\n }",
"public void setManifestVersion() {\n\t\tSharedPreferences.Editor editor = sp.edit();\n\t\teditor.putString(VERSION_KEY, thisVersion);\n\t\teditor.commit();\n\t}",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n this.version = version;\n }",
"public void setVersion(Integer version) {\n\t\tthis.version = version;\n\t}",
"void visitElement_version(org.w3c.dom.Element element) { // <version>\n // element.getValue();\n org.w3c.dom.NamedNodeMap attrs = element.getAttributes();\n for (int i = 0; i < attrs.getLength(); i++) {\n org.w3c.dom.Attr attr = (org.w3c.dom.Attr)attrs.item(i);\n if (attr.getName().equals(\"name\")) { // <version name=\"???\">\n list.versions.add(attr.getValue());\n }\n }\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }",
"public void setVersion(String _version) {\n this._version = _version;\n }",
"public void setVersion(long version) {\n this.version = version;\n }",
"@SuppressWarnings(\"unused\")\n private void setVersion(final Integer version) {\n this.version = version;\n }",
"@SuppressWarnings(\"unused\")\n private void setVersion(final Integer version) {\n this.version = version;\n }",
"public void setVersion(String version) {\n\t\tthis.version = version;\n\t}",
"private void setNodeVersion(int nodeVersion) {\n this.nodeVersion = nodeVersion;\r\n }",
"@DOMSupport(DomLevel.THREE)\r\n\t@BrowserSupport({BrowserType.FIREFOX_2P})\r\n\t@Property String getXmlVersion();",
"private void setVersion(long value) {\n bitField0_ |= 0x00000002;\n version_ = value;\n }",
"void setApplicationVersion(java.lang.String applicationVersion);",
"public void setVersion(org.hl7.fhir.String version)\n {\n generatedSetterHelperImpl(version, VERSION$4, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }",
"@Override\n @XmlElement(name = \"version\", required = true)\n public synchronized InternationalString getVersion() {\n return version;\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n version_ = value;\n onChanged();\n return this;\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n version_ = value;\n onChanged();\n return this;\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n version_ = value;\n onChanged();\n return this;\n }",
"public void setVersion(final Long version);",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n version_ = value;\n onChanged();\n return this;\n }",
"public void setVersion( String version )\n {\n this.version = version.toLowerCase( Locale.ENGLISH );\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n version_ = value;\n onChanged();\n return this;\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n version_ = value;\n onChanged();\n return this;\n }",
"public Builder setVersion(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n version_ = value;\n onChanged();\n return this;\n }",
"SchemaReference setVersion(String version);",
"public void setVer(Integer ver) {\n this.ver = ver;\n }",
"@Override\n\tpublic void setVersion(java.lang.String version) {\n\t\t_scienceApp.setVersion(version);\n\t}",
"@SuppressWarnings(\"unused\")\n private void setVersion(Long version) {\n this.version = version;\n }",
"Builder addVersion(String value);",
"public Builder setCurrentVersion(int value) {\n bitField0_ |= 0x00000080;\n currentVersion_ = value;\n onChanged();\n return this;\n }",
"public Builder setVersion(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n version_ = value;\n bitField0_ |= 0x00008000;\n onChanged();\n return this;\n }",
"public void setUIVersion(int version);",
"public void setVersion(int version)\n {\n encryptionDictionary.setInt( \"V\", version );\n }",
"public void setVersion(long param){\n \n // setting primitive attribute tracker to true\n \n if (param==java.lang.Long.MIN_VALUE) {\n localVersionTracker = false;\n \n } else {\n localVersionTracker = true;\n }\n \n this.localVersion=param;\n \n\n }",
"public void setXpeContractVersion(String value) {\n setAttributeInternal(XPECONTRACTVERSION, value);\n }",
"public final void setVersion(java.lang.String version)\r\n\t{\r\n\t\tsetVersion(getContext(), version);\r\n\t}",
"public XMLDocument (double version)\r\n\t{\r\n\t\tthis (version, true);\r\n\t}",
"public void incrementVersion() {\n this.version++;\n }",
"public Builder setVersion(final String value) {\n _version = value;\n return this;\n }",
"public void setVersionValue(YangEnumeration versionValue)\n throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"version\",\n versionValue,\n childrenNames());\n }",
"public final void setVersion(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String version)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.Version.toString(), version);\r\n\t}",
"void xsetOfficeVersion(com.microsoft.schemas.office.x2006.digsig.STVersion officeVersion);",
"public void setVersion(String version) {\r\n this.version = version == null ? null : version.trim();\r\n }",
"public void setTitleVersion(String val){\n\t\ttvr = val;\n\t}",
"public void setVersion(String version) {\n this.version = version == null ? null : version.trim();\n }",
"public void setVersionValue(String versionValue) throws JNCException {\n setVersionValue(new YangEnumeration(versionValue, new String[] {\n \"9.5.0\",\n \"10.7.0\",\n }));\n }",
"public void setCurrentVersion(String currentVersion) {\n this.currentVersion = currentVersion;\n }",
"public void setServiceVersion(String serviceVersion);",
"public void setVersion(String componentVersion1) {\n this.version = componentVersion1;\n }",
"public void setVersion(Long version) {\n this.version = version;\n }",
"public void setVersion(Long version) {\n this.version = version;\n }",
"public void setVersion(Long version) {\n this.version = version;\n }",
"public void setVersion(Long version) {\n this.version = version;\n }",
"public void setVer(Integer ver) {\n\t\tthis.ver = ver;\n\t}",
"public void xsetOrganizationVersion(org.apache.xmlbeans.XmlString organizationVersion)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ORGANIZATIONVERSION$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ORGANIZATIONVERSION$6);\r\n }\r\n target.set(organizationVersion);\r\n }\r\n }",
"void xsetWindowsVersion(com.microsoft.schemas.office.x2006.digsig.STVersion windowsVersion);",
"private void setAppVersion() {\n try {\n String appVer = mContext.getPackageManager().getPackageInfo(mContext.getPackageName(), 0).versionName;\n ServerSettingHelper.getInstance().setApplicationVersion(appVer);\n } catch (NameNotFoundException e) {\n if (Config.GD_ERROR_LOGS_ENABLED)\n Log.e(\"NameNotFoundException\", \"Error of getting package information!\");\n }\n }",
"public static Element mutateVersion(Element element) {\n element.textContent = Core.getGustVersion();\n return element;\n }",
"public void addVersion() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"version\",\n null,\n childrenNames());\n }",
"public WriterOptions version(Version value) {\n versionValue = value;\n return this;\n }",
"public void incrementVersion() {\n this.version += 1;\n }",
"public Gel_BioInf_Models.VirtualPanel.Builder setEnsemblVersion(java.lang.String value) {\n validate(fields()[2], value);\n this.ensemblVersion = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"public synchronized void setVersion(final InternationalString newValue) {\n checkWritePermission();\n version = newValue;\n }"
] | [
"0.756072",
"0.756072",
"0.7379185",
"0.7371162",
"0.72861534",
"0.72575563",
"0.71432126",
"0.7035162",
"0.6956147",
"0.6946483",
"0.6935583",
"0.6896496",
"0.6896496",
"0.6871406",
"0.685161",
"0.683786",
"0.68317264",
"0.67994475",
"0.67944545",
"0.67928344",
"0.67928344",
"0.67778677",
"0.67690593",
"0.67571926",
"0.67339253",
"0.67277586",
"0.6691918",
"0.66862315",
"0.66862315",
"0.66862315",
"0.66862315",
"0.66862315",
"0.66862315",
"0.6680223",
"0.6640433",
"0.66352665",
"0.66320634",
"0.66320634",
"0.66320634",
"0.6628758",
"0.66230124",
"0.6618067",
"0.6617352",
"0.6609894",
"0.6609894",
"0.6580918",
"0.656383",
"0.65076345",
"0.65013474",
"0.6459991",
"0.6459124",
"0.6454298",
"0.6426888",
"0.6426888",
"0.6426888",
"0.6390572",
"0.6354716",
"0.6345163",
"0.63086265",
"0.63086265",
"0.63086265",
"0.6281271",
"0.6275372",
"0.62745774",
"0.62631875",
"0.6262068",
"0.6242194",
"0.6221983",
"0.62140113",
"0.61943525",
"0.6177765",
"0.6171907",
"0.61621845",
"0.6154251",
"0.6153506",
"0.6153156",
"0.61436623",
"0.6135263",
"0.6128866",
"0.6121876",
"0.61111414",
"0.60933363",
"0.6086661",
"0.60827446",
"0.6077434",
"0.6074076",
"0.607243",
"0.607243",
"0.607243",
"0.607243",
"0.6065947",
"0.60491437",
"0.6044354",
"0.6044064",
"0.6041349",
"0.6022763",
"0.6020385",
"0.60108095",
"0.5996482",
"0.59668475"
] | 0.69754136 | 8 |
Unsets the "version" element | public void unsetVersion()
{
synchronized (monitor())
{
check_orphaned();
get_store().remove_element(VERSION$6, 0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void unsetVersion()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(VERSION$4, 0);\n }\n }",
"public void unsetVersionValue() throws JNCException {\n delete(\"version\");\n }",
"private void clearVersion() {\n bitField0_ = (bitField0_ & ~0x00000002);\n version_ = 0L;\n }",
"public void unsetOrganizationVersion()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ORGANIZATIONVERSION$6, 0);\r\n }\r\n }",
"public Builder clearVersion() {\n version_ = getDefaultInstance().getVersion();\n bitField0_ = (bitField0_ & ~0x00008000);\n onChanged();\n return this;\n }",
"public Builder clearVersion() {\n\n version_ = getDefaultInstance().getVersion();\n onChanged();\n return this;\n }",
"public Builder clearVersion() {\n\n version_ = getDefaultInstance().getVersion();\n onChanged();\n return this;\n }",
"public Builder clearVersion() {\n\n version_ = getDefaultInstance().getVersion();\n onChanged();\n return this;\n }",
"public Builder clearVersion() {\n \n version_ = getDefaultInstance().getVersion();\n onChanged();\n return this;\n }",
"public Builder clearVersion() {\n bitField0_ = (bitField0_ & ~0x00000002);\n version_ = getDefaultInstance().getVersion();\n onChanged();\n return this;\n }",
"public Builder clearVersion() {\n \n version_ = getDefaultInstance().getVersion();\n onChanged();\n return this;\n }",
"public Builder clearVersion() {\n \n version_ = getDefaultInstance().getVersion();\n onChanged();\n return this;\n }",
"public Builder clearVersion() {\n \n version_ = getDefaultInstance().getVersion();\n onChanged();\n return this;\n }",
"public Builder clearVersion() {\n copyOnWrite();\n instance.clearVersion();\n return this;\n }",
"public Builder clearCurrentVersion() {\n bitField0_ = (bitField0_ & ~0x00000080);\n currentVersion_ = 0;\n onChanged();\n return this;\n }",
"private void clearChromeVersion() { chromeVersion_ = null;\n bitField0_ = (bitField0_ & ~0x00000004);\n }",
"public Gel_BioInf_Models.VirtualPanel.Builder clearEnsemblVersion() {\n ensemblVersion = null;\n fieldSetFlags()[2] = false;\n return this;\n }",
"public Builder clearRpcVersion() {\n bitField0_ = (bitField0_ & ~0x00000001);\n rpcVersion_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearRpcVersion() {\n bitField0_ = (bitField0_ & ~0x00000001);\n rpcVersion_ = 0;\n onChanged();\n return this;\n }",
"public Gel_BioInf_Models.VirtualPanel.Builder clearPanelVersion() {\n panelVersion = null;\n fieldSetFlags()[1] = false;\n return this;\n }",
"public void clearVersionHistoryPanel()\n\t{\n\t\t// Clear text area\n\t\ttextAreaVersions.setText(\"\");\n\t}",
"public Builder clearUserAgentVersion() {\n if (userAgentVersionTypeCase_ == 7) {\n userAgentVersionTypeCase_ = 0;\n userAgentVersionType_ = null;\n onChanged();\n }\n return this;\n }",
"public Builder clearChromeVersion() { copyOnWrite();\n instance.clearChromeVersion();\n return this;\n }",
"public void unsetVerStmt()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(VERSTMT$22, 0);\n }\n }",
"private void clearPaymentDetailsVersion() {\n bitField0_ = (bitField0_ & ~0x00000001);\n paymentDetailsVersion_ = 1;\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearEnvelopeVersion() {\n envelopeVersion = null;\n fieldSetFlags()[12] = false;\n return this;\n }",
"public Builder clearAvailableVersion() {\n if (availableVersionBuilder_ == null) {\n availableVersion_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00040000);\n onChanged();\n } else {\n availableVersionBuilder_.clear();\n }\n return this;\n }",
"public Builder clearUserAgentBuildVersion() {\n if (userAgentBuildVersionBuilder_ == null) {\n if (userAgentVersionTypeCase_ == 8) {\n userAgentVersionTypeCase_ = 0;\n userAgentVersionType_ = null;\n onChanged();\n }\n } else {\n if (userAgentVersionTypeCase_ == 8) {\n userAgentVersionTypeCase_ = 0;\n userAgentVersionType_ = null;\n }\n userAgentBuildVersionBuilder_.clear();\n }\n return this;\n }",
"public Builder clearNewVersion() {\n \n newVersion_ = getDefaultInstance().getNewVersion();\n onChanged();\n return this;\n }",
"public static Element mutateVersion(Element element) {\n element.textContent = Core.getGustVersion();\n return element;\n }",
"public void unsetZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(ZYHTVO$0, 0);\n }\n }",
"public void setNilOrganizationVersion()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlString target = null;\r\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(ORGANIZATIONVERSION$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(ORGANIZATIONVERSION$6);\r\n }\r\n target.setNil();\r\n }\r\n }",
"@CompositeValue(ignore=true)\n @XmlAttribute(name=\"version\")\n public void setVersion(Version version)\n {\n versionRange = new VersionRange(version, true, version, true);\n }",
"public void clearNewVersionPanel()\n\t{\n\t\t// Clear text fields\n\t\ttextFieldVersionNumber.setText(\"\");\n\t\ttextFieldsDescription = new ArrayList<JTextField>();\n\t\t\n\t\t// Clear components added by the user\n\t\tnewVersionDescriptionPanel.removeAll();\n\t\t\n\t\t// Refresh panel\n\t\tnewVersionPanel.revalidate();\n\t\tnewVersionPanel.repaint();\n\t}",
"public Builder clearAppEngineVersion() {\n if (appEngineVersionBuilder_ == null) {\n if (stepInfoCase_ == 22) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n onChanged();\n }\n } else {\n if (stepInfoCase_ == 22) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n }\n appEngineVersionBuilder_.clear();\n }\n return this;\n }",
"public void clearAllVersions() {\n for (Integer varIndex : _dataMap.keySet()) {\n List<Data> dataList = _dataMap.get(varIndex);\n while (dataList.size() > 1) {\n dataList.remove(0);\n }\n }\n }",
"public void unsetBand1V()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BAND1V$8, 0);\n }\n }",
"public void unsetRelease()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(RELEASE$4, 0);\r\n }\r\n }",
"public void unsetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(EXTLST$14, 0);\n }\n }",
"public Builder clearWaypointsVersion() {\n if (waypointsVersionBuilder_ == null) {\n waypointsVersion_ = null;\n onChanged();\n } else {\n waypointsVersion_ = null;\n waypointsVersionBuilder_ = null;\n }\n\n return this;\n }",
"public void markVersionDelete() throws JNCException {\n markLeafDelete(\"version\");\n }",
"public void unset(){\n\t\tcurrentInst = -1;\n\t}",
"void setVersion(long version);",
"public Gel_BioInf_Models.VirtualPanel.Builder clearDataModelCatalogueVersion() {\n dataModelCatalogueVersion = null;\n fieldSetFlags()[3] = false;\n return this;\n }",
"private void clearMajor() {\n bitField0_ = (bitField0_ & ~0x00000001);\n major_ = 0L;\n }",
"public void unsetExtLst()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(EXTLST$28, 0);\n }\n }",
"public void unsetInternal()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(INTERNAL$4, 0);\n }\n }",
"public void removeAllOriginalReleaseYear() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ORIGINALRELEASEYEAR);\r\n\t}",
"void unsetValue();",
"void unsetValue();",
"public void xsetVersion(org.apache.xmlbeans.XmlInteger version)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlInteger target = null;\r\n target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(VERSION$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(VERSION$6);\r\n }\r\n target.set(version);\r\n }\r\n }",
"void unset() {\n size = min = pref = max = UNSET;\n }",
"public void setUIVersion(int version);",
"void unsetInstallmentType();",
"@Override\r\n\tpublic void setVersion(int version) {\n\r\n\t}",
"public void unsetEmbl()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(EMBL$10, 0);\r\n }\r\n }",
"public void unsetImport()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(IMPORT$0, 0);\n }\n }",
"public void unsetPart()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PART$2, 0);\n }\n }",
"public void setVersion(java.math.BigInteger version)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(VERSION$6, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(VERSION$6);\r\n }\r\n target.setBigIntegerValue(version);\r\n }\r\n }",
"public void clear(){\n\t\tif(this.isUpgraded){\n\t\t\tthis.linkArray.clear();\n\t\t\tthis.isUpgraded = false;\n\t\t}\n\n\t\tthis.nativeArray.clear();\n\t}",
"public Builder clearCurrentRouteSegmentVersion() {\n if (currentRouteSegmentVersionBuilder_ == null) {\n currentRouteSegmentVersion_ = null;\n onChanged();\n } else {\n currentRouteSegmentVersion_ = null;\n currentRouteSegmentVersionBuilder_ = null;\n }\n\n return this;\n }",
"void visitElement_version(org.w3c.dom.Element element) { // <version>\n // element.getValue();\n org.w3c.dom.NamedNodeMap attrs = element.getAttributes();\n for (int i = 0; i < attrs.getLength(); i++) {\n org.w3c.dom.Attr attr = (org.w3c.dom.Attr)attrs.item(i);\n if (attr.getName().equals(\"name\")) { // <version name=\"???\">\n list.versions.add(attr.getValue());\n }\n }\n org.w3c.dom.NodeList nodes = element.getChildNodes();\n for (int i = 0; i < nodes.getLength(); i++) {\n org.w3c.dom.Node node = nodes.item(i);\n switch (node.getNodeType()) {\n case org.w3c.dom.Node.CDATA_SECTION_NODE:\n // ((org.w3c.dom.CDATASection)node).getData();\n break;\n case org.w3c.dom.Node.ELEMENT_NODE:\n org.w3c.dom.Element nodeElement = (org.w3c.dom.Element)node;\n break;\n case org.w3c.dom.Node.PROCESSING_INSTRUCTION_NODE:\n // ((org.w3c.dom.ProcessingInstruction)node).getTarget();\n // ((org.w3c.dom.ProcessingInstruction)node).getData();\n break;\n }\n }\n }",
"void unsetDesc();",
"public static void reset(Object o) {\r\n checkVersionable(o);\r\n ((Versionable) o).markClean();\r\n }",
"public void unsetMajorOnsetValue() throws JNCException {\n delete(\"major-onset\");\n }",
"public Builder clearPaymentDetailsVersion() {\n copyOnWrite();\n instance.clearPaymentDetailsVersion();\n return this;\n }",
"public void unsetPrf()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(PRF$26, 0);\r\n }\r\n }",
"public void setVersion(String version);",
"public void unsetGibbmt()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GIBBMT$4, 0);\r\n }\r\n }",
"public void unsetBand2V()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(BAND2V$10, 0);\n }\n }",
"void setVersion(String version);",
"void setVersion(String version);",
"public void unsetXmlLang()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(XMLLANG$26);\n }\n }",
"private void undoVersionInRoot() throws IOException {\n Put p = new Put(HRegionInfo.FIRST_META_REGIONINFO.getRegionName());\n\n p.add(HConstants.CATALOG_FAMILY, HConstants.META_VERSION_QUALIFIER,\n Bytes.toBytes(META_VERSION_092));\n\n // TODO wire this MetaEditor.putToRootTable(ct, p);\n LOG.info(\"Downgraded -ROOT- meta version=\" + META_VERSION_092);\n }",
"private void clearMinor() {\n bitField0_ = (bitField0_ & ~0x00000002);\n minor_ = 0L;\n }",
"void unsetTag();",
"public void reset(){\n value = 0;\n }",
"void unsetValueAttachment();",
"public void unsetReset() {\n\t\twasReset=false;\n\t}",
"void unsetSingleBetMinimum();",
"public void unsetAmount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(AMOUNT$6, 0);\n }\n }",
"public void unfreeze() {\n frozen = false;\n }",
"public void unsetAmountOpen()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(AMOUNTOPEN$8, 0);\n }\n }",
"void unsetDate();",
"public void resetExtension()\r\n {\r\n this.extension = null;\r\n }",
"public void unsetMinorAbateValue() throws JNCException {\n delete(\"minor-abate\");\n }",
"public void unsetMinorOnsetValue() throws JNCException {\n delete(\"minor-onset\");\n }",
"public void unsetPresent()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(PRESENT$0, 0);\n }\n }",
"public void unfreeze() {\n this.frozen = false;\n }",
"void unsetNumberOfInstallments();",
"public void setVersion(int value) {\n this.version = value;\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder clearDocumentStandardVersion() {\n documentStandardVersion = null;\n fieldSetFlags()[10] = false;\n return this;\n }",
"public void unsetMajorAbateValue() throws JNCException {\n delete(\"major-abate\");\n }",
"public void unsetValue()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(VALUE$12);\n }\n }",
"public void unsetTag(String tagName);",
"public void unsetFormat()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(FORMAT$10, 0);\n }\n }",
"public void unsetGenbank()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(GENBANK$8, 0);\r\n }\r\n }",
"public void setVersion(Number value) {\n setAttributeInternal(VERSION, value);\n }",
"void unsetGradeModelRefs();",
"public void revise()\n {\n \n super.revise();\n }"
] | [
"0.82496905",
"0.7469772",
"0.74346966",
"0.7226233",
"0.71309876",
"0.71266764",
"0.71266764",
"0.71266764",
"0.7056754",
"0.6929577",
"0.68344706",
"0.68344706",
"0.68344706",
"0.65811765",
"0.65563285",
"0.63724047",
"0.63638103",
"0.6263887",
"0.6263887",
"0.6206639",
"0.60960454",
"0.6077457",
"0.6031249",
"0.59612936",
"0.590773",
"0.5905549",
"0.58864725",
"0.5882302",
"0.58621067",
"0.58600056",
"0.5856939",
"0.58223826",
"0.5804549",
"0.5782652",
"0.5773415",
"0.5763017",
"0.5749278",
"0.5738571",
"0.56995016",
"0.569695",
"0.56306803",
"0.56281346",
"0.5625315",
"0.5619472",
"0.560481",
"0.558716",
"0.55616057",
"0.5543112",
"0.552042",
"0.552042",
"0.55097085",
"0.5502222",
"0.5499441",
"0.5499276",
"0.5499113",
"0.5496644",
"0.5489072",
"0.54885733",
"0.54868233",
"0.54855675",
"0.54829895",
"0.5465724",
"0.5461689",
"0.5456151",
"0.54384565",
"0.5432759",
"0.54089844",
"0.5406323",
"0.5391461",
"0.5386485",
"0.53673446",
"0.53673446",
"0.536416",
"0.5360319",
"0.53573537",
"0.5355955",
"0.5349527",
"0.53482556",
"0.5342935",
"0.5335245",
"0.5333245",
"0.53271383",
"0.5323825",
"0.53148",
"0.5303473",
"0.5303096",
"0.5300692",
"0.5298727",
"0.5286488",
"0.5286077",
"0.5276524",
"0.5268715",
"0.52636546",
"0.52479327",
"0.5239043",
"0.52327293",
"0.52311397",
"0.5230561",
"0.5229796",
"0.52277315"
] | 0.8186032 | 1 |
This method refreshes the list with connected capture devices and displaying devices. The layout of this dialog will be changed accordingly. The method will return false in case something goes wrong in the initialization routines. If all is well, true will be returned. | @Action
public boolean refreshVideoCapturers() {
boolean result = true;
try {
// refresh capture devices by querying the capturer implementation for uninitialized capture devices
Collection<String> videoCapturerNames = videoCapturerFactory.getVideoCapturerNames();
// return if no capturers available
if (videoCapturerNames.isEmpty() && !isVisible()) {
showErrorDialog();
return false;
}
// add the capturers to the gui
addVideoCapturers(videoCapturerNames);
// add some extra gui elements depending on the number of connected monitors
addMonitors();
pack();
setLocationRelativeTo(null);
} catch(Throwable exception) {
// probably some native packages missing..
LoggerFactory.getLogger(getClass()).error("Error while initializing capturers", exception);
showErrorDialog();
result = false;
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void displayList(){\n\t\tmArrayAdapter.clear();\n\t\tBT.setupBT();\n\n\t\tListView newDevicesListView = (ListView)\n\t\t\t\tdialog.findViewById(R.id.device_list_display);\n\n\t\tnewDevicesListView.setAdapter(mArrayAdapter);\n\t\tnewDevicesListView.setClickable(true);\n\t}",
"private void updateDeviceList() {\r\n\t\tavailableCams.removeAllElements();\r\n\t\tavailableCams.addElement(NO_CAMERA);\r\n\t\t\r\n\t\tmediaSrc.updateDeviceList();\r\n\t\tfor(CameraController c : mediaSrc.getAvailableCameras()) {\r\n\t\t\tavailableCams.addElement(c);\r\n\t\t}\r\n\t\t\r\n\t\tif(mediaSrc.getActiveCamera() != null) {\r\n\t\t\tavailableCams.setSelectedItem(mediaSrc.getActiveCamera());\r\n\t\t} else {\r\n\t\t\tavailableCams.setSelectedItem(NO_CAMERA);\r\n\t\t}\r\n\t}",
"private void updateDevicesList() {\n\n netDevicesPanel.removeAll();\n\n netManager.getRecentlySeenDevices().forEach(device -> {\n netDevicesPanel.add(new DevicePanel(device));\n });\n\n netDevicesPanel.revalidate();\n netDevicesPanel.repaint();\n }",
"public void refreshDisplayData() {\n if (useLiveDisplayUpdates && displaySection.isOpen()) {\n displayPanel.setValue(device.getDisplayData(), true);\n }\n\n }",
"void refresh() {\n List<IDevice> list = Lists.newArrayList();\n// if (fan == null) {\n// ToastUtils.showShort(R.string.dev_invalid_error);\n// } else {\n// list.add(fan);\n// if (stove != null) {\n// list.add(stove);\n// }\n// }\n list = Plat.deviceService.queryDevices();\n adapter.loadData(list);\n }",
"void onRestoreDevices() {\n synchronized (mConnectedDevices) {\n for (int i = 0; i < mConnectedDevices.size(); i++) {\n DeviceInfo di = mConnectedDevices.valueAt(i);\n AudioSystem.setDeviceConnectionState(\n di.mDeviceType,\n AudioSystem.DEVICE_STATE_AVAILABLE,\n di.mDeviceAddress,\n di.mDeviceName,\n di.mDeviceCodecFormat);\n }\n }\n }",
"private void updateDevicePreview() {\n int selectedIndex = myDevicesComboBox.getSelectedIndex();\n if (selectedIndex < 0) {\n selectedIndex = 0;\n myDevicesComboBox.setSelectedIndex(0);\n }\n\n mySelectedDevice = myMatchingDevices.get(selectedIndex);\n if (mySelectedDevice == null) {\n myDeviceFrame = null;\n return;\n }\n if (myImageCache.containsKey(mySelectedDevice.getId())) {\n myDeviceFrame = myImageCache.get(mySelectedDevice.getId());\n myPreviewPanel.repaint();\n }\n else {\n myDeviceFrame = null;\n myPreviewPanel.repaint();\n final DeviceArtPainter deviceArtPainter = DeviceArtPainter.getInstance();\n if (deviceArtPainter.hasDeviceFrame(mySelectedDevice)) {\n new Thread(() -> {\n try {\n myDeviceFrame = deviceArtPainter.createFrame(\n myImage, mySelectedDevice, myScreenOrientation,\n true /*show effect*/, 1, null);\n }\n catch (IllegalStateException artDescriptorException) {\n LOGGER.warn(artDescriptorException);\n myDeviceFrame = myImage;\n }\n finally {\n UIUtil.invokeLaterIfNeeded(\n () -> myPreviewPanel.repaint());\n }\n }).start();\n }\n else {\n myDeviceFrame = myImage;\n }\n }\n }",
"private void initDeviceList(Configuration configuration) {\n myNoMatchingDevice = false;\n if (!myMatchingDevices.isEmpty()) {\n myMatchingDevices.clear();\n }\n if (myDevicesComboBox.getItemCount() > 0) {\n myDevicesComboBox.removeAllItems();\n }\n int lastNexusIndex = 0;\n int lastMatchIndex = 0;\n int lastNexusRatioIndex = 0;\n\n ConfigurationManager configurationManager = configuration.getConfigurationManager();\n List<Device> deviceList = configurationManager.getDevices();\n final double imageRatio = myImageSize.width / (double)myImageSize.height;\n myScreenOrientation = myImageSize.width <= myImageSize.height\n ? ScreenOrientation.PORTRAIT\n : ScreenOrientation.LANDSCAPE;\n for (Device device : deviceList) {\n final Dimension screenSize = device.getScreenSize(myScreenOrientation);\n if (screenSize == null) {\n continue;\n }\n if (myImageSize.equals(screenSize)) {\n if (isNexus(device)) {\n myMatchingDevices.add(lastNexusIndex++, device);\n }\n else if (isGeneric(device)) {\n myMatchingDevices.add(lastNexusIndex + lastMatchIndex++, device);\n }\n }\n else {\n if (ratioAlmostEqual(imageRatio, screenSize)) {\n if (isNexus(device)) {\n myMatchingDevices.add(lastNexusIndex + lastMatchIndex + lastNexusRatioIndex++, device);\n }\n else {\n myMatchingDevices.add(device);\n }\n }\n }\n }\n\n // if not physical device match the size of the mockup\n // Try to find on in the Avd\n if (myMatchingDevices.isEmpty()) {\n if (findMatchingAvd(configurationManager, imageRatio)) {\n return;\n }\n // If there is still no device matching the size or ratio of the mockup,\n // use the current selected device as best matching device.\n myMatchingDevices.add(configuration.getDevice());\n myNoMatchingDevice = true;\n }\n\n for (Device device : myMatchingDevices) {\n String deviceLabel;\n if (isNexus(device)) {\n deviceLabel = getNexusLabel(device);\n }\n else if (isGeneric(device)) {\n deviceLabel = getGenericLabel(device);\n }\n else {\n deviceLabel = device.getId();\n }\n if (device == myConfiguration.getDevice()) {\n // Set a special label for the current device\n // and display it on top if it matches the image ratio\n deviceLabel = String.format(\"* %s (current)\", deviceLabel);\n }\n myDevicesComboBox.addItem(deviceLabel);\n }\n mySelectedDevice = myMatchingDevices.get(0);\n myDevicesComboBox.setSelectedIndex(0);\n updateDevicePreview();\n }",
"private void updateUI() {\n Log.i(DEBUG.TAG, \"BTDevicesActivity - updateUI - start\");\n\n btnBTScan.setEnabled(btAdapter.isEnabled() && !btAdapter.isDiscovering());\n\n if (btAdapter.isDiscovering())\n btnBTScan.setText(R.string.btn_bt_devices_scan_running_text);\n else\n btnBTScan.setText(R.string.btn_bt_devices_scan_text);\n tglBTToggle.setChecked(btAdapter.isEnabled());\n\n // remove all found (if any) devices when BT is disabled\n if (!btAdapter.isEnabled())\n lvAdapter.clear();\n\n if (lvAdapter.getCount() > 0)\n tvHeader.setText(R.string.tv_bt_devices_header_text_devices_found);\n else\n tvHeader.setText(R.string.tv_bt_devices_header_text_no_devices);\n\n Log.i(DEBUG.TAG, \"BTDevicesActivity - updateUI - finish\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n \n unprovisionedDevicesListModel = new DefaultListModel();\n unprovisionedDevicesList = new javax.swing.JList();\n unprovisionedDevicesScrollPane = new javax.swing.JScrollPane();\n unprovisionedDevicesList.setModel(unprovisionedDevicesListModel);\n unprovisionedDevicesScrollPane.setViewportView(unprovisionedDevicesList);\n window = new DiscoverUnprovisionedWindow(this);\n\n bluetoothMeshLabel = new javax.swing.JLabel();\n scanDevicesBtn = new javax.swing.JButton();\n provisionedDevicesLabel = new javax.swing.JLabel();\n provisionedDevicesScrollPane = new javax.swing.JScrollPane();\n provisionedDevicesList = new javax.swing.JList<>();\n groupsBtn = new javax.swing.JButton();\n\n deviceListModel = new DefaultListModel<>();\n groupsListModel = new DefaultListModel<>();\n groupsDeviceListModel = new DefaultListModel<>();\n\n bluetoothMeshLabel.setText(\"LEDVANCE Bluetooth Mesh\");\n\n scanDevicesBtn.setText(\"Scan for Devices\");\n scanDevicesBtn.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n scanDevicesBtnMouseClicked(evt);\n }\n });\n provisionedDevicesLabel.setText(\"Provisioned Devices\");\n\n provisionedDevicesList.setModel(deviceListModel\n /*new javax.swing.AbstractListModel<String>() {\n //provisionedDevices = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\"};\n public int getSize() { return provisionedDevices.size(); }\n public String getElementAt(int i) { return provisionedDevices.get(i); }\n public ArrayList updateList( String device ) { provisionedDevices.add( device ); return provisionedDevices; }\n }*/);\n provisionedDevicesList.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n provisionedDevicesListMouseClicked(evt);\n }\n });\n \n provisionedDevicesScrollPane.setViewportView(provisionedDevicesList);\n\n groupsBtn.setText(\"Groups\");\n groupsBtn.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n groupsBtnMouseClicked(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(bluetoothMeshLabel)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(120, 120, 120)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(provisionedDevicesLabel)\n .addGroup(layout.createSequentialGroup()\n .addComponent(provisionedDevicesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 255, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(28, 28, 28)\n .addComponent(groupsBtn)))\n .addContainerGap(110, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(scanDevicesBtn)\n .addGap(221, 221, 221))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(bluetoothMeshLabel)\n .addGap(12, 12, 12)\n .addComponent(scanDevicesBtn)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(provisionedDevicesLabel)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(provisionedDevicesScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 258, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(groupsBtn)))\n .addContainerGap(25, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public void reloadVideoDevices();",
"public void ondeviceConnected() {\n if(isAdded() && !isDetached()) {\n if (RELOAD_CARD_NUMBERS[0] == 1) {\n new DailyVerseFetcher(getActivity()).execute(true);\n }\n if (RELOAD_CARD_NUMBERS[1] == 1) {\n new HomeSermonFetcher(getActivity()).execute(true);\n }\n }\n }",
"private void updateGui() {\n final IDebugger debugger = m_debugPerspectiveModel.getCurrentSelectedDebugger();\n final TargetProcessThread thread = debugger == null ? null : debugger.getProcessManager().getActiveThread();\n\n final boolean connected = debugger != null && debugger.isConnected();\n final boolean suspended = connected && thread != null;\n\n m_hexView.setEnabled(connected && suspended && m_provider.getDataLength() != 0);\n\n if (connected) {\n m_hexView.setDefinitionStatus(DefinitionStatus.DEFINED);\n } else {\n // m_hexView.setDefinitionStatus(DefinitionStatus.UNDEFINED);\n\n m_provider.setMemorySize(0);\n m_hexView.setBaseAddress(0);\n m_hexView.uncolorizeAll();\n }\n }",
"public void addMonitors() {\n\t\t// get graphics environment\n\t\tGraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\tGraphicsDevice[] graphicsDevices = graphicsEnvironment.getScreenDevices();\n\t\t// let user choose on which screen to show the capturer, only if more than one is connected\n\t\tif (graphicsDevices.length > 1) {\n\t\t\tbuttonPanel.removeAll();\n\t\t\tJLabel screenLabel = new JLabel(getResourceMap().getString(\"screenLabel.text\"));\n\t\t\tbuttonPanel.add(screenLabel, \"wrap, grow, span\");\n\t\t\t// create buttongroup for selecting monitor\n\t\t\tButtonGroup screenButtonGroup = new ButtonGroup();\n\t\t\tInteger defaultMonitorId = videoCapturerFactory.getMonitorIdForComponent(selectedVideoCapturerName);\n\t\t\t// get the default monitor id for this capturer\n\t\t\tfor (GraphicsDevice graphicsDevice : graphicsDevices) {\n\t\t\t\tString monitorIdString = graphicsDevice.getIDstring();\n\t\t\t\tDisplayMode displayMode = graphicsDevice.getDisplayMode();\n\t\t\t\t// final Rectangle position = graphicsDevice.getDefaultConfiguration().getBounds();\n\t\t\t\tString resolution = displayMode.getWidth() + \"x\" + displayMode.getHeight();\n\t\t\t\tJToggleButton button = new JToggleButton(\"<html><center>\" + monitorIdString + \"<br>\" + resolution + \"</center></html>\");\n\t\t\t\tmonitorIdString = monitorIdString.substring(monitorIdString.length() - 1);\n\t\t\t\tbutton.setActionCommand(monitorIdString);\n\t\t\t\tbutton.addActionListener(new ActionListener() {\n\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tAbstractButton source = (AbstractButton) e.getSource();\n\t\t\t\t\t\tString monitorId = source.getActionCommand();\n\t\t\t\t\t\t// TODO pass position here instead of monitor id..\n\t\t\t\t\t\tfirePropertyChange(SelfContained.MONITOR_ID, selectedMonitorId, selectedMonitorId = monitorId);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t\t\tbutton.setBackground(Color.WHITE);\n\t\t\t\t// set default screen selection\n\t\t\t\tint monitorId = Integer.parseInt(monitorIdString);\n\t\t\t\tif (defaultMonitorId != null && defaultMonitorId == monitorId) {\n\t\t\t\t\tbutton.setSelected(true);\n\t\t\t\t\tscreenButtonGroup.setSelected(button.getModel(), true);\n\t\t\t\t} else {\n\t\t\t\t\tscreenButtonGroup.setSelected(button.getModel(), false);\n\t\t\t\t}\n\t\t\t\tscreenButtonGroup.add(button);\n\t\t\t\tbuttonPanel.add(button, \"height 70!, width 70::, grow\");\n\t\t\t}\n\t\t\tscreenLabel.setVisible(true);\n\t\t\tbuttonPanel.setVisible(true);\n\t\t}\n\t}",
"private void showCameraConfigurationDialog() {\n\n\t\tLayoutInflater factory = LayoutInflater.from(context);\n\t\tView textEntryView = factory.inflate(R.layout.camera_name_password_set,\n\t\t\t\tnull);\n\t\tfinal EditText cameraName = (EditText) textEntryView\n\t\t\t\t.findViewById(R.id.camera_name);\n\t\tfinal String name = cameraProperties.getCameraSsid();\n\t\tcameraName.setText(name);\n\t\tfinal EditText cameraPassword = (EditText) textEntryView\n\t\t\t\t.findViewById(R.id.wifi_password);\n\t\tfinal String password = cameraProperties.getCameraPassword();\n\t\tcameraPassword.setText(password);\n\t\tAlertDialog.Builder ad1 = new AlertDialog.Builder(context);\n\t\tad1.setTitle(R.string.camera_wifi_configuration);\n\t\tad1.setIcon(android.R.drawable.ic_dialog_info);\n\t\tad1.setView(textEntryView);\n\t\tad1.setCancelable(true);\n\t\tad1.setPositiveButton(R.string.camera_configuration_set,\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int arg1) {\n\n\t\t\t\t\t\tString temp1 = cameraName.getText().toString();\n\t\t\t\t\t\tif (temp1.length() > 20) {\n\t\t\t\t\t\t\tToast.makeText(context, R.string.camera_name_limit,\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t// do not allow dialog close\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tField field = dialog.getClass().getSuperclass()\n\t\t\t\t\t\t\t\t\t\t.getDeclaredField(\"mShowing\");\n\t\t\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t\t\tfield.set(dialog, false);\n\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tString temp = cameraPassword.getText().toString();\n\t\t\t\t\t\tif (temp.length() > 10 || temp.length() < 8) {\n\t\t\t\t\t\t\tToast.makeText(context, R.string.password_limit,\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t// do not allow dialog close\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tField field = dialog.getClass().getSuperclass()\n\t\t\t\t\t\t\t\t\t\t.getDeclaredField(\"mShowing\");\n\t\t\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t\t\tfield.set(dialog, false);\n\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// allow dialog close\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tField field = dialog.getClass().getSuperclass()\n\t\t\t\t\t\t\t\t\t.getDeclaredField(\"mShowing\");\n\t\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t\tfield.set(dialog, true);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (name.equals(cameraName.getText().toString()) == false) {\n\t\t\t\t\t\t\tcameraProperties.setCameraSsid(cameraName.getText()\n\t\t\t\t\t\t\t\t\t.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (password.equals(temp) == false) {\n\t\t\t\t\t\t\tcameraProperties.setCameraPassword(cameraPassword\n\t\t\t\t\t\t\t\t\t.getText().toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tad1.show();\n\t}",
"public void displayPairedDevices() {\n\t\tBluetoothAdapter mBluetoothAdapter = BluetoothAdapter\n\t\t\t\t.getDefaultAdapter();\n\t\tSet<BluetoothDevice> bondedDevices = mBluetoothAdapter\n\t\t\t\t.getBondedDevices();\n\n\t\tList<String> s = new ArrayList<String>();\n\t\tpairedDevices = new ArrayList<BluetoothDevice>();\n\t\tfor (BluetoothDevice bt : bondedDevices) {\n\t\t\ts.add(bt.getName());\n\t\t\tpairedDevices.add(bt);\n\t\t}\n\t\tListView List = (ListView) findViewById(R.id.paired_devices);\n\n\t\tList.setAdapter(new ArrayAdapter<String>(this, R.layout.device_row, s));\n\t}",
"public void discoverDevices(){\r\n \t// If we're already discovering, stop it\r\n if (mBtAdapter.isDiscovering()) {\r\n mBtAdapter.cancelDiscovery();\r\n }\r\n \r\n Toast.makeText(this, \"Listining for paired devices.\", Toast.LENGTH_LONG).show();\r\n \tmBtAdapter.startDiscovery(); \r\n }",
"protected void fetchMySmartDevices() {\n setIsLoading(true);\n getCompositeDisposable().add(getDataManager()\n .getAllSmartDevices()\n .subscribeOn(getSchedulerProvider().io())\n .observeOn(getSchedulerProvider().ui())\n .subscribe(mySmartDevices -> {\n mySmartDevicesListLiveData.setValue(mySmartDevices);\n\n setIsLoading(false);\n }, throwable -> {\n setIsLoading(false);\n }));\n }",
"private void selectAvailableDevices() {\n\n ArrayList deviceStrs = new ArrayList();\n final ArrayList<String> devices = new ArrayList();\n\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n // checking and enabling bluetooth\n if (!btAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n btAdapter = BluetoothAdapter.getDefaultAdapter();\n Set<BluetoothDevice> pairedDevices = btAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n deviceStrs.add(device.getName() + \"\\n\" + device.getAddress());\n devices.add(device.getAddress());\n }\n }\n\n // show a list of paired devices to connect with\n final AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.select_dialog_singlechoice,\n deviceStrs.toArray(new String[deviceStrs.size()]));\n alertDialog.setSingleChoiceItems(adapter, -1, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n int position = ((AlertDialog) dialog).getListView().getCheckedItemPosition();\n String deviceAddress = devices.get(position);\n setDeviceAddress(deviceAddress);\n chosen = true;\n //notify user for ongoing connection\n launchRingDialog();\n\n }\n });\n\n alertDialog.setTitle(R.string.blueChose);\n alertDialog.show();\n }\n }",
"public void reload()\n\t{\n\t\tm_PrinterList = ToolBox.generatePrinterList();\n\t\tremoveAll();\n\t\tdesignComponents();\n\t\taddComponents();\n\t\tthis.revalidate();\n\t}",
"@Override\n public void run() {\n if (mConnectedAdapter.isEmpty()) {\n findViewById(R.id.textView_AlreadyConnectedTitle).setVisibility(\n View.VISIBLE);\n mConnectedDevicesList.setVisibility(View.VISIBLE);\n }\n mProgressEmptyView.setVisibility(View.GONE);\n mConnectedAdapter.add(result);\n mConnectedAdapter.notifyDataSetChanged();\n }",
"public default void onCaptureDevicesLoaded() { /* empty */ }",
"private void updateBluetoothList(){\n\t\tif(bluetoothAdapter == null){\n\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\t\tbuilder.setTitle(R.string.no_bt_error_dialog_title);\n\t\t\tbuilder.setMessage(R.string.no_bt_error_dialog_message);\n\t\t\tbuilder.setNeutralButton(R.string.no_bt_error_dialog_btn, new OnClickListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\t\n\t\t//check if it is enabled\n//\t\tif (!bluetoothAdapter.isEnabled()) {\n//\t\t Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n//\t\t startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n//\t\t}\n\t\t\n\t\tSet<BluetoothDevice> pairedDevices = bluetoothAdapter\n\t\t\t\t.getBondedDevices();\n\t\t\n\t\tpairedlist = new ArrayList<BluetoothDevice>();\n\t\t\n\t\tif (pairedDevices.size() > 0) {\n\t\t\tfor (BluetoothDevice device : pairedDevices) {\n\t\t\t\tif (isDeviceUsefulForSMS(device.getBluetoothClass()\n\t\t\t\t\t\t.getMajorDeviceClass())) {\n\t\t\t\t\tpairedlist.add(device);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(pairedlist.size() <= 0){\n\t\t\tshowBTPairedDialog();\n\t\t}\n\t\t\n\t\tupdateBTListView();\n\t}",
"public void DiscoverUsb(View view) {\n \t// Initiate variables\n \tString UsbList = \"Detailed Device List:\\n\";\n \tArrayAdapter<String> connectedDevicesAdapter;\n \tconnectedDevicesAdapter = new ArrayAdapter<String>(getApplicationContext(), android.R.layout.simple_spinner_dropdown_item, android.R.id.text1) ;\n \tString VendorName = \"Dummy\";\n \tString ProductName = \"Dummy\";\n \t// Do something in response to button\n \t\n // Retrieve the text view\n TextView textView = (TextView) findViewById(R.id.usb_list_view);\n\n \n // Retrieve the UsbManager service with its message\n UsbManager manager = (UsbManager) getSystemService(Context.USB_SERVICE);\n\n HashMap<String, UsbDevice> deviceList = manager.getDeviceList();\n Iterator<UsbDevice> deviceIterator = deviceList.values().iterator();\n while(deviceIterator.hasNext()){\n UsbDevice device = deviceIterator.next();\n \n UsbList=UsbList.concat(\"Device Name:\\n\"+device.getDeviceName()+\"\\n\") ;\n UsbList=UsbList.concat(\"VendorId:\"+Integer.toHexString(device.getVendorId())+\"\\t\"+\"ProductId:\"+Integer.toHexString(device.getProductId())+\"\\n\") ;\n\n UsbList=UsbList.concat(\"VendorId:\"+device.getVendorId()+\"\\t\"+\"ProductId:\"+device.getProductId()+\"\\n\") ;\n\n\n UsbList=UsbList.concat(\"Device Class:\"+Integer.toHexString(device.getDeviceClass())+\"\\t\"+\"subClass:\"+device.getDeviceSubclass()+\"\\n\") ;\n UsbList=UsbList.concat(\"DeviceId:\"+device.getDeviceId()+\"\\t\"+\"InterfaceCount:\"+device.getInterfaceCount()+\"\\n\") ;\n \n int Vid = device.getVendorId();\n \n test();\n \n switch (Vid) {\n case 2372:\n \tVendorName = \"KORG, Inc.\";\n \tProductName = \"nanoKONTROL studio controller\";\n \tbreak;\t\n case 2235:\n \tVendorName = \"Texas Instruments Japan\";\n \tProductName = \"PCM2900 Audio Codec\";\n \tbreak;\n default:\n\t\t\t\t// do nothing.\n\t\t\t\tbreak;\t\n }\n \n UsbList=UsbList.concat(VendorName+\"\\n\"+ProductName+\"\\n\") ;\n \n connectedDevicesAdapter.add(VendorName+\"\\t\"+ProductName);\n UsbList=UsbList.concat(\"\\n\");\n }\n textView.setText(UsbList);\n \n\t\tSpinner UsbListSpinner = (Spinner) findViewById(R.id.usb_list_spinner); \n\t\t\n\t\t\n\t\t\n\t\tUsbListSpinner.setAdapter(connectedDevicesAdapter);\n \n }",
"public boolean runOnAllDevices();",
"private void checkCameraBeforeOpen() {\n // First get the back up camera\n List<String> backUpPreviewCamera = mCameraIdManager.getBackUpPreviewCameraId();\n // Second,get the remote camera and filter is connect camera\n LinkedHashMap<String, IRemoteDevice> remoteConnectedCamera = mIMultiCameraDeviceAdapter\n .queryRemoteDevices();\n // key-value is cameraId-deviceId\n LinkedHashMap<String, String> deviceId = mCameraIdManager.getDeviceId();\n List<String> deleteItem = new ArrayList<String>();\n int status = IMultiCameraDeviceAdapter.REMOTE_CAEMRA_STATUS_UNKNOWN;\n LogHelper.d(TAG, \"[checkCameraBeforeOpen],before check camera, the camera id :\"\n + backUpPreviewCamera);\n // back up camera maybe not equals remote camera,such as pause camera\n // and disconnect remote camera from cross mount setting.\n for (String needOpenCamera : mCameraIdManager.getDeviceId().keySet()) {\n if (!MultiCameraModuleUtil.isLocalCamera(needOpenCamera)) {\n if (remoteConnectedCamera.size() == 0) {\n deleteItem.add(needOpenCamera);\n } else {\n // get the device id according camera id from mDeviceId\n String needCheckdeviceId = deviceId.get(needOpenCamera);\n IRemoteDevice device = remoteConnectedCamera.get(needCheckdeviceId);\n if (device != null) {\n status = device.get(IRemoteDevice.KEY_REMOTE_SERVICE_STATUS);\n }\n // If the remote camera status is not connected,need remove it.\n if (IMultiCameraDeviceAdapter.REMOTE_CAEMRA_STATUS_CONNECTED != status) {\n deleteItem.add(needOpenCamera);\n }\n }\n }\n }\n // Update the back up preview camera id and update the camera id.\n for (String cameraId : deleteItem) {\n backUpPreviewCamera.remove(cameraId);\n updateCameraBeforeOpened(false, cameraId, null);\n }\n // if the camera id is null,need add the local camera into the preview list\n if (backUpPreviewCamera.size() == 0) {\n backUpPreviewCamera.add(mCameraId);\n updateCameraBeforeOpened(true, mCameraId, mLocalDeviceIdKeyPref + mCameraId);\n }\n\n LogHelper.d(TAG, \"[checkCameraBeforeOpen],after check camera, the camera id :\"\n + backUpPreviewCamera);\n }",
"public void monitorFoundDevices() {\n //start a thread\n new Thread() {\n public void run() {\n //loop till mBeaconListAdapter has been skilled.\n while(mBeaconListAdapter != null) {\n try {\n //Since it will update UI, runOnUiThread is called here.\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n for (int i = 0; i < mBeaconListAdapter.getCount(); i++) {\n if (!mBleWrapper.checkDeviceConnection(mBeaconListAdapter.\n getDevice(i).getAddress()))\n mBeaconListAdapter.removeDevice(i);\n }\n }\n });\n\n Thread.sleep(MONITOR_DELAY_TIME_INTERVAL);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n }.start();\n }",
"private void refreshList()\n\t\t{\n\t\tint cpt = 0;\n\t\tthis.combo.removeAllItems();\n\t\tthis.listPort = meteoPort.findListPortSerie();\n\t\tif (listPort.size() > 0)\n\t\t\t{\n\t\t\tfor(String string:listPort)\n\t\t\t\t{\n\t\t\t\tif (!meteoPort.isStationMeteoAvailable(string, 1000))\n\t\t\t\t\t{\n\t\t\t\t\tcombo.addItem(string);\n\t\t\t\t\tcpt++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif (cpt > 0)\n\t\t\t\t{\n\t\t\t\tbuttonValider.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tbuttonValider.setEnabled(false);\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void completeDeviceConnectService(BTController cbtController) {\n\t\tsuper.completeDeviceConnectService(cbtController);\n\t\tsetDeviceName();\n\t\tsetShowHideConnAnimation();\n\t\tif(view != null){\n\t\t\timageView_to.setVisibility(View.VISIBLE);\n\t\t\timageView_phone.setVisibility(View.VISIBLE);\n\t\t}\n\t\t\n\t}",
"public void openAddSmartDeviceList() {\n getNavigator().openAddSmartDeviceList();\n }",
"@Override\n public int getCount()\n {\n return this.foundDevices.size();\n }",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tprivate void initialize() {\n\t\tmodel = new DefaultListModel();\n\t\taddDevice = new AddDevice();\n\t\tsobreDevice = new SobreDevice();\n\t\taddDevice.instancia(this);\n\t\tsobreDevice.instancia(this);\n\t\tconnectedD = new ConnectedDevices();\n\t\tlampada = new JanelaLampada();\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel, BorderLayout.CENTER);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJButton btnAddDevice = new JButton(\"Add Device\");\n\t\tbtnAddDevice.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//Adiciona um Device\t\n\t\t\t\taddDevice();\n\t\t\t\tverificaBotao();\n\t\t\t}\n\t\t});\n\t\tbtnAddDevice.setBounds(105, 222, 139, 25);\n\t\tpanel.add(btnAddDevice);\n\t\t\n\t\tbtnRemoveDevice = new JButton(\"Remove Device\");\n\t\tbtnRemoveDevice.setEnabled(false);\n\t\tbtnRemoveDevice.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\trmvDevice();\n\t\t\t\tverificaBotao();\n\t\t\t}\n\t\t});\n\t\tbtnRemoveDevice.setBounds(105, 259, 139, 25);\n\t\tpanel.add(btnRemoveDevice);\n\t\t\n\t\tjlist = new JList<String>();\n\t\t/*list.setModel(new AbstractListModel() {\n\t\t\tString[] values = new String[] {\"Lampada\",\n\t\t\t\t\t\"Device 2\", \"Device 3\", \"Device 4\", \"Device 5\", \"Device 6\", \"Device 7 \", \"Device 8\"};\n\t\t\tfor(Device dTemp : connectedD) {\n\t\t\t\tvalues.a\n\t\t\t}\n\t\t\tpublic int getSize() {\n\t\t\t\treturn values.length;\n\t\t\t}\n\t\t\tpublic Object getElementAt(int index) {\n\t\t\t\treturn values[index];\n\t\t\t}\n\t\t});*/\n\t\t\n\t\tjlist.setModel(model);\n\t\tjlist.setBounds(106, 42, 130, 154);\n\t\tpanel.add(jlist);\n\t\t\n\t\tbtnToggleOnoff = new JButton(\"ON/OFF\");\n\t\tbtnToggleOnoff.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttoggleOnOff();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnToggleOnoff.setBounds(260, 40, 117, 25);\n\t\tpanel.add(btnToggleOnoff);\n\t\t\n\t\tbtnSetTimer = new JButton(\"Set Timer\");\n\t\tbtnSetTimer.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetTimer(6);\n\t\t\t}\n\t\t});\n\t\tbtnSetTimer.setBounds(260, 100, 117, 25);\n\t\tpanel.add(btnSetTimer);\n\t\t\n\t\tbtnWattage = new JButton(\"Wattage\");\n\t\tbtnWattage.setBounds(260, 160, 117, 25);\n\t\tpanel.add(btnWattage);\n\t\t\n\t\tbtnsobre = new JButton(\"Sobre\");\n\t\tbtnsobre.setEnabled(false);\n\t\tbtnsobre.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsobreDevice.setUi();\n\t\t\t\tsobreDevice.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnsobre.setBounds(260, 210, 117, 25);\n\t\tpanel.add(btnsobre);\n\t\t\n\t\tJButton btnIamgemvideo = new JButton(\"Iamgem/Video\");\n\t\tbtnIamgemvideo.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tVideoCapture videoCapture = new VideoCapture(0);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnIamgemvideo.setBounds(260, 259, 117, 25);\n\t\tpanel.add(btnIamgemvideo);\n\t\tverificaBotao();\n\n\t}",
"@Override\n public void scanInitiated(List<WireScanner> lstDevs, MainScanController.SCAN_MODE mode) {\n \n // Make sure there is something to do\n if (lstDevs.size() == 0)\n return;\n \n // Set the currently active devices\n// this.lstActDevs.clear();\n// this.lstActDevs.addAll(lstDevs);\n \n // Reset the plots\n this.pltSignal.clear();\n // this.pltTraces.scaleAbsissa(lstDevs);\n \n \n // See if we are monitoring live data\n if (!this.butLiveData.isSelected()) \n return;\n \n try {\n this.mplLiveData.emptyPool();\n this.buildMonitorPool(lstDevs);\n this.mplLiveData.begin(true);\n \n } catch (ConnectionException e) {\n getLogger().logException(getClass(), e, \"Unable to start monitor pool\");\n \n } catch (MonitorException e) {\n getLogger().logException(getClass(), e, \"Unable to start monitor pool\");\n \n } catch (NoSuchChannelException e) {\n getLogger().logException(getClass(), e, \"Unable to start monitor pool\");\n \n }\n }",
"private void initSettingsPanel() {\n JLabel lblName = new JLabel(\"Name:\");\n lblName.setForeground(StyleCompat.textColor());\n\n JTextField fieldName = new JTextField(20);\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblName, fieldName));\n\n JLabel lblVirtOutput = new JLabel(\"VirtualOutput:\");\n lblVirtOutput.setForeground(StyleCompat.textColor());\n\n JComboBox<String> comboVirtOutputs = new JComboBox<>();\n for(Device device : instance.getInterface().getDeviceManager().getDevices()) {\n if(device instanceof VirtualOutput) {\n if(handler != null && instance.getHandlerByVirtualOutput(device.getId()) == handler) {\n comboVirtOutputs.addItem(device.getId());\n comboVirtOutputs.setSelectedIndex(comboVirtOutputs.getItemCount() - 1);\n } else if(!instance.isVirtualOutputUsed(device.getId())) {\n comboVirtOutputs.addItem(device.getId());\n }\n }\n }\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblVirtOutput, comboVirtOutputs));\n\n JLabel lblDeviceId = new JLabel(\"OpenRGB Device ID (index):\");\n lblDeviceId.setForeground(StyleCompat.textColor());\n\n JFormattedTextField fieldDeviceId = new JFormattedTextField(UserInterfaceUtil.getIntFieldFormatter());\n fieldDeviceId.setColumns(5);\n JButton btnAddDeviceId = new JButton(\"Add device\");\n UiUtilsCompat.configureButton(btnAddDeviceId);\n btnAddDeviceId.addActionListener(e -> {\n if(fieldDeviceId.getValue() == null) return;\n int value = (int) fieldDeviceId.getValue();\n if(value < 0 || listDevices.contains(value)) {\n instance.getInterface().getNotificationManager().addNotification(\n new Notification(NotificationType.ERROR, \"OpenRGB Plugin\", \"Invalid ID or list contains already ID.\"));\n return;\n }\n listDevices.add(value);\n fieldDeviceId.setText(\"\");\n updateDeviceListPanel();\n });\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblDeviceId, fieldDeviceId, btnAddDeviceId));\n\n if(instance.getOpenRGB().isConnected()) {\n // show info label, remove all and add all button\n int deviceCount = instance.getOpenRGB().getControllerCount();\n\n JLabel lblCountInfo = new JLabel(\"There are \" + deviceCount + \" devices available.\");\n lblCountInfo.setForeground(StyleCompat.textColor());\n\n JButton btnAddAll = new JButton(\"Add all\");\n UiUtilsCompat.configureButton(btnAddAll);\n btnAddAll.addActionListener(e -> {\n for(int i = 0; i < deviceCount; i++) {\n if(!listDevices.contains(i))\n listDevices.add(i);\n }\n updateDeviceListPanel();\n });\n\n JButton btnRemoveAll = new JButton(\"Remove all\");\n UiUtilsCompat.configureButton(btnRemoveAll);\n btnRemoveAll.addActionListener(e -> {\n listDevices.clear();\n updateDeviceListPanel();\n });\n\n // add components to panel\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblCountInfo, btnAddAll, btnRemoveAll));\n } else {\n // show hint message\n JLabel lblHint = new JLabel(\"(i) Go back and connect the client to receive live data from the SDK server.\");\n lblHint.setForeground(StyleCompat.textColorDarker());\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblHint));\n }\n\n panelDeviceList = new JPanel();\n panelDeviceList.setBackground(StyleCompat.panelDarkBackground());\n panelDeviceList.setLayout(new BoxLayout(panelDeviceList, BoxLayout.Y_AXIS));\n panelDeviceList.setAlignmentX(Component.LEFT_ALIGNMENT);\n panelSettings.add(Box.createVerticalStrut(10));\n panelSettings.add(panelDeviceList);\n updateDeviceListPanel();\n\n if(handler != null) {\n // set stored values\n fieldName.setText(handler.getName());\n }\n\n JButton btnAdd = new JButton(handler == null ? \"Add OpenRGB Device\" : \"Save OpenRGB Device\");\n UiUtilsCompat.configureButton(btnAdd);\n btnAdd.setAlignmentX(Component.LEFT_ALIGNMENT);\n btnAdd.setMaximumSize(new Dimension(Integer.MAX_VALUE, 50));\n btnAdd.setMinimumSize(new Dimension(100, 50));\n\n btnAdd.addActionListener(e -> {\n // create value holder\n ValueHolder holder = new ValueHolder(\n fieldName.getText(),\n (String) comboVirtOutputs.getSelectedItem(),\n listDevices);\n\n if(validateInput(holder.getName(), holder.getOutputId())) {\n // get output\n VirtualOutput output = OpenRgbPlugin.getVirtualOutput(instance.getInterface().getDeviceManager(), holder.getOutputId());\n if (output == null) {\n instance.getInterface().getNotificationManager().addNotification(\n new Notification(NotificationType.ERROR, \"OpenRGB Plugin\", \"Could not find virtual output for id \" + holder.getOutputId()));\n return;\n }\n\n if(handler != null) { // set values to output handler\n handler.setName(holder.getName());\n handler.setDevices(listDevices);\n handler.setVirtualOutput(output);\n } else { // create new output handler\n // create new handler\n OutputHandler handler = instance.createHandler(holder, output);\n // add handler to set\n instance.addHandler(handler);\n }\n\n // go back\n context.navigateDown();\n }\n });\n\n panelSettings.add(Box.createVerticalGlue());\n panelSettings.add(btnAdd);\n }",
"private void getDevices(){\n progress.setVisibility(View.VISIBLE);\n\n emptyMessage.setVisibility(View.GONE);\n getListView().setVisibility(View.GONE);\n\n // request device list from the server\n Model.PerformRESTCallTask gd = Model.asynchRequest(this,\n getString(R.string.rest_url) + \"?\"\n + \"authentification_key=\" + MainActivity.authentificationKey + \"&operation=\" + \"getdevices\",\n //Model.GET,\n \"getDevices\");\n tasks.put(\"getDevices\", gd);\n }",
"private void notifyDevicesChanged() {\n runInAudioThread(new Runnable() {\n @Override\n public void run() {\n WritableArray data = Arguments.createArray();\n final boolean hasHeadphones = availableDevices.contains(DEVICE_HEADPHONES);\n for (String device : availableDevices) {\n if (hasHeadphones && device.equals(DEVICE_EARPIECE)) {\n // Skip earpiece when headphones are plugged in.\n continue;\n }\n WritableMap deviceInfo = Arguments.createMap();\n deviceInfo.putString(\"type\", device);\n deviceInfo.putBoolean(\"selected\", device.equals(selectedDevice));\n data.pushMap(deviceInfo);\n }\n getContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class).emit(DEVICE_CHANGE_EVENT, data);\n JitsiMeetLogger.i(TAG + \" Updating audio device list\");\n }\n });\n }",
"private void initRecords() {\r\n\t\tthis.records = recHandler.getRecords(RecordsDisplayPanel.DEFAULT_MAX_ONSCREEN);\r\n\t}",
"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 }",
"private void loadScreen() {\r\n\t\ttry {\r\n\t\t\t// Filtros\r\n\t\t\tcmbDataSource = new LTComboBoxField(rsBundle.getString(\"data_source\"), true, true);\r\n\t\t\tcmbDataSource.addValues(rsBundle.getString(\"screen_audio_comparison_filters_database\"), rsBundle.getString(\"screen_audio_comparison_filters_database\"));\r\n\t\t\tcmbDataSource.addValues(rsBundle.getString(\"screen_audio_comparison_filters_library\"), rsBundle.getString(\"screen_audio_comparison_filters_library\"));\r\n\t\t\tcmbDataSource.addValues(rsBundle.getString(\"screen_audio_comparison_filters_audio_file\"), rsBundle.getString(\"screen_audio_comparison_filters_audio_file\"));\r\n\t\t\tcmbDataSource.setValue(rsBundle.getString(\"screen_audio_comparison_filters_database\"));\r\n\t\t\t\r\n\t\t\tcmbFeature = new LTComboBoxField(rsBundle.getString(\"feature\"), true, true);\r\n\t\t\tcmbFeature.addValues(\"Power Spectrum\", rsBundle.getString(\"feature_power_spectrum\"));\r\n\t\t\tcmbFeature.addValues(\"MFCC\", rsBundle.getString(\"feature_mfcc\"));\r\n\t\t\tcmbFeature.addValues(\"LPC\", rsBundle.getString(\"feature_lpc\"));\r\n\t\t\tcmbFeature.addValues(\"LPCC\", rsBundle.getString(\"feature_lpcc\"));\r\n\t\t\tcmbFeature.addValues(\"PLP\", rsBundle.getString(\"feature_plp\"));\r\n\t\t\tcmbFeature.addValues(\"MFCC_LPC\", \"MFCC + LPC\");\r\n\t\t\tcmbFeature.addValues(\"MFCC_LPCC\", \"MFCC + LPCC\");\r\n\t\t\tcmbFeature.addValues(\"MFCC_PLP\", \"MFCC + PLP\");\r\n\t\t\tcmbFeature.addValues(\"MFCC_LPC_LPCC_PLP\", \"MFCC + LPC + LPCC + PLP\");\r\n\t\t\tcmbFeature.setValue(\"Power Spectrum\");\r\n\t\t\t\r\n\t\t\tcmbClassifier = new LTComboBoxField(rsBundle.getString(\"classifier\"), true, true);\r\n\t\t\tcmbClassifier.addValues(\"Pearson Correlation\", rsBundle.getString(\"classifier_pearson_correlation\"));\r\n\t\t\tcmbClassifier.setValue(\"Pearson Correlation\");\r\n\r\n\t\t\t// Botão Filtro\r\n\t\t\tbtnFilters = new JButton();\r\n\t\t\tbtnFilters.setMinimumSize(new Dimension(40, 40));\r\n\t\t\tbtnFilters.setMaximumSize(new Dimension(40, 40));\r\n\t\t\tbtnFilters.setIcon(new ImageIcon(\"res/images/filter.png\"));\r\n\t\t\tbtnFilters.setToolTipText(\"Filtros\");\r\n\t\t\tbtnFilters.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent event) {\r\n\t\t\t\t\tScreenAudioComparisonFilters objAudioComparisonFilters = new ScreenAudioComparisonFilters();\r\n\t\t\t\t\tobjAudioComparisonFilters.setAnimalPhylum(lstAnimalPhylum);\r\n\t\t\t\t\tobjAudioComparisonFilters.setAnimalClass(lstAnimalClass);\r\n\t\t\t\t\tobjAudioComparisonFilters.setAnimalOrder(lstAnimalOrder);\r\n\t\t\t\t\tobjAudioComparisonFilters.setAnimalFamily(lstAnimalFamily);\r\n\t\t\t\t\tobjAudioComparisonFilters.setAnimalGenus(lstAnimalGenus);\r\n\t\t\t\t\tobjAudioComparisonFilters.setAnimalSpecies(lstAnimalSpecies);\r\n\t\t\t\t\tobjAudioComparisonFilters.setRecordist(lstRecordist);\r\n\t\t\t\t\tobjAudioComparisonFilters.setLocationCountry(lstLocationCountry);\r\n\t\t\t\t\tobjAudioComparisonFilters.setLocationState(lstLocationState);\r\n\t\t\t\t\tobjAudioComparisonFilters.setLocationCity(lstLocationCity);\r\n\t\t\t\t\tobjAudioComparisonFilters.setDateInitial(txtDateInitial.getValue());\r\n\t\t\t\t\tobjAudioComparisonFilters.setDateFinal(txtDateFinal.getValue());\r\n\t\t\t\t\t\r\n\t\t\t\t\tobjAudioComparisonFilters.showScreen();\r\n\t\t\t\t\t\r\n\t\t\t\t\tlstAnimalPhylum = objAudioComparisonFilters.getAnimalPhylum();\r\n\t\t\t\t\tlstAnimalClass = objAudioComparisonFilters.getAnimalClass();\r\n\t\t\t\t\tlstAnimalOrder = objAudioComparisonFilters.getAnimalOrder();\r\n\t\t\t\t\tlstAnimalFamily = objAudioComparisonFilters.getAnimalFamily();\r\n\t\t\t\t\tlstAnimalGenus = objAudioComparisonFilters.getAnimalGenus();\r\n\t\t\t\t\tlstAnimalSpecies = objAudioComparisonFilters.getAnimalSpecies();\r\n\t\t\t\t\tlstRecordist = objAudioComparisonFilters.getRecordist();\r\n\t\t\t\t\tlstLocationCountry = objAudioComparisonFilters.getLocationCountry();\r\n\t\t\t\t\tlstLocationState = objAudioComparisonFilters.getLocationState();\r\n\t\t\t\t\tlstLocationCity = objAudioComparisonFilters.getLocationCity();\r\n\t\t\t\t\ttxtDateInitial = objAudioComparisonFilters.getDateInitialField();\r\n\t\t\t\t\ttxtDateFinal = objAudioComparisonFilters.getDateFinalField();\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// Segmentos do Áudio (ROIs)\r\n\t\t\tpanelSegments = new WasisPanel(rsBundle.getString(\"screen_audio_comparison_selections\"));\r\n\t\t\tpanelSegments.setLayout(new MigLayout(\"insets 0\", \"[grow]\", \"[grow]\"));\r\n\t\t\t\r\n\t\t\t// Seleções realizadas pelo usuário\r\n\t\t\tobjTableSegments = new LTTable(true);\r\n\t\t\tobjTableSegments.addColumn(\"sound_unit\", rsBundle.getString(\"audio_file_selection_sound_unit\"), LTDataTypes.STRING, 140, false);\r\n\t\t\tobjTableSegments.addColumn(\"time_initial\", rsBundle.getString(\"audio_file_selection_time_initial\"), LTDataTypes.INTEGER, 0, false);\r\n\t\t\tobjTableSegments.addColumn(\"time_final\", rsBundle.getString(\"audio_file_selection_time_final\"), LTDataTypes.INTEGER, 0, false);\r\n\t\t\tobjTableSegments.addColumn(\"frequency_initial\", rsBundle.getString(\"audio_file_selection_frequency_minimum\"), LTDataTypes.INTEGER, 0, false);\r\n\t\t\tobjTableSegments.addColumn(\"frequency_final\", rsBundle.getString(\"audio_file_selection_frequency_maximum\"), LTDataTypes.INTEGER, 0, false);\r\n\t\t\tobjTableSegments.addColumn(\"time_initial_show\", rsBundle.getString(\"audio_file_selection_time_initial\"), LTDataTypes.STRING, 145, false);\r\n\t\t\tobjTableSegments.addColumn(\"time_final_show\", rsBundle.getString(\"audio_file_selection_time_final\"), LTDataTypes.STRING, 145, false);\r\n\t\t\tobjTableSegments.addColumn(\"frequency_initial_show\", rsBundle.getString(\"audio_file_selection_frequency_minimum\"), LTDataTypes.STRING, 145, false);\r\n\t\t\tobjTableSegments.addColumn(\"frequency_final_show\", rsBundle.getString(\"audio_file_selection_frequency_maximum\"), LTDataTypes.STRING, 145, false);\r\n\t\t\tobjTableSegments.addMouseListener(new SegmentMouseAdapter());\r\n\t\t\tobjTableSegments.showTable();\r\n\r\n\t\t\tloadAudioSegments();\r\n\t\t\t\r\n\t\t\t// Botão Comparar Áudio\r\n\t\t\tbtnRunComparison = new JButton(rsBundle.getString(\"screen_audio_comparison_run_comparison\"));\r\n\t\t\tbtnRunComparison.setMinimumSize(new Dimension(100, 30));\r\n\t\t\tbtnRunComparison.setMaximumSize(new Dimension(300, 30));\r\n\t\t\tbtnRunComparison.setIconTextGap(15);\r\n\t\t\tbtnRunComparison.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\r\n\t\t\tbtnRunComparison.setIcon(new ImageIcon(\"res/images/compare_sounds.png\"));\r\n\t\t\tbtnRunComparison.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent event) {\r\n\t\t\t\t\tcompareAudios();\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// Resultados da comparação\r\n\t\t\tpanelResults = new WasisPanel(rsBundle.getString(\"screen_audio_comparison_results\"));\r\n\t\t\tpanelResults.setLayout(new MigLayout(\"insets 0\", \"[grow]\", \"[grow]\"));\r\n\t\t\t\r\n\t\t\tobjTableResults = new LTTable(true);\r\n\t\t\tobjTableResults.addColumn(\"fk_audio_file_segment\", rsBundle.getString(\"audio_file_selection_id_selection\"), LTDataTypes.LONG, 0, false);\r\n\t\t\tobjTableResults.addColumn(\"correlation_result\", rsBundle.getString(\"screen_audio_comparison_results_correlation\"), LTDataTypes.DOUBLE, 120, false);\r\n\t\t\tobjTableResults.addColumn(\"animal_name_english\", rsBundle.getString(\"animal_name_english\"), LTDataTypes.STRING, 230, false);\r\n\t\t\tobjTableResults.addColumn(\"animal_genus\", rsBundle.getString(\"animal_genus\"), LTDataTypes.STRING, 185, false);\r\n\t\t\tobjTableResults.addColumn(\"animal_species\", rsBundle.getString(\"animal_species\"), LTDataTypes.STRING, 185, false);\r\n\t\t\tobjTableResults.addColumn(\"audio_file_path\", rsBundle.getString(\"audio_file_path\"), LTDataTypes.STRING, 0, false);\r\n\t\t\tobjTableResults.addColumn(\"sound_unit\", rsBundle.getString(\"audio_file_selection_sound_unit\"), LTDataTypes.STRING, 0, false);\r\n\t\t\tobjTableResults.addMouseListener(new ResultMouseAdapter());\r\n\t\t\tobjTableResults.showTable();\r\n\t\t\t\r\n\t\t\tobjTableResults.setColumnDoubleFractionDigits(\"correlation_result\", 4);\r\n\t\t\t\r\n\t\t\t// Botão Mostrar Resultados\r\n\t\t\tbtnShowResults = new JButton(rsBundle.getString(\"screen_audio_comparison_show_results\"));\r\n\t\t\tbtnShowResults.setMinimumSize(new Dimension(100, 30));\r\n\t\t\tbtnShowResults.setMaximumSize(new Dimension(300, 30));\r\n\t\t\tbtnShowResults.setIconTextGap(15);\r\n\t\t\tbtnShowResults.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\r\n\t\t\tbtnShowResults.setIcon(new ImageIcon(\"res/images/results.png\"));\r\n\t\t\tbtnShowResults.addActionListener(new ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(ActionEvent event) {\r\n\t\t\t\t\tshowDetailedResults();\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// Cria a tela\r\n\t\t\tobjWasisDialog = new WasisDialog(rsBundle.getString(\"screen_audio_comparison_screen_description\"), true);\r\n\t\t\tobjWasisDialog.setBounds(350, 350, 800, 500);\r\n\t\t\tobjWasisDialog.setMinimumSize(new Dimension(800, 500));\r\n\t\t\t\r\n\t\t\tobjWasisDialog.getContentPane().setLayout(new MigLayout(\"insets 5 5 5 5\", \"[grow]\", \"[60.00][400.00][][][]\"));\r\n\t\t\tobjWasisDialog.getContentPane().add(cmbDataSource, \"cell 0 0, grow, width 400\");\r\n\t\t\tobjWasisDialog.getContentPane().add(cmbFeature, \"cell 0 0, grow, width 500\");\r\n\t\t\tobjWasisDialog.getContentPane().add(cmbClassifier, \"cell 0 0, grow, width 500\");\r\n\t\t\tobjWasisDialog.getContentPane().add(btnFilters, \"cell 0 0, grow, gap 5 1 2 0\");\r\n\t\t\tobjWasisDialog.getContentPane().add(panelSegments, \"cell 0 1, grow\");\r\n\t\t\tobjWasisDialog.getContentPane().add(btnRunComparison, \"cell 0 2, grow\");\r\n\t\t\tobjWasisDialog.getContentPane().add(panelResults, \"cell 0 3, grow\");\r\n\t\t\t//objWasisDialog.getContentPane().add(btnShowResults, \"cell 0 4, grow\");\r\n\t\t\t\r\n\t\t\tpanelSegments.add(objTableSegments, \"cell 0 0, grow\");\r\n\t\t\t\r\n\t\t\tpanelResults.add(objTableResults, \"cell 0 0, grow\");\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void printPhotos() {\n\t\t//System.out.println(\"Loading photos: \" + AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum());\n\t\t\n\t\tif(AccessibleUsersList.masterUserList.getUsers() != null) {\n\t\t\t//System.out.println(listOfPhotos);\n\t\t\tlistOfPhotos.clear();\n\t\t\tlistOfPhotos = FXCollections.observableArrayList();\n\t\t\tPhotoListDisplay.setItems(listOfPhotos);\n\t\t\t\n\t\t\tfor(Photo phot: AccessibleUsersList.masterUserList.userLoggedIn.selectedAlbum.getAlbum()) {\n\t\t\t\t//System.out.println(\"displaying photo\");\n\t\t\t\tString path = phot.getPathToPhoto(); \n\t\t\t\t//Pass to FileInputStream \n\t\t\t\tFileInputStream inputstream = null;\n\t\t\t\ttry {\n\t\t\t\t\tinputstream = new FileInputStream(path);\n\t\t\t\t} catch (FileNotFoundException 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\t//Instantiate an Image object \n\t\t\t\tImage image1 = new Image(inputstream);\n\t\t\t\t\n\t\t\t\t//Image image1 = photo.photo;\n\t\t\t\tImageView pic = new ImageView();\n\t\t\t\tpic.setFitWidth(340);\n\t\t\t\tpic.setFitHeight(180);\n\t\t\t\tpic.setImage(image1);\n\t\t\t\tlistOfPhotos.add(pic);\n\t\t\t\tphot.setImage(pic);\n\t\t\t\t//System.out.println(\"after adding: \" + listOfPhotos);\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(\"after if stmt: \" + listOfPhotos);\n\t\t\tPhotoListDisplay.setItems(listOfPhotos);\n\t\t\t\n\t\t\t//System.out.println(\"after setitems: \" + listOfPhotos);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tserializeUsers(AccessibleUsersList.masterUserList);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//System.out.println(listOfPhotos);\n\t}",
"public MultiMonitorDialog(java.awt.Frame parent, boolean modal,java.awt.GraphicsDevice[] gds, int current)\n {\n super(parent, modal);\n \n javax.swing.JScrollPane jScrollPane1 = new javax.swing.JScrollPane();\n javax.swing.JList jList1 = new javax.swing.JList();\n javax.swing.JLabel jL = new javax.swing.JLabel(Localization.Texts[139]+\".\");\n javax.swing.JButton button = new javax.swing.JButton(\"OK\");\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n jScrollPane1.setViewportView(jList1);\n \n getContentPane().setLayout(new javax.swing.BoxLayout(this.getContentPane(),javax.swing.BoxLayout.Y_AXIS));\n this.add(jL);\n this.add(jScrollPane1);\n this.add(button);\n\n this.setTitle(Localization.Texts[139]);\n javax.swing.DefaultListModel<String> listModel = new javax.swing.DefaultListModel<>();\n StringBuilder sb=new StringBuilder (200);\n for (int i=0;i<gds.length;i++) // show description of all monitors\n {\n sb.setLength(0); // nothing yet\n java.awt.GraphicsDevice device = gds[i];\n java.awt.GraphicsConfiguration gd=device.getDefaultConfiguration();\n // sb.append(count).append(\" : \").append(device.getIDstring()).append (\" \");\n sb.append(i).append(\" : \");\n java.awt.Rectangle bounds = gd.getBounds();\n sb.append(bounds.width).append(\" X \").append(bounds.height).append(Localization.Texts[140]);\n sb.append(bounds.x).append(\" X \").append(bounds.y);\n listModel.addElement(sb.toString());\n } \n \n jList1.setModel(listModel);\n javax.swing.ListSelectionModel lsm = jList1.getSelectionModel();\n lsm.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jList1.setSelectedIndex(current);\n jList1.addListSelectionListener(this);\n \n pack();\n final javax.swing.AbstractAction escapeAction = new javax.swing.AbstractAction() \n {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent ae) \n {\n dispose(); // this is called when user hits ESC\n }\n };\n\n getRootPane().getInputMap(javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW)\n .put(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0), \"ESCAPE_KEY\");\n getRootPane().getActionMap().put(\"ESCAPE_KEY\", escapeAction);\n \n button.addActionListener (new java.awt.event.ActionListener()\n {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n dispose();\n }\n });\n }",
"private void showState() {\n\n\t\t// If a dialog is being displayed, remove it.\n\t\tif (_dialog != null) {\n\t\t\t_dialog.dismiss();\n\t\t\t_dialog = null;\n\t\t}\n\t\t\n\t\tResources resources = getResources();\n\t\t\n\t\tImageButton addPhotoButton = (ImageButton)(findViewById(R.id.capture_text_photo_button_add_photo));\n\t\tImageButton removePhotoButton = (ImageButton)(findViewById(R.id.capture_text_photo_button_remove_photo));\n\t\t\n\t\t// Update the photo and the photo button.\n\t\tif ((null != _photoFile) && (_photoFile.exists())) {\n\t\t\tOptions bitmapOptions = new Options();\n\t\t\tbitmapOptions.inSampleSize = 4; // Open the bitmap as 1/4 its original size to save memory.\n\t\t\tBitmap photoBitmap = BitmapFactory.decodeFile(_photoFile.getAbsolutePath(), bitmapOptions);\n\t\t\t((ImageView)findViewById(R.id.capture_text_photo_imageview_photo)).setImageBitmap(photoBitmap);\n\t\t\taddPhotoButton.setVisibility(View.GONE);\n\t\t\tremovePhotoButton.setVisibility(View.VISIBLE);\t\n\t\t} else { \n\t\t\t((ImageView)findViewById(R.id.capture_text_photo_imageview_photo)).setImageBitmap(null);\n\t\t\taddPhotoButton.setVisibility(View.VISIBLE);\n\t\t\tremovePhotoButton.setVisibility(View.GONE);\t\n\t\t\t\n\t\t}\n\n\t\tswitch (_state) {\n\t\tcase DATA_MOMENT:\n\t\t\t// Nothing to do.\n\t\t\tbreak;\n\t\tcase FAILED_ALLOW_ACK:\n\t\t\t// Show a 'failed' dialog.\n\t\t\tAlertDialog failedDialog = new AlertDialog.Builder(this).create();\n\t\t\tfailedDialog.setTitle(resources.getString(R.string.error_dialog_title));\n\t\t\tfailedDialog.setMessage(_errorMessage);\n\t\t\tfailedDialog.setButton(DialogInterface.BUTTON_POSITIVE, \"OK\", this);\n\t\t\tfailedDialog.setCancelable(false); // Prevent the user from cancelling the dialog with the back key.\n\t\t\tfailedDialog.show();\n\t\t\t_dialog = failedDialog;\n\t\t\tbreak;\n\t\tcase FAILED_INVALID_CREDENTIALS:\n\t\t\t\n\t\t\t// Don't redirect more than once.\n\t\t\t_errorMessage = \"\";\n\t\t\t_state = State.DATA_MOMENT;\n\t\t\t\n\t\t\t// Clear credentials saved in the store.\n\t\t\tCredentialStore.getInstance().clear();\n\t\t\t\n\t\t\t// Go back to the sign in activity.\n\t\t\tSignInActivity.signInAgain(this);\n\t\t\t\n\t\t\t// Show the user some toast explaining why they have been redirected.\n\t\t\tToast.makeText(this, resources.getString(R.string.sign_in_redirected_because_credentials_invalid), Toast.LENGTH_LONG).show();\n\t\t\t\n\t\t\t// We leave the text field as-is (and let it get its state persisted), then if the user goes back, they can try again with their original text.\n\t\t\tbreak;\n\t\tcase FAILED_NO_LOCATION_PROVIDERS_ENABLED:\n\t\t\t// Show a dialog.\n\t\t\tAlertDialog noGpsfailedDialog = new AlertDialog.Builder(this).create();\n\t\t\tnoGpsfailedDialog.setTitle(resources.getString(R.string.error_dialog_title));\n\t\t\tnoGpsfailedDialog.setMessage(resources.getString(R.string.error_no_location_services));\n\t\t\tnoGpsfailedDialog.setButton(DialogInterface.BUTTON_POSITIVE, \"OK\", this);\n\t\t\tnoGpsfailedDialog.setCancelable(false); // Prevent the user from cancelling the dialog with the back key.\n\t\t\tnoGpsfailedDialog.show();\n\t\t\t_dialog = noGpsfailedDialog;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tthrow new UnexpectedEnumValueException(_state);\n\t\t}\n\t}",
"public void showMediaList(){\r\n mediaView.showMediaList(getMediaList());\r\n }",
"private void doDiscovery() {\n if (D) Log.d(TAG, \"doDiscovery()\");\n\n // Indicate scanning in the title\n setProgressBarIndeterminateVisibility(true);\n setTitle(R.string.scanning);\n\n // Turn on sub-title for new devices\n findViewById(R.id.title_new_devices).setVisibility(View.VISIBLE);\n\n // If we're already discovering, stop it\n if (mBtAdapter.isDiscovering()) {\n mBtAdapter.cancelDiscovery();\n }\n\n // Request discover from BluetoothAdapter\n mBtAdapter.startDiscovery();\n }",
"private void startRecognition() {\n mStatusTextView.setVisibility(View.VISIBLE);\n mStatusTextView.setText(R.string.status_scan_credentials);\n mStatusProgressBar.setVisibility(View.GONE);\n mRescanButton.setVisibility(View.GONE);\n\n mScannerView.setAnimated(true);\n hideMatchView();\n\n mTimeClockBar.setVisibility(View.VISIBLE);\n mTimeClockBar.setProgress(0);\n\n // Start a timeout for the recognition\n startRecognitionTimeout();\n\n mAllPasswords.clear();\n mSSIDMatchCounts.clear();\n mProcessor.setActive(true);\n }",
"private void reloadListView() {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mDevicesListViewAdapter.notifyDataSetChanged();\n }\n });\n }",
"public void display() {\n dialog.setVisible(true);\n }",
"void addDeviceComplete(boolean hasOtherDevices);",
"private void doDiscovery() {\n\t\t// Indicate scanning in the title\n\t\t// setProgressBarIndeterminateVisibility(true);\n\t\tsetTitle(R.string.scanning);\n\n\t\t// Turn on sub-title for new devices\n\t\tfindViewById(R.id.title_new_devices).setVisibility(View.VISIBLE);\n\n\t\t// If we're already discovering, stop it\n\t\tif (m_BtAdapter.isDiscovering()) {\n\t\t\tm_BtAdapter.cancelDiscovery();\n\t\t}\n\n\t\t// Request discover from BluetoothAdapter\n\t\tm_BtAdapter.startDiscovery();\n\t}",
"@Override\r\n\tpublic void resultsUpdated() {\r\n\t\tmLayout.hideText();\r\n\t\t\r\n\t\tif(mModel.getResults().size() == 1){\r\n\t\t\tmModel.selectPerson(mModel.getResults().get(0));\r\n\t\t\tmController.getProfilePicture(mModel.getResults().get(0).sciper);\r\n\t\t\tmDialog = new PersonDetailsDialog(this, mModel.getSelectedPerson());\r\n\t\t\tmDialog.show();\r\n\t\t}else\r\n\t\t\tstartActivity(new Intent(getApplicationContext(), DirectoryResultListView.class));\r\n\t\t\r\n\t}",
"public boolean isReady() {\n return this.mWmService.mDisplayReady && this.mDisplayReady;\n }",
"public void displayAll()\n {\n try\n {\n int i=0;\n for(HardwareDevice equip:equipment)\n {\n System.out.println(\"Equipment Number : \"+i);\n i++;\n equip.DisplayHardwareDevice();\n }\n }\n catch(NumberFormatException aE)\n {\n JOptionPane.showMessageDialog(frame, aE.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"public void configureDeviceListView(){\n deviceListView = findViewById(R.id.device_listView);\n combinedDeviceList = new ArrayList<>();\n deviceListAdapter = new DeviceListAdapter(this, combinedDeviceList);\n deviceListView.setAdapter(deviceListAdapter);\n }",
"public boolean showCars(){\n if (carRentalFileDB.getAvailableCars().isEmpty()){\n System.out.println(\"\\nWe are sorry, no cars available at the moment. \\nPlease come back later.\");\n return false;\n\n } else{\n System.out.println(\"\\nHere are our available cars, please enter car ID from the following list\\n\");\n\n for(Car car : carRentalFileDB.getAvailableCars()){\n System.out.println(\"Car ID:\" + car.getCarID() + \" Model:\"+ car.getMake() + \" Renting Price:\" + car.getPrice());\n }\n\n return true;\n }\n\n }",
"@Override\n public boolean capture() {\n if (mCameraState == SNAPSHOT_IN_PROGRESS || mCameraDevice == null) {\n return false;\n }\n setCameraState(SNAPSHOT_IN_PROGRESS);\n\n return true;\n }",
"@Subscribe(threadMode = ThreadMode.MAIN)\n public void onDevicesReceived(OnReceiverDevicesEvent event){\n //if(!devicesListAdapter.isEmpty()) devicesListAdapter.clear(); // clear old names\n\n\n devicesListAdapter.removeAll();\n Log.d(\"P2P\", \"Found something on events!\");\n //Toast.makeText(getContext(), \"Found something\", Toast.LENGTH_LONG).show();\n Collection<WifiP2pDevice> devs = event.getDevices().getDeviceList();\n devsList.addAll(devs);\n\n\n\n for(int i = 0; i < devsList.size(); i++){\n\n if(!devicesListAdapter.hasItem(devsList.get(i))){\n Log.d(\"P2P\", \"Device Found: \" + devsList.get(0).deviceName);\n devicesListAdapter.add(devsList.get(i).deviceName);\n devicesListAdapter.notifyDataSetChanged();\n }\n\n }\n\n\n }",
"private void refreshDisplay() {\n \t\tCursor cursor;\n \t\tif (node_id >= 0)\n \t\t\tcursor = appInst.getDB().getNodeChildren(node_id);\n \t\telse\n \t\t\tcursor = appInst.getDB().getFileCursor();\n \n \t\tstartManagingCursor(cursor);\n \t\tthis.outlineAdapter = new OutlineCursorAdapter(this, cursor, appInst.getDB());\n \t\tthis.setListAdapter(outlineAdapter);\n \n \t\tgetListView().setSelection(this.lastSelection);\n \t}",
"public void refreshPhotos() {\n\t\tif(AccessibleUsersList.masterUserList.getUsers() != null) {\n\t\t\tforceListRefreshOn(PhotoListDisplay);\n\t\t\tPhotoListDisplay.setItems(listOfPhotos);\n\t\t}\n\t}",
"private void initialize() {\r\n\t\t\r\n\t\t//create the frame for the GUI\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 449, 727);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setTitle(\"LeapFlie\");\r\n\t\t\r\n\t\t//Create scan button\r\n\t\tJButton btnScan = new JButton(\"Scan\");\r\n\t\tbtnScan.setBounds(136, 315, 107, 35);\r\n\t\t\r\n\t\t//Create label to display system status\r\n\t\tJLabel lblStatus = new JLabel(\"\");\r\n\t\tlblStatus.setBounds(75, 90, 293, 16);\r\n\t\tframe.getContentPane().add(lblStatus);\r\n\t\t\r\n\t\tframe.getContentPane().add(btnScan);\r\n\t\t\r\n\t\t//create a DefaultListModel to add the ConnectionData objects\r\n\t\tmodel = new DefaultListModel<ConnectionData>();\r\n\t\t\r\n\t\t//Create the Leap motion radio button and make it the default selection\r\n\t\trdbtnLeapMotion = new JRadioButton(\"Leap Motion\");\r\n\t\trdbtnLeapMotion.setBounds(54, 403, 115, 18);\r\n\t\trdbtnLeapMotion.setSelected(true);\r\n\t\trdbtnLeapMotion.setEnabled(false);\r\n\t\tframe.getContentPane().add(rdbtnLeapMotion);\r\n\t\t\r\n\t\t//Create the Gamepad radio button\r\n\t\tJRadioButton rdbtnGamepad = new JRadioButton(\"Gamepad\");\r\n\t\trdbtnGamepad.setBounds(54, 433, 115, 18);\r\n\t\trdbtnGamepad.setEnabled(false);\r\n\t\tframe.getContentPane().add(rdbtnGamepad);\r\n\t\t\r\n\t\t//Add both radio buttons to a button group\r\n\t\tbtnGroup = new ButtonGroup();\r\n\t\tbtnGroup.add(rdbtnLeapMotion);\r\n\t\tbtnGroup.add(rdbtnGamepad);\r\n\t\t\r\n\t\t//Create label to display \"Select an input device\"\r\n\t\tJLabel lblSelectAnInput = new JLabel(\"Select an input device\");\r\n\t\tlblSelectAnInput.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tlblSelectAnInput.setBounds(46, 362, 197, 29);\r\n\t\tframe.getContentPane().add(lblSelectAnInput);\r\n\t\t\r\n\t\t//Create the combo box consisting of three items representing the available data rates\r\n\t\tcomboBox = new JComboBox<String>();\r\n\t\tcomboBox.setBounds(54, 321, 70, 22);\r\n\t\tframe.getContentPane().add(comboBox);\r\n\t\tcomboBox.addItem(\"250kbs\");\r\n\t\tcomboBox.addItem(\"1mbs\");\r\n\t\tcomboBox.addItem(\"2mbs\");\r\n\t\tcomboBox.setSelectedIndex(0);\r\n\t\t\r\n\t\t//Create the Connect button\r\n\t\tbtnConnect = new JButton(\"Connect\");\r\n\t\tbtnConnect.setBounds(255, 315, 107, 35);\r\n\t\tbtnConnect.setEnabled(false);\r\n\t\t\r\n\t\t//Create list to add the channels\r\n\t\tlist = new JList<ConnectionData>(model);\r\n\t\tlist.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\tlist.setFixedCellWidth(300);\r\n\t\tlist.setSelectedIndex(0);\r\n\t\tlist.setVisibleRowCount(10);\r\n\t\tlistScrollPane = new JScrollPane(list);\r\n\t\tlistPanel = new JPanel();\r\n\t\tlistPanel.setBounds(6,118,432,185);\r\n\t\tlistPanel.setLayout(new FlowLayout());\r\n\t\tlistPanel.add(listScrollPane);\r\n\t\tframe.getContentPane().add(listPanel);\r\n\t\tframe.getContentPane().add(btnConnect);\r\n\t\t\r\n\t\t//Create the cfPanel\r\n\t\tJPanel cfPanel = new JPanel();\r\n\t\tcfPanel.setBounds(54, 504, 308, 170);\r\n\t\tframe.getContentPane().add(cfPanel);\r\n\t\tcfPanel.setLayout(new FormLayout(new ColumnSpec[] {\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_COLSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_COLSPEC,\r\n\t\t\t\tColumnSpec.decode(\"default:grow\"),},\r\n\t\t\tnew RowSpec[] {\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,\r\n\t\t\t\tFormSpecs.RELATED_GAP_ROWSPEC,\r\n\t\t\t\tFormSpecs.DEFAULT_ROWSPEC,}));\r\n\t\t\r\n\t\t//Create the Thrust, Roll, Pitch and Yaw labels and add them to the cfPanel\r\n\t\tJLabel lblThrust = new JLabel(\"Thrust:\");\r\n\t\tcfPanel.add(lblThrust, \"2, 2, right, default\");\r\n\t\t\r\n\t\tJLabel lblRoll = new JLabel(\"Roll:\");\r\n\t\tcfPanel.add(lblRoll, \"2, 4, right, default\");\r\n\t\t\r\n\t\tJLabel lblPitch = new JLabel(\"Pitch:\");\r\n\t\tcfPanel.add(lblPitch, \"2, 6, right, default\");\r\n\t\t\r\n\t\tJLabel lblYaw = new JLabel(\"Yaw:\");\r\n\t\tcfPanel.add(lblYaw, \"2, 8, right, default\");\r\n\r\n\t\t//Create the text fields to display the Thrust, Roll, Pitch and Yaw values of the Crazyflie.\r\n\t\tcfThrust = new JTextField(\"0\");\r\n\t\tcfPanel.add(cfThrust, \"4, 2, fill, default\");\r\n\t\tcfThrust.setColumns(10);\r\n\t\t\r\n\t\tcfRoll = new JTextField(\"0\");\r\n\t\tcfPanel.add(cfRoll, \"4, 4, fill, default\");\r\n\t\tcfRoll.setColumns(10);\r\n\t\t\r\n\t\tcfPitch = new JTextField(\"0\");\r\n\t\tcfPanel.add(cfPitch, \"4, 6, fill, default\");\r\n\t\tcfPitch.setColumns(10);\r\n\t\t\r\n\t\tcfYaw = new JTextField(\"0\");\r\n\t\tcfPanel.add(cfYaw, \"4, 8, fill, default\");\r\n\t\tcfYaw.setColumns(10);\r\n\t\t\r\n\t\t//Add label to display \"Flight Data\" above the cfPanel\r\n\t\tJLabel lblFlightData = new JLabel(\"Flight Data\");\r\n\t\tlblFlightData.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tlblFlightData.setBounds(57, 463, 138, 29);\r\n\t\tframe.getContentPane().add(lblFlightData);\r\n\r\n\t\t//Add the label to display the selected mode and set default to \"Leap Motion\"\r\n\t\tlblMode = new JLabel(\"Leap Motion\");\r\n\t\tlblMode.setBounds(285, 14, 77, 16);\r\n\t\tframe.getContentPane().add(lblMode);\r\n\t\t\r\n\t\t//Add led icon next to the mode label \r\n\t\tlblLed = new JLabel(\"\\u2022\");\r\n\t\tlblLed.setBounds(272, 14, 12, 16);\r\n\t\tframe.getContentPane().add(lblLed);\r\n\t\t\r\n\t\t//Establish connection with the Crazyradio.\r\n\t\ttry {\r\n\t\t\tusbLink = new UsbLinkJava();\r\n\t\t\tradio = new RadioDriver(usbLink);\r\n\t\t} catch (SecurityException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t} \r\n\r\n\t\t/*Check if the Leap Motion radio button is initially selected in order to\r\n\t\t create a LeapControl object by sending the selected data rate and RadioDriver object to said class\r\n\t\t and send the current LeapFlieUI instance to it.\r\n\t\t*/\r\n\t\tif(rdbtnLeapMotion.isSelected()){\r\n\t\t\tleapControl = new LeapControl(data,radio);\r\n\t\t\tleapControl.setUI(LeapFlieUI.this);\r\n\t\t}\r\n\t\t\r\n\t\t//Add listener to Scan button\r\n\t\tbtnScan.addMouseListener(new MouseListener(){\r\n\t\t\tpublic void mouseClicked(MouseEvent e){\r\n\t\t\t\tlblStatus.setText(\"Scanning for Crazyflie...\");\r\n\t\t \ttry {\r\n\t\t \t\t//Scan for available Crazyflies\r\n\t\t\t \tList<ConnectionData> available = radio.scanInterface();\r\n\t\t\t \tif(!available.isEmpty()){\r\n\t\t\t \t\t//If channels are found it adds them to the list panel by calling the setJListItems method\r\n\t\t\t\t\t\tlblStatus.setText(\"Crazyflies found:\");\r\n\t\t\t\t\t\tlblStatus.setForeground(Color.GREEN);\r\n\t\t\t\t\t\tmodel.clear();\r\n\t\t\t\t\t\tsetJListItems(available);\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t//If no channels are found display appropriate text in red\r\n\t\t\t\t\t\tlblStatus.setText(\"No Crazyflies found!!\");\r\n\t\t\t\t\t\tlblStatus.setForeground(Color.RED);\r\n\t\t\t\t\t}\r\n\t\t \t} catch (IllegalArgumentException ex) {\r\n\t\t \t\tSystem.out.println(ex.getMessage());\r\n\t\t \t}\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {}\r\n\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {}\r\n\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//Add a listener to the Leap Motion radio button\r\n\t\trdbtnLeapMotion.addActionListener(new ActionListener(){\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t//if this is selected then set the model label to \"Leap Motion\"\r\n\t\t\t\tlblMode.setText(\"Leap Motion\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//Add listener to the Gamepad radio button\r\n\t\trdbtnGamepad.addActionListener(new ActionListener(){\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tlblMode.setText(\"Gamepad\");\r\n\t\t\t\t//Disconnect from the Leap Control mode if there's an open connection\r\n\t\t\t\tif(leapControl.getCrazyFlie().isConnected()){\r\n\t\t\t\t\tleapControl.disconnectFromCrazyflie();\r\n\t\t\t\t}\r\n\t\t\t\t//Create a GamepadControl object by sending the currently selected data rate and RadioDriver object as parameters\r\n\t\t\t\tGamepadControl gpdCtrl = new GamepadControl(data,radio);\r\n\t\t\t\t//Send the current LeapFlieUI instance to the GamepadControl class\r\n\t\t\t\tgpdCtrl.setUI(LeapFlieUI.this);\r\n\t\t\t\t//Creat a new GamepadControl thread\r\n\t\t\t\tgamepadCtrl = new Thread(gpdCtrl);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//Add a listener to the Connect button\r\n\t\tbtnConnect.addMouseListener(new MouseListener(){\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\t// Increase the counter by 1\r\n\t\t\t\tcounter++;\r\n\t\t\t\tif(rdbtnLeapMotion.isSelected()){\r\n\t\t\t\t\tif(counter == 1){\r\n\t\t\t\t\t\t/*If the Leap Motion radio button is selected and the click count is 1 \r\n\t\t\t\t\t\tthen set button text to \"Disconnect\", connect to the Leap Motion \r\n\t\t\t\t\t\tand to the Crazyflie throught the LeapControl class\r\n\t\t\t\t\t\t*/\r\n\t\t\t\t\t\tbtnConnect.setText(\"Disconnect\");\r\n\t\t\t\t\t\tleapControl.connectToCrazyflie(data);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t/*If it's the second click then set button text back to \"Connect\", \r\n\t\t\t\t\t\tdisconnect from the LeapControl class and reset counter to 0\r\n\t\t\t\t\t\t*/\r\n\t\t\t\t\t\tbtnConnect.setText(\"Connect\");\r\n\t\t\t\t\t\tleapControl.disconnectFromCrazyflie();\r\n\t\t\t\t\t\tcounter = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(counter == 1){\r\n\t\t\t\t\t\t/*If the Gamepad radio button is selected and the counter is 1\r\n\t\t\t\t\t\t * then set button text to \"Disconnect\" \r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tbtnConnect.setText(\"Disconnect\");\r\n\t\t\t\t\t\tif(!gamepadCtrl.isAlive()){\r\n\t\t\t\t\t\t\t//if the GamepadCotnrol thread is not alive then create GamepadControl object\r\n\t\t\t\t\t\t\tGamepadControl gpdCtrl = new GamepadControl(data,radio);\r\n\t\t\t\t\t\t\tgpdCtrl.setUI(LeapFlieUI.this);\r\n\t\t\t\t\t\t\tgamepadCtrl = new Thread(gpdCtrl);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//start the GamepadControl thread\r\n\t\t\t\t\t\tgamepadCtrl.start();\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\t//if it's the second click then reset counter to 0 and interrupt the thread\r\n\t\t\t\t\t\tcounter = 0;\r\n\t\t\t\t\t\tbtnConnect.setText(\"Connect\");\r\n\t\t\t\t\t\tif(gamepadCtrl.isAlive()){\r\n\t\t\t\t\t\t\tgamepadCtrl.interrupt();\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\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {}\r\n\r\n\t\t\tpublic void mouseExited(MouseEvent arg0) {}\r\n\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {}\r\n\t\t});\r\n\t\t\r\n\t\t//Add listener to the list items\r\n\t\tlist.addListSelectionListener(new ListSelectionListener(){\r\n\t\t\tpublic void valueChanged(ListSelectionEvent event) {\r\n\t\t\t\t// Gets selected item and converts it to ConnectionData object\r\n\t\t\t\tdata = (ConnectionData)((JList)event.getSource()).getSelectedValue();\r\n\t\t\t\t//Enables the Connect button\r\n\t\t\t\tbtnConnect.setEnabled(true);\r\n\t\t\t\t//Enables the Leap Motion and Gamepad radio buttons\r\n\t\t\t\trdbtnLeapMotion.setEnabled(true);\r\n\t\t\t\trdbtnGamepad.setEnabled(true);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t}",
"private void clearScanResults() {\n mScanResults.clear();\n mScanAddreses.clear();\n // Make sure the display is updated; any old devices are removed from the ListView. \n mScanResultsAdapter.notifyDataSetChanged();\n }",
"@Override\n public void onConfigured(@NonNull CameraCaptureSession cameraCaptureSession) {\n if (null == cameraDevice) {\n return;\n }\n // When the session is ready, we start displaying the preview.\n cameraCaptureSessions = cameraCaptureSession;\n updatePreview();\n }",
"@Override\n public void onConfigured(@NonNull CameraCaptureSession cameraCaptureSession) {\n if (null == cameraDevice) {\n return;\n }\n // When the session is ready, we start displaying the preview.\n cameraCaptureSessions = cameraCaptureSession;\n updatePreview();\n }",
"@Override\n public void onConfigured(@NonNull CameraCaptureSession cameraCaptureSession) {\n if (null == cameraDevice) {\n return;\n }\n // When the session is ready, we start displaying the preview.\n cameraCaptureSessions = cameraCaptureSession;\n updatePreview();\n }",
"@Override\n public void onConfigured(@NonNull CameraCaptureSession cameraCaptureSession) {\n if (null == cameraDevice) {\n return;\n }\n // When the session is ready, we start displaying the preview.\n cameraCaptureSessions = cameraCaptureSession;\n updatePreview();\n }",
"private void addPairedDevices(){\r\n\t\t// ensure devices wont be added twice\r\n\t\tmPairedDevicesArrayAdapter.clear();\r\n\t\tSet<BluetoothDevice> pairedDevices = mBtAdapter.getBondedDevices();\r\n\t\t//bluetooth has to be enabled\r\n\t\tif(mBtAdapter.isEnabled()){\r\n\t\t\t//there are no paired devices ...\r\n\t\t\tif(pairedDevices.size() == 0){\r\n\t \t\t//inform user to pair devices manually\r\n\t \t\tToast.makeText(this, \"No paired devices detected. Please pair devices!\", Toast.LENGTH_SHORT).show();\r\n\t \t\treturnToPriviousActivityWithoutDevice();\r\n\t \t} \r\n\t\t\t//there are paired devices ...\r\n\t\t\telse{\r\n\t\t\t\t//inform user\r\n\t \t\tToast.makeText(this, \"Paired devices detected.\", Toast.LENGTH_SHORT).show();\r\n\t \t\tfindViewById(R.id.paired_devices).setVisibility(View.VISIBLE); \t\t\r\n\t \t // Loop through paired devices\r\n\t \t for (BluetoothDevice device : pairedDevices) {\r\n\t \t // Add the name and address to an array adapter to show in a ListView\t \t \t\r\n\t \t mPairedDevicesArrayAdapter.add(device.getName() + \"\\n\" + device.getAddress());\r\n\t \t }\r\n\t \t}\r\n\t\t}\r\n\t}",
"private boolean findMatchingAvd(ConfigurationManager configurationManager, double imageRatio) {\n AndroidFacet facet = AndroidFacet.getInstance(configurationManager.getModule());\n if (facet == null) {\n // Unlikely, but has happened - see http://b.android.com/68091\n return false;\n }\n final AvdManager avdManager = AvdManagerUtils.getAvdManagerSilently(facet);\n if (avdManager != null) {\n final AvdInfo[] allAvds = avdManager.getAllAvds();\n for (AvdInfo avd : allAvds) {\n Device device = configurationManager.createDeviceForAvd(avd);\n if (device != null) {\n final Dimension screenSize = device.getScreenSize(myScreenOrientation);\n if (myImageSize.equals(screenSize) || ratioAlmostEqual(imageRatio, screenSize)) {\n String avdName = \"AVD: \" + avd.getName();\n myDevicesComboBox.addItem(avdName);\n myMatchingDevices.add(device);\n }\n }\n }\n }\n return !myMatchingDevices.isEmpty();\n }",
"private void startCapture() {\n if (checkAudioPermissions()) {\n requestScreenCapture();\n }\n }",
"private boolean servicesConnected() {\n int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);\n\n if (ConnectionResult.SUCCESS == resultCode) {\n return true;\n }\n else {\n Dialog dialog = GooglePlayServicesUtil.getErrorDialog(resultCode, this, 0);\n if (dialog != null) {\n ErrorDialogFragment errorFragment = new ErrorDialogFragment();\n errorFragment.setDialog(dialog);\n errorFragment.show(getSupportFragmentManager(), Constants.APPTAG);\n }\n return false;\n }\n }",
"private void bonded_devices_get()\n\t\t{\n\t\t\tmPairedDevList.clear();\n\t\t\tSet<BluetoothDevice> PairedDevices = btAdapter.getBondedDevices();\n\t\t\tif(PairedDevices.size() > 0)\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.VISIBLE);\n\t\t\t\tfor(BluetoothDevice device : PairedDevices)\n\t\t\t\t{\n\t\t\t\t\tString device_info = device.getName()+\"\\n\"+device.getAddress();\n\t\t\t\t\tmPairedDevList.add(device_info);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmPairedTitle.setVisibility(View.GONE);\n\t\t\t\tmPairedDevList.add(\"No Bonded Devices\");\n\t\t\t}\n\t\t}",
"@Override\n public void scanCompleted(List<WireScanner> lstDevs) {\n this.mplLiveData.stopAll();\n this.mplLiveData.emptyPool(); // CKA April 25, 2014\n }",
"public void discoveryFinished(ArrayList<Device> wifiDevices, ArrayList<Device> bluetoothDevices) {\n if (willUpdateDeviceList) {\n this.wifiDevices = wifiDevices;\n this.bluetoothDevices = bluetoothDevices;\n if (combinedDeviceList.size() > 0)\n combinedDeviceList.clear();\n combinedDeviceList.addAll(this.bluetoothDevices);\n combinedDeviceList.addAll(this.wifiDevices);\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n deviceListAdapter.notifyDataSetChanged();\n }\n });\n if (!rssiRecorded) {\n if (Constants.EXP_NO == Constants.MAX_NO_OF_EXPS) {\n showToast(\"rssi recorded\", 1);\n Constants.EXP_NO = 0;\n rssiRecorded = true;\n writeResult(null, Constants.RSSI, Constants.BLUETOOTH_DEVICE);\n }\n else {\n rssiDevices.addAll(this.bluetoothDevices);\n Constants.EXP_NO++;\n }\n }\n }\n }",
"private void newConfiguration() {\n checkSave();\n config = new Configuration();\n\n // create a ConfigurationDialog\n ConfigurationDialog cdialog = new ConfigurationDialog(frame, NEW, config, getConfigurations());\n cdialog.pack();\n cdialog.setLocationRelativeTo(frame);\n cdialog.setVisible(true);\n\n // if the data is valid, create an ImageDialog to allow registration of the image\n if (cdialog.isDataValid()) {\n System.out.println(\"config name: \"+config.getName());\n if (config.useBlankImage()) {\n System.out.println(\"blank image: \"+config.getImageHeight()+\" x \"+config.getImageWidth());\n }\n else {\n System.out.println(\"image name: \"+addSlashes(config.getImageName()));\n config.setImageName(addSlashes(config.getImageName()));\n }\n\n ImageDialog idialog = new ImageDialog(frame, NEW, config);\n idialog.pack();\n idialog.setLocationRelativeTo(frame);\n idialog.setVisible(true); \n\n // if the ImageDialog data is valid, create a blank motes object and calls viewConfiguration\n if (idialog.isDataValid()) {\n System.out.println(\"minPixelX: \"+config.getMinimumPixelX());\n System.out.println(\"minPixelY: \"+config.getMinimumPixelY());\n System.out.println(\"maxPixelX: \"+config.getMaximumPixelX());\n System.out.println(\"maxPixelY: \"+config.getMaximumPixelY());\n System.out.println(\"minRealX: \"+config.getMinimumRealX());\n System.out.println(\"minRealY: \"+config.getMinimumRealY());\n System.out.println(\"maxRealX: \"+config.getMaximumRealX());\n System.out.println(\"maxRealY: \"+config.getMaximumRealY());\n config.notSaved();\n configSave.setEnabled(true);\n configClose.setEnabled(true);\n motes = new Motes();\n viewConfiguration(DEFAULT_DB_CONFIG_TABLE);\n }\n else {\n config = new Configuration();\n }\n }\n }",
"public synchronized boolean refresh() \n {\n return refresh(false);\n }",
"public void connect(View view) {\n if (phoneNum.getText().toString().equals(\"\")) {\n Toast.makeText(getApplication(), \"Please enter a phone number\", Toast.LENGTH_SHORT).show();\n } else {\n phoneNum.setEnabled(false);\n HashMap<String, UsbDevice> usbDevices = usbManager.getDeviceList();\n if (!usbDevices.isEmpty()) {\n boolean keep = true;\n for (Map.Entry<String, UsbDevice> entry : usbDevices.entrySet()) {\n device = entry.getValue();\n int deviceVID = device.getVendorId();\n if (deviceVID == 0x2341)//Arduino Vendor ID\n {\n PendingIntent pi = PendingIntent.getBroadcast(this, 0, new Intent(ACTION_USB_PERMISSION), 0);\n usbManager.requestPermission(device, pi);\n keep = false;\n } else {\n connection = null;\n device = null;\n }\n\n if (!keep)\n break;\n }\n }\n }\n }",
"public void refresh() {\n/* 93 */ if (!this.initialized)\n/* 94 */ return; synchronized (this.o) {\n/* */ \n/* 96 */ this.wanService = null;\n/* 97 */ this.router = null;\n/* 98 */ this.upnpService.getControlPoint().search();\n/* */ } \n/* */ }",
"@Override\n public void onSuccess() {\n devicesConnected.add(device.deviceName);\n\n }",
"private void loadDeviceList(Bundle savedInstanceState) {\n\t\tif (alertMe.requiresRefresh()) {\n\t\t\tSharedPreferences sharedPrefs = getSharedPreferences(AlertMeConstants.PREFERENCE_NAME, AlertMeConstants.PREFERENCE_MODE);\n\t\t\tIntent intent = getIntent();\n\t\t\tSensorListStarter listloader = new SensorListStarter(alertMe, handler, intent, savedInstanceState, sharedPrefs);\n\t\t\tinitScreenStuff();\n\t\t\tscreenStuff.setBusy(AlertMeConstants.UPDATE_SENSORS);\n\t\t\tlistloader.start();\n\t\t}\n\t}",
"void onConnectDeviceComplete();",
"private void postInitGUI(final String inputFilePath) {\r\n\t\tfinal String $METHOD_NAME = \"postInitGUI\"; //$NON-NLS-1$\r\n\t\ttry {\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"init tabs\"); //$NON-NLS-1$\r\n\t\t\tthis.statisticsTabItem = new StatisticsWindow(this.displayTab, SWT.NONE);\r\n\t\t\tthis.statisticsTabItem.create();\r\n\r\n\t\t\t// initialization of table, digital, analog and cell voltage are done while initializing the device\r\n\r\n\t\t\tthis.fileCommentTabItem = new FileCommentWindow(this.displayTab, SWT.NONE);\r\n\t\t\tthis.fileCommentTabItem.create();\r\n\r\n\t\t\t//createCompareWindowTabItem();\r\n\r\n\t\t\tthis.setObjectDescriptionTabVisible(this.menuToolBar.isObjectoriented());\r\n\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"init listener\"); //$NON-NLS-1$\r\n\t\t\tGDE.shell.addListener(SWT.Close, new Listener() {\r\n\t\t\t\tpublic void handleEvent(Event evt) {\r\n\t\t\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, GDE.shell.getLocation().toString() + \"event = \" + evt); //$NON-NLS-1$\r\n\r\n\t\t\t\t\t// checkk all data saved - prevent closing application\r\n\t\t\t\t\tevt.doit = getDeviceSelectionDialog().checkDataSaved();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tthis.addDisposeListener(new DisposeListener() {\r\n\t\t\t\tpublic void widgetDisposed(DisposeEvent evt) {\r\n\t\t\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, \"widgetDisposed\", GDE.shell.getLocation().toString() + \"event = \" + evt); //$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, \"widgetDisposed\", GDE.shell.getSize().toString()); //$NON-NLS-1$\r\n\t\t\t\t\t//cleanup\r\n\t\t\t\t\t// if help browser is open, dispose it\r\n\t\t\t\t\tif (DataExplorer.this.helpDialog != null && !DataExplorer.this.helpDialog.isDisposed()) {\r\n\t\t\t\t\t\tDataExplorer.this.helpDialog.dispose();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (DataExplorer.application.getActiveDevice() != null) {\r\n\t\t\t\t\t\tDataExplorer.application.getActiveDevice().storeDeviceProperties();\r\n\r\n\t\t\t\t\t\t//close open communication ports\r\n\t\t\t\t\t\tIDeviceCommPort port = DataExplorer.application.getActiveDevice().getCommunicationPort();\r\n\t\t\t\t\t\tif (port != null) {// if communication port still open, close it\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tif (port.getClass().getName().toLowerCase().contains(\"usb\")) //USB port\r\n\t\t\t\t\t\t\t\t\tport.closeUsbPort(null);\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tport.close(); //serial port\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\t\t\tlog.log(Level.WARNING, e.getMessage(), e);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tDataExplorer.application.getActiveDevice().storeDeviceProperties();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (DataExplorer.application.getDeviceDialog() != null && !DataExplorer.application.getDeviceDialog().isDisposed()) {// if a device tool box is open, dispose it\r\n\t\t\t\t\t\tDataExplorer.application.getDeviceDialog().forceDispose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// query the item definition to save it for restore option \r\n\t\t\t\t\tDataExplorer.this.order = DataExplorer.this.menuCoolBar.getItemOrder();\r\n\t\t\t\t\tDataExplorer.this.wrapIndices = DataExplorer.this.menuCoolBar.getWrapIndices();\r\n\t\t\t\t\tif (DataExplorer.this.wrapIndices.length > 0) {\r\n\t\t\t\t\t\tif (DataExplorer.this.wrapIndices[0] != 0) {\r\n\t\t\t\t\t\t\tint[] newWraps = new int[DataExplorer.this.wrapIndices.length + 1];\r\n\t\t\t\t\t\t\tfor (int i = 0; i < DataExplorer.this.wrapIndices.length; i++) {\r\n\t\t\t\t\t\t\t\tnewWraps[i + 1] = DataExplorer.this.wrapIndices[i];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tDataExplorer.this.wrapIndices = newWraps;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tDataExplorer.this.sizes = DataExplorer.this.menuCoolBar.getItemSizes();\r\n\t\t\t\t\tDataExplorer.application.settings.setCoolBarStates(DataExplorer.this.order, DataExplorer.this.wrapIndices, DataExplorer.this.sizes);\r\n\r\n\t\t\t\t\tif (DataExplorer.this.objectDescriptionTabItem != null && !DataExplorer.this.objectDescriptionTabItem.isDisposed()) {\r\n\t\t\t\t\t\tDataExplorer.this.objectDescriptionTabItem.checkSaveObjectData(); // check if data needs to be saved\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// finally save application settings\r\n\t\t\t\t\tDataExplorer.application.settings.store();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tthis.menuCoolBar.addControlListener(new ControlAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void controlResized(ControlEvent evt) {\r\n\t\t\t\t\tif (log.isLoggable(Level.FINEST)) log.logp(Level.FINEST, $CLASS_NAME, $METHOD_NAME, \"menuCoolBar.controlResized, event=\" + evt); //$NON-NLS-1$\r\n\t\t\t\t\t// menuCoolBar.controlResized signals collBar item moved\r\n\t\t\t\t\tif (DataExplorer.this.displayTab != null && getSize().y != 0) {\r\n\t\t\t\t\t\tPoint fillerSize = DataExplorer.this.filler.getSize();\r\n\t\t\t\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"filler.size = \" + fillerSize); //$NON-NLS-1$\r\n\t\t\t\t\t\tPoint menuCoolBarSize = DataExplorer.this.menuCoolBar.getSize();\r\n\t\t\t\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"menuCoolBar.size = \" + menuCoolBarSize); //$NON-NLS-1$\r\n\t\t\t\t\t\tPoint shellSize = new Point(getClientArea().width, getClientArea().height);\r\n\t\t\t\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"shellClient.size = \" + shellSize); //$NON-NLS-1$\r\n\t\t\t\t\t\tPoint statusBarSize = DataExplorer.this.statusComposite.getSize();\r\n\t\t\t\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"statusBar.size = \" + statusBarSize); //$NON-NLS-1$\r\n\t\t\t\t\t\tDataExplorer.this.displayTab.setBounds(0, menuCoolBarSize.y + fillerSize.y, shellSize.x, shellSize.y - menuCoolBarSize.y - statusBarSize.y - fillerSize.y);\r\n\t\t\t\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"displayTab.bounds = \" + DataExplorer.this.displayTab.getBounds()); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tthis.displayTab.addPaintListener(new PaintListener() {\r\n\t\t\t\tpublic void paintControl(PaintEvent evt) {\r\n\t\t\t\t\tif (log.isLoggable(Level.FINER) && DataExplorer.this.displayTab.getSelectionIndex() >= 0)\r\n\t\t\t\t\t\tlog.logp(Level.FINER, $CLASS_NAME, $METHOD_NAME, \"displayTab.paintControl \" + DataExplorer.this.displayTab.getItems()[DataExplorer.this.displayTab.getSelectionIndex()].getText() //$NON-NLS-1$\r\n\t\t\t\t\t\t\t\t+ GDE.STRING_MESSAGE_CONCAT + DataExplorer.this.displayTab.getSelectionIndex() + GDE.STRING_MESSAGE_CONCAT + evt);\r\n\t\t\t\t\tif (isRecordSetVisible(GraphicsType.NORMAL)) {\r\n\t\t\t\t\t\tif (DataExplorer.this.graphicsTabItem.isCurveSelectorEnabled())\r\n\t\t\t\t\t\t\tDataExplorer.this.graphicsTabItem.setSashFormWeights(DataExplorer.this.graphicsTabItem.getCurveSelectorComposite().getSelectorColumnWidth());\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tDataExplorer.this.graphicsTabItem.setSashFormWeights(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (isRecordSetVisible(GraphicsType.COMPARE) && DataExplorer.this.compareTabItem != null) {\r\n\t\t\t\t\t\tDataExplorer.this.compareTabItem.setSashFormWeights(DataExplorer.this.compareTabItem.getCurveSelectorComposite().getSelectorColumnWidth());\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (isRecordSetVisible(GraphicsType.UTIL) && DataExplorer.this.utilGraphicsTabItem != null) {\r\n\t\t\t\t\t\tDataExplorer.this.utilGraphicsTabItem.setSashFormWeights(DataExplorer.this.utilGraphicsTabItem.getCurveSelectorComposite().getSelectorColumnWidth());\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (isRecordSetVisible(GraphicsType.HISTO)) {\r\n\t\t\t\t\t\tif (DataExplorer.this.histoGraphicsTabItem.isCurveSelectorEnabled())\r\n\t\t\t\t\t\t\tDataExplorer.this.histoGraphicsTabItem.setSashFormWeights(DataExplorer.this.histoGraphicsTabItem.getCurveSelectorComposite().getCompositeWidth());\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tDataExplorer.this.histoGraphicsTabItem.setSashFormWeights(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (DataExplorer.this.objectDescriptionTabItem != null) {\r\n\t\t\t\t\t\tif (DataExplorer.this.objectDescriptionTabItem.isVisible()) {\r\n\t\t\t\t\t\t\tif (log.isLoggable(Level.FINER)) log.logp(Level.FINER, $CLASS_NAME, $METHOD_NAME, \"displayTab.focusGained \" + evt); //$NON-NLS-1$\r\n\t\t\t\t\t\t\tDataExplorer.this.isObjectWindowVisible = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (DataExplorer.this.isObjectWindowVisible) {\r\n\t\t\t\t\t\t\tif (log.isLoggable(Level.FINER)) log.logp(Level.FINER, $CLASS_NAME, $METHOD_NAME, \"displayTab.focusLost \" + evt); //$NON-NLS-1$\r\n\t\t\t\t\t\t\tDataExplorer.this.checkSaveObjectData();\r\n\t\t\t\t\t\t\tDataExplorer.this.isObjectWindowVisible = false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (log.isLoggable(Level.FINE) && DataExplorer.this.displayTab != null && DataExplorer.this.filler != null && DataExplorer.this.menuCoolBar != null\r\n\t\t\t\t\t\t\t&& DataExplorer.this.statusComposite != null && getSize().y != 0) {\r\n\t\t\t\t\t\tlog.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"filler.size = \" + DataExplorer.this.filler.getSize()); //$NON-NLS-1$\r\n\t\t\t\t\t\tlog.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"menuCoolBar.size = \" + DataExplorer.this.menuCoolBar.getSize()); //$NON-NLS-1$\r\n\t\t\t\t\t\tlog.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"shellClient.size = \" + new Point(getClientArea().width, getClientArea().height)); //$NON-NLS-1$\r\n\t\t\t\t\t\tlog.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"statusBar.size = \" + DataExplorer.this.statusComposite.getSize()); //$NON-NLS-1$\r\n\t\t\t\t\t\tlog.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"displayTab.bounds = \" + DataExplorer.this.displayTab.getBounds()); //$NON-NLS-1$\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tthis.displayTab.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\r\n\t\t\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"addSelectionListener, event=\" + evt); //$NON-NLS-1$\r\n\t\t\t\t\tCTabFolder tabFolder = (CTabFolder) evt.widget;\r\n\t\t\t\t\tint tabSelectionIndex = tabFolder.getSelectionIndex();\r\n\t\t\t\t\tif (tabSelectionIndex == 0) {\r\n\t\t\t\t\t\tDataExplorer.this.menuToolBar.enableScopePointsCombo(true);\r\n\t\t\t\t\t\tDataExplorer.this.enableZoomMenuButtons(true);\r\n\t\t\t\t\t\tDataExplorer.this.updateGraphicsWindow();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (tabSelectionIndex > 0) {\r\n\t\t\t\t\t\tif ((DataExplorer.this.displayTab.getItem(tabSelectionIndex) instanceof GraphicsWindow) && DataExplorer.this.isRecordSetVisible(GraphicsType.COMPARE)) {\r\n\t\t\t\t\t\t\tDataExplorer.this.menuToolBar.enableScopePointsCombo(false);\r\n\t\t\t\t\t\t\tDataExplorer.this.enableZoomMenuButtons(true);\r\n\t\t\t\t\t\t\tDataExplorer.this.updateGraphicsWindow();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if ((DataExplorer.this.displayTab.getItem(tabSelectionIndex) instanceof GraphicsWindow) && DataExplorer.this.isRecordSetVisible(GraphicsType.UTIL)) {\r\n\t\t\t\t\t\t\tDataExplorer.this.menuToolBar.enableScopePointsCombo(false);\r\n\t\t\t\t\t\t\tDataExplorer.this.enableZoomMenuButtons(false);\r\n\t\t\t\t\t\t\tDataExplorer.this.updateGraphicsWindow();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (DataExplorer.this.displayTab.getItem(tabSelectionIndex) instanceof HistoGraphicsWindow) {\r\n\t\t\t\t\t\t\tlog.log(Level.FINER, \"HistoGraphicsWindow in displayTab.widgetSelected, event=\" + evt); //$NON-NLS-1$\r\n\t\t\t\t\t\t\tDataExplorer.this.updateHistoTabs(DataExplorer.this.rebuildStepInvisibleTab, true); // saves some time compared to HistoSet.RebuildStep.E_USER_INTERFACE\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if (DataExplorer.this.displayTab.getItem(tabSelectionIndex) instanceof HistoTableWindow) {\r\n\t\t\t\t\t\t\tlog.log(Level.FINER, \"HistoTableWindow in displayTab.widgetSelected, event=\" + evt); //$NON-NLS-1$\r\n\t\t\t\t\t\t\tDataExplorer.this.updateHistoTabs(HistoSet.RebuildStep.E_USER_INTERFACE, true); // ensures rebuild after trails change or record selector change\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// drag filePath support\r\n\t\t\tthis.target = new DropTarget(this, DND.DROP_COPY | DND.DROP_DEFAULT);\r\n\t\t\tthis.target.setTransfer(this.types);\r\n\t\t\tthis.target.addDropListener(new DropTargetAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void dragEnter(DropTargetEvent event) {\r\n\t\t\t\t\tif (event.detail == DND.DROP_DEFAULT) {\r\n\t\t\t\t\t\tif ((event.operations & DND.DROP_COPY) != 0) {\r\n\t\t\t\t\t\t\tevent.detail = DND.DROP_COPY;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tevent.detail = DND.DROP_NONE;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tfor (TransferData element : event.dataTypes) {\r\n\t\t\t\t\t\tif (DataExplorer.this.fileTransfer.isSupportedType(element)) {\r\n\t\t\t\t\t\t\tevent.currentDataType = element;\r\n\t\t\t\t\t\t\tif (event.detail != DND.DROP_COPY) {\r\n\t\t\t\t\t\t\t\tevent.detail = DND.DROP_NONE;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void dragOperationChanged(DropTargetEvent event) {\r\n\t\t\t\t\tif (event.detail == DND.DROP_DEFAULT) {\r\n\t\t\t\t\t\tif ((event.operations & DND.DROP_COPY) != 0) {\r\n\t\t\t\t\t\t\tevent.detail = DND.DROP_COPY;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tevent.detail = DND.DROP_NONE;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (DataExplorer.this.fileTransfer.isSupportedType(event.currentDataType)) {\r\n\t\t\t\t\t\tif (event.detail != DND.DROP_COPY) {\r\n\t\t\t\t\t\t\tevent.detail = DND.DROP_NONE;\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\t@Override\r\n\t\t\t\tpublic void drop(DropTargetEvent event) {\r\n\t\t\t\t\tif (DataExplorer.this.fileTransfer.isSupportedType(event.currentDataType)) {\r\n\t\t\t\t\t\tString[] files = (String[]) event.data;\r\n\t\t\t\t\t\tfor (String filePath : files) {\r\n\t\t\t\t\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"dropped file = \" + filePath); //$NON-NLS-1$\r\n\t\t\t\t\t\t\tif (filePath.toLowerCase().endsWith(GDE.FILE_ENDING_OSD)) {\r\n\t\t\t\t\t\t\t\tDataExplorer.this.fileHandler.openOsdFile(filePath);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if (filePath.toLowerCase().endsWith(GDE.FILE_ENDING_LOV)) {\r\n\t\t\t\t\t\t\t\tDataExplorer.this.fileHandler.openLovFile(filePath);\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\tapplication.openMessageDialog(Messages.getString(MessageIds.GDE_MSGI0022));\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\r\n\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"init help listener\"); //$NON-NLS-1$\r\n\t\t\tthis.menuCoolBar.addHelpListener(new HelpListener() {\r\n\t\t\t\tpublic void helpRequested(HelpEvent evt) {\r\n\t\t\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"this.helpRequested, event=\" + evt); //$NON-NLS-1$\r\n\t\t\t\t\tDataExplorer.application.openHelpDialog(GDE.STRING_EMPTY, \"HelpInfo_3.html\"); //$NON-NLS-1$\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tthis.menu.addHelpListener(new HelpListener() {\r\n\t\t\t\tpublic void helpRequested(HelpEvent evt) {\r\n\t\t\t\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"this.helpRequested, event=\" + evt); //$NON-NLS-1$\r\n\t\t\t\t\tDataExplorer.application.openHelpDialog(GDE.STRING_EMPTY, \"HelpInfo_3.html\"); //$NON-NLS-1$\r\n\t\t\t\t}\r\n\t\t\t});\r\n\r\n\t\t\t//restore window settings\r\n\t\t\tthis.isRecordCommentVisible = this.settings.isRecordCommentVisible();\r\n\t\t\tif (this.isRecordCommentVisible) {\r\n\t\t\t\tthis.menuBar.setRecordCommentMenuItemSelection(this.isRecordCommentVisible);\r\n\t\t\t\tthis.enableRecordSetComment(this.isRecordCommentVisible);\r\n\t\t\t}\r\n\t\t\tthis.isGraphicsHeaderVisible = this.settings.isGraphicsHeaderVisible();\r\n\t\t\tif (this.isGraphicsHeaderVisible) {\r\n\t\t\t\tthis.menuBar.setGraphicsHeaderMenuItemSelection(this.isGraphicsHeaderVisible);\r\n\t\t\t\tthis.enableGraphicsHeader(this.isGraphicsHeaderVisible);\r\n\t\t\t}\r\n\r\n\t\t\tthis.deviceSelectionDialog = new DeviceSelectionDialog(GDE.shell, SWT.PRIMARY_MODAL, this);\r\n\r\n\t\t\tif (!this.settings.isDesktopShortcutCreated()) {\r\n\t\t\t\tthis.settings.setProperty(Settings.IS_DESKTOP_SHORTCUT_CREATED, GDE.STRING_EMPTY + OperatingSystemHelper.createDesktopLink());\r\n\t\t\t}\r\n\r\n\t\t\tif (!this.settings.isApplicationRegistered()) {\r\n\t\t\t\tthis.settings.setProperty(Settings.IS_APPL_REGISTERED, GDE.STRING_EMPTY + OperatingSystemHelper.registerApplication());\r\n\t\t\t}\r\n\r\n\t\t\tif ((GDE.IS_MAC || GDE.IS_LINUX) && !this.settings.isLockUucpHinted()) {\r\n\t\t\t\tif (GDE.IS_MAC && !OperatingSystemHelper.isUucpMember())\r\n\t\t\t\t\tthis.openMessageDialog(Messages.getString(MessageIds.GDE_MSGI0046));\r\n\t\t\t\telse if (GDE.IS_LINUX && !OperatingSystemHelper.isUucpMember()) this.openMessageDialog(Messages.getString(MessageIds.GDE_MSGI0045));\r\n\t\t\t\tthis.settings.setProperty(Settings.IS_LOCK_UUCP_HINTED, \"true\"); //$NON-NLS-1$\r\n\t\t\t}\r\n\r\n\t\t\t// check initial application settings\r\n\t\t\tif (!this.settings.isOK()) {\r\n\t\t\t\tthis.openSettingsDialog();\r\n\t\t\t}\r\n\t\t\t//wait for possible migration and delay opening for migration\r\n\t\t\tthis.settings.startMigationThread();\r\n\t\t\t// check configured device\r\n\t\t\tif (this.settings.getActiveDevice().equals(Settings.EMPTY)) {\r\n\t\t\t\tthis.deviceSelectionDialog = new DeviceSelectionDialog(GDE.shell, SWT.PRIMARY_MODAL, this);\r\n\t\t\t\tthis.deviceSelectionDialog.open();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// channels HashMap will filled with empty records matching the active device, the dummy content is replaced\r\n\t\t\t\tthis.deviceSelectionDialog.setupDevice();\r\n\t\t\t}\r\n\r\n\t\t\tif (inputFilePath.length() > 5) {\r\n\t\t\t\tif (inputFilePath.endsWith(GDE.FILE_ENDING_OSD))\r\n\t\t\t\t\tthis.fileHandler.openOsdFile(inputFilePath);\r\n\t\t\t\telse if (inputFilePath.endsWith(GDE.FILE_ENDING_LOV)) this.fileHandler.openLovFile(inputFilePath);\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tlog.log(Level.SEVERE, e.getMessage(), e);\r\n\t\t\tthis.openMessageDialog(Messages.getString(MessageIds.GDE_MSGE0007) + e.getMessage());\r\n\t\t}\r\n\t\tif (log.isLoggable(Level.FINE)) log.logp(Level.FINE, $CLASS_NAME, $METHOD_NAME, \"call GDE.shell.layout()\"); //$NON-NLS-1$\r\n\t\tGDE.shell.layout();\r\n\t\tthis.updateLogger();\r\n\t}",
"public void onScanViewReady() {\n\t\tupdateGuiState();\n\n\t\tif (!mInitialised) {\n\t\t\t// Broadcast receiver\n\t\t\tregisterReceiver(mReceiver, mFilter);\n\n\t\t\tif (mBtAdapter.isEnabled()) {\n\t\t\t\t// Start straight away\n\t\t\t\tstartBluetoothLeService();\n\t\t\t} else {\n\t\t\t\t// Request BT adapter to be turned on\n\t\t\t\tIntent enableIntent = new Intent(\n\t\t\t\t\t\tBluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\t\t\tstartActivityForResult(enableIntent, REQ_ENABLE_BT);\n\t\t\t}\n\t\t\tmInitialised = true;\n\t\t} else {\n\t\t\t// mScanView.notifyDataSetChanged();\n\t\t}\n\t}",
"public void updateDigitalWindow() {\r\n\t\tif (this.digitalTabItem != null && !this.digitalTabItem.isDisposed()) {\r\n\t\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\t\tthis.digitalTabItem.update(true);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tDataExplorer.this.digitalTabItem.update(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public final void refresh() {\n // Bug fixing refresh video bug\n // (no image seen, but it is there and gets shown if you move a window\n // over the application pane or just resize the application.\n // Might be an OS video driver issue too.\n this.repaint();\n this.updateUI();\n // - Fix Refresh Bug with resizing\n this.setSize(this.getSize());\n }",
"@Override\n\tpublic void open() {\n\t\tlong openStartTime = new Date().getTime();\n\t\ttry {\n\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\n\t\t\tif (this.serialPort != null && !this.serialPort.isConnected()) {\n\t\t\t\ttry {\n\t\t\t\t\tthis.serialPort.open();\n\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\tthis.initialAnswerData = this.serialPort.getData(true);\n\t\t\t\t\tif (this.device.isProcessing(1, this.initialAnswerData) || this.device.isProcessing(2, this.initialAnswerData)) {\n\t\t\t\t\t\tthis.application.openMessageDialogAsync(null, Messages.getString(MessageIds.GDE_MSGW2201));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET_CONFIG);\n\t\t\t\t\tthis.deviceIdentifierName = this.serialPort.readDeviceUserName();\n\n\t\t\t\t\tthis.jc = JAXBContext.newInstance(\"gde.device.graupner\"); //$NON-NLS-1$\n\t\t\t\t\tthis.schema = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(\n\t\t\t\t\t\t\tnew StreamSource(UltraDuoPlusDialog.class.getClassLoader().getResourceAsStream(\"resource/\" + UltraDuoPlusDialog.ULTRA_DUO_PLUS_XSD))); //$NON-NLS-1$\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tUnmarshaller unmarshaller = this.jc.createUnmarshaller();\n\t\t\t\t\t\tunmarshaller.setSchema(this.schema);\n\t\t\t\t\t\tthis.ultraDuoPlusSetup = (UltraDuoPlusType) unmarshaller.unmarshal(new File(this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t+ this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML));\n\t\t\t\t\t}\n\t\t\t\t\tcatch (UnmarshalException e) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\tcreateUltraDuoPlusSetup(this.deviceIdentifierName);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\tif (e.getCause() instanceof FileNotFoundException) {\n\t\t\t\t\t\t\tcreateUltraDuoPlusSetup(this.deviceIdentifierName);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t}\n\n\t\t\t\t\tthis.synchronizerRead = new UltraDuoPlusSychronizer(this, this.serialPort, this.ultraDuoPlusSetup, UltraDuoPlusSychronizer.SYNC_TYPE.READ);\n\t\t\t\t\tthis.synchronizerRead.start();\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\tthis.serialPort.close();\n\t\t\t\t\tthis.application.openMessageDialog(null,\n\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0015, new Object[] { e.getClass().getSimpleName() + GDE.STRING_BLANK_COLON_BLANK + e.getMessage() }));\n\t\t\t\t\tthis.application.getDeviceSelectionDialog().open();\n\t\t\t\t\tif (!this.application.getActiveDevice().equals(this.device)) //check if device was changed\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, \"serial port == null\"); //$NON-NLS-1$\n\t\t\t\tthis.application.openMessageDialogAsync(null, Messages.getString(gde.messages.MessageIds.GDE_MSGE0010));\n\t\t\t\tthis.application.getDeviceSelectionDialog().open();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, \"dialogShell.isDisposed() \" + ((this.dialogShell == null) ? \"null\" : this.dialogShell.isDisposed())); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\tif (this.dialogShell == null || this.dialogShell.isDisposed()) {\n\t\t\t\tif (this.settings.isDeviceDialogsModal())\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getShell(), SWT.DIALOG_TRIM | SWT.PRIMARY_MODAL);\n\t\t\t\telse if (this.settings.isDeviceDialogsOnTop())\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getDisplay(), SWT.DIALOG_TRIM | SWT.ON_TOP);\n\t\t\t\telse\n\t\t\t\t\tthis.dialogShell = new Shell(this.application.getDisplay(), SWT.DIALOG_TRIM);\n\n\t\t\t\tSWTResourceManager.registerResourceUser(this.dialogShell);\n\t\t\t\tthis.dialogShell.setLayout(new FormLayout());\n\t\t\t\tthis.dialogShell.setText(this.device.getName() + Messages.getString(gde.messages.MessageIds.GDE_MSGT0273));\n\t\t\t\tthis.dialogShell.setImage(SWTResourceManager.getImage(\"gde/resource/ToolBoxHot.gif\")); //$NON-NLS-1$\n\t\t\t\tthis.dialogShell.layout();\n\t\t\t\tthis.dialogShell.pack();\n\t\t\t\tthis.dialogShell.setSize(655, GDE.IS_MAC ? 685 : 675);\n\t\t\t\tthis.dialogShell.addListener(SWT.Traverse, new Listener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t\t\tswitch (event.detail) {\n\t\t\t\t\t\tcase SWT.TRAVERSE_ESCAPE:\n\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.close();\n\t\t\t\t\t\t\tevent.detail = SWT.TRAVERSE_NONE;\n\t\t\t\t\t\t\tevent.doit = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthis.dialogShell.addHelpListener(new HelpListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void helpRequested(HelpEvent evt) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"dialogShell.helpRequested, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openHelpDialog(UltraDuoPlusDialog.DEVICE_JAR_NAME, \"HelpInfo.html\"); //$NON-NLS-1$ \n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tthis.dialogShell.addDisposeListener(new DisposeListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void widgetDisposed(DisposeEvent evt) {\n\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"dialogShell.widgetDisposed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\tif (UltraDuoPlusDialog.this.serialPort != null && UltraDuoPlusDialog.this.serialPort.isConnected()) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerRead.join();\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t//set the date to sync with PC time\n\t\t\t\t\t\t\t\t\tString[] date = StringHelper.getDateAndTime(\"yy:MM:dd:hh:mm\").split(GDE.STRING_COLON); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus45:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[15] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[16] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[17] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[10] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[11] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[12] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[10] = Integer.parseInt(date[2]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[11] = Integer.parseInt(date[1]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[12] = Integer.parseInt(date[0]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[13] = Integer.parseInt(date[3]);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelValues1[14] = Integer.parseInt(date[4]);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tChannelData1 value = new ChannelData1();\n\t\t\t\t\t\t\t\t\tvalue.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.channelValues1));\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setChannelData1(value, value.getValue().endsWith(\"1\"));\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite = new UltraDuoPlusSychronizer(UltraDuoPlusDialog.this, UltraDuoPlusDialog.this.serialPort, UltraDuoPlusDialog.this.ultraDuoPlusSetup,\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusSychronizer.SYNC_TYPE.WRITE);\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.start();\n\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.join();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tsaveConfigUDP(UltraDuoPlusDialog.this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML);\n\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.close();\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.resetShellIcon();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t{\n\t\t\t\t\tthis.boundsComposite = new Composite(this.dialogShell, SWT.NONE);\n\t\t\t\t\tFormData boundsCompositeLData = new FormData();\n\t\t\t\t\tboundsCompositeLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\tboundsCompositeLData.bottom = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\tthis.boundsComposite.setLayoutData(boundsCompositeLData);\n\t\t\t\t\tthis.boundsComposite.setLayout(new FormLayout());\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.userLabel = new CLabel(this.boundsComposite, SWT.RIGHT);\n\t\t\t\t\t\tthis.userLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.userLabel.setText(Messages.getString(MessageIds.GDE_MSGT2289));\n\t\t\t\t\t\tFormData userLabelLData = new FormData();\n\t\t\t\t\t\tuserLabelLData.left = new FormAttachment(0, 1000, 12);\n\t\t\t\t\t\tuserLabelLData.top = new FormAttachment(0, 1000, 7);\n\t\t\t\t\t\tuserLabelLData.width = 280;\n\t\t\t\t\t\tuserLabelLData.height = 20;\n\t\t\t\t\t\tthis.userLabel.setLayoutData(userLabelLData);\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.userNameText = new Text(this.boundsComposite, SWT.SINGLE | SWT.BORDER);\n\t\t\t\t\t\tthis.userNameText.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.userNameText.setText(this.deviceIdentifierName);\n\t\t\t\t\t\tthis.userNameText.setTextLimit(16);\n\t\t\t\t\t\tFormData userNameTextLData = new FormData();\n\t\t\t\t\t\tuserNameTextLData.width = 120;\n\t\t\t\t\t\tuserNameTextLData.height = 16;\n\t\t\t\t\t\tuserNameTextLData.left = new FormAttachment(0, 1000, 305);\n\t\t\t\t\t\tuserNameTextLData.top = new FormAttachment(0, 1000, 7);\n\t\t\t\t\t\tthis.userNameText.setLayoutData(userNameTextLData);\n\t\t\t\t\t\tthis.userNameText.addVerifyListener(new VerifyListener() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void verifyText(VerifyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"evt.doit = \" + (evt.text.length() <= 16)); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tevt.doit = evt.text.length() <= 16;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\tthis.userNameText.addKeyListener(new KeyAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"text.keyReleased, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFile oldConfigDataFile = new File(UltraDuoPlusDialog.this.settings.getApplHomePath() + UltraDuoPlusDialog.UDP_CONFIGURATION_SUFFIX\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.deviceIdentifierName.replace(GDE.STRING_BLANK, GDE.STRING_UNDER_BAR) + GDE.FILE_ENDING_DOT_XML);\n\t\t\t\t\t\t\t\tif (oldConfigDataFile.exists()) if (!oldConfigDataFile.delete()) UltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, \"could not delete \" + oldConfigDataFile.getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.deviceIdentifierName = (UltraDuoPlusDialog.this.userNameText.getText().trim() + UltraDuoPlusDialog.STRING_16_BLANK).substring(0, 16);\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setIdentifierName(UltraDuoPlusDialog.this.deviceIdentifierName);\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.setChanged(true);\n\t\t\t\t\t\t\t\tint position = UltraDuoPlusDialog.this.userNameText.getCaretPosition();\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.userNameText.setText(UltraDuoPlusDialog.this.deviceIdentifierName.trim());\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.userNameText.setSelection(position);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"text.keyPressed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.mainTabFolder = new CTabFolder(this.boundsComposite, SWT.BORDER);\n\t\t\t\t\t\tthis.mainTabFolder.setSimple(false);\n\t\t\t\t\t\tFormData TabFolderLData = new FormData();\n\t\t\t\t\t\tTabFolderLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\tTabFolderLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\tTabFolderLData.top = new FormAttachment(0, 1000, 35);\n\t\t\t\t\t\tTabFolderLData.bottom = new FormAttachment(1000, 1000, -45);\n\t\t\t\t\t\tthis.mainTabFolder.setLayoutData(TabFolderLData);\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.setupTabItem = new CTabItem(this.mainTabFolder, SWT.BORDER);\n\t\t\t\t\t\t\tthis.setupTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.setupTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2290));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.deviceComposite = new Composite(this.mainTabFolder, SWT.BORDER);\n\t\t\t\t\t\t\t\tGridLayout deviceCompositeLayout = new GridLayout();\n\t\t\t\t\t\t\t\tdeviceCompositeLayout.makeColumnsEqualWidth = true;\n\t\t\t\t\t\t\t\tthis.deviceComposite.setLayout(deviceCompositeLayout);\n\t\t\t\t\t\t\t\tthis.setupTabItem.setControl(this.deviceComposite);\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tGridData group1LData = new GridData();\n\t\t\t\t\t\t\t\t\tgroup1LData.horizontalAlignment = GridData.FILL;\n\t\t\t\t\t\t\t\t\tgroup1LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\tgroup1LData.widthHint = 580;\n\t\t\t\t\t\t\t\t\tgroup1LData.heightHint = this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? 182 : 392;\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setLayoutData(group1LData);\n\t\t\t\t\t\t\t\t\tFillLayout baseDeviceSetupCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setLayout(baseDeviceSetupCompositeLayout);\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setText(Messages.getString(MessageIds.GDE_MSGT2291));\n\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50, Messages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) {\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[4] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 4, Messages.getString(MessageIds.GDE_MSGT2293), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"°C - °F\", 175, UltraDuoPlusDialog.temperatureDegreeType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[5] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 5, Messages.getString(MessageIds.GDE_MSGT2294), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2240) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2241), 175, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[6] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 6, Messages.getString(MessageIds.GDE_MSGT2295), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"En - De - Fr - It\", 175, UltraDuoPlusDialog.languageTypes, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t//channelParameters[7] = new ParameterConfigControl(baseDeviceSetupComposite, channelValues1, 7, \"PC setup\", 175, \"DISABLE | ENABLE\", 175, diableEnableType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[8] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 8, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2296), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[9] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 9, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2297), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[15] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 15, Messages.getString(MessageIds.GDE_MSGT2303), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"12H - 24H\", 175, UltraDuoPlusDialog.hourFormatType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse { //UltraDuoPlus45\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[0] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 0, Messages.getString(MessageIds.GDE_MSGT2293), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"°C - °F\", 175, UltraDuoPlusDialog.temperatureDegreeType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[1] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 1, Messages.getString(MessageIds.GDE_MSGT2294), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2240) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2241), 175, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[2] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 2, Messages.getString(MessageIds.GDE_MSGT2306), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[3] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 3, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2307), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[4] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 4, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2305), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[5] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 5, Messages.getString(MessageIds.GDE_MSGT2295), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"En - De - Fr - It\", 175, UltraDuoPlusDialog.languageTypes, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[6] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 6, Messages.getString(MessageIds.GDE_MSGT2308), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175, UltraDuoPlusDialog.powerOnDisplayType, 50, 150);\n\t\t\t\t\t\t\t\t\t\t//channelParameters[7] = new ParameterConfigControl(baseDeviceSetupComposite, channelValues1, 7, \"PC setup\", 175, \"DISABLE | ENABLE\", 175, diableEnableType, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[8] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 8, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2296) + \"(1)\", 175, \"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[9] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 9, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2297) + \"(1)\", 175, \"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[10] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 10, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2296) + \"(2)\", 175, \"120 ~ 150 (12.0 ~ 15.0V)\", 175, true, 50, 150, 120, 150, -100, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[11] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 11, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2297) + \"(2)\", 175, \"50 ~ 400 (5 ~ 40A)\", 175, true, 50, 150, 50, 400, -50, false); //$NON-NLS-1$ //$NON-NLS-2$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[12] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 12, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2315), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 - 99%\", 175, false, 50, 150, 1, 99, -1, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[18] = new ParameterConfigControl(this.baseDeviceSetupGroup, this.channelValues1, 18, Messages.getString(MessageIds.GDE_MSGT2303), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"12H - 24H\", 175, UltraDuoPlusDialog.hourFormatType, 50, 150); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//time setup will synced with PC\n\t\t\t\t\t\t\t\t\t//this.channelParameters[10] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 10, Messages.getString(MessageIds.GDE_MSGT2298), 175,\t\"1 ~ 31\", 175, false, 50, 150, 1, 31); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[11] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 11, Messages.getString(MessageIds.GDE_MSGT2299), 175,\t\"1 ~ 12\", 175, false, 50, 150, 1, 12); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[12] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 12, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2300), 175,\t\"0 ~ 99\", 175, false, 50, 150, 0, 99); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[13] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 13, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2302), 175,\t\"0 ~ 12\", 175, false, 50, 150, 0, 12); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//this.channelParameters[14] = new ParameterConfigControl(this.baseDeviceSetupComposite, this.channelValues1, 14, \"%02d\", Messages.getString(MessageIds.GDE_MSGT2301), 175,\t\"0 ~ 59\", 175, false, 50, 150, 0, 59); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45) { //no configurable outlet channel 2\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1 = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tGridData group2LData = new GridData();\n\t\t\t\t\t\t\t\t\t\tgroup2LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.horizontalAlignment = GridData.CENTER;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.widthHint = 600;\n\t\t\t\t\t\t\t\t\t\tgroup2LData.heightHint = 130;\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setLayoutData(group2LData);\n\t\t\t\t\t\t\t\t\t\tFillLayout composite1Layout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setLayout(composite1Layout);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setText(Messages.getString(MessageIds.GDE_MSGT2304));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup1.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite1, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[0] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 0, Messages.getString(MessageIds.GDE_MSGT2306), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[1] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 1, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2307), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[2] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 2, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2305), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[3] = new ParameterConfigControl(this.baseDeviceSetupGroup1, this.channelValues1, 3, Messages.getString(MessageIds.GDE_MSGT2308), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175, UltraDuoPlusDialog.powerOnDisplayType, 50, 150);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2 = new Group(this.deviceComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tGridData group3LData = new GridData();\n\t\t\t\t\t\t\t\t\t\tgroup3LData.verticalAlignment = GridData.BEGINNING;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.horizontalAlignment = GridData.CENTER;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.widthHint = 600;\n\t\t\t\t\t\t\t\t\t\tgroup3LData.heightHint = 130;\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setLayoutData(group3LData);\n\t\t\t\t\t\t\t\t\t\tFillLayout composite1Layout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setLayout(composite1Layout);\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setText(Messages.getString(MessageIds.GDE_MSGT2309));\n\t\t\t\t\t\t\t\t\t\tthis.baseDeviceSetupGroup2.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\n\t\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.baseDeviceSetupComposite2, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 175, 20);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 0] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 0,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2255), 175, Messages.getString(MessageIds.GDE_MSGT2313), 175, UltraDuoPlusDialog.soundTime, 50, 150);\n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 1] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 1, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2254), 175, \"1 ~ 10\", 175, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 2] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 2, GDE.STRING_EMPTY,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2305), 175, \"1 ~ 15\", 175, false, 50, 150, 1, 15); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\tthis.channelParameters[UltramatSerialPort.SIZE_CHANNEL_1_SETUP + 3] = new ParameterConfigControl(this.baseDeviceSetupGroup2, this.channelValues2, 3,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2308), 175, Messages.getString(MessageIds.GDE_MSGT2244) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2245), 175,\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.powerOnDisplayType, 50, 150);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.memorySetupTabItem = new CTabItem(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\tthis.memorySetupTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.memorySetupTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2250));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.memoryBoundsComposite = new Composite(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\tthis.memorySetupTabItem.setControl(this.memoryBoundsComposite);\n\t\t\t\t\t\t\t\tthis.memoryBoundsComposite.setLayout(new FormLayout());\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite = new Composite(this.memoryBoundsComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData memorySelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tmemorySelectLData.height = 150;\n\t\t\t\t\t\t\t\t\tmemorySelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setLayoutData(memorySelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.memorySelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel = new CLabel(this.memorySelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memorySelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemorySelectLabelLData.width = 120;\n\t\t\t\t\t\t\t\t\t\tmemorySelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setLayoutData(memorySelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2251));\n\t\t\t\t\t\t\t\t\t\tthis.memorySelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(1);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo = new CCombo(this.memorySelectComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setItems(this.memoryNames);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setVisibleItemCount(20);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setTextLimit(5 + 16);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboLData.width = 165;\n\t\t\t\t\t\t\t\t\t\tmemoryComboLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setLayoutData(memoryComboLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2252));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.setEditable(true);\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tint actualSelectionIndex = UltraDuoPlusDialog.this.memoryCombo.getSelectionIndex();\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.lastMemorySelectionIndex != actualSelectionIndex) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup != null && UltraDuoPlusDialog.this.lastMemorySelectionIndex >= 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& UltraDuoPlusDialog.this.lastMemorySelectionIndex < UltraDuoPlusDialog.numberMemories) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//write memory if setup data has been changed changed (update memory name executed while keyListener)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().isChanged()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.memoryValues));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().isChanged()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(StringHelper.integer2Hex4ByteString(UltraDuoPlusDialog.this.memoryStepValues));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_STEP_CHARGE_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//check for copy selected\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.copyButton.getSelection()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.copyButton.setSelection(false);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (SWT.YES == UltraDuoPlusDialog.this.application.openYesNoMessageDialog(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGI2205, new Object[] { UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName(), (actualSelectionIndex + 1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName() }))) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//copy memory name and setup data of lastMemorySelectionIndex to memoryCombo.getSelectionIndex()\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"copy memory: (\" + (UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1) + GDE.STRING_RIGHT_PARENTHESIS + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName()//$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" to (\" + (actualSelectionIndex + 1) + GDE.STRING_RIGHT_PARENTHESIS + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < UltramatSerialPort.SIZE_MEMORY_SETUP; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(UltraDuoPlusDialog.this.memoryValues[i]).append(GDE.STRING_LEFT_BRACKET).append(i).append(GDE.STRING_RIGHT_BRACKET_COMMA);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, sb.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_NAME,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName().getBytes(), actualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setName(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getName());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tactualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getSetupData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getSetupData().getValue());\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_STEP_CHARGE_SETUP,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue().getBytes(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tactualSelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().changed = null;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getStepChargeData()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setValue(UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex).getStepChargeData().getValue());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString newMemoryName = String.format(UltraDuoPlusDialog.STRING_FORMAT_02d_s, actualSelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(actualSelectionIndex).getName());\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setText(newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[actualSelectionIndex] = (newMemoryName + UltraDuoPlusDialog.STRING_16_BLANK).substring(5, 16 + 5);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItem(actualSelectionIndex, newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(actualSelectionIndex);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastMemorySelectionIndex = actualSelectionIndex;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tcatch (Throwable e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\tthis.memoryCombo.addKeyListener(new KeyAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyReleased(KeyEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.keyReleased, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryCombo.keyPressed, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tif (evt.character == SWT.CR) {\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tString newMemoryName = String.format(UltraDuoPlusDialog.STRING_FORMAT_02d_s, UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(UltraDuoPlusDialog.this.memoryCombo.getText() + UltraDuoPlusDialog.STRING_16_BLANK).substring(5, 16 + 5));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex] = newMemoryName;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setText(newMemoryName);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItem(UltraDuoPlusDialog.this.lastMemorySelectionIndex, newMemoryName);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(UltraDuoPlusDialog.this.lastMemorySelectionIndex)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.setName(UltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex].substring(5));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.writeConfigData(UltramatSerialPort.WRITE_MEMORY_NAME,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryNames[UltraDuoPlusDialog.this.lastMemorySelectionIndex].substring(5).getBytes(), UltraDuoPlusDialog.this.lastMemorySelectionIndex + 1);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0007, new String[] { e.getMessage() }));\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tCLabel filler = new CLabel(this.memorySelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(140, 20));\n\t\t\t\t\t\t\t\t\t\tfiller.setText(\"<--------- \"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.copyButton = new Button(this.memorySelectComposite, SWT.CHECK | SWT.LEFT);\n\t\t\t\t\t\t\t\t\t\tRowData cellTypeSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tcellTypeSelectLabelLData.width = 200;\n\t\t\t\t\t\t\t\t\t\tcellTypeSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setLayoutData(cellTypeSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setText(Messages.getString(MessageIds.GDE_MSGT2288));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2256));\n\t\t\t\t\t\t\t\t\t\tthis.copyButton.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t//cell type\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[0] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 0, Messages.getString(MessageIds.GDE_MSGT2257), 175,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2246), 220, UltraDuoPlusDialog.cellTypeNames, 50, 150);\n\t\t\t\t\t\t\t\t\t//number cells\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[1] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 1, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2258), 175,\n\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 6/7/18\", 220, false, 50, 150, 1, 18); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//battery capacity\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[2] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 2, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2259), 175,\n\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 65000 mAh\", 220, true, 50, 150, 100, 65000, -100, true); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t//year, month, day\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[3] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 3, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2260), 100, GDE.STRING_EMPTY, 5, false, 30, 70, 0, 99);\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[4] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 4, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2261), 60, GDE.STRING_EMPTY, 5, false, 20, 80, 1, 12);\n\t\t\t\t\t\t\t\t\tthis.memoryParameters[5] = new ParameterConfigControl(this.memorySelectComposite, this.memoryValues, 5, UltraDuoPlusDialog.STRING_FORMAT_02D,\n\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2262), 55, GDE.STRING_EMPTY, 5, false, 20, 80, 1, 31);\n\t\t\t\t\t\t\t\t\t//new ParameterHeaderControl(this.memorySelectComposite, Messages.getString(MessageIds.GDE_MSGT2247), 175, Messages.getString(MessageIds.GDE_MSGT2248), 50,\tMessages.getString(MessageIds.GDE_MSGT2249), 180, 20);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder = new CTabFolder(this.memoryBoundsComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setSimple(false);\n\t\t\t\t\t\t\t\t\tFormData chargeTypeTabFolderLData = new FormData();\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.bottom = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchargeTypeTabFolderLData.top = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setLayoutData(chargeTypeTabFolderLData);\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"restoreButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.lastCellSelectionIndex = -1;\n\t\t\t\t\t\t\t\t\t\t\tswitch (UltraDuoPlusDialog.this.device.getDeviceTypeIdentifier()) {\n\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus50:\n\t\t\t\t\t\t\t\t\t\t\tcase UltraDuoPlus60:\n\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.memoryValues[0] == 1) { //NiMH with possible step charge\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.stepChargeComposite.getStepChargeValues(UltraDuoPlusDialog.this.memoryStepValues);\n\t\t\t\t\t\t\t\t\t\t\t\t\tEvent changeEvent = new Event();\n\t\t\t\t\t\t\t\t\t\t\t\t\tchangeEvent.index = -1;\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.notifyListeners(SWT.Selection, changeEvent);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tupdateBatteryMemoryParameter(UltraDuoPlusDialog.this.memoryValues[0]);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem = new CTabItem(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2298));\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite = new ScrolledComposite(this.chargeTypeTabFolder, SWT.BORDER | SWT.V_SCROLL);\n\t\t\t\t\t\t\t\t\t\t\tFillLayout scrolledMemoryCompositeLayout = new FillLayout();\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.setLayout(scrolledMemoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\tthis.chargeTabItem.setControl(this.scrolledchargeComposite);\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup = new Group(this.scrolledchargeComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setText(Messages.getString(MessageIds.GDE_MSGT2299));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.chargeGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//charge parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[6] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 6, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2263), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 20000 mA\", 220, true, 50, 150, 100, 20000, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[11] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 11, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2265), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2310), 220, true, 50, 150, 10, 165);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[10] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t|| this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus40 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0)//°C\n\t\t\t\t\t\t\t\t\t\t\t\t? new ParameterConfigControl(this.chargeGroup, this.memoryValues, 10, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2264), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"10 ~ 80°C\", 220, false, 50, 150, 10, 80) //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new ParameterConfigControl(this.chargeGroup, this.memoryValues, 10, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2264), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 176°F\", 220, false, 50, 150, 50, 176); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[12] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 12, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2266), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2238), 220, false, 50, 150, 10, 905);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[14] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 14, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2267), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"3600 ~ 4200 mV\", 220, true, 50, 150, 3600, 4200, -3600, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[9] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 9, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2279), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2312), 220, false, 50, 150, 0, 550);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[26] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 26, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2276), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"3600 ~ 4000 mV\", 220, true, 50, 150, 3600, 4000, -3600, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[7] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 7, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2277), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"0 ~ 25mV\", 220, false, 50, 150, 0, 25); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[8] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 8, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2278), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 20min\", 220, false, 50, 150, 1, 20); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[15] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 15, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2281), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[13] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 13, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2280), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 5\", 220, false, 50, 150, 1, 5); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[16] = new ParameterConfigControl(this.chargeGroup, this.memoryValues, 16, Messages.getString(MessageIds.GDE_MSGT2282), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2241) + GDE.STRING_MESSAGE_CONCAT + Messages.getString(MessageIds.GDE_MSGT2240), 220, UltraDuoPlusDialog.offOnType, 50, 150);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.setContent(this.chargeGroup);\n\t\t\t\t\t\t\t\t\t\t\tthis.chargeGroup.setSize(620, this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\tthis.scrolledchargeComposite.addControlListener(new ControlListener() {\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void controlResized(ControlEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"scrolledMemoryComposite.controlResized, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.setSize(UltraDuoPlusDialog.this.scrolledchargeComposite.getClientArea().width, UltraDuoPlusDialog.this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\tpublic void controlMoved(ControlEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"scrolledMemoryComposite.controlMoved, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.chargeGroup.setSize(UltraDuoPlusDialog.this.scrolledchargeComposite.getClientArea().width, UltraDuoPlusDialog.this.chargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem = new CTabItem(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2300));\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeCycleComposite = new Composite(this.chargeTypeTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\tRowLayout scrolledComposite1Layout = new RowLayout(org.eclipse.swt.SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeCycleComposite.setLayout(scrolledComposite1Layout);\n\t\t\t\t\t\t\t\t\t\t\tthis.dischargeTabItem.setControl(this.dischargeCycleComposite);\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup = new Group(this.dischargeCycleComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tRowData dischargeGroupLData = new RowData(620, UltraDuoPlusDialog.this.dischargeSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setLayoutData(dischargeGroupLData);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.dischargeGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.dischargeGroup.setText(Messages.getString(MessageIds.GDE_MSGT2301));\n\t\t\t\t\t\t\t\t\t\t\t\t//this.dischargeGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//discharge parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[17] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 17, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2268), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"100 ~ 10000 mA\", 220, true, 50, 150, 100, 10000, -100, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[18] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 18, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2269), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"2500 ~ 4200 mV\", 220, true, 50, 150, 2500, 4200, -2500, false); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[20] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 20, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2271), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2311), 220, false, 50, 150, 10, 105, -10, false);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[19] = (this.device.getDeviceTypeIdentifier() != GraupnerDeviceType.UltraDuoPlus45 ? this.channelValues1[4] == 0 : this.channelValues1[0] == 0)//°C\n\t\t\t\t\t\t\t\t\t\t\t\t? new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 19, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2270), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"10 ~ 80°C\", 220, false, 50, 150, 10, 80) //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 19, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2270), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"50 ~ 176°F\", 220, false, 50, 150, 50, 176); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[21] = new ParameterConfigControl(this.dischargeGroup, this.memoryValues, 21, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2283), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1100 ~ 1300 mV\", 220, true, 50, 150, 1100, 1300, -1100, false); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup = new Group(this.dischargeCycleComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\t\t\tRowData cycleGroupLData = new RowData(625, UltraDuoPlusDialog.this.cycleSelectHeight);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setLayoutData(cycleGroupLData);\n\t\t\t\t\t\t\t\t\t\t\t\tFillLayout memoryCompositeLayout = new FillLayout(SWT.VERTICAL);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setLayout(memoryCompositeLayout);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setText(Messages.getString(MessageIds.GDE_MSGT2302));\n\t\t\t\t\t\t\t\t\t\t\t\tthis.cycleGroup.setForeground(SWTResourceManager.getColor(SWT.COLOR_BLUE));\n\t\t\t\t\t\t\t\t\t\t\t\t//cycle parameter\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[22] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 22, Messages.getString(MessageIds.GDE_MSGT2272), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(MessageIds.GDE_MSGT2292), 220, UltraDuoPlusDialog.cycleDirectionTypes, 50, 150);\n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[23] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 23, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2273), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 10\", 220, false, 50, 150, 1, 10); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[24] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 24, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2274), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t\tthis.memoryParameters[25] = new ParameterConfigControl(this.cycleGroup, this.memoryValues, 25, GDE.STRING_EMPTY, Messages.getString(MessageIds.GDE_MSGT2275), 175,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"1 ~ 30min\", 220, false, 50, 150, 1, 30); //$NON-NLS-1$ \n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tthis.chargeTypeTabFolder.setSelection(0);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem = new CTabItem(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setText(Messages.getString(MessageIds.GDE_MSGT2320));\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tthis.memoryDataComposite = new Composite(this.mainTabFolder, SWT.NONE);\n\t\t\t\t\t\t\t\tthis.memoryCycleDataTabItem.setControl(this.memoryDataComposite);\n\t\t\t\t\t\t\t\tthis.memoryDataComposite.setLayout(new FormLayout());\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite = new Composite(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData memorySelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tmemorySelectLData.height = 50;\n\t\t\t\t\t\t\t\t\tmemorySelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tmemorySelectLData.top = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setLayoutData(memorySelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.memoryDataSelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tComposite filler = new Composite(this.memoryDataSelectComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(500, 10));\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel = new CLabel(this.memoryDataSelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memoryCycleDataSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.width = 315;\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setLayoutData(memoryCycleDataSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2321) + Messages.getString(MessageIds.GDE_MSGT2251));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataSelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t//this.memoryNames will be updated by memoryCombo selection handler\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo = new CCombo(this.memoryDataSelectComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setItems(this.memoryNames);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setVisibleItemCount(20);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setTextLimit(5 + 16);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboCycleDataLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.width = 165;\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setLayoutData(memoryComboCycleDataLData);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2339));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.setEditable(true);\n\t\t\t\t\t\t\t\t\t\tthis.memoryDataCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryComboData.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memorySelectionIndexData = UltraDuoPlusDialog.this.memoryDataCombo.getSelectionIndex() + 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tButton cycleDataButton = new Button(this.memoryDataComposite, SWT.Selection);\n\t\t\t\t\t\t\t\t\tFormData cycleDataButtonLData = new FormData();\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.height = 30;\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tcycleDataButtonLData.top = new FormAttachment(0, 1000, 70);\n\t\t\t\t\t\t\t\t\tcycleDataButton.setLayoutData(cycleDataButtonLData);\n\t\t\t\t\t\t\t\t\tcycleDataButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tcycleDataButton.setText(Messages.getString(MessageIds.GDE_MSGT2322));\n\t\t\t\t\t\t\t\t\tcycleDataButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2316));\n\t\t\t\t\t\t\t\t\tcycleDataButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"cycleDataButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(0);\n\t\t\t\t\t\t\t\t\t\t\t\tGraphicsWindow cycleGraph = (GraphicsWindow) UltraDuoPlusDialog.this.device.getUtilityDeviceTabItem();\n\t\t\t\t\t\t\t\t\t\t\t\tRecordSet utilitySet = UltraDuoPlusDialog.this.application.getUtilitySet();\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.clear();\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < Ultramat.cycleDataRecordNames.length; ++i) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tRecord tmpRecord = new Record(UltraDuoPlusDialog.this.device, i, Ultramat.cycleDataRecordNames[i], GDE.STRING_EMPTY, Ultramat.cycleDataUnitNames[i], true, null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ArrayList<PropertyType>(), 11);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setFactor(Ultramat.cycleDataFactors[i]);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (Ultramat.cycleDataSyncRefOrdinal[i] >= 0) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.createProperty(MeasurementPropertyTypes.SCALE_SYNC_REF_ORDINAL.value(), DataTypes.INTEGER, Ultramat.cycleDataSyncRefOrdinal[i]);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setColorDefaultsAndPosition(i);\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.put(Ultramat.cycleDataRecordNames[i], tmpRecord);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttmpRecord.setColor(SWTResourceManager.getColor(Ultramat.cycleDataColors[i][0], Ultramat.cycleDataColors[i][1], Ultramat.cycleDataColors[i][2]));\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (i >= 4) tmpRecord.setPositionLeft(false);\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ((i + 1) % 2 == 0) tmpRecord.setVisible(false);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setHorizontalGridType(RecordSet.HORIZONTAL_GRID_EVERY);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setHorizontalGridRecordOrdinal(4);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setTimeGridType(RecordSet.TIME_GRID_MAIN);\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setTimeStep_ms(-1.0); //different time steps\n\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.syncScaleOfSyncableRecords();\n\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.getTabFolder().setSelection(cycleGraph);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(50);\n\n\t\t\t\t\t\t\t\t\t\t\t\tlong justNowPlus2Hours = new Date().getTime() + 7200000L;\n\t\t\t\t\t\t\t\t\t\t\t\tlong justNowMinus2Year = new Date().getTime() - 63072000000L;\n\t\t\t\t\t\t\t\t\t\t\t\tboolean isDateChanged = false;\n\t\t\t\t\t\t\t\t\t\t\t\tVector<byte[]> cyclesData = new Vector<byte[]>();\n\t\t\t\t\t\t\t\t\t\t\t\tTreeMap<Long, int[]> sortCyclesData = new TreeMap<Long, int[]>();\n\t\t\t\t\t\t\t\t\t\t\t\tif (Boolean.parseBoolean(System.getProperty(\"GDE_IS_SIMULATION\"))) { //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t//test data - change dates in timeSteps block below to vary\n\t\t\t\t\t\t\t\t\t\t\t\t\t//original data\n\t\t\t\t\t\t\t\t\t\t\t\t\tString memoryCycleData = \"00030026000B00040011050141C2040C00213F880000000B0004000B00040018017341D905910000000000000009002D000B0005000709BF417E03B50000000000000008002B000C00050009084341DC04B4000B0000000000000032000F00050012001A41F0000000000000000000090015000C0005001D0A2E4194044E00000000000000100004000B000600040ADF41960566000F0022001D00120034000B0006000C07D0418004740000000000000003000E000E0006000D094241E206A30000000000000000000000000000000000000000000000000000000000210088000000000000000000000000000000000000\";\n\t\t\t\t\t\t\t\t\t\t\t\t\t//updated data\n\t\t\t\t\t\t\t\t\t\t\t\t\t//String memoryCycleData = \"00030026000B00040011050141C2040C00213F880000000B0004000B00040018017341D905910000000000000009002D000B0005000709BF417E03B500000000000000130013000B0005000A084341DC04B4000B0000000000000032000000050012001A41F0000000000000000000130028000B0005001E0A2E4194044E00000000000000100004000B000600040ADF41960566000F0022001D00120034000B0006000C07D041800474000000000000000D0022000B00060010094241E206A30000000000000000000000000000000000000000000000000000000000210088000000000000000000000000000000000000\";\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < 11; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint startIndex = i * (11 * 4);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint endIndex = (i + 1) * (11 * 4);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcyclesData.add(memoryCycleData.substring(startIndex, endIndex).getBytes());\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\tlong[] timeSteps = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GregorianCalendar(2011, 06, 01, 03, 38, 0).getTimeInMillis(), \n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GregorianCalendar(2011, 06, 02, 03, 38, 0).getTimeInMillis(), \n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GregorianCalendar(2011, 06, 03, 11, 04, 0).getTimeInMillis(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GregorianCalendar(2011, 06, 04, 9, 45, 0).getTimeInMillis(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GregorianCalendar(2011, 06, 04, 16, 04, 0).getTimeInMillis(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew GregorianCalendar(2011, 06, 12, 18, 52, 0).getTimeInMillis(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\tint[][] pointss = { \n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16834, 0, 1000, 0, 1300, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16834, 16264, 1281, 33, 1036, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16857, 0, 371, 0, 1425, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16766, 0, 2783, 0, 949, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16790, 34, 2783, 15, 1382, 29},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{16768, \t\t0, 2000, 0, 1140, 0},\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t// 2; 0; \t 4; 3; 1; 5\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t//2011-04-17, 03:38:00; 1281; 16834; 1036; 33; 16264; 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t//2011-04-24, 11:04:00; 371; 16857; 1425; 0; 0; 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t//2011-05-07, 09:45:00; 2783; 16766; 949; 0; 0; 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t//2011-06-04, 16:04:00; 2783; 16790; 1382; 15; 34; 29\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t//2011-06-12, 18:52:00; 2000; 16768; 1140; 0; 0; 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < timeSteps.length; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortCyclesData.put(timeSteps[i], pointss[i].clone());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\tcyclesData = UltraDuoPlusDialog.this.serialPort.readMemoryCycleData(UltraDuoPlusDialog.this.memorySelectionIndexData);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (byte[] cycleData : cyclesData) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(new String(cycleData));\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, sb.toString());\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dataTable.removeAll();\n\n\t\t\t\t\t\t\t\t\t\t\t\tfor (byte[] cycleData : cyclesData) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tlong timeStamp = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint[] points = new int[6];\n\t\t\t\t\t\t\t\t\t\t\t\t\tint hour = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint minute = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint year = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint month = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint day = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\thour = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[0], cycleData[1], cycleData[2], cycleData[3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tminute = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[4], cycleData[5], cycleData[6], cycleData[7]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tday = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[8], cycleData[9], cycleData[10], cycleData[11]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tmonth = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[12], cycleData[13], cycleData[14], cycleData[15]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tyear = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[16], cycleData[17], cycleData[18], cycleData[19]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeStamp = new GregorianCalendar(2000 + year, month - 1, day, hour, minute, 0).getTimeInMillis();\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (NumberFormatException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[2] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[20], (char) cycleData[21], (char) cycleData[22], (char) cycleData[23]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[0] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[24], (char) cycleData[25], (char) cycleData[26], (char) cycleData[27]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[4] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[28], (char) cycleData[29], (char) cycleData[30], (char) cycleData[31]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[3] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[32], (char) cycleData[33], (char) cycleData[34], (char) cycleData[35]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[1] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[36], (char) cycleData[37], (char) cycleData[38], (char) cycleData[39]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[5] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[40], (char) cycleData[41], (char) cycleData[42], (char) cycleData[43]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int point : points) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(\"; \").append(String.format(\"%8d\", point)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", timeStamp) + sb.toString()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t//if time stamp is not between just now - 1 year and just now + 2 hrs and contains data ask if the date should be corrected\n\t\t\t\t\t\t\t\t\t\t\t\t\tlong dataSum = 0;\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int point : points) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdataSum += point;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (dataSum > 0 && (timeStamp < justNowMinus2Year || timeStamp > justNowPlus2Hours)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"time stamp out of range ! \" + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", timeStamp)); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint[] newTimeStamp = new ChangeDateDialog(UltraDuoPlusDialog.this.dialogShell, SWT.NONE, new int[] { hour, minute, 2000 + year, month, day, points[2], points[3] }).open();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (newTimeStamp.length > 0) { //change requested\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, \"date change requested !\"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisDateChanged = true;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[0] = newTimeStamp[0] < 0 ? 0 : newTimeStamp[0] > 24 ? 24 : newTimeStamp[0]; //hour\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[1] = newTimeStamp[1] < 0 ? 0 : newTimeStamp[1] > 60 ? 60 : newTimeStamp[1]; //minute\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[2] = newTimeStamp[2] <= 2000 ? 0 : newTimeStamp[2] - 2000; //year\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[3] = newTimeStamp[3] < 1 ? 1 : newTimeStamp[3] > 12 ? 12 : newTimeStamp[3]; //month\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnewTimeStamp[4] = newTimeStamp[4] < 1 ? 1 : newTimeStamp[4] > 30 ? 30 : newTimeStamp[4]; //day\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0, k = 0; i < newTimeStamp.length; i++, k += 4) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbyte[] bytes = String.format(\"%04X\", newTimeStamp[i]).getBytes(); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int j = 0; j < bytes.length; j++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcycleData[j + k] = bytes[j];\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thour = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[0], cycleData[1], cycleData[2], cycleData[3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tminute = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[4], cycleData[5], cycleData[6], cycleData[7]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tyear = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[8], cycleData[9], cycleData[10], cycleData[11]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmonth = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[12], cycleData[13], cycleData[14], cycleData[15]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tday = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, cycleData[16], cycleData[17], cycleData[18], cycleData[19]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeStamp = new GregorianCalendar(2000 + year, month - 1, day, hour, minute, 0).getTimeInMillis();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t//add selected entries to the sorted map, this is what gets displayed in the utility record\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (dataSum > 0 && timeStamp > justNowMinus2Year && timeStamp < justNowPlus2Hours) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsortCyclesData.put(timeStamp, points.clone());\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Entry<Long, int[]> entry : sortCyclesData.entrySet()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t//display values\n\t\t\t\t\t\t\t\t\t\t\t\t\tTableItem item = new TableItem(UltraDuoPlusDialog.this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\t\t\t\tint[] points = entry.getValue();\n\t\t\t\t\t\t\t\t\t\t\t\t\titem.setText(new String[] { StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm\", entry.getKey()), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.3f\", points[0] / 1000.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.3f\", points[1] / 1000.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.0f\", points[2] / 1.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.0f\", points[3] / 1.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.1f\", points[4] / 10.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(\"%.1f\", points[5] / 10.0), //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t//check if time stamp was changed, if yes write back changed data to device\n\t\t\t\t\t\t\t\t\t\t\t\tif (isDateChanged) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2333));\n\t\t\t\t\t\t\t\t\t\t\t\t\t//not implemented device firmware: serialPort.writeMemoryCycleData(UltraDuoPlusDialog.this.memorySelectionIndexData, cyclesData);\n\t\t\t\t\t\t\t\t\t\t\t\t\tisDateChanged = false;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"used entries between \" + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", justNowMinus2Year) + GDE.STRING_MESSAGE_CONCAT + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", justNowPlus2Hours) + GDE.LINE_SEPARATOR); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\t\t\t\t\t\t\t\t\t\tlong lastTimeStamp = 0;\n\t\t\t\t\t\t\t\t\t\t\t\tfor (Entry<Long, int[]> entry : sortCyclesData.entrySet()) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.addPoints(entry.getValue(), (lastTimeStamp == 0 ? 0 : entry.getKey() - lastTimeStamp));\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.log.isLoggable(java.util.logging.Level.FINE)) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < entry.getValue().length; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsb.append(\"; \").append(String.format(\"%8d\", entry.getValue()[i])); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.util.logging.Level.FINE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tStringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", entry.getKey()) + String.format(\"; %12d%s\", (lastTimeStamp == 0 ? 0 : entry.getKey() - lastTimeStamp), sb.toString())); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tlastTimeStamp = lastTimeStamp == 0 ? entry.getKey() : lastTimeStamp;\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tLong[] dates = sortCyclesData.keySet().toArray(new Long[0]);\n\t\t\t\t\t\t\t\t\t\t\t\tArrays.sort(dates);\n\t\t\t\t\t\t\t\t\t\t\t\tif (dates != null && dates.length > 1) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setRecordSetDescription(UltraDuoPlusDialog.this.memoryDataCombo.getText()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ GDE.STRING_BLANK_COLON_BLANK\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", dates[0]) + GDE.STRING_MESSAGE_CONCAT + StringHelper.getFormatedTime(\"yyyy-MM-dd, HH:mm:ss\", dates[dates.length - 1])); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\t\t\t\t\tutilitySet.setRecordSetDescription(UltraDuoPlusDialog.this.memoryDataCombo.getText());\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\tcycleGraph.enableGraphicsHeader(true);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.getTabFolder().notifyListeners(SWT.Selection, new Event());\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.cycleDataProgressBar.setSelection(100);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.WARNING, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar = new ProgressBar(this.memoryDataComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData cycleDataProgressBarLData = new FormData();\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.height = 15;\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tcycleDataProgressBarLData.top = new FormAttachment(0, 1000, 110);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setLayoutData(cycleDataProgressBarLData);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setMinimum(0);\n\t\t\t\t\t\t\t\t\tthis.cycleDataProgressBar.setMinimum(100);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.dataTable = new Table(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData dataTableLData = new FormData();\n\t\t\t\t\t\t\t\t\tdataTableLData.height = 200;\n\t\t\t\t\t\t\t\t\tdataTableLData.left = new FormAttachment(0, 1000, 5);\n\t\t\t\t\t\t\t\t\tdataTableLData.right = new FormAttachment(1000, 1000, -5);\n\t\t\t\t\t\t\t\t\tdataTableLData.top = new FormAttachment(0, 1000, 140);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setLayoutData(dataTableLData);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setLinesVisible(true);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setHeaderVisible(true);\n\t\t\t\t\t\t\t\t\tthis.dataTable.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tTableColumn timeColumn = new TableColumn(this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\ttimeColumn.setText(\"yyyy-MM-dd, HH:mm\"); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\ttimeColumn.setWidth(timeColumn.getText().length() * 9);\n\t\t\t\t\t\t\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\t\t\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\t\t\t\t\t\tsb.append(Ultramat.cycleDataTableNames[i]).append(GDE.STRING_BLANK_LEFT_BRACKET).append(Ultramat.cycleDataUnitNames[i]).append(GDE.STRING_RIGHT_BRACKET);\n\t\t\t\t\t\t\t\t\t\tTableColumn column = new TableColumn(this.dataTable, SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\tcolumn.setWidth(77);\n\t\t\t\t\t\t\t\t\t\tcolumn.setText(sb.toString());\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite = new Composite(this.memoryDataComposite, SWT.BORDER);\n\t\t\t\t\t\t\t\t\tFormData channelSelectLData = new FormData();\n\t\t\t\t\t\t\t\t\tchannelSelectLData.height = 50;\n\t\t\t\t\t\t\t\t\tchannelSelectLData.left = new FormAttachment(0, 1000, 0);\n\t\t\t\t\t\t\t\t\tchannelSelectLData.right = new FormAttachment(1000, 1000, 0);\n\t\t\t\t\t\t\t\t\tchannelSelectLData.bottom = new FormAttachment(1000, 1000, -90);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setLayoutData(channelSelectLData);\n\t\t\t\t\t\t\t\t\tRowLayout composite2Layout = new RowLayout(SWT.HORIZONTAL);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setLayout(composite2Layout);\n\t\t\t\t\t\t\t\t\tthis.channelSelectComposite.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tComposite filler = new Composite(this.channelSelectComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\t\tfiller.setLayoutData(new RowData(500, 10));\n\t\t\t\t\t\t\t\t\t\tfiller.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel = new CLabel(this.channelSelectComposite, SWT.RIGHT);\n\t\t\t\t\t\t\t\t\t\tRowData memoryCycleDataSelectLabelLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.width = 370;\n\t\t\t\t\t\t\t\t\t\tmemoryCycleDataSelectLabelLData.height = 20;\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setLayoutData(memoryCycleDataSelectLabelLData);\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setText(Messages.getString(MessageIds.GDE_MSGT2334));\n\t\t\t\t\t\t\t\t\t\tthis.channelSelectLabel.setBackground(DataExplorer.COLOR_CANVAS_YELLOW);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t//this.memoryNames will be updated by memoryCombo selection handler\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo = new CCombo(this.channelSelectComposite, SWT.BORDER | SWT.CENTER);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setItems(this.channelNumbers);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setVisibleItemCount(2);\n\t\t\t\t\t\t\t\t\t\tRowData memoryComboCycleDataLData = new RowData();\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.width = 35;\n\t\t\t\t\t\t\t\t\t\tmemoryComboCycleDataLData.height = GDE.IS_WINDOWS ? 16 : 18;\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setLayoutData(memoryComboCycleDataLData);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2335));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.select(0);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setBackground(SWTResourceManager.getColor(SWT.COLOR_WHITE));\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.setEditable(false);\n\t\t\t\t\t\t\t\t\t\tthis.channelCombo.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"memoryComboData.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channelSelectionIndex = UltraDuoPlusDialog.this.channelCombo.getSelectionIndex() + 1;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tButton graphicsDataButton = new Button(this.memoryDataComposite, SWT.Selection);\n\t\t\t\t\t\t\t\t\tFormData graphicsDataButtonLData = new FormData();\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.height = 30;\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tgraphicsDataButtonLData.bottom = new FormAttachment(1000, 1000, -40);\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setLayoutData(graphicsDataButtonLData);\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setText(Messages.getString(MessageIds.GDE_MSGT2318));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.setToolTipText(Messages.getString(MessageIds.GDE_MSGT2319));\n\t\t\t\t\t\t\t\t\tgraphicsDataButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"graphicsDataButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\t\t\t\t\t\t\t\t\t\t\t\tint[] points = new int[UltraDuoPlusDialog.this.device.getNumberOfMeasurements(UltraDuoPlusDialog.this.channelSelectionIndex)];\n\t\t\t\t\t\t\t\t\t\t\t\tfinal byte[][] graphicsData = new byte[3][];\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.serialPort.readGraphicsData(graphicsData, UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this);\n\n\t\t\t\t\t\t\t\t\t\t\t\t//create a new record set at the selected output channel\n\t\t\t\t\t\t\t\t\t\t\t\tString processName = Messages.getString(MessageIds.GDE_MSGT2337);\n\t\t\t\t\t\t\t\t\t\t\t\tRecordSet recordSet = null;\n\t\t\t\t\t\t\t\t\t\t\t\tChannel channel = Channels.getInstance().get(UltraDuoPlusDialog.this.channelSelectionIndex);\n\t\t\t\t\t\t\t\t\t\t\t\tif (channel != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tString recordSetKey = channel.getNextRecordSetNumber() + GDE.STRING_RIGHT_PARENTHESIS_BLANK + processName;\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSetKey = recordSetKey.length() <= RecordSet.MAX_NAME_LENGTH ? recordSetKey : recordSetKey.substring(0, RecordSet.MAX_NAME_LENGTH);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.put(recordSetKey, RecordSet.createRecordSet(recordSetKey, UltraDuoPlusDialog.this.device, UltraDuoPlusDialog.this.channelSelectionIndex, true, false, true));\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.applyTemplateBasics(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINE, recordSetKey + \" created for channel \" + channel.getName()); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet = channel.get(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.device.setTemperatureUnit(UltraDuoPlusDialog.this.channelSelectionIndex, recordSet, UltraDuoPlusDialog.this.initialAnswerData); //°C or °F\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setAllDisplayable();\n\t\t\t\t\t\t\t\t\t\t\t\t\t// switch the active record set if the current record set is child of active channel\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.channels.switchChannel(UltraDuoPlusDialog.this.channelSelectionIndex, recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tchannel.switchRecordSet(recordSetKey);\n\t\t\t\t\t\t\t\t\t\t\t\t\tString description = recordSet.getRecordSetDescription() + GDE.LINE_SEPARATOR\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"Firmware : \" + UltraDuoPlusDialog.this.device.getFirmwareVersion(UltraDuoPlusDialog.this.initialAnswerData) //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ (UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) >= 1 ? \"; Memory #\" + UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) : GDE.STRING_EMPTY); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tint batteryMemoryNumber = UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (batteryMemoryNumber > 0 && UltraDuoPlusDialog.this.ultraDuoPlusSetup != null && UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory().get(batteryMemoryNumber) != null) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString batteryMemoryName = UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.get(UltraDuoPlusDialog.this.device.getBatteryMemoryNumber(UltraDuoPlusDialog.this.channelSelectionIndex, UltraDuoPlusDialog.this.initialAnswerData) - 1).getName();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdescription = description + GDE.STRING_MESSAGE_CONCAT + batteryMemoryName;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (recordSetKey.startsWith(\"1)\")) UltraDuoPlusDialog.this.device.matchBatteryMemory2ObjectKey(batteryMemoryName); //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ignore and do not append memory name\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setRecordSetDescription(description);\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tint numOfPoints = Integer.parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(DeviceSerialPortImpl.FORMAT_4_CHAR, graphicsData[0][1], (char) graphicsData[0][2], (char) graphicsData[0][3], (char) graphicsData[0][4]), 16) - 10;\n\t\t\t\t\t\t\t\t\t\t\t\t\tint timeStep_sec = Integer.parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString.format(DeviceSerialPortImpl.FORMAT_4_CHAR, graphicsData[0][5], (char) graphicsData[0][6], (char) graphicsData[0][7], (char) graphicsData[0][8]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.setNewTimeStep_ms(timeStep_sec * 1000.0);\n\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0, j = 9; i < numOfPoints; i++, j += 4) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0=Spannung 1=Strom 5=BatteryTemperature\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[0] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[0][j], (char) graphicsData[0][j + 1], (char) graphicsData[0][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[0][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[1] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[1][j], (char) graphicsData[1][j + 1], (char) graphicsData[1][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[1][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpoints[5] = Integer.parseInt(String.format(DeviceSerialPortImpl.FORMAT_4_CHAR, (char) graphicsData[2][j], (char) graphicsData[2][j + 1], (char) graphicsData[2][j + 2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(char) graphicsData[2][j + 3]), 16);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trecordSet.addPoints(points);\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.device.updateVisibilityStatus(recordSet, true);\n\t\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.updateAllTabs(true);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (DataInconsitsentException e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2338));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialogAsync(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2336));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar = new ProgressBar(this.memoryDataComposite, SWT.NONE);\n\t\t\t\t\t\t\t\t\tFormData graphicsDataProgressBarLData = new FormData();\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.height = 15;\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.left = new FormAttachment(0, 1000, 150);\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.right = new FormAttachment(1000, 1000, -150);\n\t\t\t\t\t\t\t\t\tgraphicsDataProgressBarLData.bottom = new FormAttachment(1000, 1000, -15);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setLayoutData(graphicsDataProgressBarLData);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setMinimum(0);\n\t\t\t\t\t\t\t\t\tthis.graphicsDataProgressBar.setMinimum(100);\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\tthis.mainTabFolder.setSelection(1);\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.restoreButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData restoreButtonLData = new FormData();\n\t\t\t\t\t\trestoreButtonLData.width = 118;\n\t\t\t\t\t\trestoreButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\trestoreButtonLData.left = new FormAttachment(0, 1000, 165);\n\t\t\t\t\t\trestoreButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tthis.restoreButton.setLayoutData(restoreButtonLData);\n\t\t\t\t\t\tthis.restoreButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.restoreButton.setText(Messages.getString(MessageIds.GDE_MSGT2284));\n\t\t\t\t\t\tthis.restoreButton.setEnabled(false);\n\t\t\t\t\t\tthis.restoreButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"restoreButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFileDialog fileDialog = UltraDuoPlusDialog.this.application.openFileOpenDialog(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2284), new String[] {\n\t\t\t\t\t\t\t\t\t\tGDE.FILE_ENDING_STAR_XML, GDE.FILE_ENDING_STAR }, UltraDuoPlusDialog.this.settings.getDataFilePath(), GDE.STRING_EMPTY, SWT.SINGLE);\n\t\t\t\t\t\t\t\tif (fileDialog.getFileName().length() > 4) {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.setBackupRetoreButtons(false);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_WAIT));\n\n\t\t\t\t\t\t\t\t\t\tUnmarshaller unmarshaller = UltraDuoPlusDialog.this.jc.createUnmarshaller();\n\t\t\t\t\t\t\t\t\t\tunmarshaller.setSchema(UltraDuoPlusDialog.this.schema);\n\t\t\t\t\t\t\t\t\t\t//merge loaded configuration into active\n\t\t\t\t\t\t\t\t\t\tmergeUltraDuoPlusSetup((UltraDuoPlusType) unmarshaller.unmarshal(new File(fileDialog.getFilterPath() + GDE.FILE_SEPARATOR + fileDialog.getFileName())));\n\t\t\t\t\t\t\t\t\t\t//write updated entries while merging\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite = new UltraDuoPlusSychronizer(UltraDuoPlusDialog.this, UltraDuoPlusDialog.this.serialPort, UltraDuoPlusDialog.this.ultraDuoPlusSetup,\n\t\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusSychronizer.SYNC_TYPE.WRITE);\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.start();\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.synchronizerWrite.join();\n\t\t\t\t\t\t\t\t\t\t//check and sync active configuration with device content\n\t\t\t\t\t\t\t\t\t\tupdateBatterySetup(0);\n\t\t\t\t\t\t\t\t\t\tif (UltraDuoPlusDialog.this.memoryCombo != null && !UltraDuoPlusDialog.this.memoryCombo.isDisposed()) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.setItems(UltraDuoPlusDialog.this.memoryNames);\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.memoryCombo.select(0);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t\t\t\t\t\t\t\t\tif (e.getCause() instanceof FileNotFoundException) {\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.ultraDuoPlusSetup = new ObjectFactory().createUltraDuoPlusType();\n\t\t\t\t\t\t\t\t\t\t\tList<MemoryType> cellMemories = UltraDuoPlusDialog.this.ultraDuoPlusSetup.getMemory();\n\t\t\t\t\t\t\t\t\t\t\tif (cellMemories.size() < UltraDuoPlusDialog.numberMemories) { // initially create only base setup data\n\t\t\t\t\t\t\t\t\t\t\t\tfor (int i = 0; i < UltraDuoPlusDialog.numberMemories; i++) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tMemoryType cellMemory = new ObjectFactory().createMemoryType();\n\t\t\t\t\t\t\t\t\t\t\t\t\tcellMemory.setSetupData(new ObjectFactory().createMemoryTypeSetupData());\n\t\t\t\t\t\t\t\t\t\t\t\t\tcellMemories.add(cellMemory);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGE0007, new String[] { e.getMessage() }));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tfinally {\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.setBackupRetoreButtons(true);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.backupButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData backupButtonLData = new FormData();\n\t\t\t\t\t\tbackupButtonLData.width = 118;\n\t\t\t\t\t\tbackupButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\tbackupButtonLData.left = new FormAttachment(0, 1000, 29);\n\t\t\t\t\t\tbackupButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tthis.backupButton.setLayoutData(backupButtonLData);\n\t\t\t\t\t\tthis.backupButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.backupButton.setText(Messages.getString(MessageIds.GDE_MSGT2286));\n\t\t\t\t\t\tthis.backupButton.setEnabled(false);\n\t\t\t\t\t\tthis.backupButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"backupButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tFileDialog fileDialog = UltraDuoPlusDialog.this.application.prepareFileSaveDialog(UltraDuoPlusDialog.this.dialogShell, Messages.getString(MessageIds.GDE_MSGT2285), new String[] {\n\t\t\t\t\t\t\t\t\t\tGDE.FILE_ENDING_STAR_XML, GDE.FILE_ENDING_STAR }, UltraDuoPlusDialog.this.settings.getDataFilePath(), StringHelper.getDateAndTime(\"yyyy-MM-dd-HH-mm-ss\") + GDE.STRING_UNDER_BAR //$NON-NLS-1$\n\t\t\t\t\t\t\t\t\t\t+ UltraDuoPlusDialog.this.device.getName() + UltraDuoPlusDialog.this.ultraDuoPlusSetup.getIdentifierName());\n\t\t\t\t\t\t\t\tString configFilePath = fileDialog.open();\n\t\t\t\t\t\t\t\tif (configFilePath != null && fileDialog.getFileName().length() > 4) {\n\t\t\t\t\t\t\t\t\tif (FileUtils.checkFileExist(configFilePath)) {\n\t\t\t\t\t\t\t\t\t\tif (SWT.YES != UltraDuoPlusDialog.this.application.openYesNoMessageDialog(UltraDuoPlusDialog.this.dialogShell,\n\t\t\t\t\t\t\t\t\t\t\t\tMessages.getString(gde.messages.MessageIds.GDE_MSGI0007, new Object[] { configFilePath }))) {\n\t\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tsaveConfigUDP(configFilePath);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.closeButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tFormData writeButtonLData = new FormData();\n\t\t\t\t\t\twriteButtonLData.width = 118;\n\t\t\t\t\t\twriteButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\twriteButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\twriteButtonLData.right = new FormAttachment(1000, 1000, -21);\n\t\t\t\t\t\tthis.closeButton.setLayoutData(writeButtonLData);\n\t\t\t\t\t\tthis.closeButton.setFont(SWTResourceManager.getFont(GDE.WIDGET_FONT_NAME, GDE.WIDGET_FONT_SIZE, SWT.NORMAL));\n\t\t\t\t\t\tthis.closeButton.setText(Messages.getString(MessageIds.GDE_MSGT2287));\n\t\t\t\t\t\tthis.closeButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"closeButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.dialogShell.dispose();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.helpButton = new Button(this.boundsComposite, SWT.PUSH | SWT.CENTER);\n\t\t\t\t\t\tthis.helpButton.setImage(SWTResourceManager.getImage(\"gde/resource/QuestionHot.gif\")); //$NON-NLS-1$\n\t\t\t\t\t\tFormData LoadButtonLData = new FormData();\n\t\t\t\t\t\tLoadButtonLData.width = 118;\n\t\t\t\t\t\tLoadButtonLData.height = GDE.IS_MAC ? 33 : 30;\n\t\t\t\t\t\tLoadButtonLData.bottom = new FormAttachment(1000, 1000, -8);\n\t\t\t\t\t\tLoadButtonLData.right = new FormAttachment(1000, 1000, -158);\n\t\t\t\t\t\tthis.helpButton.setLayoutData(LoadButtonLData);\n\t\t\t\t\t\tthis.helpButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void widgetSelected(SelectionEvent evt) {\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINEST, \"helpButton.widgetSelected, event=\" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t\t\tUltraDuoPlusDialog.this.application.openHelpDialog(UltraDuoPlusDialog.DEVICE_JAR_NAME, \"HelpInfo.html\"); //$NON-NLS-1$ \n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tthis.boundsComposite.addPaintListener(new PaintListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void paintControl(PaintEvent evt) {\n\t\t\t\t\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.FINER, \"boundsComposite.paintControl() \" + evt); //$NON-NLS-1$\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t} // end boundsComposite\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.dialogShell.setLocation(getParent().toDisplay(getParent().getSize().x / 2 - 300, 100));\n\t\t\t\tthis.dialogShell.open();\n\t\t\t\tthis.lastMemorySelectionIndex = -1;\n\t\t\t\tthis.lastCellSelectionIndex = -1;\n\t\t\t\tupdateBaseSetup();\n\t\t\t\tthis.memoryCombo.notifyListeners(SWT.Selection, new Event());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.dialogShell.setVisible(true);\n\t\t\t\tthis.dialogShell.setActive();\n\t\t\t\tthis.lastMemorySelectionIndex = -1;\n\t\t\t\tthis.lastCellSelectionIndex = -1;\n\t\t\t\tupdateBaseSetup();\n\t\t\t\tthis.memoryCombo.notifyListeners(SWT.Selection, new Event());\n\t\t\t}\n\t\t\tDisplay display = this.dialogShell.getDisplay();\n\t\t\tUltraDuoPlusDialog.log.log(Level.TIME, \"open dialog time = \" + StringHelper.getFormatedTime(\"ss:SSS\", (new Date().getTime() - openStartTime))); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\twhile (!this.dialogShell.isDisposed()) {\n\t\t\t\tif (!display.readAndDispatch()) display.sleep();\n\t\t\t}\n\t\t}\n\t\tcatch (Throwable e) {\n\t\t\tUltraDuoPlusDialog.log.log(java.util.logging.Level.SEVERE, e.getMessage(), e);\n\t\t}\n\t\tfinally {\n\t\t\tif (!GDE.shell.isDisposed()) {\n\t\t\t\tthis.application.setCursor(SWTResourceManager.getCursor(SWT.CURSOR_ARROW));\n\t\t\t\tthis.application.resetShellIcon();\n\t\t\t\tif (this.serialPort != null && this.serialPort.isConnected()) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tthis.serialPort.write(UltramatSerialPort.RESET);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t\t// ignore\n\t\t\t\t\t}\n\t\t\t\t\tfinally {\n\t\t\t\t\t\tthis.serialPort.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void Refresh(){\n this.ShowAll();\n }",
"protected void connect(){\n MediaBrowserCompat mediaBrowser = mediaBrowserProvider.getMediaBrowser();\n if (mediaBrowser.isConnected()) {\n onConnected();\n }\n }",
"private static void fileReConnect() {\n // display the ConnectWindow\n connectWindow.setVisible(true);\n\n // set focus on the databasePanel\n databasePanel.requestFocus();\n }",
"private void showDisplay() {\n this.display.displayScreen();\n }",
"@Override\n public List<CECDevice> scanDevices() {\n sendCommand(\"scan\");\n return CECClientParser.parseScanResult(waitForOutputLine(\"===================\"));\n }",
"@Override\n public void onConfigured(@NonNull CameraCaptureSession cameraCaptureSession) {\n if (null == mCameraDevice) {\n return;\n }\n // When the session is ready, we start displaying the preview.\n mCameraCaptureSessions = cameraCaptureSession;\n updatePreview();\n }",
"public void display() {\r\n subAwardDlgWindow.setVisible(true);\r\n }",
"protected void updatePreview() {\n if(null == cameraDevice) {\n Log.e(TAG, \"updatePreview error, return\");\n }\n captureRequestBuilder.set(CaptureRequest.CONTROL_MODE, CameraMetadata.CONTROL_MODE_AUTO);\n try {\n cameraCaptureSessions.setRepeatingRequest(captureRequestBuilder.build(), null, mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }",
"public boolean showDialog() {\r\n if (this.cmbTypes.getItemCount() > 0) {\r\n this.cmbTypes.setSelectedIndex(0);\r\n }\r\n this.returnValue = false;\r\n this.setVisible(true);\r\n return this.returnValue;\r\n }",
"private void startDeviceListActivity() {\n\t\tIntent intent = new Intent(this, DeviceListActivity.class);\r\n startActivityForResult(intent, REQUEST_CONNECT_DEVICE); \r\n\t}",
"private void updateDisplay() {\n\t\tif (!Display.isActive()) {\n\t\t\twKeyDown = false;\n\t\t\taKeyDown = false;\n\t\t\tsKeyDown = false;\n\t\t\tdKeyDown = false;\n\t\t\tmouseDown = false;\n\t\t}\n\t\t\n\t\tDisplay.update();\n\t\tDisplay.sync(fps);\n\t\t\n\t\tif (Display.isCloseRequested()) {\n\t\t\tDisplay.destroy();\n\t\t\tAL.destroy();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"private void reportUIChange() {\r\n\t\tif (messengerToUI != null) {\r\n\t\t\ttry {\r\n\t\t\t\tmessengerToUI.send(Message.obtain(null, DRIVER2UI_DEV_STATUS));\r\n\t\t\t} catch (RemoteException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void resultsConfigButton(){\n if(!resultsOpened){\n resultsUI = new ResultsUI(this, false);\n resultsOpened = true;\n } \n }",
"public void reload() {\r\n\t\tif(!this.isVisible()){\r\n\t\t\tthis.list.show(new Vector<Record>());\r\n\t\t\tpanForm.clear();\r\n\t\t}else{\r\n\t\t\tthis.list.show(new Vector<Record>());\r\n\t\t\tperformSearch();\r\n\t\t}\r\n\t\tpanForm.reload();\r\n\t}",
"private boolean updateGUI(){\n // check if there were games found\n if(totalGames == 0){\n resetPieChart();\n resetLabels();\n showAlertSelectionFail(\"Selection error\", \"No games with this constellation were found.\");\n return false;\n }\n\n // fill labels with text\n lblTotalGames.setText(String.valueOf(totalGames));\n lblGamesWithoutWinner.setText(String.valueOf(gamesWithoutWinner));\n if (averageTurns == 0) {\n lblAverageTurns.setText(\"Not available\");\n } else {\n lblAverageTurns.setText(String.valueOf(averageTurns));\n }\n // remove duplicate players -> playerNameListNoDuplicates\n Set<String> playerSet = new HashSet<>(playerNameList);\n List<String> playerNameListNoDuplicates = new ArrayList<>();\n playerNameListNoDuplicates.addAll(playerSet);\n // sort new List\n Collections.sort(playerNameListNoDuplicates);\n int labelCounter = 1;\n for (String playerName : playerNameListNoDuplicates) {\n vBoxDesc.getChildren().add(labelCounter, new Label(playerName + \":\"));\n vBoxNumbers.getChildren().add(labelCounter, new Label(String.valueOf(nameToWins.get(playerName)) + \" wins\"));\n labelCounter++;\n }\n\n // fill pieChart\n fillPieChart();\n\n return true;\n }",
"public void showCompositeManager() {\n if (this.compManager == null) {\n compManager = new com.nrims.managers.CompositeManager(ui);\n }\n compManager.setVisible(true);\n }",
"public boolean allConnected()\n {\n if(isDestroyed) throw new RuntimeException(\"pvaClientMultiChannel was destroyed\");\n return (numConnected==numChannel) ? true : false;\n }"
] | [
"0.61984634",
"0.6119712",
"0.6072056",
"0.57871115",
"0.56034434",
"0.5517108",
"0.5507506",
"0.5401854",
"0.53100544",
"0.5307213",
"0.52967495",
"0.52618366",
"0.52428526",
"0.51692593",
"0.51283467",
"0.51221395",
"0.5100783",
"0.50902605",
"0.50275457",
"0.5020405",
"0.50116915",
"0.5007786",
"0.4976338",
"0.496224",
"0.49538377",
"0.49203163",
"0.49183276",
"0.49150217",
"0.48988014",
"0.48950404",
"0.4890974",
"0.48867762",
"0.488001",
"0.48755172",
"0.48729149",
"0.48707917",
"0.48591894",
"0.48416635",
"0.48316786",
"0.47881302",
"0.47807476",
"0.47708836",
"0.47679362",
"0.47642574",
"0.47618642",
"0.47597668",
"0.47554228",
"0.4747862",
"0.473881",
"0.47339648",
"0.4728086",
"0.47274604",
"0.47266075",
"0.47242516",
"0.47032765",
"0.4700579",
"0.46953696",
"0.46921667",
"0.46894327",
"0.46851686",
"0.4681879",
"0.4681879",
"0.4681879",
"0.4681879",
"0.4680488",
"0.46691108",
"0.4665484",
"0.46642023",
"0.46606246",
"0.46557096",
"0.46520334",
"0.46397337",
"0.4636116",
"0.46276316",
"0.46276128",
"0.46266308",
"0.46238983",
"0.4620957",
"0.46169093",
"0.4616559",
"0.46124905",
"0.46110767",
"0.46090657",
"0.46038502",
"0.45988986",
"0.45974645",
"0.45961255",
"0.45927504",
"0.45853174",
"0.45799407",
"0.45706335",
"0.45677873",
"0.45662373",
"0.45576993",
"0.4554018",
"0.45494947",
"0.45488158",
"0.45483306",
"0.45446137",
"0.45353675"
] | 0.7240333 | 0 |
Add extra monitor selection buttons, only if there are more than 1 connected. | public void addMonitors() {
// get graphics environment
GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] graphicsDevices = graphicsEnvironment.getScreenDevices();
// let user choose on which screen to show the capturer, only if more than one is connected
if (graphicsDevices.length > 1) {
buttonPanel.removeAll();
JLabel screenLabel = new JLabel(getResourceMap().getString("screenLabel.text"));
buttonPanel.add(screenLabel, "wrap, grow, span");
// create buttongroup for selecting monitor
ButtonGroup screenButtonGroup = new ButtonGroup();
Integer defaultMonitorId = videoCapturerFactory.getMonitorIdForComponent(selectedVideoCapturerName);
// get the default monitor id for this capturer
for (GraphicsDevice graphicsDevice : graphicsDevices) {
String monitorIdString = graphicsDevice.getIDstring();
DisplayMode displayMode = graphicsDevice.getDisplayMode();
// final Rectangle position = graphicsDevice.getDefaultConfiguration().getBounds();
String resolution = displayMode.getWidth() + "x" + displayMode.getHeight();
JToggleButton button = new JToggleButton("<html><center>" + monitorIdString + "<br>" + resolution + "</center></html>");
monitorIdString = monitorIdString.substring(monitorIdString.length() - 1);
button.setActionCommand(monitorIdString);
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
AbstractButton source = (AbstractButton) e.getSource();
String monitorId = source.getActionCommand();
// TODO pass position here instead of monitor id..
firePropertyChange(SelfContained.MONITOR_ID, selectedMonitorId, selectedMonitorId = monitorId);
}
});
button.setBackground(Color.WHITE);
// set default screen selection
int monitorId = Integer.parseInt(monitorIdString);
if (defaultMonitorId != null && defaultMonitorId == monitorId) {
button.setSelected(true);
screenButtonGroup.setSelected(button.getModel(), true);
} else {
screenButtonGroup.setSelected(button.getModel(), false);
}
screenButtonGroup.add(button);
buttonPanel.add(button, "height 70!, width 70::, grow");
}
screenLabel.setVisible(true);
buttonPanel.setVisible(true);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MultiMonitorDialog(java.awt.Frame parent, boolean modal,java.awt.GraphicsDevice[] gds, int current)\n {\n super(parent, modal);\n \n javax.swing.JScrollPane jScrollPane1 = new javax.swing.JScrollPane();\n javax.swing.JList jList1 = new javax.swing.JList();\n javax.swing.JLabel jL = new javax.swing.JLabel(Localization.Texts[139]+\".\");\n javax.swing.JButton button = new javax.swing.JButton(\"OK\");\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n jScrollPane1.setViewportView(jList1);\n \n getContentPane().setLayout(new javax.swing.BoxLayout(this.getContentPane(),javax.swing.BoxLayout.Y_AXIS));\n this.add(jL);\n this.add(jScrollPane1);\n this.add(button);\n\n this.setTitle(Localization.Texts[139]);\n javax.swing.DefaultListModel<String> listModel = new javax.swing.DefaultListModel<>();\n StringBuilder sb=new StringBuilder (200);\n for (int i=0;i<gds.length;i++) // show description of all monitors\n {\n sb.setLength(0); // nothing yet\n java.awt.GraphicsDevice device = gds[i];\n java.awt.GraphicsConfiguration gd=device.getDefaultConfiguration();\n // sb.append(count).append(\" : \").append(device.getIDstring()).append (\" \");\n sb.append(i).append(\" : \");\n java.awt.Rectangle bounds = gd.getBounds();\n sb.append(bounds.width).append(\" X \").append(bounds.height).append(Localization.Texts[140]);\n sb.append(bounds.x).append(\" X \").append(bounds.y);\n listModel.addElement(sb.toString());\n } \n \n jList1.setModel(listModel);\n javax.swing.ListSelectionModel lsm = jList1.getSelectionModel();\n lsm.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jList1.setSelectedIndex(current);\n jList1.addListSelectionListener(this);\n \n pack();\n final javax.swing.AbstractAction escapeAction = new javax.swing.AbstractAction() \n {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent ae) \n {\n dispose(); // this is called when user hits ESC\n }\n };\n\n getRootPane().getInputMap(javax.swing.JComponent.WHEN_IN_FOCUSED_WINDOW)\n .put(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0), \"ESCAPE_KEY\");\n getRootPane().getActionMap().put(\"ESCAPE_KEY\", escapeAction);\n \n button.addActionListener (new java.awt.event.ActionListener()\n {\n @Override\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n dispose();\n }\n });\n }",
"private void createAdditionalButtonControls(Composite parent) {\r\n\t\tComposite btnComposite = new Composite(parent, SWT.NONE);\r\n\t\tbtnComposite.setLayout(new GridLayout(2, false));\r\n\r\n\t\tButton selAllBtn = new Button(btnComposite, SWT.PUSH);\r\n\t\tselAllBtn.setText(Messages.TOPOLOGY_BTN_SELECT_ALL_TXT);\r\n\t\tselAllBtn.addSelectionListener(new SelectionListener() {\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedUnitsList.setAllChecked(true);\r\n\t\t\t\tupdateSelectedItemsProperty();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tButton deselAllBtn = new Button(btnComposite, SWT.PUSH);\r\n\t\tdeselAllBtn.setText(Messages.TOPOLOGY_BTN_DESELECT_ALL_TXT);\r\n\t\tdeselAllBtn.addSelectionListener(new SelectionListener() {\r\n\t\t\tpublic void widgetDefaultSelected(SelectionEvent e) {\r\n\t\t\t}\r\n\r\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\r\n\t\t\t\tselectedUnitsList.setAllChecked(false);\r\n\t\t\t\tupdateSelectedItemsProperty();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"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 }",
"public void refreshWindowsMenu() {\r\n Window.removeAll();\r\n for(JInternalFrame cf: circuitwindows){\r\n final JInternalFrame cf2 = cf;\r\n javax.swing.JMenuItem windowItem = new javax.swing.JMenuItem();\r\n windowItem.setText(cf.getTitle()); \r\n windowItem.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n try { cf2.setSelected(true);\r\n } catch (PropertyVetoException ex) {\r\n ErrorHandler.newError(\"Editor Error\",\"Cannot select circuit \" + cf2.getTitle() + \".\", ex);\r\n }\r\n }\r\n });\r\n Window.add(windowItem); \r\n }\r\n if(circuitwindows.size()==0){\r\n Window.setEnabled(false);\r\n } else {\r\n Window.setEnabled(true);\r\n }\r\n }",
"private void cmdExcelReportWidgetSelected() {\n\n\t}",
"void showAll() { \n computers = \"\"; \n if(cbSmartphone.isSelected()) computers = \"Smartphone \"; \n if(cbTablet.isSelected()) computers += \"Tablet \"; \n if(cbNotebook.isSelected()) computers += \"Notebook \"; \n if(cbDesktop.isSelected()) computers += \"Desktop\"; \n \n selected.setText(\"Computers selected: \" + computers); \n }",
"public void habilitabotones() {\n\n\tif (IR.sensmci == true) {\n\t btnmci1.setEnabled(true);\n\t btnmci1.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t //Instancio el panel lecturas (MCI-1) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_1) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 1\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci1.setEnabled(false);\n\n\tif (IR.sensmci2 == true) {\n\t btnmci2.setEnabled(true);\n\t btnmci2.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-2) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_2) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 2\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci2.setEnabled(false);\n\n\tif (IR.sensmci3 == true) {\n\t btnmci3.setEnabled(true);\n\t btnmci3.addMouseListener(new MouseAdapter() {\n\n\t\t\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-3) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_3) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 3\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci3.setEnabled(false);\n\n\tif (IR.sensmci4 == true) {\n\t btnmci4.setEnabled(true);\n\t btnmci4.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (MCI-4) al pulsar el boton.\n\t\t IR.panelecturasmci = Panelecturasmci.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_MCI_4) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasmci);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasmci);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasmci.getLbltitulo().setText(\"PLACA MCI 4\");\n\t\t IR.panelecturasmci.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasmci);\n\t\t IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnmci4.setEnabled(false);\n\n\tif (IR.sensbt2 == true) { // Revisar comportamiento y\n\t\t\t\t // necesidad del hiloinfo en bt2\n\n\t btnbt21.setEnabled(true);\n\t btnbt21.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t \n\t\t //Instancio el panel lecturas (BT2-1) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_5) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-1\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t // IR.panelecturasbt2.setActualizar(true);\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasbt2\n\t\t // .setHilomuestrainfo(IR.panelecturasbt2\n\t\t // .getHilomuestrainfo());\n\t\t // IR.panelecturasbt2.hiloinfo = new Thread(\n\t\t // IR.panelecturasbt2.hilomuestrainfo);\n\t\t // IR.panelecturasbt2.hiloinfo.start();\n\n\t\t}\n\t });\n\t} else\n\t btnbt21.setEnabled(false);\n\n\tif (IR.sensbt22 == true) {\n\t btnbt22.setEnabled(true);\n\t btnbt22.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-2) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_6) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-2\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt22.setEnabled(false);\n\n\tif (IR.sensbt23 == true) {\n\t btnbt23.setEnabled(true);\n\t btnbt23.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-3) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_7) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasbt2);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-3\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt23.setEnabled(false);\n\n\tif (IR.sensbt24 == true) {\n\t btnbt24.setEnabled(true);\n\t btnbt24.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (BT2-4) al pulsar el boton.\n\t\t IR.panelecturasbt2 = Panelecturasbt2.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_BT2_8){\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\"pulsos\", IR.panelecturasbt2);\n\t\t\tIR.sensores.get(i).addPropertyChangeListener(\"lectura\",\n\t\t\t\tIR.panelecturasbt2);\n\t\t\t}\n\t\t }\n\t\t // Aki se llama al panelecturas\n\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasbt2.getLbltitulo().setText(\"PLACA BT2-4\");\n\t\t //IR.panelecturasbt2.tipo = 0;\n\t\t IR.panelecturasbt2.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasbt2);\n\t\t IR.panelecturasbt2.setVisible(true);\n\t\t // IR.panelecturasmci.repaint();\n\t\t // IR.frmIrrisoft.getContentPane().add(\n\t\t // IR.panelecturasmci);\n\t\t // IR.panelecturasmci.setVisible(true);\n\n\t\t}\n\t });\n\t} else\n\t btnbt24.setEnabled(false);\n\n\tif (IR.hayplacasens) {\n\t btnplaca_sens.setEnabled(true);\n\t btnplaca_sens.addMouseListener(new MouseAdapter() {\n\n\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t //Instancio el panel lecturas (Sensores) al pulsar el boton.\n\t\t IR.panelecturasens = Panelecturasens.getInstance();\n\t\t // Buclo popr los sensores para añadir los listeners\n\t\t // necesarios\n\t\t for (int i = 0; i < IR.sensores.size(); i++) {\n\t\t\tif (IR.sensores.get(i).getNum_placa() == IrrisoftConstantes.PLACA_SENSORES_0) {\n\t\t\t IR.sensores.get(i).setLectura(\"\");\n\t\t\t IR.sensores.get(i).setPulsos(-1);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"pulsos\", IR.panelecturasens);\n\t\t\t IR.sensores.get(i).addPropertyChangeListener(\n\t\t\t\t \"lectura\", IR.panelecturasens);\n\t\t\t \n\t\t\t}\n\t\t }\n\n\t\t // Aki se llama al panelecturas\n\t\t IR.panelecturas.setVisible(false);\n\t\t IR.panelecturasens.repaint();\n\t\t IR.frmIrrisoft.getContentPane().add(IR.panelecturasens);\n\t\t IR.panelecturasens.setVisible(true);\n\t\t}\n\t });\n\t} else\n\t btnplaca_sens.setEnabled(false);\n\n }",
"private void addButtonsToPanel() {\n\t\tselectionPanel.add(rock, BorderLayout.WEST);\n\t\tselectionPanel.add(paper, BorderLayout.CENTER);\n\t\tselectionPanel.add(scissors, BorderLayout.EAST);\n\n\t\t// Adds a border with given text\n\t\tselectionPanel.setBorder(BorderFactory\n\t\t\t\t.createTitledBorder(\"Choose wisely. . .\"));\n\t}",
"private void addUniqueToViewNodes() {\n\t\taddFilterButton();\n\t\t\n\t\t/* Button Initialization */\n\t\t//This Button Creates a Report\n\t\tcreateReportBtn = new Button(\"Create Report\");\n\t\tcreateReportBtn.getStyleClass().add(\"GreenButton\");\n\t\tcreateReportBtn.setOnAction(e -> {\n\t\t\tCreateReportPopup crPopup = new CreateReportPopup(\"Create Report\");\n\t\t\tcrPopup.show();\n\t\t});\n\t\t\n\t\t// This Button views the currently selected report in more detail\n\t\treportDetailsBtn = new Button(\"Report Details\");\n\t\treportDetailsBtn.getStyleClass().add(\"GreenButton\");\n\t\t\n\t\t/* Assembly */\n\t\tactionButtons.getChildren().addAll(createReportBtn, reportDetailsBtn);\n\t\t\n\t\tactionButtons.setPrefHeight(Values.ACTION_BUTTONS_PREF_WIDTH);\n\t}",
"private void createRgbHsbButtons() {\n \t\n Composite comp1 = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, false);\n gl.horizontalSpacing = 10;\n comp1.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n comp1.setLayoutData(gd);\n\n // Create a group to contain the RGB and HSB radio buttons.\n Group colorGroup = new Group(comp1, SWT.NONE);\n colorGroup.setText(\" Use color model: \");\n\n RowLayout groupRowLayout = new RowLayout();\n groupRowLayout.marginLeft = 10;\n groupRowLayout.marginRight = 10;\n groupRowLayout.spacing = 10;\n colorGroup.setLayout(groupRowLayout);\n\n // Create the RGB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the RGB\n // sliders.\n rgbRdo = new Button(colorGroup, SWT.RADIO);\n rgbRdo.setText(\"RGB\");\n rgbRdo.setSelection(true);\n rgbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n\n // Create the HSB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the HSB\n // sliders.\n hsbRdo = new Button(colorGroup, SWT.RADIO);\n hsbRdo.setText(\"HSB\");\n hsbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n \n Composite catComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 20;\n catComp.setLayout(gl);\n gd = new GridData(GridData.CENTER);\n gd.horizontalAlignment = SWT.CENTER;\n \n catComp.setLayoutData(gd);\n\n Label selCatLbl = new Label( catComp, SWT.None );\n selCatLbl.setText(\"Category\");\n \n final Combo selCmapCatCombo = new Combo( catComp, SWT.DROP_DOWN | SWT.READ_ONLY );\n selCmapCatCombo.setItems( availColorMapCats );\n selCmapCatCombo.select(0);\n \n selCmapCatCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCat = selCmapCatCombo.getText();\n \t\tif( seldCat.equals( seldCmapCat ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapCat = seldCat;\n \t\tseldCmapName = null;\n \t\tavailColorMaps.clear();\n \t\t\n for( String cmap : ColorMapUtil.listColorMaps(seldCmapCat) ) {\n \tif( seldCmapName == null ) {\n \t\tseldCmapName = cmap;\n \t\tif( !initColorMap() ) {\n \t\tseldCmapName = null;\n \t\t\tcontinue; // don't add to the list\n \t\t}\n \t}\n \tavailColorMaps.add(cmap);\n }\n \t\n createSliderData();\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n Composite cmapComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 10;\n cmapComp.setLayout(gl);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n cmapComp.setLayoutData(gd);\n\n Label selCmapLbl = new Label( cmapComp, SWT.None );\n selCmapLbl.setText(\"Colormap\");\n \n selCmapCombo = new Combo( cmapComp, SWT.DROP_DOWN );\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n \n selCmapCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCmap = selCmapCombo.getText();\n \t\tif( seldCmap.equals( seldCmapName ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapName = seldCmap;\n\n \t\tif( initColorMap() ) {\n createSliderData();\n \t\t}\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n// selCmapCombo.addModifyListener( new ModifyListener() {\n//\t\t\t@Override\n//\t\t\tpublic void modifyText(ModifyEvent e) { \n//\t\t\t\tseldCmapName = selCmapCombo.getText();\n//\t\t\t}\n// });\n }",
"private void createShowAllButton(Composite parent) {\n\t\t\t((GridLayout) parent.getLayout()).numColumns++;\n\t\t\tButton extraButton = new Button(parent, SWT.CHECK);\n\t\t\textraButton.setText(\"Show all scannables\");\n\t\t\tsetButtonLayoutData(extraButton);\n\n\t\t\textraButton.addSelectionListener(SelectionListener.widgetSelectedAdapter(event -> {\n\t\t\t\tmodel.clear();\n\t\t\t\tmodel.addAll(shortNameList);\n\t\t\t\tif (extraButton.getSelection()) {\n\t\t\t\t\tmodel.addAll(longNameList);\n\t\t\t\t}\n\t\t\t\tgetTableViewer().refresh();\n\t\t\t}));\n\t\t}",
"private void helperSwitchSelectOn()\r\n\t{\r\n\t\tImageIcon iconButton = FormUtils.getIconResource(FormStyle.RESOURCE_PATH_ICO_SELECT_PRESSED);\r\n\r\n\t\tmainFormLink.getComponentToolbar().getComponentButtonSelect().setIcon(iconButton);\r\n\r\n\t\tFormMainMouse.isSampleSelectOn = true;\r\n\t}",
"@FXML private void addEdges()\t\t\n\t{ \t\n\t\tif (getSelection().size() >= 2)\t\t\n\t\t{\n\t\t\tList<Edge> edges = getDrawModel().connectSelectedNodes();\n\t\t\tfor (Edge e: edges)\n\t\t\t\tadd(0, e, getActiveLayerName());\n\t\t}\n\t}",
"public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {\n\t\t\t\t\t\tRoomAdd ra=new RoomAdd();\r\n\t\t\t\t\t\tra.getsShell().open();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tsShell.setMinimized(true);\r\n\t\t\t\t\t\t/*if(ra.flag){\r\n\t\t\t\t\t\t\tnewRoom=ra.getRoom();\r\n\t\t\t\t\t\t\ttableViewer.add(SystemManageShell.newRoom);\r\n\t\t\t\t\t\t}*/\r\n\t\t\t\t\t\t}",
"private void showMonitorVisualization() {\n\t\tsetVisualization(new MonitorVisualization(rootComposite, controller, checklist));\n\t}",
"private void createServerSelectScreen() {\n\t\tserverSelectGroup = new VerticalGroup();\n\t\tserverSelectGroup.setVisible(false);\n\t\t\n\t\tserverSelectGroup.setSize(WIDTH/2, HEIGHT/2);\n\t\tserverSelectGroup.setPosition(WIDTH/2 - serverSelectGroup.getWidth()/2, HEIGHT/2 - serverSelectGroup.getHeight()/2);\n\t\t\n\t\tTextButtonStyle smallStyle = new TextButtonStyle();\n\t\tsmallStyle.font = fontMedium;\n\t\t\n\t\tserverList = new TextButton(\"Server\", smallStyle);\n\t\tserverList.addListener(new InputListener(){\n\t\t\tpublic boolean touchDown(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tif(networkManager != null)\n\t\t\t\t\tnetworkManager.connectToServer();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\tpublic void touchUp(InputEvent event, float x, float y, int pointer, int button) {\n\t\t\t\tserverSelectGroup.setVisible(false);\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tserverSelectGroup.addActor(serverList);\n\t\tstage.addActor(serverSelectGroup);\n\t}",
"public void resetSelected(){\n\t\tfor(int x =0; x<9; x++){\n\t\t\tClientWindow.retButtons()[x].setBackground(Color.LIGHT_GRAY);\n\t\t}\n\t}",
"private void selectIndicatorSubgroups() {\n CardLayout cl = (CardLayout)(m_jCategories.getLayout());\n cl.show(m_jCategories, \"rootcategories\");\n }",
"private void writeSecondLevelMonitors() {}",
"protected void printNumberSelectedPicturesOnStatusLine( ) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t \n\t\t\tpublic void run() {\n\t\t\t\tString text;\n\t\t\t\tint count = indexData.pictureSelected.cardinality();\n\t\t\t\tif (count == 1) {\n\t\t\t\t\ttext = \"1 picture selected.\";\n\t\t\t\t} else if (count == 0) {\n\t\t\t\t\ttext = \"NO pictures selected\";\n\t\t\t\t} else {\n\t\t\t\t\ttext = String.valueOf(count) + \" pictures selected\";\n\t\t\t\t}\n\t\t\t\tselPictures.setText(text);\t\n\t\t\t}\n\t\t});\n\t}",
"public void reserveNavigatorButtonMnemonics()\n {\n JButton [] buttons = {\n quit,\n next,\n previous\n };\n\n ButtonFactory.reserveButtonMnemonics(buttons);\n }",
"public void updateSelection() {\n\t\tint index = shell.getConnectionsCombo().getSelectionIndex();\n\t\tif (profiles.length == 0 || index < 0 || index >= profiles.length) {\n\t\t\tshell.getLblServerNameValue().setText(\"\");\n\t\t\tshell.getLblServerHostValue().setText(\"\");\n\t\t\tshell.getBtnConnect().setEnabled(false);\n\t\t\treturn;\n\t\t}\n\t\tIConnectionProfile profile = profiles[index];\n\t\tshell.getLblServerNameValue().setText(profile.getName() + \" (\" + profile.getUsername() + \")\");\n\t\tshell.getLblServerHostValue().setText(profile.getIP() + \":\" + profile.getPort());\n\t\tshell.getBtnConnect().setEnabled(true);\n\t}",
"private void pushSelection()\n {\n ArrayList<Integer> selectedIndices = new ArrayList<>();\n ArrayList<Signal> newSelected = new ArrayList<>();\n for(Signal s: selected)\n {\n int index = listed.indexOf(s);\n if(index >= 0)\n {\n selectedIndices.add(index);\n newSelected.add(s);\n }\n }\n selected.clear();\n selected.addAll(newSelected);\n int[] indices = new int[selectedIndices.size()];\n for(int i = 0; i < selectedIndices.size(); i++)\n {\n indices[i] = selectedIndices.get(i);\n }\n signalList.setSelectedIndices(indices);\n }",
"private void setupButtons() {\n final ButtonGroup btngrp = new ButtonGroup();\n\n for (final AbstractAction actn : myToolActions) {\n final JToggleButton btn = new JToggleButton(actn);\n btn.addActionListener(actn);\n btngrp.add(btn);\n add(btn);\n }\n\n btngrp.clearSelection();\n btngrp.getElements().nextElement().setSelected(true);\n\n }",
"@Override\n protected void addButtons()\n {\n JLabel agentOptions = new JLabel(\"Client Options \", SwingConstants.CENTER);\n addComponentToGridBag(this, agentOptions, 0, 0, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n\n JButton agentSendMessage = new JButton(\"Send Message\");\n addComponentToGridBag(this, agentSendMessage, 0, 2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentSendMessage.addActionListener((ActionEvent e) ->\n {\n String to = getTo();\n String content = getContent(to);\n sendMessage(to, content);\n });\n\n JButton agentShowPortal = new JButton(\"Show Portal\");\n addComponentToGridBag(this, agentShowPortal, 0, 3, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentShowPortal.addActionListener((ActionEvent e) ->\n {\n displayConnections();\n });\n\n JButton agentexit = new JButton(\"Exit\");\n addComponentToGridBag(this, agentexit, 0, 5, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentexit.addActionListener((ActionEvent e) ->\n {\n System.exit(0);\n });\n }",
"protected void handleNewRemoteConnectionSelected() {\n \t\tif (getUIConnectionManager() != null) {\n \t\t\tIRemoteConnection conn = getUIConnectionManager().newConnection(getShell(), fAttrHints, fAttrHintValues);\n \t\t\tif (conn != null) {\n \t\t\t\thandleRemoteServiceSelected(conn);\n \t\t\t\thandleConnectionSelected();\n \t\t\t}\n \t\t}\n \t}",
"public void show()\n {\n Iterator<FrameElement> elements =\n selection.getSelectedElementsIterator();\n\n while (elements.hasNext()) {\n FrameElement elt = elements.next();\n\n // For the moment, only works with selected widgets.\n if (elt instanceof IWidget) {\n IWidget w = (IWidget) elt;\n\n if (! (w instanceof ChildWidget)) {\n SimpleWidgetGroup group = w.getParentGroup();\n\n FrameElement key = (group == null) ? w : group;\n\n addHalo(key);\n }\n }\n else if (elt instanceof FrameElementGroup) {\n FrameEltGroupHalo halo =\n addGroupHalo((FrameElementGroup) elt);\n\n halo.setSelected(true);\n }\n\n Iterator<FrameElementGroup> groups =\n elt.getRootElement().getEltGroups().iterator();\n\n while (groups.hasNext()) {\n Association<?> assoc = groups.next();\n\n if (assoc instanceof FrameElementGroup) {\n FrameEltGroupHalo halo =\n addGroupHalo((FrameElementGroup) assoc);\n\n halo.setSelected(selection.isElementSelected(assoc));\n }\n }\n\n // Add frame element group halo for each selected remote label\n FrameElement owner =\n (FrameElement)\n elt.getAttribute(WidgetAttributes.REMOTE_LABEL_OWNER_ATTR);\n\n if ((owner != null) && (owner instanceof FrameElementGroup)) {\n FrameEltGroupHalo halo =\n addGroupHalo((FrameElementGroup) owner);\n\n halo.setSelected(selection.isElementSelected(owner));\n }\n }\n\n setHalosVisible();\n }",
"public void createControl(Composite parent) \r\n\t{\r\n\t\tComposite container = new Composite(parent, SWT.NONE);\r\n\r\n\t\tsetControl(container);\r\n\t\t\r\n\t\tSelectionAdapter listener1 = new SelectionAdapter() {\r\n\t public void widgetSelected(SelectionEvent e) {\r\n\t \t if (btnFirstOption.getSelection()){\r\n\t \t\t btnSecondOption.setSelection(false);\r\n\t \t\t btnThirdOption.setSelection(false);\r\n\t \t }\t \t \r\n\t }\r\n\t };\r\n\t SelectionAdapter listener2 = new SelectionAdapter() {\r\n\t \tpublic void widgetSelected(SelectionEvent e) {\r\n\t \t\tif (btnSecondOption.getSelection()){\r\n\t\t \t\t btnFirstOption.setSelection(false);\r\n\t\t \t }\r\n\t \t\tif (btnThirdOption.getSelection()){\r\n\t\t \t\t btnFirstOption.setSelection(false);\r\n\t\t \t } \r\n\t \t}\r\n\t };\r\n\t \r\n\t\tbtnFirstOption = new Button(container, SWT.CHECK);\r\n\t\tbtnFirstOption.setBounds(10, 10, 20, 59);\r\n\t\tbtnFirstOption.addSelectionListener(listener1);\r\n\t\t\r\n\t\tbtnSecondOption = new Button(container, SWT.CHECK | SWT.WRAP);\r\n\t\tbtnSecondOption.setBounds(10, 75, 20, 85);\r\n\t\tbtnSecondOption.addSelectionListener(listener2);\r\n\t\t\r\n\t\tbtnThirdOption = new Button(container, SWT.CHECK | SWT.WRAP);\r\n\t\tbtnThirdOption.setBounds(292, 75, 20, 85);\r\n\t\tbtnThirdOption.addSelectionListener(listener2);\r\n\t\t\r\n\t\tyesList = new List(container,SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\r\n\t\tyesList.setBounds(36, 166, 224, 106);\r\n\t\t\r\n\t\tfor(Property p: hetColl.getMemberEnds())\r\n\t\t{\t\t\r\n\t\t\tType type = p.getType();\r\n\t\t\tyesList.add(getStereotype(type)+\" \"+type.getName());\t\t\t\r\n\t\t}\r\n\t\tyesList.setSelection(0);\r\n\t\t\r\n\t\tbtnArrowRight = new Button(container, SWT.NONE);\r\n\t\tbtnArrowRight.setBounds(266, 181, 40, 25);\r\n\t\tbtnArrowRight.setText(\"->\");\r\n\t\tbtnArrowRight.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\tfor(String str: yesList.getSelection()){\r\n\t\t\t\t\tif(!contains(noList,str)) { noList.add(str); noList.select(noList.indexOf(str)); } \r\n\t\t\t\t}\r\n\t\t\t\tif(yesList.getSelectionIndex()>=0) { \r\n\t\t\t\t\tint prev = yesList.getSelectionIndex()-1;\r\n\t\t\t\t\tyesList.remove(yesList.getSelectionIndex());\r\n\t\t\t\t\tyesList.select(prev); \r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnArrowLeft = new Button(container, SWT.NONE);\r\n\t\tbtnArrowLeft.setBounds(266, 212, 40, 25);\r\n\t\tbtnArrowLeft.setText(\"<-\");\r\n\t\tbtnArrowLeft.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\tfor(String str: noList.getSelection()){\r\n\t\t\t\t\tif(!contains(yesList,str)) { yesList.add(str); yesList.select(yesList.indexOf(str)); } \r\n\t\t\t\t}\r\n\t\t\t\tif(noList.getSelectionIndex()>=0) {\r\n\t\t\t\t\tint prev = noList.getSelectionIndex()-1;\r\n\t\t\t\t\tnoList.remove(noList.getSelectionIndex());\r\n\t\t\t\t\tnoList.select(prev);\t\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tnoList = new List(container, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\r\n\t\tnoList.setBounds(318, 166, 224, 106);\r\n\t\t\r\n\t\tlblFirstOption = new Text(container, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tlblFirstOption.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tlblFirstOption.setBounds(36, 10, 506, 59);\t\t\r\n\t\tlblFirstOption.setText(hetColl.getWhole().getName()+\" is a functional complex and all partOf relations are stereotyped as «componentOf»\");\r\n\t\t\r\n\t\tlblSecondOption = new Text(container, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tlblSecondOption.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tlblSecondOption.setBounds(36, 75, 224, 85);\r\n\t\tlblSecondOption.setText(\"New Label\");\r\n\t\tlblSecondOption.setText(\"The parts are also collectives and their respective relations are stereotyped as «subCollectionOf»\");\r\n\t\t\r\n\t\tlblThirdOption = new Text(container, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tlblThirdOption.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tlblThirdOption.setBounds(318, 75, 224, 85);\r\n\t\tlblThirdOption.setText(\"There is a new type, named MemberPart, which is the super-type of all parts and is connected to \"+hetColl.getWhole().getName()+\" through a single «memberOf» relation. In addition, all other partOf relations are deleted.\");\r\n\t}",
"@Override\n public void menuSelected (MenuEvent e) {\n menu.removeAll();\n ButtonGroup group = new ButtonGroup();\n for (String pName : SerialPortList.getPortNames(macPat)) {\n JRadioButtonMenuItem item = new JRadioButtonMenuItem(pName, pName.equals(portName));\n menu.setVisible(true);\n menu.add(item);\n group.add(item);\n item.addActionListener((ev) -> {\n portName = ev.getActionCommand();\n prefs.put(prefix + \"serial.port\", portName);\n });\n }\n }",
"private void changeColorWheels() {\n if (rgbRdo.getSelection() == true) {\n upperColorWheel.showRgbSliders(true);\n lowerColorWheel.showRgbSliders(true);\n } else {\n upperColorWheel.showRgbSliders(false);\n lowerColorWheel.showRgbSliders(false);\n }\n }",
"@Override\n\tprotected void createCompButtons() {\n\t\tbtnExcelReport = new Button(getCompButtons(), SWT.NONE);\n\t\tbtnExcelReport.setText(\"Excel Report\");\n\t\tbtnExcelReport.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tbtnExcelReport\n\t\t.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(\n\t\t\t\t\torg.eclipse.swt.events.SelectionEvent e) {\n\t\t\t\tcmdExcelReportWidgetSelected();\n\t\t\t}\n\t\t});\n\t}",
"public void connectButtonListener()\n {\n final Context context = Monitoring.this;\n btnConnectDisconnect = (Button) findViewById(R.id.btn_select);\n\n btnConnectDisconnect.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View arg0)\n {\n if (!mBtAdapter.isEnabled())\n {\n Log.i(TAG, \"onClick - Bluetooth not enabled yet\");\n Intent enableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableIntent, REQUEST_ENABLE_BT);\n }\n else\n {\n if (btnConnectDisconnect.getText().toString().equals(\"Connect\"))\n {\n //Connect button pressed, open DeviceListActivity class,\n // with popup windows that scan for devices...\n Intent newIntent = new Intent(context, Scanner.class);\n startActivityForResult(newIntent, REQUEST_SELECT_DEVICE);\n }\n else\n {\n //Disconnect button pressed\n if (mDevice != null)\n {\n mService.disconnect();\n }\n }\n }\n }\n });\n }",
"@Override\n public void widgetSelected(SelectionEvent e) {\n updateLaunchConfigurationDialog();\n }",
"@Override\n public void widgetSelected(SelectionEvent e) {\n updateLaunchConfigurationDialog();\n }",
"public void pasteSelection() {\r\n \t\t// Bertoli Marco\r\n \t\tclipboard.paste();\r\n \r\n \t\t// If more than one stations are present enables link button\r\n \t\tif (graph.getModel().getRootCount() > 1) {\r\n \t\t\tsetConnect.setEnabled(true);\r\n \t\t}\r\n \t\t// If one station is present show select button\r\n \t\tif (graph.getModel().getRootCount() >= 1) {\r\n \t\t\tactivateSelect();\r\n \t\t}\r\n \t}",
"private void updateInfoBarOnClick() {\n\t\tif (!selectedList.isEmpty()) {\n\t\t\tStringBuilder label = new StringBuilder(\"Se selecciono: \");\n\t\t\tfor (Render<? extends MovableDrawing> selectedDrawing : selectedList) {\n\t\t\t\tlabel.append(selectedDrawing.getFigure().toString()).append(\", \");\n\t\t\t}\n\t\t\tlabel.setLength(label.length() - 2);\n\t\t\tstatusPane.updateStatus(label.toString());\n\t\t} else {\n\t\t\tstatusPane.updateStatus(\"Ninguna figura encontrada\");\n\t\t}\n\t}",
"@Override\n \t\t\tpublic void widgetSelected(SelectionEvent e) {\n \t\t\t\tList<Pair<Text, Button>> texts = inputFields.get(fp);\n \t\t\t\ttexts.remove(pair);\n \t\t\t\tupdateState();\n \t\t\t\tremoveButton.dispose();\n \t\t\t\ttext.dispose();\n\t\t\t\taddButtons.get(fp).setEnabled(true);\n \t\t\t\tif (texts.size() == fp.getMinOccurrence())\n \t\t\t\t\tfor (Pair<Text, Button> otherPair : texts)\n \t\t\t\t\t\totherPair.getSecond().setEnabled(false);\n \n \t\t\t\t// do layout\n \t\t\t\t((Composite) getControl()).layout();\n \t\t\t\t// pack to make wizard smaller if possible\n \t\t\t\tgetWizard().getShell().pack();\n \t\t\t}",
"void setMonitors(int monitors);",
"void enableAgentSelectionControl();",
"public static void mouseUp(int mx, int my, int button) {\n/* */ try {\n/* 123 */ if (!NEIConfig.isEnabled() || NEIConfig.isHidden()) {\n/* */ return;\n/* */ }\n/* */ \n/* 127 */ for (Widget widget : controlWidgets)\n/* */ {\n/* 129 */ widget.mouseUp(mx, my, button);\n/* */ }\n/* */ }\n/* 132 */ catch (Exception exception) {\n/* */ \n/* 134 */ NEIUtils.reportException(exception);\n/* 135 */ NEIConfig.setEnabled(false);\n/* */ } \n/* */ }",
"public void updateComputerBoard()\r\n {\r\n boardpanel.removeAll();\r\n for (int i = 0; i < 3; i++) {\r\n for (int j = 0; j < 3; j++) {\r\n buttons[i][j].setEnabled(false);\r\n boardpanel.add(buttons[i][j]);\r\n }\r\n }\r\n }",
"private void createBottomActionButtons() {\n Composite actionControlComp = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(2, false);\n GridData gd = new GridData(SWT.FILL, SWT.DEFAULT, true, false);\n actionControlComp.setLayout(gl);\n actionControlComp.setLayoutData(gd);\n\n Button okBtn = new Button(actionControlComp, SWT.PUSH);\n okBtn.setText(\" OK \");\n okBtn.addSelectionListener(new SelectionAdapter() {\n\n @Override\n public void widgetSelected(SelectionEvent e) {\n if (verifySelection()) {\n close();\n }\n }\n });\n\n Button cancelBtn = new Button(actionControlComp, SWT.PUSH);\n cancelBtn.setText(\" Cancel \");\n cancelBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent e) {\n close();\n }\n });\n }",
"private void selectAvailableDevices() {\n\n ArrayList deviceStrs = new ArrayList();\n final ArrayList<String> devices = new ArrayList();\n\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n // checking and enabling bluetooth\n if (!btAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n btAdapter = BluetoothAdapter.getDefaultAdapter();\n Set<BluetoothDevice> pairedDevices = btAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n deviceStrs.add(device.getName() + \"\\n\" + device.getAddress());\n devices.add(device.getAddress());\n }\n }\n\n // show a list of paired devices to connect with\n final AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.select_dialog_singlechoice,\n deviceStrs.toArray(new String[deviceStrs.size()]));\n alertDialog.setSingleChoiceItems(adapter, -1, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n int position = ((AlertDialog) dialog).getListView().getCheckedItemPosition();\n String deviceAddress = devices.get(position);\n setDeviceAddress(deviceAddress);\n chosen = true;\n //notify user for ongoing connection\n launchRingDialog();\n\n }\n });\n\n alertDialog.setTitle(R.string.blueChose);\n alertDialog.show();\n }\n }",
"public void createSwitchButtonPopupMenu() {\n\n\t\tremoveAll();\n\t\tadd(midiLearnMenuItem);\n\t\tadd(midiUnlearnMenuItem);\n\t}",
"private void initSettingsPanel() {\n JLabel lblName = new JLabel(\"Name:\");\n lblName.setForeground(StyleCompat.textColor());\n\n JTextField fieldName = new JTextField(20);\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblName, fieldName));\n\n JLabel lblVirtOutput = new JLabel(\"VirtualOutput:\");\n lblVirtOutput.setForeground(StyleCompat.textColor());\n\n JComboBox<String> comboVirtOutputs = new JComboBox<>();\n for(Device device : instance.getInterface().getDeviceManager().getDevices()) {\n if(device instanceof VirtualOutput) {\n if(handler != null && instance.getHandlerByVirtualOutput(device.getId()) == handler) {\n comboVirtOutputs.addItem(device.getId());\n comboVirtOutputs.setSelectedIndex(comboVirtOutputs.getItemCount() - 1);\n } else if(!instance.isVirtualOutputUsed(device.getId())) {\n comboVirtOutputs.addItem(device.getId());\n }\n }\n }\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblVirtOutput, comboVirtOutputs));\n\n JLabel lblDeviceId = new JLabel(\"OpenRGB Device ID (index):\");\n lblDeviceId.setForeground(StyleCompat.textColor());\n\n JFormattedTextField fieldDeviceId = new JFormattedTextField(UserInterfaceUtil.getIntFieldFormatter());\n fieldDeviceId.setColumns(5);\n JButton btnAddDeviceId = new JButton(\"Add device\");\n UiUtilsCompat.configureButton(btnAddDeviceId);\n btnAddDeviceId.addActionListener(e -> {\n if(fieldDeviceId.getValue() == null) return;\n int value = (int) fieldDeviceId.getValue();\n if(value < 0 || listDevices.contains(value)) {\n instance.getInterface().getNotificationManager().addNotification(\n new Notification(NotificationType.ERROR, \"OpenRGB Plugin\", \"Invalid ID or list contains already ID.\"));\n return;\n }\n listDevices.add(value);\n fieldDeviceId.setText(\"\");\n updateDeviceListPanel();\n });\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblDeviceId, fieldDeviceId, btnAddDeviceId));\n\n if(instance.getOpenRGB().isConnected()) {\n // show info label, remove all and add all button\n int deviceCount = instance.getOpenRGB().getControllerCount();\n\n JLabel lblCountInfo = new JLabel(\"There are \" + deviceCount + \" devices available.\");\n lblCountInfo.setForeground(StyleCompat.textColor());\n\n JButton btnAddAll = new JButton(\"Add all\");\n UiUtilsCompat.configureButton(btnAddAll);\n btnAddAll.addActionListener(e -> {\n for(int i = 0; i < deviceCount; i++) {\n if(!listDevices.contains(i))\n listDevices.add(i);\n }\n updateDeviceListPanel();\n });\n\n JButton btnRemoveAll = new JButton(\"Remove all\");\n UiUtilsCompat.configureButton(btnRemoveAll);\n btnRemoveAll.addActionListener(e -> {\n listDevices.clear();\n updateDeviceListPanel();\n });\n\n // add components to panel\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblCountInfo, btnAddAll, btnRemoveAll));\n } else {\n // show hint message\n JLabel lblHint = new JLabel(\"(i) Go back and connect the client to receive live data from the SDK server.\");\n lblHint.setForeground(StyleCompat.textColorDarker());\n panelSettings.add(UserInterfaceUtil.createSettingBgr(lblHint));\n }\n\n panelDeviceList = new JPanel();\n panelDeviceList.setBackground(StyleCompat.panelDarkBackground());\n panelDeviceList.setLayout(new BoxLayout(panelDeviceList, BoxLayout.Y_AXIS));\n panelDeviceList.setAlignmentX(Component.LEFT_ALIGNMENT);\n panelSettings.add(Box.createVerticalStrut(10));\n panelSettings.add(panelDeviceList);\n updateDeviceListPanel();\n\n if(handler != null) {\n // set stored values\n fieldName.setText(handler.getName());\n }\n\n JButton btnAdd = new JButton(handler == null ? \"Add OpenRGB Device\" : \"Save OpenRGB Device\");\n UiUtilsCompat.configureButton(btnAdd);\n btnAdd.setAlignmentX(Component.LEFT_ALIGNMENT);\n btnAdd.setMaximumSize(new Dimension(Integer.MAX_VALUE, 50));\n btnAdd.setMinimumSize(new Dimension(100, 50));\n\n btnAdd.addActionListener(e -> {\n // create value holder\n ValueHolder holder = new ValueHolder(\n fieldName.getText(),\n (String) comboVirtOutputs.getSelectedItem(),\n listDevices);\n\n if(validateInput(holder.getName(), holder.getOutputId())) {\n // get output\n VirtualOutput output = OpenRgbPlugin.getVirtualOutput(instance.getInterface().getDeviceManager(), holder.getOutputId());\n if (output == null) {\n instance.getInterface().getNotificationManager().addNotification(\n new Notification(NotificationType.ERROR, \"OpenRGB Plugin\", \"Could not find virtual output for id \" + holder.getOutputId()));\n return;\n }\n\n if(handler != null) { // set values to output handler\n handler.setName(holder.getName());\n handler.setDevices(listDevices);\n handler.setVirtualOutput(output);\n } else { // create new output handler\n // create new handler\n OutputHandler handler = instance.createHandler(holder, output);\n // add handler to set\n instance.addHandler(handler);\n }\n\n // go back\n context.navigateDown();\n }\n });\n\n panelSettings.add(Box.createVerticalGlue());\n panelSettings.add(btnAdd);\n }",
"protected void handleRemoteServiceSelected(IRemoteConnection conn) {\n \t\tfinal boolean enabled = fWidgetListener.isEnabled();\n \t\tfWidgetListener.disable();\n \n \t\tif (fRemoteCombo != null) {\n \t\t\t/*\n \t\t\t * If a connection was supplied, set its remote service provider in the combo\n \t\t\t */\n \t\t\tif (conn != null) {\n \t\t\t\tIRemoteServices services = conn.getRemoteServices();\n \t\t\t\tif (fRemoteServices != null) {\n \t\t\t\t\tfor (int index = 0; index < fRemoteServices.length; index++) {\n \t\t\t\t\t\tif (fRemoteServices[index].getId().equals(services.getId())) {\n \t\t\t\t\t\t\tfRemoteCombo.select(index + 1);\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \n \t\t\t/*\n \t\t\t * Get the currently selected service. If the service is the same, do nothing.\n \t\t\t */\n \t\t\tint selectionIndex = fRemoteCombo.getSelectionIndex();\n \t\t\tIRemoteServices selectedServices = null;\n \t\t\tif (fRemoteServices != null && fRemoteServices.length > 0 && selectionIndex > 0) {\n \t\t\t\tselectedServices = fRemoteServices[selectionIndex - 1];\n \t\t\t}\n \t\t\tif (selectedServices != null && fSelectedServices != null && selectedServices.getId().equals(fSelectedServices.getId())) {\n \t\t\t\tfWidgetListener.setEnabled(enabled);\n \t\t\t\treturn;\n \t\t\t}\n \t\t\tfSelectedServices = selectedServices;\n \t\t}\n \n \t\tfConnectionCombo.removeAll();\n \n \t\tif (fSelectedServices == null) {\n \t\t\tfConnectionCombo.setEnabled(false);\n \t\t\tfNewConnectionButton.setEnabled(false);\n \t\t} else {\n \t\t\tfConnectionCombo.setEnabled(true);\n \t\t\t/*\n \t\t\t * Populate the connection combo and select the connection\n \t\t\t */\n \t\t\tIRemoteConnectionManager connectionManager = fSelectedServices.getConnectionManager();\n \t\t\tIRemoteConnection[] connections = connectionManager.getConnections();\n \t\t\tArrays.sort(connections, new Comparator<IRemoteConnection>() {\n \t\t\t\tpublic int compare(IRemoteConnection c1, IRemoteConnection c2) {\n \t\t\t\t\treturn c1.getName().compareToIgnoreCase(c2.getName());\n \t\t\t\t}\n \t\t\t});\n \t\t\tint offset = 0;\n \t\t\tint selected = 0;\n \t\t\tif (connections.length > 1) {\n \t\t\t\tfConnectionCombo.add(Messages.RemoteConnectionWidget_selectConnection);\n \t\t\t\toffset = 1;\n \t\t\t}\n \t\t\tfor (int i = 0; i < connections.length; i++) {\n \t\t\t\tfConnectionCombo.add(connections[i].getName());\n \t\t\t\tif (conn != null && connections[i].getName().equals(conn.getName())) {\n \t\t\t\t\tselected = i + offset;\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tif (connections.length > 0) {\n \t\t\t\tfConnectionCombo.select(selected);\n\t\t\t\thandleConnectionSelected();\n \t\t\t}\n \n \t\t\t/*\n \t\t\t * Enable 'new' button if new connections are supported\n \t\t\t */\n \t\t\tfNewConnectionButton.setEnabled(fSelectedServices.canCreateConnections());\n \t\t}\n \n \t\tfWidgetListener.setEnabled(enabled);\n \t}",
"@Override\r\n\tpublic void drawUpdateableElements(Graphics g, ImageObserver observer) {\n\t\tfor (int i = 0; i < buttons.length; i++) {\r\n\t\t\tbuttons[i].drawUpdateableElements(g, observer);\r\n\t\t}\r\n\t\t\r\n\t\t// draw selected screen updateable\r\n\t\tthis.screens[this.selectedIndex].drawUpdateableElements(g, observer);\r\n\t}",
"private void addSelection(UnitEntry unit)\n\t{\n\t\tselectedUnits.add(unit);\n\t\tcancelButtons.add(new RectangleButton(new Point(), thumbnailSize, unit\n\t\t\t\t.getPortrait()));\n\t\tsetSelectionLocations();\n\t}",
"private void addComponentsToOptionsPanel(){\r\n\t\tBox box = Box.createVerticalBox();\r\n\t\tbox.add(new JLabel(\"Active Feature Type\",SwingConstants.LEFT));\r\n\t\tJPanel featuresPanel = new JPanel(new GridLayout(2, 2));\r\n\t\tfeaturesPanel.setBorder(BorderFactory.createLineBorder (Color.black, 1));\r\n\t\tfeaturesPanel.add(asCB);\r\n\t\tfeaturesPanel.add(new JLabel(\"\"));\r\n\t\tfeaturesPanel.add(bldngCB);\r\n\t\tfeaturesPanel.add(stuCB);\r\n\t\tbox.add(featuresPanel);\r\n\r\n\t\t//creating empty space\r\n\t\tbox.add(new JPanel());\r\n\t\t\r\n\t\tJLabel queryLabel = new JLabel(\"Query\",SwingConstants.LEFT);\r\n\t\tbox.add(queryLabel);\r\n\t\tJPanel queriesRB = new JPanel();\r\n\t\tqueriesRB.setLayout(new BoxLayout(queriesRB, BoxLayout.Y_AXIS));\r\n\t\tbuttonGroup = new ButtonGroup();\r\n\t\twholeRegion = new JRadioButton(\"Whole Region\");\r\n\t\twholeRegion.addItemListener(new ItemListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent arg0) {\r\n\t\t\t\tgetQuery().setSubmitFlag(false);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tpointQuery = new JRadioButton(\"Point Query\");\r\n\t\tpointQuery.addItemListener(new ItemListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent ie) {\r\n\t\t\t\tgetQuery().setSubmitFlag(false);\r\n\t\t\t\tif(ie.getStateChange() == ItemEvent.SELECTED){\r\n\t\t\t\t\tpointQuery.setSelected(true);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(\"Point Query\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tpointQuery.setSelected(false);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(null);\r\n\t\t\t\t\tsetPqX(-300);\r\n\t\t\t\t\tsetPqY(-300);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\timagePanel.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\t\trangeQuery = new JRadioButton(\"Range Query\");\r\n\t\trangeQuery.addItemListener(new ItemListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent ie) {\r\n\t\t\t\tgetQuery().setSubmitFlag(false);\r\n\t\t\t\tif(ie.getStateChange() == ItemEvent.SELECTED){\r\n\t\t\t\t\trangeQuery.setSelected(true);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(\"Range Query\");\r\n\t\t\t\t\tsetDrawPoly(true);\r\n\t\t\t\t}else{\r\n\t\t\t\t\trangeQuery.setSelected(false);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(null);\r\n\t\t\t\t\tgetPath().clear();\r\n\t\t\t\t}\r\n\t\t\t\timagePanel.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\t\tsurrStudent = new JRadioButton(\"Surrounding Student\");\r\n\t\tsurrStudent.addItemListener(new ItemListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent ie) {\r\n\t\t\t\tgetQuery().setSubmitFlag(false);\r\n\t\t\t\tif(ie.getStateChange() == ItemEvent.SELECTED){\r\n\t\t\t\t\tsurrStudent.setSelected(true);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(\"Surrounding Student\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tsurrStudent.setSelected(false);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(null);\r\n\t\t\t\t}\r\n\t\t\t\timagePanel.repaint();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\temerQuery = new JRadioButton(\"Emergency Query\");\r\n\t\temerQuery.addItemListener(new ItemListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent ie) {\r\n\t\t\t\tgetQuery().setSubmitFlag(false);\r\n\t\t\t\tif(ie.getStateChange() == ItemEvent.SELECTED){\r\n\t\t\t\t\temerQuery.setSelected(true);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(\"Emergency Query\");\r\n\t\t\t\t}else{\r\n\t\t\t\t\temerQuery.setSelected(false);\r\n\t\t\t\t\tgetQuery().setSelectedQuery(null);\r\n\t\t\t\t}\r\n\t\t\t\timagePanel.repaint();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tbuttonGroup.add(wholeRegion);\r\n\t\tbuttonGroup.add(pointQuery);\r\n\t\tbuttonGroup.add(rangeQuery);\r\n\t\tbuttonGroup.add(surrStudent);\r\n\t\tbuttonGroup.add(emerQuery);\r\n\t\tqueriesRB.add(wholeRegion);\r\n\t\tqueriesRB.add(pointQuery);\r\n\t\tqueriesRB.add(rangeQuery);\r\n\t\tqueriesRB.add(surrStudent);\r\n\t\tqueriesRB.add(emerQuery);\r\n\t\tqueriesRB.setBorder(BorderFactory.createLineBorder (Color.black, 1));\r\n\t\tbox.add(queriesRB);\r\n\t\t//creating empty space\r\n\t\tbox.add(new JPanel());\r\n\t\tJPanel buttonPanel = new JPanel();\r\n\t\tbuttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));\r\n\t\tsubmitButton = new JButton(\"Submit Query\");\r\n\t\tsubmitButton.addActionListener(new ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent ae) {\r\n\t\t\t\tQuery query = new Query();\r\n\t\t\t\tquery.setAsFlag(asCB.isSelected());\r\n\t\t\t\tquery.setBuildingFlag(bldngCB.isSelected());\r\n\t\t\t\tquery.setStudentFlag(stuCB.isSelected());\r\n\t\t\t\tquery.setSubmitFlag(true);\r\n\t\t\t\tfor(Enumeration<AbstractButton> radButtons = buttonGroup.getElements(); radButtons.hasMoreElements();){\r\n\t\t\t\t\tAbstractButton ab = radButtons.nextElement();\r\n\t\t\t\t\tif(ab.isSelected()){\r\n\t\t\t\t\t\tquery.setSelectedQuery(ab.getText());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsetQuery(query);\r\n\t\t\t\timagePanel.repaint();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbuttonPanel.add(submitButton);\r\n\t\tbuttonPanel.setBorder(BorderFactory.createLineBorder (Color.black, 1));\r\n\t\tbox.add(buttonPanel);\r\n\t\toptionsPanel.add(box);\r\n\t}",
"private void refreshButtons() {\n flowPane.getChildren().clear();\n\n for(String testName : Files.listTests()) {\n TestJson info;\n try {\n info = TestParser.read(testName);\n } catch(FileNotFoundException e) {\n continue; /* Skip */\n }\n\n JFXButton button = new JFXButton(testName);\n button.pseudoClassStateChanged(PseudoClass.getPseudoClass(\"select-button\"), true);\n\n button.setOnAction(e -> buttonPressed(info));\n\n if(!filter(info, button))\n continue;\n\n // If this model asked to be put in a specific place, put it there\n if(!info.custom && info.order >= 0)\n flowPane.getChildren().add(Math.min(info.order, flowPane.getChildren().size()), button);\n else\n flowPane.getChildren().add(button);\n }\n }",
"public void setButtonsConfig(boolean connected){\n btn_help.setEnabled(connected);\n btn_retry.setEnabled(!connected);\n }",
"@Override\n\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\n\t}",
"static interface ElementSelectionListener {\n \n public void selectionChanged(MultiViewDescription oldOne, MultiViewDescription newOne);\n \n public void selectionActivatedByButton(MouseEvent e);\n \n public void selectionActivatedByButton(ActionEvent e);\n \n }",
"void openDialog()\n {\n if(main.copyCmd.listEvCopy.size() >0){\n widgCopy.setBackColor(GralColor.getColor(\"rd\"), 0);\n } else {\n widgCopy.setBackColor(GralColor.getColor(\"wh\"), 0);\n }\n \n windStatus.setFocus(); //setWindowVisible(true);\n\n }",
"private static void setButtonsColor(){\r\n for(MyButton b: mylist.getAllButtons()){\r\n if(!b.isChosen()){\r\n b.resetColor();\r\n }\r\n }\r\n \r\n for (MyButton b1: mylist.getAllButtons()){\r\n if(b1.isChosen()){\r\n for(MyButton b2 : mylist.getAllButtons()){\r\n if(!b1.equals(b2)){ \r\n if (b2.block.isSameType(b1.block)){ \r\n b2.setCannotBeChosen();\r\n }\r\n else if (!b2.isChosen() && b2.block.isAtSameTime(b1.block)){\r\n b2.setCannotBeChosen();\r\n }\r\n }\r\n }\r\n }\r\n } \r\n }",
"private void updateChannelSelection() {\n channelSelect.removeAllItems(); //reset JComboBox\n \n for (Channel c : channelList) {\n channelSelect.addItem(c.toString());\n }\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tif (jcb.isSelected()) {\n\t\t\t\t\t\tselectList.add(new Integer(site));\n\t\t\t\t\t\t//System.out.println(selectList);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tselectList.remove(new Integer(site));\n\t\t\t\t\t\t//System.out.println(selectList);\n\t\t\t\t\t}\n\t\t\t\t}",
"private void initiateChoiceButtons() {\n\t\trock = new JButton(\"Rock\");\n\t\trock.setPreferredSize(selectionButtonSize);\n\t\tpaper = new JButton(\"Paper\");\n\t\tpaper.setPreferredSize(selectionButtonSize);\n\t\tscissors = new JButton(\"Scissors\");\n\t\tscissors.setPreferredSize(selectionButtonSize);\n\n\t\taddButtonListener();\n\t}",
"private void switchMonitor(CompoundButton monitor, boolean isChecked) {\n EditText text = (EditText) findViewById(R.id.statusBox);\n\n if (isChecked && !serviceStarted) {\n text.setText(\"\");\n writeDeviceInfo();\n updateShareIntent();\n startLoggerService();\n } else if (!isChecked && serviceStarted) {\n stopLoggerService();\n updateShareIntent();\n }\n }",
"@Override\r\n\tpublic void drawBackground(Graphics g, ImageObserver observer) {\n\t\tfor (int i = 0; i < buttons.length; i++) {\r\n\t\t\tbuttons[i].drawBackground(g, observer);\r\n\t\t}\r\n\t\t\r\n\t\t// draw selected screen background\r\n\t\tthis.screens[this.selectedIndex].drawBackground(g, observer);\r\n\t}",
"@Override\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tfor (final String value : valueToButton.keySet()) {\n\t\t\t\t\tvalueToButton.get(value).setSelection(false);\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < PREF_IDS.length; i++) {\n\t\t\t\t\tfinal String prefValue = latencyPrefs.getString(PREF_IDS[i]);\n\t\t\t\t\tvalueToButton.get(prefValue).setSelection(true);\n\t\t\t\t\tlocalValues.put(LAST_USED_PREF_IDS[i], prefValue);\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"RobotSelector(JLabel robotInUse, ArrayList<Robot> robots, VisionDisplay vision){\n\t\tsuper();\n\t\tthis.robotInUse = robotInUse;\n\t\tthis.robots = robots;\n\t\tthis.vi = vision;\n\t\tsetBackground(Color.gray);\n\t\t// Toolkit tk = Toolkit.getDefaultToolkit();\n\t\tWidth = 130; // 120//110 (int)(tk.getScreenSize().getWidth() * 0.05);\n\t\tHeight = 800; //(int)(tk.getScreenSize().getHeight() * 1);\n\t\t//Width -= 10;\n\t Dimension d = new Dimension(Width, Height);\n\t setPreferredSize(d);\t\t\n\t setLayout(new BorderLayout());\n\t setBorder(BorderFactory.createRaisedBevelBorder());\n\t \n\t System.out.println(this.getPreferredSize());\n\t \n\t robotButtons = new JButton[robots.size()];\n\t robotIcons = new ImageIcon[robots.size()];\n\t grabButtons = new JButton[robots.size()];\n\t ungrabButtons = new JButton[robots.size()];\n\t\timageButtons = new JButton[robots.size()];\n\t\tvideoButtons = new JButton[robots.size()];\n\t int i=0;\n\t buttons = new JPanel();\n\t for (final Robot x : robots) {\n \t\t//final Robot x = (Robot)e.nextElement();\n \t\tString name = x.getName();\n \t\tSystem.out.println(name);\n \t\trobotIcons[i] = GuiUtils.resizeJP(x.getRobotIcon().getImage(), Width, Width);\n \t\tfinal JLabel jl = robotInUse;\n \t\tif(name==null){\n \t\t\tname = \"No Name\";\n \t\t}\n \t\trobotButtons[i] = new JButton(name, robotIcons[i]);\n \t\trobotButtons[i].setVerticalTextPosition(AbstractButton.TOP);\n \t\trobotButtons[i].setHorizontalTextPosition(AbstractButton.CENTER);\n \t\tif(!Gui.useCentralServer){\n\t \t\trobotButtons[i].addActionListener(new ActionListener() {\n\t\t\t\t\t//private boolean threadVision;\n\t\t\t\t\t//private boolean threadVisionAibo;\n\t\t\t\t\t\n\t\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t// TODO Think about how to use the key in robots hashtable\n\t \t \tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n\t \t \tRobot.setRobotInUse(x.getRobotKey());\n\t \t \tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n\t \t \tjl.setText(x.getName());\n\t \t \t\n\t \t \tvi.showVideo(x);\n\t \t \t\n\t \t \t\n\t\t\t\t\t}\n\n\t\t\t\t\t\n\t \t });\n\t \t\tbuttons.add(robotButtons[i]);\n \t\t}\n\n \t\telse {\n \t\tgrabButtons[i] = new JButton(\"Lock\");\n \t\tgrabButtons[i].setFont(new Font(\"SansSerif\", Font.PLAIN, 9));\n \t\tgrabButtons[i].setPreferredSize(new Dimension(Width/3 + 15, 25)); // 3 15\n \t\tgrabButtons[i].setVerticalTextPosition(AbstractButton.TOP);\n \t\tgrabButtons[i].setHorizontalTextPosition(AbstractButton.CENTER);\n \t\tgrabButtons[i].addActionListener(new ActionListener() {\n \t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\tGui.serverComm.writeStream(\"LOCK \" + x.getUniqueId());\n \t\t\t\tRobot.setRobotInUse(x.getRobotKey());\n \t\t\t\tRobot.setRobotInUseVideo(x.getRobotKey());\n \t\t\t\tvi.showVideo(x);\n \t\t\t\tjl.setText(x.getName());\n// \t\t\t\tif(Gui.serverComm.sendReqGrab()){\n// \t\t\t\t\tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n//\t \t \tRobot.setRobotInUse(x.getRobotKey());\n//\t \t \tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n//\t \t \tjl.setText(x.getName());\n//\t \t \tgrabButtons[x.getRobotKey()].setBackground(Color.green);\n//\t \t \tungrabButtons[x.getRobotKey()].setBackground(Color.red);\n// \t\t\t\t}\n// \t\t\t\telse{\n// \t\t\t\t\tjl.setText(\"Robot is Locked\");\n// \t\t\t\t}\n \t\t\t}\n \t\t});\n \t\t\n \t\tungrabButtons[i] = new JButton(\"Unlock\");\n \t\tungrabButtons[i].setFont(new Font(\"SansSerif\", Font.PLAIN, 9));\n \t\tungrabButtons[i].setPreferredSize(new Dimension(Width/3 + 15, 25)); // 3 15\n \t\tungrabButtons[i].setVerticalTextPosition(AbstractButton.TOP);\n \t\tungrabButtons[i].setHorizontalTextPosition(AbstractButton.CENTER);\n \t\tungrabButtons[i].addActionListener(new ActionListener() {\n \t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\tGui.serverComm.writeStream(\"UNLOCK \" + x.getUniqueId());\n \t\t\t\tRobot.setRobotInUse(-1);\n \t\t\t\t//unlockAll();\n \t\t\t\t//Robot.setRobotInUseVideo(-1);\n \t\t\t\tjl.setText(\"NO Robot in use\");\n// \t\t\t\tif(Gui.serverComm.sendReqUnGrab()){\n// \t\t\t\t\tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n//\t \t \tRobot.setRobotInUse(x.getRobotKey());\n//\t \t \tSystem.out.println(x.getName() + \" \" + Robot.getRobotInUse());\n//\t \t \tjl.setText(x.getName());\n// \t\t\t\t}\n// \t\t\t\telse{\n// \t\t\t\t\tjl.setText(\"Robot is Locked\");\n// \t\t\t\t}\n \t\t\t}\n \t\t});\n \t\t\n \t\timageButtons[i] = new JButton(\"Image\");\n \t\timageButtons[i].setFont(new Font(\"SansSerif\", Font.PLAIN, 9)); // 8\n \t\timageButtons[i].setPreferredSize(new Dimension(Width/3 + 15, 25)); // 3 15\n \t\timageButtons[i].setVerticalTextPosition(AbstractButton.TOP);\n \t\timageButtons[i].setHorizontalTextPosition(AbstractButton.CENTER);\n \t\t// TODO: This needs to be implemented\n \t\t\n \t\tvideoButtons[i] = new JButton(\"Video\");\n \t\tvideoButtons[i].setFont(new Font(\"SansSerif\", Font.PLAIN, 9)); // 8\n \t\tvideoButtons[i].setPreferredSize(new Dimension(Width/3 + 15, 25)); // 3 15\n \t\tvideoButtons[i].setVerticalTextPosition(AbstractButton.TOP);\n \t\tvideoButtons[i].setHorizontalTextPosition(AbstractButton.CENTER);\n \t\tvideoButtons[i].addActionListener(new ActionListener() {\n \t\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t\t\tif(x.getHasCamera()){\n \t\t\t\t\t// These two lines are so we can see the video even if it is on loider. \n \t\t\t\t\tunlockAll();\n \t\t\t\t\tRobot.setRobotInUseVideo(x.getRobotKey());\n \t\t\t\tjl.setText(\"Video:\" + x.getName());\n \t\t\t\t\tvi.showVideo(x);\n \t\t\t\t}\n \t\t\t\telse{\n \t\t\t\t\t// Now this is done after the Robot is registered. \n \t\t\t\t\t// I have this here just in case we don't have this info for some reason.\n \t\t\t\t\tGui.serverComm.writeStream(\"ASKPLAYER \" + x.getUniqueId());\n \t\t\t\t\t// TODO: What does the GUI should do until we get the IP and port from the server? Pablo\n \t\t\t\t}\n \t\t\t}\n\n\t\t\t\t\n \t\t});\n \t\t\n \t\t// Wire the button with action listener that contains Robot key\n \t\t\n \t\tbuttons.add(robotButtons[i]);\n \t\tbuttons.add(grabButtons[i]);\n \t\tbuttons.add(ungrabButtons[i]);\n \t\tbuttons.add(imageButtons[i]);\n \t\tbuttons.add(videoButtons[i]);\n \t\t}\n \t\t\n \t\ti++;\n \t\t\n \t\t\n }\n\t add(buttons);\n\t validate();\n\t \n\t}",
"void evt_MarkSelectedObjects()\r\n {\r\n short num;\r\n CObject pHO;\r\n int oil;\r\n CObjInfo oilPtr;\r\n\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n oilPtr = rhPtr.rhOiList[oil];\r\n if (oilPtr.oilEventCount == rh2EventCount)\r\n {\r\n if (oilPtr.oilEventCountOR != rh4EventCountOR)\r\n {\r\n oilPtr.oilEventCountOR = rh4EventCountOR;\r\n num = oilPtr.oilObject;\r\n while (num >= 0)\r\n {\r\n pHO = rhPtr.rhObjectList[num];\r\n pHO.hoSelectedInOR = 0;\r\n num = pHO.hoNumNext;\r\n }\r\n }\r\n num = oilPtr.oilListSelected;\r\n while (num >= 0)\r\n {\r\n pHO = rhPtr.rhObjectList[num];\r\n pHO.hoSelectedInOR = 1;\r\n num = pHO.hoNextSelected;\r\n }\r\n }\r\n }\r\n }",
"public void addBenchmarkButtonSelected(String btnText) {\n if (!benchmarkButtonsSelected.contains(btnText)) {\n benchmarkButtonsSelected.add(btnText);\n } else {\n benchmarkButtonsSelected.remove(btnText);\n }\n }",
"private void selectMenu()\n\t{\n\t\t//clear the panel first\n\t\tclearPanel(getPanel1());\n\t\t\n\t\tJLabel label1=new JLabel(\"Select two rows to inspect data:\");\n\t\t\n\t\t//set up panel\n\t\tgetPanel1().setLayout(null);\n\t\tadd(getPanel1(),BorderLayout.CENTER);\n\t\t\n\t\t//add buttons to panel\n\t\tgetPanel1().add(getButton1());\n\t\tgetPanel1().add(getTopics1());\n\t\tgetPanel1().add(getTopics2());\n\t\tgetPanel1().add(label1);\n\t\t\n\t\t\n\t\t//manually set their position\n\t\tlabel1.setBounds(380,10,400,40);\n\t\tgetButton1().setBounds(430,350,230,60);\n\t\tgetTopics1().setBounds(430,80,230,60);\n\t\tgetTopics2().setBounds(430,215,230,60);\n\n\t\tlabel1.setFont(new Font(\"Serif\", Font.CENTER_BASELINE, 24));\t\n\t}",
"void jEnableMenu_actionPerformed(ActionEvent e) {\n //need to check if this is already enabled\n \n DefaultMutableTreeNode node = (DefaultMutableTreeNode) jComponentTree.getLastSelectedPathComponent();\n if (node.getParent() != rootNode) { //when it's an instance\n PluginDescriptor value = (PluginDescriptor) ((EGTreeNode) node).getComponent();\n if (value.getID().equalsIgnoreCase(jLabel1.getText())) {\n if (value.isVisualPlugin()) { //add visual plugin to the selected area\n String visualArea = (String) jVisualAreaComboBox.getSelectedItem();\n if ((visualArea != null) && (!visualArea.equalsIgnoreCase(\"\")))\n GeawConfigObject.getGuiWindow().addToContainer(visualArea, ((VisualPlugin) value.getPlugin()).getComponent(), value.getLabel());\n PluginRegistry.addVisualAreaInfo(visualArea, (VisualPlugin) value.getPlugin());\n }\n //get interfaces\n ListModel ls = jBroadcastListenerList.getModel();\n for (int c = 0; c < ls.getSize(); c++) {\n ComponentInterface ci = (ComponentInterface) ls.getElementAt(c);\n if (ci.isActive()) {\n try {\n BroadcastEventRegistry.addEventListener(ci.getInterfaceClass(), ((AppEventListener) value.getPlugin()));\n } catch (AppEventListenerException ex) {\n ex.printStackTrace();\n \n } catch (ListenerEventMismatchException ex) {\n ex.printStackTrace();\n }\n }\n }\n /**\n * @todo add coupled ls, broadcastls etc\n */\n } else {\n JOptionPane.showMessageDialog(null, \"Parameters not set for the component.\");\n }\n }\n }",
"@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tif (e.getButton() == MouseEvent.BUTTON1 && e.getClickCount() == 2) {\n\n\t\t\tif (MainFrame.getInstance().getWorkspaceTree()\n\t\t\t\t\t.getLastSelectedPathComponent() instanceof Diagram) {\n\t\t\t\tDiagram diag1 = (Diagram) MainFrame.getInstance()\n\t\t\t\t\t\t.getWorkspaceTree().getLastSelectedPathComponent();\n\t\t\t\tfor (int i = 0; i < MainFrame.getInstance().getDesktop()\n\t\t\t\t\t\t.getAllFrames().length; i++) {\n\n\t\t\t\t\tif (MainFrame\n\t\t\t\t\t\t\t.getInstance()\n\t\t\t\t\t\t\t.getWorkspaceTree()\n\t\t\t\t\t\t\t.getLastSelectedPathComponent()\n\t\t\t\t\t\t\t.toString()\n\t\t\t\t\t\t\t.equals(MainFrame.getInstance().getDesktop()\n\t\t\t\t\t\t\t\t\t.getAllFrames()[i].getName())) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tdiagView = new DiagramView();\n\t\t\t\tdiagView.setTitle(diag1.getName());\n\t\t\t\tdiagView.setName(diag1.getName());\n\t\t\t\tdiagView.setDiagram(diag1);\n\t\t\t\tMainFrame.getInstance().getDesktop().add(diagView);\n\n\t\t\t\ttry {\n\t\t\t\t\tdiagView.setSelected(true);\n\t\t\t\t} catch (PropertyVetoException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t// System.out.println(sel);\n\t\t\t}\n\n\t\t}\n\n\t}",
"public void setGui()\n\t{\n\t\tdisplay = new Display();\n\t\tshell = new Shell(display, SWT.CLOSE | SWT.TITLE | SWT.MIN);\n\t\tshell.setText(\"Sensor Configurator\");\n\t\t// create a new GridLayout with 3 columns of same size\n\t\tGridLayout layout = new GridLayout(3, false);\n\t\tshell.setLayout(layout);\n\n\t\tsetTrayIcon();\n\n\t\tGroup groupLeft = new Group(shell, SWT.SHADOW_OUT);\n\t\tgroupLeft.setLayout(new GridLayout());\n\t\tgroupLeft.setText(\"Customer Group\");\n\n\t\tlistLabel = new Label(groupLeft, SWT.NONE);\n\t\tlistLabel.setText(\"List of Customers\");\n\t\tlistLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false, 1, 1));\n\n\t\tcustomerList = new List(groupLeft, SWT.BORDER | SWT.V_SCROLL);\n\t\tGridData gridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 220;\n\t\tgridData.widthHint = 150;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = false;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tcustomerList.setLayoutData(gridData);\n\t\tcustomerList.select(0);\n\t\t// customerList.showSelection();\n\n\t\t// Combo selection\n\t\tpriorityCombo = new Combo(groupLeft, SWT.READ_ONLY);\n\t\tpriorityCombo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true, 1, 1));\n\t\tpriorityCombo.setItems(new String[] {\"Filter by Priority\", \"HIGH\", \"MEDIUM\", \"LOW\"});\n\t\tpriorityCombo.select(0);\n\n\t\t// updateButton\n\t\tupdateButton = new Button(groupLeft, SWT.PUSH);\n\t\tupdateButton.setText(\"Update List\");\n\t\tgridData = new GridData();\n\t\tgridData.verticalAlignment = GridData.CENTER;\n\t\tgridData.horizontalAlignment = GridData.CENTER;\n\t\tgridData.widthHint = 100;\n\t\tgridData.heightHint = 30;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tupdateButton.setLayoutData(gridData);\n\n\t\t// center group\n\t\tGroup groupCenter = new Group(shell, SWT.SHADOW_OUT);\n\t\tGridLayout groupLayout = new GridLayout(2, false);\n\t\tgroupCenter.setLayout(groupLayout);\n\t\tgroupCenter.setText(\"Measurement group\");\n\n\t\tcustomerLabel = new Label(groupCenter, SWT.NONE);\n\t\tcustomerLabel.setText(\"Customer Info\");\n\t\tcustomerLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false, 1, 1));\n\n\t\t// Measurement Label\n\t\tmeasLabel = new Label(groupCenter, SWT.NONE);\n\t\tmeasLabel.setText(\"Measurement Info\");\n\t\tmeasLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, true, false, 1, 1));\n\n\t\t// customerText\n\t\tcustomerText = new StyledText(groupCenter, SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 145;\n\t\tgridData.widthHint = 110;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = false;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tcustomerText.setLayoutData(gridData);\n\n\t\t// Measurement Text\n\t\tmeasureText = new StyledText(groupCenter, SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 145;\n\t\tgridData.widthHint = 160;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tmeasureText.setLayoutData(gridData);\n\n\t\t// Comment Label\n\t\tcommentLabel = new Label(groupCenter, SWT.NONE);\n\t\tcommentLabel.setText(\"Comment Here!\");\n\t\tcommentLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\n\t\t// Measurement Task Label\n\t\tmeasTaskLabel = new Label(groupCenter, SWT.NONE);\n\t\tmeasTaskLabel.setText(\"Measurement Tasks!\");\n\t\tmeasTaskLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\n\t\t// Comment Text\n\t\tcommentText = new StyledText(groupCenter, SWT.BORDER | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 80;\n\t\tgridData.widthHint = 110;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tcommentText.setLayoutData(gridData);\n\n\t\t// Measurement Task Text\n\t\tmeasurTaskText = new StyledText(groupCenter, SWT.BORDER | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 80;\n\t\tgridData.widthHint = 160;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tmeasurTaskText.setLayoutData(gridData);\n\n\t\t// Electrode selection\n\t\telectrodeCombo = new Combo(groupCenter, SWT.READ_ONLY);\n\t\telectrodeCombo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true, 2, 1));\n\t\telectrodeCombo.setItems(new String[] {\"Electrode\", \"Simple\", \"Test\", \"New\"});\n\t\telectrodeCombo.select(0);\n\n\t\t// right group\n\t\tGroup groupRight = new Group(shell, SWT.SHADOW_OUT);\n\t\tgroupRight.setLayout(new GridLayout());\n\t\tgroupRight.setText(\"Sensor group\");\n\n\t\tsensorLabel = new Label(groupRight, SWT.NONE);\n\t\tsensorLabel.setText(\"Sensor Info\");\n\t\tsensorLabel.setLayoutData(new GridData(SWT.CENTER, SWT.TOP, false, false, 1, 1));\n\n\t\tsensorText = new StyledText(groupRight, SWT.BORDER | SWT.V_SCROLL | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.FILL;\n\t\tgridData.heightHint = 140;\n\t\tgridData.widthHint = 180;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = false;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tsensorText.setLayoutData(gridData);\n\n\t\t// sensor Task label\n\t\tsensorTaskLabel = new Label(groupRight, SWT.NONE);\n\t\tsensorTaskLabel.setText(\"Sensor Tasks\");\n\t\tsensorTaskLabel.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, false, 1, 1));\n\n\t\tsensorTaskText = new StyledText(groupRight, SWT.BORDER | SWT.READ_ONLY | SWT.MULTI);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.CENTER;\n\t\tgridData.verticalAlignment = GridData.BEGINNING;\n\t\tgridData.heightHint = 80;\n\t\tgridData.widthHint = 180;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tsensorTaskText.setLayoutData(gridData);\n\n\t\t// configButton\n\t\tconfigButton = new Button(groupRight, SWT.PUSH);\n\t\tconfigButton.setText(\"Start Configure\");\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.CENTER;\n\t\tgridData.verticalAlignment = GridData.CENTER;\n\t\tgridData.widthHint = 100;\n\t\tgridData.heightHint = 30;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 1;\n\t\tgridData.verticalSpan = 1;\n\t\tconfigButton.setLayoutData(gridData);\n\n\t\tstatusBar = new Text(shell, SWT.BORDER | SWT.READ_ONLY | SWT.SINGLE);\n\t\tgridData = new GridData();\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tgridData.verticalAlignment = GridData.FILL;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.grabExcessVerticalSpace = true;\n\t\tgridData.horizontalSpan = 4;\n\t\tgridData.verticalSpan = 1;\n\t\tstatusBar.setLayoutData(gridData);\n\n\t}",
"@FXML\n public void secondPersonSelected() {\n connectionType.getSelectionModel().clearSelection();\n createConnectionButton.setDisable(true);\n\n connectionType.setDisable(false);\n }",
"public void selectPanel() {\n\t\tthis.displayNumberBlock.setBackground(dispSelected);\n\t}",
"private void enableButtons() {\n\t\tcapture.setEnabled(true);\r\n\t\tstop.setEnabled(true);\r\n\t\tselect.setEnabled(true);\r\n\t\tfilter.setEnabled(true);\r\n\t}",
"private void connectButtonListener() {\n JButton connectButton = gui.getButton_Connect();\n\n ActionListener actionListener = (ActionEvent actionEvent) -> {\n connectButton.setEnabled(false);\n establishServerConnection();\n };\n\n connectButton.addActionListener(actionListener);\n }",
"public void doSelectedCount(Widget w) {\n if (w.isSelected()) {\n if (w.getType().equals(EnumFactory.RADIOBUTTON) ||\n w.getType().equals(EnumFactory.CHECKBOX)) {\n selectedGroupCnt++;\n }\n selectedCnt++;\n } else {\n if (w.getType().equals(EnumFactory.RADIOBUTTON) ||\n w.getType().equals(EnumFactory.CHECKBOX)) {\n if (selectedGroupCnt > 0) selectedGroupCnt--;\n }\n if (selectedCnt > 0) selectedCnt--;\n }\n if (selectedCnt == 0) {\n MsgEvent ev = new MsgEvent();\n ev.message =\"\";\n ev.parent = getKey();\n ev.code = MsgEvent.OBJECT_UNSELECT_PAGEPANE;\n MsgBoard.getInstance().publish(ev);\n }\n }",
"@Override\n\tprotected void setupGeneralComponents(int guiLeft, int guiTop){\n\t\taileronTrimSelector = new GUIComponentSelector(guiLeft + xOffset, guiTop + GAP_BETWEEN_SELECTORS + 0*(SELECTOR_SIZE + GAP_BETWEEN_SELECTORS), SELECTOR_SIZE*2, SELECTOR_SIZE, InterfaceCore.translate(\"gui.panel.trim_roll\"), vehicle.definition.motorized.panelTextColor, vehicle.definition.motorized.panelLitTextColor, SELECTOR_TEXTURE_SIZE*2, SELECTOR_TEXTURE_SIZE, TRIM_TEXTURE_WIDTH_OFFSET, TRIM_TEXTURE_HEIGHT_OFFSET, getTextureWidth(), getTextureHeight()){\n\t\t\t@Override\n\t\t\tpublic void onClicked(boolean leftSide){\n\t\t\t\tselectedTrimSelector = this;\n\t\t\t\tselectedTrimType = PacketVehicleControlDigital.Controls.TRIM_ROLL;\n\t\t\t\tselectedTrimDirection = !leftSide;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onReleased(){\n\t\t\t\tselectedTrimSelector = null;\n\t\t\t\tselectedTrimType = null;\n\t\t\t}\n\t\t};\n\t\taddSelector(aileronTrimSelector);\n\t\t\n\t\televatorTrimSelector = new GUIComponentSelector(guiLeft + xOffset, guiTop + GAP_BETWEEN_SELECTORS + 1*(SELECTOR_SIZE + GAP_BETWEEN_SELECTORS), SELECTOR_SIZE*2, SELECTOR_SIZE, InterfaceCore.translate(\"gui.panel.trim_pitch\"), vehicle.definition.motorized.panelTextColor, vehicle.definition.motorized.panelLitTextColor, SELECTOR_TEXTURE_SIZE*2, SELECTOR_TEXTURE_SIZE, TRIM_TEXTURE_WIDTH_OFFSET, TRIM_TEXTURE_HEIGHT_OFFSET, getTextureWidth(), getTextureHeight()){\n\t\t\t@Override\n\t\t\tpublic void onClicked(boolean leftSide){\n\t\t\t\tselectedTrimSelector = this;\n\t\t\t\tselectedTrimType = PacketVehicleControlDigital.Controls.TRIM_PITCH;\n\t\t\t\tselectedTrimDirection = leftSide;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onReleased(){\n\t\t\t\tselectedTrimSelector = null;\n\t\t\t\tselectedTrimType = null;\n\t\t\t}\n\t\t};\n\t\taddSelector(elevatorTrimSelector);\n\t\t\n\t\trudderTrimSelector = new GUIComponentSelector(guiLeft + xOffset, guiTop + GAP_BETWEEN_SELECTORS + 2*(SELECTOR_SIZE + GAP_BETWEEN_SELECTORS), SELECTOR_SIZE*2, SELECTOR_SIZE, InterfaceCore.translate(\"gui.panel.trim_yaw\"), vehicle.definition.motorized.panelTextColor, vehicle.definition.motorized.panelLitTextColor, SELECTOR_TEXTURE_SIZE*2, SELECTOR_TEXTURE_SIZE, TRIM_TEXTURE_WIDTH_OFFSET, TRIM_TEXTURE_HEIGHT_OFFSET, getTextureWidth(), getTextureHeight()){\n\t\t\t@Override\n\t\t\tpublic void onClicked(boolean leftSide){\n\t\t\t\tselectedTrimSelector = this;\n\t\t\t\tselectedTrimType = PacketVehicleControlDigital.Controls.TRIM_YAW;\n\t\t\t\tselectedTrimDirection = !leftSide;\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onReleased(){\n\t\t\t\tselectedTrimSelector = null;\n\t\t\t\tselectedTrimType = null;\n\t\t\t}\n\t\t};\n\t\taddSelector(rudderTrimSelector);\n\t\t\n\t\t//If we have both reverse thrust AND autopilot, render them side-by-side. Otherwise just render one in the middle\n\t\tif(haveReverseThrustOption && vehicle.definition.motorized.hasAutopilot){\n\t\t\treverseSelector = new GUIComponentSelector(guiLeft + xOffset, guiTop + GAP_BETWEEN_SELECTORS + 3*(SELECTOR_SIZE + GAP_BETWEEN_SELECTORS), SELECTOR_SIZE, SELECTOR_SIZE, InterfaceCore.translate(\"gui.panel.reverse\"), vehicle.definition.motorized.panelTextColor, vehicle.definition.motorized.panelLitTextColor, SELECTOR_TEXTURE_SIZE, SELECTOR_TEXTURE_SIZE, REVERSE_TEXTURE_WIDTH_OFFSET, REVERSE_TEXTURE_HEIGHT_OFFSET, getTextureWidth(), getTextureHeight()){\n\t\t\t\t@Override\n\t\t\t\tpublic void onClicked(boolean leftSide){\n\t\t\t\t\tInterfacePacket.sendToServer(new PacketVehicleControlDigital(vehicle, PacketVehicleControlDigital.Controls.REVERSE, selectorState == 0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onReleased(){}\n\t\t\t};\n\t\t\taddSelector(reverseSelector);\n\t\t\t\n\t\t\tautopilotSelector = new GUIComponentSelector(guiLeft + xOffset + SELECTOR_SIZE, guiTop + GAP_BETWEEN_SELECTORS + 3*(SELECTOR_SIZE + GAP_BETWEEN_SELECTORS), SELECTOR_SIZE, SELECTOR_SIZE, InterfaceCore.translate(\"gui.panel.autopilot\"), vehicle.definition.motorized.panelTextColor, vehicle.definition.motorized.panelLitTextColor, SELECTOR_TEXTURE_SIZE, SELECTOR_TEXTURE_SIZE, AUTOPILOT_TEXTURE_WIDTH_OFFSET, AUTOPILOT_TEXTURE_HEIGHT_OFFSET, getTextureWidth(), getTextureHeight()){\n\t\t\t\t@Override\n\t\t\t\tpublic void onClicked(boolean leftSide){\n\t\t\t\t\tInterfacePacket.sendToServer(new PacketVehicleControlDigital(vehicle, PacketVehicleControlDigital.Controls.AUTOPILOT, !vehicle.autopilot));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onReleased(){}\n\t\t\t};\n\t\t\taddSelector(autopilotSelector);\n\t\t}else if(haveReverseThrustOption){\n\t\t\treverseSelector = new GUIComponentSelector(guiLeft + xOffset + SELECTOR_SIZE/2, guiTop + GAP_BETWEEN_SELECTORS + 3*(SELECTOR_SIZE + GAP_BETWEEN_SELECTORS), SELECTOR_SIZE, SELECTOR_SIZE, InterfaceCore.translate(\"gui.panel.reverse\"), vehicle.definition.motorized.panelTextColor, vehicle.definition.motorized.panelLitTextColor, SELECTOR_TEXTURE_SIZE, SELECTOR_TEXTURE_SIZE, REVERSE_TEXTURE_WIDTH_OFFSET, REVERSE_TEXTURE_HEIGHT_OFFSET, getTextureWidth(), getTextureHeight()){\n\t\t\t\t@Override\n\t\t\t\tpublic void onClicked(boolean leftSide){\n\t\t\t\t\tInterfacePacket.sendToServer(new PacketVehicleControlDigital(vehicle, PacketVehicleControlDigital.Controls.REVERSE, selectorState == 0));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onReleased(){}\n\t\t\t};\n\t\t\taddSelector(reverseSelector);\n\t\t}else if(vehicle.definition.motorized.hasAutopilot){\n\t\t\tautopilotSelector = new GUIComponentSelector(guiLeft + xOffset + SELECTOR_SIZE/2, guiTop + GAP_BETWEEN_SELECTORS + 3*(SELECTOR_SIZE + GAP_BETWEEN_SELECTORS), SELECTOR_SIZE, SELECTOR_SIZE, InterfaceCore.translate(\"gui.panel.autopilot\"), vehicle.definition.motorized.panelTextColor, vehicle.definition.motorized.panelLitTextColor, SELECTOR_TEXTURE_SIZE, SELECTOR_TEXTURE_SIZE, AUTOPILOT_TEXTURE_WIDTH_OFFSET, AUTOPILOT_TEXTURE_HEIGHT_OFFSET, getTextureWidth(), getTextureHeight()){\n\t\t\t\t@Override\n\t\t\t\tpublic void onClicked(boolean leftSide){\n\t\t\t\t\tInterfacePacket.sendToServer(new PacketVehicleControlDigital(vehicle, PacketVehicleControlDigital.Controls.AUTOPILOT, !vehicle.autopilot));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void onReleased(){}\n\t\t\t};\n\t\t\taddSelector(autopilotSelector);\n\t\t}\n\t\t\n\t\t//Need to offset the xOffset by the selector size to account for the double-width trim controls.\n\t\txOffset += SELECTOR_SIZE;\n\t}",
"@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString result = showSelectScannableDialog(parent, getSafeScannableNames());\n\t\t\t\tif (result != null) {\n\t\t\t\t\tlogger.debug(\"Scannable name : {}\", result);\n\t\t\t\t\tscannableInfoList.add(new ScannableInfo(result));\n\t\t\t\t\trefreshListViewer();\n\t\t\t\t}\n\t\t\t}",
"public void addAnswerButtons(String opponentLogin){\n\t\tgetController().changeFree(false);\n\t\tgetCentralPanel().removeAll();\n\t\tgetCentralPanel().add(answButPanel); \n\t\tanswButPanel.getQueryLabel().setText(\"do you want play with \"+opponentLogin);\n\t\tvalidate();\n\t}",
"private void setButtonListener() {\n for(CellButton[] buttonsRow : mainFrame.getButtons()) {\n for(CellButton button :buttonsRow) {\n button.addButtonListener(this);\n }\n }\n }",
"public void run(IProgressMonitor monitor) {\n \t\tfor(int i = 0; i < selectedElements.length; i++) {\r\n \t\t\tPersistableModelComponent component = selectedElements[i]\r\n \t\t\t\t\t.getPersistableComponent();\r\n \t\t\tcomponent.loadComponentAndChildren(monitor);\r\n \t\t}\r\n }",
"private void addNetworkButton(){\n NetworkAddDialogGatewayTextfield.setText(\"\");\n NetworkAddDialogIPRangeTextfield.setText(\"\");\n NetworkAddDialogMacVLanExtSpinner.setValue(0);\n NetworkAddDialogMacVLanSpinner.setValue(0);\n NetworkAddDialogMaskTextfield.setText(\"\");\n NetworkAddDialogNameTextfield.setText(\"\");\n NetworkAddDialogTapRadioButton.setSelected(false);\n NetworkAddDialog.setVisible(true);\n }",
"void initializeWhiteboardPane(){\n JButton chooseWhiteboard = new JButton(\"Go\");\n JButton makeNewWhiteboard = new JButton(\"Create!\");\n makeNewWhiteboard.addActionListener(new CreateWhiteboardListener());\n JLabel selectWhiteboard = new JLabel(\"Select an existing whiteboard below\");\n currentWhiteboards = new JTable();\n chooseWhiteboard.addActionListener(new SelectWhiteboardListener(currentWhiteboards));\n createWhiteboard = new JLabel(\"Enter a new integer > 0 not displayed below to create a new whiteboard\");\n JScrollPane whiteboardsList = new JScrollPane(currentWhiteboards);\n whiteboardsModel = new DefaultTableModel(new String [] {\"Existing Whiteboards\"},0){\n //prevent user from editing cells\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n };\n currentWhiteboards.setModel(whiteboardsModel);\n for (int i: whiteboards){\n whiteboardsModel.addRow(new String[]{Integer.toString(i)});\n }\n GroupLayout layout = new GroupLayout(whiteboardSelect);\n whiteboardSelect.setLayout(layout);\n layout.setAutoCreateGaps(true);\n layout.setAutoCreateContainerGaps(true);\n layout.setHorizontalGroup(\n layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addComponent(createWhiteboard)\n .addGroup(layout.createSequentialGroup()\n .addComponent(whiteboardField)\n .addComponent(makeNewWhiteboard))\n .addGroup(layout.createSequentialGroup()\n .addComponent(selectWhiteboard)\n .addComponent(chooseWhiteboard))\n .addComponent(whiteboardsList)\n );\n layout.setVerticalGroup(\n layout.createSequentialGroup()\n .addComponent(createWhiteboard)\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(makeNewWhiteboard)\n .addComponent(whiteboardField))\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(selectWhiteboard)\n .addComponent(chooseWhiteboard))\n .addComponent(whiteboardsList)\n\n );\n selectWhiteboard.setVisible(true);\n whiteboardsList.setVisible(true);\n createWhiteboard.setVisible(true);\n whiteboardField.setVisible(true);\n }",
"public void multiPlayerChosen(){\n IP = view.ipTF.getText();\n ConnectingViewController connecting = new ConnectingViewController(this, IP);\n connecting.showView();\n this.hideView();\n }",
"@Override\n public void addNotify(){\n super.addNotify();\n\n if (speciallyIconified){\n try{\n setIcon(speciallyIconified);\n speciallyIconified = false;\n } catch (PropertyVetoException e){}\n }\n\n if (speciallyMaximized){\n try{\n setMaximum(speciallyMaximized);\n speciallyMaximized = false;\n } catch (PropertyVetoException e){}\n }\n }",
"public void registerButtons()\n\t{\n\t\tplot.addActionListener(new ButtonListener());\n\t\tin.addActionListener(new ButtonListener(1));\n\t\tout.addActionListener(new ButtonListener(2));\n\t\t\n\t}",
"public void onYesButtonClicked() {\n changeAfterClientPick();\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void addSingleplayerMultiplayerButtons() {\n\t\tthis.buttonList.add(new GuiButton(1, 4, 3, 60, 20, I18n.format(\"menu.singleplayer\", new Object[0])));\n\t\tthis.buttonList.add(new GuiButton(2, 70, 3, 50, 20, I18n.format(\"menu.multiplayer\", new Object[0])));\n\t\tthis.buttonList.add(new GuiButton(14, 126, 3, 60, 20, \"§bResilient§r\"));\n\n\t}",
"public void listAction() {\n TextWin newWindow = new TextWin(getSelectedCell());\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\n }",
"protected void updateToolbarButtons() {\r\n // delete folder button\r\n TreePath[] selectedFiles = _fileSystemTree == null ? new TreePath[0] : _fileSystemTree.getSelectionPaths();\r\n // System.out.println(\"selectedFiles.length = \" + selectedFiles == null ? 0 : selectedFiles.length);\r\n if (selectedFiles != null && selectedFiles.length > 0) {\r\n _toolbar.enableDelete();\r\n }\r\n else {\r\n _toolbar.disableDelete();\r\n }\r\n \r\n // new folder button (only enable if exactly one folder selected\r\n if (selectedFiles != null && selectedFiles.length == 1) {\r\n _toolbar.enableNewFolder();\r\n }\r\n else {\r\n _toolbar.disableNewFolder();\r\n }\r\n }",
"public void createControl() {\n Button button1 = new Button(getShell(), SWT.PUSH);\n button1.setText(\"PolicyValueSelectionDialog with valid\\n\" +\n \"selection element at construction\");\n\n final PolicyValueSelectionDialog dialog1 =\n new PolicyValueSelectionDialog(button1.getShell(),\n \"myPolicy1\", selectionElement1);\n button1.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n dialog1.open();\n String[] results = (String[]) dialog1.getResult();\n if (results != null) {\n System.out.println(\"You chose:\");\n for (int i = 0; i < results.length; i++) {\n System.out.println(results[i]);\n }\n } else {\n System.out.println(\"You chose nothing\");\n }\n }\n });\n dialog1.setInitialSelections(new String[]{\"choice7\", \"choice3\"});\n\n Button button2 = new Button(getShell(), SWT.PUSH);\n button2.setText(\"PolicyValueSelectionDialog with invalid\\n\" +\n \"selection element at construction\");\n\n final PolicyValueSelectionDialog dialog2 =\n new PolicyValueSelectionDialog(button1.getShell(),\n \"myPolicy2\", selectionElement2);\n button2.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n dialog2.open();\n String[] results = (String[]) dialog2.getResult();\n if (results != null) {\n System.out.println(\"You chose:\");\n for (int i = 0; i < results.length; i++) {\n System.out.println(results[i]);\n }\n } else {\n System.out.println(\"You chose nothing\");\n }\n }\n });\n\n\n }",
"public void multiplayerSelected()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyDiscoveryState()\n clientController.searchForGames();\n\n //populate the GameSelectScreen's text box with the lobbies from the\n //state\n gameSelectScreen.clearGames();\n\n //set state to GAMESELECT\n state = CurrentWindow.GAMESELECT;\n\n //hide the intro screen and show the game select screen\n introScreen.setVisible(false);\n gameSelectScreen.setVisible(true);\n }",
"public PreferredRemoteDialog( JFrame owner, Collection< Remote > preferredRemotes )\n {\n super( owner, \"Preferred Remotes\", true );\n createGui( owner, preferredRemotes );\n }",
"private void configureComponents() {\n save.setStyleName(ValoTheme.BUTTON_PRIMARY);\n save.setClickShortcut(ShortcutAction.KeyCode.ENTER);\n setVisible(false);\n }",
"private void changeShowSettings(SelectionEvent event) {\r\n //System.out.println(\"Show settings shanged\");\r\n \r\n Set <ShowOption> currentlySelected = event.getAllSelectedItems();\r\n \r\n Set <ShowOption> unselected = new HashSet();\r\n unselected.addAll(previousShowOptions);\r\n unselected.removeAll(currentlySelected);\r\n \r\n Set <ShowOption> newlySelected = new HashSet();\r\n newlySelected.addAll(currentlySelected);\r\n newlySelected.removeAll(previousShowOptions);\r\n \r\n Set <ShowOption> changed = new HashSet();\r\n changed.addAll(newlySelected);\r\n changed.addAll(unselected);\r\n \r\n for (ShowOption showOption : changed) {\r\n showOptions.put(showOption, !showOptions.get(showOption));\r\n } \r\n \r\n \r\n// System.out.println(\"previously selected: \" + previousShowOptions);\r\n// System.out.println(\"unselected: \" + unselected);\r\n// System.out.println(\"newly selected: \" + newlySelected);\r\n //System.out.println(\"changed show options: \" + changed);\r\n \r\n //changeShowStatus(changed);\r\n \r\n // TODO: try with JS feedback\r\n //LoadingIndicator <String> loadingIndicator = new LoadingIndicator(\"Loading 3D views ...\");\r\n //getComponent().getUI().addWindow(loadingIndicator);\r\n sendPlotOptions();\r\n //loadingIndicator.close();\r\n \r\n // the option to show the bar chart is only enabled for the 2D view\r\n if (showOptions.get(ShowOption.THREE_D)) {\r\n showOptionsSelector.setItemEnabledProvider(item -> !item.equals(ShowOption.N));\r\n }\r\n else {\r\n showOptionsSelector.setItemEnabledProvider(item -> true);\r\n }\r\n \r\n previousShowOptions = showOptionsSelector.getValue();\r\n }",
"protected void addSelectionChangeListeners()\n {\n AlertHandler widgetSelectionHandler =\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n FrameEditorSelectionState.SelectionChange evt =\n (FrameEditorSelectionState.SelectionChange) alert;\n\n if (evt != null) {\n // Set the state of corresponding graphical widgets\n GraphicalWidget<?> gw;\n\n // Alter state of all widgets in selection\n if (evt.changedElement == null) {\n Iterator<GraphicalWidget<?>> widgetFigs =\n ((FrameEditorSelectionState)\n evt.getSource()).getSelectedWidgetFigures();\n\n while (widgetFigs.hasNext()) {\n gw = widgetFigs.next();\n\n gw.setSelected(evt.selected);\n }\n }\n else if (evt.changedElement instanceof GraphicalWidget<?>)\n {\n // If an object was passed on the event, set its\n // selected state to the event's selected state\n gw = (GraphicalWidget<?>) evt.changedElement;\n\n if (frame.getWidgets().contains(gw.getModel())) {\n gw.setSelected(evt.selected);\n }\n }\n }\n\n // Repaint the frame contents\n // This causes the resize handles to be redrawn.\n // Also causes the entire frame to be \"refreshed\"\n delayedRepainting.requestRepaint(REPAINT_ALL);\n\n // Add the following back when another window's actions\n // can cause changes to a Frame Editor's selection state\n // (such as something that deletes a widget)\n// updateView();\n } // handleAlert\n };\n\n selection.addHandler(this,\n FrameEditorSelectionState.SelectionChange.class,\n widgetSelectionHandler);\n }",
"public void setupWindowButtons(){\n focusPropertyButton(btnExitProgramPlannerPlanPane);\n focusPropertyButton(btnExitProgramPlannerShoppingListPane);\n focusPropertyButton(btnExitProgramPlannerCupboardPane);\n focusPropertyButton(btnMinimiseProgramPlannerPlanPlane);\n focusPropertyButton(btnMinimiseProgramPlannerShoppingListPane);\n focusPropertyButton(btnMinimiseProgramPlannerCupboardPane);\n focusPropertyButton(btnExitProgramMealsBrowsePane);\n focusPropertyButton(btnMinimiseProgramMealsBrowsePane);\n focusPropertyButton(btnExitProgramMealsAddPane);\n focusPropertyButton(btnMinimiseProgramMealsAddPane);\n focusPropertyButton(btnExitProgramIngredBrowse);\n focusPropertyButton(btnMinimiseProgramIngredBrowse);\n focusPropertyButton(btnExitProgramIngredAdd);\n focusPropertyButton(btnMinimiseProgramIngredAdd);\n\n }",
"public static void addExtensionToWorkingSets(IProgressMonitor monitor) {\n\t\tWorkingSetsUtils.organizeWorkingSetsFromLocalExtensions(monitor);\n\t}",
"private void actionSwitchSelect()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleSelectOn)\r\n\t\t{\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchSelectOn();\r\n\r\n\t\t\t//---- If we can select sample, we can not move it\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t}",
"public void onSignalChange(boolean hasSignal) {\n\t\t\tif (mSelListeners != null && mSelListeners.size() > 0) {\n\t\t\t\tfor (IChannelSelectorListener mSelListener : mSelListeners) {\n\t\t\t\t\tmSelListener.signalChange(hasSignal);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public SelectPanel() {\n initComponents();\n \n buttonSelection.add(jRadioButtonEverything);\n buttonSelection.add(jRadioButtonLinesCurves);\n buttonSelection.add(jRadioButtonControlPoints);\n buttonSelection.add(jRadioButtonAllItem);\n jRadioButtonControlPoints.setSelected(true);\n \n buttonLayer.add(jRadioButtonCurrentLayer);\n buttonLayer.add(jRadioButtonAllVisibleLayers);\n jRadioButtonCurrentLayer.setSelected(true);\n }",
"public void setActiveCircuit(CircuitPanel circuit) {\r\n if(circuitwindows.contains(circuit.getParentFrame())){\r\n // Set application's title\r\n setTitle(\"Logic Circuit Workbench - \" + circuit.getParentFrame().getTitle());\r\n \r\n // Make the circuit active in the Desktop Window Pane\r\n this.circuitPanel = circuit;\r\n try { circuit.getParentFrame().setSelected(true); } \r\n catch (PropertyVetoException ex) { \r\n ErrorHandler.newError(\"Editor Error\",\r\n \"Cannot select circuit \" +\r\n circuit.getParentFrame().getTitle() + \".\", ex); \r\n }\r\n\r\n // Set the appropriate state for all command history buttons\r\n UndoButton.setEnabled(circuitPanel.getCommandHistory().canUndo());\r\n RedoButton.setEnabled(circuitPanel.getCommandHistory().canRedo());\r\n Undo.setEnabled(circuitPanel.getCommandHistory().canUndo());\r\n Redo.setEnabled(circuitPanel.getCommandHistory().canRedo());\r\n \r\n clipboard.setHasSelection(circuitPanel.hasActiveSelection());\r\n \r\n // Set the appropriate state for all simulation buttons\r\n if(circuitPanel.getSimulatorState().equals(SimulatorState.STOPPED)){\r\n StartButton.setEnabled(true);\r\n StartButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/media-playback-start.png\")));\r\n Run.setEnabled(true);\r\n StopButton.setEnabled(false);\r\n Stop.setEnabled(false);\r\n StepForwardButton.setEnabled(false);\r\n StepForward.setEnabled(false); \r\n } else if(circuitPanel.getSimulatorState().equals(SimulatorState.PLAYING)){\r\n StartButton.setEnabled(true);\r\n StartButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/media-playback-pause.png\")));\r\n Run.setEnabled(true);\r\n StopButton.setEnabled(true);\r\n Stop.setEnabled(true);\r\n StepForwardButton.setEnabled(false);\r\n StepForward.setEnabled(false); \r\n } else if(circuitPanel.getSimulatorState().equals(SimulatorState.PAUSED)){\r\n StartButton.setEnabled(true);\r\n StartButton.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/ui/images/buttons/toolbar/media-playback-start.png\")));\r\n Run.setEnabled(true);\r\n StopButton.setEnabled(true);\r\n Stop.setEnabled(true);\r\n StepForwardButton.setEnabled(true);\r\n StepForward.setEnabled(true); \r\n }\r\n \r\n // Update Simulator speed slider\r\n SimulatorSpeed.setValue(circuitPanel.getSimulator().getSimulatorSpeed());\r\n \r\n // Is logger window open?\r\n RecordButton.setSelected(getActiveCircuit().getLoggerWindow().isShowing());\r\n Record.setSelected(getActiveCircuit().getLoggerWindow().isShowing());\r\n } else {\r\n ErrorHandler.newError(\"Editor Error\",\r\n \"Error whilst setting an active circuit. \\n \" +\r\n \"Please close and reopen all open circuits.\");\r\n } \r\n }"
] | [
"0.63204926",
"0.57884806",
"0.5349103",
"0.5332148",
"0.5313198",
"0.5262229",
"0.5258899",
"0.52269506",
"0.521689",
"0.5193274",
"0.5170047",
"0.5103071",
"0.5088343",
"0.50757885",
"0.50711787",
"0.50692767",
"0.50556296",
"0.5054311",
"0.50464714",
"0.50457126",
"0.5037274",
"0.5026036",
"0.50248283",
"0.50203943",
"0.50199413",
"0.49964568",
"0.4991704",
"0.4988602",
"0.4978266",
"0.4972989",
"0.49695757",
"0.49672705",
"0.4955372",
"0.4955372",
"0.4949283",
"0.49286565",
"0.4911145",
"0.4893358",
"0.48888543",
"0.4881297",
"0.48809627",
"0.486985",
"0.48669186",
"0.48653004",
"0.48539293",
"0.48426256",
"0.48143616",
"0.47786388",
"0.47756058",
"0.47645405",
"0.47596538",
"0.47492734",
"0.47467804",
"0.47460586",
"0.47363424",
"0.4712048",
"0.471133",
"0.47096196",
"0.4699533",
"0.46976507",
"0.4696925",
"0.46951973",
"0.46907413",
"0.46867475",
"0.46863842",
"0.46781978",
"0.46755603",
"0.46750423",
"0.46733603",
"0.46692565",
"0.46690124",
"0.4668251",
"0.46668392",
"0.46654063",
"0.4665246",
"0.46645388",
"0.46620494",
"0.46590242",
"0.4658969",
"0.46557185",
"0.46548295",
"0.46460563",
"0.46450895",
"0.46396333",
"0.46395177",
"0.46371794",
"0.46356633",
"0.4633334",
"0.46305227",
"0.4628824",
"0.46287546",
"0.462428",
"0.46235862",
"0.46227166",
"0.46218005",
"0.4619347",
"0.4618021",
"0.46150312",
"0.46130282",
"0.46048978"
] | 0.72649866 | 0 |
Created by Pavan Nagaraju on 01Sep18. | public interface APIInterface {
@GET("api.php/action=query&format=json&prop=pageimages%7Cpageterms&generator=prefixsearch&redirects=1&formatversion=2&piprop=thumbnail&pithumbsize=50&pilimit=10&wbptterms=description")
Call<SearchResponseModel> getDataList(@Query("gpssearch") String name , @Query("gpslimit") String gpsLimit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void nadar() {\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\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public void func_104112_b() {\n \n }",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public void mo4359a() {\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n public void init() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private void strin() {\n\n\t}",
"@Override\n void init() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n public void init() {}",
"@Override\n protected void init() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\n public int getOrder() {\n return 0;\n }",
"@Override\n public int getOrder() {\n return 4;\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}"
] | [
"0.60785335",
"0.5944208",
"0.5879304",
"0.5864173",
"0.5850209",
"0.5840689",
"0.5840689",
"0.5834586",
"0.5817429",
"0.5812741",
"0.5784143",
"0.57728434",
"0.57715666",
"0.5764907",
"0.5751395",
"0.57512254",
"0.57220507",
"0.57160556",
"0.5705138",
"0.5693988",
"0.56552476",
"0.56233084",
"0.56223446",
"0.56167257",
"0.5612132",
"0.5588736",
"0.5584336",
"0.557539",
"0.55719364",
"0.55719364",
"0.55719364",
"0.55719364",
"0.55719364",
"0.55693763",
"0.55558604",
"0.55345225",
"0.55345225",
"0.55272937",
"0.55161715",
"0.549382",
"0.54937786",
"0.5489037",
"0.5484836",
"0.54767114",
"0.5470401",
"0.5465184",
"0.54637",
"0.54492563",
"0.5448806",
"0.5448806",
"0.5448806",
"0.54362994",
"0.54362607",
"0.54362607",
"0.54362607",
"0.54362607",
"0.54362607",
"0.54362607",
"0.54362607",
"0.54347175",
"0.54347175",
"0.5433681",
"0.5430563",
"0.5426126",
"0.5426126",
"0.5426126",
"0.5422982",
"0.54186684",
"0.54185724",
"0.54167867",
"0.54106826",
"0.5409446",
"0.5409446",
"0.5409446",
"0.54016584",
"0.5388066",
"0.53861696",
"0.53861696",
"0.53733116",
"0.536501",
"0.5363192",
"0.5360059",
"0.53586525",
"0.53522754",
"0.53494483",
"0.53447646",
"0.5344356",
"0.5343266",
"0.5339082",
"0.5339082",
"0.5339082",
"0.5339082",
"0.5339082",
"0.5339082",
"0.53367937",
"0.53349453",
"0.5333754",
"0.53318036",
"0.5331322",
"0.5330172",
"0.5328735"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onNothingSelected(AdapterView<?> arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onNothingSelected(AdapterView<?> arg0) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Constructor. Creates a new individual request NOT FOUND exception | public IndividualRequestNotFoundException(Long requestId) {
super(ResourceBundle.getBundle(RESOURCE_STRING_PATH)
.getString(INDIVIDUAL_REQUEST_NOT_FOUND_EXCEPTION_KEY) + requestId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NotFoundException() {\r\n super(Responses.notFound().build());\r\n }",
"public ItemNotFoundException() {\n super();\n }",
"public ObjectNotFoundException() {\r\n super(\"ObjectNotFound Exception\");\r\n }",
"public DataNotFoundException() {\n\t\tsuper(\"Requested data not found\");\n\t}",
"public EmployeeNotFoundException() {\n super();\n }",
"public WeatherNotFoundException() {\n\t\tsuper(\"Something went wrong. Please try again later.. \");\n\t}",
"public HttpException() {\n }",
"public RecordNotFoundException() {\n super();\n }",
"public SureBetNotFoundException() {\r\n\t\tsuper();\r\n\t}",
"public NotSearchableException() {\n }",
"public PoolNotFoundException() {\n super();\n }",
"public ObjectNotFoundException(String s) {\r\n super(s);\r\n }",
"EntryNotFoundException() {\n super();\n }",
"public RecordNotFoundException() {\n this(null);\n }",
"public NotFoundException(final String message) {\r\n super(Response.status(Responses.NOT_FOUND).\r\n entity(message).type(\"text/plain\").build());\r\n myDetailMessage = message;\r\n }",
"public ResourceNotFoundException(String msg) {\r\n\t\tsuper(msg);\r\n\t}",
"public PoolNotFoundException(String s) {\n super(s);\n }",
"public ItemNotFoundException(String e){\r\n super(e+\" was not found!\");\r\n }",
"@GetMapping(\"notfound\")\n public void notFound()\n {\n throw new NotFoundException(\"404\", \"404 Not Found - NotFoundException\");\n }",
"public NoDataFoundException()\r\n {\r\n super(\"No Data Found\");\r\n\r\n }",
"private static void writeNotFound(\n final ChannelHandlerContext ctx,\n final FullHttpRequest request) {\n\n writeErrorResponse(ctx, request, HttpResponseStatus.NOT_FOUND);\n }",
"public SearchException() {\n }",
"public ResourceNotFoundException(final Object resourceIdentifier) {\n super();\n this.resourceIdentifier = resourceIdentifier;\n }",
"public PoolNotFoundException(String s, Throwable t) {\n super(s, t);\n }",
"public SureBetNotFoundException(Exception exception) {\r\n\t\tsuper(exception);\r\n\t}",
"public ElFicheroNoExisteException() {\n }",
"public LocationNotAvailableException() {\r\n }",
"public DataNotFoundException(Class<? extends Object> ofclass) {\n\t\tsuper(\"Requested \" + ofclass.getSimpleName().toLowerCase() + \" not found\");\n\t}",
"public ServerNotFoundException(String message) {\n\t\tsuper(message);\n\n\t}",
"public SimpleResponse ERROR_NOT_FOUND() {\n this.state = HttpStatus.NOT_FOUND.value();\n return ERROR_CUSTOM();\n }",
"public ElementNotFoundException(String msg){\n super(msg);\n }",
"public EmployeeNotFoundException(String message) {\n super(message);\n }",
"public UsuarioNotFoundException(){\r\n super(\"El usuario introducido no se ha encontrado\");\r\n }",
"public NotFoundStrategyException(String message){\r\n\t\tsuper(message);\r\n\t}",
"public AttributeNotFoundException() {\n\t\tsuper();\n\t\tattribute = null;\n\t}",
"public FieldNotFoundException() {\n }",
"@ExceptionHandler(ResourceNotFoundException.class)\n\t@ResponseStatus(HttpStatus.BAD_REQUEST)\n\t@ResponseBody\n\tprotected ErrorModel handleNotFound(final Exception ex, final WebRequest request) {\n\t\tResourceNotFoundException rnfex = (ResourceNotFoundException) ex;\n\t\tif (rnfex.getResourceId() == 0) {\n\t\t\treturn new ErrorModel(\"resource_not_found\", \"List of \" + rnfex.getResourceName() + \" is empty\");\n\t\t} else {\n\t\t\treturn new ErrorModel(\"resource_not_found\", \"Entity \" + rnfex.getResourceName() + \" with id \" + rnfex.getResourceId() + \" not found\");\n\t\t}\n\t}",
"public UnmatchedException(){\r\n\r\n\t}",
"public TargetNotFoundException(String msg) {\n\t\tsuper(msg);\n\t}",
"public Exception() {\n\t\t\tsuper();\n\t\t}",
"public ControllerException() {\n super();\n }",
"@Error(status = HttpStatus.NOT_FOUND, global = true)\n public HttpResponse<?> notFound(HttpRequest<?> request) {\n if (request.getHeaders()\n .accept()\n .stream()\n .anyMatch(mediaType -> mediaType.getName().contains(MediaType.TEXT_HTML))) {\n return HttpResponse.ok(\"<h1>not found</h1>\")\n .contentType(MediaType.TEXT_HTML);\n }\n\n JsonError error = new JsonError(\"Page Not Found\")\n .link(Link.SELF, Link.of(request.getUri()));\n\n return HttpResponse.<JsonError>notFound()\n .body(error);\n }",
"public InvoiceNotFoundException(int invoice_input)\n {\n super(\"Invoice ID: \");\n invoice_error = invoice_input;\n }",
"public ReferenciaNoDisponibleException() {\n }",
"@ExceptionHandler({NotFoundException.class})\n\tpublic ResponseEntity<ErrorDto> handleNotFoundException(Exception ex, WebRequest request){\n//\t\tstatistic.error(\"requestException\", ex);\n\n\t\tlogger.error(ex.getLocalizedMessage(), ex);\n\t\tString path = request.getContextPath();\n\t\tErrorDto error = new ErrorDto();\n\t\terror.timestamp = new Date().getTime();\n\t\terror.exception = ex.getClass().getCanonicalName();\n\t\terror.error = HttpStatus.NOT_FOUND.getReasonPhrase();\n\t\terror.message = ex.getMessage();\n\t\terror.path = path;\n\t\terror.status = HttpStatus.NOT_FOUND.value();\n\t\treturn new ResponseEntity<ErrorDto>(error, HttpStatus.NOT_FOUND);\n\t}",
"private XMLResource getNotFoundDocument(String uri) {\n XMLResource xr;\n String notFound = \"<html><h1>Document not found</h1><p>Could not access URI <pre>\" + uri + \"</pre></p></html>\";\n xr = XMLResource.load(new StringReader(notFound));\n return xr;\n }",
"public RecordNotFoundException(String message) {\n super(message);\n }",
"public LocationNotAvailableException(Throwable ex) {\r\n super(ex);\r\n }",
"public SearchServiceException()\n\t{\n\t\t// Documented empty block\n\t}",
"public SureBetNotFoundException(String message, Exception exception) {\r\n\t\tsuper(message, exception);\r\n\t}",
"public ItemNotFoundException(String itemName) {\n super(String.format(\"Item %s was not found\", itemName));\n }",
"public ParameterNotFoundException()\n\t{\n\t\tsuper();\n\t}",
"public ErrorResponse() {\n }",
"public QueryException() {\n\n }",
"public ResourceException(Exception exception) {\r\n super(exception);\r\n }",
"@ExceptionHandler(OpenApiResourceNotFoundException.class)\n\t\t@ResponseStatus(HttpStatus.NOT_FOUND)\n\t\tpublic ResponseEntity<ErrorMessage> handleNoHandlerFound(OpenApiResourceNotFoundException e, WebRequest request) {\n\t\t\treturn ResponseEntity.status(HttpStatus.NOT_FOUND).body(new ErrorMessage(e.getMessage()));\n\t\t}",
"public SureBetNotFoundException(Throwable throwable) {\r\n\t\tsuper(throwable);\r\n\t}",
"public NetworkException() {\n\t\tsuper();\n\t}",
"public ManagerNotFoundException(String message) {\n super(message);\n }",
"public TrafficspacesAPIException() {\n \tthis(null, DEFAULT_MESSAGE);\n }",
"public EANAlreadyExists() {\n }",
"public ApiLimitException() {\n super();\n }",
"@ExceptionHandler(ResourceDoesNotExistException.class)\n\tpublic ResponseEntity<Object> handleResouceDoesNotExistException(Exception ex, WebRequest request){\n//\t\tString body = \"The resource does not exist. Please try with other parameter\";\n\t\tResponseError body = createResponseError(ex, HttpStatus.NOT_FOUND, HttpStatus.NOT_FOUND.toString(), \"ERROR_BUSINESS_EXCEPTION\");\n\t\treturn new ResponseEntity<Object>(body,HttpStatus.NOT_FOUND);\n\t}",
"public VariableNotFoundException (String faultyExpression, String var) {\n\t\tsuper(faultyExpression);\n\t\tthis.var = var;\n\t}",
"public PromoNotFoundException (int promo_error)\n {\n super(\"Promo ID: \");\n this.promo_error=promo_error;\n }",
"public NotSearchableException(String msg) {\n super(msg);\n }",
"public RecordNotFoundException(String message) {\n this(message, null);\n }",
"public ViaturaExistenteException(){\n super();\n }",
"private Request() {}",
"private Request() {}",
"public void invokePropagateNotFound(HttpRequest request, HttpResponse response) throws NotFoundException\n {\n ResourceInvoker invoker = getInvoker(request);\n try\n {\n invoke(request, response, invoker);\n }\n catch (Failure e)\n {\n handleException(request, response, e);\n return;\n }\n }",
"protected ErrorResponse()\n {\n super();\n }",
"public VariableNotFoundException (String var) {\n\t\tthis(\"\", var);\n\t}",
"public ApiError()\n\t{\n\n\t}",
"public ResourceNotFoundException(final String message, final Object resourceIdentifier) {\n super(message);\n this.resourceIdentifier = resourceIdentifier;\n }",
"public com.vodafone.global.er.decoupling.binding.request.ErRequest createErRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ErRequestImpl();\n }",
"public Exception() {\n\tsuper();\n }",
"@ExceptionHandler(ReservationNotFoundException.class)\n protected ResponseEntity<Object> handleReservationNotFoundException(ReservationNotFoundException ex, WebRequest request) {\n AppExceptionBean exceptionBean = exceptionMapper.toBean(ex);\n return handleExceptionInternal(ex, exceptionBean, new HttpHeaders(), HttpStatus.NOT_FOUND, request);\n }",
"@Override\n\t\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\t\t\t\t\t\n\t\t\t\t}",
"public UserNotFoundException(String message) {\n\t\tsuper(message);\n\t}",
"public UserNotFoundException(String message) {\n\t\tsuper(message);\n\t}",
"public UserNotFoundException(String message) {\n\t\tsuper(message);\n\t}",
"@Override\n\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\n\t\t\t}",
"public SureBetNotFoundException(String message, Throwable throwable) {\r\n\t\tsuper(message, throwable);\r\n\t}",
"public CacheException() {\r\n\t\tsuper();\r\n\t}",
"public ResourceNotFoundException(final String message, final Object resourceIdentifier,\n final Throwable cause) {\n super(message, cause);\n this.resourceIdentifier = resourceIdentifier;\n }",
"public ProductNotFoundException(String productId) {\n super();\n this.productId = productId;\n }",
"@ExceptionHandler(ResourceNotFoundException.class)\n public BaseResponse handleResourceNotFound(ResourceNotFoundException e) {\n return BaseResponse.buildErrorResponse(404, e);\n }",
"@ExceptionHandler(ResourceNotFoundException.class)\n @ResponseStatus(HttpStatus.NOT_FOUND)\n public ExceptionResponse notFoundException(final ResourceNotFoundException notFoundException) {\n return processError(notFoundException, HttpStatus.NOT_FOUND);\n }",
"public RecordNotFoundException(String message, Throwable cause) {\n super(message, cause);\n }",
"public ResourceException(String reason, Exception exception) {\r\n super(reason, exception);\r\n }",
"public ServerException(Response.Status status) {\n super(status);\n }",
"public OutOfBoundException() {\n super(\"Task does not exist. Please send a correct task number ><\");\n }",
"public OLMSException() {\r\n super();\r\n }",
"public SearchException(String msg) {\n super(msg);\n }",
"public SMSLibException() {}",
"@Test\n public void whenFetchingNonExistingUserReturn404() throws Exception {\n Response<UserDTO> user = api.getUserDetails(1000).execute();\n\n // then http status code should be 404\n assertThat(user.code(), is(404));\n }",
"public UserIDNotAvailableException(){\r\n super();\r\n }",
"protected UserNotFoundException(String message, Throwable cause) {\n\t\tsuper(message, cause);\n\t}",
"public CountryNotFoundException(Long id) {\n super(\"Could not find country\");\n }"
] | [
"0.7890567",
"0.7080231",
"0.7070314",
"0.6870051",
"0.67459553",
"0.67372197",
"0.6646333",
"0.663871",
"0.6634324",
"0.66230494",
"0.660246",
"0.65976197",
"0.658745",
"0.6587141",
"0.656843",
"0.6447414",
"0.641838",
"0.6382584",
"0.6372924",
"0.63297087",
"0.6325663",
"0.62609047",
"0.6245238",
"0.6236182",
"0.6217786",
"0.61906385",
"0.61759883",
"0.614043",
"0.6122282",
"0.61171275",
"0.60995066",
"0.60970396",
"0.60539776",
"0.60523814",
"0.6037392",
"0.60112566",
"0.5997912",
"0.5978579",
"0.5977109",
"0.5939917",
"0.5935374",
"0.59314984",
"0.59295446",
"0.592566",
"0.5882461",
"0.5863785",
"0.58542275",
"0.5847658",
"0.58448577",
"0.5826798",
"0.582392",
"0.5821062",
"0.5814246",
"0.58062005",
"0.580473",
"0.5800006",
"0.5798578",
"0.5791427",
"0.5767885",
"0.57457477",
"0.57400674",
"0.57398635",
"0.57387453",
"0.57384694",
"0.57322973",
"0.572544",
"0.5721528",
"0.57118636",
"0.57088435",
"0.57088435",
"0.5705351",
"0.56980073",
"0.569387",
"0.5692319",
"0.5690856",
"0.56792015",
"0.5669551",
"0.5668809",
"0.56547207",
"0.5635299",
"0.5635299",
"0.5635299",
"0.5627539",
"0.5626233",
"0.5626102",
"0.56237173",
"0.5613625",
"0.56118417",
"0.5607516",
"0.5600272",
"0.5594252",
"0.5579735",
"0.5576401",
"0.55757827",
"0.55653495",
"0.55621064",
"0.5561786",
"0.5560178",
"0.5551441",
"0.554972"
] | 0.66778415 | 6 |
Connect to NodeCraft with the given username and API key | public NodeCraft(String username, char[] apiKey)
{
Authenticator.setDefault(new NodeCraftAuthenticator(username, apiKey));
this.version = 1;
this.parser = new JSONParser();
this.urlMap = new HashMap<>();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void connect() throws OOBException {\n \t\tlog.debug(\"enter to connect \");\n \t\tJSch jsch = new JSch();\n \t\ttry {\n\t\t\tjsch.addIdentity(PRIVATE_KEY, PASSPHRASE);\n \t\t\tjsch.setKnownHosts(KNOWN_HOSTS);\n \t\t\tlog.debug(\"user \" + user + \"host : \" + host);\n \t\t\tsession = jsch.getSession(user, host, 22);\n \t\t\tsession.connect();\n \t\t} catch (JSchException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"public void login(){\n JSONObject clientInfo = new JSONObject();\n try{\n clientInfo.put(\"username\", mUsername);\n clientInfo.put(\"password\", mPassword);\n clientInfo.put(\"deviceID\", getDeviceID());\n clientInfo.put(\"ipAddress\", getClientIP());\n mSocket.emit(\"login\", clientInfo);\n }catch(JSONException ex){\n throw new RuntimeException(ex);\n }\n }",
"public UPKClient() {\n connectToServer(BASE_URL);\n }",
"public void connect() {\n\t\ttry {\n\t\t\tconnection = new Socket(ip, serverPort); // 128.39.83.87 // 127.0.0.1\n\t\t\t\n\t\t\toutput = new BufferedWriter(new OutputStreamWriter(\n connection.getOutputStream()));\n\t\t\tinput = new BufferedReader(new InputStreamReader(\n connection.getInputStream()));\n\t\t\t\n\t\t\tif (hostName.equals(Constants.IDGK + Main.userName))\n\t\t\t\tsendText(\"1\" + Main.userName);\n\t\t\telse\n\t\t\t\tsendText(\"2\" + Main.userName);\n\t\t\t\n\t\t} catch (UnknownHostException e) {\n\t\t\tMain.LOGGER.log(Level.SEVERE, \"Error connecting server\", e);\n\t\t} catch (IOException e) {\n\t\t\tMain.LOGGER.log(Level.WARNING, \"Error making output/input\", e);\n\t\t}\n\t}",
"private void openConnection () {\n String[] labels = {\"Host :\", \"Port :\"};\n String[] initialValues = {\"localhost\", \"1111\"};\n StandardDialogClient openHandler = new StandardDialogClient () {\n\t@Override\n\tpublic void dialogDismissed (StandardDialog d, int code) {\n\t try {\n\t InputDialog inputD = (InputDialog)d;\n\t if (inputD.wasCancelled ()) return;\n\t String[] results = inputD.getResults ();\n\t String host = results[0];\n\t String port = results[1];\n\t TwGateway connection =\n\t (TwGateway)TwGateway.openConnection (host, port);\n\t // The following call will fail if the G2 is secure.\n\t connection.login();\n\t setConnection (connection);\n\t } catch (Exception e) {\n\t new WarningDialog (null, \"Error During Connect\", true, e.toString (), null).setVisible (true);\n\t }\n\t}\n };\t \n\n new ConnectionInputDialog (getCurrentFrame (), \"Open Connection\",\n\t\t\t\t true, labels, initialValues,\n\t\t\t\t (StandardDialogClient) openHandler).setVisible (true);\n }",
"public ClientLogin(String username, String password) {\n\t\tthis.username= username;\n\t\tthis.password= password;\n\t}",
"public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }",
"public void connect() {\n BotConnector newBot = new BotConnector();\n newBot.setEmail(this.email);\n newBot.setAuthenticationKey(key);\n newBot.setBotName(name);\n newBot.setRoom(room);\n //Start Listener Thread\n this.serverListener = new Thread(newBot, \"serverListener\");\n this.serverListener.start();\n }",
"private void connectToRoom(String appKey, String appSecret) {\n initializeSkylinkConnection();\n\n // Obtaining the Skylink connection string locally.\n // In a production environment the connection string should be given\n // by an entity external to the App,\n // such as an App server that holds the Skylink App secret.\n // This is to avoid keeping the App secret within the application\n String skylinkConnectionString = Utils.\n getSkylinkConnectionString(ROOM_NAME,\n appKey,\n appSecret, new Date(),\n SkylinkConnection\n .DEFAULT_DURATION);\n\n // The skylinkConnectionString should not be logged in production,\n // as it contains potentially sensitive information like the Skylink App key.\n\n boolean connectFailed;\n connectFailed = !skylinkConnection.connectToRoom(skylinkConnectionString, MY_USER_NAME);\n if (connectFailed) {\n String error = \"Unable to connect to Room! Rotate device to try again later.\";\n Toast.makeText(parentActivity, error, Toast.LENGTH_LONG).show();\n Log.e(TAG, error);\n return;\n }\n\n // Initialize and use the Audio router to switch between headphone and headset\n AudioRouter.startAudioRouting(parentActivity);\n }",
"public UserApiClient(String username, String password)\r\n {\r\n client = HttpClientFactory.getUserClient();\r\n configureClient(username, password);\r\n }",
"public Chimney(String key) {\r\n\t\tthis.apikey = key;\r\n\t\t//todo manage database connection?\r\n\t}",
"public Connect(LibraryConfiguration config, String username, String password) throws Exception {\n\n /* this is the xml and xpath stuff */\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n this.db = dbf.newDocumentBuilder();\n this.xPath = XPathFactory.newInstance().newXPath();\n /* create the target host */\n this.config = config;\n this.client = new HttpClient(username, password, false);\n }",
"private void loginClient() throws IOException {\n\t\tString instanceID = UUID.randomUUID().toString();\r\n\t\tString loginName = fromClient.readLine();\r\n\t\t\r\n\t\tif (clientTable.has(loginName)) {\r\n\t\t\tString password = fromClient.readLine();\r\n\t\t\t\r\n\t\t\tif (!clientTable.testPassword(loginName, password)) toClient.println(Commands.INVALID_PASSWORD);\r\n\t\t\telse {\r\n\t\t\t\tReport.behaviour(loginName + \" has connected\");\r\n\t\t\t\t\r\n\t\t\t\t//tells the client the connection was a success\r\n\t\t\t\ttoClient.println(Commands.CONNECTION_SUCCESS);\r\n\t\t\t\t\r\n\t\t\t\t//adds a running queue to the account\r\n\t\t\t\tclientTable.addQueue(loginName, instanceID);\r\n\t\t\t\t\r\n\t\t\t\t//create threads\r\n\t\t\t\tmakeThreads(loginName, instanceID);\r\n\t\t\t}\r\n\t\t} \r\n\t\t\r\n\t\t//send error messages if the login was unsuccessful\r\n\t\telse toClient.println(Commands.USER_NOT_FOUND);\r\n\t}",
"public static void main(String[] args) throws IOException, InvalidKeyException, NoSuchAlgorithmException\n\t{\n\t\tStringBuffer response = new StringBuffer();\n\t\tSystem.out.println(\"key: \" + args[0]);\n\t\tSystem.out.println(\"secret: \" + args[1]);\n\t\tsetup_request(cubits_url, \"/api/v1/test\", args[0], args[1]);\n\t\tString inputLine;\n\t\tBufferedReader in;\n\t\ttry{\n\t\t\tin = new BufferedReader(\n\t\t\t new InputStreamReader(con.getInputStream()));\n\t\t} catch(Exception e) {\n\t\t\tin = new BufferedReader(\n\t\t\t new InputStreamReader(con.getErrorStream()));\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t}\n\n\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\tresponse.append(inputLine);\n\t\t}\n\t\tin.close();\n\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"Response Code : \" + responseCode);\n\n\t\t//print result\n\t\tSystem.out.println(response.toString());\n\t}",
"public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }",
"public CexAPI(String user, String key, String secret) {\n\t\tthis.username = user;\n\t\tthis.apiKey = key;\n\t\tthis.apiSecret = secret;\n\t\tthis.nonce = Integer.valueOf((int) (System.currentTimeMillis() / 1000));\n\t}",
"ClientConnection connection();",
"UserToken login(String username, String password) throws WorkspaceException;",
"public void connectApiClient()\n {\n googleApiClient.connect();\n }",
"public Reply login(String hostname) throws ThingsException, InterruptedException;",
"private void connectUsingToken() {\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTTS_PORT;\n\t\t\t}\n\t\t} \n\n\t\tString mqttServer = getMQTTServer();\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\ttry {\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, DATA_STORE);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t\tmqttClientOptions.setAutomaticReconnect(isAutomaticReconnect());\n\t\t\t\n\t\t\tSSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n\n\t\t\tsslContext.init(null, null, null);\n\t\t\t\n\t\t\tmqttClientOptions.setSocketFactory(sslContext.getSocketFactory());\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static HttpURLConnection openConn(String url, String xKey) throws MalformedURLException, IOException\n\t{\n\t\t//Lancement de la connexion\n\t\tHttpURLConnection con = (HttpURLConnection)new URL(url).openConnection();\n\t\t\n\t\t//Mise en place du xKey et des options\n\t\tcon.setRequestProperty(\"X-Key\", xKey);\n\t\tcon.setRequestProperty(\"Content-Type\", \"application/json\");\n\t\treturn (con);\n\t}",
"protected void connect(String url, String devKey) {\n // Open connection to TestLink\n testlink = new TestLinkSite(url, devKey);\n }",
"public static void main(String[] args) throws Exception {\n LoginProtocol.CSLogin.Builder builder = LoginProtocol.CSLogin.newBuilder();\n builder.setDeviceId(\"67B917EB-92DE-48FD-BB7F-E882AC7169BE\");\n builder.setAppVer(\"1.18.0\");\n builder.setCountry(\"CN\");\n builder.setPlatform(\"Windows\");\n builder.setProtoVer(4);\n builder.setZoneName(\"RPG_1\");\n connectAndLogin(\"192.168.1.30\", 8088, builder.build());\n }",
"public void doConnect() {\n Debug.logInfo(\"Connecting to \" + client.getServerURI() + \" with device name[\" + client.getClientId() + \"]\", MODULE);\n\n IMqttActionListener conListener = new IMqttActionListener() {\n\n public void onSuccess(IMqttToken asyncActionToken) {\n Debug.logInfo(\"Connected.\", MODULE);\n state = CONNECTED;\n carryOn();\n }\n\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n ex = exception;\n state = ERROR;\n Debug.logError(\"connect failed\" + exception.getMessage(), MODULE);\n carryOn();\n }\n\n public void carryOn() {\n synchronized (caller) {\n donext = true;\n caller.notifyAll();\n }\n }\n };\n\n try {\n // Connect using a non-blocking connect\n client.connect(conOpt, \"Connect sample context\", conListener);\n } catch (MqttException e) {\n // If though it is a non-blocking connect an exception can be\n // thrown if validation of parms fails or other checks such\n // as already connected fail.\n state = ERROR;\n donext = true;\n ex = e;\n }\n }",
"public LpsClient(String accessKey, String secretKey) {\n super(accessKey, secretKey);\n }",
"public void connectToExternalServer()\n\t{\n\t\tbuildConnectionString(\"10.228.6.204\", \"\", \"ctec\", \"student\");\n\t\tsetupConnection();\n\t\t// createDatabase(\"Kyler\");\n\t}",
"@Override\n\tprotected HttpResponse doHttpRequest() throws ClientProtocolException, IOException {\n\t\tHttpRequestGenerator requestor = new HttpRequestGenerator(username, password);\n\t\treturn requestor.makeKeyFetchRequest(keyServerUrl, null);\n\t}",
"public static String connect(String... varargs) {\n\t\t// setting the default values when arguments' values are omitted\n\t\tString pmaCoreURL = varargs.length > 0 ? varargs[0] : pmaCoreLiteURL;\n\t\tString pmaCoreUsername = varargs.length > 1 ? varargs[1] : \"\";\n\t\tString pmaCorePassword = varargs.length > 2 ? varargs[2] : \"\";\n\t\t// Attempt to connect to PMA.core instance; success results in a SessionID\n\t\tif (pmaCoreURL.equals(pmaCoreLiteURL)) {\n\t\t\tif (isLite()) {\n\t\t\t\t// no point authenticating localhost / PMA.core.lite\n\t\t\t\treturn pmaCoreLiteSessionID;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\t// purposefully DON'T use helper function apiUrl() here:\n\t\t// why? Because apiUrl() takes session information into account (which we\n\t\t// don't have yet)\n\t\tString url = PMA.join(pmaCoreURL, \"api/json/authenticate?caller=SDK.Java\");\n\t\tif (!pmaCoreUsername.equals(\"\")) {\n\t\t\turl = url.concat(\"&username=\").concat(PMA.pmaQ(pmaCoreUsername));\n\t\t}\n\t\tif (!pmaCorePassword.equals(\"\")) {\n\t\t\turl = url.concat(\"&password=\").concat(PMA.pmaQ(pmaCorePassword));\n\t\t}\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tHttpURLConnection con;\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tcon = (HttpsURLConnection) urlResource.openConnection();\n\t\t\t} else {\n\t\t\t\tcon = (HttpURLConnection) urlResource.openConnection();\n\t\t\t}\n\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\tString jsonString = PMA.getJSONAsStringBuffer(con).toString();\n\t\t\tString sessionID = null;\n\t\t\tif (PMA.isJSONObject(jsonString)) {\n\t\t\t\tJSONObject jsonResponse = PMA.getJSONObjectResponse(jsonString);\n\t\t\t\tif (!jsonResponse.get(\"Success\").toString().toLowerCase().equals(\"true\")) {\n\t\t\t\t\treturn null;\n\t\t\t\t} else {\n\t\t\t\t\tsessionID = jsonResponse.getString(\"SessionId\");\n\t\t\t\t\tpmaUsernames.put(sessionID, pmaCoreUsername);\n\t\t\t\t\tpmaSessions.put(sessionID, pmaCoreURL);\n\t\t\t\t\tif (!pmaSlideInfos.containsKey(sessionID)) {\n\t\t\t\t\t\tpmaSlideInfos.put(sessionID, new HashMap<String, Object>());\n\t\t\t\t\t}\n\t\t\t\t\tpmaAmountOfDataDownloaded.put(sessionID, jsonResponse.length());\n\t\t\t\t\treturn sessionID;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// Something went wrong; unable to communicate with specified endpoint\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 connect()\r\n\t{\r\n\t\tkonekcija = ConnectionClass.getConnection(adresa, port, imeBaze, korisnickoIme, sifra);\r\n\t\tSystem.out.println(\"Konekcija otvorena: \"+ konekcija.toString());\r\n\t}",
"private void configureClient(String username, String password)\r\n {\n client.getState().setCredentials(new AuthScope(\"twitter.com\", 80),\r\n new UsernamePasswordCredentials(username, password));\r\n }",
"private boolean requestUserLogin() {\n\t\tServerAPITask userTasks = new ServerAPITask();\n\t\tString uName = usernameField.getText().toString();\n\t\tuserTasks.setAPIRequest(\"http://riptide.alexkersten.com:3333/stoneapi/account/lookup/\" + uName);\n\t\ttry {\n\t\t\tString response = userTasks.execute(\"\").get();\n\t\t\tLog.e(\"Response String\", response);\n\t\t\t\n\t\t\tjsonResponse = new JSONArray(response);\n\t\t\tif (jsonResponse.length() < 1) {\n\t\t\t\tToast.makeText(this.getContext(), \"The username does not exist\", Toast.LENGTH_LONG).show();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tJSONObject jsObj = jsonResponse.getJSONObject(0);\n\t\t\t\tif (jsObj == null) {\n\t\t\t\t\tToast.makeText(this.getContext(), \"An error occurred while retrieving user\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tString _user_id = jsObj.getString(\"_id\");\n\t\t\t\t\tPreferencesUtil.saveToPrefs(userContext, PreferencesUtil.PREFS_LOGIN_USER_ID_KEY, _user_id);\n\t\t\t\t\t\n\t\t\t\t\tPreferencesUtil.saveToPrefs(userContext, PreferencesUtil.PREFS_LOGIN_USERNAME_KEY, uName);\n\t\t\t\t\t((Activity) userContext).getActionBar().setTitle(\"Stone - \" + uName);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t\treturn true;\n\t}",
"protected void connect() {\n\t\treadProperties();\n\t\tif (validateProperties())\n\t\t\tjuraMqttClient = createClient();\n\t}",
"public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}",
"public void loginToRest(View view) {\n\t\tgetClient().connect();\n\t}",
"private void init(String[] args) {\n String provider = \"rackspace-clouddatabases-us\";\n\n String username = args[0];\n String apiKey = args[1];\n \n api = ContextBuilder.newBuilder(provider)\n .credentials(username, apiKey)\n .buildApi(TroveApi.class);\n \n flavorApi = api.getFlavorApiForZone(Constants.ZONE);\n }",
"public CluelessClient(String username, String hostAddress) {\n\t\tclient = new Client();\n\t\tclient.start();\n\n\t\t// Registers the client class so we can send it over the network\n\t\tNetwork.register(client);\n\n\t\t// Gets the player from the other end of the connection for rmi\n\t\tconsolePlayer = ObjectSpace.getRemoteObject(client, Network.CONSOLE_PLAYER, ConsolePlayerInterface.class);\n\t\tRemoteObject remoteConsolePlayerObject = (RemoteObject) consolePlayer;\n\t\tremoteConsolePlayerObject.setResponseTimeout(Network.reponseTime);\n\n\t\tclient.addListener(new Listener() {\n\t\t\t@Override\n\t\t\tpublic void disconnected(Connection connection) {\n\t\t\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tconsoleTextArea.dispose();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t});\n\n\t\t// ask user for host\n//\t\tString userInput = (String) JOptionPane.showInputDialog(null, \"Host:\", \"Connect to Clueless Server\",\n//\t\t JOptionPane.QUESTION_MESSAGE, null, null, \"localhost\");\n//\t\tif (userInput == null || userInput.trim().length() == 0) {\n//\t\t\tSystem.exit(1);\n//\t\t}\n//\t\tfinal String host = userInput.trim();\n\t\tfinal String host = hostAddress.trim();\n\n\t\t// ask for user name\n//\t\tuserInput = (String) JOptionPane.showInputDialog(null, \"Name:\", \"Connect to Clueless Server\",\n//\t\t JOptionPane.QUESTION_MESSAGE, null, null, \"YourUsername\");\n//\t\tif (userInput == null || userInput.trim().length() == 0) {\n//\t\t\tSystem.exit(1);\n//\t\t}\n//\t\tfinal String userName = userInput.trim();\n\t\tfinal String userName = username.trim();\n\n\t\tconsoleTextArea = new ConsoleFrame(host);\n\t\tnew ObjectSpace(client).register(Network.CONSOLE_TEXT_AREA, consoleTextArea);\n\t\tconsoleTextArea.setSendListener(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\t// Create a cheat mode to show case file\n\t\t\t\tif (consoleTextArea.getConsoleText().equals(\"CHEAT\")) {\n\t\t\t\t\tconsolePlayer.cheatMode();\n\t\t\t\t} else {\n\t\t\t\t\tswitch (consolePlayer.getGameState().getGameState()) {\n\t\t\t\t\t// addPlayer(1)\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tconsolePlayer.addPlayer(userName, consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// waitingForStartGame(2)\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\tconsolePlayer.startGame(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// gameStarted(3)\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// moving(4)\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\tconsolePlayer.movePlayer(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// chooseAction(5),\n\t\t\t\t\tcase 5:\n\t\t\t\t\t\tconsolePlayer.chooseAction(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// suggesting(6)\n\t\t\t\t\tcase 6:\n\t\t\t\t\t\tconsolePlayer.makeSuggestion(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// accussing(7)\n\t\t\t\t\tcase 7:\n\t\t\t\t\t\tconsolePlayer.makeAccusation(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// waiting(8)\n\t\t\t\t\tcase 8:\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// showCard(9)\n\t\t\t\t\tcase 9:\n\t\t\t\t\t\tconsolePlayer.showCard(consoleTextArea.getConsoleText());\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t// waitingSeeCard(10)\n\t\t\t\t\tcase 10:\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tconsoleTextArea.setCloseListener(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tclient.stop();\n\t\t\t}\n\t\t});\n\t\tconsoleTextArea.setVisible(true);\n\n\t\t// connecting on a new thread. This allows a progress bar to be shown if\n\t\t// connection is slow enough.\n\t\tnew Thread(\"Connect\") {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tclient.connect(Network.reponseTime, host, Network.port);\n\t\t\t\t\tconsolePlayer.registerUserName(userName);\n\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t}\n\t\t}.start();\n\t}",
"public void connect() throws IOException {\r\n \t\t \r\n \t\t \tClassLoader saved = Thread.currentThread().getContextClassLoader();\r\n\t\t\ttry {\r\n\t\t\t\t // Parse url (rsuite:/http://host/user/session/moId)\r\n\t\t\t\t log.println(\"INCOMING URL IS: \" + url);\r\n\t\t\t\t log.println(\"PARSING URL TO GET PARAMETERS...\");\r\n\t\t\t\t \r\n\t\t\t\t // url initially comes through with extension to avoid dialog window\r\n\t\t\t\t docURL = RSuiteProtocolUtils.parseRSuiteProtocolURL(url);\r\n\t\t\t\t host = docURL.getHost();\r\n\t\t\t\t protocol = docURL.getProtocol().concat(\"//\");\r\n\t\t\t\t username = docURL.getUserName();\r\n\t\t\t\t sessionKey = docURL.getSessionKey();\r\n\t\t\t\t moId = docURL.getMoId();\r\n\t\t\t\t // set the connection so we have it later\r\n\t\t\t\t _connection = this;\r\n\r\n\t\t\t\t log.println(\"HOST: \" + host);\r\n\t\t\t\t log.println(\"USERNAME: \" + username);\r\n\t\t\t\t log.println(\"SESSION KEY: \" + sessionKey);\r\n\t\t\t\t log.println(\"MOID: \" + moId);\r\n\t\t\t\t \r\n\t\t\t\t Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());\r\n\t\t\t\t \r\n\t\t\t\t // CONNECT TO RSUITE IF SESSION NOT PRESENT\t\t\t\t \r\n\t\t\t\t log.println(\"CONNECTION TO RSUITE...\");\r\n\t\t\t\t if(sessionKey == null){\r\n\t\t\t\t\t log.println(\"SESSION DOES NOT EXIST, PROMPT FOR LOGIN\");\r\n\t\t\t\t\t RSuiteLoginDialog login = new RSuiteLoginDialog();\r\n\t\t\t\t\t login.setLocationRelativeTo(null);\r\n\t\t\t\t\t login.setVisible(true);\r\n\t\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\t // SESSION WAS PASSED IN, INITIALIZE REPOSITORY\r\n\t\t\t\t if(repository == null){\r\n\t\t\t\t\t log.println(\"SESSION PASSED IN BY URL, INITIALIZE REPOSITORY\");\r\n\t\t\t\t\t repository = new RsuiteRepositoryImpl(username, \"\", host);\r\n\t\t\t\t\t log.println(\"REPOSITORY INITIALIZED.\");\r\n\t\t\t\t\t \r\n\t\t\t\t\t // NO NEED TO LOGIN SINCE WE HAVE SESSION KEY ALREADY\r\n\t\t\t\t\t log.println(\"SETTING THE REPOSITORY SESSION KEY...\");\r\n\t\t\t\t\t repository.sessionKey = sessionKey;\r\n\t\t\t\t\t log.println(\"SESSION KEY SET. NO NEED FOR LOGIN\");\r\n\t\t\t\t }\t\t\t\t \r\n\t\t\t}\r\n\t\t\tcatch (Throwable t) {\r\n\t\t\t if (log != null) {\r\n\t\t\t t.printStackTrace(log);\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t\tfinally{\r\n\t\t\t\tThread.currentThread().setContextClassLoader(saved);\r\n\t\t\t}\r\n\t\t}",
"public void autoConnect() {\n Log.i(TAG, \"HERE AUTOCONNECT\");\n connect(staticIp, staticPort);\n }",
"private static String getBaseUrl()\r\n {\r\n return \"https://rapidapi.io/connect\";\r\n }",
"public void connect(String username, String password) throws ConnectException {\n\t\t// Start the connection attempt.\n\t\tchannelFuture = clientBootstrap.connect(new InetSocketAddress(hostname, port));\n\n\t\t// Wait until the connection attempt succeeds or fails.\n\t\tchannel = channelFuture.awaitUninterruptibly().getChannel();\n\t\tif (!channelFuture.isSuccess()) {\n\t\t\tclientBootstrap.releaseExternalResources();\n\t\t\tthrow new ConnectException(\"Client failed to connect to \" + hostname + \":\" + port);\n\t\t}\n\n\t\tif (channel.isConnected()) {\n\t\t\tLOGGER.debug(\"Connected to {}:{}. Login with username {}...\", new Object[] { hostname, port, username });\n\n\t\t\t// When connected, send a CONNECT command\n\t\t\tclientHandler.connect(channel, SUPPORTED_STOMP_VERSION, hostname, username, password);\n\t\t}\n\t}",
"public void getConnection() throws Exception {\n\t\ttry {\n\t\t\tSystem.out.println(\"Waiting for new client!\");\n\n\n\n\t\t\tclient = serverSocket.accept();\n\t\t\tis = client.getInputStream();\n\t\t\tisr = new InputStreamReader(is);\n\t\t\tbr = new BufferedReader(isr);\n\t\t\tos = client.getOutputStream();\n\t\t\tosw = new OutputStreamWriter(os);\n\t\t\tpw = new PrintWriter(osw, true);\n\t\t\tsleep(500);\n\t\t\t//clientkey = getClientKey();\n\t\t\tSystem.out.println(\"Client has connected!\");\n\t\t\t\n\t\t\tGetTimestamp(\"Client Publickey is being stored: \" ) ;\n\t\t\t\n\t\t\tpublicKey = getClientPublicKey();\n\t\t\t\n\t\t\tGetTimestamp(\"Client Publickey is stored: \" ) ;\n\t\t\t\n\t\t\tString tosend = encrypt1(getSharedKey(), getClientPublicKey());\n\t\t\t\n\t\t\tGetTimestamp(\"Client sharedkey is being encrypted: \") ;\n\t\t\t\n\t\t\tGetTimestamp(\"Waiting for Authorization Request from Client: \");\n\t\t\t\n\t\t\t//getclientpublickey();\n\t\t\tgetAUTH_REQUEST();\n\t\t\t//getMessage();\n\n\t\t} catch (IOException | InterruptedException ex) {\n\t\t\tLogger.getLogger(ServerTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t}",
"public String login(final String userKey, final String applicationKey) throws XmlRpcException {\r\n return (String) call(\"user.login_key\", userKey, applicationKey);\r\n }",
"private synchronized void doConnect() {\n try {\n String host = agent.getHost();\n int port = agent.getPort();\n log.fine(\"Connecting to server \" + host + ':' + port);\n socket = new Socket(host, port);\n input = socket.getInputStream();\n output = new OutputStreamWriter(socket.getOutputStream());\n disconnected = false;\n new Thread(this).start();\n\n // Automatically login! -> give an auth to the agent...\n TACMessage msg = new TACMessage(\"auth\");\n msg.setParameter(\"userName\", agent.getUser());\n msg.setParameter(\"userPW\", agent.getPassword());\n msg.setMessageReceiver(agent);\n sendMessage(msg);\n\n } catch (Exception e) {\n disconnected = true;\n log.log(Level.SEVERE, \"connection to server failed:\", e);\n socket = null;\n }\n }",
"@Override\n protected String doInBackground(Void... params) {\n if(myApiService == null) {\n MyApi.Builder builder = new MyApi.Builder(AndroidHttp.newCompatibleTransport(), new AndroidJsonFactory(), null)\n // Local testing url (emulator is 10.0.2.2 or use local machine ip)\n // .setRootUrl(\"http://10.0.2.2:8080/_ah/api/\")\n .setRootUrl(\"https://androidjokes-155120.appspot.com/_ah/api/\");\n\n myApiService = builder.build();\n }\n\n // Grab a joke\n try {\n return myApiService.getJoke().execute().getData();\n } catch (IOException e) {\n return e.getMessage();\n }\n }",
"private void requestConnection() {\n getGoogleApiClient().connect();\n }",
"private void loginUser() throws JSONException, UnsupportedEncodingException {\n JSONObject jsonObject = new JSONObject();\n jsonObject.put(\"username\", editUserName.getText().toString());\n jsonObject.put(\"password\", editPassword.getText().toString());\n jsonObject.put(\"DeviceID\", diviceToken);\n jsonObject.put(\"DevicePlatform\", devicePlatform);\n invokeLogin(jsonObject);\n\n\n }",
"private void sendToAPI(final View v, JSONObject jsonLogin){\n APIClient apiClient = new APIClient();\n Service apiService = apiClient.getClient().create(Service.class);\n Call<User> call = apiService.login(new Login(\"efef\",\"dfwd\"));\n call.enqueue(new Callback<User>() {\n @Override\n public void onResponse(Call<User> call, Response<User> response) {\n if (response.isSuccessful()) {\n new CustomToast().displyToast(getContext(), v, \"Error:\"+response.code()+\" \"+response.body().getMessage()+\n \"Token is: \"+response.body().getAccessToken());\n }\n else{\n new CustomToast().displyToast(getContext(), v, \"Error: \"+response.code()+\" \"+\n response.headers()+ \"...Incorrect username or password!\");\n }\n }\n\n @Override\n public void onFailure(Call<User> call, Throwable t) {\n new CustomToast().displyToast(getContext(), v, \"Server unreachable, Please retry again later\");\n }\n });\n\n }",
"public void connect( String id, String url ) throws MojoExecutionException\n {\n Repository repository = new Repository( id, url );\n\n try\n {\n m_wagon = m_wagonManager.getWagon( repository );\n }\n catch ( UnsupportedProtocolException e )\n {\n throw new MojoExecutionException( \"Unsupported protocol: '\" + repository.getProtocol() + \"'\", e );\n }\n catch ( WagonException e )\n {\n throw new MojoExecutionException( \"Unable to configure Wagon: '\" + repository.getProtocol() + \"'\", e );\n }\n\n try\n {\n ProxyInfo proxyInfo = getProxyInfo( m_settings );\n if ( proxyInfo != null )\n {\n m_wagon.connect( repository, m_wagonManager.getAuthenticationInfo( id ), proxyInfo );\n }\n else\n {\n m_wagon.connect( repository, m_wagonManager.getAuthenticationInfo( id ) );\n }\n }\n catch ( ConnectionException e )\n {\n throw new MojoExecutionException( \"Connection failed\", e );\n }\n catch ( AuthenticationException e )\n {\n throw new MojoExecutionException( \"Authentication failed\", e );\n }\n }",
"HostPlayer registerClient(ClientPlayer client);",
"public void connect(String ipAddr) {\n try {\n // Connect to specified Pi\n telnet.connect(ipAddr, usrID, passwrd);\n // Get input and output stream references\n in = telnet.getInputStream();\n out = new PrintStream(telnet.getOutputStream());\n // Log the user in\n readUntil(\"login: \");\n write(usrID);\n readUntil(\"Password: \");\n write(passwrd);\n // Advance to a prompt\n readUntil(prompt + \" \");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public BittrexApi() {\n this.apiKey = config.getVariable(\"BITTREX_API_KEY\");\n this.secretKey = config.getVariable(\"BITTREX_SECRET_KEY\");\n }",
"public void sendLogin() {\n WsMessage.LoginMsg_Req loginMsg_req = new WsMessage.LoginMsg_Req();\n loginMsg_req.token = Util.getMConfig(NTVDefine.KEY_MCONF_GAME_TICKET);\n loginMsg_req.userid = Util.getMConfig(NTVDefine.KEY_MCONF_GAME_OPENID);\n loginMsg_req.username = Util.getMConfig(NTVDefine.KEY_MCONF_GAME_USERNAME);\n loginMsg_req.usericon = \"\";\n loginMsg_req.biz = getBizByGameid(Util.getMConfig(NTVDefine.KEY_MCONF_GAME_GAMEID));\n loginMsg_req.env = Util.getString(NTVDefine.KCONF_STRING_CHAT_ENV);\n loginMsg_req.chatid = this.chatid;\n this.wsManager.sendMessage(loginMsg_req.type, loginMsg_req.toString());\n }",
"public void connect() { \t\n \tbindService(IChatService.class, apiConnection);\n }",
"public OrigoApiClient(final URL apiUrl) {\r\n\t\tclient = new XmlRpcClient();\r\n\t\tXmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();\r\n\t\tconfig.setServerURL(apiUrl);\r\n\t\tclient.setConfig(config);\r\n\t}",
"public void connect() {\n aiConfiguration = new AIConfiguration(getClientAccessToken(),\n AIConfiguration.SupportedLanguages.English,\n AIConfiguration.RecognitionEngine.System);\n aiService = AIService.getService(context, aiConfiguration);\n aiService.setListener(this);\n aiDataService = new AIDataService(context, aiConfiguration);\n }",
"@Test\n public void good_login() throws UnirestException {\n login();\n }",
"public String getKey() { return \"thaumcraft.CLOUD\"; }",
"public static void openConnection() {\n\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\t\tconexion = DriverManager.getConnection(\"jdbc:mysql://192.168.1.51:9090?useTimeone=true&serverTimezone=UTC\",\n\t\t\t\t\t\"remote\", \"Password123\");// credenciales temporales\n\t\t\tSystem.out.print(\"Server Connected\");\n\n\t\t} catch (SQLException | ClassNotFoundException ex) {\n\t\t\tSystem.out.print(\"No se ha podido conectar con mi base de datos\");\n\t\t\tSystem.out.println(ex.getMessage());\n\n\t\t}\n\n\t}",
"public static void init() {\n client = new OkHttpClient();\n\n //Construct a HTTP builder\n retrofit = new Retrofit.Builder()\n .client(client)\n .baseUrl(apiAddress)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n //Form an API to receive a token\n kedronService = retrofit.create(IKedronService.class);\n }",
"public void login(String username, String password) {\n HttpClient httpclient = new DefaultHttpClient();\n HttpPost httppost = new HttpPost(\n \"https://epitech-tiekeo.c9.io/login/check-mobile\");\n\n try {\n // Add your data\n List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n nameValuePairs.add(new BasicNameValuePair(\"username\",\n username));\n nameValuePairs.add(new BasicNameValuePair(\"password\",\n password));\n httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n HttpEntity entity = response.getEntity();\n InputStream is = entity.getContent();\n String resp = convertStreamToString(is);\n System.out.println(\"tssttt \"+resp);\n\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n } catch (IOException e) {\n // TODO Auto-generated catch block\n }\n }",
"@Test\n public void bTestLogin(){\n given()\n .param(\"username\", \"playlist\")\n .param(\"password\", \"playlist\")\n .post(\"/login\")\n .then()\n .statusCode(200);\n }",
"private void login(String username,String password){\n\n }",
"public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }",
"public void openConnectionForTurnTiers(String host, String user, String password) throws JSchException {\n\n\t\ttry {\n\t\t\tjava.util.Properties config = new java.util.Properties();\n\t\t\tconfig.put(\"StrictHostKeyChecking\", \"no\");\n\n\t\t\tJSch jsch = new JSch();\n\n\t\t\tthis.host5 = jsch.getSession(user, host, 22); // create a channel\n\t\t\tthis.host5.setConfig(config);\n\n\t\t\tthis.host5.setPassword(password);\n\t\t\tthis.host5.connect(); // connection has been created\n\n\t\t\t// Create two ssh shell for execute other application tiers logs\n\t\t\t// simultaneously.\n\t\t\t// Paralel programming\n\t\t\tthis.host6 = jsch.getSession(user, host, 22);\n\t\t\tthis.host6.setConfig(config);\n\n\t\t\tthis.host6.setPassword(password);\n\t\t\tthis.host6.connect(); // connection has been created\n\t\t\t// Create two ssh shell for execute other application tiers logs\n\t\t\t// simultaneously.\n\t\t\t// Paralel programming\n\t\t\tthis.host7 = jsch.getSession(user, host, 22);\n\t\t\tthis.host7.setConfig(config);\n\n\t\t\tthis.host7.setPassword(password);\n\t\t\tthis.host7.connect(); // connection has been created\n\n\t\t\t// Create two ssh shell for execute other application tiers logs\n\t\t\t// simultaneously.\n\t\t\t// Paralel programming\n\t\t\tthis.host8 = jsch.getSession(user, host, 22);\n\t\t\tthis.host8.setConfig(config);\n\n\t\t\tthis.host8.setPassword(password);\n\t\t\tthis.host8.connect(); // connection has been created\n\n\t\t\t// Create two ssh shell for execute other application tiers logs\n\t\t\t// simultaneously.\n\t\t\t// Paralel programming\n\t\t\tthis.host9 = jsch.getSession(user, host, 22);\n\t\t\tthis.host9.setConfig(config);\n\n\t\t\tthis.host9.setPassword(password);\n\t\t\tthis.host9.connect(); // connection has been created\n\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Exception Dialog\");\n\t\t\talert.setHeaderText(\"Authentication Error\");\n\t\t\talert.setContentText(\"Please check your user ID or password!\");\n\n\t\t\tException ex = new JSchException(\"Authentication Error\");\n\n\t\t\talert.showAndWait();\n\t\t\tcontroller.getStartButton().setDisable(false);\n\t\t}\n\n\t}",
"public void initializeConnection() {\n\n cluster = Cluster.builder().addContactPoint(host).build();\n session = cluster.connect(keyspaceName);\n session.execute(\"USE \".concat(keyspaceName));\n }",
"public LoginAPICall(LoginAPIResponseListener responseListener, String username, String key) {\n super(LOGIN_CALL_URL, responseListener);\n this.username = username;\n this.key = key;\n }",
"public abstract void connect() throws UnknownHostException, IOException;",
"public void connect(View view) {\n if (game.isConnected()) {\n showMessage(\"Already connected!\");\n setupRoles();\n return;\n }\n EditText text = (EditText) findViewById(R.id.ip_address);\n @SuppressWarnings(\"ConstantConditions\") String ip = text.getText().toString();\n if (ip.equals(\"\")) {\n showMessage(\"Please enter an IP-Address\");\n return;\n }\n showProgressDialog();\n game.connect(ip, this);\n }",
"public static void main(String... args) {\n\n OAuthRequest oathReq = new OAuthRequest();\n Gson gson = new Gson();\n String hostname = get(\"ne.url.hostname\");\n String urlOAuth2 = hostname + get(\"ne.url.auth\");\n\n try {\n // 3. Set the generated Client ID, Secret generated in https://developer.equinix.com (Your App).\n // 4. Set the grant type to \"password' or 'client_credentials' if you want API Gateway to generate the Access token.\n oathReq.clientId(get(\"ne.client.access.client.id\"));\n oathReq.clientSecret(get(\"ne.client.access.client.secret\"));\n oathReq.grantType(get(\"ne.client.access.client.granttype\"));\n oathReq.userName(get(\"ne.client.access.client.username\"));\n String password = new String(Base64.getDecoder().decode(get(\"ne.client.access.client.base64.password\")), \"UTF-8\");\n oathReq.userPassword(password);\n\n HttpResponse<String> response = Unirest.post(urlOAuth2)\n .header(\"Content-Type\", get(\"ne.client.http.body.contenttype\"))\n .body(gson.toJson(oathReq)).asString();\n OAuthResponse oauthResponse = gson.fromJson(response.getBody(), OAuthResponse.class);\n\n\n System.out.println(\"OAuth2 Access Token: \" + oauthResponse.getAccessToken());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void connectAndLogonIfRequired() {\n\t\tloadFtpConfiguration();\n\t\ttry{\n\t\t\tif (!client.isConnected()){\n\t\t\t\t\n\t\t\t\tprintConsole(\"Connecting \"+ HOST);\n\t\t\t\tprintConsole(\"Port \"+ PORT);\n\t\n\t\t\t\tclient.setRemoteHost(HOST);\n\t\t\t\tclient.setRemotePort(PORT);\n\t\t\t\t\n\t\t\t\t//Encoding\n\t\t\t\tclient.getAdvancedSettings().setControlEncoding(ENCODING);\n\t\t\t\t\n\t\t\t\t//Default mode in AndFTP\n\t\t\t\t//Passive mode\n\t\t\t\tclient.getAdvancedFTPSettings().setConnectMode(FTPConnectMode.PASV);\n\t\t\t\tprintConsole(\"Added passive mode\");\n\t\t\t}\n\n\t\t\tif (!client.isConnected()){\n\t\t\t\tprintConsole(\"User: \"+USERNAME);\n\t\t\t\tprintConsole(\"Pass: HIDDEN\");\n\t\t\t\t\n\t\t\t\tclient.setUserName(USERNAME);\n\t\t\t\tclient.setPassword(PASSWORD); \t\t\t\t\n\t\t\t\t\n\t\t\t\tclient.connect();\n\t\t\t\tprintConsole(\"STATUS: Authenticated\");\t\t\t\t\t\t\t\t\n\t\t\t}\n\n\t\t} catch (IllegalStateException e) {\n\t\t\tprintExceptionConsole(e);\t\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tprintExceptionConsole(e);\t\t\t\t\t\n\t\t} catch (FTPException e) {\n\t\t\tprintExceptionConsole(e);\t\t\t\t\t\n\t\t}\t\t\n\t}",
"KingdomUser getUser(String username);",
"public String connect(String fullURL, String parameters) throws ConnectionException;",
"static void apiSample() {\n ApiClient client = new ApiClient(API_KEY, API_SECRET);\n // get symbol list:\n print(client.getSymbols());\n // get accounts:\n List<Account> accounts = client.getAccounts();\n print(accounts);\n if (!accounts.isEmpty()) {\n // find account id:\n Account account = accounts.get(0);\n long accountId = account.id;\n // create order:\n CreateOrderRequest createOrderReq = new CreateOrderRequest();\n createOrderReq.accountId = String.valueOf(accountId);\n createOrderReq.amount = \"0.02\";\n createOrderReq.price = \"1100.99\";\n createOrderReq.symbol = \"ethcny\";\n createOrderReq.type = CreateOrderRequest.OrderType.BUY_LIMIT;\n Long orderId = client.createOrder(createOrderReq);\n print(orderId);\n // place order:\n String r = client.placeOrder(orderId);\n print(r);\n }\n }",
"public static void openConnection() {\n\t\tarcade.startConnection();\n\t}",
"public void connect() throws IOException, InterruptedException, KeeperException {\n System.out.println(\"Connecting to zookeeper server...\");\n LOG.info(\"Connecting to zookeeper server...\");\n zk = new ZooKeeper(connectString, TIMEOUT,this);\n // wait for session establishment\n connLatch.await();\n mySid = zk.getSessionId();\n LOG.info(\"Connected to zookeeper server. SessionId: {}\", mySid);\n System.out.println(\"Connected to zookeeper server. MyId: \" + Utils.getHexSid(mySid));\n if (!isValidRoot()) {\n LOG.error(\"Invalid zRoot: {}\", root);\n throw new KeeperException.NoNodeException();\n }\n }",
"@Test\n public void cTestGetLoginToken() {\n token = given()\n .param(\"username\", \"playlist\")\n .param(\"password\", \"playlist\")\n .post(\"/login\")\n .jsonPath().getString(\"token\");\n }",
"public Client(String apiAccessKey, String apiSecretKey) throws RpcException {\n this(apiAccessKey, apiSecretKey, new ClientOptions());\n }",
"public boolean connect(String sURL, String sUser, String sPassword) throws JiBXException, IOException {\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sURL+\"?command=connect&user=\"+sUser+\"&password=\"+sPassword);\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n sBaseURL = sURL;\r\n sSecurityToken = oResponse.value;\r\n return true;\r\n } else {\r\n sBaseURL = null;\r\n sSecurityToken = null;\r\n return false;\r\n }\r\n }",
"public void connecting() {\n\n }",
"@Override\r\n\tpublic void startup() {\n\t\t\r\n\t\tString wechatID = \"gh_f49bb9a333b3\";\r\n\t\tString Token = \"spotlight-wechat\";\r\n\t\t\r\n\t\tNoIOClient client = new NoIOClient(\"mg.protel.com.hk\",5010);\r\n\t\tclient.addCRouter(wechatID, Token,null,null);\r\n\t\t\r\n\t\tclient.startup();\r\n\r\n\t}",
"public static void establishConnection() {\n try {\n PropertiesLoader loader = new PropertiesLoader();\n String sshUser = loader.loadProperty().getProperty(\"sshUser\");\n String sshPassword = loader.loadProperty().getProperty(\"sshPassword\");\n String sshHost = loader.loadProperty().getProperty(\"sshHost\");\n int sshPort = Integer.parseInt(loader.loadProperty().getProperty(\"sshPort\"));\n String remoteHost = loader.loadProperty().getProperty(\"remoteHost\");\n int localPort = Integer.parseInt(loader.loadProperty().getProperty(\"localPort\"));\n int remotePort = Integer.parseInt(loader.loadProperty().getProperty(\"remotePort\"));\n\n String dbUrl = loader.loadProperty().getProperty(\"dbUrl\");\n String dbUser = loader.loadProperty().getProperty(\"dbUser\");\n String dbPassword = loader.loadProperty().getProperty(\"dbPassword\");\n\n DatabaseManager.doSshTunnel(sshUser, sshPassword, sshHost, sshPort, remoteHost, localPort, remotePort);\n connection = DriverManager.getConnection(dbUrl, dbUser, dbPassword);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"private void doConnect() throws Exception {\n try {\n Registry reg = LocateRegistry.getRegistry(conf.getNameServiceHost(), conf.getNameServicePort());\n server = (IChatServer) reg.lookup(conf.getServerName());\n } catch (RemoteException e) {\n throw new Exception(\"rmiregistry not found at '\" + conf.getNameServiceHost() + \":\" +\n conf.getNameServicePort() + \"'\");\n } catch (NotBoundException e) {\n throw new Exception(\"Server '\" + conf.getServerName() + \"' not found.\");\n }\n\n //Unir al bot al canal com a usuari\n //el Hashcode li afig un valor unic al nom, per a que ningu\n //li copie el nom com a usuari\n user = new ChatUser(\"bot \" + this.hashCode(), this);\n if (!server.connectUser(user))\n throw new Exception(\"Nick already in use\");\n\n //Comprovar si hi ha canals en el servidor.\n IChatChannel[] channels = server.listChannels();\n if (channels == null || channels.length == 0)\n throw new Exception(\"Server has no channels\");\n \n //Unir el bot a cadascun dels canals\n for (IChatChannel channel : channels) {\n channel.join(user);\n }\n\n System.out.println(\"Bot unit als canals i preparat.\");\n }",
"public Chimney() {\r\n\t\tthis.apikey = DEFAULT_APIKEY;\r\n\t\t//todo manage database connection?\r\n\t}",
"@Test\n public void basicAuthentication() {\n RestAssured.given().auth().basic(\"admin\",\"admin\").when().get(\"https://the-internet.herokuapp.com/basic_auth\").\n then().assertThat().statusCode(200);\n\n //api key is one type of authentication, we can also be authenticated by providing a name and password.\n }",
"public static void setAPIkey(String key) {\n\t\tkey1 = key;\r\n\r\n\r\n\t}",
"Client getClient();",
"protected void login(String username, String password) throws Exception {\n final SecurityClient securityClient = SecurityClientFactory.getSecurityClient();\n securityClient.setSimple(username, password);\n securityClient.login();\n }",
"public DiscordBot() throws LoginException {\n // 1. Setup a EnumSet of GatewayIntent and load all permissions to list\n EnumSet<GatewayIntent> gatewayIntents = initializeGateways();\n // 2. Build JDA Api configuration with api token and permission list\n API = JDABuilder.create(TOKEN, gatewayIntents).build();\n }",
"public Authenticator(String authUrl, String clientId, String clientSecret)\r\n { \r\n RestTemplate rt = new RestTemplate();\r\n \r\n Map<String, String> vars = new HashMap<String, String>();\r\n\r\n vars.put(\"username\", clientId);\r\n vars.put(\"password\", clientSecret);\r\n this.user = rt.postForObject(authUrl, vars, UserInfo.class);\r\n \r\n }",
"public GetTicketByIdService(String username, String apikey) {\r\n\t\tsuper(username, apikey);\t\r\n\t}",
"private void connect() {\n\t\ttry {\n\t\t\tsocket = new Socket(Server.ADDRESS, Server.PORT_NUMBER);\n\t\t\tthis.oos = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tthis.ois = new ObjectInputStream(socket.getInputStream());\n\t\t\tServerListener serverlistener = new ServerListener();\n\t\t\tserverlistener.start();\n\t\t\tRequest request = new Request(RequestCode.START_DOCUMENT_STREAM);\n\t\t\trequest.setUsername(user.getUsername());\n\t\t\toos.writeObject(request);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void sendGenericApiRequest(String apiUrl, String apiKey, String username, String url, SuccessCallback callback) {\n try {\n \n //create http client and post data\n final CloseableHttpClient httpclient = HttpClients.createDefault();\n final HttpPost httpPost = new HttpPost(apiUrl);\n final List<NameValuePair> postData = new ArrayList<NameValuePair>();\n postData.add(new BasicNameValuePair(\"api_token\", apiKey));\n if (username != null) {\n postData.add(new BasicNameValuePair(\"username\", username));\n }\n if (url != null) {\n postData.add(new BasicNameValuePair(\"link\", url));\n }\n \n //set the post data\n httpPost.setEntity(new UrlEncodedFormEntity(postData));\n \n //receive the response\n final CloseableHttpResponse response = httpclient.execute(httpPost);\n final InputStream is = response.getEntity().getContent();\n final String json = IOUtils.toString(is, \"UTF-8\");\n EntityUtils.consume(response.getEntity());\n response.close();\n \n //parse the json and call the callback\n final String result = parseJsonResult(json);\n if(result.equalsIgnoreCase(\"ok\")) {\n informCallback(callback, true);\n } else {\n callback.setError(result);\n informCallback(callback, false);\n }\n \n } catch (IOException ex) {\n Logger.getLogger(YoCommunicator.class.getName()).log(Level.SEVERE, null, ex);\n callback.setError(\"IOException\");\n informCallback(callback, false);\n }\n }",
"public void openConnectionForApplicationTiers(String host, String user, String password) throws JSchException {\n\n\t\ttry {\n\t\t\t/**\n\t\t\t * Open same ssh connections for each host. Host1 will rule other\n\t\t\t * tiers...\n\t\t\t */\n\t\t\tjava.util.Properties config = new java.util.Properties();\n\t\t\tconfig.put(\"StrictHostKeyChecking\", \"no\");\n\n\t\t\tJSch jsch = new JSch();\n\n\t\t\tthis.host3 = jsch.getSession(user, host, 22); // create a channel\n\t\t\tthis.host3.setConfig(config);\n\n\t\t\tthis.host3.setPassword(password);\n\t\t\tthis.host3.connect(); // connection has been created\n\n\t\t\t// Create two ssh shell for execute other application tiers logs\n\t\t\t// simultaneously.\n\t\t\t// Paralel programming\n\n\t\t\tthis.host4 = jsch.getSession(user, host, 22);\n\t\t\tthis.host4.setConfig(config);\n\n\t\t\tthis.host4.setPassword(password);\n\t\t\tthis.host4.connect(); // connection has been created\n\n\t\t\tisConnectedToAppTier = true;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tAlert alert = new Alert(AlertType.ERROR);\n\t\t\talert.setTitle(\"Exception Dialog\");\n\t\t\talert.setHeaderText(\"Authentication Error\");\n\t\t\talert.setContentText(\"Please check your user ID or password!\");\n\n\t\t\tException ex = new JSchException(\"Authentication Error\");\n\n\t\t\talert.showAndWait();\n\t\t\tcontroller.getStartButton().setDisable(false);\n\n\t\t}\n\n\t}",
"private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }",
"public ClientConsole(String loginID, String host, int port) {\n internalLoginID = loginID;\n internalHost = host;\n internalPort = port;\n try {\n client = new ChatClient(loginID, host, port, this);\n System.out.println(loginID + \" has logged on.\");\n } catch (IOException exception) {\n System.out.println(\"Error: Can't open connection. Awaiting Command\");\n }\n }",
"public void connect(String key){\n\t\tif(peers.containsKey(key) || establishing.contains(key)) return;\n\t\t\n\t\testablishing.add(key);\n\t\tPeerNode newPeer = PeerNode.createPeer(key);\n\t\tif(newPeer == null){\n\t\t\tConsole.message(\"A conexao com o par \" + key + \" nao pode ser estabelecida.\");\n\t\t}else{\n\t\t\t// connected successfully\n\t\t\tpeers.put(newPeer.getKey(), newPeer);\n\t\t\tnew Thread(newPeer).start();\n\t\t\tConsole.logEvent(\"CONNECTED\", key);\n\t\t\tgetMainWindow().updateList();\n\t\t}\n\t\testablishing.remove(key);\n\t}",
"public static void requestToken(String username, String password, Context context) {\n SharedPreferences preferences = context.getSharedPreferences(token_storage, 0);\n SharedPreferences.Editor editor = preferences.edit();\n Call<Token> call = kedronService.getToken(\"password\", username, password);\n\n try {\n Log.d(\"Service\", \"Using a new token\");\n auth_token = call.execute().body();\n\n Log.d(\"Service\", \"Token received\");\n\n isTokenPresent = true;\n } catch (IOException e) {\n Log.e(\"TOKEN\", \"Failed to retrieve the token\", e);\n }\n\n header_token = \"Bearer \" + auth_token;\n\n editor.putString(\"token\", auth_token.getToken());\n editor.apply();\n\n bindToken();\n }",
"public void logon ()\n {\n ClientResolutionListener clr = new ClientResolutionListener() {\n public void clientResolved (Name username, ClientObject clobj) {\n // fake up a bootstrap; I need to expose the mechanisms in\n // Presents that create it in a network environment\n BootstrapData data = new BootstrapData();\n data.clientOid = clobj.getOid();\n data.services = EditorServer.invmgr.bootlist;\n\n // and configure the client to operate using the server's\n // distributed object manager\n _client.getContext().getClient().gotBootstrap(\n data, EditorServer.omgr);\n }\n\n public void resolutionFailed (Name username, Exception reason) {\n log.log(Level.WARNING, \"Failed to resolve client [who=\" +\n username + \"].\", reason);\n // TODO: display this error\n }\n };\n EditorServer.clmgr.resolveClientObject(new Name(\"editor\"), clr);\n }",
"private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }"
] | [
"0.60381067",
"0.5945694",
"0.5795684",
"0.55083174",
"0.5452726",
"0.5405414",
"0.5353516",
"0.5341166",
"0.53166544",
"0.5314716",
"0.5313394",
"0.5292531",
"0.52685076",
"0.5265842",
"0.52425027",
"0.5224551",
"0.5220984",
"0.52053535",
"0.51802087",
"0.515664",
"0.51499575",
"0.5141575",
"0.5130413",
"0.51289773",
"0.5119033",
"0.5117377",
"0.5100142",
"0.50892323",
"0.50811565",
"0.5076839",
"0.5073333",
"0.5071253",
"0.5069947",
"0.5067563",
"0.5067563",
"0.5049086",
"0.5026031",
"0.50042766",
"0.5003705",
"0.50027114",
"0.4994548",
"0.49824718",
"0.49799716",
"0.49774417",
"0.49465573",
"0.49385753",
"0.4938296",
"0.4921716",
"0.4920429",
"0.49198037",
"0.49099573",
"0.49009126",
"0.48951364",
"0.48933583",
"0.48925048",
"0.48844814",
"0.4879629",
"0.48703155",
"0.4867872",
"0.48611182",
"0.48572558",
"0.48552644",
"0.48512936",
"0.48466784",
"0.48459908",
"0.48241106",
"0.4822116",
"0.48185208",
"0.48165703",
"0.4812616",
"0.48112348",
"0.48100346",
"0.48076493",
"0.48065123",
"0.48042592",
"0.48037755",
"0.48033336",
"0.4802987",
"0.47979218",
"0.47853377",
"0.4782585",
"0.4781924",
"0.47726178",
"0.47716486",
"0.47715694",
"0.47664633",
"0.4759814",
"0.47500286",
"0.47445783",
"0.4740441",
"0.4739787",
"0.47396213",
"0.4730128",
"0.47280568",
"0.47263485",
"0.47226632",
"0.4717441",
"0.47160155",
"0.47128114",
"0.47095785"
] | 0.68832284 | 0 |
Get the current rate limiting status | public static Map currentRateLimit() throws IOException
{
if (RATE_LIMIT == null)
{
RATE_LIMIT = new URL(URL + "limits");
}
URLConnection connection = RATE_LIMIT.openConnection();
try
{
return (JSONObject) new JSONParser().parse(new InputStreamReader(connection.getInputStream()));
}
catch (ParseException e)
{
e.printStackTrace();
}
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RateLimiter getRateLimiter() {\n return rateLimiter;\n }",
"public RateLimiter getRateLimiter() {\n return rateLimiter;\n }",
"public abstract boolean isRateLimit();",
"public java.lang.Double getLimitUsageRate() {\n return limitUsageRate;\n }",
"void requestRateLimited();",
"public Integer getBuyerRateStatus() {\n return buyerRateStatus;\n }",
"RequestStatus getStatus();",
"private void refreshRateLimit() {\n\t\tfinal String METHOD_NAME = \"refreshRateLimit\";\n\t\tLOGGER.entering(CLASS_NAME, METHOD_NAME);\n\t\tfinal String rateLimitResourceUrl = \"https://api.github.com/rate_limit\";\n\t\tUriComponentsBuilder builder = UriComponentsBuilder.fromHttpUrl(rateLimitResourceUrl)\n\t\t\t\t.queryParam(\"client_id\", clientId).queryParam(\"client_secret\", clientSecret);\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\tResponseEntity<String> response = restTemplate.exchange(builder.toUriString(), HttpMethod.GET,\n\t\t\t\tnew HttpEntity<>(new HttpHeaders()), String.class);\n\t\tif (response.getStatusCode() != HttpStatus.OK) {\n\t\t\tthrow new RateLimitExceededException(\"Error connecting to GitHub. could not refresh rate limit\");\n\t\t}\n\t\ttry {\n\t\t\tJSONParser parser = new JSONParser();\n\t\t\tJSONObject responseObject = (JSONObject) parser.parse(response.getBody());\n\t\t\tJSONObject resources = (JSONObject) responseObject.get(\"resources\");\n\t\t\tJSONObject core = (JSONObject) resources.get(\"core\");\n\t\t\tJSONObject search = (JSONObject) resources.get(\"search\");\n\t\t\tcoreRateLimit = (Long) core.get(\"limit\");\n\t\t\tsearchRateLimit = (Long) search.get(\"limit\");\n\t\t\tLOGGER.logp(Level.INFO, CLASS_NAME, METHOD_NAME, \"Core rate limit : \" + coreRateLimit + \", search rate limit : \" + searchRateLimit);\n\t\t} catch (ParseException ex) {\n\t\t\tLOGGER.logp(Level.SEVERE, CLASS_NAME, METHOD_NAME, ex.getMessage());\n\t\t}\n\t\tLOGGER.exiting(CLASS_NAME, METHOD_NAME);\n\t}",
"public final int getRefreshRate() {\r\n return settings.getRefreshRate();\r\n }",
"public interface RateLimiter {\n\n String rateLimiterId();\n\n boolean isRateLimited(String identity);\n\n}",
"public short getRequestStatus() {\n return requestStatus;\n }",
"public String getRequestStatus() {\n return RequestStatus;\n }",
"private void configureRateLimiterForStatusPanel() {\n if (rateLimiter == null || rateLimiterTableModel == null) {\n return;\n }\n rateLimiter.setObserver(\n limiter -> {\n if ((System.currentTimeMillis() - rateLimiterLastUpdate.get()) > 1000) {\n rateLimiterLastUpdate.set(System.currentTimeMillis());\n SwingUtilities.invokeLater(() -> rateLimiterTableModel.update(limiter));\n }\n });\n }",
"public Double throttleRate() {\n return this.throttleRate;\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public typekey.RateBookStatus getStatus();",
"private int getCurrentLimit(){\n\t\treturn this.LIMIT;\n\t}",
"@java.lang.Override\n public int getRequestStatusValue() {\n return requestStatus_;\n }",
"public static int getStatusFilter() {\r\n return statusFilter;\r\n }",
"@java.lang.Override\n public int getRequestStatusValue() {\n return requestStatus_;\n }",
"com.yandex.ydb.rate_limiter.Resource getResource();",
"int getQuotaModeValue();",
"public int getStatus()\n {\n return status;\n }",
"public boolean getCanLimit(){\n \treturn canLimit.get();\n }",
"boolean getIsLimited();",
"public RateLimiterAction getAction() {\n return action;\n }",
"public int getStatus ()\n {\n return status;\n }",
"public int getStatus ()\n {\n return status;\n }",
"public int getStatus();",
"public int getStatus();",
"public int getStatus();",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public Integer getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"public int getStatus() {\n return status;\n }",
"com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode getQuotaMode();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"public Integer getStatus() {\r\n return status;\r\n }",
"public Integer getStatus() {\r\n return status;\r\n }",
"void rateLimitReset();",
"private float getRefreshRate() {\n return 1;\n }",
"public int getCBRStatus();",
"public abstract String currentStatus();",
"@java.lang.Override\n public im.turms.server.common.access.client.dto.constant.RequestStatus getRequestStatus() {\n im.turms.server.common.access.client.dto.constant.RequestStatus result =\n im.turms.server.common.access.client.dto.constant.RequestStatus\n .forNumber(requestStatus_);\n return result == null\n ? im.turms.server.common.access.client.dto.constant.RequestStatus.UNRECOGNIZED\n : result;\n }",
"public int status() {\n return status;\n }",
"public Long get_cacheparameterizedrequestsrate() throws Exception {\n\t\treturn this.cacheparameterizedrequestsrate;\n\t}",
"@java.lang.Override\n public im.turms.server.common.access.client.dto.constant.RequestStatus getRequestStatus() {\n im.turms.server.common.access.client.dto.constant.RequestStatus result =\n im.turms.server.common.access.client.dto.constant.RequestStatus\n .forNumber(requestStatus_);\n return result == null\n ? im.turms.server.common.access.client.dto.constant.RequestStatus.UNRECOGNIZED\n : result;\n }",
"public RideRequestStatus getStatus() {\n return status;\n }",
"public boolean getIsLimited() {\n return isLimited_;\n }",
"@GET\n\t@Path(\"/status\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getStatus() {\n\t\treturn new JSONObject().put(\"currFloor\", Constants.currFloor).put(\"movingState\", Constants.movingState).toString();\n\t}",
"@RequestMapping(value = \"/get\", method = RequestMethod.GET)\n @ResponseBody\n public ResponseVO getStatus() {\n SettingVO settingVO = settingService.getStatus();\n return ResponseVO.success(settingVO);\n }",
"public Short getStatus() {\n return status;\n }",
"public boolean getIsLimited() {\n return isLimited_;\n }",
"protected abstract String getAllowedRequests();",
"public static CurrentStatus getCurrentStatus() {\n\t\treturn GuiDemo2.currentStatus;\n\t}",
"public Account status() {\n RestRequest request = new RestRequest();\n request.setResource(\"account/status\");\n\n return client.get(request, Account.class);\n }",
"public int getSupplyReadinessRate() {\n return supplyReadinessRate;\n }",
"public Integer getStatus() {\n\t\treturn status;\n\t}",
"public Integer getStatus() {\n\t\treturn status;\n\t}",
"public Integer getSellerRateStatus() {\n return sellerRateStatus;\n }",
"public long getStatus() {\r\n return status;\r\n }",
"Integer getStatus();",
"public int getStatus() {\n return status_;\n }",
"public int getStatus() {\n return status_;\n }",
"public int getStatus() {\n return status_;\n }",
"public int getStatus() {\n return status_;\n }",
"public int getStatus() {\n return status_;\n }",
"public int getStatus() {\n return status_;\n }",
"public int getStatus() {\n return status_;\n }",
"public int getStatus() {\n return status_;\n }"
] | [
"0.711671",
"0.7084794",
"0.66276354",
"0.6562813",
"0.6240613",
"0.6225282",
"0.62037873",
"0.60886914",
"0.60791796",
"0.6023848",
"0.5975333",
"0.5921683",
"0.591782",
"0.59176993",
"0.59046316",
"0.589623",
"0.58896124",
"0.5886675",
"0.5846128",
"0.5835562",
"0.5835215",
"0.57924616",
"0.57900035",
"0.5779938",
"0.5764649",
"0.57532597",
"0.57532597",
"0.57355684",
"0.57355684",
"0.57355684",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.57276374",
"0.5726532",
"0.5726532",
"0.5726532",
"0.5726532",
"0.5726532",
"0.57183176",
"0.56960636",
"0.56960636",
"0.56960636",
"0.56960636",
"0.56960636",
"0.56960636",
"0.56960636",
"0.56960636",
"0.56960636",
"0.56960636",
"0.56960636",
"0.569582",
"0.569582",
"0.569474",
"0.5684487",
"0.5681018",
"0.5669765",
"0.56666154",
"0.5657365",
"0.5652355",
"0.5632735",
"0.5621319",
"0.5614547",
"0.5609461",
"0.5601137",
"0.56000626",
"0.5594474",
"0.5593577",
"0.55916816",
"0.557574",
"0.5567429",
"0.55673295",
"0.55673295",
"0.5562991",
"0.5550783",
"0.5533262",
"0.55297387",
"0.55297387",
"0.55297387",
"0.55297387",
"0.55297387",
"0.55297387",
"0.55297387",
"0.55297387"
] | 0.6232481 | 5 |
Get a list of all user's services | public Map listServices() throws IOException
{
return request(GET, address(null, null));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic List<sn.ucad.master.assurance.bo.Service> findAllService() {\n\t\treturn serviceRepository.findAll();\r\n\t}",
"List<Service> services();",
"public List<String> getAllServices() {\n List<String> allServices = new ArrayList<>();\n for (ServiceDescription service : serviceList.values()) {\n allServices.add(service.getServiceName());\n }\n return allServices;\n }",
"public List<Service> list(){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \treturn criteria.list();\r\n }",
"public List<String> getServices() throws IOException;",
"public List<ServerServices> listServerServices();",
"ImmutableList<T> getServices();",
"public ArrayList<String> DFGetServiceList() {\n return DFGetAllServicesProvidedBy(\"\");\n }",
"public List getAllUsers();",
"public List<Service> getService() {\n\t\treturn ServiceInfo.listService;\n\t}",
"public List<String> getServices() {\n return runtimeClient.getServices();\n }",
"public List<User> getAll() {\n\t\treturn service.getAll();\n\t}",
"public List<Service> findAll();",
"public List<CatalogService> getService(String service);",
"List<User> getUsers();",
"List<User> getUsers();",
"public Map<String, List<String>> getServices();",
"public List<User> getAllUsers();",
"java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();",
"java.util.List<go.micro.runtime.RuntimeOuterClass.Service> \n getServicesList();",
"public List<User> getUsers();",
"List<User> getAllClients();",
"List<User> getAllUsers();",
"List<User> getAllUsers();",
"public List getUsers(User user);",
"public java.util.List<go.micro.runtime.RuntimeOuterClass.Service> getServicesList() {\n if (servicesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(services_);\n } else {\n return servicesBuilder_.getMessageList();\n }\n }",
"public java.util.List<go.micro.runtime.RuntimeOuterClass.Service> getServicesList() {\n if (servicesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(services_);\n } else {\n return servicesBuilder_.getMessageList();\n }\n }",
"@GetMapping\n public List<User> getAllUsers() {\n return userService.getAllUsers();\n }",
"public String[] listUsers();",
"@GetMapping(\"/userslist\")\n\tpublic List<User> usersList() {\n\t\treturn userService.usersList();\n\t}",
"public List<IUser> getUsers();",
"@GetMapping(\"/users\")\n\tpublic List<User> retrieveAllUsers() {\n\t\treturn userService.findAll();\n\t}",
"public List<Servicio> findAll();",
"public List<UserDTO> getUsers();",
"net.zyuiop.ovhapi.api.objects.services.Service getServiceNameServiceInfos(java.lang.String serviceName) throws java.io.IOException;",
"public List<Utilizator> listUsers();",
"@Override\r\n\tpublic List<User> getAll() {\n\t\treturn users;\r\n\t}",
"@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}",
"com.google.ads.googleads.v6.resources.UserList getUserList();",
"public List<User> getUserList();",
"public List<ServiceProvider> services() throws ConsulException {\n try {\n final Self self = self();\n final List<ServiceProvider> providers = new ArrayList<>();\n final HttpResp resp = Http.get(consul().getUrl() + EndpointCategory.Agent.getUri() + \"services\");\n final JsonNode obj = checkResponse(resp);\n for (final Iterator<String> itr = obj.fieldNames(); itr.hasNext(); ) {\n final JsonNode service = obj.get(itr.next());\n final ServiceProvider provider = new ServiceProvider();\n provider.setId(service.get(\"ID\").asText());\n provider.setName(service.get(\"Service\").asText());\n provider.setPort(service.get(\"Port\").asInt());\n // Map tags\n String[] tags = null;\n if (service.has(\"Tags\") && service.get(\"Tags\").isArray()) {\n final ArrayNode arr = (ArrayNode)service.get(\"Tags\");\n tags = new String[arr.size()];\n for (int i = 0; i < arr.size(); i++) {\n tags[i] = arr.get(i).asText();\n }\n }\n provider.setTags(tags);\n provider.setAddress(self.getAddress());\n provider.setNode(self.getNode());\n providers.add(provider);\n }\n return providers;\n } catch (IOException e) {\n throw new ConsulException(e);\n }\n }",
"@Override\r\n\tpublic List<UserVO> userList() {\n\t\treturn adao.UserList();\r\n\t}",
"public java.util.List<go.micro.runtime.RuntimeOuterClass.Service> getServicesList() {\n return services_;\n }",
"public java.util.List<go.micro.runtime.RuntimeOuterClass.Service> getServicesList() {\n return services_;\n }",
"public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;",
"@Override\r\n\tpublic List listAllUser() {\n\t\treturn userDAO.getUserinfoList();\r\n\t}",
"public ArrayList<String> getAllUsers() {\n\t\tSystem.out.println(\"Looking up all users...\");\n\t\treturn new ArrayList<String>(users.keySet());\t\n\t}",
"public String getAllProxyUserAccountService(String root) {\n\t\tList<ProxyUserAccountService> list = new ArrayList<ProxyUserAccountService>();\n\t\tlist = proxyDao.getAllProxyUserAccountService();\n\t\treturn Util.buildExtJsonDataPaging(Util.list2Json(list), root, \"success\", \"totalCount\", list.size());\n\t}",
"public List<User> listAll() throws Exception;",
"@RequestMapping(method = RequestMethod.GET, value = \"/user/getAll\")\n @ApiOperation(value = \"Getting all the products\")\n public Iterable<User> getAll(){\n return userService.getAll();\n }",
"java.util.List<com.google.cloud.compute.v1.ServiceAccount> getServiceAccountsList();",
"public interface UserService {\n List<UserEntity> getAllUserList();\n}",
"public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.servicedirectory.v1beta1.ListServicesResponse>\n listServices(com.google.cloud.servicedirectory.v1beta1.ListServicesRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getListServicesMethod(), getCallOptions()), request);\n }",
"@GetMapping\n public List<User> getAll() {\n return userService.getAll();\n }",
"@RequestMapping(value = \"/users/list\", method = RequestMethod.GET)\n\tpublic @ResponseBody List<UsersDTO> findAllUsers() {\n\t\tlogger.info(\"Return All Users.\");\t\n\t\treturn (List<UsersDTO>) usersService.findAllUsers();\n\t}",
"@GetMapping(\"/users\")\n public List<UserDTO> getAllUsers() throws UserProductException {\n LOG.debug(\"in method getUserStatistics\");\n return userService.getAllUsers();\n }",
"@Programmatic\n public List<Class<?>> allServiceClasses() {\n List<Class<?>> serviceClasses = Lists\n .transform(this.servicesInjector.getRegisteredServices(), new Function<Object, Class<?>>(){\n public Class<?> apply(Object o) {\n return o.getClass();\n }\n });\n // take a copy, to allow eg I18nFacetFactory to add in default implementations of missing services.\n return Collections.unmodifiableList(Lists.newArrayList(serviceClasses));\n }",
"@Override\r\n\tpublic void getAllUser() {\n\t\tSystem.out.println(users);\r\n\t\t\r\n\t}",
"public interface UserFromUtmService {\n public List<UserFromUtm> getUserList();\n}",
"@GetMapping(\"/users\")\n\tpublic ResponseEntity<List<User>> getUsers() {\n\t\tlog.debug(\"REST request to get all Users\");\n\t\treturn new ResponseEntity<List<User>>(userService.getAll(), HttpStatus.OK);\n\t}",
"public ServiceType[] getAllServices() throws LoadSupportedServicesException{\r\n\t\tthis.loadServices();\r\n\t\treturn this.services;\r\n\t}",
"public List<User> getAllUsers() {\n return users;\n }",
"@ApiOperation(value = \"Retourne tous utilisateurs de la BD\")\n @GetMapping(\"/users\")\n @ResponseBody\n public ResponseEntity<Collection<User>> getUsers(){\n Collection<User> users = userService.findAll();\n if (users == null)\n return new ResponseEntity<>(HttpStatus.FORBIDDEN);\n return new ResponseEntity<>(users,HttpStatus.OK);\n }",
"java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();",
"@ManagedAttribute(description = \"Retrieves the list of Registered Services in a slightly friendlier output.\")\n public final List<String> getRegisteredServicesAsStrings() {\n final List<String> services = new ArrayList<>();\n\n for (final RegisteredService r : this.servicesManager.getAllServices()) {\n services.add(new StringBuilder().append(\"id: \").append(r.getId())\n .append(\" name: \").append(r.getName())\n .append(\" serviceId: \").append(r.getServiceId())\n .toString());\n }\n\n return services;\n }",
"List<KingdomUser> getUsers();",
"@Override\n\tpublic List<ServiceFee> getAllServiceByStatus() {\n\t\treturn servicefeerepo.getAllServiceByStatus();\n\t}",
"public List<User> getUserList()\r\n\t{\r\n\t//\tGet the user list\r\n\t//\r\n\t\treturn identificationService.loadUserList();\r\n\t}",
"List<UserDTO> getAllUsers();",
"Collection<Service> getAllSubscribeService();",
"@GetMapping(\"/allusers\")\n\t@Secured({CommonConstants.ROLE_EMPLOYEE,CommonConstants.ROLE_ADMIN})\n\tpublic ResponseEntity<List<UserEntity>> fetchUsers(){\n\t\treturn new ResponseEntity<List<UserEntity>>(this.service.findAll(), HttpStatus.OK);\n\t}",
"public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;",
"@GetMapping(value = URL)\n @ResponseBody\n public List<Users> listAll() {\n return usersService.listAll();\n }",
"public Iterator getServices() {\r\n\t\treturn services == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(services.values());\r\n\t}",
"public List<User> listUsers(String userName);",
"public List/*WsCompileEditorSupport.ServiceSettings*/ getServices();",
"private void listUsers(Request request, Response response) {\r\n\t\tList<UserBean> userList = null;\r\n\r\n\t\ttry {\r\n\t\t\tuserList = userService.findUsers();\r\n\t\t} catch (Exception e) {\r\n\t\t\tresponse.setStatus(Status.SERVER_ERROR_INTERNAL, e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t\tlog.error(e);\r\n\t\t} finally {\r\n\t\t\txmlSerializationService.generateXMLResponse(request, response,\r\n\t\t\t\t\tuserList);\r\n\t\t}\r\n\t}",
"public ArrayList<Service> selectAll(){\n return Database.servico;\n }",
"@GetMapping\n public ResponseEntity<List<UserEntity>> getAllUsers() {\n return ResponseEntity.ok(uService.getAllUsers());\n }",
"List<KingdomUser> getAllUsers();",
"public List<Class<?>> getAllModelServices() {\n\t\treturn ModelClasses.findModelClassesWithInterface(IServiceType.class);\n\t}",
"public static ArrayList<Userdatas> getAllUsersList() {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.GET_ALL_USERS;\n\t\tReceiveContent rpp = sendReceive(rp);\n\t\tArrayList<Userdatas> anagList = (ArrayList<Userdatas>) rpp.parameters[0];\n\t\treturn anagList;\n\t}",
"@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n public ResponseEntity getUsers() {\n logger.debug(\"HTTP GET /users called\");\n List<User> userList = userService.getUsers(0.00, 4000.00);\n\n return new ResponseEntity(new UserResponse(userList), HttpStatus.OK);\n }",
"private Iterable<Service> loadServiceData() {\n return services;\n }",
"Iterable<User> getAllUsers();",
"public List<User> getEnabledUsers();",
"@GetMapping(value = {\"/getAllOfferedServices\", \"/getAllOfferedServices/\"})\n\tpublic List<OfferedServiceDto> getAllOfferedServices() {\n\t\tList<OfferedServiceDto> offeredServiceDtos = new ArrayList<>();\n\t\tfor (OfferedService offeredService: offeredServiceService.getAllOfferedServices()) {\n\t\t\tofferedServiceDtos.add(convertToDto(offeredService));\n\t\t}\n\t\treturn offeredServiceDtos;\n\t}",
"@GET\r\n public List<EnterpriseUserDTO> getEnterpriseUserList(){\r\n List <EnterpriseUserEntity> enterpriseUsers = enterpriseUsersLogic.obtenerEnterpriseUsers();\r\n return EnterpriseUserDTO.toEnterpriseUserList(enterpriseUsers);\r\n }",
"io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList();",
"public List<ServiceInstance> getAllInstances(String serviceName);",
"public void getAllUsers() {\n\t\t\n\t}",
"@GetMapping(path = \"/all\")\n\tpublic @ResponseBody Iterable<SFDC> getAllUsers() {\n\t\treturn sfdcRepository.findAll();\n\t}",
"public ServiceCombo getServices()\n {\n return services;\n }",
"public interface UserService {\n public List<MyUser> getAll();\n}",
"java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();",
"java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();",
"public List<String> listUsers() \n\t{\n\t\treturn this.userList.keys();\n\t\t\n\t}",
"@Override\r\n\tpublic List<User> getUsers() {\n\t\tList<User> userlist=dao.getUsers();\r\n\t\treturn userlist;\r\n\t}",
"public Collection<Service> createServices();",
"public void userListStart() {\n\t\tfor (int i = 0; i < userServices.getAllUsers().length; i++) {\n\t\t\tuserList.add(userServices.getAllUsers()[i]);\n\t\t}\n\t}"
] | [
"0.72270536",
"0.71488476",
"0.6942779",
"0.6856492",
"0.68258125",
"0.6794466",
"0.6732073",
"0.67156833",
"0.66936743",
"0.6657612",
"0.66319436",
"0.6625826",
"0.6605469",
"0.65804935",
"0.6562294",
"0.6562294",
"0.6522436",
"0.6522097",
"0.65133315",
"0.65133315",
"0.65061945",
"0.6489421",
"0.6476006",
"0.6476006",
"0.64388555",
"0.6405392",
"0.6405392",
"0.6380021",
"0.6378235",
"0.6364202",
"0.633685",
"0.63201094",
"0.6317678",
"0.6316306",
"0.6313532",
"0.63079995",
"0.63027364",
"0.6297388",
"0.62953126",
"0.62882453",
"0.62862265",
"0.62654877",
"0.6263458",
"0.6263458",
"0.6249499",
"0.6248496",
"0.6243363",
"0.62394935",
"0.62379384",
"0.6227985",
"0.622485",
"0.6219456",
"0.6213953",
"0.6212043",
"0.62107664",
"0.62055075",
"0.61982197",
"0.619784",
"0.61863965",
"0.6186053",
"0.6185968",
"0.6184134",
"0.61787575",
"0.617791",
"0.6175008",
"0.61705714",
"0.61512834",
"0.6150804",
"0.6148187",
"0.6138384",
"0.6136124",
"0.61328363",
"0.6120411",
"0.6114253",
"0.6105689",
"0.6105631",
"0.6087842",
"0.6086941",
"0.60726035",
"0.60723305",
"0.60594285",
"0.6057336",
"0.6056626",
"0.60560757",
"0.60454917",
"0.60450125",
"0.60418624",
"0.60416514",
"0.603916",
"0.6037155",
"0.60354984",
"0.60199755",
"0.6017574",
"0.6017435",
"0.6015759",
"0.6015137",
"0.6012249",
"0.6012249",
"0.60119206",
"0.60100293"
] | 0.6093577 | 76 |
Get information about a service by given ID | public Map getService(String id) throws IOException
{
return request(GET, address(id, null));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service findServiceById(int Idservice) {\n\t\treturn serviceRepository.findOne(Idservice);\r\n\t}",
"public Service getService(String id) {\n Service service = catalog.getService(id);\n Assert.notNull(service, \"No service with id '%s' found\", id);\n return service;\n }",
"public io.openslice.tmf.sim638.model.Service retrieveService(String serviceID) {\r\n\t\tlogger.info(\"will retrieve Service instance from catalog serviceID=\" + serviceID );\r\n\t\ttry {\r\n\t\t\tObject response = template.\r\n\t\t\t\t\trequestBody( CATALOG_GET_SERVICE_BY_ID, serviceID);\r\n\r\n\t\t\tif ( !(response instanceof String)) {\r\n\t\t\t\tlogger.error(\"Service object is wrong.\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tio.openslice.tmf.sim638.model.Service serviceInstance = toJsonObj( (String)response, io.openslice.tmf.sim638.model.Service.class); \r\n\t\t\t//logger.debug(\"retrieveService response is: \" + response);\r\n\t\t\treturn serviceInstance;\r\n\t\t\t\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"Cannot retrieve Service details from catalog. \" + e.toString());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"String getService_id();",
"public String getServiceID();",
"java.lang.String getServiceId();",
"String getServiceId();",
"public ID getServiceID() {\n\treturn serviceID;\n }",
"public Map serviceStatus(String id) throws IOException\n\t{\n\t\treturn request(GET, address(id, \"stats\"));\n\t}",
"public Service findById(int theId);",
"@Override\n public ServiceID getServiceID() {\n\treturn servID;\n }",
"public Object getService(String serviceName);",
"@GetMapping(\"/costo-servicios/{id}\")\n @Timed\n public ResponseEntity<CostoServicioDTO> getCostoServicio(@PathVariable Long id) {\n log.debug(\"REST request to get CostoServicio : {}\", id);\n CostoServicioDTO costoServicioDTO = costoServicioService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(costoServicioDTO));\n }",
"@RequestMapping(path = \"medservices/search\", method = RequestMethod.GET, params = \"id\")\n public List<MedicalService> getMedicalServicesById(@RequestParam int id){\n return medicalServiceService.findMedicalServicesById(id);\n }",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service consulterService(Integer idService) {\n\t\tService service= (Service) serviceRepository.findOne(idService);\r\n\t\tif(service==null) throw new RuntimeException(\"Service introuvable\");\r\n\t\treturn (sn.ucad.master.assurance.bo.Service) service;\r\n\t}",
"public int getServiceID() {\n return serviceID;\n }",
"@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}",
"@Override\n\tpublic DgCallService getDgCallServiceById(Integer id) {\n\t\treturn dgCallServiceMapper.selectByPrimaryKey(id);\n\t}",
"public Service consult(int id){\t\r\n \tService service =(Service) session.load(Service.class, id) ; \r\n return service;\r\n }",
"Object getService(String serviceName);",
"public ServerServices searchServerService(String serviceName, int servId);",
"@Override\n\tpublic com.easybooking.model.BookedServices getDataById(int id) {\n\t\tcom.easybooking.model.BookedServices services = null;\n\t\tSessionFactory factory = HibernateUtil.getSesssionFactory();\n\t\tSession session = factory.openSession();\n\t\tsession.beginTransaction();\n\t\tservices = session.get(com.easybooking.model.BookedServices.class, id);\n\t\tsession.close();\n\t\tfactory.close();\n\t\treturn services;\n\t}",
"public Integer getServiceid() {\r\n return serviceid;\r\n }",
"@Override\r\n\tpublic ServiceRequest getServiceRequestById(int id) throws SQLException\r\n\t{\r\n\t\tlogger.info(\"DAO getting a service request with ID: \" + id);\r\n \tSystem.out.println(\"DAO getting a service request with ID: \" + id);\r\n \t\r\n \tServiceRequest sr = null;\r\n \tSession session = sessionFactory.getCurrentSession();\r\n \t\r\n\t\tQuery query = session.createQuery(GET_SERVICE_REQUEST_BY_ID_HQL);\r\n\t\tquery.setParameter(\"id\", id);\r\n\t\t\r\n\t\tif (query.list() != null && query.list().size() > 0)\r\n\t\t{\r\n\t\t\tsr = (ServiceRequest) query.list().get(0);\r\n\t\t}\r\n\t\t\r\n\t\treturn sr;\r\n\t}",
"ServiceProducer getServiceProvider(int id);",
"@Override\n\tpublic ServiceFee getById(long id) {\n\t\treturn servicefeerepo.getOne(id);\n\t}",
"public List<CatalogService> getService(String service);",
"net.zyuiop.ovhapi.api.objects.services.Service getServiceNameServiceInfos(java.lang.String serviceName) throws java.io.IOException;",
"@GetMapping(\"/id/{id}\")\n public ResponseEntity<ServiceResult> findById(@PathVariable String id) {\n ServiceResult serviceResult = new ServiceResult();\n AdCampaign adCampaign = new AdCampaign();\n logger.info(\"Start controller call get data from ID - \"+id);\n try {\n adCampaign = adCampaignService.findByIdCustom(id);\n serviceResult.setMessage(\"Get Data from ID\"+id+\" Success\");\n serviceResult.setData(adCampaignService.findByIdCustom(id));\n serviceResult.setStatus(ServiceResult.Status.SUCCESS);\n }catch (Exception ex){\n logger.info(\"Error call get data from ID - \"+id);\n serviceResult.setMessage(ex.getMessage());\n }\n logger.info(\"End call get data from ID - \"+id);\n return new ResponseEntity<ServiceResult>(serviceResult, HttpStatus.OK);\n }",
"public long getId() {\n return mServiceId;\n }",
"public String[] serverInfo(int id) throws RemoteException {\n\t\t\tServiceInfo info = m_services.get(id);\n\t\t\t\n\t\t\tif (info != null)\n\t\t\t\treturn new String[] {info.getName(), info.getNiceTextString()};\n\t\t\telse\n\t\t\t\treturn null;\n\t\t}",
"public ArrayList<ServiceModel> getServiceModel(int idService) {\n ArrayList<ServiceModel> listService = new ArrayList<>();\n Cursor cursor;\n if (idService > 0)\n cursor = db.rawQuery(\"select *\"\n + \" from \" + DBSQLite.TABLE_SERVICE\n + \" where \" + DBSQLite.KEY_SERVICE_ID + \"=\" + idService, null);\n else\n cursor = db.rawQuery(\"select * from \" + DBSQLite.TABLE_SERVICE, null);\n\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n ServiceModel serviceModel = obtainServiceModelCursor(cursor);\n serviceModel.setServicePrice(serviceServicePrice.getServicePriceModel(serviceModel.getId()));\n\n listService.add(serviceModel);\n cursor.moveToNext();\n }\n }\n return listService;\n }",
"public String toString() {\n return getServiceId();\n }",
"java.lang.String getService();",
"java.lang.String getService();",
"java.lang.String getService();",
"@Override\n public ServiceModel queryServiceByInstanceId(String serviceId) throws ApplicationException {\n try {\n return getMapper(ServiceModelMapper.class).queryServiceByInstanceId(serviceId);\n } catch(Exception e) {\n LOGGER.error(\"Fail to query service instance by id : {}\", e);\n throw new ApplicationException(HttpCode.INTERNAL_SERVER_ERROR, ErrorCode.OPER_DB_FAIL);\n }\n }",
"public java.lang.Long getServiceId() {\n return serviceId;\n }",
"public void setServiceid(Integer serviceid) {\r\n this.serviceid = serviceid;\r\n }",
"public ServiceOrder retrieveServiceOrder( String orderid) {\r\n\t\tlogger.info(\"will retrieve Service Order from catalog orderid=\" + orderid );\r\n\t\ttry {\r\n\t\t\tObject response = template.\r\n\t\t\t\t\trequestBody( CATALOG_GET_SERVICEORDER_BY_ID, orderid);\r\n\t\t\t\r\n\t\t\tif ( !(response instanceof String)) {\r\n\t\t\t\tlogger.error(\"Service Order object is wrong.\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tlogger.debug(\"retrieveServiceOrder response is: \" + response);\r\n\t\t\tServiceOrder sor = toJsonObj( (String)response, ServiceOrder.class); \r\n\t\t\t\r\n\t\t\treturn sor;\r\n\t\t\t\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"Cannot retrieve Service Order details from catalog. \" + e.toString());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }",
"void setServiceId(java.lang.String serviceId);",
"public java.lang.Long getServiceId() {\n return serviceId;\n }",
"@GET\n @Path(\"/{id}\")\n @Consumes({\"application/json\"})\n @Produces({\"application/json\"})\n public RestRsp<Tp> getSite(@PathParam(\"id\") final String id) throws ServiceException {\n if(!UuidUtil.validate(id)) {\n ServiceExceptionUtil.throwBadRequestException();\n }\n return new RestRsp<Tp>(ResultConstants.SUCCESS, service.getSite(id));\n }",
"public Service(int id)\r\n {\r\n this.id = id;\r\n \r\n logger = new Logger(this);\r\n }",
"public abstract String getServiceId() throws RcsServiceException;",
"public void testGetServiceById() {\n System.out.println(\"getServiceById\");\n EntityManager em = emf.createEntityManager();\n ServiceDaoImpl sdao = new ServiceDaoImpl(em);\n Service s = getService(\"abc\", new Long(50),\n // 5 days\n new Duration(5 * 24 * 60 * 60 * 1000));\n\n em.getTransaction().begin();\n em.persist(s);\n em.getTransaction().commit();\n\n Long id = s.getId();\n assertNotNull(id);\n assertNotNull(sdao.getServiceById(id));\n assertEquals(s, sdao.getServiceById(id));\n }",
"public JsonNode callInfoService(User user, String service);",
"@GetMapping(\"/service\")\n\tpublic String showService() {\n\t\treturn \"service\";\n\t}",
"public Service(int title, int id) {\n mTitle = title;\n mId = id;\n }",
"public ServiceID getServiceID() {\n\t\treturn null;\n\t}",
"public So_cdVO getById(String so_cd);",
"@GET\n\t@Path(\"{id}\") // http://localhost:8080/myretail-services/products/id/16696652\n\t@Produces(MediaType.TEXT_PLAIN)\n\tpublic String getProductInfo(@PathParam(\"id\") String id) throws JSONException {\n\t\t\n\t\tWebTarget target = ClientBuilder.newClient().target(\"http://redsky.target.com/v2/pdp/tcin/\" + id\n\t\t\t\t+ \"?excludes=taxonomy,price,promotion,bulk_ship,rating_and_review_reviews,rating_and_review_statistics,question_answer_statistics/\");\n\t\tResponse response = target.request().get();\n\t\tString pName = response.readEntity(String.class).toString();\n\n\t\tint b = pName.indexOf(\"general_description\") + BEGOFFSET;\n\t\tint e = pName.indexOf(\"}\", b) - 1;\n\n\t\tJSONObject json = new JSONObject();\n\n\t\tjson.put(\"name\", pName.substring(b, e));\n\t\tjson.put(\"id\", Integer.parseInt(id));\n\t\tjson.put(\"current_price\", new JSONObject(productPrice.getProductPrice(id)));\n\t\treturn json.toString();\n\t}",
"public ServiceID getServiceID() {\n return null;\n }",
"java.lang.String getServiceName();",
"java.lang.String getServiceName();",
"public String serviceInfo(){\n String msj = \"\";\n\n msj = \"Nombre del servicio: \" + serviceName;\n msj = \"Costo: \" + cost;\n msj = \"Fecha de realizacion: \" + date;\n msj = \"La ID de la mascota es: \" + petID;\n msj = \"La ID del cliente es: \" + clientID;\n\n return msj;\n }",
"public void getProfileInfo(String id) {\n\n new WebRequestTask(this, _handler, Constants.GET_METHOD,\n WebServiceDetails.GET_PROFILE_INFO_PID, true, WebServiceDetails.GET_PROFILE_INFO + id).execute();\n }",
"public ServiceSpecification retrieveServiceSpec(String specid) {\r\n\t\tlogger.info(\"will retrieve Service Specification from catalog orderid=\" + specid );\r\n\t\t\r\n\t\ttry {\r\n\t\t\tObject response = template.\r\n\t\t\t\t\trequestBody( CATALOG_GET_SERVICESPEC_BY_ID, specid);\r\n\r\n\t\t\tif ( !(response instanceof String)) {\r\n\t\t\t\tlogger.error(\"Service Specification object is wrong.\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tServiceSpecification sor = toJsonObj( (String)response, ServiceSpecification.class); \r\n\t\t\t//logger.debug(\"retrieveSpec response is: \" + response);\r\n\t\t\treturn sor;\r\n\t\t\t\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"Cannot retrieve Service Specification details from catalog. \" + e.toString());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"Optional<SygTypeServiceDTO> findOne(Long id);",
"public String getService() {\n\t\treturn service.get();\n\t}",
"public void getDetail(int id) {\n\t\t\n\t}",
"private void getOrderServiceFee(Long id) {\n new FetchOrderServiceFee(id, new FetchOrderServiceFee.InvokeOnCompleteAsync() {\n @Override\n public void onComplete(String orderServiceFee) {\n updateServiceFee(Float.valueOf(orderServiceFee));\n }\n\n @Override\n public void onError(Throwable e) {\n LoggerHelper.showErrorLog(\"Error: \", e);\n }\n });\n }",
"public EstacionServicio getListadoPorId(int id) throws Exception {\n\t\t\t\t\n\t\t\t\tConnection conn = ds.getConnection();\n\t\t\t\tEstacionServicio idLista = null;\n\t\t\t\tPreparedStatement stmt = conn.prepareStatement(\"SELECT * FROM ESTACION_SERVICIO WHERE id = ?\");\n\t\t\t\tstmt.setInt(1, id);\n\t\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\t\tif (rs.next()){\n\t\t\t\t\tidLista = new EstacionServicio(rs.getInt(1),rs.getString(2),rs.getDate(3),rs.getFloat(4),rs.getFloat(5),rs.getString(6));\n\t\t\t\t}\n\t\t\t\tif (rs != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\trs.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstmt.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\treturn idLista;\n\t\t\t\n\t\t\t}",
"String serviceId(RequestContext ctx) {\n\n String serviceId = (String) ctx.get(SERVICE_ID);\n if (serviceId == null) {\n log.info(\"No service id found in request context {}\", ctx);\n }\n return serviceId;\n }",
"@Override\n\tpublic String printServiceInfo() {\n\t\treturn serviceName;\n\t}",
"public void getClientFromBon(int id) {\n\t\tClient client = clientOperations.getClientFromBon(id);\n\t\tSystem.out.println(client.toString());\n\t}",
"@Override\n\tpublic Map<String, Object> getInfo(String id) {\n\t\treturn null;\n\t}",
"String get(String id);",
"public String getServiceName();",
"public Service getService(Object serviceKey) throws RemoteException {\n Service theService = (Service) serviceList.get(serviceKey);\n return theService;\n }",
"public void setServiceID(int value) {\n this.serviceID = value;\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"String getServiceName();",
"String getServiceName();",
"@Override\n public ServiceCall<NotUsed, Product> getProductById(String id) {\n return request -> CompletableFuture\n .completedFuture(productRepository.getProduct(id));\n }",
"public synchronized ServiceProxy lookup(String serviceId, String version) {\n \tServiceProxy serviceProxy = lookup(null, version, serviceId, getOperation(), (TransportType) null); \n \treturn serviceProxy;\n\t}",
"@RequestMapping(value = \"/info\", method = RequestMethod.GET)\n public String info() {\n return serviceName;\n }",
"@GetMapping(\"/statuts/{id}\")\n public Status selectByIdStatut(@PathVariable(\"id\") int id) {\n \tOptional<Status> statut = serviceStatut.selectByIdStatut(id);\n \tif(!statut.isPresent()) {\n \t\treturn null;\n \t}\n \treturn statut.get();\n }",
"public String getService(){\n\t\t return service;\n\t}",
"Object getService(String serviceName, boolean checkExistence);",
"public ServiceDetails getServiceDetails()\n {\n return data.serviceDetails;\n }",
"@Transient\n\tpublic String getServiceId()\t{\n\t\treturn mServiceId;\n\t\t//else return \"N/A\";\n\t}",
"public List<String> retrieveServicesOfOrder(String orderID) {\r\n\t\tlogger.info(\"will retrieve ActiveServiceOfExternalPartners\" );\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tObject response = template.\r\n\t\t\t\t\trequestBody( CATALOG_GET_SERVICE_BY_ORDERID, orderID );\r\n\r\n\t\t\tlogger.debug(\"will retrieve ServicesOfOrder response: \" + response.getClass() );\r\n\t\t\tif ( !(response instanceof String)) {\r\n\t\t\t\tlogger.error(\"List object is wrong.\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\tString[] sor = toJsonObj( (String)response, String[].class ); \r\n\t\t\tlogger.debug(\"ServicesOfOrder response is: \" + response);\r\n\t\t\t\r\n\t\t\treturn Arrays.asList(sor);\r\n\t\t\t\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"Cannot retrieve Listof ServicesOfOrder . \" + e.toString());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void getByID(String ID) {\n\t\tString endpoint = \"bookinfo/get.php\";\n\t\tHashMap<String, String> dict = new HashMap<>();\n\t\tdict.put(\"bookID\", ID);\n\t\ttry {\n\t\t\tHashMap<String, Object> result = APIClient.get(BookInfo.host + endpoint, dict);\n\t\t\tif ( result.get(\"status_code\").equals(\"Success\") ) {\n\t\t\t\tJSONObject o = (JSONObject) result.get(\"result\");\n\t\t\t\tthis.title = o.getString(\"title\");\n\t\t\t\tthis.author = o.getString(\"author\");\n\t\t\t\tthis.publisher = o.getString(\"publisher\");\n\t\t\t\tthis.isbn = o.getString(\"isbn\");\n\t\t\t\tthis.bookID = o.getString(\"bookID\");\n\t\t\t\tthis.valid = true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.valid = false;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"ServiceEntity getService();",
"public List<ServerServices> searchExternalService(int servId, String dataPort, String servicePort);",
"public void setServiceID(ID sid) {\n\tserviceID = sid;\n }",
"@Service\npublic interface MS013002GetDetailService {\n /**\n * [Description]: Method find a holiday with id specification<br/>\n * [ Remarks ]:<br/>\n *\n * @param id\n * @return MS013002UpdateResponse - Model contain data what need to send to client\n */\n BaseResponse getDetail(long holidayID, int companyID);\n}",
"public ID getMainService() { \r\n\t\tID retVal = this.getTypedField(46, 0);\r\n\t\treturn retVal;\r\n }",
"@Override\n\tpublic List<SupplierProductDTO> getAllSupplierProductsByServiceId(\n\t\t\tInteger serviceId) {\n\n\n\n\t\tloggerService\n\t\t\t\t.logServiceInfo(\"Start getAllSupplierProductsByServiceId Method with serviceId \"\n\t\t\t\t\t\t+ serviceId);\n\n\t\ttry {\n\n\t\t\tString query = \"select model from SupplierProduct model where model.productId.serviceId.id = \"+serviceId;\n\t\t\tList<SupplierProduct> result = baseDao.findListByQuery(query);\n\n\t\t\tloggerService.logServiceInfo(\"End getAllSupplierProductsByServiceId Method\");\n\t\t\treturn mapper.mapAsList(result, SupplierProductDTO.class);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\tloggerService.logServiceError(\"can't getAllSupplierProductsByServiceId \", e);\n\t\t\treturn null;\n\t\t}\n\t\n\t\n\t\n\t\n\t}",
"public interface IService<T, genericID> {\n\n T create(T t);\n T read(genericID id);\n T update(T t);\n boolean delete(genericID id);\n\n\n\n\n }",
"@GET\n @Path(\"{id}\")\n @Produces({ \"application/json\" })\n public abstract Response find(@PathParam(\"id\") Long id);",
"private URI getInstanceUri(String serviceId) {\n List<ServiceInstance> serviceInstances = discoveryClient.getInstances(serviceId);\n if (serviceInstances.size() > 0) {\n return serviceInstances.get(0).getUri();\n } else {\n log.warn(\"Service Instance not found for service \" + serviceId + \"!\");\n return null;\n }\n }",
"com.microsoft.schemas._2003._10.serialization.Guid xgetServiceId();"
] | [
"0.71730316",
"0.7164763",
"0.7038308",
"0.7037881",
"0.6867592",
"0.6738297",
"0.6712259",
"0.6684083",
"0.66554177",
"0.65355587",
"0.6516214",
"0.6473314",
"0.64692503",
"0.64681894",
"0.6445074",
"0.6438977",
"0.6335986",
"0.63300997",
"0.6320326",
"0.6314959",
"0.6301487",
"0.6289135",
"0.6276489",
"0.62699646",
"0.62638587",
"0.6224623",
"0.6221888",
"0.6215909",
"0.6202423",
"0.61730665",
"0.6113322",
"0.6080542",
"0.607001",
"0.60363555",
"0.60363555",
"0.60363555",
"0.6031808",
"0.60195845",
"0.60075706",
"0.60066724",
"0.5976845",
"0.59747857",
"0.59348",
"0.5902547",
"0.5897558",
"0.5857303",
"0.58571166",
"0.58538586",
"0.58220375",
"0.5813253",
"0.5790638",
"0.577452",
"0.57678425",
"0.5762474",
"0.57606447",
"0.57606447",
"0.57549626",
"0.57432264",
"0.57405764",
"0.5728547",
"0.5727474",
"0.5726988",
"0.5726488",
"0.5723144",
"0.5719682",
"0.5708482",
"0.57055706",
"0.57030225",
"0.5700031",
"0.56960917",
"0.5684633",
"0.5680199",
"0.5675691",
"0.5675691",
"0.5675691",
"0.56584936",
"0.56584936",
"0.5648727",
"0.5639952",
"0.5637463",
"0.5633596",
"0.5629868",
"0.5625219",
"0.5599888",
"0.55862224",
"0.55859613",
"0.5567345",
"0.5565648",
"0.5565648",
"0.5565648",
"0.5563942",
"0.5547274",
"0.5545839",
"0.5543164",
"0.55416363",
"0.55296844",
"0.5525869",
"0.5519152",
"0.5508985",
"0.55086213"
] | 0.73174673 | 0 |
Get status, disk, ram and CPU stats of a service by given ID | public Map serviceStatus(String id) throws IOException
{
return request(GET, address(id, "stats"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"/meter-statuses/{id}\")\n @Timed\n public ResponseEntity<MeterStatus> getMeterStatus(@PathVariable Long id) {\n log.debug(\"REST request to get MeterStatus : {}\", id);\n MeterStatus meterStatus = meterStatusService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(meterStatus));\n }",
"private RFSServiceSummary processService(Service service) {\n \t\tIMonitoringSummary serviceSummary = monitoringStateModel\n \t\t\t\t.summary(service);\n\t\tserviceSummary.addContextObject(new ObjectContext<DateTimeRange>(\n\t\t\t\tgetPeriod()));\n \t\tserviceSummary.compute(new NullProgressMonitor());\n \n \t\tif (serviceSummary instanceof RFSServiceSummary) {\n \n \t\t\tfinal ReportingEngine engine = (ReportingEngine) getEngine();\n \t\t\tengine.setService(service);\n \t\t\tengine.setServiceSummary((RFSServiceSummary) serviceSummary);\n \t\t\tengine.setJobMonitor(getJobMonitor());\n \t\t\tengine.setDataProvider(this.getDataProvider());\n \t\t\tengine.setPeriod(getPeriod());\n \t\t\tengine.execute();\n \t\t\tif (engine.getFailures().size() > 0) {\n \t\t\t\t// Don't add anmy\n \t\t\t\tthis.getFailures().addAll(engine.getFailures());\n \t\t\t}\n \t\t\treturn (RFSServiceSummary) serviceSummary;\n \t\t}\n \t\treturn null;\n \t}",
"public Map getService(String id) throws IOException\n\t{\n\t\treturn request(GET, address(id, null));\n\t}",
"public Stats getStatsById(int id) {\n\t\tStats s = null;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString statByIdRecords_sql = \"SELECT * FROM \" + stats_table + \" WHERE id='\" + id + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(statByIdRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\ts = new Stats(rs.getInt(3), rs.getInt(4), rs.getInt(5), rs.getInt(6));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn s;\n\t}",
"@GetMapping(\"/statuts/{id}\")\n public Status selectByIdStatut(@PathVariable(\"id\") int id) {\n \tOptional<Status> statut = serviceStatut.selectByIdStatut(id);\n \tif(!statut.isPresent()) {\n \t\treturn null;\n \t}\n \treturn statut.get();\n }",
"private static void listCounters(String pid) {\n VmIdentifier vmId = null;\n try {\n vmId = new VmIdentifier(pid);\n } catch (URISyntaxException e) {\n System.err.println(\"Malformed VM Identifier: \" + pid);\n return;\n }\n try {\n MonitoredHost monitoredHost = MonitoredHost.getMonitoredHost(vmId);\n MonitoredVm monitoredVm = monitoredHost.getMonitoredVm(vmId, -1);\n JStatLogger logger = new JStatLogger(monitoredVm);\n logger.printSnapShot(\"\\\\w*\", // all names\n new AscendingMonitorComparator(), // comparator\n false, // not verbose\n true, // show unsupported\n System.out);\n monitoredHost.detach(monitoredVm);\n } catch (MonitorException ex) {\n ex.printStackTrace();\n }\n }",
"public List<ServiceHealth> getServiceInstances(String service);",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service findServiceById(int Idservice) {\n\t\treturn serviceRepository.findOne(Idservice);\r\n\t}",
"@RequestMapping(path = \"medservices/search\", method = RequestMethod.GET, params = \"id\")\n public List<MedicalService> getMedicalServicesById(@RequestParam int id){\n return medicalServiceService.findMedicalServicesById(id);\n }",
"public ArrayList<ServiceModel> getServiceModel(int idService) {\n ArrayList<ServiceModel> listService = new ArrayList<>();\n Cursor cursor;\n if (idService > 0)\n cursor = db.rawQuery(\"select *\"\n + \" from \" + DBSQLite.TABLE_SERVICE\n + \" where \" + DBSQLite.KEY_SERVICE_ID + \"=\" + idService, null);\n else\n cursor = db.rawQuery(\"select * from \" + DBSQLite.TABLE_SERVICE, null);\n\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n ServiceModel serviceModel = obtainServiceModelCursor(cursor);\n serviceModel.setServicePrice(serviceServicePrice.getServicePriceModel(serviceModel.getId()));\n\n listService.add(serviceModel);\n cursor.moveToNext();\n }\n }\n return listService;\n }",
"public MonitoredElementMonitoringSnapshot getMonitoringData(String serviceId) throws EpsException {\n\n\t\tResponse response = client.target(getBaseUri())\n\t\t\t\t.path(DATA_PATH)\n\t\t\t\t.resolveTemplate(\"serviceId\", serviceId)\n\t\t\t\t.request(MediaType.APPLICATION_XML)\n\t\t\t\t.header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_XML)\n\t\t\t\t.get();\n\n\t\tprocessResponseStatus(response);\n\n\t\tMonitoredElementMonitoringSnapshot result = response.readEntity(MonitoredElementMonitoringSnapshot.class);\n\n\t\tLOG.info(ln + \"getMonitoringData '{}'. Response: '{}'\", serviceId, result);\n\n\t\treturn result;\n\t}",
"public void readCpuStat() {\n\t\ttry {\n\t\t\t// monitor total and idle cpu stat of certain process\n\t\t\tRandomAccessFile cpuInfo = new RandomAccessFile(\"/proc/stat\", \"r\");\n\t\t\tString[] toks = cpuInfo.readLine().split(\"\\\\s+\");\n\t\t\tidleCpu = Long.parseLong(toks[4]);\n\t\t\ttotalCpu = Long.parseLong(toks[1]) + Long.parseLong(toks[2])\n\t\t\t\t\t+ Long.parseLong(toks[3]) + Long.parseLong(toks[4])\n\t\t\t\t\t+ Long.parseLong(toks[6]) + Long.parseLong(toks[5])\n\t\t\t\t\t+ Long.parseLong(toks[7]);\n\t\t\tcpuInfo.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t} catch (IOException e) {\n\t\t}\n\t}",
"@Override\n\tpublic int getStatus(Integer id) {\n\t\tint status = taxTaskDao.getStatus(id);\n\t\treturn status;\n\t}",
"public String[] serverInfo(int id) throws RemoteException {\n\t\t\tServiceInfo info = m_services.get(id);\n\t\t\t\n\t\t\tif (info != null)\n\t\t\t\treturn new String[] {info.getName(), info.getNiceTextString()};\n\t\t\telse\n\t\t\t\treturn null;\n\t\t}",
"public Service getService(String id) {\n Service service = catalog.getService(id);\n Assert.notNull(service, \"No service with id '%s' found\", id);\n return service;\n }",
"@GetMapping(\"/costo-servicios/{id}\")\n @Timed\n public ResponseEntity<CostoServicioDTO> getCostoServicio(@PathVariable Long id) {\n log.debug(\"REST request to get CostoServicio : {}\", id);\n CostoServicioDTO costoServicioDTO = costoServicioService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(costoServicioDTO));\n }",
"public Status getStatus(int id) {\n\t\treturn null;\r\n\t}",
"@GetMapping(\"/byid/{id}\")\r\n public ResponseEntity<TaskStatus> getTaskStatusById(@PathVariable(value = \"id\") Long id) {\r\n\r\n TaskStatus tsk = dao.findOne(id);\r\n\r\n if (tsk == null) {\r\n return ResponseEntity.notFound().build();\r\n }\r\n return ResponseEntity.ok().body(tsk);\r\n\r\n }",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service consulterService(Integer idService) {\n\t\tService service= (Service) serviceRepository.findOne(idService);\r\n\t\tif(service==null) throw new RuntimeException(\"Service introuvable\");\r\n\t\treturn (sn.ucad.master.assurance.bo.Service) service;\r\n\t}",
"@Synchronized\n private static String showStats(Map<String, ServiceStats> stats, String title) {\n List<ServiceStats> view = new ArrayList<>();\n view.addAll(stats.values());\n view.sort((o1, o2) -> o1.getTotalTime() > o2.getTotalTime() ? 1 : -1);\n StringBuilder buff = new StringBuilder(2048);\n buff.append(\" calls min max total avg name\\n\");\n view.stream().map(s -> str(\"%9s %9s %9s %9s %9s %s\\n\",\n s.getCalls(),\n s.getMinTime(),\n s.getMaxTime(),\n s.getTotalTime(),\n s.getTotalTime() / s.getCalls(),\n s.getService().replaceAll(\"\\\\[\", \"(\").replaceAll(\"]\", \")\"))).forEach(buff::append);\n String lines = buff.toString();\n log.info(\"\\n\" + title + \" - services performance (ms): \\n{}\", lines);\n return lines;\n }",
"net.zyuiop.ovhapi.api.objects.services.Service getServiceNameServiceInfos(java.lang.String serviceName) throws java.io.IOException;",
"public interface StatisticsService {\n\n public void addStatistics(Statistics statistics);\n\n public void updateStatisctics(Statistics statistics);\n\n public void deleteStatistics(Statistics statistics);\n\n public Statistics finsStatistics(int id);\n\n public List<Statistics> findStatistics();\n\n public List<Statistics> findStatisticsByUser(User user);\n}",
"public String getAvailableMetrics(\n\t\t\tString serviceId,\n\t\t\tString monitoredElementID) throws EpsException {\n\n\t\tResponse response = client.target(getBaseUri())\n\t\t\t\t.path(GET_DATA_LASTX_PATH)\n\t\t\t\t.resolveTemplate(\"serviceId\", serviceId)\n\t\t\t\t.queryParam(\"monitoredElementID\", monitoredElementID)\n\t\t\t\t.request(MediaType.APPLICATION_XML)\n\t\t\t\t.header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_XML)\n\t\t\t\t.get();\n\n\t\tprocessResponseStatus(response);\n\n\t\tString result = response.readEntity(String.class);\n\n\t\tLOG.info(ln + \"getAvailableMetrics '{}'. Response: '{}'\", serviceId, result);\n\n\t\treturn result;\n\t}",
"@DISPID(6) //= 0x6. The runtime will prefer the VTID if present\r\n @VTID(13)\r\n short stat();",
"@GetMapping(\"/{id}\")\r\n public ResponseEntity<?> findAllStatsBySportId(@PathVariable long id) {\r\n List<SportStats> allSportsById = sportStatsService.findAllStatsBySportId(id);\r\n return new ResponseEntity<>(allSportsById, HttpStatus.OK);\r\n }",
"private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }",
"public String populateStats(String id) {\n\t\tElement e = mDom.getElementById(id);\n\t\tString retVal = \"\";\n\t\tif (!e.getTagName().equals(\"stats\")) {\n\t\t\tToast.makeText(clinicalGuideContext,\n\t\t\t\t\t\"Error! \" + id + \" is not an id of a <stats> tag\",\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\treturn retVal;\n\t\t}\n\n\t\tstatsName = ParserHelper.requiredAttributeGetter(e, \"name\");\n\n\t\tif (statsName != null) {\n\t\t\tStats stats = new Stats(getQuestions(e), e.getAttribute(\"name\"));\n\t\t\tStatsGenerator sqb = new StatsGenerator(clinicalGuideContext, stats);\n\t\t\tretVal = sqb.getStatsString();\n\t\t}\n\n\t\treturn retVal;\n\t}",
"protected StatusService getStatusService() {\n return getLockssDaemon().getStatusService();\n }",
"@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}",
"public static cache_stats get(nitro_service service) throws Exception{\n\t\tcache_stats obj = new cache_stats();\n\t\tcache_stats[] response = (cache_stats[])obj.stat_resources(service);\n\t\treturn response[0];\n\t}",
"@Override\n\tpublic Health getHealthInfo(String id) {\n\t\t RestTemplate restTemplate = new RestTemplate();\n\t\t \n\t\t Health healthInfo = restTemplate.getForObject(BASE_URL + HEALTH_STATUS_URL, Health.class, id);\n\t\t logger.debug(\"Employee Info :\" + healthInfo);\n\t\treturn healthInfo;\n\t}",
"public String getSwitchStats(String dpidStr) throws DPIDNotFound,\n\t\t\tPermissionDeniedException;",
"public interface SerService {\n\n List<SService> findwithPageInfo(Integer pageNo, Integer pageSize);\n\n PageInfo<SService> getPageInfo(Integer pageSize);\n\n SService findById(Integer id);\n\n void modi(SService sService);\n\n void add(SService sService, String samePasswd);\n\n void setStateS(Integer id);\n\n void delS(Integer id);\n\n\n List<SService> findS(String osUsername, String unixHost, String status, Integer accountId);\n\n void updateCost(SService sService);\n}",
"List<ServiceSegmentModel> queryServiceSegments(@Param(\"serviceId\") String serviceId);",
"public io.openslice.tmf.sim638.model.Service retrieveService(String serviceID) {\r\n\t\tlogger.info(\"will retrieve Service instance from catalog serviceID=\" + serviceID );\r\n\t\ttry {\r\n\t\t\tObject response = template.\r\n\t\t\t\t\trequestBody( CATALOG_GET_SERVICE_BY_ID, serviceID);\r\n\r\n\t\t\tif ( !(response instanceof String)) {\r\n\t\t\t\tlogger.error(\"Service object is wrong.\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tio.openslice.tmf.sim638.model.Service serviceInstance = toJsonObj( (String)response, io.openslice.tmf.sim638.model.Service.class); \r\n\t\t\t//logger.debug(\"retrieveService response is: \" + response);\r\n\t\t\treturn serviceInstance;\r\n\t\t\t\r\n\t\t}catch (Exception e) {\r\n\t\t\tlogger.error(\"Cannot retrieve Service details from catalog. \" + e.toString());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@GetMapping(\"/users/{id}\")\r\n public ResponseEntity<?> findAllStatsByUserId(@PathVariable long id) {\r\n List<SportStats> allSportsByUserId = sportStatsService.findAllStatsByUserId(id);\r\n return new ResponseEntity<>(allSportsByUserId, HttpStatus.OK);\r\n }",
"public List<Stat> getResourceStats(String siteId) {\n\t\treturn getResourceStats(siteId, null, null, getInitialActivityDate(siteId), null, null, false, null, null, null, true, 0);\n\t}",
"public Service consult(int id){\t\r\n \tService service =(Service) session.load(Service.class, id) ; \r\n return service;\r\n }",
"@Override\n\tpublic Map<String, Object> readHitos(int id) {\n\t\treturn hitosDao.readHitos(id);\n\t}",
"public Integer getServicestatusid() {\r\n return servicestatusid;\r\n }",
"public static void dumpVmMetrics(String incidentId)\n {\n PrintWriter writer = null;\n try\n {\n String dumpFile = EventUtil.getDumpPathPrefix() + \"/\" +\n INC_DUMP_FILE_NAME + incidentId + INC_DUMP_FILE_EXT;\n\n final OutputStream outStream =\n new GZIPOutputStream(new FileOutputStream(dumpFile));\n writer = new PrintWriter(outStream, true);\n\n final VirtualMachineMetrics vm = VirtualMachineMetrics.getInstance();\n writer.print(\"\\n\\n\\n--------------------------- METRICS \"\n + \"---------------------------\\n\\n\");\n writer.flush();\n JsonFactory jf = new JsonFactory();\n jf.disable(JsonGenerator.Feature.AUTO_CLOSE_TARGET);\n ObjectMapper mapper = new ObjectMapper(jf);\n\n mapper.registerModule(new JodaModule());\n mapper.setDateFormat(new ISO8601DateFormat());\n mapper.configure(SerializationFeature.INDENT_OUTPUT, true);\n MetricsServlet metrics = new MetricsServlet(Clock.defaultClock(),\n vm,\n Metrics.defaultRegistry(),\n jf,\n true);\n\n final JsonGenerator json = jf.createGenerator(outStream,\n JsonEncoding.UTF8);\n json.useDefaultPrettyPrinter();\n json.writeStartObject();\n\n // JVM metrics\n writeVmMetrics(json, vm);\n\n // Components metrics\n metrics.writeRegularMetrics(json, // json generator\n null, // class prefix\n false); // include full samples\n\n json.writeEndObject();\n json.close();\n\n logger.debug(\"Creating full thread dump in dump file {}\", dumpFile);\n\n // Thread dump next....\n writer.print(\"\\n\\n\\n--------------------------- THREAD DUMP \"\n + \"---------------------------\\n\\n\");\n writer.flush();\n\n vm.threadDump(outStream);\n\n logger.debug(\"Dump file {} is created.\", dumpFile);\n }\n catch (Exception exc)\n {\n logger.error(\n \"Unable to write dump file, exception: {}\", exc.getMessage());\n }\n finally\n {\n if (writer != null)\n {\n writer.close();\n }\n }\n }",
"Map<String, Object> getStats();",
"private void dumpService(ServiceExt service)\n {\n log(\"* Service Information\");\n log(\"*\");\n log(\"* Service Name: \" + service.getName());\n log(\"* Service Number: \" + service.getServiceNumber());\n log(\"* Service MinorNumber: \" + service.getMinorNumber());\n assertNotNull(\"Service ServiceType cannot be null\", service.getServiceType());\n log(\"* Service Type: \" + service.getServiceType());\n log(\"* Service hasMultipleInstances: \" + service.hasMultipleInstances());\n assertNotNull(\"Service Locator cannot be null\", service.getLocator());\n log(\"* Service Locator: \" + service.getLocator());\n assertNotNull(\"Service Handle cannot be null\", service.getServiceHandle());\n log(\"* Service Handle: \" + service.getServiceHandle());\n log(\"*\");\n }",
"public Services(){\n ID = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n state = STATUS_IN_PROGRESS;\n name = \"\";\n date = \"\";\n description = \"\";\n note = \"\";\n mileage = 000000;\n }",
"@GetMapping(\"/bytaskid/{id}\")\r\n public List<TaskStatus> getByTaskId(@PathVariable(value = \"id\") Long id) {\r\n\r\n List<TaskStatus> tsk = dao.findByTaskID(id);\r\n return tsk;\r\n\r\n }",
"public Mono<Response<StorageServiceStats>> getStatistics() {\n return storageAsyncRawClient\n .getStatistics()\n .map(rb -> new SimpleResponse<>(rb, rb.value()));\n }",
"public String getAllRunningServices() {\n return \"\";\n }",
"public void setServiceid(Integer serviceid) {\r\n this.serviceid = serviceid;\r\n }",
"public EstacionServicio getListadoPorId(int id) throws Exception {\n\t\t\t\t\n\t\t\t\tConnection conn = ds.getConnection();\n\t\t\t\tEstacionServicio idLista = null;\n\t\t\t\tPreparedStatement stmt = conn.prepareStatement(\"SELECT * FROM ESTACION_SERVICIO WHERE id = ?\");\n\t\t\t\tstmt.setInt(1, id);\n\t\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\t\tif (rs.next()){\n\t\t\t\t\tidLista = new EstacionServicio(rs.getInt(1),rs.getString(2),rs.getDate(3),rs.getFloat(4),rs.getFloat(5),rs.getString(6));\n\t\t\t\t}\n\t\t\t\tif (rs != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\trs.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stmt != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tstmt.close();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\treturn idLista;\n\t\t\t\n\t\t\t}",
"public ServerServices searchServerService(String serviceName, int servId);",
"public ArrayList getStatisticiTot(int id) {\n c = db.rawQuery(\"select st.procent, cr.id from statistici st join caroserii cr ON st.caroserie_id=cr.id where st.id=\" + id , new String[]{});\n ArrayList lista = new ArrayList();\n while (c.moveToNext()) {\n int procente=c.getInt(0);\n int caroserie=c.getInt(1);\n lista.add(procente);\n lista.add(caroserie);\n }\n return lista;\n }",
"@RequestMapping(value=\"/{id}\", method=RequestMethod.GET)\n\tpublic ResponseEntity<PetSrvReq> getById(@PathVariable int id) {\n\t\treturn new ResponseEntity<PetSrvReq>(psService.getById(id), HttpStatus.OK);\n\t}",
"@GetMapping(\"/operations/{id}\")\n @Timed\n public ResponseEntity<OperationDTO> getOperation(@PathVariable Long id) {\n log.debug(\"REST request to get Operation : {}\", id);\n OperationDTO operationDTO = operationService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(operationDTO));\n }",
"public static Map<String, Integer> getCurrentContainerDetails(int envId) {\n\t\tfinal java.sql.Date todayDate = new java.sql.Date(Calendar.getInstance().getTimeInMillis());;\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tCriteria apiCriteria = session.createCriteria(ContainerStatsEntity.class, \"contSts\");\n\t\tapiCriteria.add(Restrictions.eq(\"contSts.statsDate\", todayDate ));\n\t\tapiCriteria.add(Restrictions.eq(\"contSts.environment.environmentId\", envId));\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<ContainerStatsEntity> contEntityList = apiCriteria.list();\n\t\tMap<String, Integer> mapApiSts = new HashMap<String, Integer>();\n\t\tfor(ContainerStatsEntity contStsEntity : contEntityList){\n\t\t\tif(contStsEntity.getComponent() != null && contStsEntity.getComponent().getParentComponent() != null){\n\t\t\t\tString fullAppName = contStsEntity.getComponent().getParentComponent().getComponentName() + \"/\" + contStsEntity.getComponent().getComponentName();\n\t\t\t\tmapApiSts.put(fullAppName, contStsEntity.getTotalContainer());\n\t\t }else if(contStsEntity.getComponent() != null){\n\t\t \tmapApiSts.put(contStsEntity.getComponent().getComponentName(), contStsEntity.getTotalContainer());\n\t\t }\n\t }\n\t\ttxn.commit();\n\t\treturn mapApiSts;\n\t}",
"public void setServicestatusid(Integer servicestatusid) {\r\n this.servicestatusid = servicestatusid;\r\n }",
"@Override\n\tpublic com.easybooking.model.BookedServices getDataById(int id) {\n\t\tcom.easybooking.model.BookedServices services = null;\n\t\tSessionFactory factory = HibernateUtil.getSesssionFactory();\n\t\tSession session = factory.openSession();\n\t\tsession.beginTransaction();\n\t\tservices = session.get(com.easybooking.model.BookedServices.class, id);\n\t\tsession.close();\n\t\tfactory.close();\n\t\treturn services;\n\t}",
"String getService_id();",
"long[] getServiceNameTasks(java.lang.String serviceName, java.lang.String status, java.lang.String action) throws java.io.IOException;",
"@Override\n\tpublic DgCallService getDgCallServiceById(Integer id) {\n\t\treturn dgCallServiceMapper.selectByPrimaryKey(id);\n\t}",
"@Override\n public int estado(){\n \n try {\n Process proceso;\n proceso = Runtime.getRuntime().exec(\"/etc/init.d/\"+nombreServicio+\" status\");\n InputStream is = proceso.getInputStream(); \n BufferedReader buffer = new BufferedReader (new InputStreamReader (is));\n \n //Se descartan las dos primeras lineas y se lee la tercera\n buffer.readLine();\n buffer.readLine();\n String resultado = buffer.readLine();\n \n if(resultado.contains(\"Active: active\")){\n return 1;\n }\n } \n catch (IOException ex) {\n Logger.getLogger(Servicio.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return 0;\n }",
"private void getCpuInfo() {\n\t\ttry {\n\t\t\tRandomAccessFile reader = new RandomAccessFile(\"/proc/stat\", \"r\");\n\t\t\tString load = reader.readLine();\n\n\t\t\tString[] toks = load.split(\" \");\n\n\t\t\tlong idle1 = Long.parseLong(toks[5]);\n\t\t\tlong cpu1 = Long.parseLong(toks[2]) + Long.parseLong(toks[3])\n\t\t\t\t\t+ Long.parseLong(toks[4]) + Long.parseLong(toks[6])\n\t\t\t\t\t+ Long.parseLong(toks[7]) + Long.parseLong(toks[8]);\n\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (Exception e) {\n\n\t\t\t}\n\t\t\t//get process name list in this time\n\t\t\tgetTopCpu();\n\n\t\t\treader.seek(0);\n\t\t\tload = reader.readLine();\n\t\t\treader.close();\n\n\t\t\ttoks = load.split(\" \");\n\n\t\t\t// find right data is the key\n\t\t\t// System.out.println(toks[0]+\" 1 \"+toks[1]+\" 2 \"+toks[2]+\" \"+toks[3]+\" \"+toks[4]+\" \"+toks[5]+\" \"+toks[6]+\" \"+toks[7]+\" 8 \"+toks[8]);\n\t\t\tlong idle2 = Long.parseLong(toks[5]);\n\t\t\tlong cpu2 = Long.parseLong(toks[2]) + Long.parseLong(toks[3])\n\t\t\t\t\t+ Long.parseLong(toks[4]) + Long.parseLong(toks[6])\n\t\t\t\t\t+ Long.parseLong(toks[7]) + Long.parseLong(toks[8]);\n\n\t\t\t// System.out.println(idle2+\" \"+cpu2);\n\t\t\trate = (float) (cpu2 - cpu1)\n\t\t\t\t\t/ (float) ((cpu2 + idle2) - (cpu1 + idle1));\n\t\t\t// System.out.println(rate);\n\t\t\tint temprate = (int) ((rate + 0.05) * 100);\n\t\t\tif (temprate < 0 || temprate > 100) {\n\t\t\t\t// System.out.println(toks[0]+\" 1 \"+toks[1]+\" 2 \"+toks[2]+\" \"+toks[3]+\" \"+toks[4]+\" \"+toks[5]+\" \"+toks[6]+\" \"+toks[7]+\" 8 \"+toks[8]);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tcpuChart.addData(temprate);\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"@GetMapping(\"/data-set-operations/{id}\")\n @Timed\n public ResponseEntity<DataSetOperationDTO> getDataSetOperation(@PathVariable Long id) {\n log.debug(\"REST request to get DataSetOperation : {}\", id);\n DataSetOperation dataSetOperation = dataSetOperationRepository.findOne(id);\n DataSetOperationDTO dataSetOperationDTO = dataSetOperationMapper.toDto(dataSetOperation);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(dataSetOperationDTO));\n }",
"@GetMapping(\"/id/{id}\")\n public ResponseEntity<ServiceResult> findById(@PathVariable String id) {\n ServiceResult serviceResult = new ServiceResult();\n AdCampaign adCampaign = new AdCampaign();\n logger.info(\"Start controller call get data from ID - \"+id);\n try {\n adCampaign = adCampaignService.findByIdCustom(id);\n serviceResult.setMessage(\"Get Data from ID\"+id+\" Success\");\n serviceResult.setData(adCampaignService.findByIdCustom(id));\n serviceResult.setStatus(ServiceResult.Status.SUCCESS);\n }catch (Exception ex){\n logger.info(\"Error call get data from ID - \"+id);\n serviceResult.setMessage(ex.getMessage());\n }\n logger.info(\"End call get data from ID - \"+id);\n return new ResponseEntity<ServiceResult>(serviceResult, HttpStatus.OK);\n }",
"@GetMapping(\"/percentages/{id}\")\n @Timed\n public ResponseEntity<Percentage> getPercentage(@PathVariable Long id) {\n log.debug(\"REST request to get Percentage : {}\", id);\n Percentage percentage = percentageService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(percentage));\n }",
"private void getOrderServiceFee(Long id) {\n new FetchOrderServiceFee(id, new FetchOrderServiceFee.InvokeOnCompleteAsync() {\n @Override\n public void onComplete(String orderServiceFee) {\n updateServiceFee(Float.valueOf(orderServiceFee));\n }\n\n @Override\n public void onError(Throwable e) {\n LoggerHelper.showErrorLog(\"Error: \", e);\n }\n });\n }",
"SearchServiceStatus status();",
"private double getCpuStatistic(String args) throws Exception\n {\n /*\n ORDER OF COLLUMNS FROM PROC/STAT\n user: normal processes executing in user mode\n nice: niced processes executing in user mode\n system: processes executing in kernel mode\n idle: twiddling thumbs\n iowait: waiting for I/O to \"complete\n irq: servicing interrupts\n softirq: servicing softirqs\n */\n //TODO:IMPLEMENT CPU STATISTICS\n RandomAccessFile reader;\n reader = new RandomAccessFile(\"/proc/stat\", \"r\");\n String cpuInfo = reader.readLine();\n String[] parts = cpuInfo.split(\" \");\n if(args.toLowerCase() == userArg)\n {\n return(Integer.decode(parts[2]));\n }\n else if(args.toLowerCase() == systemArg)\n {\n return(Integer.decode(parts[4]));\n }\n else if(args.toLowerCase() == idleArg)\n {\n return(Integer.decode(parts[5]));\n }\n else\n {\n int total = 0;\n int idle = Integer.decode(parts[5]);;\n for (int i = 2; i < parts.length; i++)\n {\n total += Integer.decode(parts[i]);\n }\n double retVal = (double)idle / (double) total;\n return (retVal);\n }\n }",
"@GetMapping(\"/costo-servicios/general/{id}\")\n @Timed\n public List<CostoServicioDTO> getAllCostosGeneralById(@PathVariable Long id) {\n log.debug(\"REST request to get a page of Expedientes\");\n List<CostoServicioDTO> ls = costoServicioService.findByTramite_general_id(id);\n// HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(1, \"/api/expedientes/user\");\n // return new ResponseEntity<>(ls, HeaderUtil.createAlert(\"ok\", \"\"), HttpStatus.OK); \n return ls;\n }",
"public Integer getServiceid() {\r\n return serviceid;\r\n }",
"@Override\n public PingCommand getCurrentStatus(long id) {\n return null;\n }",
"private void updateCpuStats() {\n\t\tmNumStatsUpdated = 0;\n\t\tList<String> stats = ShellHelper.getProc(CPU_STAT_PROC);\n\t\tif (stats == null || stats.isEmpty()) return;\n\t\t\n\t\tString[] parts = null;\n\t\tString line = null;\n\t\tfor (int i = 0; i < stats.size(); ++i) {\n\t\t\tline = stats.get(i);\n\t\t\tif (line.startsWith(\"cpu\")) { //TODO if 0% usage the cpu is omitted\n\t\t\t\tparts = line.split(\"\\\\s+\");\t\t\t\t\n\t\t\t\tif (parts[0].endsWith(String.valueOf(i - 1))) {\n\t\t\t\t\tif (mLogicalCpus.size() >= i &&\n\t\t\t\t\t\t\tmLogicalCpus.get(i - 1).getCpuStat().update(parts)) {\t\t\t\t\t\n\t\t\t\t\t\t++mNumStatsUpdated;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (mCpuStat.update(parts)) {\n\t\t\t\t\t++mNumStatsUpdated;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@GetMapping(value = \"/processes\", produces = \"application/json\")\n\tpublic ResponseEntity<List<ProcessDTO>> getProcesses(@RequestParam(required = false) Long id) {\n\t\tif (id == null) {\n\t\t\treturn new ResponseEntity<>(service.getProcesses(), HttpStatus.OK);\n\t\t}\n\t\treturn new ResponseEntity<>(Collections.singletonList(service.getProcessByIdBackend(id)), HttpStatus.OK);\n\t}",
"public ShowSystemStatusResponse showSystemStatus(Map<String, String> options) throws GPUdbException {\n ShowSystemStatusRequest actualRequest_ = new ShowSystemStatusRequest(options);\n ShowSystemStatusResponse actualResponse_ = new ShowSystemStatusResponse();\n submitRequest(\"/show/system/status\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }",
"@Override\n public JvmNotifBasedGcStatsCollector apply(String id) {\n return new JvmNotifBasedGcStatsCollector(Serializer.INFLUX, appToken, jvmName, subType);\n }",
"@HEAD\n public Response getStats() throws CloudException {\n\n long containerCount = 0;\n long bytesUsed = 0;\n\n log.warn(\"Container stats not implemented\");\n\n ResponseBuilder response = Response.noContent();\n response.header(\"X-Account-Container-Count\", Long.toString(containerCount));\n response.header(\"X-Account-Bytes-Used\", Long.toString(bytesUsed));\n response.header(\"Date\", new Date());\n return response.build();\n\n }",
"private void collectMetricsInfo() {\n // Retrieve a list of all references to registered metric services\n ServiceReference[] metricsList = null;\n try {\n metricsList = bc.getServiceReferences(null, SREF_FILTER_METRIC);\n } catch (InvalidSyntaxException e) {\n logError(INVALID_FILTER_SYNTAX);\n }\n \n // Retrieve information about all registered metrics found\n if ((metricsList != null) && (metricsList.length > 0)) {\n \n for (int nextMetric = 0;\n nextMetric < metricsList.length;\n nextMetric++) {\n \n ServiceReference sref_metric = metricsList[nextMetric];\n MetricInfo metric_info = getMetricInfo(sref_metric);\n \n // Add this metric's info to the list\n if (metric_info != null) {\n registeredMetrics.put(\n metric_info.getServiceID(),\n metric_info);\n }\n }\n }\n else {\n logInfo(\"No pre-existing metrics were found!\");\n }\n }",
"@GetMapping(value = \"/cpu\")\n public ResponseEntity<String> mem(){\n try {\n String s = CommandExecutor.execute(Commands.cpu);\n return ResponseEntity.ok(s);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return ResponseEntity.status(500).build();\n }",
"@Override\r\n public synchronized IStats getStatistics()\r\n {\r\n final IStats stats = new Stats();\r\n stats.setTypeName(\"Indexed Disk Cache\");\r\n\r\n final ArrayList<IStatElement<?>> elems = new ArrayList<>();\r\n\r\n elems.add(new StatElement<>(\"Is Alive\", Boolean.valueOf(isAlive())));\r\n elems.add(new StatElement<>(\"Key Map Size\", Integer.valueOf(this.keyHash != null ? this.keyHash.size() : -1)));\r\n try\r\n {\r\n elems.add(\r\n new StatElement<>(\"Data File Length\", Long.valueOf(this.dataFile != null ? this.dataFile.length() : -1L)));\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(e);\r\n }\r\n elems.add(new StatElement<>(\"Max Key Size\", this.maxKeySize));\r\n elems.add(new StatElement<>(\"Hit Count\", this.hitCount));\r\n elems.add(new StatElement<>(\"Bytes Free\", this.bytesFree));\r\n elems.add(new StatElement<>(\"Optimize Operation Count\", Integer.valueOf(this.removeCount)));\r\n elems.add(new StatElement<>(\"Times Optimized\", Integer.valueOf(this.timesOptimized)));\r\n elems.add(new StatElement<>(\"Recycle Count\", Integer.valueOf(this.recycleCnt)));\r\n elems.add(new StatElement<>(\"Recycle Bin Size\", Integer.valueOf(this.recycle.size())));\r\n elems.add(new StatElement<>(\"Startup Size\", Integer.valueOf(this.startupSize)));\r\n\r\n // get the stats from the super too\r\n final IStats sStats = super.getStatistics();\r\n elems.addAll(sStats.getStatElements());\r\n\r\n stats.setStatElements(elems);\r\n\r\n return stats;\r\n }",
"@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\ttracker = new GPSTracker(this);\n\t\tstatus=0;\n\t\torder_id=intent.getExtras().getLong(\"id\");\n\t\tgs=new GetStatus();\n\t\tdsf=new Do_Service_Staff();\n\t\tdsf.execute(0);\n\t\t\n\t\t\n\t\treturn START_STICKY;\n\t}",
"public interface StatusService {\r\n\r\n String getStatus();\r\n\r\n}",
"@GetMapping(\"/charts-current-patients-vo/{id}\")\n @Timed\n public List<ChartVO> getAllChartsCurrentPatientsVO(@PathVariable Long id) {\n log.debug(\"REST request to get all ChartsVO By Facility\");\n ZonedDateTime now = ZonedDateTime.now();\n return chartService.findAllByFacilityWaitingRoomFalseAndDischargeDateVO(id, now);\n }",
"public int[] getAllPids(Activity context) throws Exception {\n ActivityManager activityManager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);\n List<ActivityManager.RunningServiceInfo> pids = activityManager.getRunningServices(Integer.MAX_VALUE);\n int processid = 0;\n int[] retVal = new int[pids.size()];\n Log.d(\"feature\", \"pid size: \" + pids.size());\n for (int i = 0; i < pids.size(); i++) {\n ActivityManager.RunningServiceInfo info = pids.get(i);\n retVal[i] = info.pid;\n Log.d(\"feature\", \"pid: \" + info.service);\n\n return (retVal);\n }\n return(null);\n }",
"public void getAll(rScrapper scrapper) throws IOException, InterruptedException, SQLException, ClassNotFoundException {\n\t\tscrapper.processStat(); // scrape process stats\n\t\tscrapper.memoryStat(); // scrape memory stats\n\t\tscrapper.cpuStat(); // scrape cpu stats\n\t\tscrapper.pidStat(); // scrape pid stats\n\t\tscrapper.pidSchedStat(); // scrape pid sched stats\n\t\tscrapper.diskStat(); // scrape disk stats\n\t\tscrapper.ioStat(); // scrape io stats\n\t\tscrapper.dbStat(); // scrape db stats\n\t\tscrapper.heap();\n\t\tscrapper.heapDump();\n\t\tscrapper.stack();\n\t\tscrapper.thread();\n\t}",
"@Override\n public ServiceID getServiceID() {\n\treturn servID;\n }",
"public Operacion obtenerOperacion(int id){\n return historialOperaciones.get(id);\n }",
"public int getStatus(int id) {\r\n\t\tTicket ticket = getTicketById(id);\r\n\t\tif (ticket.getStatusCheck()==false) {\r\n\t\t\tticket.setStatusCheck(true);\r\n\t\t}\r\n\t\treturn ticket.getTotalScore();\r\n\t\t\r\n\t}",
"@GetMapping(\"/sd-order-headers/{id}\")\n @Timed\n public ResponseEntity<SdOrderHeader> getSdOrderHeader(@PathVariable Long id) {\n log.debug(\"REST request to get SdOrderHeader : {}\", id);\n SdOrderHeader sdOrderHeader = sdOrderHeaderService.findOne(id);\n return Optional.ofNullable(sdOrderHeader)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"public MsvmSummaryInformation(IJIDispatch objectDispatcher, SWbemServices service) {\n\t\tsuper(objectDispatcher, service);\n\t}",
"@Override\n public void run() {\n MemUsage memUsage = new MemUsage();\n Runtime run = Runtime.getRuntime();\n String memPath = \"/proc/\" + processId + \"/status\";\n LOG.info(\"Reading the file for memory: \" + memPath);\n String currentTime;\n File statusFile;\n float pcpu;\n int pmem;\n ProcessInfoBean processInfoBean = new ProcessInfoBean();\n processInfoBean.setLocalHostIp(ip);\n processInfoBean.setProceeName(processName);\n while (running) {\n pcpu = getCPUUsageByTopCommond(run, cmd);\n if (pcpu != -1) {\n statusFile = new File(memPath);\n if (statusFile.exists()) {\n pmem = memUsage.getMemUsage(statusFile);\n if (pmem != -1) {\n currentTime = TimeUtils.getCurrentTime();//获取系统当前时间\n processInfoBean.setUpdateTime(currentTime);\n processInfoBean.setCpuUsage(pcpu);\n processInfoBean.setMemUsage(pmem);\n processInfoBean.setPid(Integer.parseInt(processId));\n processInfoDao.insert_process_monitor(processInfoBean);\n MybatisUtils.session.commit();\n try {\n Thread.sleep(intervalTime);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }\n }\n }\n }",
"@GetMapping(\"/operational-heads/{id}\")\n @Timed\n public ResponseEntity<OperationalHeadDTO> getOperationalHead(@PathVariable Long id) {\n log.debug(\"REST request to get OperationalHead : {}\", id);\n Optional<OperationalHeadDTO> operationalHeadDTO = operationalHeadService.findOne(id);\n return ResponseUtil.wrapOrNotFound(operationalHeadDTO);\n }",
"@Override\n public ServiceModel queryServiceByInstanceId(String serviceId) throws ApplicationException {\n try {\n return getMapper(ServiceModelMapper.class).queryServiceByInstanceId(serviceId);\n } catch(Exception e) {\n LOGGER.error(\"Fail to query service instance by id : {}\", e);\n throw new ApplicationException(HttpCode.INTERNAL_SERVER_ERROR, ErrorCode.OPER_DB_FAIL);\n }\n }",
"@GetMapping(path = \"/{id}/info\")\n public StudentCommand getStudentInfo(@PathVariable Integer id) {\n Optional<Student> student = studentService.findStudentById(id);\n if (!student.isPresent()) {\n throw new NotFoundException();\n }\n return studentToStudentCommand.converter(student.get());\n }",
"private ArrayList<String> getProcessorValues() {\n\t\t//System.out.println(\"Reading CPU data\");\n\t\tArrayList<String> values;\n\t\tBufferedReader reader;\n\t\tString line = \"\";\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(\"/proc/stat\"));\n\t\t\tvalues = new ArrayList<String>();\n\t\t\tline = reader.readLine(); // read in the header since we don't need it\n\t\t\t\n\t\t\twhile(!line.contains(\"intr\")) { // until the line after cpu data\n\t\t\t\tline = reader.readLine(); // read in the line\n\t\t\t\tif(line.contains(\"cpu\")) { // if it contains cpu info\n\t\t\t\t\tString[] lineValues = line.split(\" \"); // split on space\n\t\t\t\t\tString temp = \"\";\n\t\t\t\t\tfor(int i = 1; i < lineValues.length; i++) {\n\t\t\t\t\t\ttemp += lineValues[i] + \" \"; // get the key cpu stats\n\t\t\t\t\t}\n\t\t\t\t\tvalues.add(temp); // add the values string to the array of cpu statistics\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\n\t\treturn values;\n\t}",
"@GetMapping(\"/operational-heads/count/{status}\")\n @Timed\n public Long getOperationHeadCount(@PathVariable Integer status) {\n log.debug(\"REST request to get a list of particular status of operationalHeadService\");\n return operationalHeadService.findActiveCount(status);\n }",
"public static int startAllServices() throws Throwable {\n\t\tint numServicesStarted = 0;\n\t\t\n\t\tlog.info(\"!!! Attempting to start API Service !!!\");\n\t\t//System.out.println(\"!!! Attempting to start API Service !!!\"); \n\t\tif (startApiService()) {\n\t\t\tnumServicesStarted++;\n\t\t}\n\t\tlog.info(\"!!! Attempting to start Inventory Service !!!\");\n\t\t//System.out.println(\"!!! Attempting to start Inventory Service !!!\");\n\t\tif (startInventoryService()) {\n\t\t\tnumServicesStarted++;\n\t\t}\n\t\tlog.info(\"!!! Attempting to start Insurance Service !!!\");\n\t\t//System.out.println(\"!!! Attempting to start Insurance Service !!!\");\n\t\tif (startInsuranceService()) {\n\t\t\tnumServicesStarted++;\n\t\t}\n\t\tlog.info(\"!!! Attempting to start Enquiry Service !!!\");\n\t\t//System.out.println(\"!!! Attempting to start Enquiry Service !!!\");\n\t\tif (startEnquiryService()) {\n\t\t\tnumServicesStarted++;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\t Runtime.getRuntime().addShutdownHook(new Thread() \n\t\t\t { \n\t\t\t public void run() \n\t\t\t { \n\t\t\t \ttry {\n\t\t\t \t\tlog.info(\"!!! Services Shutdown Hook is running !!!\");\n\t\t\t \t\t//System.out.println(\"!!! Services Shutdown Hook is running !!!\"); \n\t\t\t\t int servicesStopped = ServiceFactory.stopAllServices();\n\t\t\t\t log.info(\"!!! A total of \" + servicesStopped + \" services were shutdown !!!\");\n\t\t\t\t //System.out.println(\"!!! A total of \" + servicesStopped + \" services were shutdown !!!\"); \n\t\t\t \t} catch (Throwable ex) {\n\t\t\t \t\tex.printStackTrace();\n\t\t\t \t}\n\t\t\t } \n\t\t\t }); \n\t\t\t \n\t\t} catch (Throwable ex) {\n\t\t\tlog.error(\"!!! Error on Services Shutdown !!! : \" + ex.getMessage(), ex);\n\t\t\t//System.out.println(\"!!! Error on Services Shutdown !!! : \" + ex.getMessage());\n\t\t\t//ex.printStackTrace();\n\t\t}\n\n\t\treturn numServicesStarted;\n\t}",
"@GetMapping(\"/{id}\")\n\t@ApiOperation(value = \"Get all reservations\", notes = \"Service to get all reservations\")\n\t@ApiResponses(value = {\n\t\t\t@ApiResponse(code = 200, message = \"All retrieved reservations\"),\n\t\t\t@ApiResponse(code = 400, message = \"Bad request\")\n\t})\n\tpublic ResponseEntity<?> get(@PathVariable(\"id\")int id){\n\t\tResponseEntity<?> response;\n\t\tReservation reservation = reservationService.get(id);\n\t\tif(reservation==null) {\n\t\t\tMap<String,String> errors = new HashMap<>();\n\t\t\terrors.put(\"Errors\", \"The reservation does not exist\");\n\t\t\tresponse = new ResponseEntity<>(errors,HttpStatus.NOT_FOUND);\n\t\t}else {\n\t\t\tReservationDTO reservationDTO = new ReservationDTO(reservation);\n\t\t\tresponse = new ResponseEntity<>(reservationDTO,HttpStatus.OK);\n\t\t}\n\t\treturn response;\n\t}",
"@Override\r\n\tpublic ServiceRequest getServiceRequestById(int id) throws SQLException\r\n\t{\r\n\t\tlogger.info(\"DAO getting a service request with ID: \" + id);\r\n \tSystem.out.println(\"DAO getting a service request with ID: \" + id);\r\n \t\r\n \tServiceRequest sr = null;\r\n \tSession session = sessionFactory.getCurrentSession();\r\n \t\r\n\t\tQuery query = session.createQuery(GET_SERVICE_REQUEST_BY_ID_HQL);\r\n\t\tquery.setParameter(\"id\", id);\r\n\t\t\r\n\t\tif (query.list() != null && query.list().size() > 0)\r\n\t\t{\r\n\t\t\tsr = (ServiceRequest) query.list().get(0);\r\n\t\t}\r\n\t\t\r\n\t\treturn sr;\r\n\t}",
"public static cache_stats get(nitro_service service, options option) throws Exception{\n\t\tcache_stats obj = new cache_stats();\n\t\tcache_stats[] response = (cache_stats[])obj.stat_resources(service,option);\n\t\treturn response[0];\n\t}",
"public int getServiceID() {\n return serviceID;\n }",
"public String getServiceID();"
] | [
"0.57975113",
"0.56571794",
"0.5655275",
"0.5643422",
"0.55927944",
"0.5519911",
"0.54880685",
"0.54786575",
"0.54464847",
"0.52738416",
"0.5254645",
"0.52443063",
"0.5242569",
"0.5212701",
"0.5209452",
"0.5195633",
"0.5194499",
"0.5180545",
"0.517879",
"0.5161715",
"0.5132116",
"0.5126177",
"0.5124341",
"0.5124309",
"0.51184684",
"0.51037616",
"0.5070612",
"0.50538874",
"0.5052345",
"0.50482625",
"0.5032385",
"0.5012727",
"0.49860597",
"0.49806574",
"0.49744913",
"0.49719247",
"0.49662086",
"0.4962395",
"0.49599153",
"0.49480015",
"0.4932971",
"0.49287695",
"0.49017754",
"0.48945984",
"0.48717856",
"0.48608994",
"0.48482144",
"0.48477048",
"0.4838983",
"0.48299158",
"0.4829166",
"0.48290113",
"0.48222473",
"0.48199463",
"0.48159507",
"0.48138827",
"0.48085237",
"0.48041388",
"0.48016012",
"0.47967988",
"0.4791573",
"0.4784914",
"0.4780974",
"0.47596893",
"0.4755103",
"0.4746361",
"0.4735514",
"0.4720556",
"0.4718813",
"0.47120222",
"0.47073445",
"0.47035474",
"0.4689952",
"0.46878088",
"0.46826965",
"0.4678532",
"0.4677915",
"0.46779004",
"0.46766135",
"0.4674153",
"0.46650553",
"0.46601287",
"0.46591717",
"0.4656387",
"0.46549743",
"0.4651204",
"0.46471512",
"0.46452695",
"0.46451852",
"0.46448618",
"0.4640677",
"0.46393907",
"0.46384716",
"0.46381798",
"0.46313646",
"0.46297467",
"0.4625661",
"0.46251905",
"0.46235466",
"0.46224394"
] | 0.7459396 | 0 |
Get last 300 lines of console logs of a service by given ID | public Map consoleLogs(String id) throws IOException
{
return request(POST, address(id, "logs"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\n path = \"/logs/{integrationid}/log/{lines}\",\n produces = {MediaType.TEXT_PLAIN_VALUE}\n )\n public ResponseEntity<String> getLog(\n @Parameter(hidden = true) @RequestHeader(\"Accept\") String mediaType,\n @PathVariable Long integrationid,\n @PathVariable int lines\n ) throws Exception {\n try {\n File file = new File(System.getProperty(\"java.io.tmpdir\") + \"/spring.log\");\n String log = LogUtil.tail(file, lines);\n return org.assimbly.gateway.web.rest.util.ResponseUtil.createSuccessResponse(integrationid, mediaType, \"getLog\", log, true);\n } catch (Exception e) {\n return org.assimbly.gateway.web.rest.util.ResponseUtil.createFailureResponse(integrationid, mediaType, \"getLog\", e.getMessage());\n }\n }",
"private String getLastCommands(int numberOfCommands, Resource r) {\n String finalResult = \"\";\n ArrayList<String> inputLog = r.getInputLog();\n\n int upperLimit = inputLog.size();\n int begin = inputLog.size() - numberOfCommands;\n if (begin < 0) {\n begin = 0;\n }\n for (int i = begin; i < upperLimit; i++) {\n finalResult += ((i + 1) + \" \" + inputLog.get(i)) + \"\\n\";\n }\n\n return finalResult;\n }",
"long getLastLogIndex();",
"@Override\n\tpublic StudyTaskInfo getLastInfoByLogId(Integer studyLogId)\n\t\t\tthrows WEBException {\n\t\ttry {\n\t\t\tstDao = (StudyTaskDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_TASK_INFO);\n\t\t\tSession sess = HibernateUtil.currentSession();\n\t\t\treturn stDao.getLastInfoByLogId(sess, studyLogId);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tthrow new WEBException(\"获取最后一次的任务记录列表时出现异常!\");\n\t\t} finally{\n\t\t\tHibernateUtil.closeSession();\n\t\t}\n\t}",
"@Override\n\tpublic List<SmsActivityLogger> fetchLogById(int Id) {\n\t\treturn null;\n\t}",
"public abstract ArrayList<Log> readUserLogs(User user, int maxEntries);",
"@Test\n void testTail() throws IOException {\n final var data = new GcsLogs(GcsLogsTest::getClientFactory).tailCloudLog((new EnvConfigs()).getLogConfigs(), \"tail\", 6);\n\n final var expected = List.of(\"Line 4\", \"Line 5\", \"Line 6\", \"Line 7\", \"Line 8\", \"Line 9\");\n assertEquals(data, expected);\n }",
"@Override\n @SuppressWarnings(\"unchecked\")\n public long getUpperBound() {\n AuditReader auditService = Framework.getService(AuditReader.class);\n String auditQuery = \"from LogEntry log order by log.id desc\";\n log.debug(\"Querying audit log for greatest id: {}\", auditQuery);\n\n List<LogEntry> entries = (List<LogEntry>) auditService.nativeQuery(auditQuery, 1, 1);\n if (entries.isEmpty()) {\n log.debug(\"Found no audit log entries, returning -1\");\n return -1;\n }\n return entries.get(0).getId();\n }",
"private int findLastIndex(int id) {\n\n NmpReportPoint point = DataSupport.where(\"remark <> 1 AND nmpreportdata_id = \" + id).findLast(NmpReportPoint.class);\n if (point != null) {\n int pointIndex = point.getPointIndex();\n return Math.abs(pointIndex % 10000);\n }\n\n return 0;\n }",
"@Cacheable(\"lastRunInfo\")\n private GeobatchRunInfo getLastRunInfoCache(String id) {\n List<GeobatchRunInfo> search = search(id);\n \n return search != null && !search.isEmpty() ? search.get(0) : null;\n }",
"int getLogId();",
"public LogModel findLog(String id);",
"public synchronized String getHistory() {\r\n\t\tString log = new String();\r\n\t\ttry {\r\n\t\t\tFile logFile = new File(\"serverlogs.log\");\r\n\t\t\tBufferedReader logReader = new BufferedReader(new InputStreamReader(new FileInputStream(logFile)));\r\n\t\t\tString line;\r\n\t\t\twhile((line = logReader.readLine()) != null) {\r\n\t\t\t\tlog += (line + \"\\n\");\r\n\t\t\t}\r\n\t\t\tlogReader.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tgui.acknowledge(\"Error : logs are not available\");\r\n\t\t\tstop();\r\n\t\t}\r\n\t\tif(log.equals(\"\\n\")) {\r\n\t\t\tlog = new String();\r\n\t\t}\r\n\t\treturn log;\r\n\t}",
"private String fetchLogEntry(int i) {\n\t\tif (log.size() >= i) {\n\t\t\tLog logEntry = log.get(log.size()-i);\n\t\t\tif (logEntry.getStatus() == Status.ALARM) {\n\t\t\t\treturn logEntry.getTimeStamp()+\"* \"+logEntry.getMessage();\n\t\t\t} else {\n\t\t\t\treturn logEntry.getTimeStamp()+\" \"+logEntry.getMessage();\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"List<LogEntry> getLogEntries(Long issueId);",
"BufferedLogChannel getCurrentLogIfPresent(long entryLogId);",
"public Map consoleInputHistory(String id) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"history\"));\n\t}",
"public String[] getLog(String[] command) {\n ArrayList<String> logLines = new ArrayList<String>();\n Process mLogcatProc = null;\n BufferedReader reader = null;\n if (null == command) {\n return null;\n }\n try {\n mLogcatProc = Runtime.getRuntime().exec(command);\n reader = new BufferedReader(new InputStreamReader(mLogcatProc.getInputStream()));\n\n String line;\n while ((line = reader.readLine()) != null) {\n logLines.add(line);\n }\n\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n\n return logLines.toArray(new String[logLines.size()]);\n } catch (Exception e) {\n e.printStackTrace();\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n return null;\n }\n }",
"public synchronized List<LogBundle> getLogBundles(final int maxLogCount) {\n if (maxLogCount <= 0) {\n Logger.e(\"Cannot count data without proper maxLogCount\");\n return null;\n }\n\n return queryExecutor(new QueryExecCallback<List<LogBundle>>() {\n @Override\n public List<LogBundle> execute(SQLiteDatabase db) {\n // read logs from DB\n String query = \"SELECT * FROM \" + TABLE_NAME\n + \" ORDER BY \" + Columns.CREATED_AT + \" ASC \"\n + \" LIMIT \" + maxLogCount;\n\n Cursor cursor = db.rawQuery(query, null);\n\n if (cursor == null) {\n return null;\n }\n\n // divide logs by token\n Map<String, LogBundle> logBundleMap = new HashMap<>();\n\n try {\n while (cursor.moveToNext()) {\n String token = getStringFromCursor(cursor, Columns.TOKEN);\n JSONObject json = new JSONObject(getStringFromCursor(cursor, Columns.LOG));\n\n LogBundle logBundle;\n if (logBundleMap.containsKey(token)) {\n logBundle = logBundleMap.get(token);\n } else {\n logBundle = new LogBundle();\n String url = getStringFromCursor(cursor, Columns.URL);\n logBundle.setUrl(url);\n logBundle.setToken(token);\n }\n\n logBundle.addLog(json);\n\n // logBundle별로 last_ID를 가장 최신의 것으로 업데이트 \n logBundle.setLast_ID(getStringFromCursor(cursor, Columns._ID));\n\n logBundleMap.put(token, logBundle);\n }\n } catch (JSONException e) {\n Logger.e(\"Failed to getting logs from DB. \" + e.getMessage());\n } finally {\n cursor.close();\n }\n\n return new ArrayList<>(logBundleMap.values());\n }\n });\n }",
"@GetMapping(\"/last-connections/{id}\")\n @Timed\n public ResponseEntity<LastConnectionDTO> getLastConnection(@PathVariable Long id) {\n log.debug(\"REST request to get LastConnection : {}\", id);\n LastConnectionDTO lastConnectionDTO = lastConnectionService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(lastConnectionDTO));\n }",
"@Override\r\n\tpublic Log get(int id) {\n\t\tConnection con = MysqlDatabase.getInstance().getConnection();\r\n\t\tLog log = null;\r\n\t\ttry {\r\n\t\t\tPreparedStatement ps = con.prepareStatement(GetById);\r\n\t\t\tps.setInt(1, id);\r\n\t\t\tResultSet rs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tlog = generate(rs);\r\n\t\t\t}\r\n\t\t\tcon.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn log;\r\n\t}",
"@Override\n\tpublic List<PositionData> getLatest10PostionInfo(String terminalId) {\n\t\ttry {\n\t\t\tList<PositionData> returnData = new ArrayList<PositionData>();\n\t\t\tList<PositionData> tempData = new ArrayList<PositionData>();\n\t\t\tList<PositionData> position_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' order by date desc\");\n\t\t\tfor(int i=0;i<(position_list.size()>10?10:position_list.size());i++){\n\t\t\t\ttempData.add(position_list.get(i));\n\t\t\t}\n\t\t\tfor(int i=tempData.size()-1;i>=0;i--)\n\t\t\t\treturnData.add(tempData.get(i));\n\t\t\treturn returnData;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public PagingData loadAdminLogList(String id, DataTableParamter rdtp) {\n\t\tString hql=\"from TadminLog where adminId= ? order by id desc\";\n\t\n\t\t return adminLogDao.findPage(hql, rdtp.iDisplayStart, rdtp.iDisplayLength,id);\n\t}",
"public long getRunningTimeFromLogFile(String url) \r\n\t{\r\n\t\tString line = null;\r\n\t\tlong startTiem = 0;\r\n\t\tlong endTme = 0;\r\n\t\tlong totalTiem = -1;\r\n\t\t\r\n\t\tLinkedList<String> stack = new LinkedList<>();\r\n\t\ttry {\r\n\t\t\tif (openLogFile(url))\r\n\t\t\t{\r\n\t\t\t\twhile ((line = logFileReader.readLine()) != null) {\r\n\t\t\t\t\tstack.push(line);\r\n\t\t\t\t\tif(line.startsWith(\"==>S\") && startTiem == 0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tstartTiem = Long.parseLong(line.split(\" \")[1].split(\"\\\\.\")[0]);\r\n\t\t\t\t\t}\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\twhile (true) {\r\n\t\t\t\t\tline = stack.pop();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif(line.startsWith(\"==>S\") && endTme == 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tendTme = Long.parseLong(line.split(\" \")[1].split(\"\\\\.\")[0]);\r\n\t\t\t\t\t\t\tbreak; \r\n\t\t\t\t\t\t} }catch(NoSuchElementException e) { break; }\r\n\t\t\t\t }// end while\r\n\t\t\t\tif(startTiem != 0 && endTme !=0)\r\n\t\t\t\t{\r\n\t\t\t\t\ttotalTiem = endTme - startTiem;\r\n\t\t\t\t}\r\n\t\t\t\tcloseLogFile();\r\n\t\t\t} else System.out.println(\"The log file was not opened\");\r\n\t\t\t}catch(Exception e) \r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\tcloseLogFile();\r\n\t\t\t}\r\n\t\treturn totalTiem;\r\n\t}",
"public List<PerfBenchmarkDetail> getRecentDetailList(int limit, String testName);",
"private void getLastValueSensor(int id) {\n if (RESPONSES != null) {\n try {\n JSONObject jsonObject = new JSONObject(RESPONSES);\n JSONArray jsonArray = jsonObject.getJSONArray(\"data\");\n for (int i = 0; i <= jsonArray.length() + 1; i++) {\n JSONObject jsonObject1 = new JSONObject(jsonArray.getString(i));\n setId(jsonObject1.getInt(\"id\"));\n //Log.d(TAG, \"ID on the iteration \" + i + \" = \" + getId());\n if (getId() == id) {\n setValue(jsonObject1.getString(\"logvalue\"));\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n } else {\n setValue(\":)\");\n }\n }",
"public String getRunLog();",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n private List<SensorData> getLastSensorData(Session session, int idConcentrator)\n {\n Query query = session\n .createSQLQuery(\n \"SELECT SensorDatas.idMonitorData FROM SensorDatas, Sensors, Concentrators WHERE SensorDatas.idSensor = Sensors.idSensor AND Sensors.idConcentrator = Concentrators.idConcentrator AND Concentrators.idConcentrator = :id ORDER By SensorDatas.timeStamp DESC LIMIT 1\")\n .setParameter(\"id\", idConcentrator);\n List result = query.list();\n if (result.isEmpty()) {\n return null;\n }\n else\n {\n int idMonitorData = (Integer) result.iterator().next();\n Criteria cr = session.createCriteria(SensorData.class)\n .add(Restrictions.eq(\"monitorData.idMonitorData\", idMonitorData));\n return cr.list();\n }\n }",
"private Collection<LogEntry> getLogEntries(UUID id, boolean isOwner) throws UnAuthorizedException {\r\n Collection<LogEntry> entries = dao.getAllLogs(id);\r\n if (role.hasAccess(Resource.LOG, READ_ALL)\r\n || (role.hasAccess(Resource.LOG, READ_MINE) && isOwner)) {\r\n return entries;\r\n } else {\r\n throw new UnAuthorizedException();\r\n }\r\n }",
"public String getFromLog(int nbr) {\n StringBuffer sb = new StringBuffer();\n try {\n for (int i = 0; i < n && i < nbr; i++) {\n String[] split = history[i].split(\";\");\n String ms = split[2].trim();\n int millis = Integer.parseInt(ms);\n float s = ((float) millis / 1000); // turn ms to s\n sb.append(split[0] + \";\" + split[1] + \"; \" + s + \";\" + split[3] + \"\\n\");\n }\n }\n catch (Exception e) {\n // TODO: Catch the right type of exception\n }\n return sb.toString();\n }",
"public String getProcessLog(String processId) throws Exception {\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tString processLog = \"\";\r\n\t\ttry {\r\n\t\t\tconn = BaseDAO.connect(DATA_SOURCE);\r\n\t\t\tString query = \"SELECT U.PROCESS_LOG FROM STG_PROCESS_STATUS U WHERE U.PROCESS_ID = ?\";\r\n\t\t\tpstmt = conn.prepareCall(query);\r\n\t\t\tpstmt.setString(1, processId);\r\n\t\t\trs = pstmt.executeQuery();\r\n\t\t\tif(rs.next()) {\r\n\t\t\t\tprocessLog = rs.getString(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new Exception(e.getMessage());\r\n\t\t} finally {\r\n\t\t\ttry {rs.close();} catch (Exception e2) {}\r\n\t\t\ttry {pstmt.close();} catch (Exception e2) {}\r\n\t\t\ttry {conn.close();} catch (Exception e2) {}\r\n\t\t}\r\n\t\treturn processLog;\r\n\t}",
"Log getHarvestLog(String dsID) throws RepoxException;",
"public void getReceivedMessages(Long since, Long max, AsyncHttpResponseHandler handler) {\n\n String apiUrl = getApiUrl(\"direct_messages.json\");\n RequestParams params = new RequestParams();\n\n params.put(\"count\", 25);\n if (since != null) {\n params.put(\"since_id\", since);\n } else if (max != null) {\n params.put(\"max_id\", max);\n }\n\n // Execute the request\n getClient().get(apiUrl, params, handler);\n }",
"private LineJPA findStopEntryById(Long id) {\n LineJPA lineResult = lineRepository.findOne(id);\n return lineResult;\n }",
"public LogReader.Log nextLog(BufferedReader dataIS) throws IOException {\r\n\r\n ServletLog log = new ServletLog();\r\n boolean haveLog = false;\r\n\r\n while (true) {\r\n dataIS.mark(20 * 1000); // track where we are\r\n String line = dataIS.readLine();\r\n if (line == null) {\r\n return haveLog ? log : null;\r\n }\r\n // if (count++ < limit) System.out.println(\"\\n\" + line); nTest reqe\r\n\r\n try {\r\n Matcher m = commonPattern.matcher(line);\r\n if (m.matches()) {\r\n if (haveLog) { // have a log, next one matches, proceed\r\n try {\r\n dataIS.reset();\r\n return log;\r\n\r\n } catch (Throwable t) {\r\n System.out.println(\"Cant reset \" + line); \r\n }\r\n }\r\n haveLog = true; // next match will return the current log\r\n\r\n log.date = convertDate( m.group(1));\r\n log.reqTime = parseLong(m.group(2));\r\n log.reqSeq = parseLong(m.group(3));\r\n log.level = m.group(4).intern();\r\n log.where = m.group(5);\r\n\r\n String rest = m.group(6);\r\n if (rest.contains(\"Request Completed\")) {\r\n int pos = rest.indexOf(\"Request Completed\");\r\n Matcher m2 = donePattern.matcher(rest.substring(pos));\r\n if (m2.matches()) {\r\n log.returnCode = parse(m2.group(1));\r\n log.sizeBytes = parseLong(m2.group(2));\r\n log.msecs = parseLong(m2.group(3));\r\n log.isDone = true;\r\n\r\n } else {\r\n System.out.println(\"Cant parse donePattern= \" + rest);\r\n System.out.println(\" line= \" + line);\r\n log.addExtra(rest);\r\n }\r\n\r\n } else if (rest.contains(\"Remote host\")) {\r\n int pos = rest.indexOf(\"Remote host\");\r\n Matcher m2 = startPattern.matcher(rest.substring(pos));\r\n if (m2.matches()) {\r\n log.ip = m2.group(1);\r\n log.verb = m2.group(2).intern();\r\n log.path = EscapeStrings.urlDecode(m2.group(3)); //old URLDecoder.decode(m2.group(3));\r\n if (m2.groupCount() > 4)\r\n log.http = m2.group(4).intern();\r\n log.isStart = true;\r\n\r\n } else {\r\n System.out.println(\"Cant parse startPattern= \" + rest);\r\n System.out.println(\" line= \" + line);\r\n log.addExtra(rest);\r\n }\r\n\r\n } else { // a non-start, non-done log\r\n log.addExtra(rest);\r\n }\r\n\r\n } else { // the true extra line\r\n //System.out.println(\"No match on \" + line);\r\n log.addExtra(line);\r\n }\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"Cant parse \" + line);\r\n log.addExtra(line);\r\n }\r\n }\r\n\r\n }",
"@Nonnull\n Records getRecords(@Nullable Long maxId, @Nullable Long sinceId, @Nullable Integer maxResults, @Nullable Integer offset, @Nullable AuditingFilter filter);",
"public CallLog getLastOutgoingCallLog();",
"public static void printLog(int id) \n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\tConnection connection = \n\t\t\t\t\t\tDriverManager.getConnection(jdbcUrl, jdbcUser, jdbcUserPassword);\n\t\t\t\tStatement statement = connection.createStatement();\n\t\t\t\tString allCustomersQuery = \"SELECT * FROM Logs where userID=\"+id;\n\t\t\t\n\t\t\t\tResultSet resultSet = statement.executeQuery(allCustomersQuery);\n\t\t\t\tint ind =0;\n\t\t\t\twhile(resultSet.next())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(ind+\") Id: \" + resultSet.getInt(\"UserID\")+\", level: \"+resultSet.getInt(\"levelID\")+\", score: \"+resultSet.getInt(\"score\")+\", moves: \"+resultSet.getInt(\"moves\")+\", time: \"+resultSet.getDate(\"time\"));\n\t\t\t\t\tind++;\n\t\t\t\t}\n\t\t\t\tresultSet.close();\n\t\t\t\tstatement.close();\t\t\n\t\t\t\tconnection.close();\t\t\n\t\t\t}\n\t\t\t\n\t\t\tcatch (SQLException sqle) {\n\t\t\t\tSystem.out.println(\"SQLException: \" + sqle.getMessage());\n\t\t\t\tSystem.out.println(\"Vendor Error: \" + sqle.getErrorCode());\n\t\t\t}\n\t\t\tcatch (ClassNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"long getFirstLogIndex();",
"private String tailFile(File f) {\n try {\n return TailLogResponse.tailSystemLog(f);\n } catch (IOException ex) {\n return String.format(\"Could not tail %s because: %s\",\n f, ex);\n }\n }",
"@GetMapping(\"currentUser\")\n public BetterResponse getUserLastSevenLoginLogs() {\n String currentUsername = SecurityContextHolder.getContext().getAuthentication().getName();\n List<LoginLog> userLastSevenLoginLogs = this.loginLogService.findUserLastSevenLoginLogs(currentUsername);\n return new BetterResponse().data(userLastSevenLoginLogs);\n }",
"int getMaxOutputLines();",
"public abstract List<String> getCachedLogs(String readerName);",
"@Override\n\tpublic List<boardLIstDTO> myLogs(String user_id) throws Exception {\n\t\treturn sqlSession.selectList(namespace+\".myLogs\", user_id);\n\t}",
"public CallLog findCallLogFromCallId(String callId);",
"@Query(value = \"SELECT * FROM Champignon_Logboeken ORDER BY nummer DESC LIMIT ?1\", nativeQuery = true)\n\tpublic List<Champignonlogboek> findLastTen(int limit);",
"@Service\npublic interface LogService {\n\n List<Droplog> getDroplogByID(int traineeid) throws Exception;\n\n List<Exchangelog> getExchangelogByID(int traineeid) throws Exception;\n\n List<Rechargelog> getRechargelogByID(int traineeid) throws Exception;\n\n List<Rechargelog> getAllRechargelog() throws Exception;\n\n List<Subscribelog> getSubscribelogByID(int traineeid) throws Exception;\n\n List<Unsubscribelog> getUnsubscribelogByID(int traineeid) throws Exception;\n\n List<Subscribelog> getSubscribelogByCourse(int courseid) throws Exception;\n\n List<Unsubscribelog> getUnsubscribelogByCourse(int courseid) throws Exception;\n\n List<Droplog> getDroplogByCourse(int courseid) throws Exception;\n\n List<Settlelog> getSettlelogByinstitutionid(int institutionid) throws Exception;\n}",
"LogTailer startTailing();",
"public String getLog();",
"@Override\n public List<History> getHistories(Long id) {\n return historyRepository.findByProposalIdOrderByCreatedDateDesc(id);\n }",
"private Line getLastLine() {\n\t\treturn doily.lines.get(doily.lines.size()-1);\n\t}",
"public com.sybase.collections.GenericList<com.sybase.persistence.LogRecord> getLogRecords()\n {\n return ru.terralink.mvideo.sap.LogRecordImpl.findByEntity(\"Orders\", keyToString());\n }",
"public long getmaxCommittedLog() {\n return maxCommittedLog;\n }",
"public static void readResults(Service service, String jobsid, String serToken, String latestFile,\r\n\t\t\tResourceBundle props) {\r\n\r\n\t\tJob job = service.getJob(jobsid);\r\n\t\tint resultCount = job.getResultCount();\r\n\t\tlogger.info(\"Result count of job is: \" + resultCount);\r\n\t\tfloat runDuration = job.getRunDuration();\r\n\t\tfloat doneProgress = job.getDoneProgress();\r\n\t\tlogger.debug(\"Job done progress: \"+doneProgress);\r\n\t\t\r\n\t\tint offset = 0; // Start at result 0\r\n\t\tint count = 200000; // Get sets of 200000 results at a time\r\n\r\n\t\tString latestFileLocation = props.getString(\"latestLocation\") + latestFile;\r\n\t\tlogger.info(\"Location of latest file : \" + latestFileLocation);\r\n\t\tPrintWriter write;\r\n\r\n\t\ttry {\r\n\t\t\twrite = new PrintWriter(latestFileLocation);\r\n\t\t\twrite.write(\"UserId,IP_Address, Time\\n\");\r\n\r\n\t\t\t// Loop through each set of results\r\n\t\t\twhile (offset < resultCount) {\r\n\r\n\t\t\t\tservice.setToken(serToken);\r\n\t\t\t\tJobResultsArgs resultsArgs = new JobResultsArgs();\r\n\t\t\t\tresultsArgs.setOutputMode(JobResultsArgs.OutputMode.JSON);\r\n\t\t\t\tresultsArgs.setCount(count);\r\n\t\t\t\tresultsArgs.setOffset(offset);\r\n\r\n\t\t\t\t// Get the search results\r\n\t\t\t\tInputStream results = job.getResults(resultsArgs);\r\n\t\t\t\tResultsReaderJson resultsReader;\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tresultsReader = new ResultsReaderJson(results);\r\n\t\t\t\t\tHashMap<String, String> event;\r\n\t\t\t\t\twhile ((event = resultsReader.getNextEvent()) != null) {\r\n\r\n\t\t\t\t\t\tString resultEvent = \"\";\r\n\t\t\t\t\t\tfor (String key : event.keySet()) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * Converting the time stamp attribute of splunk to\r\n\t\t\t\t\t\t\t * UTC from then to epoch format.\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tif ((\"_time\").equals(key)) {\r\n\t\t\t\t\t\t\t\tString sysTime = event.get(key);\r\n\t\t\t\t\t\t\t\tLocalDateTime ldt = LocalDateTime.parse(sysTime, DateTimeFormatter.ISO_ZONED_DATE_TIME);\r\n\t\t\t\t\t\t\t\tZoneId centralZoneId = ZoneId.of(\"US/Central\");\r\n\t\t\t\t\t\t\t\tZonedDateTime centralZonedDateTime = ldt.atZone(centralZoneId);\r\n\t\t\t\t\t\t\t\tZoneId UTCZoneId = ZoneId.of(\"UTC\");\r\n\t\t\t\t\t\t\t\tZonedDateTime UTCDateTime = centralZonedDateTime.withZoneSameInstant(UTCZoneId);\r\n\t\t\t\t\t\t\t\tString UTCTime = UTCDateTime.toString();\r\n\t\t\t\t\t\t\t\tLocalDateTime ldt2 = LocalDateTime.parse(UTCTime,\r\n\t\t\t\t\t\t\t\t\t\tDateTimeFormatter.ISO_ZONED_DATE_TIME);\r\n\t\t\t\t\t\t\t\tLong EpochTime = ldt2.toEpochSecond(ZoneOffset.UTC);\r\n\t\t\t\t\t\t\t\tresultEvent += EpochTime;\r\n\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tresultEvent += event.get(key) + \",\";\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\twrite.write(resultEvent);\r\n\t\t\t\t\t\twrite.write(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tresultsReader.close();\r\n\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tlogger.error(\"Exception occrured in writing results to file : \" + e);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Increase the offset to get the next set of results\r\n\t\t\t\toffset = offset + count;\r\n\t\t\t\tlogger.debug(\"Writing a set of \" + offset + \" results completed\");\r\n\t\t\t}\r\n\t\t\twrite.close();\r\n\t\t\tlogger.debug(\"Writing results completed\");\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tlogger.error(\" Output file not found : \" + e);\r\n\t\t}\r\n\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tHashMap<String, Object> messagesMap = (HashMap<String, Object>) job.get(\"messages\");// To get the errors and warnings of the job\r\n\r\n\t\t/*\r\n\t\t * Call to methods to compress file then gets the location of comressed\r\n\t\t * file and sendEmail method will use the location and sends an email to\r\n\t\t * the mailer.\r\n\t\t */\r\n\t\tString outputFileLocation = GZipFile.gzipIt(latestFileLocation);\r\n\t\tSendMail.sendEmail(outputFileLocation, resultCount, runDuration, doneProgress, messagesMap );\r\n\t}",
"@Override\n\tpublic List<PositionData> getLatest10GpsPositionInfo(String terminalId) {\n\t\ttry {\n\t\t\tList<PositionData> returnData = new ArrayList<PositionData>();\n\t\t\tList<PositionData> tempData = new ArrayList<PositionData>();\n\t\t\tList<PositionData> position_list = new ArrayList<PositionData>();\n\t\t\tposition_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' order by date desc\");\n\t\t\tList<PositionData> gps_list = new ArrayList<PositionData>();\n\t\t\tfor(int i=0;i<position_list.size();i++){\n\t\t\t\tif(position_list.get(i).getInfo().contains(\"GPS状态:GPS定位\"))\n\t\t\t\t\tgps_list.add(position_list.get(i));\n\t\t\t}\n\t\t\tfor(int i=0;i<(gps_list.size()>10?10:gps_list.size());i++){\n\t\t\t\ttempData.add(gps_list.get(i));\n\t\t\t}\n\t\t\tfor(int i=tempData.size()-1;i>=0;i--)\n\t\t\t\treturnData.add(tempData.get(i));\n\t\t\treturn returnData;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}",
"public JfiPayLog getJfiPayLog(final Long logId);",
"public String getLastAccountOperations(int account_id, int n) {\n StringBuilder a = new StringBuilder();\n try (\n Statement s = rawDataSource.getConnection().createStatement();\n ResultSet res = s.executeQuery(\n \"SELECT * FROM OPERATIONS where FROM_ACCOUNT_ID = \"+account_id+\" OR TO_ACCOUNT_ID = \"+account_id+\" ORDER BY TIMESTAMP \" +\n \"DESC FETCH FIRST \"+n+\" ROWS ONLY\")) {\n\n while (res.next()) {\n int type = res.getInt(\"OP_TYPE\");\n switch(type){\n case 1:\n getMovementLog(a, res);\n break;\n case 2:\n getTransferLog(a, res);\n break;\n case 3:\n getCreateAccountLog(a, res);\n break;\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n if(a.length() == 0) a.append(\"No operations for account \"+account_id);\n return a.toString();\n }",
"public String getLog() {\n File childLogFile = loggingSession.getLogFile().isPresent()\n ? loggingSession.getLogFile().get().getChildLogFile() : null;\n String childTail = tailFile(childLogFile);\n String mainTail = tailFile(new File(agentConfig.getLogFile()));\n if (childTail == null && mainTail == null) {\n return \"No log file configured, log messages will be directed to stdout.\";\n } else {\n StringBuilder result = new StringBuilder();\n if (mainTail != null) {\n result.append(mainTail);\n }\n if (childTail != null) {\n result\n .append(\"\\n\" + \"-------------------- tail of child log --------------------\" + \"\\n\");\n result.append(childTail);\n }\n return result.toString();\n }\n }",
"public abstract Log getById(int id) throws DatabaseConfigException;",
"@Override\n\tpublic SendRecord getLastExcelTp(String vosId) {\n\t\tSession ss =sf.getCurrentSession();\n\t\tString hql=\"from SendRecord sr where sr.vosId=:vosId Order by sr.sendTime desc\";\n\t\tQuery query =ss.createQuery(hql);\n\t\tquery.setParameter(\"vosId\", vosId);\n\t\t\n\t\tquery.setMaxResults(1);// \n\t\t\n\t\tSendRecord sr=(SendRecord)query.uniqueResult();\n\t\treturn sr;\n\t}",
"public List<LineaDeLog> getLog(){\n\t\treturn new ArrayList<LineaDeLog>(logDao.list());\r\n\t}",
"public int getLogFileSizeLimit() {\n return agentConfig.getLogFileSizeLimit();\n }",
"private void processLog(File log) {\n BufferedReader in = null;\r\n ArrayList<String> list = new ArrayList<String>();\r\n String lastFrom = \"\";\r\n try {\r\n in = new BufferedReader(new FileReader(log));\r\n String line;\r\n while((line = in.readLine()) != null) {\r\n // lineNum++;\r\n if(line.contains(\"FROM\")) {\r\n // Start over at each FROM, leaving the last one and what\r\n // follows\r\n list.clear();\r\n list.add(line);\r\n lastFrom = line;\r\n } else if(line.contains(\"TO\")) {\r\n list.add(line);\r\n }\r\n }\r\n in.close();\r\n Data data = new Data(log.getName(), lastFrom);\r\n results.add(data);\r\n System.out.printf(\"%s\\n\", log.getName());\r\n for(String item : list) {\r\n System.out.printf(\" %s\\n\", item);\r\n }\r\n } catch(Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }",
"public TadminLog getRuleLogById(Integer Id) {\n\t\treturn adminLogDao.get(Id);\n\t}",
"public int getLogid() {\n\treturn logid;\n}",
"public String getLastDateHistory( String code) {\n String query = \"SELECT * FROM \"+ code +\"R where time > '2015-06-01T00:00:00Z'\";\n QueryResult list = InfluxDaoConnector.getPoints(query,dbName);\n\n if (!checker(list))\n return null;\n\n int size = list.getResults().get(0).getSeries().get(0).getValues().size();\n\n\n return (String) list.getResults().get(0).getSeries().get(0).getValues().get(size-1).get(0);\n\n }",
"@Override\n\tpublic HwTraceStudyLogInfo getEntityById(Integer id) throws WEBException {\n\t\ttry {\n\t\t\thwLogDao = (HwTraceStudyLogDao) DaoFactory.instance(null).getDao(Constants.DAO_HW_TRACE_STUDY_LOG_INFO);\n\t\t\tSession sess = HibernateUtil.currentSession();\n\t\t\treturn hwLogDao.getEntityById(sess, id);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tthrow new WEBException(\"根据主键获取溯源学习记录时出现异常!\");\n\t\t} finally{\n\t\t\tHibernateUtil.closeSession();\n\t\t}\n\t}",
"@Override\n public GrayLogOutput getLogs( String logId ) throws DataException\n {\n GrayLogOutput grayLogOutput = new GrayLogOutput();\n\n String appFolder = environment.getProperty(\"app.folder\");\n File folder = new File(appFolder + logId);\n if( folder.exists() )\n FileUtil.deleteFile(folder);\n\n csvFolder = folder.getAbsolutePath() + File.separator + \"csv\";\n jsonFolder = folder.getAbsolutePath() + File.separator + \"json\";\n\n FileUtil.createFolder(folder.getAbsolutePath());\n FileUtil.createFolder(csvFolder);\n FileUtil.createFolder(jsonFolder);\n\n GraylogList graylogOwner = getLogFromGraylog(logId, logIdFiled);\n grayLogOutput.setOwner(graylogOwner);\n getParentsAndChildren(grayLogOutput, parent);\n getParentsAndChildren(grayLogOutput, children);\n\n return grayLogOutput;\n }",
"TrackerHistory getTrackerHistory(final Integer id);",
"public synchronized void readLog() {\n MemoryCache instance = MemoryCache.getInstance();\n try (Stream<String> stream = Files.lines(Paths.get(path)).skip(instance.getSkipLine())) {\n stream.forEach(s -> {\n Result result = readEachLine(s);\n instance.putResult(result);\n instance.setSkipLine(instance.getSkipLine() + 1);\n });\n } catch (IOException e) {\n logger.error(\"error during reading file \" + e.getMessage());\n }\n }",
"public interface ProcessService {\n\n int findHighestConsumptionIn(byte[] rawLogs, int startTime, int endTime);\n\n}",
"public List<Message> getMessages(Long id){\n return messagesParser.getMessages(id);\n }",
"List<Notification> getNotifications(String lineID);",
"public interface LogService {\n DataWrapper<List<LogEntity>> list(Map<String, String> condition);\n\n DataWrapper<Void> delete(int[] logId);\n}",
"public JbdSendRecordHist getJbdSendRecordHist(final String id);",
"TrackerUserLocationLog getTrackerUserLocationLog(final Integer id);",
"public String getLogId() {\r\n return logId;\r\n }",
"public HashMap<String, Long> readRegionServerLastLogRollResult() throws IOException {\n return systemTable.readRegionServerLastLogRollResult(backupInfo.getBackupRootDir());\n }",
"public List<String> getRunLogAsList();",
"public static String getLogEntry(int index){\n if(index < 0 || index >= log.size()){\n return \"\";\n }\n return log.get(index);\n }",
"String getLogContinued();",
"long getLastUpdate(long inId);",
"public GeobatchRunInfo getLastRunInfo(String... compositeId) {\n return getLastRunInfoCache(generateDecription(compositeId));\n }",
"public interface LogsService {\n /**\n * 保存日志\n *\n * @param userCustom\n * @param ipAddr\n * @param logAction\n * @param data\n * @param currentTime\n */\n void saveLogs(User userCustom, String ipAddr, String logAction, String data, long currentTime);\n\n /**\n * 获取所有日志\n *\n * @param loginUserId 用户\n * @return\n */\n List<Logs> findAll(String loginUserId, Integer limit);\n\n /**\n * 查询日志统计信息\n * @param uid\n * @return\n */\n List<CountInfoBean> findLogsInfo(String uid);\n\n /**\n * 查询分类统计信息\n * @param uid\n * @return\n */\n List<CountInfoBean> findCategoryInfo(String uid);\n}",
"EbayLmsLog selectByPrimaryKey(Integer id);",
"public CampaignEmailStatsAIMAllResult getLastOpenClickHistory(String campaignId){\r\n CampaignEmailStatsAIMAllMethod campaignEmailStatsAIMAllMethod = new CampaignEmailStatsAIMAllMethod();\r\n CampaignEmailStatsAIMAllResult campaignEmailStatsAIMAllResult = new CampaignEmailStatsAIMAllResult();\r\n\r\n campaignEmailStatsAIMAllMethod.apikey = this.apiKey;\r\n campaignEmailStatsAIMAllMethod.cid = campaignId;\r\n\r\n try{\r\n campaignEmailStatsAIMAllResult = mailChimpClient.execute(campaignEmailStatsAIMAllMethod);\r\n }catch(MailChimpException me){\r\n logger.info(me.message);\r\n }catch (java.io.IOException ioException){\r\n logger.info(\"IO Exception\");\r\n }\r\n\r\n return campaignEmailStatsAIMAllResult;\r\n }",
"LogService getLogService( ) {\n\n return config.getLogService();\n }",
"@Override\n public Optional<JSONObject> loadLatest(final String keyId) {\n return loadLatestTimer.record(() -> {\n try {\n // Have to use query api to use limit and reverse sort order\n ItemCollection<QueryOutcome> itemCollection = table.query(new QuerySpec()\n .withHashKey(PARTITION_KEY, keyId)\n .withProjectionExpression(ATTRIBUTE_KEY_RECORD)\n .withScanIndexForward(false) // sorts descending\n .withMaxResultSize(1) // limit 1\n .withConsistentRead(true)); // always use strong consistency\n\n Iterator<Item> iterator = itemCollection.iterator();\n if (iterator.hasNext()) {\n Item item = iterator.next();\n return Optional.of(new JSONObject(item.getMap(ATTRIBUTE_KEY_RECORD)));\n }\n }\n catch (SdkBaseException se) {\n logger.error(\"Metastore error\", se);\n }\n\n return Optional.empty();\n });\n }",
"public static void main(String[] args) throws FileNotFoundException \r\n\t\t{\r\n\t\t\r\n\t\t\tdouble timestamp_difference ; \r\n\t\t{\r\n\t\t\ttry (BufferedReader br = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(\" Captured Summary of the Microservices Log file located at C:\\\\mslog.txt is as below : \" );\r\n\t\t\t\t\tSystem.out.println(\" ************ Start of Log file Summary ************* \");\r\n\t\t\t\t\tSystem.out.println(\" Sr.No 1 - \" ); \r\n\t\t\t\t\t\r\n\t\t\t\t\tString sCurrentLine;\r\n\t\t\t \r\n\t\t\t String Search=\"(addClient:97900)\";\r\n\t\t\t while ((sCurrentLine = br.readLine()) != null) \r\n\t\t\t {\t \t\r\n\t\t\t \t \r\n\t\t\t \tif(sCurrentLine.contains(Search))\r\n\t\t\t {\t\t \r\n\t\t\t System.out.println(\" (addClient:97900) string found in log file where Name of service is = addClient & Request id is = 97900 \" ) ;\r\n\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 \t\tint count = 0;\r\n\t\t\t for (int i = 0; i <= 1 ; i++) {\r\n\t\t\t count++;\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t System.out.println( \" Sr.No 2 - Number of requests made to the service are = \" + count);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t\t\r\n\r\n\t\t\t }\t\r\n\t\t\t\r\n\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\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry (BufferedReader br1 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search1=\"2015-10-28T12:24:33,903\";\r\n\t\t\t while ((sCurrentLine = br1.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search1))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 3 - Entry time stamp of Add Client Request (id-97900) found in logfile is = \" + Search1 );\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\t\t\t \r\n\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\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\t \r\n\t\t\t\r\n\t\t\ttry (BufferedReader br2 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search2=\"2015-10-28T12:24:34,002\";\r\n\t\t\t while ((sCurrentLine = br2.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search2))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 4 - Exit time stamp of Add Client Request (id-97900) found in logfile is = \" + Search2 );\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\t\t\t \r\n\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\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\ttry (BufferedReader br3 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search3=\"33,903\";\t\t \r\n\t\t\t while ((sCurrentLine = br3.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search3))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 5 - Entry time stamp (in seconds) of Add Client Request (id-97900) found in logfile is = \" + Search3 );\r\n\t\t\t //double secexit = Integer.parseInt(Search3);\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\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\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttry (BufferedReader br4 = new BufferedReader (new FileReader(\"C:\\\\mslog.txt\"))) \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\t{\r\n\t\t\t String sCurrentLine;\r\n\t\t\t String Search4=\"34,002\";\t\t \r\n\t\t\t while ((sCurrentLine = br4.readLine()) != null) \r\n\t\t\t {\r\n\t\t\t if(sCurrentLine.contains(Search4))\r\n\t\t\t {\r\n\t\t\t System.out.println(\" Sr.No 6 - Exit time stamp (in seconds) of Add Client Request (id-97900) found in logfile is = \" + Search4 );\r\n\t\t\t //double secentry = Integer.parseInt(Search4);\r\n\t\t\t }\r\n\t\t\t \r\n\r\n\t\t\t }\r\n\t\t\t \r\n\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\t\r\n\t\t\t\tcatch (IOException e) {\r\n\t\t\t e.printStackTrace();\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\ttimestamp_difference = ( 34002 - 33903 ) * 0.0001 ;\r\n\t\t\tSystem.out.println(\" Sr.No 7 - Maximum time required for Add Client request execution ( in seconds ) is = \" + timestamp_difference );\r\n\t\t\t\r\n\t\t\tSystem.out.println(\" ************ End of Log file Summary ************* \");\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public interface SysLogService {\n PageHolder<SysLog> listSysLogByPage(String moduleName, String methodName, String userName, String ip, String startDate,\n String endDate, int pageIndex, int pageSize);\n}",
"public CallLog[] getCallHistoryForAddress(Address addr);",
"PagingLoadResult<GWTJahiaContentHistoryEntry> getContentHistory(String nodeIdentifier, int offset, int limit) throws GWTJahiaServiceException;",
"public Long getLastRunDuration();",
"public void getSentMessages(Long since, Long max, AsyncHttpResponseHandler handler) {\n\n String apiUrl = getApiUrl(\"direct_messages/sent.json\");\n RequestParams params = new RequestParams();\n\n params.put(\"count\", 25);\n if (since != null) {\n params.put(\"since_id\", since);\n } else if (max != null) {\n params.put(\"max_id\", max);\n }\n\n // Execute the request\n getClient().get(apiUrl, params, handler);\n }",
"public CallLog[] getCallLogs();",
"public static void readStats(String logfile) throws IOException {\t\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t//System.out.println(\"Reading log file \"+logfile+\".\");\n\t\tBufferedReader br = new BufferedReader( new FileReader(logfile) );\n\t\tString line;\t\t\n\t\tboolean ignoreEntry;\n\t\tboolean isClickEntry;\n\t\tString oldSessionid=\"\";\n\t\tString ip=null;\n\t\tString oldIp=\"\";\n\t\tDate date=null;\n\t\tDate firstDate=null;\n\t\tDate lastDate=null;\t\t\n\t\tint totalSessions=0; // all sessions\n\t\t//int nEntriesSession=0;\n\t\tVector<LogEntry> vlines=new Vector<LogEntry>();\n\t\tVector<String> vqueries=new Vector<String>();\t\t\n\n\t\t// init maps\t\t\n\t\t/*\n\t\tfor (int i=0;i<entryFilters.length;i++) {\n\t\t\tentryFiltersMap.put(entryFilters[i], null);\n\t\t}\n\t\t*/\t\t\n\t\tfor (int i=0;i<queryFilters.length;i++) {\n\t\t\tqueryFiltersMap.put(queryFilters[i], null);\n\t\t}\t\t\t\n\t\tfor (int i=0;i<stopwords.length;i++) {\n\t\t\tstopwordsMap.put(stopwords[i], null);\n\t\t}\n\t\t\n\t\twhile ( ( line = br.readLine() ) != null ) {\t\t\t\t\n\t\t\tString parts[]=line.split(\"\\\\s\");\n\t\t\tip=parts[0];\t\t\t\n\t\t\tString sessionid=parts[2];\t\t\t\n\t\t\tString method=parts[5];\t\t\t\t\t\t\n\t\t\tif (!method.equals(\"\\\"GET\")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString sdate=parts[3].substring(1)+\" \"+parts[4].substring(0,parts[4].length()-1);\t\t\t\n\t\t\ttry {\n\t\t\t\tdate=dformat.parse(sdate);\n\t\t\t} \n\t\t\tcatch (ParseException e) {\n\t\t\t\tthrow new IOException(e);\n\t\t\t}\n\n\t\t\tString query=parts[6];\n\t\t\tignoreEntry=false;\n\t\t\tisClickEntry=false;\n\t\t\tif (query.startsWith(\"/pesquisa?pag=\")) {\n\t\t\t\tquery=query.substring(\"/pesquisa?pag=\".length());\n\t\t\t\tisClickEntry=true;\n\t\t\t}\n\t\t\telse if (query.startsWith(\"/pesquisa?\")) {\n\t\t\t\tquery=query.substring(\"/pesquisa?\".length());\n\t\t\t}\n\t\t\telse if (query.startsWith(\"/termos?\")) {\n\t\t\t\tquery=query.substring(\"/termos?\".length());\n\t\t\t}\n\t\t\telse { \n\t\t\t\tignoreEntry=true;\n\t\t\t}\t\t\t\t\t\n\n\t\t\tif (!ignoreEntry) {\n\t\t\t\t// count sessions\n\t\t\t\tif (oldIp.equals(\"\") || /*!oldSessionid.equals(sessionid) ||*/ !oldIp.equals(ip) || date.getTime()-lastDate.getTime()>SESSION_TIMEOUT) { // new session if one of this rules occur\t\t\n\t\t\t\t\t\n\t\t\t\t\tif (totalSessions>=IGNORE_FIRST_SESSIONS) {\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t// compute stats adding session lines\n\t\t\t\t\t if (!oldIp.equals(\"\")) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// reset pages view counter\n\t\t\t\t\t\t\tfor (int i=0;i<pagesViewedDistAux.length;i++) {\n\t\t\t\t\t\t\t\tpagesViewedDistAux[i]=0;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tfor (int i=0;i<docsClickedDistAux.length;i++) {\n\t\t\t\t\t\t\t\tdocsClickedDistAux[i]=0;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttotalClicksAux=0;\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// count log entries\n\t\t\t\t\t\t\tfor (int i=0;i<vlines.size();i++) {\n\t\t\t\t\t\t\t\tif (vlines.get(i).isClick()) {\n\t\t\t\t\t\t\t\t\taddClickEntry(vlines.get(i).getQuery());\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\tString submittedQuery=addQueryEntry(vlines.get(i).getQuery());\n\t\t\t\t\t\t\t\t\tif (submittedQuery!=null) { // query on the first SERP\n\t\t\t\t\t\t\t\t\t\tvqueries.add(submittedQuery);\t\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// min and max queries per session \n\t\t\t\t\t\t\tif (nQueriesSession>maxQueriesPerSession) {\n\t\t\t\t\t\t\t\tmaxQueriesPerSession=nQueriesSession;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (nQueriesSession<minQueriesPerSession) {\n\t\t\t\t\t\t\t\tminQueriesPerSession=nQueriesSession;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// process valid session\n\t\t\t\t\t\t\tlong minutes=((lastDate.getTime()-firstDate.getTime())/1000/60); // compute session duration\n\t\t\t\t\t\t\tif (nQueriesSession>0 && nQueriesSession<=MAX_QUERIES_PER_SESSION && minutes>=0) { // session discarded if has no queries or too many queries or that session has a negative time (this strange case occurs probability to a system date change)\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// set queries stats\n\t\t\t\t\t\t\t\tfor (int i=0;i<vqueries.size();i++) {\n\t\t\t\t\t\t\t\t\tstatsForQuery(vqueries.get(i));\n\t\t\t\t\t\t\t\t\t//System.out.println(\"ALLQUERIES: \"+vqueries.get(i)+\" \"+oldIp);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// set stats of SERPs viewed\n\t\t\t\t\t\t\t\tint numberPagesViewed=0;\n\t\t\t\t\t\t\t\tfor (int i=0;i<pagesViewedDistAux.length;i++) {\n\t\t\t\t\t\t\t\t\tif (pagesViewedDistAux[i]>0) { \n\t\t\t\t\t\t\t\t\t\tpagesViewedDist[i]+=pagesViewedDistAux[i];\n\t\t\t\t\t\t\t\t\t\ttotalPagesViewed+=pagesViewedDistAux[i];\n\t\t\t\t\t\t\t\t\t\tif (i>0) {\n\t\t\t\t\t\t\t\t\t\t pagesViewedNotFirstPage+=pagesViewedDistAux[i];\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tnumberPagesViewed++;\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// set stats of clicks\n\t\t\t\t\t\t\t\tfor (int i=0;i<docsClickedDistAux.length;i++) {\n\t\t\t\t\t\t\t\t\tdocsClickedDist[i]+=docsClickedDistAux[i];\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\tif (totalClicksAux==0) {\n\t\t\t\t\t\t\t\t nSessionsWithoutClicks++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttotalClicks+=totalClicksAux;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttotalValidSessions++;\n\t\t\t\t\t\t\t\tif (minutes>0) {\n\t\t\t\t\t\t\t\t\ttotalValidSessionsMoreThanOneQuery++;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnumberPagesViewedDist[numberPagesViewed>=N_PAGES_VIEWED_RANGE-1 ? numberPagesViewed=N_PAGES_VIEWED_RANGE-1 : numberPagesViewed]++;\n\t\t\t\t\t\t\t\tnQueriesSessionDist[nQueriesSession>nQueriesSessionDist.length-1 ? nQueriesSessionDist.length-1 : nQueriesSession]++;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// set session duration\n\t\t\t\t\t\t\t\t//if (lastDate.getTime()!=firstDate.getTime()) { to remove all sessions with only one interaction\n\t\t\t\t\t\t\t\tboolean stop=false;\n\t\t\t\t\t\t\t\tfor (int j=0;j<N_TIME_BINS && !stop;j++) {\n\t\t\t\t\t\t\t\t\tif (j==N_TIME_BINS-1 && minutes>=TIME_BINS[j]) {\n\t\t\t\t\t\t\t\t\t timeBins[j]++;\n\t\t\t\t\t\t\t\t\t stop=true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse if (minutes>=TIME_BINS[j] && minutes<TIME_BINS[j+1]) {\n\t\t\t\t\t\t\t\t\t timeBins[j]++;\n\t\t\t\t\t\t\t\t\t stop=true;\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\tif (!stop) { // sanity check\n\t\t\t\t\t\t\t\t \tthrow new IOException(\"Wrong bin for \"+minutes+\" minutes with IP \"+oldIp+\".\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\ttotalMinutes+=minutes;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// add session to IP\n\t\t\t\t\t\t\t\tInteger nSessions=nSessionsIP.get(oldIp);\n\t\t\t\t\t\t\t\tif (nSessions!=null) {\n\t\t\t\t\t\t\t\t\tnSessionsIP.put(oldIp,nSessions+1);\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\tnSessionsIP.put(oldIp,1);\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t if (minutes<0) {\n\t\t\t\t\t\t\t \tSystem.err.println(\"Wrong bin for \"+minutes+\" minutes with IP \"+oldIp+\".\");\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t else if (nQueriesSession>MAX_QUERIES_PER_SESSION) {\n\t\t\t\t\t\t\t \tSystem.err.println(\"IP \"+oldIp+\" on date \"+date+\" with too many queries:\"+nQueriesSession);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t else {\n\t\t\t\t\t\t\t \tSystem.err.println(\"IP \"+oldIp+\" on date \"+date+\" without queries:\"+nQueriesSession);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t/* TODO remove\n\t\t\t\t\t\tif (oldSessionid.equals(sessionid)) {\n\t\t\t\t\t\t\tSystem.err.println(\"oldSessionid igual com diferentes IPs!! \"+oldSessionid+\" \"+oldIp+\" \"+ip);\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\toldSessionid=sessionid;\n\t\t\t\t\t\toldIp=ip;\t\n\t\t\t\t\t\tfirstDate=date;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tvlines=new Vector<LogEntry>();\n\t\t\t\t\t\tvqueries=new Vector<String>();\n\t\t\t\t\t\t//nEntriesSession=0;\n\t\t\t\t\t\tnewTerms=new HashMap<String,Integer>();\t\t\n\t\t\t\t\t\tsessionQueries=new HashSet<String>();\n\t\t\t\t\t\toldQuery=new String();\n\t\t\t\t\t\tnQueriesSession=0;\n\t\t\t\t\t}\n\t\t\t\t\ttotalSessions++;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tvlines.add(new LogEntry(query,isClickEntry));\t\t\t\t\t\n\t\t\t\tlastDate=date;\n\t\t\t}\t\t\t\n\t\t}\t\t\t\t\n\t\tbr.close();\n\t\t// discard last session by discarding last vlines\n\t}",
"public int getLogMessages() {\n\t\treturn this.iLogMessages;\n\t}",
"public String readWholeLog(String dateOfLog){\n String logLines=\"\";\n\n if(dateOfLog.equals(todaysDate)||dateOfLog.equals(\"\")) {\n if(logWriter==null){\n logLines+=readFile(dateOfLog,0);\n }else{\n closeLog();\n logLines+=readFile(dateOfLog,0);\n }\n }else{\n logLines+=readFile(dateOfLog,0);\n }\n return logLines;\n }",
"@Override\n public List<Clip> findById(int id) {\n return fillList(logsCollection.find(eq(\"id\", id)));\n }",
"HotspotLog selectByPrimaryKey(Long id);"
] | [
"0.57276225",
"0.5610969",
"0.54727864",
"0.54225415",
"0.53955483",
"0.5310161",
"0.5309631",
"0.5195446",
"0.51897144",
"0.5168227",
"0.5126993",
"0.5125728",
"0.5116723",
"0.5100262",
"0.50995827",
"0.50379854",
"0.5021572",
"0.49772584",
"0.4966233",
"0.49509835",
"0.49413216",
"0.49296153",
"0.49201402",
"0.49157822",
"0.4907967",
"0.4899928",
"0.4890772",
"0.48906007",
"0.488112",
"0.48794806",
"0.48709995",
"0.48534322",
"0.48391876",
"0.4803578",
"0.4793471",
"0.47818995",
"0.47626093",
"0.4762229",
"0.47585058",
"0.4758458",
"0.47549886",
"0.47357568",
"0.47253743",
"0.47252858",
"0.47191358",
"0.47085583",
"0.4685475",
"0.46780795",
"0.46562597",
"0.463048",
"0.46221292",
"0.46166873",
"0.46148065",
"0.46104923",
"0.46081227",
"0.4595326",
"0.459254",
"0.4583409",
"0.45750564",
"0.45718494",
"0.45656922",
"0.4552281",
"0.45385617",
"0.4536355",
"0.45334157",
"0.45312625",
"0.4530425",
"0.4528377",
"0.4525873",
"0.4525056",
"0.4522432",
"0.4520114",
"0.45197552",
"0.45172834",
"0.4515718",
"0.45124847",
"0.4503516",
"0.45027724",
"0.45011663",
"0.44958004",
"0.44907233",
"0.44856",
"0.44814202",
"0.44800478",
"0.44795287",
"0.44699618",
"0.4466763",
"0.4460959",
"0.4453197",
"0.4446038",
"0.4441564",
"0.44401056",
"0.44396168",
"0.4436693",
"0.44332826",
"0.44286904",
"0.44264966",
"0.44263574",
"0.44217244",
"0.44200692"
] | 0.5774257 | 0 |
Get input history of a service by given ID | public Map consoleInputHistory(String id) throws IOException
{
return request(POST, address(id, "history"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TrackerHistory getTrackerHistory(final Integer id);",
"@Override\n public List<History> getHistories(Long id) {\n return historyRepository.findByProposalIdOrderByCreatedDateDesc(id);\n }",
"public List<Booking> fetchHistory(Integer id)\n\t{\n\t\treturn booking_repo.fetchAllBookings(id);\n\t}",
"TrackerHistory loadTrackerHistory(final Integer id);",
"@Override\n public History getHistory(Long historyID) {\n return historyDao.get(historyID);\n }",
"public interface HistoryService {\n /**\n * 查询历史住房信息\n * @param map\n * @return\n */\n List<Map> getHistory(Map map);\n\n /**\n * 获取分页总数量\n * @return\n */\n int getCount(Map map);\n}",
"List<Order> getHistoryOrders(HistoryOrderRequest orderRequest);",
"@Override\n public List<Number> getRevisionHistory(Long id) {\n return null;\n }",
"public CallLog[] getCallHistoryForAddress(Address addr);",
"public JbdSendRecordHist getJbdSendRecordHist(final String id);",
"@Override\n\tpublic ElementHistory getById(Long id) {\n\t\treturn elementHistoryRepository.findOne(id);\n\t}",
"public List<Order> getOrderHistory();",
"private List getServicesHistory(String xmlResponse) {\r\n\r\n\t\tList serviceList = new ArrayList();\r\n\t\t\r\n\t\tServiceVO activeService;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tElement root;\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement element = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\telement = DOMUtils.getElement(element, \"contract\", true);\r\n\t\t\t\r\n\t\t\tNodeList serviceNodeList = DOMUtils.getElements(element, \"service\");\r\n\t\t\tElement subElement;\r\n\t\t\tfor (int i = 0; i < serviceNodeList.getLength(); i++) {\r\n\t\t\t\telement = (Element) serviceNodeList.item(i);\r\n\t\t\t\tactiveService = new ServiceVO();\r\n\t\t\t\t//sets the sncode\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"code\", true);\r\n\t\t\t\tactiveService.setSnCode(DOMUtils.getText(subElement).toString());\r\n\t\t\t\t//sets the description\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"desc\", true);\r\n\t\t\t\tactiveService.setDescription(DOMUtils.getText(subElement).toString());\r\n\t\t\t\t//sets the service history\r\n\t\t\t\tsubElement = DOMUtils.getElement(element, \"contract-svc\", true);\r\n\t\t\t\tsubElement = DOMUtils.getElement(subElement, \"status-hist\", true);\r\n\t\t\t\tactiveService.setServiceHistory(getServiceHistory(DOMUtils.getText(subElement).toString()));\r\n\t\t\t\t//sets the service activation\r\n\t\t\t\tactiveService.setServiceActivation(getActivationDate(DOMUtils.getText(subElement).toString()));\r\n\t\t\t\t//sets the service status\r\n\t\t\t\tactiveService.setStatus(getServiceCurrentStatus(DOMUtils.getText(subElement).toString()));\r\n\t\t\t\t\r\n\t\t\t\tserviceList.add(activeService);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t}\r\n\t\t\r\n\t\treturn serviceList;\t\t\t\t\t\t\r\n\t\t\r\n\t}",
"List<OFPortMod> getHistory(DatapathId dpid, OFPort port) throws PortModException;",
"INexusFilterDescriptor[] getFilterDescriptorHistory();",
"@GetMapping(\"gethistory\")\n\tpublic ArrayList<TransactionalHistory> getHistory(@RequestParam int userID){\n\t\tUser user = userService.getUser(userID);\n\t\treturn userService.getHistory(user);\n\t}",
"@GET\n @ApiOperation(\"Get process status history\")\n @javax.ws.rs.Path(\"/{instanceId}/history\")\n @Produces(MediaType.APPLICATION_JSON)\n @WithTimer\n public List<ProcessStatusHistoryEntry> getStatusHistory(@ApiParam @PathParam(\"instanceId\") UUID instanceId) throws IOException {\n ProcessKey pk = assertKey(instanceId);\n return queueDao.getStatusHistory(pk);\n }",
"@RequestMapping(value = \"/showBidHistory/{id}\", method=RequestMethod.POST)\n\tpublic List<AuctionBid> showBidHistory(@PathVariable String id) {\n\t\treturn postingAuctionService.getBidHistory(Integer.parseInt(id));\n\t}",
"List<OFPortMod> getHistory(DatapathId dpid, OFPort port, Date startTime, Date endTime) throws PortModException;",
"@GetMapping(\"/getOrderHistory\")\n\tpublic ResponseEntity<List<Order>> getOrderHistoryWithOrderId(@RequestParam int orderId) {\n\t\treturn new ResponseEntity<>(dataFetchService.getOrderHistoryWithOrderId(orderId), HttpStatus.OK);\n\t}",
"public RecordSet loadAllProcessDetailHistory(Record inputRecord);",
"@Override\n public void updateHistory() {\n List<Integer> allItemIds = determineItemIds();\n if (allItemIds == null || allItemIds.size() == 0) {\n Log.i(TAG, \"No Item Ids exists to create history data sets.\");\n return;\n }\n\n long processTs = System.currentTimeMillis();\n long startLastMonth;\n long endLastMonth;\n // determine the last month depending from the process timestamp. In the first iteration\n // the process timestamp is the current timestamp. With the second iteration,\n startLastMonth = DateHelper.startOfLastMonth(processTs);\n endLastMonth = DateHelper.endOfLastMonth(processTs);\n // iterate through all known IDs. This is required because we want to create a history entry\n // for each item\n for (int itemId : allItemIds) {\n updatePriceHistory(itemId, startLastMonth, endLastMonth);\n }\n }",
"@ClassVersion(\"$Id: HistoryService.java 16670 2013-08-28 19:49:06Z colin $\")\r\npublic interface HistoryService {\r\n\r\n /**\r\n * Initializes the receiver with the given system resources.\r\n *\r\n * @param idFactory The ID factory to be used for report ID\r\n * generation.\r\n * @param reportSavedListener The listener notified after a report\r\n * has been saved (successfully or not). It may be null if no\r\n * notifications are needed.\r\n * @param dataSource the data source\r\n *\r\n * @throws PersistenceException if an error occurs during initialization\r\n */\r\n public void init(IDFactory idFactory,\r\n \t\tReportSavedListener reportSavedListener,\r\n \t\tComboPooledDataSource dataSource)\r\n throws PersistenceException;\r\n \r\n /**\r\n * Returns the actor ID associated with the report with given\r\n * order ID.\r\n *\r\n * @param orderID The order ID.\r\n *\r\n * @return The actor ID. If no report with the given order ID\r\n * exists, null is returned, and no exception is thrown.\r\n *\r\n * @throws PersistenceException if there were errors accessing the\r\n * report.\r\n */\r\n public UserID getActorID\r\n \t\t(final OrderID orderID)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Returns all the reports received after the supplied date-time\r\n * value, and which are visible to the given user.\r\n *\r\n * @param user the user making the query. Cannot be null.\r\n * @param data the date-time value. Cannot be null.\r\n *\r\n * @return the reports that were received after the date-time\r\n * value, and which are visible to the given user.\r\n *\r\n * @throws PersistenceException if there were persistence errors\r\n * fetching the reports.\r\n */\r\n public ReportBaseImpl[] getReportsSince\r\n \t\t(SimpleUser user, Date data)\r\n \t\tthrows PersistenceException;\r\n\r\n /**\r\n * Returns the open orders visible to the given user.\r\n *\r\n * @param user a <code>SimpleUser</code> value\r\n * @return a <code>List<ReportBaseImpl</code> value\r\n * @throws PersistenceException if there were errors retrieving the data\r\n */\r\n public List<ReportBaseImpl> getOpenOrders(SimpleUser user)\r\n throws PersistenceException;\r\n \r\n /**\r\n * Returns the position of the instrument based on all reports\r\n * received for it before or on the supplied date, and which are visible\r\n * to the given user.\r\n *\r\n * @param user the user making the query. Cannot be null.\r\n * @param data the date to compare with all the reports. Only the reports\r\n * that were received prior to or on this date will be used in this calculation.\r\n * Cannot be null.\r\n * @param instrument the instrument whose position is desired. Cannot be null.\r\n *\r\n * @return the instrument position.\r\n *\r\n * @throws PersistenceException if there were errors retrieving the equity\r\n * position\r\n */\r\n public BigDecimal getPositionAsOf\r\n \t\t(SimpleUser user, Date data, Instrument instrument)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Returns the aggregate position of each (instrument,account,actor)\r\n * tuple based on all reports for given security type\r\n * received for each tuple on or before the supplied date, \r\n * and which are visible to the given user.\r\n *\r\n * @param user the user making the query. Cannot be null.\r\n * @param data the date to compare with all the reports. Only\r\n * the reports that were received on or prior to this date will be\r\n * used in this calculation. Cannot be null.\r\n * @param securityType the security type. Cannot be null.\r\n *\r\n * @return the position map.\r\n *\r\n * @throws PersistenceException if there were errors retrieving the\r\n * position map.\r\n */\r\n public Map<PositionKey, BigDecimal> getPositionsAsOf\r\n \t\t(SimpleUser user, Date data, SecurityType securityType)\r\n \t\tthrows PersistenceException;\r\n\r\n /**\r\n * Returns the aggregate position of each (instrument,account,actor)\r\n * tuple based on all reports received for each tuple on or before\r\n * the supplied date, and which are visible to the given user.\r\n *\r\n * @param user the user making the query. Cannot be null.\r\n * @param data the date to compare with all the reports. Only\r\n * the reports that were received on or prior to this date will be\r\n * used in this calculation. Cannot be null.\r\n *\r\n * @return the position map.\r\n *\r\n * @throws PersistenceException if there were errors retrieving the\r\n * position map.\r\n */\r\n public Map<PositionKey, BigDecimal> getAllPositionsAsOf\r\n \t\t(SimpleUser user, Date data)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Saves the supplied report to the database. Saving may be\r\n * immediate or delayed; in either case the report ID is set\r\n * before this method returns.\r\n *\r\n * @param report the report to be saved. Cannot be null.\r\n *\r\n * @throws PersistenceException if there were errors saving the report.\r\n */\r\n public void saveReport(ReportBase report)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Deletes the supplied report from the database.\r\n *\r\n * @param report a <code>ReportBase</code> value\r\n * @throws PersistenceException if there were errors deleting the report\r\n */\r\n public void deleteReport(ReportBase report)\r\n throws PersistenceException;\r\n \r\n /**\r\n * Returns the history quotes visible to the given dates.\r\n *\r\n * @param instrument The instrument of the request.\r\n * @param inPeriod The period of the quotes.\r\n * @param inFrom The date from which to start in UTC. Cannot be null.\r\n * @param inTo The date to which to stop in UTC. Cannot be null.\r\n * @return a <code>List<Quote</code> value\r\n * @throws PersistenceException if there were errors retrieving the data\r\n */\r\n public List<Quote> getQuoteHistory(Instrument instrument, Period period, \r\n \t\tDate fromDate, Date toDate)\r\n throws PersistenceException;\r\n \r\n /**\r\n * Returns the available instruments supported by the Broker.\r\n *\r\n * @param brokerID a <code>BrokerID</code> value\r\n * @throws PersistenceException if there were errors retrieving the instruments\r\n */\r\n public Set<Instrument> getInstruments(BrokerID brokerID)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Gets the supplied instrument info to the database.\r\n *\r\n * @param brokerID a <code>BrokerID</code> value\r\n\t * @param instrument a <code>Instrument</code> value\r\n * @throws PersistenceException if there were errors retrieving the info\r\n */\r\n public InstrumentInfo getInstrumentInfo(BrokerID brokerID, Instrument instrument)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Saves/Replaces the supplied instrument info to the database.\r\n *\r\n * @param brokerID a <code>BrokerID</code> value\r\n\t * @param instrument a <code>Instrument</code> value\r\n * @param info a <code>InstrumentInfo</code> value\r\n * @throws PersistenceException if there were errors saving the info\r\n */\r\n public void setInstrumentInfo(BrokerID brokerID, Instrument instrument, InstrumentInfo info)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Deletes the instrument info from the database.\r\n *\r\n * @param brokerID a <code>BrokerID</code> value\r\n\t * @param instrument a <code>Instrument</code> value\r\n * @throws PersistenceException if there were errors deleting the info\r\n */\r\n public void deleteInstrumentInfo(BrokerID brokerID, Instrument instrument)\r\n \t\tthrows PersistenceException;\r\n\r\n /**\r\n * Gets the root order ID for the given order ID.\r\n *\r\n * @param inOrderID an <code>OrderID</code> value\r\n * @return an <code>OrderID</code> value or <code>null</code>\r\n */\r\n\tpublic OrderID getRootOrderID(OrderID inOrderID)\r\n\t\t\tthrows PersistenceException;\r\n\r\n /**\r\n * Saves the supplied quote to the database. Saving may be\r\n * immediate or delayed;\r\n *\r\n * @param quote the quote to be saved. Cannot be null.\r\n *\r\n * @throws PersistenceException if there were errors saving the quote.\r\n */\r\n public void saveQuote(QuoteEvent quote)\r\n \t\tthrows PersistenceException;\r\n \r\n /**\r\n * Deletes the supplied quote from the database.\r\n *\r\n * @param quote a <code>QuoteEvent</code> value\r\n * @throws PersistenceException if there were errors deleting the quote\r\n */\r\n\tpublic void deleteQuote(QuoteEvent quote)\r\n\t\t\tthrows PersistenceException;\r\n}",
"Deque<Event> getEvents(long inId);",
"public RecordSet loadAllProcessEventHistory(Record inputRecord);",
"public interface TerminalHistoryService\n{\n Iterable<TerminalHistory> listAllTerminalHistory();\n\n TerminalHistory getTerminalHistoryById(Integer id);\n\n TerminalHistory saveTerminalHistory(TerminalHistory location);\n\n void deleteTerminalHistory(Integer id);\n}",
"public List<Events> getAllEventsAndHistoryForUser(long userId);",
"@Override\n\tpublic ElementHistory getByRuntimeId(String runtimeId) {\n\t\treturn elementHistoryRepository.findByRuntimeId(runtimeId);\n\t}",
"public HistoryItemCS getHistoryCS(int id) {\n\n // 1. build query\n Cursor cursor =\n db.query(TABLE_NAME, // a. table\n COLUMNS, // b. column names\n \" id = ?\", // c. selections\n new String[]{String.valueOf(id)}, // d. selections args\n null, // e. group by\n null, // f. having\n null, // g. order by\n null); // h. limit\n\n // 2. if we got results, get the first one\n if (cursor != null)\n cursor.moveToFirst();\n\n // 3. build cs object\n HistoryItemCS historyCS = new HistoryItemCS();\n historyCS.setAddress(cursor.getString(1));\n historyCS.setDistrict(cursor.getString(2));\n historyCS.setDescription(cursor.getString(3));\n historyCS.setType(cursor.getString(4));\n historyCS.setSocket(cursor.getString(5));\n historyCS.setQuantity(cursor.getInt(6));\n historyCS.setLatitude(cursor.getString(7));\n historyCS.setLongitude(cursor.getString(8));\n historyCS.setMatching_index(cursor.getInt(9));\n\n historyCS.setId(cursor.getInt(cursor.getColumnIndexOrThrow(KEY_ID)));\n\n Log.d(\"getHistoryCS(\" + id + \")\", historyCS.toString());\n\n if (cursor != null)\n cursor.close();\n // 5. return book\n return historyCS;\n }",
"LoginHistory findById( Long id ) ;",
"@GetMapping(\"/family-histories/{id}\")\n @Timed\n public ResponseEntity<FamilyHistory> getFamilyHistory(@PathVariable Long id) {\n log.debug(\"REST request to get FamilyHistory : {}\", id);\n FamilyHistory familyHistory = familyHistoryService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(familyHistory));\n }",
"List<HistoryData> loadAllHistoryData();",
"public ArrayList<ServiceModel> getServiceModel(int idService) {\n ArrayList<ServiceModel> listService = new ArrayList<>();\n Cursor cursor;\n if (idService > 0)\n cursor = db.rawQuery(\"select *\"\n + \" from \" + DBSQLite.TABLE_SERVICE\n + \" where \" + DBSQLite.KEY_SERVICE_ID + \"=\" + idService, null);\n else\n cursor = db.rawQuery(\"select * from \" + DBSQLite.TABLE_SERVICE, null);\n\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n ServiceModel serviceModel = obtainServiceModelCursor(cursor);\n serviceModel.setServicePrice(serviceServicePrice.getServicePriceModel(serviceModel.getId()));\n\n listService.add(serviceModel);\n cursor.moveToNext();\n }\n }\n return listService;\n }",
"@Override\n public List<RevisionMetadata> getRevisionHistoryMetadata(Object id) {\n return null;\n }",
"public void receiveResultGetHistory(\r\n\t\t\tcom.autometrics.analytics.v9.j2ee.webservices.v1_0.GetHistoryResponse result) {\r\n\t}",
"public interface SearchHistoryService {\n\n public List<SearchHistory> findByUser(User user);\n\n public void saveSearchHistory(SearchHistory searchHistory);\n}",
"public abstract HistoricalEntity findByIdHistoricalWrapper(Long id);",
"public StringBuilder getHistory() {\r\n\t\treturn history;\r\n\t}",
"public IOperationHistory getOperationHistory() {\n\t\treturn OperationHistoryFactory.getOperationHistory();\r\n\t}",
"List<RequestHistory> getQueries() throws RemoteException;",
"public JsonArray getConversationHistory(String conversationID){\n\n FormBody.Builder formBuilder = new FormBody.Builder();\n formBuilder.add(\"conversation_id\",conversationID);\n\n Request request = new Request.Builder()\n .url(coreUrl + \"get_conversation_history\")\n .post(formBuilder.build())\n .addHeader(headerVariable,headerValue)\n .build();\n try{\n Response response = client.newCall(request).execute();\n if(response.isSuccessful()){\n JsonReader reader = Json.createReader(new StringReader(response.body().string()));\n logger.info(\"Retrieved the conversation history for conversation '{}'.\",conversationID);\n response.close();\n return reader.readArray();\n }\n response.close();\n } catch (IOException e) {\n logger.error(\"Could not retrieve the conversation history for conversation '{}'.\",conversationID);\n e.printStackTrace();\n }\n return Json.createArrayBuilder().build();\n }",
"Optional<ServiceAppliedStatusHistory> findOne(Long id);",
"public interface IWarnHistoryService {\n}",
"public void getHistory() {\n List<Map<String, String>> HistoryList = null;\n HistoryList = getData();\n String[] fromwhere = {\"Line\", \"Station\", \"Repair_Time_Start\", \"Repair_Time_Finish\", \"Repair_Duration\"};\n int[] viewwhere = {R.id.Line, R.id.Station, R.id.RepairTimeStart, R.id.RepairTimeFinish, R.id.Duration};\n ABH = new SimpleAdapter(BreakdownHistory.this, HistoryList, R.layout.list_history, fromwhere, viewwhere);\n BreakdownHistory.setAdapter(ABH);\n }",
"public RecordSet loadExpHistoryInfo(Record inputRecord);",
"private Map getServiceHistory(String csStatChng) {\r\n\t\t\r\n\t\tMap serviceHistoryMap = new HashMap();\t\t\r\n\t\tchar serviceStatus;\r\n\t\tString serviceStatusDate;\t\r\n\r\n\t\tif (csStatChng != null) {\r\n\t\t\tString[] serviceHistoryArray = csStatChng.split(\"[|]\");\t\t\r\n\t\t\tfor (int i = 0; i < serviceHistoryArray.length; i++) {\r\n\t\t\t\tserviceStatusDate = serviceHistoryArray[i];\r\n\t\t\t\tserviceStatus = serviceStatusDate.charAt(serviceStatusDate.length()-1);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tif (serviceStatus == ACTIVATE_STATE){\r\n\t\t\t\t\t\tserviceHistoryMap.put(\"Ativado\", DateFormat.format(serviceStatusDate.substring(0, serviceStatusDate.length()-1), \"yymmdd\", \"dd/mm/yyyy\"));\r\n\t\t\t\t\t} else if (serviceStatus == SUSPENSE_STATE) {\r\n\t\t\t\t\t\tserviceHistoryMap.put(\"Suspenso\", DateFormat.format(serviceStatusDate.substring(0, serviceStatusDate.length()-1), \"yymmdd\", \"dd/mm/yyyy\"));\r\n\t\t\t\t\t} else if (serviceStatus == DEACTIVATE_STATE) {\r\n\t\t\t\t\t\tserviceHistoryMap.put(\"Desativado\", DateFormat.format(serviceStatusDate.substring(0, serviceStatusDate.length()-1), \"yymmdd\", \"dd/mm/yyyy\"));\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tserviceHistoryMap.put(\"\", DateFormat.format(serviceStatusDate.substring(0, serviceStatusDate.length()-1), \"yymmdd\", \"dd/mm/yyyy\"));\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch(ParseException e) {\r\n\t\t\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\r\n\r\n\t\treturn serviceHistoryMap;\r\n\t\t\r\n\t}",
"public SubscriberNumberMgmtHistory getHistory()\r\n {\r\n return history_;\r\n }",
"private static DataDto getDataFromHistory(DataDto searchData, String histString) {\n StringTokenizer token = new StringTokenizer(histString, \" \");\n\n while (token.hasMoreElements()) {\n try {\n String dataElem = (String) token.nextElement();\n String valElem = (String) token.nextElement();\n if (isNegative(valElem)) {\n valElem = valElem.replace(\"-\", \"\");\n }\n String dataType = searchData.getType().toString();\n if (dataElem.equals(dataType)) {\n Long value = Long.parseLong(valElem);\n searchData.setValue(value);\n DataDto foundData = (DataDto) searchData.clone();\n return foundData;\n }\n } catch (NoSuchElementException e) {\n System.err.println(e.getMessage());\n }\n }\n return null;\n }",
"public Vector getHistoryVisiting(Vector conditions){\n Vector listHistory = new Vector();\n try{\n String sqlGet = \"SELECT history_id, convert(varchar(10),from_date,103) AS history_fromdate, convert(varchar(10),to_date,103) AS history_todate FROM history_doctor\";\n String strConditions = this._buildWhereCondition(conditions);\n if(!strConditions.isEmpty()){\n sqlGet += \" WHERE \" + strConditions;\n }\n sqlGet += \" ORDER BY from_date DESC, to_date DESC\";\n ResultSet rsGet = this.queryData(sqlGet);\n int order = 0;\n while(rsGet.next()){\n order++;\n Vector dataSet = new Vector();\n dataSet.add(order);\n dataSet.add(rsGet.getString(\"history_fromdate\"));\n dataSet.add(rsGet.getString(\"history_todate\"));\n dataSet.add(rsGet.getString(\"history_id\"));\n\n listHistory.add(dataSet);\n }\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n return listHistory;\n }",
"@Service\npublic interface LogService {\n\n List<Droplog> getDroplogByID(int traineeid) throws Exception;\n\n List<Exchangelog> getExchangelogByID(int traineeid) throws Exception;\n\n List<Rechargelog> getRechargelogByID(int traineeid) throws Exception;\n\n List<Rechargelog> getAllRechargelog() throws Exception;\n\n List<Subscribelog> getSubscribelogByID(int traineeid) throws Exception;\n\n List<Unsubscribelog> getUnsubscribelogByID(int traineeid) throws Exception;\n\n List<Subscribelog> getSubscribelogByCourse(int courseid) throws Exception;\n\n List<Unsubscribelog> getUnsubscribelogByCourse(int courseid) throws Exception;\n\n List<Droplog> getDroplogByCourse(int courseid) throws Exception;\n\n List<Settlelog> getSettlelogByinstitutionid(int institutionid) throws Exception;\n}",
"public List<CommissionDistribution> lookupHistory(Long sourceAccount) {\n throw new UnsupportedOperationException(\"Not Implemented yet.\");\n }",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"@Generated(hash = 465397896)\n public List<SearchHistoryTable> getListSearchHistory() {\n if (listSearchHistory == null) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n SearchHistoryTableDao targetDao = daoSession.getSearchHistoryTableDao();\n List<SearchHistoryTable> listSearchHistoryNew = targetDao._queryUserTable_ListSearchHistory(id);\n synchronized (this) {\n if (listSearchHistory == null) {\n listSearchHistory = listSearchHistoryNew;\n }\n }\n }\n return listSearchHistory;\n }",
"private void viewTransferHistory() {\n\t\tTransfer[] allTransfers = transferService.getTransferHistory(currentUser.getToken(),\n\t\t\t\tcurrentUser.getUser().getId());\n\n\t\tSystem.out.println(\"----------------------------------------------\");\n\t\tSystem.out.println(\"Transfers\");\n\t\tSystem.out.println(\"ID From/To Amount\");\n\t\tSystem.out.println(\"----------------------------------------------\");\n\n\t\t//loop through each transfer and print them out if they are associated with the current user\n\t\tfor (int i = 0; i < allTransfers.length; i++) {\n\n\n\t\t\tif (allTransfers[i].getToUserId() == currentUser.getUser().getId()) {\n\t\t\t\t\n\n\t\t\t\tSystem.out.println(allTransfers[i].getTransferId() + \" From: \"\n\t\t\t\t\t\t+ allTransfers[i].getFromUsername() + \" $ \" + allTransfers[i].getTransferAmount());\n\n\t\t\t} else if (allTransfers[i].getFromUserId() == currentUser.getUser().getId()) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(allTransfers[i].getTransferId() + \" To: \" + allTransfers[i].getToUserName()\n\t\t\t\t\t\t+ \" $ \" + allTransfers[i].getTransferAmount());\n\t\t\t}\n\n\t\t}\n\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.println(\"Please enter the 'Transfer ID' to retreive details of the transfer or (0) to exit>>>>\");\n\t\tString stringTransferId = input.nextLine();\n\t\tboolean flagFoundId = false;\n\t\tlong transfersId = 0;\n\t\tBigDecimal transferAmount = new BigDecimal(0);\n\t\tString fromUserName = \"\";\n\t\tString toUserName = \"\";\n\t\tString typeOfTransfer = \"\";\n\t\tString statusOfTransfer = \"\";\n\t\t\n\n\t\t//display transfer details for selected transfer if a valid response\n\t\twhile (true && !String.valueOf(stringTransferId).equals(String.valueOf(0))) {\n\n\t\t\tfor (int i = 0; i < allTransfers.length; i++) {\n\t\t\t\tif (String.valueOf(stringTransferId).equals(String.valueOf(allTransfers[i].getTransferId()))) {\n\n\t\t\t\t\n\t\t\t\t\ttransfersId = allTransfers[i].getTransferId();\n\t\t\t\t\tfromUserName = allTransfers[i].getFromUsername();\n\t\t\t\t\ttoUserName = allTransfers[i].getToUserName();\n\t\t\t\t\ttypeOfTransfer = allTransfers[i].getTypeOfTransfer();\n\t\t\t\t\tstatusOfTransfer = allTransfers[i].getStatusOfTransfer();\n\t\t\t\t\ttransferAmount = allTransfers[i].getTransferAmount();\n\n\t\t\t\t\tflagFoundId = true;\n\t\t\t\t\tstringTransferId = \"0\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (flagFoundId == false) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Please enter the valid 'Transfer ID' to retreive details of the transfer or (0) to exit>>>>\");\n\t\t\t\tstringTransferId = input.nextLine();\n\n\t\t\t}\n\n\t\t}\n\n\t\tif (flagFoundId == true) {\n\t\t\tSystem.out.println(\"----------------------------------------------\");\n\t\t\tSystem.out.println(\"Transfer Details\");\n\t\t\tSystem.out.println(\"----------------------------------------------\");\n\t\t\tSystem.out.println(\"Id: \" + transfersId);\n\t\t\tSystem.out.println(\"From: \" + fromUserName);\n\t\t\tSystem.out.println(\"To: \" + toUserName);\n\t\t\tSystem.out.println(\"Type: \" + typeOfTransfer);\n\t\t\tSystem.out.println(\"Status: \" + statusOfTransfer);\n\t\t\tSystem.out.println(\"Amount: \" + transferAmount);\n\t\t\t\n\t\t\t\n\t\t}\n\t\t// }\n\n\t}",
"public LogModel findLog(String id);",
"@Override\n\tpublic DgCallService getDgCallServiceById(Integer id) {\n\t\treturn dgCallServiceMapper.selectByPrimaryKey(id);\n\t}",
"@GetMapping(value = \"/histori\")\n\t\tpublic String searchHistory(@RequestParam(name = \"fname\") String fname, Model model) {\n\t\t\tmodel.addAttribute(\"employees\", employeerepository.findByFname(fname));\n\t\t\treturn \"history\";\n\t\t}",
"public HistoricoEntity getHistorico(Integer id) {\n return this.entityManager.find(HistoricoEntity.class, id);\n }",
"@Override\n\tpublic ArrayList<UserCreditHistoryPO> findCreditHistory(int userId) throws RemoteException {\n\t\tArrayList<UserCreditHistoryPO> list = new ArrayList<UserCreditHistoryPO>();\n\n\t\ttry {\n\t\t\tstatement = connect.prepareStatement(\"select * from usercredithistory where id = ?\");\n\n\t\t\t// 列:id; change; date\n\t\t\tstatement.setString(1, String.valueOf(userId));\n\n\t\t\tresult = statement.executeQuery();\n\t\t\tString tempChange;\n\t\t\tString tempDate;\n\t\t\tString tempCreditMovement;\n\t\t\tString tempRemain;\n\n\t\t\t// 遍历result\n\t\t\twhile (result.next()) {\n\t\t\t\ttempChange = result.getString(2);\n\t\t\t\ttempDate = result.getString(3);\n\t\t\t\ttempCreditMovement = result.getString(4);\n\t\t\t\ttempRemain = result.getString(5);\n\t\t\t\tlist.add(new UserCreditHistoryPO(userId, Integer.parseInt(tempChange), Date.valueOf(tempDate),\n\t\t\t\t\t\tCreditMovement.valueOf(tempCreditMovement), Integer.parseInt(tempRemain)));\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\treturn list;\n\t}",
"public String getHistory () {\n\t\treturn history;\n\t}",
"ListRecordHistoryResult listRecordHistory(ListRecordHistoryRequest listRecordHistoryRequest);",
"Stream<DataPoint> getHistoryData(Symbol symbol, LocalDateTime startTime, LocalDateTime endTime, int numberOfPoints);",
"@GetMapping(\"/family-histories/by-patient/{id}\")\n @Timed\n public ResponseEntity<FamilyHistory> getFirstFamilyHistoryByPatientId(@PathVariable Long id) {\n log.debug(\"REST request to get Family History by Patient Id : {}\", id);\n FamilyHistory familyHistory = familyHistoryService.findFirstByPatientId(id);\n if (familyHistory == null) {\n familyHistory = new FamilyHistory();\n }\n return ResponseEntity.ok(familyHistory);\n }",
"public List<Weather> getHistory() {\n return weatherRepo.findAll();\n }",
"private IOperationHistory getOperationHistory() {\n return PlatformUI.getWorkbench().getOperationSupport().getOperationHistory();\n }",
"public List<DataGroupInfoActiveHistoryRecord> getActiveHistoryList()\n {\n return myActiveSetConfig.getActivityHistory();\n }",
"@Service\npublic interface TraderSubService {\n List<Trader_Subscribe> getTrader_SubscribeListByTId(int id);\n}",
"public List<Record> getAccountHistory(BigDecimal bankAccountID){\n String sql = \"SELECT * FROM history WHERE bankaccount_id = :bankaccount_id\";\n Map paramMap = new HashMap();\n paramMap.put(\"bankaccount_id\", bankAccountID);\n List<Record> result = jdbcTemplate.query(sql, paramMap, new HistoryRowMapper());\n return result;\n }",
"@Override\n\tpublic List<TransactionHistory> getTransactionByUserId(String id, int state) {\n\t\tList<TransactionHistory> result = null;\n\t\t\n\t\tTypedQuery<TransactionHistory> query = em.createQuery(\"SELECT t FROM TransactionHistory t WHERE (t.sendAccount.id = :id \"\n\t\t\t\t+ \" OR t.receiveAccount.id = :id) AND t.state.idState = :state\", TransactionHistory.class);\n\t\tquery.setParameter(\"id\", id);\n\t\tquery.setParameter(\"state\", state);\n\t\tresult = query.getResultList();\n\t\t\n\t\treturn result;\n\t}",
"List<ExchangeRateDto> getHistoryRates(ExchangeRateHistoryFilter filter);",
"public interface TransactionAuditService {\n\n\n public TransactionAuditList getTransactionAudits();\n\n}",
"public ResultSet getPatientHistory(int patientId) {\n\t\treturn dbObject.select(\"SELECT `time` as Time, `bglValue` as BGL, injectedUnits FROM `patientHistory` \"); //WHERE patientId=\"+patientId);\n\t}",
"PathHistory findOne(Long id);",
"@GET(\"V2/eshopping/driver/getDriverLocationByOrderId/{orderId}\")\n Observable<List<DriverLocation>> getLocationHistoryByOrderId(@Path(\"orderId\") Long orderId);",
"TrackerDependencies getTrackerDependencies(final Integer id);",
"public Map consoleLogs(String id) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"logs\"));\n\t}",
"public Game[] getProcess(int id) throws RollbackException {\n \t \n\t\tGame[] gamesfst = match(MatchArg.equals(\"fstID\", id));\n\t\tGame[] gamessnd = match(MatchArg.equals(\"sndID\",id));\n\t\tGame[] games=new Game[gamesfst.length+gamessnd.length];\n\t\tfor(int i=0;i<games.length;i++){\n\t\t\tif(i<gamesfst.length){\n\t\t\t\tgames[i]=gamesfst[i];\n\t\t\t}else{\n\t\t\t\tgames[i]=gamessnd[i-gamesfst.length];\n\t\t\t}\n\t\t}\n\t\tArrays.sort(games);\n\n\t\treturn games;\n\t}",
"@GET(\"points-transaction-history?expand=translations&sort=-created_at\")\n Call<HistoryExchangeResponse> getTransactionHistoryAll();",
"public List<CommissionDistribution> lookupHistory(Long sourceAccount, LocalDateTime from,\n LocalDateTime to) {\n throw new UnsupportedOperationException(\"Not Implemented yet.\");\n }",
"public interface HistoryDataService {\n\n PageInfo<WaterHistoryDto> list(String code, String stationId, String startTime, String endTime, Integer pageSize, Integer pageNum);\n\n}",
"private static ArrayList<String> fetchHistory() {\n\t\tScanner s;\n\t\tint count = 0;\n\t\tArrayList<String> historyList = new ArrayList<String>();\n\t\ttry {\n\t\t\ts = new Scanner(new File(\"History.txt\"));\n\t\t\twhile (s.hasNext()) {\n\t\t\t\thistoryList.add(s.next());\n\t\t\t\tcount += 1;\n\t\t\t}\n\t\t\tSystem.out.println(\"Number of converted urls fetched: \" + count);\n\t\t\ts.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn historyList;\n\t}",
"public List<GlucoseData> getHistoryOfDay(Date day) {\n SimpleDateFormat fmt = new SimpleDateFormat(\"yyyyMMdd\");\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n\n SQLiteDatabase db = getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n cursor.moveToFirst();\n\n try {\n if (cursor.moveToFirst()) {\n do {\n GlucoseData glucosedata = new GlucoseData();\n glucosedata.setID(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_ID)));\n glucosedata.setDate(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_DATE)));\n glucosedata.setGlucoseLevel(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_GLUCOSELEVEL)));\n glucosedata.setComment(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_COMMENT)));\n\n\n Date datadate = sqlDateFormat.parse(glucosedata.getDate());\n // Adding to list\n if(fmt.format(day).equals(fmt.format(datadate))) {\n history.add(glucosedata);\n }\n } while(cursor.moveToNext());\n }\n } catch (Exception e) {\n\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n }\n\n return history;\n }",
"public CallLog findCallLogFromCallId(String callId);",
"public interface UserLogService {\n\n public void logActivity(UserLog userLog);\n\n public List<UserLog> getAllUserLog(String username);\n\n public List<UserLog> getAllFilteredUserLog();\n}",
"static HistoryEvent[] getHistoryEvents() {\n/* 73 */ HISTORY_RW_LOCK.readLock().lock();\n/* */ \n/* */ try {\n/* 76 */ return HISTORY.<HistoryEvent>toArray(new HistoryEvent[HISTORY.size()]);\n/* */ }\n/* */ finally {\n/* */ \n/* 80 */ HISTORY_RW_LOCK.readLock().unlock();\n/* */ } \n/* */ }",
"public interface HistoryModel {\n\n void getData(String date, LoadListener listener);\n\n}",
"@Override\n\tpublic List<SmsActivityLogger> fetchLogById(int Id) {\n\t\treturn null;\n\t}",
"public List<InteractionEvent> getInteractionHistory() {\n \t\tSet<InteractionEvent> events = new HashSet<InteractionEvent>();\n \t\tfor (InteractionContext taskscape : contexts.values()) {\n \t\t\tevents.addAll(taskscape.getInteractionHistory());\n \t\t}\n \t\treturn new ArrayList<InteractionEvent>(events);\n \t}",
"public List<ServiceInstance> queryInstancesByKey(ServiceInstanceQuery query);",
"public Set<T> getHistoryEvents() {\n\t\tif (historyEvents == null) {\n\t\t\tcreateHistoryEvents();\n\t\t}\n\t\treturn historyEvents;\n\t}",
"@Test\n public void listAppHistoryTest() throws ApiException {\n Boolean naked = null;\n String appId = null;\n String status = null;\n String created = null;\n Long limit = null;\n Long offset = null;\n // HistoryEvent response = api.listAppHistory(naked, appId, status, created, limit, offset);\n\n // TODO: test validations\n }",
"fintech.HistoryResponse.DataOrBuilder getDataOrBuilder();",
"public interface LoginHistoryService { \n\n\t/**\n\t * Loads an entity from the database using its Primary Key\n\t * @param id\n\t * @return entity\n\t */\n\tLoginHistory findById( Long id ) ;\n\n\t/** \n\t * Loads all entities.\n\t * @return all entities\n\t */\n\tList<LoginHistory> findAll();\n\t\n\t/**\n\t * Loads entities in page number.\n\t * @return entities\n\t */\n\n\tPage<LoginHistoryEntity> findAll(Integer page);\n\n\t/**\n\t * Count all entities\n\t * @return Long\n\t */\n\tLong countTotal();\n\t\n\n\t/**\n\t * Saves the given entity in the database (create or update)\n\t * @param entity\n\t * @return entity\n\t */\n\tLoginHistory save(LoginHistory entity);\n\n\t/**\n\t * Updates the given entity in the database\n\t * @param entity\n\t * @return\n\t */\n\tLoginHistory update(LoginHistory entity);\n\n\t/**\n\t * Creates the given entity in the database\n\t * @param entity\n\t * @return\n\t */\n\tLoginHistory create(LoginHistory entity);\n\t\n\t/**\n\t * Deletes an entity using its Primary Key\n\t * @param id\n\t */\n\tvoid delete( Long id );\n\n\tPage<LoginHistoryEntity> listPaging(Integer page,Integer size);\n\t\n\tPage<LoginHistoryEntity> listPagingByUserId( Integer page, Integer size, Integer userId);\n\n\tint countByDeviceIdAndUserIdAndCreateDate(String deviceId, Integer userId, Date date );\n\t\n\tPageCustom<LoginStatistics> filterStatistics(SearchStatistics s, Integer page, Integer size);\n\n\tPageCustom<AccessDevice> filterAccessDeviceStatistics(SearchStatistics s, Integer page, Integer size);\n\t\n\tLoginHistory listPagingByDeviceIdAndUserIdAndCreateDate(String deviceId, Integer userId, Date date);\n}",
"@Override\n\tpublic com.easybooking.model.BookedServices getDataById(int id) {\n\t\tcom.easybooking.model.BookedServices services = null;\n\t\tSessionFactory factory = HibernateUtil.getSesssionFactory();\n\t\tSession session = factory.openSession();\n\t\tsession.beginTransaction();\n\t\tservices = session.get(com.easybooking.model.BookedServices.class, id);\n\t\tsession.close();\n\t\tfactory.close();\n\t\treturn services;\n\t}",
"public List<Booking> getHistoryBookings(int phone) {\n\n Customer customer = _repo.getCustomer(phone);\n if (customer != null)\n return customer.getBookings();\n return null;\n }",
"List<ServiceAppliedStatusHistory> findAll();",
"void deleteTrackerHistory(final Integer id);",
"public List<CatalogService> getService(String service);",
"public synchronized Map<String, Long> getHistory() {\r\n return settings.getMap(HISTORY_SETTING);\r\n }"
] | [
"0.67954016",
"0.65494466",
"0.6215834",
"0.62121254",
"0.61194605",
"0.60282004",
"0.5914989",
"0.5901479",
"0.58421856",
"0.5839741",
"0.581121",
"0.5776925",
"0.5755122",
"0.57251316",
"0.5666624",
"0.56594044",
"0.5545521",
"0.554146",
"0.5530724",
"0.552854",
"0.54763645",
"0.5446674",
"0.5423497",
"0.54209334",
"0.5404631",
"0.5392172",
"0.5357067",
"0.5335977",
"0.5319954",
"0.53174454",
"0.5316905",
"0.526789",
"0.52595663",
"0.5230255",
"0.5213227",
"0.5206055",
"0.51751304",
"0.512184",
"0.5116334",
"0.51126105",
"0.5107637",
"0.5097021",
"0.50899506",
"0.508709",
"0.50854987",
"0.5072973",
"0.50606906",
"0.5053759",
"0.50450534",
"0.5030335",
"0.502791",
"0.5011657",
"0.5011657",
"0.49842837",
"0.4976003",
"0.4973739",
"0.49703616",
"0.49641275",
"0.49395013",
"0.49384707",
"0.4937944",
"0.4935551",
"0.49321666",
"0.49248326",
"0.48934495",
"0.48886144",
"0.4887925",
"0.48853713",
"0.4872455",
"0.4869823",
"0.48687387",
"0.4865547",
"0.48619226",
"0.48586053",
"0.4856781",
"0.48523146",
"0.4849095",
"0.48405778",
"0.48397255",
"0.48319334",
"0.4820035",
"0.48036847",
"0.4801602",
"0.47992924",
"0.47904775",
"0.47899827",
"0.47868967",
"0.47868705",
"0.478539",
"0.47740537",
"0.4773008",
"0.4771997",
"0.476421",
"0.4760241",
"0.47590032",
"0.47580978",
"0.47572428",
"0.47570413",
"0.47554433",
"0.4746408"
] | 0.73050773 | 0 |
Starts a service by given ID | public Map startServerProcess(String id) throws IOException
{
return request(POST, address(id, "start"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startService(String id, String configLocation)\n throws IOException;",
"public void startService(String service, java.util.Map<String, String> __ctx)\r\n throws AlreadyStartedException,\r\n NoSuchServiceException;",
"public void startService(String service)\r\n throws AlreadyStartedException,\r\n NoSuchServiceException;",
"public Service(int id)\r\n {\r\n this.id = id;\r\n \r\n logger = new Logger(this);\r\n }",
"public void startService(View view) {\n startService(new Intent(getBaseContext(), MyFirstService.class));\n }",
"public Ice.AsyncResult begin_startService(String service);",
"public Ice.AsyncResult begin_startService(String service, java.util.Map<String, String> __ctx);",
"void setServiceId(java.lang.String serviceId);",
"public Ice.AsyncResult begin_startService(String service, java.util.Map<String, String> __ctx, Ice.Callback __cb);",
"@Override\n\tpublic void onStart(Intent intent, int startId) {\n\t\tthread.start();\n\t\tToast.makeText(this, \"Service Started\", Toast.LENGTH_LONG).show();\n\n\t}",
"protected void startService() {\n\t\t//if (!isServiceRunning(Constants.SERVICE_CLASS_NAME))\n\t\tthis.startService(new Intent(this, LottoService.class));\n\t}",
"public Ice.AsyncResult begin_startService(String service, java.util.Map<String, String> __ctx, Callback_ServiceManager_startService __cb);",
"public void startCommonService(EzBakeBaseThriftService service, String serviceName, String securityId) throws Exception {\n startService(service, serviceName, null, securityId);\n }",
"@Override\n\tpublic void onStart(Intent intent, int startId) {\n\t\tLog.i(TAG, \"service on start id = \"+startId);\n\t\tsuper.onStart(intent, startId);\n\t}",
"public void startService() {\r\n Log.d(LOG, \"in startService\");\r\n startService(new Intent(getBaseContext(), EventListenerService.class));\r\n startService(new Intent(getBaseContext(), ActionService.class));\r\n getListenerService();\r\n\r\n }",
"public void startService(View view) {\n startService(new Intent(getBaseContext(), Myservice.class));\n }",
"public void startService(View view) { \n\t\tstartService(new Intent(getBaseContext(), TestService.class)); \n\t}",
"@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tmEngin=new SplEngine(mh, getApplicationContext());\n\t\tmEngin.start_engine();\n\t\t\n\t\treturn START_STICKY;\n\t}",
"@Override\n\tpublic void onStart(Intent intent, int startId) {\n\t\tnew RunnableService(new runCallBack(){\n\n\t\t\t@Override\n\t\t\tpublic void start() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tinitResource();\n\t\t\t\t//获取通讯录信息\n\t\t\t\tinitContactsData();\n\t\t\t\t//同步通讯录\n\t\t\t\tupLoadPhones();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void end() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}, true);\n\t\n\t\t\n\t\tsuper.onStart(intent, startId);\n\t}",
"public void doStartService() throws ServiceException {\r\n super.doStartService();\r\n // Nothing to do\r\n }",
"@Override\n public void onStart(Intent intent, int startid) {\n Log.d(\"ServiceTest\", \"Service started by user.\");\n }",
"public Ice.AsyncResult begin_startService(String service, Ice.Callback __cb);",
"@Override\r\n public int onStartCommand(Intent intent, int flags, int startId) {\n Message msg = mServiceHandler.obtainMessage();\r\n msg.arg1 = startId;\r\n msg.obj = intent;\r\n mServiceHandler.sendMessage(msg);\r\n\r\n // If we get killed, after returning from here, restart\r\n return START_STICKY;\r\n }",
"@Override\n\tpublic void onStart(Intent intent, int startId) {\n\t\tsuper.onStart(intent, startId);\n\t\tLog.e(\"androidtalk\", \"service started\") ;\n\t\tSystem.out.println(\"androidtalk-service started\") ;\n\t}",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n startBackgroundTask(intent, startId);\n return Service.START_STICKY;\n }",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n L.d(\"onStartCommand called\");\n startMainActivity();\n\n /**\n * We want this service to continue running until it is explicitly\n * stopped, so return sticky.\n */\n return Service.START_STICKY;\n }",
"public void startService() {\n log_d( \"startService()\" );\n \tint state = execStartService();\n\t\tswitch( state ) {\n\t\t\tcase STATE_CONNECTED:\n\t\t\t\tshowTitleConnected( getDeviceName() );\n\t\t\t\thideButtonConnect();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tshowTitleNotConnected();\n\t\t\t\tbreak;\n\t\t}\n\t}",
"public static void startService(Context context, String intentAction) {\n context.startService(new Intent(intentAction));\n }",
"public void onClickStart(View v) {\n\t\tstartService(new Intent(this, MyService.class).putExtra(\"time\", 7));\n\t\tstartService(new Intent(this, MyService.class).putExtra(\"time\", 2));\n\t\t//startService(new Intent(this, MyService.class).putExtra(\"time\", 4));\n\t\tIntent intent = new Intent(this, MyService.class);\n\t\tintent.putExtra(\"time\", 4);\n\t\tstartService(intent);\n\t}",
"private void startService() {\n\n if (!mAlreadyStartedService ) {\n\n //mMsgView.setText(R.string.msg_location_service_started);\n\n //Start location sharing service to app server.........\n Intent intent = new Intent(this, LocationMonitoringService.class);\n startService(intent);\n\n mAlreadyStartedService = true;\n //Ends................................................\n }\n }",
"public Ice.AsyncResult begin_startService(String service, Callback_ServiceManager_startService __cb);",
"public boolean startService_async(AMI_ServiceManager_startService __cb, String service, java.util.Map<String, String> __ctx);",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n mHandler = new Handler();\n // Execute a runnable task as soon as possible\n mHandler.post(runnableService);\n return START_STICKY;\n }",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n Toast.makeText(this, \"Service Started\", Toast.LENGTH_LONG).show();\n return START_STICKY;\n }",
"public static void start(Context context)\n {\n Log.v(TAG, \"Starting!!\");\n Intent intent = new Intent(context, TexTronicsManagerService.class);\n intent.setAction(Action.start.toString());\n context.startService(intent);\n }",
"public void startService(View view) {\r\n startService(new Intent(this, CustomService.class));\r\n }",
"public IntentStartService(String name) {\n super(name);\n }",
"@Override\n public void onStart(Intent intent, int nStartId)\n {\n if (Config.LOGD)\n {\n Log.d(TAG, \"Wiper Service Started \");\n }\n\n startForeground(1111, new Notification());\n\n mContext = this;\n // Call function to start background thread\n if ( bWiperConfigReadError != true)\n {\n startWiperService();\n }\n else\n {\n Log.e(TAG,\"Cannot start Wiper, wiperconfig read error\");\n }\n }",
"@Override\r\n public int onStartCommand(Intent intent, int flags, int startId) {\n Log.i(\"LZH\",\"start Service\");\r\n return Service.START_STICKY;\r\n }",
"public native int startService(long nativeHandle);",
"private void startIChatService() {\n Intent transportService = new Intent();\n transportService.setAction(IChatService.class.getCanonicalName());\n this.startService(transportService);\n Log.i(\"Interface\", \"Started IChatservice\");\n }",
"@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\ttracker = new GPSTracker(this);\n\t\tstatus=0;\n\t\torder_id=intent.getExtras().getLong(\"id\");\n\t\tgs=new GetStatus();\n\t\tdsf=new Do_Service_Staff();\n\t\tdsf.execute(0);\n\t\t\n\t\t\n\t\treturn START_STICKY;\n\t}",
"public boolean startService_async(AMI_ServiceManager_startService __cb, String service);",
"private void startService() {\n startService(new Intent(this, BackgroundMusicService.class));\n }",
"public Service(int title, int id) {\n mTitle = title;\n mId = id;\n }",
"public DCAEServiceObject(String serviceId, DCAEServiceRequest request) {\n DateTime now = DateTime.now(DateTimeZone.UTC);\n this.setServiceId(serviceId);\n this.setTypeId(request.getTypeId());\n this.setVnfId(request.getVnfId());\n this.setVnfType(request.getVnfType());\n this.setVnfLocation(request.getVnfLocation());\n this.setDeploymentRef(request.getDeploymentRef());\n this.setCreated(now);\n this.setModified(now);\n // Assumption here is that you are here from the PUT which means that the service is RUNNING.\n this.setStatus(DCAEServiceStatus.RUNNING);\n }",
"private void startLoggerService() {\n Intent intent = new Intent(this, GestureLoggerService.class);\n intent.putExtra(GestureLoggerService.EXTRA_START_SERVICE, true);\n\n startService(intent);\n }",
"public void connect(int id) throws RemoteException {\n\t\t\ttry {\n\t\t\t\t// get info\n\t\t\t\tServiceInfo info = m_services.get(id);\n\t\t\t\tif (info == null)\n\t\t\t\t\tthrow new Throwable();\n\t\t\t\t\n\t\t\t\t// connect and create (fake) sound manager\n\t\t\t\tSocket socket = new Socket(info.getHostAddresses()[0], info.getPort());\n\t\t\t\tm_soundManager.stopManager();\n\t\t\t\tm_soundManager = new RemoteSoundManager(InstrumentService.this, m_handler, socket);\n\t\t\t\tshowToast(R.string.client_connected);\n\t\t\t} catch (Throwable e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tshowToast(R.string.client_error_connecting);\n\t\t\t}\n\t\t}",
"public void startService(View view) {\r\n\r\n Intent intent = new Intent(this, ImageService.class);\r\n startService(intent);\r\n }",
"@Override\n\tpublic int onStartCommand( Intent intent, int flags, int startId )\n\t{\n\t\tsuper.onStartCommand( intent, flags, startId );\n\n\t\tString action = null;\n\t\tif( intent != null )\n\t\t\taction = intent.getAction();\n\n\t\t\tLog.i(LOG_TAG,\"Received action of \" + action );\n\n\t\tif( action == null )\n\t\t{\n\t\t\tLog.w(LOG_TAG,\"Starting service with no action\\n Probably from a crash, \"\n\t\t\t\t\t+ \"or service had to restart\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tswitch (action)\n\t\t\t{\n\t\t\t\tcase ACTION_START:\n\t\t\t\t\tLog.i(LOG_TAG, \"Received ACTION_START\");\n\t\t\t\t\tstart();\n\t\t\t\t\tbreak;\n\t\t\t\tcase ACTION_STOP:\n\t\t\t\t\tLog.i(LOG_TAG, \"Received ACTION_STOP\");\n\t\t\t\t\tstop();\n\t\t\t\t\tbreak;\n\t\t\t} // switch\n\n\t\t} // if...else\n\n\t\t//return START_REDELIVER_INTENT; // Mqtt version\n\t\treturn START_STICKY; // Notification version - Run until explicitly stopped.\n\n\t}",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n\n serviceStartNormalMethod = intent.getBooleanExtra(BC_SERVICE_START_METHOD, false);\n\n // This is actually where we receive \"pings\" from activities to start us\n // and keep us running\n pingStamp = System.currentTimeMillis();\n\n // Log.i(TAG, \"SERVICE onStartCommand()\");\n\n return Service.START_NOT_STICKY;\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartService(myit);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n startService(new Intent(MainActivity.this, MyService.class));\n }",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n Log.d(TAG, \"Service started\");\n\n self = this;\n\n return super.onStartCommand(intent, flags, startId);\n }",
"public StartedService() {\n super(\"StartedService\");\n }",
"@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n sServer = new BeamServer(NetworkUtils.getWifiIPAddress(), Constants.SERVER_PORT);\n\n return START_STICKY;\n }",
"@SuppressWarnings({ \"static-access\", \"deprecation\" })\n\t@Override\n\tpublic void onStart(Intent intent, int startId) {\n\t\tsuper.onStart(intent, startId);\n\n\t\tLog.d(\"MAD\", \"Service Started\");\n\t\t\n\t\t\n\t\t// create intent, set a flag\n\t\tIntent alertIntent = new Intent(MyAlarmService.this,\n\t\t\t\tMyAlarmResponse.class);\n\t\talertIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\n\n\t\t//Make a notification sound\n\t\ttry {\n\t\t Uri notification = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION);\n\t\t Ringtone r = RingtoneManager.getRingtone(getApplicationContext(), notification);\n\t\t \n\t\t //play sound\n\t\t r.play();\n\t\t} catch (Exception e) {\n\t\t e.printStackTrace();\n\t\t}\n\t\t\n\t\t// start intent\n\t\tstartActivity(alertIntent);\n\n\t}",
"public Service getService(String id) {\n Service service = catalog.getService(id);\n Assert.notNull(service, \"No service with id '%s' found\", id);\n return service;\n }",
"public void createServiceRequest() {\n getMainActivity().startService(new Intent(getMainActivity(), RequestService.class));\n }",
"@Override\n\tpublic int onStartCommand (Intent intent, int flags, int startId) {\n\t\thandleCommand(intent);\n\t\t\n\t\t// We want this service to continue running until it is explicitly\n\t\t// stopped, so return sticky.\n\t\treturn START_STICKY;\n\t}",
"@Override\n\tpublic void onStart(Intent intent, int startId) {\n\t\tSystem.out.println(\"onSTART\");\n\t\thandleIntent(intent);\n\t}",
"@Override\n\tpublic void onClick(View arg0) {\n\t\tIntent intent = new Intent(MainActivity.this, RgkSateLiteService.class);\n\t\tswitch (arg0.getId()) {\n\t\tcase R.id.start_button:\n\t\t\t// ¿ªÆôÎÀÐDz˵¥\n\t\t\tstartService(intent);\n\n\t\t\tbreak;\n\t\tcase R.id.close_button:\n\t\t\t// ¹Ø±ÕÎÀÐDz˵¥\n\t\t\tstopService(intent);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}",
"public static void startActionGetCountry(Context context,String country_id) {\n Intent intent = new Intent(context, GetBiersServices.class);\n intent.setAction(ACTION_GET_COUNTRY);\n intent.putExtra(\"country_id\",country_id);\n context.startService(intent);\n Log.i(\"startactiongetcountry\",\"service country démarré \");\n }",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n Toast.makeText(this, R.string.start_location_updates, Toast.LENGTH_SHORT).show();\n Log.d(Constants.SERVICE_STARTED, Constants.SERVICE_STARTED);\n return START_STICKY;\n }",
"@Override\n public void onClick(View v) {\n Log.i(\"ServiceExam\",\"start\");\n Intent i = new Intent(\n getApplicationContext(),\n Example17Sub_LifeCycleService.class\n );\n\n i.putExtra(\"MSG\",\"HELLO\");\n // Start Service\n // 만약 서비스 객체가 메모리에 없으면 생성하고 수행\n // onCreate() -> onStartCommand()\n // 만약 서비스 객체가 이미 존재하고 있으면\n // onStartCommand()\n startService(i);\n }",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n Log.d(TAG, TAG + \" onStartCommand\");\n return Service.START_STICKY;\n }",
"public void setServiceID(int value) {\n this.serviceID = value;\n }",
"public void serviceActivated(String serviceID) {\r\n \t\teventIDFilter.serviceActivated(serviceID);\r\n \t}",
"@Override\r\n public int onStartCommand(Intent intent, int flags, int startId) {\n super.onStartCommand(intent, Service.START_STICKY, startId);\r\n return START_STICKY;\r\n }",
"@Override\n public void onStart(Intent intent, int startId) {\n Toast.makeText(this, \" Service Started\", Toast.LENGTH_LONG).show();\n \n }",
"public void onStartClick(View view) {\n Intent intent = new Intent(this, MyIntentService.class);\n intent.putExtra(MyIntentService.PARAM_MSG, \"TASK_1\");\n startService(intent);\n\n intent.putExtra(MyIntentService.PARAM_MSG, \"TASK_2\");\n startService(intent);\n }",
"public void setServiceid(Integer serviceid) {\r\n this.serviceid = serviceid;\r\n }",
"public void start(View v){\n String portNumber = et.getText().toString();\n System.out.println(portNumber);\n Intent serviceIntent = new Intent(this, ExampleService.class);\n serviceIntent.putExtra(\"portNumber\", portNumber);\n startService(serviceIntent);\n }",
"public static void startActionInit(Context context) {\n try {\n Intent intent = new Intent(context, InitService.class);\n context.startService(intent);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public int onStartCommand(Intent intent, int flags, int startId)\n\t{\n\t\ttimer=new Timer();\n\t\tpref= getSharedPreferences(MainActivity.pref,Context.MODE_PRIVATE);\n\t\tToast.makeText(this, \"Checking started...\"+i, Toast.LENGTH_SHORT).show();\n\t\tdoSomethingRepeatedly(this);\n\t\t\n\t\treturn START_STICKY;\n\t}",
"@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\n\t\tLog.w(\"PopCineService\", \"Service exectuado\");\n\t\t//return super.onStartCommand(intent, flags, startId);\n\t\treturn Service.START_STICKY;\n\t}",
"@Override\r\n\tpublic void onStart(Intent intent, int startid) {\n\t\tlogger.error(\"onStart\");\r\n\t\t//player.start();\r\n\t}",
"@Override\r\n public void onSdlEnabled(Context context, Intent intent) {\n\r\n LogHelper.d(TAG, \"onSdlEnabled\");\r\n\r\n intent.setClass(context, MultiSdlService.class);\r\n context.startService(intent);\r\n }",
"private void startServices(){\n\t\t\n\t\tIntent intent = new Intent(mContext, BatterySaverService.class);\n\t\tmContext.startService(intent);\n\t}",
"public static void startActionGetBeer(Context context, String beerId) {\n Intent intent = new Intent(context, BeersService.class);\n intent.setAction(ACTION_GET_BEER);\n intent.putExtra(EXTRA_BEER_ID, beerId);\n context.startService(intent);\n }",
"void addService(Long orderId, Long serviceId);",
"public static void startTaskSchedulingService(Context context) {\n Intent serviceIntent = new Intent(context, TaskSchedulingService.class);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {\n context.startForegroundService(serviceIntent);\n } else {\n context.startService(serviceIntent);\n }\n }",
"public ServiceInstance lookupInstance(String serviceName);",
"@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n Log.i(SERVICE_TAG, \"onStartCommand\");\n return START_NOT_STICKY;\n }",
"@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}",
"private void startServerService() {\n Intent intent = new Intent(this, MainServiceForServer.class);\n // Call bindService(..) method to bind service with UI.\n this.bindService(intent, serverServiceConnection, Context.BIND_AUTO_CREATE);\n Utils.log(\"Server Service Starting...\");\n\n //Disable Start Server Button And Enable Stop and Message Button\n messageButton.setEnabled(true);\n stopServerButton.setEnabled(true);\n startServerButton.setEnabled(false);\n\n\n }",
"public void trackStart(String id) {\n mStartTimes.put(id, SystemClock.uptimeMillis());\n }",
"private void startDiscovery() {\n client.startDiscovery(getResources().getString(R.string.service_id), endpointDiscoveryCallback, new DiscoveryOptions(STRATEGY));\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tpt.getContext().startService( new Intent( pt.getContext(), PerfectTimeService.class ) );\n\t\t\t}",
"ServiceBindingOptions withId(String id);",
"@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.d(Constant.TAG, \"LockService start\");\n\t\tif (lockReceiver == null){\n\t\t\tregisterIntentReceivers();\n\t\t}\n\t\tLog.d(Constant.TAG, \"服务启动\");\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}",
"@Override\n public void onStart(Intent intent, int startid) {\n }",
"public synchronized void start() throws DDEException\n {\n if (nativeDDEServer != 0)\n throw new DDEException(\"Already started.\");\n\n nativeStart(service);\n }",
"@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t\thandleCommand(intent);\r\n\t}",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n Log.v(TAG, \"txh onStartCommand, thread = \" + Thread.currentThread().getName());\n Toast.makeText(this, \"txh service starting\", Toast.LENGTH_SHORT).show();\n return super.onStartCommand(intent,flags,startId);\n }",
"protected void startIntentService() {\n Intent intent = new Intent(this.getActivity(), FetchAddressIntentService.class);\n intent.putExtra(Constants.RECEIVER, mResultReceiver);\n intent.putExtra(Constants.LOCATION_DATA_EXTRA, mLastLocation);\n this.getActivity().startService(intent);\n }",
"@Override\r\n public void onStart(Intent intent, int startId) {\n }",
"public InitService(String name) {\n super(\"InitService\");\n }"
] | [
"0.77335143",
"0.6847397",
"0.6741968",
"0.6622537",
"0.65104437",
"0.65082663",
"0.65032434",
"0.64864105",
"0.643748",
"0.6429964",
"0.6420753",
"0.641336",
"0.63944405",
"0.62913066",
"0.6286687",
"0.6271764",
"0.6254863",
"0.61969936",
"0.61576205",
"0.6156339",
"0.6155199",
"0.61539227",
"0.61517733",
"0.61156726",
"0.61136353",
"0.61115015",
"0.60946953",
"0.6077129",
"0.6075035",
"0.60624367",
"0.60592514",
"0.6056367",
"0.601878",
"0.60094583",
"0.5978497",
"0.5973432",
"0.5940466",
"0.59329474",
"0.591295",
"0.5892485",
"0.5892047",
"0.5885249",
"0.5869265",
"0.5866523",
"0.5856951",
"0.5835287",
"0.5828779",
"0.5822696",
"0.5815959",
"0.5807965",
"0.5807555",
"0.58060575",
"0.579584",
"0.5763338",
"0.57582563",
"0.57501924",
"0.5741354",
"0.5724224",
"0.57236433",
"0.56930375",
"0.5691358",
"0.5685776",
"0.56844854",
"0.5682953",
"0.5673121",
"0.56718713",
"0.5653353",
"0.565187",
"0.5650456",
"0.5646311",
"0.5635751",
"0.560232",
"0.5598882",
"0.5596535",
"0.559522",
"0.55947983",
"0.559268",
"0.55900216",
"0.55874693",
"0.5576005",
"0.5542739",
"0.5536722",
"0.55254084",
"0.55174667",
"0.5511321",
"0.5502993",
"0.54810435",
"0.54806536",
"0.54776144",
"0.5473626",
"0.54631066",
"0.54573315",
"0.54433393",
"0.5440461",
"0.5430119",
"0.5427825",
"0.5413317",
"0.5410643",
"0.54055154",
"0.5404412"
] | 0.6220306 | 17 |
Stops a service by given ID | public Map stopServerProcess(String id) throws IOException
{
return request(POST, address(id, "stop"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void stop(Integer id) throws CallError, InterruptedException{\n if (isAsynchronous)\n service.call(\"stop\", id);\n else\n service.call(\"stop\", id).get();\n }",
"public void stopService();",
"public void stop(Integer id) throws DynamicCallException, ExecutionException{\n call(\"stop\", id).get();\n }",
"public Future<Void> stop(Integer id) throws DynamicCallException, ExecutionException{\n return call(\"stop\", id);\n }",
"public Ice.AsyncResult begin_stopService(String service);",
"public void stopService(String service, java.util.Map<String, String> __ctx)\r\n throws AlreadyStoppedException,\r\n NoSuchServiceException;",
"public Ice.AsyncResult begin_stopService(String service, java.util.Map<String, String> __ctx, Callback_ServiceManager_stopService __cb);",
"public void stopService(String service)\r\n throws AlreadyStoppedException,\r\n NoSuchServiceException;",
"public Ice.AsyncResult begin_stopService(String service, java.util.Map<String, String> __ctx);",
"public Ice.AsyncResult begin_stopService(String service, java.util.Map<String, String> __ctx, Ice.Callback __cb);",
"public abstract void stopService();",
"Stop getStopPerID(String id);",
"protected void stopService() {\n\t\t//if (isServiceRunning(Constants.SERVICE_CLASS_NAME))\n\t\tthis.stopService(new Intent(this, LottoService.class));\n\t}",
"public Ice.AsyncResult begin_stopService(String service, Ice.Callback __cb);",
"public Ice.AsyncResult begin_stopService(String service, Callback_ServiceManager_stopService __cb);",
"public void stopService() {\n stopService(new Intent(getBaseContext(), OrderService.class));\n }",
"public void stopService(View view) {\n stopService(new Intent(getBaseContext(), MyFirstService.class));\n }",
"@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = \"/api/{id}\", params = \"action=stop\", method = RequestMethod.PUT)\n \tpublic HttpEntity<String> stop(@PathVariable(\"id\") Long id) {\n \t\tagentManagerService.stopAgent(id);\n \t\treturn successJsonHttpEntity();\n \t}",
"public void stopService() {\r\n Log.d(LOG, \"in stopService\");\r\n stopService(new Intent(getBaseContext(), EventListenerService.class));\r\n stopService(new Intent(getBaseContext(), ActionService.class));\r\n }",
"private void StopService() {\n\n TrackLisinterService tracklisiten = new TrackLisinterService(context, getApplication());\n tracklisiten.StopService();\n\n }",
"public boolean stopService_async(AMI_ServiceManager_stopService __cb, String service, java.util.Map<String, String> __ctx);",
"public void stopService(View view) { \n\t\tstopService(new Intent(getBaseContext(), TestService.class)); \n\t}",
"void stopDiscountById(Long id) throws ServiceException;",
"public void StopService() {\n\n\n TrackLisinterService tracklisiten = new TrackLisinterService(context, ((Activity) context).getApplication());\n tracklisiten.StopService();\n\n }",
"public void stopService(View view) {\n stopService(new Intent(getBaseContext(), Myservice.class));\n }",
"public void doStopService() throws ServiceException {\r\n // Nothing to do\r\n super.doStopService();\r\n }",
"void stopServices() throws IOException, SoapException;",
"@Override\n public void destroy(String id) {\n ReferenceServiceWarp referenceService = msCache.get(id);\n if(null!=referenceService){//old 计数减一\n// if(referenceService.decrement()<=0){\n//\n// }\n try {\n referenceService.getService().destroy();\n msCache.remove(id);\n referenceService = null;\n ifKeyCache.remove(id);\n } catch (Exception e) {\n e.printStackTrace();\n logger.error(\"销毁MS服务失败,\" + id);\n }\n }\n }",
"public boolean stopService_async(AMI_ServiceManager_stopService __cb, String service);",
"public void stopService() {\n \tlog_d( \"stopService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) return;\n\t\t// Stop the Bluetooth chat services\n\t\tif ( mBluetoothService != null ) {\n\t\t log_d( \"BluetoothService stop\" );\n\t\t\tmBluetoothService.stop();\n\t\t}\n\t\tshowButtonConnect();\n\t}",
"public void serviceRemoved(String serviceID);",
"@Override\n public void onClick(View v) {\n stopService(new Intent(MainActivity.this, MyService.class));\n }",
"void setServiceId(java.lang.String serviceId);",
"public void stopService() {\n if (serviceRegistered) {\n Application application = getApplication();\n application.stopService(serviceIntent);\n application.unbindService(serviceConnection);\n recordingService.stopForeground(true);\n recordingService.stopSelf();\n serviceRegistered = false;\n }\n }",
"public static void stop(Context context)\n {\n Log.v(TAG, \"Stopping!!\");\n Intent intent = new Intent(context, TexTronicsManagerService.class);\n intent.setAction(Action.stop.toString());\n context.startService(intent);\n }",
"@Override\n\tpublic void stop() throws ServiceException\n\t{\n\t\t\n\t}",
"public void serviceDeactivated(String serviceID) {\r\n \t\teventIDFilter.serviceDeactivated(serviceID);\r\n \t}",
"public static Stop findStop(int id) throws IllegalArgumentException {\n for (Stop s : getAllStops()) {\n if (s.getID() == id) {\n return s;\n }\n }\n String msg = \"unable to find stop with ID# \" + id;\n throw new IllegalArgumentException(msg);\n }",
"public void stopService(View view) {\r\n stopService(new Intent(this, CustomService.class));\r\n }",
"public native int stopService(long nativeHandle);",
"void stop( String profileId );",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tstopService(myserviceIntent);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstopService(myit);\n\t\t\t}",
"void unsetServiceId();",
"public void end_stopService(Ice.AsyncResult __result)\r\n throws AlreadyStoppedException,\r\n NoSuchServiceException;",
"private synchronized void stopWiperService()\n {\n Message msg = Message.obtain(mHandler, STOP_WIPER_SERVICE);\n mHandler.sendMessage(msg);\n }",
"@GET\n @Path(\"/stop\")\n @Produces(MediaType.TEXT_PLAIN)\n public String stop() {\n Device device = getDevice();\n try {\n transportService.stop(device.getId());\n } catch (UnknownDeviceException e) {\n return e.getMessage();\n }\n return \"Stop device:[\" + device.getId() + \"]\";\n }",
"@DELETE\n @ApiOperation(\"Forcefully stops a process\")\n @javax.ws.rs.Path(\"/{id}\")\n @WithTimer\n public void kill(@ApiParam @PathParam(\"id\") UUID instanceId) {\n ProcessKey processKey = assertProcessKey(instanceId);\n processManager.kill(processKey);\n }",
"LinkedService deleteById(String id);",
"void stopForegroundCompat(int id) {\r\n\t // If we have the new stopForeground API, then use it.\r\n\t if (mStopForeground != null) {\r\n\t mStopForegroundArgs[0] = Boolean.TRUE;\r\n\t try {\r\n\t mStopForeground.invoke(this, mStopForegroundArgs);\r\n\t } catch (InvocationTargetException e) {\r\n\t // Should not happen.\r\n\t Log.w(\"ApiDemos\", \"Unable to invoke stopForeground\", e);\r\n\t } catch (IllegalAccessException e) {\r\n\t // Should not happen.\r\n\t Log.w(\"ApiDemos\", \"Unable to invoke stopForeground\", e);\r\n\t }\r\n\t return;\r\n\t }\r\n\r\n\t // Fall back on the old API. Note to cancel BEFORE changing the\r\n\t // foreground state, since we could be killed at that point.\r\n\t mNM.cancel(id);\r\n\t setForeground(false);\r\n\t}",
"public void onStopButton(View view)\r\n {\n myService.onDestroy();\r\n //isBound=false;\r\n // Log.i(TAG, \"stop service\");\r\n }",
"public void cancelTask(String id);",
"private void stop() {\n\t\t/*\n if (this.status != PedoListener.STOPPED) {\n this.sensorManager.unregisterListener(this);\n }\n this.setStatus(PedoListener.STOPPED);\n\t\t*/\t\t\t\t\n\t\t\t\n\t\tif (status != PedoListener.STOPPED) {\n\t\t uninitSensor();\n\t\t}\n\n\t\tDatabase db = Database.getInstance(getActivity());\n\t\tdb.setConfig(\"status_service\", \"stop\");\n\t\t//db.clear(); // delete all datas on table\n\t\tdb.close();\t\t\n\n\t\tgetActivity().stopService(new Intent(getActivity(), StepsService.class));\n\t\tstatus = PedoListener.STOPPED;\n\n\t\tcallbackContext.success();\n }",
"public void stopTracking(String id) {\n mStartTimes.remove(id);\n }",
"public void StopMusic(int id) {\n\t\t\n\t\tif(id == 1) {\n if(!bm.equals(null)) {\n\n \tbm.stop();\n }\n\t\t}else if(id == 2) {\n\t\t\n if(!bmwin.equals(null)) {\n bmwin.stop();\n }\n\t\t}else if(id == 3) {\n\n if(!bmdead.equals(null)) {\n \tbmdead.stop();\n }\n\t\t}\n \n\t}",
"public void onStopServiceButtonClick(View view) {\n new AlertDialog.Builder(this)\n .setMessage(getString(R.string.stop_confirm_msg))\n .setPositiveButton(\"OK\", (dialog, which) -> {\n // Stop the service\n stopService(getClipServiceIntent());\n isStarted = false;\n isBound = false;\n\n // Enable/disable buttons\n updateUi();\n }).setNegativeButton(\"Cancel\", null)\n .create()\n .show();\n }",
"private void stopTalePlay_Service(){\n sBtn_PlayResume.setImageResource(R.drawable.select_btn_play);\n mAudioTaleSeekBar.setProgress(0);\n mCurrTimePosText.setText(\"00:00\");\n this.stopService(mServiceIntent);\n unregisterBroadcastReceivers();\n\n /** unregister broadcastReceiver for alertDialog */\n unregisterAfterCallBroadcastReceiver();\n }",
"public static void stopService(Context context) {\n Intent intent = new Intent(context, BandCollectionService.class);\n intent.putExtra(BAND_ACTION, BandAction.DESTROY);\n context.startService(intent);\n }",
"@ServiceMethod(returns = ReturnType.SINGLE)\n void stop(String resourceGroupName, String workspaceName, String computeName, Context context);",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tstopService(svrTestIntentServiceIntent);\n\t\t}",
"@Override\n public void onClick(View v) {\n ls.stopService(launchIntent);\n\n }",
"private static void stopServices(Context context) {\n\n\t\t\tTDSAlarm.stopTDSCommuniction(context);\n\t\t\tcontext.stopService(new Intent(context, TDSService.class));\n\t\t\t\n\t\t\tScanningAlarm.stopScanning(context);\n\t\t\t\n\t\t\tcontext.stopService(new Intent(context, TwitterService.class));\t\n\t\t\t\n\t\t\tTwitterAlarm.stopTwitterAlarm(context);\n\t\t}",
"public void setServiceId(java.lang.Long value) {\n this.serviceId = value;\n }",
"public void serviceUninstalled(String serviceID) {\r\n \t\teventIDFilter.serviceUninstalled(serviceID);\r\n \t}",
"@DeleteMapping(value = \"/runner/{id}\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic ResponseEntity<Object> cancelTest(@PathVariable(\"id\") String testId) {\n\n\t\tTestModule test = support.getRunningTestById(testId);\n\t\tif (test != null) {\n\n\t\t\t// stop the test\n\t\t\ttest.getTestExecutionManager().runInBackground(() -> {\n\t\t\t\teventLog.log(test.getId(), \"TEST-RUNNER\", test.getOwner(), args(\"msg\", \"Stopping test from external request\"));\n\t\t\t\ttest.stop();\n\t\t\t\treturn \"stopped\";\n\t\t\t});\n\n\t\t\t// return its immediate status\n\t\t\tMap<String, Object> map = createTestStatusMap(test);\n\n\t\t\treturn new ResponseEntity<>(map, HttpStatus.OK);\n\t\t} else {\n\t\t\treturn new ResponseEntity<>(HttpStatus.NOT_FOUND);\n\t\t}\n\t}",
"private void serviceStopForeground() {\n\n if (isForeground) {\n stopForeground(true);\n isForeground = false;\n }\n }",
"public void stopService(View view) {\r\n Intent intent = new Intent(this, ImageService.class);\r\n stopService(intent);\r\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MyService.class);\n\t\t\t\tunbindService(conn);\n\t\t\t\t// stopService(intent);\n\t\t\t}",
"public boolean removeService(String id){\n if(this.serviceList.containsKey(id)){\n this.serviceList.remove(id);\n lastID.remove(id);\n System.out.println(\"#\"+id+\" retiré de la liste des services.\");\n return true;\n } else {\n return false;\n }\n }",
"public void stopSound(int id){\n\t for(Sound s: sounds){\n\t if(s.getId() == id){\n\t s.terminate();\n\t }\n\t removables.add(s);\n\t }\n\t}",
"public synchronized void stopMonitor(String service) {\n\t\tif (monitors.containsKey(service)) {\n\t\t\tmonitors.get(service).interrupt();\n\t\t\tmonitors.remove(service);\n\t\t}\n\t}",
"public void setServiceID(int value) {\n this.serviceID = value;\n }",
"public void stop (String message);",
"@Step(\"Stop node <nodeName> in the network <id>\")\n public void stopNode(Node nodeName, String id) {\n NetworkResources networkResources = mustHaveValue(DataStoreFactory.getScenarioDataStore(), \"networkResources\", NetworkResources.class);\n String resourceId = networkResources.getResourceId(nodeName.getName()).stream().filter(i -> infraService.isGeth(i).blockingFirst()).findFirst().get();\n assertThat(resourceId).isNotNull();\n infraService.stopResource(resourceId).doOnNext(ok -> {\n assertThat(ok).as(\"Node must be stopped\").isTrue();\n }).doOnComplete(() -> {\n Duration duration = Duration.ofSeconds(5);\n logger.debug(\"Waiting {}s for node {} to be stopped completely...\", duration.toSeconds(), nodeName.getName());\n Thread.sleep(duration.toMillis());\n }).blockingSubscribe();\n }",
"public void setServiceid(Integer serviceid) {\r\n this.serviceid = serviceid;\r\n }",
"public boolean stopLocationService();",
"boolean isStopClosedById(String stopId) throws Exception;",
"void unsubscribe(String id);",
"@Override\n public void onClick(View v) {\n if (mSecondService != null) {\n try {\n int pid = mSecondService.getPid();\n\n // Note that, though this api allows us to request\n // to kill any process based on its pid, the kernel\n // will still impose standard restrictions on which\n // PID you actually able to kill. typically this means\n // only the process running your application and any additional\n // processes created by that app as shown here; packages sharing\n // a common UID will also be able to kill each other's processes\n Process.killProcess(pid);\n mCallbackText.setText(\"Killed service process\");\n } catch (RemoteException e) {\n e.printStackTrace();\n //Recover gracefully from the process hosting the server dying\n // Just for purposes of the sample, put up a notification\n Log.i(TAG, \"Failure calling RemoteService\");\n }\n }\n\n }",
"@Override\n public void onClick (View arg0){\n stopService(new Intent(Main2Activity.this,NotifyService.class));\n\n }",
"@DeleteMapping(\"/statuts/{id}\")\n public void deletStatut(@PathVariable(\"id\") int id) {\n \tserviceStatut.deletStatut(id);\n }",
"void stop(long timeout);",
"public static void kill(long id) throws IOException {\n String command = \"kill -9\";\n if (isSoWindows()) {\n command = \"taskkill /F /PID\";\n }\n runCommandInSo(command + \" \" + id);\n }",
"@Override\n\t\t\tpublic void onClick(View v){\n\t\t\t\tif (receiver!=null) {\n\t\t\t\t\tmActivity.unregisterReceiver(receiver);\n\t\t\t\t\treceiver=null;\n\t\t\t\t}\n\t\t\t\tIntent intent=new Intent(mActivity,trafficMonitorService.class);\n\t\t\t\tmActivity.stopService(intent);\n\t\t\t\tToast.makeText(mActivity, \"ֹͣ\",Toast.LENGTH_SHORT).show();\n\t\t\t}",
"@ServiceMethod(returns = ReturnType.SINGLE)\n void stop(String resourceGroupName, String workspaceName, String computeName);",
"CdapStopServiceStep createCdapStopServiceStep();",
"public void deleteService(){\r\n \tif(editService != null){\r\n \t\tint id = editService.getId();\r\n \t\ttry {\r\n\t \t\tif(id == 0){\r\n\t \t\t\tthis.getLog().error(\" unable to deleteService(). No id selected\");\r\n\t \t\t}else{\r\n\t \t\t\tthis.getLog().info(\" deleteService(\" + id + \")\");\r\n\t \t\t\tConnectionFactory.createConnection().deleteservice(editService.getId());\r\n\t \t\t}\r\n \t\t\tthis.getServiceList().populateServiceListFromDB();\r\n\t\t\t} catch (DataStorageException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n \t}\r\n }",
"public static void stopStartTripService() {\n Timber.i(\"marker=StoppingTripDetectionService\");\n if (DetectTripStartedBuilder.getInstance() != null) {\n DetectTripStartedBuilder.getInstance().stopService();\n }\n }",
"public void stopPropose(int instanceId);",
"void delete(String id) throws PSDataServiceException, PSNotFoundException;",
"public void stop() {}",
"public void terminate(long id) {\n\t\t// Terminate a task. This is most useful with infinite-duration tasks,\r\n\t\t// but\r\n\t\t// it is also handy to delete finite tasks prematurely. It would be a\r\n\t\t// simple\r\n\t\t// matter to add a \"suspend task\" option which suspends a task instead\r\n\t\t// of\r\n\t\t// removing it.\r\n\t\t//\r\n\t\t// Terminate marks the task for deletion rather than just removing it,\r\n\t\t// since it may be called while ExecuteFrame is iterating through the\r\n\t\t// list.\r\n\t\t// Marked tasks are swept up at the end of each frame.\r\n\t\t//\r\n\t\t// Since all task ID's are unique, this method stops looking after it\r\n\t\t// finds\r\n\t\t// a matching task.\r\n\t\t//\r\n\t\tboolean found = false;\r\n\r\n\t\tif (id == RENDER_TASK_ID) {\r\n\t\t\trenderTask.pTask = null;\r\n\t\t\tfound = true;\r\n\t\t}\r\n\r\n\t\tTaskInfo pTaskInfo = m_pTaskList;\r\n\t\twhile (pTaskInfo != null && !found) {\r\n\t\t\tif (pTaskInfo.id == id) {\r\n\t\t\t\tpTaskInfo.status = TASK_DELETE;\r\n\t\t\t\tpTaskInfo.pTask.finish(pTaskInfo.id, m_clock.getTime(), pTaskInfo.pUser);\r\n\t\t\t\tfound = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tpTaskInfo = pTaskInfo.pNext;\r\n\t\t}\r\n\t\tpTaskInfo = m_pFrameList;\r\n\t\twhile (pTaskInfo != null && !found) {\r\n\t\t\tif (pTaskInfo.id == id) {\r\n\t\t\t\tpTaskInfo.status = TASK_DELETE;\r\n\t\t\t\tpTaskInfo.pTask.finish(pTaskInfo.id, m_clock.getTime(), pTaskInfo.pUser);\r\n\t\t\t\tfound = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tpTaskInfo = pTaskInfo.pNext;\r\n\t\t}\r\n\t}",
"void stop(String resourceGroupName, String virtualMachineName);",
"public Service(int id)\r\n {\r\n this.id = id;\r\n \r\n logger = new Logger(this);\r\n }",
"public static void stopTripTrackingService(Context context, String stopMethod) {\n Timber.i(\"method=stopTripTrackingService marker=StoppingTripTrackingService stopMethod=%s\", stopMethod);\n if (MotionTrackerBuilder.getInstance() != null) {\n Timber.d(\"method=startTripTrackingService action='instantiate MotionTrackerBuilder object'\");\n MotionTrackerBuilder.getInstance().stopService();\n }\n PreferencesManager.getInstance(context).saveTripStartedState(false);\n Intent tripTrackingService = new Intent(context, TripTrackingService.class);\n if (!stopMethod.equals(Constants.APP_WILL_TERMINATE)) {\n tripTrackingService.putExtra(ConfigurationConstants.STOP_METHOD_EXTRA, stopMethod);\n context.startService(tripTrackingService);\n restartIfAutomaticOn(context);\n } else {\n context.stopService(tripTrackingService);\n }\n }",
"void stop(String resourceGroupName, String referer, String virtualMachineName);",
"public Map killServerProcess(String id) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"kill\"));\n\t}",
"private void cancelReservation(int id) throws SQLException {\n\t\tupdateReservationCancelStatement.clearParameters();\n\t\tupdateReservationCancelStatement.setInt(1, id);\n\t\tupdateReservationCancelStatement.executeUpdate();\n\t\tgetReservationStatement.clearParameters();\n\t\tgetReservationStatement.setString(1, this.username);\n\t\tgetReservationStatement.setInt(2, id);\n\t\tResultSet result = getReservationStatement.executeQuery();\n\t\tresult.next();\n\t\tFlight f1 = getFlight(result.getInt(3));\n\t\tdeleteTravel(f1.month, f1.dayOfMonth);\n\t\tif (result.getInt(4) > 0){\n\t\t\tFlight f2 = getFlight(result.getInt(4));\n\t\t\tdeleteTravel(f2.month, f2.dayOfMonth);\n\t\t}\n\t}",
"private void stopLoggerService() {\n Intent intent = new Intent(this, GestureLoggerService.class);\n intent.putExtra(GestureLoggerService.EXTRA_START_SERVICE, false);\n\n startService(intent);\n }",
"protected void onStop() {\n if(scheduleClient != null)\n scheduleClient.doUnbindService();\n this.onStop();\n }"
] | [
"0.77354586",
"0.7296251",
"0.725535",
"0.6985582",
"0.69652635",
"0.68513477",
"0.68159074",
"0.6801638",
"0.68013036",
"0.67830634",
"0.6559961",
"0.6559215",
"0.6557308",
"0.65562093",
"0.65458584",
"0.6493521",
"0.6462682",
"0.6456635",
"0.6447948",
"0.64151365",
"0.63996375",
"0.63679564",
"0.6348329",
"0.63279855",
"0.6320927",
"0.6317613",
"0.62807816",
"0.62546134",
"0.62422407",
"0.62019324",
"0.61950266",
"0.6167512",
"0.614491",
"0.6137773",
"0.6137033",
"0.6099749",
"0.6084529",
"0.60821944",
"0.60754323",
"0.6073141",
"0.6072328",
"0.60639906",
"0.5983221",
"0.5970672",
"0.59664446",
"0.5953337",
"0.59533024",
"0.58462906",
"0.58395815",
"0.5822989",
"0.5800921",
"0.5727563",
"0.57176775",
"0.56906176",
"0.5684431",
"0.56832194",
"0.5681149",
"0.56772774",
"0.5647894",
"0.56451905",
"0.56449807",
"0.5643032",
"0.5642801",
"0.5634897",
"0.5633718",
"0.5621003",
"0.5620269",
"0.5611002",
"0.5609268",
"0.55567753",
"0.5543882",
"0.5536834",
"0.55342513",
"0.5526168",
"0.55186486",
"0.5513715",
"0.55093086",
"0.5507824",
"0.5505264",
"0.55032593",
"0.547977",
"0.5471803",
"0.5426842",
"0.53733003",
"0.5367944",
"0.53594214",
"0.5339545",
"0.53389716",
"0.5337107",
"0.5329099",
"0.5327804",
"0.5326142",
"0.5318042",
"0.53168905",
"0.5310451",
"0.5308197",
"0.5304458",
"0.53042036",
"0.5288384",
"0.5283872"
] | 0.67974806 | 9 |
Kills a service by given ID. You should only use this if a "stop" fails. Killing the server forcefully may result in data loss | public Map killServerProcess(String id) throws IOException
{
return request(POST, address(id, "kill"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map stopServerProcess(String id) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"stop\"));\n\t}",
"public void stopService();",
"@DELETE\n @ApiOperation(\"Forcefully stops a process\")\n @javax.ws.rs.Path(\"/{id}\")\n @WithTimer\n public void kill(@ApiParam @PathParam(\"id\") UUID instanceId) {\n ProcessKey processKey = assertProcessKey(instanceId);\n processManager.kill(processKey);\n }",
"public void stop(Integer id) throws DynamicCallException, ExecutionException{\n call(\"stop\", id).get();\n }",
"public void stop(Integer id) throws CallError, InterruptedException{\n if (isAsynchronous)\n service.call(\"stop\", id);\n else\n service.call(\"stop\", id).get();\n }",
"public void kill() {\n this.server.stop();\n }",
"public static void kill(long id) throws IOException {\n String command = \"kill -9\";\n if (isSoWindows()) {\n command = \"taskkill /F /PID\";\n }\n runCommandInSo(command + \" \" + id);\n }",
"public Future<Void> stop(Integer id) throws DynamicCallException, ExecutionException{\n return call(\"stop\", id);\n }",
"void kill(long procid);",
"public abstract String killClient() throws ServiceManagerException;",
"protected void stopService() {\n\t\t//if (isServiceRunning(Constants.SERVICE_CLASS_NAME))\n\t\tthis.stopService(new Intent(this, LottoService.class));\n\t}",
"public void stopService() {\n stopService(new Intent(getBaseContext(), OrderService.class));\n }",
"public Ice.AsyncResult begin_stopService(String service);",
"public native int stopService(long nativeHandle);",
"@Override \n public void commandKill(int id) {\n\n }",
"public abstract void stopService();",
"private synchronized void stopWiperService()\n {\n Message msg = Message.obtain(mHandler, STOP_WIPER_SERVICE);\n mHandler.sendMessage(msg);\n }",
"public Ice.AsyncResult begin_stopService(String service, java.util.Map<String, String> __ctx);",
"@RequestMapping(value=\"/players/kill\", method=RequestMethod.POST)\n\t@ResponseBody\n\tpublic void kill(String id) {\n\t\tSystem.out.println(\"in kill homecontroller\");\n\t\tplayerService.setDead(playerService.getPlayerById(id));\n\n\t}",
"public void stopService(String service, java.util.Map<String, String> __ctx)\r\n throws AlreadyStoppedException,\r\n NoSuchServiceException;",
"public KillProcResponse killProc(String runId, Map<String, String> options) throws GPUdbException {\n KillProcRequest actualRequest_ = new KillProcRequest(runId, options);\n KillProcResponse actualResponse_ = new KillProcResponse();\n submitRequest(\"/kill/proc\", actualRequest_, actualResponse_, false);\n return actualResponse_;\n }",
"public final void kill() {\n doKill();\n }",
"public void stopService() {\n \tlog_d( \"stopService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) return;\n\t\t// Stop the Bluetooth chat services\n\t\tif ( mBluetoothService != null ) {\n\t\t log_d( \"BluetoothService stop\" );\n\t\t\tmBluetoothService.stop();\n\t\t}\n\t\tshowButtonConnect();\n\t}",
"public void serviceRemoved(String serviceID);",
"public void stopService() {\r\n Log.d(LOG, \"in stopService\");\r\n stopService(new Intent(getBaseContext(), EventListenerService.class));\r\n stopService(new Intent(getBaseContext(), ActionService.class));\r\n }",
"@Override\n public void destroy(String id) {\n ReferenceServiceWarp referenceService = msCache.get(id);\n if(null!=referenceService){//old 计数减一\n// if(referenceService.decrement()<=0){\n//\n// }\n try {\n referenceService.getService().destroy();\n msCache.remove(id);\n referenceService = null;\n ifKeyCache.remove(id);\n } catch (Exception e) {\n e.printStackTrace();\n logger.error(\"销毁MS服务失败,\" + id);\n }\n }\n }",
"void unsetServiceId();",
"public static void stop(Context context)\n {\n Log.v(TAG, \"Stopping!!\");\n Intent intent = new Intent(context, TexTronicsManagerService.class);\n intent.setAction(Action.stop.toString());\n context.startService(intent);\n }",
"@Override\n public void onClick(View v) {\n if (mSecondService != null) {\n try {\n int pid = mSecondService.getPid();\n\n // Note that, though this api allows us to request\n // to kill any process based on its pid, the kernel\n // will still impose standard restrictions on which\n // PID you actually able to kill. typically this means\n // only the process running your application and any additional\n // processes created by that app as shown here; packages sharing\n // a common UID will also be able to kill each other's processes\n Process.killProcess(pid);\n mCallbackText.setText(\"Killed service process\");\n } catch (RemoteException e) {\n e.printStackTrace();\n //Recover gracefully from the process hosting the server dying\n // Just for purposes of the sample, put up a notification\n Log.i(TAG, \"Failure calling RemoteService\");\n }\n }\n\n }",
"public void stopService(String service)\r\n throws AlreadyStoppedException,\r\n NoSuchServiceException;",
"public Ice.AsyncResult begin_stopService(String service, java.util.Map<String, String> __ctx, Callback_ServiceManager_stopService __cb);",
"@GET\n @Path(\"/stop\")\n @Produces(MediaType.TEXT_PLAIN)\n public String stop() {\n Device device = getDevice();\n try {\n transportService.stop(device.getId());\n } catch (UnknownDeviceException e) {\n return e.getMessage();\n }\n return \"Stop device:[\" + device.getId() + \"]\";\n }",
"public static void stopService(Context context) {\n Intent intent = new Intent(context, BandCollectionService.class);\n intent.putExtra(BAND_ACTION, BandAction.DESTROY);\n context.startService(intent);\n }",
"public void stopService() {\n if (serviceRegistered) {\n Application application = getApplication();\n application.stopService(serviceIntent);\n application.unbindService(serviceConnection);\n recordingService.stopForeground(true);\n recordingService.stopSelf();\n serviceRegistered = false;\n }\n }",
"public Ice.AsyncResult begin_stopService(String service, java.util.Map<String, String> __ctx, Ice.Callback __cb);",
"public void kill();",
"public void kill();",
"void stopServices() throws IOException, SoapException;",
"public void stopService(View view) { \n\t\tstopService(new Intent(getBaseContext(), TestService.class)); \n\t}",
"public void stopService(View view) {\n stopService(new Intent(getBaseContext(), MyFirstService.class));\n }",
"private void StopService() {\n\n TrackLisinterService tracklisiten = new TrackLisinterService(context, getApplication());\n tracklisiten.StopService();\n\n }",
"public void stopService(View view) {\n stopService(new Intent(getBaseContext(), Myservice.class));\n }",
"public void serviceUninstalled(String serviceID) {\r\n \t\teventIDFilter.serviceUninstalled(serviceID);\r\n \t}",
"public void stopServer() {\n stop();\n }",
"public void doStopService() throws ServiceException {\r\n // Nothing to do\r\n super.doStopService();\r\n }",
"public boolean stopService_async(AMI_ServiceManager_stopService __cb, String service, java.util.Map<String, String> __ctx);",
"public void StopMusic(int id) {\n\t\t\n\t\tif(id == 1) {\n if(!bm.equals(null)) {\n\n \tbm.stop();\n }\n\t\t}else if(id == 2) {\n\t\t\n if(!bmwin.equals(null)) {\n bmwin.stop();\n }\n\t\t}else if(id == 3) {\n\n if(!bmdead.equals(null)) {\n \tbmdead.stop();\n }\n\t\t}\n \n\t}",
"public void StopService() {\n\n\n TrackLisinterService tracklisiten = new TrackLisinterService(context, ((Activity) context).getApplication());\n tracklisiten.StopService();\n\n }",
"public boolean stopProgram(String progamId);",
"public void stop (String message);",
"public void stopLocalServer() {\n \t\tif (thread != null) {\n \t\t\tthread.stopProcess();\n \t\t\tthread.interrupt();\n \t\t\tthread = null;\n \t\t\tSystem.out.println(addeMcservl + \" was stopped\");\n \t\t} else {\n \t\t\tSystem.out.println(addeMcservl + \" is not running\");\n \t\t}\n \t}",
"@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = \"/api/{id}\", params = \"action=stop\", method = RequestMethod.PUT)\n \tpublic HttpEntity<String> stop(@PathVariable(\"id\") Long id) {\n \t\tagentManagerService.stopAgent(id);\n \t\treturn successJsonHttpEntity();\n \t}",
"public Ice.AsyncResult begin_stopService(String service, Ice.Callback __cb);",
"void stopDiscountById(Long id) throws ServiceException;",
"public Ice.AsyncResult begin_stopService(String service, Callback_ServiceManager_stopService __cb);",
"public interface SecKillService {\n /**\n * 查询秒杀活动特价商品的信息\n *\n * @param productId\n * @return\n */\n String querySecKillProductInfo(String productId);\n\n /**\n * 模拟不同用户秒杀同一商品的请求\n *\n * @param productId\n * @return\n */\n void orderProductMockDiffUser(String productId);\n}",
"public synchronized void stopMonitor(String service) {\n\t\tif (monitors.containsKey(service)) {\n\t\t\tmonitors.get(service).interrupt();\n\t\t\tmonitors.remove(service);\n\t\t}\n\t}",
"public void stopPropose(int instanceId);",
"public void stopService(View view) {\r\n stopService(new Intent(this, CustomService.class));\r\n }",
"private static void stopServices(Context context) {\n\n\t\t\tTDSAlarm.stopTDSCommuniction(context);\n\t\t\tcontext.stopService(new Intent(context, TDSService.class));\n\t\t\t\n\t\t\tScanningAlarm.stopScanning(context);\n\t\t\t\n\t\t\tcontext.stopService(new Intent(context, TwitterService.class));\t\n\t\t\t\n\t\t\tTwitterAlarm.stopTwitterAlarm(context);\n\t\t}",
"private void killLight() {\n stopService(new Intent(this, SunriseService.class));\n\n // Kill the moonlight service (in case it's running)\n stopService(new Intent(this, MoonlightService.class));\n\n // Actually turn off the light (by zone)\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n // Turn off the light for the selected zone\n SingletonServices.getMQTT(Main.this).fadeOut();\n }\n catch (Exception exc) {\n // Log errors to logcat\n Log.e(Logging.TAG, \"Kill error\", exc);\n }\n }\n }).start();\n }",
"void stop( String profileId );",
"public void kill(String jobId) throws NotBoundException, RemoteException {\n\t\tRegistry registry = LocateRegistry.getRegistry(registryHost,\n\t\t\t\tregistryPort);\n\t\tJobTracker jobTracker = (JobTracker) registry.lookup(\"JobTracker\");\n\t\tjobTracker.kill(jobId);\n\t}",
"@Override\n public void onClick(View v) {\n stopService(new Intent(MainActivity.this, MyService.class));\n }",
"public void decommission() {\n\t\tlogger.debug(\"Decommission signal received. Shutting down...\");\n\t\tlogger.logServiceStop(servicePID);\n\t\tkeepRunning = false;\n\t}",
"@Override\n public void stop() {\n\n service.shutdown();\n\n while (!service.isTerminated()) {\n try {\n logger.warn(\"Waiting for zabbix service to stop\");\n service.awaitTermination(500, TimeUnit.MILLISECONDS);\n } catch (InterruptedException ex) {\n logger.warn(\"Interrupted while waiting\"\n + \" for zabbix monitor to shutdown\", ex);\n service.shutdownNow();\n }\n }\n \n zabbixServers.clear();\n \n }",
"public void stop() {\n System.err.println(\"Server will stop\");\n server.stop(0);\n }",
"@ServiceMethod(returns = ReturnType.SINGLE)\n void stop(String resourceGroupName, String workspaceName, String computeName, Context context);",
"@Override\r\n public int onStartCommand(Intent intent, int flags, int startId) {\n Message msg = mServiceHandler.obtainMessage();\r\n msg.arg1 = startId;\r\n msg.obj = intent;\r\n mServiceHandler.sendMessage(msg);\r\n\r\n // If we get killed, after returning from here, restart\r\n return START_STICKY;\r\n }",
"public boolean stopService_async(AMI_ServiceManager_stopService __cb, String service);",
"public void stop() {\n System.err.println(\"Server will stop\");\n server.stop(0);\n }",
"public void stop() {\n server.stop();\n }",
"@Override\n public void kill()\n {\n }",
"@Override\n\tpublic void stopGroup(Integer id) {\n\t\tString hql = \"update HhGroup h set h.groupStatus = 2 where h.id = \" + id;\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\tquery.executeUpdate();\n\t}",
"public void Kill();",
"public void stop() {}",
"@PostMapping(value = \"/stop\")\n public ResponseEntity stop(){\n try {\n CommandExecutor.execute(Commands.shutdown);\n return ResponseEntity.ok().build();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return ResponseEntity.status(500).build();\n }",
"public void stopSound(int id){\n\t for(Sound s: sounds){\n\t if(s.getId() == id){\n\t s.terminate();\n\t }\n\t removables.add(s);\n\t }\n\t}",
"public void onStopButton(View view)\r\n {\n myService.onDestroy();\r\n //isBound=false;\r\n // Log.i(TAG, \"stop service\");\r\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t\tstopService(myserviceIntent);\n\t\t\t}",
"public void stopService(View view) {\r\n Intent intent = new Intent(this, ImageService.class);\r\n stopService(intent);\r\n }",
"@Override\n\tpublic void stop() throws ServiceException\n\t{\n\t\t\n\t}",
"public void stopTracking(String id) {\n mStartTimes.remove(id);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MyService.class);\n\t\t\t\tunbindService(conn);\n\t\t\t\t// stopService(intent);\n\t\t\t}",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();",
"@Override\n\t\tpublic void onClick(View v) {\n\t\t\tstopService(svrTestIntentServiceIntent);\n\t\t}"
] | [
"0.70224804",
"0.6951843",
"0.6827369",
"0.6731258",
"0.6701272",
"0.6408953",
"0.639027",
"0.637256",
"0.63517076",
"0.627288",
"0.6263784",
"0.62372833",
"0.6173559",
"0.6166999",
"0.6163076",
"0.61607766",
"0.61395806",
"0.6093157",
"0.60814846",
"0.6058152",
"0.6051016",
"0.6035139",
"0.60264766",
"0.60225093",
"0.60056335",
"0.5970904",
"0.5966718",
"0.59646875",
"0.5934303",
"0.5931907",
"0.593171",
"0.59146136",
"0.59141755",
"0.59051776",
"0.5894776",
"0.5890734",
"0.5890734",
"0.5862383",
"0.58080995",
"0.5804809",
"0.5775984",
"0.5775927",
"0.57442516",
"0.573151",
"0.57168674",
"0.5704214",
"0.5666883",
"0.56592786",
"0.5634464",
"0.5630859",
"0.5630422",
"0.5613134",
"0.559478",
"0.558354",
"0.5572839",
"0.5563867",
"0.5561409",
"0.553184",
"0.5531578",
"0.55284137",
"0.5524721",
"0.55151963",
"0.5505411",
"0.5500244",
"0.5493274",
"0.5491768",
"0.5480306",
"0.54640234",
"0.54563814",
"0.5456043",
"0.5428864",
"0.54235816",
"0.5406685",
"0.53942996",
"0.5380246",
"0.5375163",
"0.53748065",
"0.5371509",
"0.53683",
"0.5359261",
"0.5346092",
"0.53350574",
"0.53277075",
"0.53270996",
"0.5326125",
"0.5326125",
"0.5326125",
"0.5326125",
"0.5326125",
"0.5326125",
"0.5326125",
"0.5326125",
"0.5326125",
"0.5326125",
"0.5326125",
"0.5326125",
"0.5326125",
"0.5326125",
"0.5326125",
"0.53184146"
] | 0.7129099 | 0 |
Sends a console command to a service by given ID | public Map consoleCommand(String id, String cmd) throws IOException
{
return request(POST, address(id, "msg"), new AbstractMap.SimpleEntry<>("msg", cmd));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int sendCommandWithID(String commandID, String command, String args) throws IOException\n {\n StringBuilder __commandBuffer = new StringBuilder();\n if (commandID != null)\n {\n __commandBuffer.append(commandID);\n __commandBuffer.append(' ');\n }\n __commandBuffer.append(command);\n \n if (args != null)\n {\n __commandBuffer.append(' ');\n __commandBuffer.append(args);\n }\n __commandBuffer.append(SocketClient.NETASCII_EOL);\n \n String message;\n __writer.write(message = __commandBuffer.toString());\n __writer.flush();\n \n if (_commandSupport_.getListenerCount() > 0)\n _commandSupport_.fireCommandSent(command, message);\n \n __getReply();\n return _replyCode;\n }",
"public String sendCommand(int id, String command){\n\t\tint status = ts.sendCmd(id, command,3);\n\t\tString rback = \"SUCCESS\";\n\t\t\n\t\tif(status != 0){\n\t\t\tString error = ts.getErrorString(status);\n\t\t\tlog.info(\"sendCmd failed with error \" + error);\n\t\t\trback = error;\n\t\t}\n\t\treturn rback;\n\t}",
"public void send(int id, Object o){\r\n\t\tclients[findClient(id)].send(o);\r\n\t}",
"@Override\n\t\tpublic void getService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"get service invoke on \" + system_id);\n\t\t}",
"public void sendCommand(Command cmd);",
"@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n @Override\n public Command command(@PathVariable String id) {\n try {\n Command cmd = repos.findOne(id);\n if (cmd == null)\n throw new NotFoundException(Command.class.toString(), id);\n return cmd;\n } catch (NotFoundException nfE) {\n throw nfE;\n } catch (Exception e) {\n logger.error(\"Error getting command: \" + e.getMessage());\n throw new ServiceException(e);\n }\n }",
"public void executeCommand(ServerControl control, ServerChat server) {\r\n\t\tfor (ServiceChat service: server.services) {\r\n\t\t\tcontrol.appendText(service.getName() + \" (\" + service.getID() + \")\");\r\n\t\t}\r\n\t}",
"@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}",
"@RequestMapping(value = \"/console/{id}\", method = RequestMethod.DELETE)\n @ResponseStatus(value = HttpStatus.OK)\n public void deleteConsole(@PathVariable Long id) {\n // Get the requested Console from the database\n Console console = serviceLayer.getConsole(id);\n\n // Delete the Console if it is found in the database\n if (console != null) {\n serviceLayer.deleteConsole(id);\n } else {\n throw new IllegalArgumentException(\"There is no Console with id: \" + id);\n }\n }",
"private void sendIntenttoServiece() {\n\t\tIntent intent = new Intent(context, RedGreenService.class);\n\t\tintent.putExtra(\"sendclean\", \"sendclean\");\n\t\tcontext.startService(intent);\n\n\t}",
"public void send(String id, String message) {\n if (sessions.containsKey(id)) {\n for (Session session : sessions.get(id)) {\n try {\n session.getRemote().sendString(message);\n } catch (Exception e) {\n Logger.getGlobal().log(Level.WARNING, e.getMessage());\n }\n }\n }\n }",
"public void getMessage(final String id)\n {\n sendEngagementCommand(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n mEngagementService.getMessage(id);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n }",
"public void sendIndividualCommand(String userID, CommandMessage command){\n\n\t\tMessageCreator mc = new MessageCreator(command);\n\n\t\tsendMessage(userID, mc.toXML());\n\n\t}",
"@RequestMapping(value = \"/console/{id}\", method = RequestMethod.GET)\n @ResponseStatus(value = HttpStatus.OK)\n public Console getConsole(@PathVariable Long id) {\n // Find the Console requested in the database\n Console console = serviceLayer.getConsole(id);\n\n // Return the Console if it is found in the database\n if (console != null) {\n return console;\n } else {\n throw new IllegalArgumentException(\"There is no Console with id: \" + id);\n }\n }",
"public void sendIdCommand(int playerId, String firstName, String lastName) {\n\t\ttry {\n\t\t\tString idCommand = \"ID \" + playerId + \" \" + firstName + \" \"\n\t\t\t\t\t+ lastName + \"\\0\";\n\t\t\twriter.write(idCommand);\n\t\t\twriter.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void commandOutput(int id, String line) {\n\t\t\t\tRootTools.log(\"Command\", \"ID: \" + id + \", \" + line);\n\t\t\t\tMessage message = callback\n\t\t\t\t\t\t.obtainMessage(Constants.OUTPUT_UPDATED);\n\t\t\t\tmessage.obj = line;\n\t\t\t\tcallback.sendMessage(message);\n\n\t\t\t}",
"public void startService(String id, String configLocation)\n throws IOException;",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Command : {}\", id);\n commandRepository.deleteById(id);\n }",
"public void sendCommands(String command) {\n try {\n printStream.print(command);\n }\n catch (Exception e){\n\n }\n\n\n }",
"void setServiceId(java.lang.String serviceId);",
"@NotNull\n CommandResult onConsoleCommand(@NotNull ConsoleCommandSender console,\n @NotNull String[] params);",
"@Override\r\n public int onStartCommand(Intent intent, int flags, int startId) {\n Message msg = mServiceHandler.obtainMessage();\r\n msg.arg1 = startId;\r\n msg.obj = intent;\r\n mServiceHandler.sendMessage(msg);\r\n\r\n // If we get killed, after returning from here, restart\r\n return START_STICKY;\r\n }",
"public static void sendMessage(int command) {\n\t\tfindWindow();\n\t\t\n\t\tuser32.SendMessageA(handle, IUser32.WM_COMMAND, command, 0x00000000);\n\t}",
"void deleteCommand(String commandID);",
"public void setIdPtoServicio(String idPtoServicio);",
"void subscribe(String id);",
"private void sendCommand(int recipient, int action, int parameter,\r\n\t\t\tint options) {\r\n\t\tString command = \"*\" + recipient + \";\" + action + \";\" + parameter + \";\"\r\n\t\t\t\t+ options + \"#\";\r\n\t\tlogger.debug(\"Sende Kommando\");\r\n\t\tcom.sendString(command);\r\n\t\tlogger.debug(\"Senden des Kommandos beendet\");\r\n\r\n\t}",
"java.lang.String getServiceCmd();",
"@RequestMapping(value = \"/console/{id}\", method = RequestMethod.DELETE)\n public ResponseEntity<Consoles> delete(@PathVariable Integer id) {\n consolesService.deleteConsoles(id);\n return new ResponseEntity<>(HttpStatus.OK);\n }",
"public static void push(String id, Message message) {\n\t\ttry {\n\t\t\tPushMessage pushMessage = new PushMessage(id, message);\n\t\t\tLineMessagingServiceBuilder.create(System.getenv(\"LINE_BOT_CHANNEL_TOKEN\")).build().pushMessage(pushMessage).execute();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t handleCommand(intent, startId);\r\n\t}",
"void exec(ICommandConsole console, List<String> options);",
"private void doCommand() {\n try {\n TimeUnit.SECONDS.sleep(2L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public interface SendService {\n\n public void sendMessage(RemotingCommand remotingCommand, long timeout);\n}",
"String getCommandId();",
"public Service(int id)\r\n {\r\n this.id = id;\r\n \r\n logger = new Logger(this);\r\n }",
"public void sendOSCCommand(String message) throws CausticException {\n OSCMessage result = OSCMessage.initialize(message);\n sendOSCCommand(result);\n }",
"private void sendCommand(int recipient, int action) {\r\n\t\tString command = \"*\" + recipient + \";\" + action + \";\" + \"0\" + \";\" + \"0\"\r\n\t\t\t\t+ \"#\";\r\n\t\tlogger.debug(\"Sende Kommando\");\r\n\t\tcom.sendString(command);\r\n\t\tlogger.debug(\"Senden des Kommandos beendet\");\r\n\t}",
"public void onItemClick(AdapterView<?> parent, View v,\r\n\t\t\t\t\tint position, long id) {\n\t\t\t\tString selectedDevice = parent.getItemAtPosition(position)\r\n\t\t\t\t\t\t.toString().split(\"\\\\n\")[1];\r\n\t\t\t\tLog.d(\"SelectedDevice: \", selectedDevice);\r\n\r\n\t\t\t\t// Connect to Device\r\n\t\t\t\tservicestartRequest(selectedDevice);\r\n\r\n\t\t\t}",
"private void sendCommand(int recipient, int action, int parameter) {\r\n\t\tString command = \"*\" + recipient + \";\" + action + \";\" + parameter + \";\"\r\n\t\t\t\t+ \"0\" + \"#\";\r\n\t\tlogger.debug(\"Sende Kommando\");\r\n\t\tcom.sendString(command);\r\n\t\tlogger.debug(\"Senden des Kommandos beendet\");\r\n\t}",
"@Override\r\n\tpublic void onStart(Intent intent, int startId) {\r\n\t\thandleCommand(intent);\r\n\t}",
"public Map startServerProcess(String id) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"start\"));\n\t}",
"public interface DubboEchoService {\n\n String echo(String name);\n}",
"void sendTo(String from, String to, String m_id);",
"public Builder setServiceCmd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000010;\n serviceCmd_ = value;\n onChanged();\n return this;\n }",
"public abstract void doCommand(String command);",
"@Override\n public void run()\n {\n if (!isEnabled())\n return;\n\n /* Bind if needed */\n bind();\n\n /* If we are not bound, spool command */\n if (mEngagementService == null)\n {\n mPendingCmds.offer(cmd);\n if (mPendingCmds.size() > MAX_COMMANDS)\n mPendingCmds.remove();\n }\n\n /* Otherwise call API and set unbind timer */\n else\n {\n cmd.run();\n scheduleUnbind();\n }\n }",
"void sendCommand(CommandEvent event);",
"public void MessageInvitCommand(String msg)\n {\n System.out.println(\"> \"+msg);\n }",
"public void commissionRunway(String id);",
"@Override\n\tpublic void issueCommand(ExecutorCommand cmd, String instanceId) throws CommandFailed, NoSuchProcedure\n\t{\n\t\t// Check if the proxy is connected before trying to send a command\n\t\tcheckConnectivity();\n\t\tIProcedure model = m_models.getProcedure(instanceId);\n\t\tmodel.getController().issueCommand(cmd, new String[0]);\n\t}",
"@Override\n public void doService(AdaptrisMessage msg) throws ServiceException {\n String serviceKey = createServiceKey(msg);\n String nextServiceId = valueMatcher.getNextServiceId(serviceKey, getMetadataToServiceIdMappings());\n\n if (nextServiceId == null) {\n if (isEmpty(getDefaultServiceId())) {\n throw new ServiceException(\"no ServiceId configured against key [\" + serviceKey + \"] and no default ServiceId configured\");\n }\n nextServiceId = getDefaultServiceId();\n log.debug(\"Using default ServiceId : {}\", getDefaultServiceId());\n }\n msg.setNextServiceId(nextServiceId);\n // logging is in BranchingServiceCollection\n }",
"private void startIChatService() {\n Intent transportService = new Intent();\n transportService.setAction(IChatService.class.getCanonicalName());\n this.startService(transportService);\n Log.i(\"Interface\", \"Started IChatservice\");\n }",
"public void run() {\n\t\texecuteCommand( client, false );\n\t}",
"private void output(String scope, Measurement measurement, Long id){\n\t\tmeasurementTransaction = \n\t\t\tMeasurementTransaction.newInstance(measurement, scope, id);\n\t\t\n\t\tMap<String, Object> table = new HashMap<String, Object>();\n\t\ttable.put(IROUTER_PAYLOAD.toProp(),\n\t\t\t\tmeasurementTransaction);\n\t\ttable.put(Constants.BUNDLE_SYMBOLICNAME, \n\t\t\t\tFrameworkUtil.getBundle(this.getClass()).getSymbolicName());\n\t\t\n\t\tif(eventAdmin != null) {\n\t\t\teventAdmin.postEvent(\n\t\t\t\t\tnew Event(\n\t\t\t\t\t\t\tEVENT_ADMIN_TOPIC.toProp(), table));\n\t\t\tint i = totalMeasurements.incrementAndGet();\n\t\t\tlog.info(bundleMarker, \"{} sent {} #{} to the event service\",\n\t\t\t\t\tnew Object[] {this, measurementTransaction,i});\n\t\t}else{\n\t\t\tlog.warn(bundleMarker,\"{} failed to find EventAdmin service\",this);\n\t\t}\n\t}",
"public static void sendToConsole(String message) {\n if (message == null) {\n throw new IllegalArgumentException(\"Message cannot be null\");\n }\n if (Loader.queueMessages) {\n MessageQueue.console.add(message);\n } else {\n sendMessageInternal(Loader.consoleChannelId, message);\n }\n }",
"@Override\n public int onStartCommand(final Intent intent, int flags, int startId) {\n // TODO Auto-generated method stub\n Toast.makeText(this, \"Servicio monitor iniciado...\", Toast.LENGTH_SHORT).show();\n\n final Handler handler = new Handler() {\n\n @Override\n public void handleMessage(Message msg) {\n // TODO Auto-generated method stub\n super.handleMessage(msg);\n\n id = intent.getExtras().getString(\"idRedApoyo\");\n final String funcion = \"viewAlertas\";\n\n\n }\n\n };\n\n\n new Thread(new Runnable(){\n public void run() {\n // TODO Auto-generated method stub\n while(true)\n {\n try {\n Thread.sleep(1000);\n handler.sendEmptyMessage(0);\n\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n }\n\n }\n }).start();\n return START_STICKY;\n }",
"@Override \n public void commandKill(int id) {\n\n }",
"public void sendCommand(String command){\n sendCommand(command, true);\n fromPlugin = false;\n\n }",
"public int sendCommand(String command) throws IOException\n {\n return sendCommand(command, null);\n }",
"private void consoleRun() {\n try {\n var scan = new Scanner(System.in);\n while (scan.hasNextLine()) {\n var msg = scan.nextLine();\n sendCommand(msg);\n }\n } catch (InterruptedException e) {\n logger.info(\"Console thread has been interrupted\");\n } finally {\n logger.info(\"Console thread stopping\");\n }\n }",
"private void sendCommand(CommandItem command) {\n sendCommand(command.data, command.advTimeout);\n }",
"public void clica(String id) {\n getDriver().findElement(By.id(id)).click();\n }",
"@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\tLog.i(TAG, \"service on startcommand id = \" + startId);\n\t\treturn super.onStartCommand(intent, flags, startId);\n\t}",
"public void notificar()\n\t{\n\n\t\tSocket socket;\n\t\tDataOutputStream out;\n\n\t\ttry\n\t\t{\n\t\t\tsocket = new Socket(host, port);\n\n\t\t\tout = new DataOutputStream(socket.getOutputStream());\n\n\t\t\tout.writeUTF(id);\n\n\t\t\tsocket.close();\n\n\t\t} catch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public Command (int id, String name) {\n if (commands[id] != null) {\n\n } else {\n commands[id] = this;\n this.name = name;\n System.out.println(\"[Command Initialization] Command \" + name + \" successfully initialized with id \"\n + id + \" and allowable arguments:\" /*allowable args will be printed here.*/);\n }\n }",
"public Button(String command, String name)\n {\n //command that will activate the infrared remote on the pi when this is sent to the command line\n this.command = \"irsend SEND_ONCE \" + name + \" KEY_\" + command.toUpperCase(); \n }",
"public void command(byte[] cmdMessage) throws SAPIException{\r\n\t\t\t\t//sends command to RBNB\r\n\t\t\t\t\r\n\t\t\t\tsrcMap.PutDataAsByteArray(srcMap.GetIndex(getParameterToStringById(\"sourceChannelCommandName\")), cmdMessage); //cmds channel\t \t\r\n\t \tsrc.Flush(srcMap); \t\r\n\t\t}",
"ServiceBindingOptions withId(String id);",
"@Override\n public boolean sendCommand(String command) throws NotYetConnectedException {\n if(!isConnected)\n throw new NotYetConnectedException();\n\n cmdId += 1;\n String signedCommand = String.format(\"%s id=%s\", command, cmdId);\n\n out.println(signedCommand);\n return processReply(cmdId);\n }",
"public void connect(int id) throws RemoteException {\n\t\t\ttry {\n\t\t\t\t// get info\n\t\t\t\tServiceInfo info = m_services.get(id);\n\t\t\t\tif (info == null)\n\t\t\t\t\tthrow new Throwable();\n\t\t\t\t\n\t\t\t\t// connect and create (fake) sound manager\n\t\t\t\tSocket socket = new Socket(info.getHostAddresses()[0], info.getPort());\n\t\t\t\tm_soundManager.stopManager();\n\t\t\t\tm_soundManager = new RemoteSoundManager(InstrumentService.this, m_handler, socket);\n\t\t\t\tshowToast(R.string.client_connected);\n\t\t\t} catch (Throwable e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tshowToast(R.string.client_error_connecting);\n\t\t\t}\n\t\t}",
"public int sendCommand(String command, String args) throws IOException\n {\n return sendCommandWithID(generateCommandID(), command, args);\n }",
"public void command() {\n List<String> commands = new ArrayList<>();\n commands.add(\": start\");\n commands.add(\": exit\");\n commands.add(\": help\");\n commands.add(\": commands\");\n\n for (String command : commands) {\n System.out.println(command);\n }\n System.out.println();\n }",
"public boolean onCommand(short id)\r\n {\r\n if (rhPtr == null)\r\n {\r\n return false;\r\n }\r\n if (rhPtr.rh2PauseCompteur != 0)\r\n {\r\n return false;\r\n }\r\n if (bReady == false)\r\n {\r\n return false;\r\n }\r\n\r\n rhCurParam0 = id;\r\n rh3CurrentMenu = id;\t\t \t// Pour les evenements II\r\n rhPtr.rh4MenuEaten = false;\t\t\t// Pour bloquer l'option de menu\r\n handle_GlobalEvents(((-14 << 16) | 65535));\t\t// CNDL_MENUSELECTED\r\n\r\n return rhPtr.rh4MenuEaten;\r\n }",
"public static void sendMessage(String message) {\r\n\t\tbtService.write(message.getBytes());\r\n\t}",
"@CommandDescription(name=\"retrieveProduto\", kind=CommandKind.Retrieve, requestPrimitive=\"retrieveProduto\", responsePrimitive=\"retrieveProdutoResponse\")\npublic interface RetrieveProduto extends MessageHandler {\n \n public Produto retrieveProduto(Produto.Id id);\n \n}",
"private static void unicast_send(int id, String msg) throws IOException {\n\n \tSocket socket = new Socket(IPs.get(id), Ports.get(id));\n\n try(PrintWriter out = new PrintWriter(socket.getOutputStream(), true)){\n \tout.println(serverId + \" \" + msg);\n \tSystem.out.println(\"Sent \"+ msg +\" to process \"+ id +\", system time is \"+ new Timestamp(System.currentTimeMillis()).toString());\n }\n socket.close();\n }",
"public interface Command {\r\n public void execute(Long id);\r\n}",
"public Map killServerProcess(String id) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"kill\"));\n\t}",
"public String respondCommand(String input, long chatId) {\r\n logInfo(\"CommandProcessor \" + threadId + \": Command received, processing\");\r\n return processCommand(input, chatId);\r\n }",
"RecipeCommand findCommandById(Long id);",
"public void run() {\n\t\trun(null, CommunicationDefaults.CONSOLE_PORT);\n\t}",
"public String exec(String cmd) throws IOException {\n\t\tSocket socket = null;\n\t\ttry {\n\t\t\tsocket = new Socket(host, port);\n\t\t\tInputStream in = socket.getInputStream();\n\t\t\tOutputStream out = socket.getOutputStream();\n\t\t\tProtocolSupport.send(\"host:transport:\" + serial, in, out);\n\n\t\t\tProtocolSupport.send(\"shell:\" + cmd, in, out);\n\t\t\tint i = -1;\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\twhile ((i = in.read()) != -1) {\n\t\t\t\tsb.append((char) i);\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\ttry {\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\tcatch (IOException e1) {\n\t\t\t}\n\t\t\tthrow e;\n\t\t}\n\t}",
"private void execServiceHandler( Message msg ) {\n \tswitch ( msg.what ) {\n\t\t\tcase BluetoothService.WHAT_READ:\n\t\t\t\texecHandlerRead( msg );\n break;\n case BluetoothService.WHAT_WRITE:\n\t\t\t\texecHandlerWrite( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_STATE_CHANGE:\n\t\t\t\texecHandlerChange( msg );\n break;\n case BluetoothService.WHAT_DEVICE_NAME:\n\t\t\t\texecHandlerDevice( msg );\n break;\n case BluetoothService.WHAT_FAILED:\n\t\t\t\texecHandlerFailed( msg );\n break;\n\t\t\tcase BluetoothService.WHAT_LOST:\n\t\t\t\texecHandlerLost( msg );\n break;\n }\n\t}",
"@Override\n\tpublic int onStartCommand(Intent intent, int flags, int startId) {\n\t\ttracker = new GPSTracker(this);\n\t\tstatus=0;\n\t\torder_id=intent.getExtras().getLong(\"id\");\n\t\tgs=new GetStatus();\n\t\tdsf=new Do_Service_Staff();\n\t\tdsf.execute(0);\n\t\t\n\t\t\n\t\treturn START_STICKY;\n\t}",
"public void sendAck(int id, int serverId){\n StringBuilder ackMessage = new StringBuilder();\n // \"SERVER_CONNECTION;\"\n ackMessage.append(Symbols.serverMessageHeader);\n ackMessage.append(Symbols.messageDelimiter);\n // \"ACK;\"\n ackMessage.append(Symbols.ackMessageTag);\n ackMessage.append(Symbols.messageDelimiter);\n // \"<Server_Id>;\"\n ackMessage.append(Integer.toString(myServer.myId));\n ackMessage.append(Symbols.messageDelimiter);\n // \"<Time_Stamp>;\"\n ackMessage.append(Integer.toString(myServer.clock.sendAction()));\n ackMessage.append(Symbols.messageDelimiter);\n // \"<ACKed_Process_Id>\"\n ackMessage.append(Integer.toString(id));\n try {\n Socket s = getSocket(myServer.getServerList().get(serverId));\n PrintWriter pOut = new PrintWriter(s.getOutputStream());\n pOut.print(ackMessage.toString());\n pOut.flush();\n s.close();\n } catch (IOException ex) {\n Logger.getLogger(ServerRequestProcessor.class.getName()).log(Level.SEVERE, null, ex);\n }\n send(ackMessage.toString());\n }",
"public void clickById(String id) {\n\n\n driver.findElementById(id).click();\n\n\n }",
"private void sendEngagementCommand(final Runnable cmd)\n {\n /* The command needs to run on the main thread to avoid race conditions */\n runOnMainThread(new Runnable()\n {\n @Override\n public void run()\n {\n /* Nothing to do if disabled */\n if (!isEnabled())\n return;\n\n /* Bind if needed */\n bind();\n\n /* If we are not bound, spool command */\n if (mEngagementService == null)\n {\n mPendingCmds.offer(cmd);\n if (mPendingCmds.size() > MAX_COMMANDS)\n mPendingCmds.remove();\n }\n\n /* Otherwise call API and set unbind timer */\n else\n {\n cmd.run();\n scheduleUnbind();\n }\n }\n });\n }",
"@Override\n\tpublic int onStartCommand (Intent intent, int flags, int startId) {\n\t\thandleCommand(intent);\n\t\t\n\t\t// We want this service to continue running until it is explicitly\n\t\t// stopped, so return sticky.\n\t\treturn START_STICKY;\n\t}",
"public static void main(String[] args) {\n BasicConfigurator.configure();\n\n if (args.length < 1) {\n log.error(\"Please specify port number for Echo service\");\n System.exit(1);\n }\n\n EchoServiceLauncher echoService = new EchoServiceLauncher();\n echoService.launch( Integer.valueOf(args[0]) );\n }",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service consulterService(Integer idService) {\n\t\tService service= (Service) serviceRepository.findOne(idService);\r\n\t\tif(service==null) throw new RuntimeException(\"Service introuvable\");\r\n\t\treturn (sn.ucad.master.assurance.bo.Service) service;\r\n\t}",
"private void SendCommandOrKeys(int viewID, String data)\n\t{\n\t\tif (mCommandManager == null)\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tif (viewID == VIEW_ID_COMMAND)\n\t\t{\n // In put case, select file\n if (data.contains(\"!put\"))\n {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"*/*\");\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n mPutCommand = data;\n\n try\n {\n startActivityForResult(Intent.createChooser(intent, \n\t\t\t\t\t\t\"Select a File\"), CHOOSE_FILE_TO_UPLOAD);\n } catch (android.content.ActivityNotFoundException ex)\n {\n ex.printStackTrace();\n }\n\n return ;\n }\n\n\t\t\tmCommandManager.SendCommand(data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tAddMsgToKeyView(viewID, \"remote> \" + data + \"\\n\");\n\n if (data.equals(\"!autotest\"))\n {\n // Run android autotest\n AddMsgToKeyView(viewID, \"remote> wait until the test ends\\n\");\n RunAutoTest();\n }\n else if (data.equals(\"!pintest\"))\n {\n // Run android autotest\n AddMsgToKeyView(viewID, \"remote> wait until the test ends\\n\");\n RunPinTest();\n }\n else if (data.equals(\"!stoptest\"))\n {\n mStopTest = true;\n }\n else\n {\n mCommandManager.SendKey(data);\n }\n\t\t}\t\t\n\t}",
"public void setServiceID(ID sid) {\n\tserviceID = sid;\n }",
"public void sendMessageToWorkerThread(int startId){\n // For each start request, send a message to start a job and deliver the\n // start ID so we know which request we're stopping when we finish the job\n Log.d(TAG, \"onStartCommand: Sending start request to working thread\");\n Message msg = mServiceHandler.obtainMessage();\n msg.arg1 = startId;\n mServiceHandler.sendMessage(msg);\n Log.d(TAG, \"onStartCommand: Sent start request to working thread\");\n }",
"public void doCommand(String command) {\n Command c;\n try {\n c = Parser.commandLine(command);\n c.execute(tasks, members, storage);\n if (c.isExit()) {\n System.exit(0);\n }\n } catch (DukeException e) {\n Ui.print(e.getMessage());\n }\n }",
"@Override\n @Transactional(readOnly = true)\n public Optional<CommandDTO> findOne(Long id) {\n log.debug(\"Request to get Command : {}\", id);\n return commandRepository.findById(id)\n .map(commandMapper::toDto);\n }",
"public String sendCommand(String command) {\n try {\n write(command);\n return readUntil(prompt + \"\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }",
"public void send(String command)\n {\n if (connected) { \n writer.println(command + \";\");\n }\n }",
"public void getClientFromBon(int id) {\n\t\tClient client = clientOperations.getClientFromBon(id);\n\t\tSystem.out.println(client.toString());\n\t}",
"String getService_id();"
] | [
"0.6051549",
"0.5993214",
"0.58341765",
"0.58000517",
"0.57700104",
"0.56973654",
"0.5597435",
"0.55256146",
"0.5488773",
"0.548346",
"0.5404186",
"0.53910583",
"0.5390756",
"0.53634465",
"0.5303812",
"0.52977204",
"0.5297437",
"0.52967113",
"0.52755666",
"0.5270346",
"0.5245",
"0.5224735",
"0.5220935",
"0.5207024",
"0.52055985",
"0.52009374",
"0.51888984",
"0.51508975",
"0.51447946",
"0.5139347",
"0.5129219",
"0.5120109",
"0.5117907",
"0.5102719",
"0.50980407",
"0.50964665",
"0.50961393",
"0.50954556",
"0.5093638",
"0.50880754",
"0.50826305",
"0.5072773",
"0.5058481",
"0.50446784",
"0.5036154",
"0.50336885",
"0.50317895",
"0.50283897",
"0.5006298",
"0.4999528",
"0.4996151",
"0.49892333",
"0.49820533",
"0.49798825",
"0.49698615",
"0.49580038",
"0.49460447",
"0.49405682",
"0.4931368",
"0.4921799",
"0.4914395",
"0.4890373",
"0.48892024",
"0.4884453",
"0.48828653",
"0.48788974",
"0.48644844",
"0.48573607",
"0.48546696",
"0.48521242",
"0.48481712",
"0.48403782",
"0.48387635",
"0.48270223",
"0.4823923",
"0.48219338",
"0.48190004",
"0.48100665",
"0.4807263",
"0.48052147",
"0.480509",
"0.4803094",
"0.48027506",
"0.47985807",
"0.47974548",
"0.47948527",
"0.4791076",
"0.47876006",
"0.47864315",
"0.47781262",
"0.4778108",
"0.4776932",
"0.4769504",
"0.47686675",
"0.47673824",
"0.47668675",
"0.4759362",
"0.47568774",
"0.47548705",
"0.47525817"
] | 0.65675986 | 0 |
Get all coopvault donations | public Map listAllDonations() throws IOException
{
return request(GET, coOpVault());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GetMapping(\"\")\n public Iterable<Donut> returAllDonuts(){\n\n return this.donutRepository.findAll();\n\n }",
"public List<Donor> getAllDonors() {\n List<Donor> donorList = new ArrayList<Donor>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_CONTACTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Donor donor = new Donor();\n donor.setName(cursor.getString(0));\n donor.setContuctNumber(cursor.getString(1));\n donor.setCity(cursor.getString(2));\n donor.setBloodGroup(cursor.getString(3));\n donor.setLat(cursor.getString(4));\n donor.setLan(cursor.getString(5));\n // Adding contact to list\n donorList.add(donor);\n } while (cursor.moveToNext());\n }\n\n // return contact list\n return donorList;\n }",
"public Integer getDonations()\n\t{\n\t\treturn donations;\n\t}",
"public List<Integer> getDonors() {\n return donors;\n }",
"@Transactional(readOnly = true)\n public List<ChocolateDTO> findAll() {\n log.debug(\"Request to get all Chocolates\");\n return chocolateRepository.findAll().stream()\n .map(chocolateMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"public List<Payment> findAll(){\n\t\treturn paymentRepository.findAll();\n\t}",
"public List<SermCit> getCits(){\n return citations;\n }",
"public ArrayList<Concert> getConcertList(){\n return concertList;\n }",
"List<OrdPaymentRefDTO> findAll();",
"public java.util.List<SitbMoneyCollection> findAll();",
"Set<Crate> getCrates();",
"public String[] getAllCopiers();",
"private void getDonationData() {\n\n if (UserManager.getToken(this) != null) {\n\n RequestManager.getDonationData(UserManager.getToken(this)).subscribe(new Observer<Result<DonationData>>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(Result<DonationData> donationDataResult) {\n\n Gson gson = new Gson();\n String donationDataGson = gson.toJson(donationDataResult.getData());\n UserManager.setDonationData(donationDataGson, SignInActivity.this);\n }\n\n @Override\n public void onError(Throwable e) {\n\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n\n }\n\n\n }",
"@Override\n\tpublic List<HoaDon> getAllHoaDon(Connection conn) {\n\t\treturn null;\n\t}",
"List<OcCustContract> selectAll();",
"public void setDonors(List<Integer> donors) {\n this.donors = donors;\n }",
"@Override\r\n\tpublic List<CurrencyAccountCorporate> findAll() {\n\t\treturn em.createQuery(\"from CurrencyAccountCorporate\",\r\n\t\t\t\tCurrencyAccountCorporate.class).getResultList();\r\n\t}",
"@Override\r\n\tpublic List<Commodity> getAllCommodity() {\n\t\tString hql = \"from Commodity\";\r\n\t\treturn (List<Commodity>) getHibernateTemplate().find(hql);\r\n\t}",
"public List<Map<String, Object>> getSubscriptionsDueForBilling();",
"public List<AccommodationPledge> listAccommodationPledge()\n {\n List<AccommodationPledge> result = this.getAccommodationPledgeBo().listAccommodationPledge();\n\n return result;\n }",
"@Transactional(readOnly = true)\n public List<Currency> findAll() {\n log.debug(\"Request to get all Currencies\");\n return currencyRepository.findAll();\n }",
"public final TradeGoods[] getCargo() {\n return cargo;\n }",
"List<Corretor> findAll();",
"public int getDonations()\n\t{\n\t\tint donations=0;\n\t\tString query=\"select count(*) from donations where month(donation_date)=month(curdate())\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tdonations=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn donations;\n\t}",
"@Override\n\tpublic List<ComBorrowings> getAllComBorrowingsInfo() {\n\t\treturn comBorrowingsMapper.selectByExample(new ComBorrowingsExample());\n\t}",
"@RequestMapping(value=\"/api/combocustomerinvoicepay\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic List<CustomerInvoiceDto> getDataCombox(){\n\t\treturn customerPayableService.getComboCPayInvoice();\n\t}",
"public List<Good> getCargo() {\n return cargo;\n }",
"@GetMapping(\"/payments\")\n public List<Payment> getAllPayments() {\n log.debug(\"REST request to get all Payments\");\n return paymentRepository.findAll();\n }",
"ProductCatelogueResponse getProductCatelogues();",
"public ArrayList<Concert> getConcerts(){\n\t\treturn concerts;\n\t}",
"@GetMapping(\"/cargos\")\n @Timed\n public List<Cargo> getAllCargos() {\n log.debug(\"REST request to get all Cargos\");\n return cargoRepository.findAll();\n }",
"@Override\n\tpublic List<Ciclo> listarCiclos() {\n\t\treturn repository.findAll();\n\t}",
"public List getCreditCards(int donorID) {\n List creditCardList = new LinkedList();\n for (Object creditCardObject : creditCardNumbers) {\n CreditCard creditCard = (CreditCard) creditCardObject;\n if (creditCard.getDonorId()==(donorID)) {\n creditCardList.add(creditCard);\n }\n }\n return creditCardList;\n }",
"@GetMapping(\"/covs\")\n @Timed\n public List<Cov> getAllCovs() {\n log.debug(\"REST request to get all Covs\");\n return covService.findAll();\n }",
"public List<CurriculumVO> getAllCurriculum();",
"@GetMapping(\"/procesadors\")\n @Timed\n public List<Procesador> getAllProcesadors() {\n log.debug(\"REST request to get all Procesadors\");\n List<Procesador> procesadors = procesadorRepository.findAll();\n return procesadors;\n }",
"public Collection<Coupon> getAllCoupon() throws DbException;",
"List<Discount> findAll() throws ServiceException;",
"@Override\n public List<Promocion> findAll() {\n return promocionRepository.findAll();\n }",
"public void getAllPurchasedCoupons() throws DBException\n {\n\t customerDBDAO.getCoupons();\n }",
"List<Cargo> getCargoesForOrder(OrderDTO orderDTO);",
"public List<CustomerPurchase> getAll() throws SQLException;",
"public List<Contract> getFoodContracts(){\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(\"SELECT * FROM CONTRACT WHERE SERVICETYPE=0 AND \"\n\t\t\t\t\t+ \"(DATEENDING >= NOW() OR DATEENDING IS NULL)\", new ContractRowMapper());\n\t\t}catch (EmptyResultDataAccessException e){\n\t\t\treturn new ArrayList<Contract>();\n\t\t}\n\t}",
"@Override\n\tpublic List<Charge> getCharges() {\n\t\tList<Charge> list = chargeMapper.getCharges();\n\t\treturn list;\n\t}",
"@Override\n public String toString() {\n String string = \"Donor name: \" + name + \" id \" + donorID + \"phone \" + phoneNumber;\n string += \" donated: [\";\n string += \"] transactions: [\";\n for (Iterator iterator = transactions.iterator(); iterator.hasNext();) {\n string += (Transaction) iterator.next();\n }\n string += \"]\";\n return string;\n }",
"public List<Contract> getContract(int crontactno) {\n\t\treturn contractdao.getContract(crontactno);\n\t}",
"public List<Publication> getShoppingCart() {\n return Collections.unmodifiableList(shoppingCart);\n }",
"@Override\n\tpublic List<Scheme> viewAllDonations() throws SchemeNotFoundException {\n\t\tlog.info(\"Entering into viewAllDonations of SchemeServiceImpl\");\n\t\tList<Scheme> schemes = schemeRepository.findAll();\n\t\tif (schemes.isEmpty()) {\n\t\t\tlog.info(\"Entering into schemes not available block in viewAllDonations of SchemeServiceImpl\");\n\t\t\tthrow new SchemeNotFoundException(Constant.SCHEME_NOT_FOUND_EXCEPTION);\n\t\t}\n\t\treturn schemes;\n\t}",
"public static List<modelPurchasesI> purchasesList(){\r\n\t\tif(modelUsersI.isLogged()){\r\n\t\t\tDataBaseSearch query = DataBaseSearch.queryDaTabella(\"Acquisti\");\r\n\t\t\ttry {\r\n\t\t\t\treturn query.find().stream()\r\n\t\t\t\t\t\t.map(e -> new modelPurchases(e))\r\n\t\t\t\t\t\t.collect(Collectors.toList());\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t}",
"@GetMapping(\"/customer/discount\")\n\tpublic List<Customer> getCustomerByDiscount(){\n\t\treturn customerRepository.getCustomerByDiscount(true);\n\t}",
"public Collection<Payment> getPayments(CustomerItem customerItem);",
"public static CouponIborCompoundedDiscountingMethod getInstance() {\n return INSTANCE;\n }",
"@Override\n\tpublic List<CiclosCarreras> listar() {\n\t\treturn repoCiclos.findAll();\n\t}",
"@SuppressWarnings({\"checkstyle:WhitespaceAround\", \"checkstyle:DesignForExtension\", \"checkstyle:MissingJavadocMethod\"})\n @GetMapping(\"/findAllComplaint\")\n public List<Complaint> findAll() {\n\n return complaintService.findAll();\n }",
"@Override\n\tpublic List<Connexion> findAllConnexion() {\n\t\treturn dao.findAllConnexion();\n\t}",
"public static List<modelPurchasesI> reportPurchases(){\r\n\t\tif(modelUsersI.isLogged()){\r\n\t\t\tComparator<modelPurchasesI> sort = (primo, secondo) -> Double.compare(primo.getTotalSpent(), secondo.getTotalSpent());\r\n\t\t\t\r\n\t\t\treturn modelPurchasesI.purchasesList().stream()\r\n\t\t\t\t\t.sorted(sort)\r\n\t\t\t\t\t.collect(Collectors.toList());\r\n\t\t}else\r\n\t\t\treturn new ArrayList<modelPurchasesI>();\r\n\t}",
"@Override\n @Transactional(readOnly = true)\n public List<CatCarburantDTO> findAll() {\n log.debug(\"Request to get all CatCarburants\");\n return catCarburantRepository.findAll().stream()\n .map(catCarburantMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"@Override\n\t/** Returns all Coupons as an array list */\n\tpublic Collection<Coupon> getAllCoupons() throws CouponSystemException {\n\t\tConnection con = null;\n\t\t// Getting a connection from the Connection Pool\n\t\tcon = ConnectionPool.getInstance().getConnection();\n\t\t// Create list object to fill it later with Coupons\n\t\tCollection<Coupon> colCoup = new ArrayList<>();\n\n\t\ttry {\n\t\t\t// Defining SQL string to retrieve all Coupons via prepared\n\t\t\t// statement\n\t\t\tString getAllCouponsSQL = \"select * from coupon\";\n\t\t\t// Creating prepared statement with predefined SQL string\n\t\t\tPreparedStatement pstmt = con.prepareStatement(getAllCouponsSQL);\n\t\t\t// Executing prepared statement and using its result for\n\t\t\t// post-execute manipulations\n\t\t\tResultSet resCoup = pstmt.executeQuery();\n\t\t\t// While there is result line in resCoup do lines below\n\t\t\twhile (resCoup.next()) {\n\t\t\t\t// Creating Coupon object to fill it later with data from SQL\n\t\t\t\t// query result and for method to add it to the list and return\n\t\t\t\t// it afterwards\n\t\t\t\tCoupon coupon = new Coupon();\n\t\t\t\t// Set Coupon attributes according to the results in the\n\t\t\t\t// ResultSet\n\t\t\t\tcoupon.setId(resCoup.getInt(\"id\"));\n\t\t\t\tcoupon.setTitle(resCoup.getString(\"title\"));\n\t\t\t\tcoupon.setStart_date(resCoup.getDate(\"start_date\"));\n\t\t\t\tcoupon.setEnd_date(resCoup.getDate(\"end_date\"));\n\t\t\t\tcoupon.setExpired(resCoup.getString(\"expired\"));\n\t\t\t\tcoupon.setType(resCoup.getString(\"type\"));\n\t\t\t\tcoupon.setMessage(resCoup.getString(\"message\"));\n\t\t\t\tcoupon.setPrice(resCoup.getInt(\"price\"));\n\t\t\t\tcoupon.setImage(resCoup.getString(\"image\"));\n\t\t\t\t// Add resulting Coupon to the list\n\t\t\t\tcolCoup.add(coupon);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// Handling SQL exception during Coupon retrieval from the database\n\t\t\tthrow new CouponSystemException(\"SQL error - Coupon list retrieve has been failed\", e);\n\t\t} finally {\n\t\t\t// In any case we return connection to the Connection Pool (at least\n\t\t\t// we try to)\n\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t}\n\n\t\t// Return resulted list of Coupons\n\t\treturn colCoup;\n\t}",
"public static Vector<Company> getAllPrices(){\n\t\treturn all_prices;\n\t}",
"public List<Payment> getAllPayments() {\n\t\treturn null;\r\n\t}",
"public List<Commande> getCommande() {\n return commandeDao.findAll();\r\n\r\n }",
"public ArrayList<Reponce> getAllReponces() {\n\t\tArrayList<Reponce> listReponces = new ArrayList<Reponce>();\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\t// start a transaction\n\t\t//Transaction transaction = session.beginTransaction();\n\t\tQuery en = session.createQuery(\"FROM Reponce\", Reponce.class);\n\t\tlistReponces = (ArrayList<Reponce>) en.getResultList();\n\t\treturn listReponces;\n\t}",
"private List<PromocionConcursoAgr> listaPromocionConcursoAgr() {\r\n\t\tString select = \" select distinct(puesto_det.*) \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab \"\r\n\t\t\t\t+ \"on estado_cab.id_estado_cab = estado_det.id_estado_cab \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial cargo \"\r\n\t\t\t\t+ \"on cargo.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \" where puesto_det.id_concurso_puesto_agr is null \"\r\n\t\t\t\t+ \"and lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and lower(estado_cab.descripcion) = 'concurso' \"\r\n\t\t\t\t//+ \"and puesto_det.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t//+ \" and cargo.permanente is true\"\r\n\t\t\t\t;\r\n\r\n\t\tList<PromocionConcursoAgr> lista = new ArrayList<PromocionConcursoAgr>();\r\n\t\tlista = em.createNativeQuery(select, PromocionConcursoAgr.class)\r\n\t\t\t\t.getResultList();\r\n\r\n\t\treturn lista;\r\n\t}",
"public List<Consultor> getConsultores()\n\t{\n\t\tList<Consultor> nombres = new ArrayList<Consultor>();\n\t\tLinkedList<Consultor> tb = Consultor.findAll();\n\t\tfor(Consultor c : tb)\n\t\t{\n\t\t\tnombres.add(c);\n\t\t}\n\t\treturn nombres;\t\n\t}",
"@GetMapping(\"/payment\")\n\tpublic ResponseEntity<List<Payment>> viewAllPayments() {\n\t\tlogger.info(\"View all Payments\");\n\t\treturn ResponseEntity.ok().body(payService.viewAllPayments());\n\t}",
"@RequestMapping(value = \"/cophongs\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Cophong> getAllCophongs() {\n log.debug(\"REST request to get all Cophongs\");\n List<Cophong> cophongs = cophongRepository.findAll();\n return cophongs;\n }",
"public int getDonors()\n\t{\n\t\tint donors=0;\n\t\tString query=\"select count(distinct username) from donations\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tdonors=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn donors;\n\t}",
"@Override\n @Transactional(readOnly = true)\n public List<ProductPurchaseDTO> findAll() {\n log.debug(\"Solicitud para obtener todos ProductPurchases\");\n \n return productPurchaseMapper.productsPurchaseToProductPurchaseDTOs(productPurchaseRepository.findAll());\n }",
"public List<Courtyard> findCourtyardAll() {\n\t\tCourtyardMapper courtyardMapper = this.getSqlSession().getMapper(CourtyardMapper.class);\n\t\tList<Courtyard> courtyards = courtyardMapper.findCourtyardAll();\n\t\tSystem.out.println(\"--Into Dao Method of findCourtyardAll!!!--\");\n\t\treturn courtyards;\n\t}",
"public void getAll() {\n try {\n\n String sql = \"select * from project_zero.carlot where owner = 'DEALERSHIP';\";\n Statement st = ConnectionUtil.getInstance().getConnection().createStatement();\n ResultSet rs = st.executeQuery(sql);\n\n while(rs.next()) {\n Car c = new Car(rs.getInt(1), rs.getString(2), rs.getString(3),\n rs.getInt(4), rs.getString(5), rs.getString(6), rs.getInt(7));\n System.out.println(c.toString());\n\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n public List<Contract> getAllResContracts() {\r\n try {\r\n List<Contract> l = new ArrayList();\r\n Query q = entityManager.createQuery(\"SELECT c FROM Contract c WHERE c.shop.shopType='Restaurant'\");\r\n return q.getResultList();\r\n } catch(Exception ex) {\r\n return null;\r\n }\r\n }",
"@GetMapping(\"/tema/{id}/comentarios\")\n public Iterable<Comentario> findAllComentarios(@PathVariable(\"id\") Long id) {\n return repository.findById(id).get().getComentarios();\n }",
"@Override\n public List<Cours> afficherTousLesCours() {\n return coursRepo.findAll();\n }",
"List<CurrencyDTO> getCurrencies();",
"java.util.List<hr.client.appuser.CouponCenter.AppCoupon> \n getCouponListList();",
"public List<Contract> getCleaningContracts(){\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(\"SELECT * FROM CONTRACT WHERE SERVICETYPE=2 AND\"\n\t\t\t\t\t+ \"(DATEENDING >= NOW() OR DATEENDING IS NULL)\", new ContractRowMapper());\n\t\t}catch (EmptyResultDataAccessException e){\n\t\t\treturn new ArrayList<Contract>();\n\t\t}\n\t}",
"public List<Compte> findAll() {\n\t\treturn dao.findAll();\n\t}",
"@GetMapping(\"/getallCommande_Fournisseur\")\n\tprivate List<Commande_Fournisseur> getAllCommandes()\n\t{\n\t\tSystem.out.println(\"get all commandes frournisseur\");\n\t\treturn commande_FournisseurController.findAll();\n\t}",
"List<Curso> obtenerCursos();",
"public ArrayList<Donateur> getListeDonateurs() {\n\t\treturn listeDonateurs;\n\t}",
"@Transactional\n public List<CourseDTO> findAll() {\n List<CourseDTO> courseList = new ArrayList<>();\n Iterable<Course> courseIter = courseDAO.findAll();\n for (Course course : courseIter) {\n CourseDTO courseDTO = courseMapper.mapFromCoursetoCourseDTO(course);\n courseList.add(courseDTO);\n }\n return courseList;\n }",
"public List <reclamation> findall(){\n\t\tList<reclamation> a = reclamationRepository.findAll();\n\t\t\n\t\tfor(reclamation reclamations : a)\n\t\t{\n\t\t\tL.info(\"reclamations :\"+ reclamations);\n\t\t\t\n\t\t}\n\t\treturn a;\n\t\t}",
"public List<Prescription> getPrescriptions(){\n return prescriptionRepository.findAll();\n }",
"public ObjectList getList(){\n return payroll;\n }",
"@Override\n\tpublic List<item> findAll() {\n\t\treturn donkyClientFeign.lista().stream().map(p -> new item(p,1)).collect(Collectors.toList());\n\t}",
"@Override\n @Transactional(readOnly = true)\n public List<CollegeDTO> findAll() {\n log.debug(\"Request to get all Colleges\");\n return collegeRepository.findAll().stream()\n .map(collegeMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"public List<com.vjshop.entity.TDeliveryCorp> fetchByName(String... values) {\n return fetch(TDeliveryCorp.T_DELIVERY_CORP.NAME, values);\n }",
"@TransactionAttribute(TransactionAttributeType.SUPPORTS)\r\n\t\tpublic List<DatosGrlsProyectoDO> getAllAll() throws ConectelException {\r\n\t\t\tTypedQuery<DatosGrlsProyectoDO> query = entityManager.createNamedQuery(\r\n\t\t\t\t\t\"DatosGrlsProyectoDO.findAllAll\", DatosGrlsProyectoDO.class);\r\n\t\t\tList<DatosGrlsProyectoDO> dataProjectList;\r\n\t\t\ttry {\r\n\t\t\t\tdataProjectList = query.getResultList();\r\n\t\t\t} catch(NoResultException e) {\r\n\t\t\t\tthrow new ConectelException(\"No existen Datos Generales registrados.\");\r\n\t\t\t}\r\n\t\t\treturn dataProjectList;\r\n\t\t}",
"List<InvoiceDTO> fetchAll();",
"@Override\r\n public List<QuestaoDiscursiva> consultarTodosQuestaoDiscursiva()\r\n throws Exception {\n return rnQuestaoDiscursiva.consultarTodos();\r\n }",
"@Override\n @Transactional(readOnly = true)\n public List<Goods> findAll() {\n log.debug(\"Request to get all Goods\");\n return goodsRepository.findAll();\n }",
"@Generated\n public List<Comentario> getComentario() {\n if (comentario == null) {\n __throwIfDetached();\n ComentarioDao targetDao = daoSession.getComentarioDao();\n List<Comentario> comentarioNew = targetDao._queryUsuarios_Comentario(id);\n synchronized (this) {\n if(comentario == null) {\n comentario = comentarioNew;\n }\n }\n }\n return comentario;\n }",
"@Transactional(readOnly = true)\n public List<TechPracticesDTO> findAll() {\n log.debug(\"Request to get all TechPractices\");\n return techPracticesRepository.findAll().stream()\n .map(techPracticesMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"public List<ColaTicket> obtenerTodasLasColas() {\n return this.colaFacade.findAll();\n }",
"List<BusinessRepayment> selectAll();",
"@Override\n\tpublic List<Proyecto> listarProyectos() {\n\t\treturn proyectoRepo.findAll();\n\t}",
"public List<com.vjshop.entity.TDeliveryCorp> fetchByUrl(String... values) {\n return fetch(TDeliveryCorp.T_DELIVERY_CORP.URL, values);\n }",
"@Override\r\n\tpublic Iterable<Candidat> findAll() {\n\t\treturn null;\r\n\t}",
"private void getConsentimientoChik(){\n mConsentimientoChiks = estudioAdapter.getListaConsentimientoChikSinEnviar();\n //ca.close();\n }",
"List<Cart> getAllCarts();"
] | [
"0.6023599",
"0.599073",
"0.59697956",
"0.59367186",
"0.5731825",
"0.5623394",
"0.55743515",
"0.5474839",
"0.5446769",
"0.54259896",
"0.5422626",
"0.54129654",
"0.5348667",
"0.5340755",
"0.5291262",
"0.5282187",
"0.5264026",
"0.52607375",
"0.52547413",
"0.52234185",
"0.52196896",
"0.52184707",
"0.52140206",
"0.5210675",
"0.5206863",
"0.52004737",
"0.5199539",
"0.5184807",
"0.5181536",
"0.51743406",
"0.517167",
"0.51573163",
"0.5140953",
"0.51247966",
"0.5123311",
"0.51128376",
"0.5107134",
"0.50768614",
"0.50736135",
"0.50708216",
"0.5057019",
"0.50538045",
"0.50418293",
"0.5039489",
"0.5037293",
"0.50325",
"0.50299287",
"0.5027667",
"0.5026246",
"0.50246495",
"0.50215834",
"0.5018858",
"0.5018182",
"0.5015624",
"0.4999194",
"0.49844947",
"0.49809557",
"0.4971804",
"0.49685848",
"0.49642214",
"0.4956783",
"0.49565375",
"0.49538973",
"0.49507856",
"0.49476087",
"0.49469492",
"0.49361762",
"0.4935541",
"0.49255967",
"0.49194363",
"0.49186373",
"0.49124932",
"0.49123985",
"0.491152",
"0.49103063",
"0.49060154",
"0.4902345",
"0.48981586",
"0.4896537",
"0.48962578",
"0.48927528",
"0.4887539",
"0.48873594",
"0.48855102",
"0.4880529",
"0.48711753",
"0.48661393",
"0.48653856",
"0.4864087",
"0.48602495",
"0.4853659",
"0.48521456",
"0.48512667",
"0.48511702",
"0.48484924",
"0.4839777",
"0.4839581",
"0.4838989",
"0.48329532",
"0.48298717"
] | 0.7671003 | 0 |
Get all coopvault donations in the month and year specified | public Map listDonationsByMonth(int month, Integer year) throws IOException
{
Map.Entry[] entries = new Map.Entry[year == null ? 1 : 2];
entries[0] = new AbstractMap.SimpleEntry<>("month", month);
if (year != null)
{
entries[1] = new AbstractMap.SimpleEntry<>("year", year);
}
return request(POST, coOpVault(), entries);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDonations()\n\t{\n\t\tint donations=0;\n\t\tString query=\"select count(*) from donations where month(donation_date)=month(curdate())\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tdonations=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn donations;\n\t}",
"public Map listAllDonations() throws IOException\n\t{\n\t\treturn request(GET, coOpVault());\n\t}",
"List<Admission> getAdmissionsPerMonth(int month);",
"@Override\n\tpublic double calcGrossPay(int month, int year) {\n\t\tdouble sum=0;\n\t\tmonth--;\n\t\tfor (Order order:orderList)\n\t\t{\n\t\t\tDate date=order.orderDate;\n\t\t\tif (date.getYear()==year && date.getMonth()==month)\n\t\t\t\tsum+=order.orderAmount;\n\t\t}\n\t\treturn baseSalary+commission*sum;\n\t}",
"@Override\n public float calDonation(int year) {\n if(this.getDate().getYear() == year){\n return this.getAmount();\n }\n return 0;\n }",
"List<Doctor> getAvailableDoctors(java.util.Date date, String slot) throws CliniqueException;",
"public List<Factura> getFacturasByMonthandYear(int month, int year){\n return facturaFacade.getFacturaByMonthandYear(month, year);\n }",
"public double[] getPriceStats(String year){\n for (int i = 0; i < priceMonthCounter.length; i++) priceMonthCounter[i]=0;\n \n for (TransferImpl movement : MovementsController.getInstanceOf().getMovements()) {\n \t// Convert the util.Date to LocalDate\n \tLocalDate date = movement.getLeavingDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n\t\t// Filter movements by year\n \t// Filter movements by year\n\t if(date.getYear()==Integer.parseInt(year)){\n\t \tint month = date.getMonthValue() - 1; \n\t \n\t \tswitch (movement.getType().toLowerCase()) {\n\t \tcase \"return\":\n\t \t\tintMonthCounter[month]-=movement.getTotalPrice(); // Increment the month according to the number of movements\n\t \t\tbreak;\n\t \tcase \"sold\":\n\t \t\tintMonthCounter[month]+=movement.getTotalPrice(); // Increment the month according to the number of movements\n\t \t\tbreak;\n\t \t}\n\t }\n\t \n\t for(int i=0; i<priceMonthCounter.length;i++) \n\t \tpriceMonthCounter[i] = Double.parseDouble(this.convertPriceToString(intMonthCounter[i]));\n }\n \n return priceMonthCounter;\n\t}",
"List<Appointment> getAppointmentOfNMonth(int month);",
"public List<PaymentRequestDocument> getPaymentRequestsToExtract(boolean onlySpecialPayments, String chartCode, Date onOrBeforePaymentRequestPayDate);",
"private List<MonthlyRecord> getMonthly(int year, String type) throws SQLException {\n\t\tLocalDate from = LocalDate.ofYearDay(year, 1);\n\t\tLocalDate to = LocalDate.ofYearDay(year, from.lengthOfYear());\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\n\t\t\t\t\"SELECT month(Date) as Month, sum(Amount) from transaction\\n\" + \n\t\t\t\t\"WHERE Date between ? and ?\\n\" + \n\t\t\t\t\"and type = ?\\n\" + \n\t\t\t\t\"group by Month\")) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\tstatement.setString(3, type);\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<MonthlyRecord> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tlist.add(new MonthlyRecord(resultSet.getDouble(2), Month.of(resultSet.getInt(1))));\t\t\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}",
"public static double[] buildPayments (double postTaxIncome) {\n\n\t\t// Monthly credict card payment array\n\t\tdouble monthlyCreditCardPayments [] = new double[12];\n\n\t\t// for loop to populate payment array\n\t\tfor (int i = 0; i < monthlyCreditCardPayments.length; i++) {\n\t\t\t\n\t\t\t// Every month use 10% of post-tax income to pay off credit card\n\t\t\tmonthlyCreditCardPayments[i] += postTaxIncome * 0.10;\n\n\t\t\t// In the month of December\n\t\t\tif (i == 11) {\n\n\t\t\t\t// Use gift from family (holiday) towards paying of credit card \n\t\t\t\tmonthlyCreditCardPayments[i] += 150;\n\t\t\t}\n\n\t\t\tif (i == 8) {\n\t\t\t\t\n\t\t\t\t// Use gift from family (university) towards paying of credit card \n\t\t\t\tmonthlyCreditCardPayments[i] += 200;\n\t\t\t}\n\n\t\t}\n\n\t\treturn monthlyCreditCardPayments;\n\n\t}",
"@Override\n public List<ExpenceSummary> getReportsForMonth(String owner,int year, int month) {\n\n AggregationResults<ExpenceSummary> results = operations.aggregate(newAggregation(Expence.class, //\n match(where(\"owner\").is(owner))\n // .andOperator(where(\"date\").lte(LocalDateTime.now())\n //.andOperator(where(\"year(date)\").is(year)\n // .andOperator(where(\"date\").regex(\"2016\")\n // .andOperator(where(\"owner\").is(\"admin\")))\n , //\n // unwind(\"items\"), //\n // project(\"id\", \"customerId\", \"items\") //\n // .andExpression(\"'$items.price' * '$items.quantity'\").as(\"lineTotal\"), //\n project()\n .andExpression(\"type\").as(\"type\")\n .andExpression(\"year(date)\").as(\"year\")\n .andExpression(\"month(date)\").as(\"month\")\n .andExpression(\"amount\").as(\"amount\")\n ,\n match(where(\"year\").is(year)\n .andOperator(where(\"month\").is(month))\n )\n // .andOperator(where(\"date\").lte(LocalDateTime.now())\n //.andOperator(where(\"year(date)\").is(year)\n ,\n group(\"type\",\"year\",\"month\")\n\n // .addToSet(\"type\").as(\"type\")//, //\n // .addToSet(\"year\").as(\"year\")//, //\n // .addToSet(\"month\").as(\"month\")//, //\n .sum(\"amount\").as(\"totalAmount\") //\n .count().as(\"count\")\n // project(\"id\", \"items\", \"netAmount\") //\n // .and(\"orderId\").previousOperation() //\n // .andExpression(\"netAmount * [0]\", 1).as(\"taxAmount\") //\n // .andExpression(\"netAmount * (1 + [0])\", 1).as(\"totalAmount\") //\n ), Expence.class,ExpenceSummary.class);\n logger.info(\"getReportsForMonth results.size=\"+results.getMappedResults().size());\n return results.getMappedResults();\n }",
"List<SalesConciliation> getSalesConciliation(Company company, Date startDate, Date endDate) throws Exception;",
"CompletableFuture<BonusCustomer> findByCard(int cardNumber, int goodThruMonth, int goodThruYear);",
"public java.lang.String CC_GetCompletedJobsInMonth(java.lang.String accessToken, java.lang.String CCCode, java.util.Calendar yearMonth) throws java.rmi.RemoteException;",
"@Query(value = \"select * from patent_details order by year asc;\", nativeQuery = true)\n public Iterable<PatentDetails> findYearwisePatentDetails();",
"@Override\n public List<ReviewBaseline> getNonGreenProjectsForQuarter(String months, String years) {\n\n return reviewBaselineRepository.getNonGreenProjectsForQuarter(months, years);\n }",
"ImmutableList<SchemaOrgType> getCopyrightYearList();",
"public List<OutwardDTO> getOutwardReport(String type,String month,String year);",
"@Override\r\n\tpublic int[] getMonthPeople() {\n\t\tint[] result = new int[12];\r\n\t\tDate date = DateUtil.getCurrentDate();\r\n\t\tDate dateStart = DateUtil.getFirstDay(date);\r\n\t\tDate dateEnd = DateUtil.getLastDay(date);\r\n\t\tresult[0] = cinemaConditionDao.getCount(dateStart, dateEnd);\r\n\t\tfor(int i=0;i<11;i++){\r\n\t\t\tdate = DateUtil.getMonthBefroe(dateStart);\r\n\t\t\tdateStart = DateUtil.getFirstDay(date);\r\n\t\t\tdateEnd = DateUtil.getLastDay(date);\r\n\t\t\tresult[i+1] = cinemaConditionDao.getCount(dateStart, dateEnd);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public Payment(int year, int month, int electro_start, int electro_end, int water_start, int water_end) {\n if (month >= 0 & month < 13) {\n this.year = year;\n this.month = month;\n this.electro_start = electro_start;\n this.electro_end = electro_end;\n this.water_start = water_start;\n this.water_end = water_end;\n name = year + \".\" + month + \" (\" + MONTHS[month] + \")\";\n } else {\n throw new ArrayIndexOutOfBoundsException(\"Wrong number of month - Неправильный номер месяца\");\n }\n\n }",
"public List<PieChartSector> getPieChart(int year, Month month) throws SQLException {\n\t\tLocalDate from = LocalDate.of(year, month, 1);\n\t\tLocalDate to = LocalDate.of(year, month, month.length(from.isLeapYear()));\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\n\t\t\t\t\"SELECT Category, sum(Amount) / data.total from transaction\\n\" + \n\t\t\t\t\"CROSS JOIN (\\n\" + \n\t\t\t\t\" SELECT sum(Amount) as total from transaction \\n\" + \n\t\t\t\t\" WHERE DATE between ? and ?\\n\" + \n\t\t\t\t\" and type = 'Expense'\\n\" + \n\t\t\t\t\") data\\n\" + \n\t\t\t\t\"WHERE DATE between ? and ?\\n\" + \n\t\t\t\t\"and type = 'Expense'\\n\" + \n\t\t\t\t\"GROUP BY Category, data.total;\")) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\tstatement.setDate(3, Date.valueOf(from));\n\t\t\tstatement.setDate(4, Date.valueOf(to));\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<PieChartSector> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\t\t\t\n\t\t\t\t\tlist.add(new PieChartSector(resultSet.getString(1), resultSet.getDouble(2)));\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}",
"public List<MonthlyRecord> getMonthlyNetIncome(int year) throws SQLException {\n\t\tLocalDate from = LocalDate.ofYearDay(year, 1);\n\t\tLocalDate to = LocalDate.ofYearDay(year, from.lengthOfYear());\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\t\t\t\t\n\t\t\t\t\"SELECT data.Month, data.Income - data.Expense as NetIncome\\n\" +\n\t\t\t\t\"FROM (\\n\" +\n\t\t\t\t\t\" SELECT month(Date) as Month,\\n\" +\n\t\t\t\t\t\" sum(IF(transaction.Type = 'Income', transaction.Amount,0)) as Income,\\n\" +\n\t\t\t\t\t\"\t\tsum(IF(transaction.Type = 'Expense', transaction.Amount,0)) as Expense\\n\" +\n\t\t\t\t\t\" FROM transaction\\n\" +\n\t\t\t\t\t\" WHERE Date between ? and ?\\n\" +\n\t\t\t\t\t\" GROUP BY Month\\n\" +\n\t\t\t\t\") data\")) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<MonthlyRecord> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tlist.add(new MonthlyRecord(resultSet.getDouble(2), Month.of(resultSet.getInt(1))));\t\t\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}",
"public Cursor getPemasukanFromMonthYear(String month, String year) {\n\t\tSQLiteDatabase db = dbAdapter.getReadableDatabase();\n\t\tString query = \"SELECT * \" +\n\t\t\t\t\"FROM Pemasukan \" +\n\t\t\t\t\"WHERE strftime('%m', tanggal) = '\"+month+\"' and \" +\n\t\t\t\t\"strftime('%Y', tanggal) = '\"+year+\"' \" +\n\t\t\t\t\"order by strftime('%d', tanggal) desc\";\n\t\t//Log.d(\"query\", query);\n\t\tCursor cursor = db.rawQuery(query, null);\t\t\t\n\t\treturn cursor;\n\t}",
"@Override\n\tpublic List<BookVO> monthList() {\n\t\tList<BookVO> monthList =bookDAO.monthList();\n\t\treturn monthList;\n\t}",
"Set<Crate> getCrates();",
"@Override\r\n\tpublic int[] getMonthPeopleStatistic(int year, int month) {\n\t\tint[] result = new int[31];\r\n\t\tDate date = DateUtil.getDateByYearAndMonth(year, month);\r\n\t\tDate dateStart = DateUtil.getFirstDay(date);\r\n\t\tfor(int i=0;i<31;++i){\r\n\t\t\tresult[i] = cinemaConditionDao.getCount(dateStart, dateStart);\r\n\t\t\tdateStart = DateUtil.getDayLater(dateStart);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public static List getAllYears() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT godiste FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n int naziv = result.getInt(\"godiste\");\n polovniautomobili.add(naziv);\n\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }",
"public static List<Order> viewsalesbymonth() {\n\t\tList<Order> monthly_sales = new ArrayList<Order>();\n\n\t\ttry {\n\t\t\tconnect = ConnectionManager.getConnection();\n\t\t\tps = connect.prepareStatement(\n\t\t\t\t\t\"SELECT MONTHNAME(order_date) AS month_name, COUNT(MONTHNAME(order_date)) AS total FROM orders WHERE YEAR(order_date) = YEAR(CURRENT_DATE) GROUP BY MONTHNAME(order_date) ORDER BY MONTH(order_date)\");\n\t\t\tResultSet rs = ps.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tOrder order_month_current = new Order();\n\t\t\t\torder_month_current.setOrderMonth(rs.getString(\"month_name\"));\n\t\t\t\torder_month_current.setTotalByMonth(rs.getInt(\"total\"));\n\n\t\t\t\tmonthly_sales.add(order_month_current);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn monthly_sales;\n\t}",
"List<MonthlyExpenses> lastMonthExpenses();",
"public Cursor getPemasukanFromMonthYear2(String month, String year) {\n\t\tSQLiteDatabase db = dbAdapter.getReadableDatabase();\n\t\tString query = \"SELECT * \" +\n\t\t\t\t\"FROM Pemasukan, Kategori \" +\n\t\t\t\t\"WHERE strftime('%m', tanggal) = '\"+month+\"' and \" +\n\t\t\t\t\"strftime('%Y', tanggal) = '\"+year+\"' and \" +\n\t\t\t\t\"Pemasukan.id_kategori = Kategori.id_kategori \" +\n\t\t\t\t\"order by Kategori.nama\";\n\t\t//Log.d(\"query\", query);\n\t\tCursor cursor = db.rawQuery(query, null);\t\t\t\n\t\treturn cursor;\n\t}",
"int calDateMonth(int mC,int yC,int mG,int yG){//(current-month, current-year, goal-month, goal-year)\n int x = 0,i,countM=0;\n if(yC<=yG){\n for(i = yC; i < yG; i++)\n countM += 12;\n }\n\n countM -= mC;\n countM += mG;\n return (countM);\n }",
"public java.lang.String CC_GetAllBreakdownJobs(java.lang.String accessToken, java.lang.String CCCode, java.lang.String provCode, java.util.Calendar startYearMonth, java.util.Calendar endYearMonth) throws java.rmi.RemoteException;",
"private List<DailyRecord> getDaily(int year, Month month, String type) throws SQLException {\n\t\tLocalDate from = LocalDate.of(year, month, 1);\n\t\tLocalDate to = LocalDate.of(year, month, month.length(from.isLeapYear()));\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\"select date, sum(Amount) from transaction where date between ? and ? and type=? group by date\" )) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\tstatement.setString(3, type);\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<DailyRecord> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tLocalDate resultDate = resultSet.getDate(1).toLocalDate();\n\t\t\t\t\tint day = resultDate.getDayOfMonth();\n\t\t\t\t\tDayOfWeek weekDay = resultDate.getDayOfWeek();\n\t\t\t\t\tdouble amount = resultSet.getDouble(2);\t\t\t\t\t\n\t\t\t\t\tlist.add(new DailyRecord(amount, day, weekDay));\t\t\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}",
"List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);",
"MnMscQos selectByPrimaryKey(Integer month, String mscid, Integer year);",
"public List<DailyRecord> getDailyNetIncome(int year, Month month) throws SQLException {\n\t\tLocalDate from = LocalDate.of(year, month, 1);\n\t\tLocalDate to = LocalDate.of(year, month, month.length(from.isLeapYear()));\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\n\t\t\t\t\"SELECT data.Date, data.Income - data.Expense as NetIncome\\n\" +\n\t\t\t\t\"FROM (\\n\" +\n\t\t\t\t\" SELECT transaction.Date as Date,\\n\" +\n\t\t\t\t\" sum(IF(transaction.Type = 'Income', transaction.Amount,0)) as Income,\\n\" +\n\t\t\t\t\"\t\tsum(IF(transaction.Type = 'Expense', transaction.Amount,0)) as Expense\\n\" +\n\t\t\t\t\" FROM transaction\\n\" +\n\t\t\t\t\" WHERE Date between ? and ?\\n\" +\n\t\t\t\t\" GROUP BY transaction.Date\\n\" +\n\t\t\t\t\") data\")) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<DailyRecord> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tLocalDate resultDate = resultSet.getDate(1).toLocalDate();\n\t\t\t\t\tint day = resultDate.getDayOfMonth();\n\t\t\t\t\tDayOfWeek weekDay = resultDate.getDayOfWeek();\n\t\t\t\t\tdouble amount = resultSet.getDouble(2);\t\t\t\t\t\n\t\t\t\t\tlist.add(new DailyRecord(amount, day, weekDay));\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}",
"public void setPeriod(int periodInYears) {\nnumberOfPayments = periodInYears * MONTHS;\n}",
"public Collection<Payment> getPayments(CustomerItem customerItem);",
"public List<Map<String, Object>> getSubscriptionsDueForBilling();",
"public static void monthlyPayment()\n\t{\n\t\tSystem.out.println(\"enter principal loan amount, years , and rate of interest\");\n\t\tfloat principal = scanner.nextFloat();\n\t\tfloat years = scanner.nextFloat();\n\t\tfloat rate = scanner.nextFloat();\n\t\t\n\t\tfloat n = 12 * years;\n\t\tfloat r = rate / (12*100);\n\t\tdouble x = Math.pow(1+rate,(-n));\t\n\t\t\n\t\tdouble payment = (principal*r) / (1-x);\n\t\tSystem.out.println(\"monthly payment is: \" + payment);\n\t}",
"public List<InvoiceDocument> getInvoicesToExtract(boolean onlySpecialPayments, String chartCode, Date onOrBeforeInvoicePayDate) {\n LOG.debug(\"getInvoicesToExtract() started\");\n\n Criteria criteria = new Criteria();\n if (chartCode != null) {\n criteria.addEqualTo(\"processingCampusCode\", chartCode);\n }\n //criteria.addIn(PurapPropertyConstants.STATUS_CODE, Arrays.asList(InvoiceStatuses.STATUSES_ALLOWED_FOR_EXTRACTION));\n criteria.addIsNull(\"extractedTimestamp\");\n criteria.addEqualTo(\"holdIndicator\", Boolean.FALSE);\n\n if (onlySpecialPayments) {\n Criteria a = new Criteria();\n\n Criteria c1 = new Criteria();\n c1.addNotNull(\"specialHandlingInstructionLine1Text\");\n Criteria c2 = new Criteria();\n c2.addNotNull(\"specialHandlingInstructionLine2Text\");\n Criteria c3 = new Criteria();\n c3.addNotNull(\"specialHandlingInstructionLine3Text\");\n Criteria c4 = new Criteria();\n c4.addEqualTo(\"paymentAttachmentIndicator\", Boolean.TRUE);\n\n c1.addOrCriteria(c2);\n c1.addOrCriteria(c3);\n c1.addOrCriteria(c4);\n\n a.addAndCriteria(c1);\n a.addLessOrEqualThan(\"invoicePayDate\", onOrBeforeInvoicePayDate);\n\n Criteria c5 = new Criteria();\n c5.addEqualTo(\"immediatePaymentIndicator\", Boolean.TRUE);\n c5.addOrCriteria(a);\n\n criteria.addAndCriteria(a);\n } else {\n Criteria c1 = new Criteria();\n c1.addLessOrEqualThan(\"invoicePayDate\", onOrBeforeInvoicePayDate);\n\n Criteria c2 = new Criteria();\n c2.addEqualTo(\"immediatePaymentIndicator\", Boolean.TRUE);\n\n c1.addOrCriteria(c2);\n criteria.addAndCriteria(c1);\n }\n\n return (List<InvoiceDocument>) getPersistenceBrokerTemplate().getCollectionByQuery(new QueryByCriteria(InvoiceDocument.class, criteria));\n }",
"public Collection<Coupon> getCouponByDate(Date date) throws DbException;",
"public List getCalendarios(Map criteria);",
"List getCompanies(OwnCodes ownCodes) throws PopulateDataException;",
"@Transactional\n public Map<Long, ArrayList<News>> getCalNewsForMonth(int month, int year) {\n return calendarDAO.getCalNewsForMonth(month, year);\n }",
"public Collection<PaymentRequestDocument> getPaymentRequestsToExtractForVendor(String campusCode, VendorGroupingHelper vendor, Date onOrBeforePaymentRequestPayDate);",
"public static void main(String[] args) {\n\n\t\tLocalDate current =LocalDate.now();\n\tLocalDate ld =\tLocalDate.of(1989, 11, 30);\n\t\t\n\tPeriod pd =\tPeriod.between(current, ld);\n\tSystem.out.println(pd.getYears());\n\t}",
"public List<DailyRecord> getDailyIncome(int year, Month month) throws SQLException {\n\t\treturn getDaily(year, month, \"Income\");\n\t}",
"public List<SermCit> getCits(){\n return citations;\n }",
"public List<Company> findAllCompany(int offset, int range);",
"public List<Donor> getAllDonors() {\n List<Donor> donorList = new ArrayList<Donor>();\n // Select All Query\n String selectQuery = \"SELECT * FROM \" + TABLE_CONTACTS;\n\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (cursor.moveToFirst()) {\n do {\n Donor donor = new Donor();\n donor.setName(cursor.getString(0));\n donor.setContuctNumber(cursor.getString(1));\n donor.setCity(cursor.getString(2));\n donor.setBloodGroup(cursor.getString(3));\n donor.setLat(cursor.getString(4));\n donor.setLan(cursor.getString(5));\n // Adding contact to list\n donorList.add(donor);\n } while (cursor.moveToNext());\n }\n\n // return contact list\n return donorList;\n }",
"public List getCreditCards(int donorID) {\n List creditCardList = new LinkedList();\n for (Object creditCardObject : creditCardNumbers) {\n CreditCard creditCard = (CreditCard) creditCardObject;\n if (creditCard.getDonorId()==(donorID)) {\n creditCardList.add(creditCard);\n }\n }\n return creditCardList;\n }",
"public List<Refinery> getRefineries(int year);",
"int getExpMonth(String bookingRef);",
"@Override\r\n\tpublic Map<String, Integer[]> getMonthMoneyStatistic(int year, int month) {\n\t\treturn null;\r\n\t}",
"public List<CurriculumVO> getAllCurriculum();",
"public List<MonthlyRecord> getMonthlyExpense(int year) throws SQLException {\n\t\treturn getMonthly(year, \"Expense\");\n\t}",
"public List<MonthlyRecord> getMonthlyIncome(int year) throws SQLException {\n\t\treturn getMonthly(year, \"Income\");\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic Object[] findBillingByInvoiceAndDate(String invoice, Date trxDate,\n\t\t\tObject[] mt940Data) {\n\t\tString sql = \"select \"\n\t\t\t\t\t+\"inv.invoice_number, \"\n\t\t\t\t\t+\"reg.id_registrant, \"\n\t\t\t\t\t+\"DATE_FORMAT(pay.due_date, '%d/%c/%Y %H:%i:%k'), \"\n\t\t\t\t\t+\"DATE_FORMAT(pay.payment_date, '%d/%c/%Y %H:%i:%k'), \"\n\t\t\t\t\t+\"nama_registrant, \"\n\t\t\t\t\t+\"inv.amount \"\n\t\t\t\t\t+\"from \"\n\t\t\t\t\t+\"invoices inv join payments pay on \"\n\t\t\t\t\t+\"inv.id_invoice = pay.id_invoice \"\n\t\t\t\t\t+\"join registrants reg \"\n\t\t\t\t\t+\"on pay.id_registrant = reg.id_registrant \"\n\t\t\t\t\t+\"where inv.invoice_number = :invoice \"\n\t\t\t\t\t+\"and pay.payment_date is not null \"; \n\t\t\n\t\tQuery query = getSessionFactory().getCurrentSession().createSQLQuery(sql);\n\t\tquery.setParameter(\"invoice\", invoice);\n\t\t\t\n\t\tObject obj = new Object();\n\t\tObject[] objectArray = null;\n\t\t\n\t\tList<Object> result = query.list();\n\t\tif (result.size()>0) {\n\t\t\tobj = result.get(0);\n\t\t\tobjectArray = (Object[]) obj;\n\t\t}\n\t\treturn objectArray;\n\t}",
"private void getReConsentimiento2015(){\n mReconsentimientos2015 = estudioAdapter.getListaReConsentimientoDen2015sSinEnviar();\n //ca.close();\n }",
"@Test()\n public void testGetForecastPerMonthWithYearly() {\n\tYearMonth yearMonth = YearMonth.of(2016, 8);\n\tdouble forecast = expenseManager.getForecastPerMonth(yearMonth);\n\tassertEquals(3795.75, forecast, 0.01);\n }",
"public ResultSet getAppointmentsByMonth() throws SQLException {\r\n String statement = \"SELECT MONTH(Start) AS Month, COUNT(Title) as Amount FROM appointments GROUP BY Month\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }",
"public List<String> getMonthsList(){\n Calendar now = Calendar.getInstance();\n int year = now.get(Calendar.YEAR);\n\n String months[] = {\"JANUARY\", \"FEBRUARY\", \"MARCH\", \"APRIL\",\n \"MAY\", \"JUNE\", \"JULY\", \"AUGUST\", \"SEPTEMBER\",\n \"OCTOBER\", \"NOVEMBER\", \"DECEMBER\"};\n\n List<String> mList = new ArrayList<>();\n\n //3 months of previous year to view the attendances\n for(int i=9; i<months.length; i++){\n mList.add(months[i]+\" \"+(year-1));\n }\n\n //Months of Current Year\n for(int i=0; i<=(now.get(Calendar.MONTH)); i++){\n mList.add(months[i]+\" \"+year);\n }\n\n return mList;\n }",
"public List<RecepcionSero> getAllSerologias()throws Exception{\n Session session = sessionFactory.getCurrentSession();\n Date date = new Date();\n Calendar calendar = new GregorianCalendar();\n calendar.setTime(date);\n int year = calendar.get(Calendar.YEAR);\n Integer a = year;\n Query query = session.createQuery(\"from RecepcionSero s where year(s.fecreg) =:a order by s.fecreg desc\");\n query.setParameter(\"a\",a);\n return query.list();\n }",
"public List<Integer> getByMonth() {\n\t\treturn byMonth;\n\t}",
"public List<String> getMonthList() {\n\t\treturn stateEqualMasterDao.getElementValueList(\"Month_Of_a_Year\");\n\t}",
"@LogExceptions\n public synchronized List<Integer> getRegisteredDays\n (String month, String year) throws SQLException \n {\n Connection conn = DatabaseConnection.getConnection();\n try(PreparedStatement stmt = \n conn.prepareStatement(SELECT_EVENT_MONTH_YEAR))\n {\n stmt.setString(1, month);\n stmt.setString(2, year); \n dayList.clear();\n try(ResultSet rs = stmt.executeQuery()) {\n while(rs.next()) {\n dayList.add(rs.getInt(8));\n }\n }\n \n } \n return dayList;\n }",
"public void ListarVehiculosCiatCasaCiat() throws GWorkException {\r\n\t\ttry {\r\n\t\t\tDate dtFechaInicio;\r\n\t\t\tDate dtFechaFin;\r\n\t\t\tLong idPeriodo = 1L;\r\n\r\n\t\t\tdtFechaInicio = ManipulacionFechas\r\n\t\t\t\t\t.getMesAnterior(ManipulacionFechas.getFechaActual());\r\n\r\n\t\t\t// Integer mes = Integer.valueOf(ManipulacionFechas\r\n\t\t\t// .getMes(ManipulacionFechas.getFechaActual()));\r\n\t\t\tCalendar calendario = Calendar.getInstance();\r\n\r\n\t\t\tcalendario.setTime(dtFechaInicio);\r\n\t\t\tcalendario.set(Calendar.DAY_OF_MONTH, 5);\r\n\t\t\t// calendario.set(Calendar.MONTH, mes - 2);\r\n\r\n\t\t\tdtFechaInicio = calendario.getTime();\r\n\r\n\t\t\tdtFechaFin = ManipulacionFechas.getFechaActual();\r\n\t\t\tcalendario.setTime(dtFechaFin);\r\n\t\t\tcalendario.set(Calendar.DAY_OF_MONTH, 4);\r\n\r\n\t\t\tdtFechaFin = calendario.getTime();\r\n\r\n\t\t\tList<BillingAccountVO> vehiculos = listVehiclesFlatFileCiatCasaCiat(\r\n\t\t\t\t\tdtFechaInicio, dtFechaFin);\r\n\r\n\t\t\tReporteCobroCiatCasaCiat(vehiculos, idPeriodo);\r\n\t\t\tEntityManagerHelper.getEntityManager().getTransaction().begin();\r\n\t\t\tEntityManagerHelper.getEntityManager().getTransaction().commit();\r\n\t\t} catch (RuntimeException re) {\r\n\t\t\tlog.error(\"ListarVehiculosCiatCasaCiat\",re);\r\n\t\t\tthrow new GworkRuntimeException(\"[INFO] - \" + re.getMessage(), re);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.error(\"ListarVehiculosCiatCasaCiat\",e);\r\n\t\t\tthrow new GWorkException(\r\n\t\t\t\t\t\"No se pudo generar el comprobante [ERROR] - \"\r\n\t\t\t\t\t\t\t+ e.getMessage(), e);\r\n\r\n\t\t}\r\n\t}",
"private List<Book> getNtBooks() {\n List <Book> books = new ArrayList<>();\n switch (calendar.getYear() % 4) {\n case 0:\n books.add(new Book(\"Matthew\", 28));\n break;\n\n case 1:\n books.add(new Book(\"Mark\", 16));\n break;\n\n case 2:\n books.add(new Book(\"Luke\", 24));\n\n break;\n\n case 3:\n books.add(new Book(\"John\", 21));\n\n break;\n }\n // Gospels\n return books;\n }",
"@GetMapping(\"/api/getByYear\")\n\tpublic int[] getProjectByYear()\n\t{\n\t\treturn this.integrationClient.getProjectByYear();\n\t}",
"public List<Integer> getDonors() {\n return donors;\n }",
"public List<DailyRecord> getDailyExpense(int year, Month month) throws SQLException {\n\t\treturn getDaily(year, month, \"Expense\");\n\t}",
"public static List<Company> createCompanies() {\r\n\t\tList<Company> companies = new ArrayList<Company>();\r\n\t\tcompanies.add(createCompany(1, \"Pepcus\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help1\"));\r\n\t\tcompanies.add(createCompany(2, \"Google\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help2\"));\r\n\t\tcompanies.add(createCompany(3, \"Facebook\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help3\"));\r\n\t\tcompanies.add(createCompany(4, \"Suzuki\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help4\"));\r\n\t\tcompanies.add(createCompany(5, \"General Motors\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help5\"));\r\n\t\tcompanies.add(createCompany(6, \"L & T\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help6\"));\r\n\t\tcompanies.add(createCompany(7, \"General Electric\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help7\"));\r\n\t\tcompanies.add(createCompany(8, \"Oracle\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help8\"));\r\n\t\tcompanies.add(createCompany(9, \"Microsoft\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help9\"));\r\n\t\tcompanies.add(createCompany(10, \"Thinkhr\", \"IT\", \"PEP\", new Date(), \"IT comp at Indore\", \"This is search help10\"));\r\n\t\treturn companies;\r\n\r\n\t}",
"@Override\n\tpublic List<ControlAcceso> findByMonth(int month) {\n\t\treturn controlA.findByMonth(month);\n\t}",
"ArrayList<Course> findByDate(LocalDate date);",
"public List<Doc> getMaintenanceCreditAP(MaintenanceRequest mrq){\n\t\tList<Doc> creditAPDocs = new ArrayList<Doc>();\n\t\ttry{\n\t\t\tList<Long> creditAPDocIds = maintenanceInvoiceDAO.getMaintenanceCreditAPDocIds(mrq);\n\t\t\tfor(Long creditAPDocId : creditAPDocIds){\n\t\t\t\tcreditAPDocs.add(docDAO.findById(creditAPDocId).orElse(null));\n\t\t\t}\n\t\t\treturn creditAPDocs;\n\t\t}catch(Exception ex){\n\t\t\tthrow new MalException(\"generic.error.occured.while\", \n\t\t\t\t\tnew String[] { \"retrieving creditAP for po: \" + mrq.getJobNo()}, ex);\n\t\t}\n\t}",
"@Test()\n public void testGetForecastPerMonth() {\n\tYearMonth yearMonth = YearMonth.of(2016, 4);\n\tdouble forecast = expenseManager.getForecastPerMonth(yearMonth);\n\tassertEquals(483, forecast, 0);\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.BusinessIndustryLicense[] getBusinessIndustryLicensesArray();",
"@Query(value = \"select year as Year, count(patent_id) as Count from patent_details group by year order by year asc\", nativeQuery = true)\n public List<Object[]>findPatentYearwiseCount();",
"public List<PaymentRequestDocument> getImmediatePaymentRequestsToExtract(String chartCode);",
"public List<Customer> getCustomersRetainedForYearsByPlcyCostAsc(String customerFilePath, short yearsOfService) {\n\n\t\tList<Customer> customersRetainedForYears = new ArrayList<Customer>();\n\t\tString line = \"\";\n\t\tint index = 0;\n\n\t\tBufferedReader fileScanner;\n\n\t\ttry {\n\t\t\tfileScanner = new BufferedReader(new FileReader(customerFilePath));\n\n\t\t\twhile ((line = fileScanner.readLine()) != null) {\n\t\t\t\tif (index != 0) {\n\t\t\t\t\tString[] currentEntry = line.split(\",\");\n\t\t\t\t\tShort customerYearsOfService = Short.parseShort(currentEntry[13]);\n\t\t\t\t\tif (customerYearsOfService == yearsOfService) {\n\t\t\t\t\t\tCustomer newCustomer = new Customer(currentEntry);\n\n\t\t\t\t\t\tcustomersRetainedForYears.add(newCustomer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindex += 1;\n\t\t\t}\n\n\t\t\tfileScanner.close();\n\t\t} catch (IOException error) {\n\t\t\terror.printStackTrace();\n\t\t} catch (SecurityException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tCollections.sort(customersRetainedForYears, new Comparator<Customer>() {\n\t\t\tpublic int compare(Customer customer1, Customer customer2) {\n\t\t\t\treturn customer1.getYearsOfService() - customer2.getYearsOfService();\n\t\t\t}\n\n\t\t});\n\t\treturn customersRetainedForYears;\n\n\t}",
"@Test()\n public void testGetExpensesByTypeAndMonth() {\n\tString type = \"MONTHLY\";\n\tYearMonth yearMonth = YearMonth.of(2015, 6);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndMonth(type, yearMonth);\n\tassertEquals(1, expensesForDisplay.size(), 0);\n }",
"public LimitDayAndMonthByCpn() {\r\n\t\tthis.mydb = new DBForMT();\r\n\t}",
"private void getCurrentYearOperation(OperationResponse response, ObjectIdData requestData) throws ConnectorException { \n\t\tint httpStatusCode = 0;\n\t\tArrayList<TreeDTO> currentYearList = new ArrayList<TreeDTO>();\n\t\t\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tGregorianCalendar now = new GregorianCalendar(TimeZone.getTimeZone(\"UTC\"));\n\t\tint currentYear = now.get(Calendar.YEAR);\n\t\t\n\t\tLogger.severe(\"===============> Looking for current year: \" + currentYear);\n\t\t\n\t\tLogger.severe(this.getContext().getObjectTypeId());\n\t\trestWrapper = MapsHelpers.initRestWrapperAndLogin(getContext());\n\t\t\n\t\tif ( restWrapper != null ) {\n\t\t\t\n\t\t\tTreeDTO[] loy = restWrapper.getListOfYears();\n\t\t\thttpStatusCode = restWrapper.getHttpClient().getLastStatus();\n\t\t\t\n\t\t\tfor ( TreeDTO tree : loy ) {\n\t\t\t\t\n\t\t\t\tGregorianCalendar treeCalStart = new GregorianCalendar(TimeZone.getTimeZone(\"UTC\"));\n\t\t\t\tGregorianCalendar treeCalEnd = new GregorianCalendar(TimeZone.getTimeZone(\"UTC\"));\n\t\t\t\ttreeCalStart.setTime(tree.getStartDate());\n\t\t\t\ttreeCalEnd.setTime(tree.getEndDate());\n\t\t\t\tif ( treeCalStart.before(now) && treeCalEnd.after(now) ) {\n\t\t\t\t\tcurrentYearList.add(tree);\n\t\t\t\t\tLogger.severe(\"===============> Found \" + tree.getName() + \": \" + treeCalStart.get(Calendar.YEAR) + \" - \" + treeCalEnd.get(Calendar.YEAR) );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif ( currentYearList != null && currentYearList.size() > 0 ) {\n\t\t\t\t\n\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\tmapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS);\n\t\t\t\tmapper.setDateFormat(df);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tString jsonInString = mapper.writeValueAsString(currentYearList.toArray(new TreeDTO[currentYearList.size()]));\n\t\t\t\t\tLogger.severe(jsonInString);\n\t\t\t\t\t\n\t\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(jsonInString));\n\t\t\t\t\t\n\t\t\t\t\treturn;\n\t\t\t\t\t\n\t\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\t\tLogger.log(Level.SEVERE, \"An error\", e);\n\t\t\t\t\tthrow new ConnectorException(e);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tresponse.addResult(requestData, OperationStatus.FAILURE, null, \"No current running year found\", null);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\tresponse.addResult(requestData, OperationStatus.FAILURE, null, \"Authentication failed\", null);\n\t\t}\n\t}",
"public String calculateMonths(double princ, double interest, double payment)\r\n {\r\n interest /= 100.0;\r\n interest += 1.0;\r\n interest = Math.pow(interest, (1.0/12.0));\r\n\r\n double months = 0.0;\r\n\r\n while (princ > 0.0)\r\n {\r\n princ *= interest;\r\n princ -= payment;\r\n months++;\r\n\r\n if (months > 1200.0)\r\n {\r\n return \">100 years. Try a higher monthly payment.\";\r\n }\r\n }\r\n\r\n return String.valueOf(Math.round(months));\r\n }",
"public String getNextYear(String date){\r\n\t\tString registerDueDate=\"\";\r\n\t\ttry{\r\n\t\t\tList<TransferNORInPSTBean> minimumRegisterDueDateList=(List<TransferNORInPSTBean>)sqlMapClient.queryForList(\"TransferNORInPSTBean.getNextRegisterDueDate\", date);\r\n\t\t\tfor(TransferNORInPSTBean minimumRegisterDueDateValue: minimumRegisterDueDateList){\r\n\t\t\t\tregisterDueDate=minimumRegisterDueDateValue.getRegisterDueDate();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\t//System.out.println(\"Exception in add next year\"+e.getMessage());\r\n\t\t\tlogger.info(\"Exception in get next year \"+e.getMessage());\r\n\t\t}\r\n\t\treturn registerDueDate;\r\n\t}",
"public Flowable<List<Transaction>> searchTransactionWithDate(int day, int month, int year,\n int isDailyOrMonthlyOrYearly) {\n\n return getData(Transaction.class, query -> {\n if (isDailyOrMonthlyOrYearly == 2) {\n query.beginsWith(\"date\", year + \"-\");\n } else if (isDailyOrMonthlyOrYearly == 1) {\n query.beginsWith(\"date\", String.format(Locale.ENGLISH, \"%d-%02d\", year, month));\n } else if (isDailyOrMonthlyOrYearly == 0) {\n query.equalTo(\"date\", String.format(Locale.ENGLISH, \"%d-%02d-%02d\", year, month, day));\n }\n return query.findAll();\n });\n }",
"public static double[] buildExpenses (double monthlyRent) {\n\n\t\tdouble monthlyExpenses[] = new double[12];\n\t\tdouble monthlyMiscellaneousExpenses = 600;\n\t\tdouble doctorCost = 200;\n\t\tdouble textbookCost = 300;\n\t\tdouble birthdayExpenses = 100;\n\t\tdouble holidayExpenses = 200;\n\n\t\t// for loop to fill expenses array\n\t\tfor (int i = 0; i < monthlyExpenses.length; i++) {\n\t\t\t\n\t\t\t// Every month and rent and miscellaneous expenses (food, cell phone, internet, etc.)\n\t\t\tmonthlyExpenses[i] += monthlyRent + monthlyMiscellaneousExpenses;\n\n\t\t\t// In the months of January and Jun\n\t\t\tif (i == 0 || i == 5) {\n\n\t\t\t\t// Add doctor expenses\n\t\t\t\tmonthlyExpenses[i] += doctorCost;\n\t\t\t}\n\n\t\t\t// In the month of September\n\t\t\telse if (i == 8) {\n\n\t\t\t\t// Add textbook expenses\n\t\t\t\tmonthlyExpenses[i] += textbookCost;\n\t\t\t}\n\n\t\t\t// In the months of April, July, and September\n\t\t\telse if (i == 3 || i == 6 || i == 8) {\n\t\t\t\t\n\t\t\t\t// Add birthday expenses\n\t\t\t\tmonthlyExpenses[i] += birthdayExpenses;\t\n\t\t\t}\n\n\t\t\t// In the month of December\n\t\t\telse if (i == 11) {\n\n\t\t\t\t// Add holiday expenses\n\t\t\t\tmonthlyExpenses[i] = holidayExpenses;\n\t\t\t}\n\t\t}\n\n\t\treturn monthlyExpenses;\n\n\t}",
"List<TCpyYearCheck> selectByExample(TCpyYearCheckExample example);",
"public int[] getMovStats(String year){\n\t for (int i = 0; i < movMonthCounter.length; i++) movMonthCounter[i]=0;\n\t \n\t for (TransferImpl movement : MovementsController.getInstanceOf().getMovements()) {\n\t \t// Convert the util.Date to LocalDate\n\t \tLocalDate date = movement.getLeavingDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n\t\t\t// Filter movements by year\n\t \tif(date.getYear()==Integer.parseInt(year)){\n\t int month = date.getMonthValue() - 1; \n\t movMonthCounter[month]++; // Increment the month according to the number of movements\n\t \t}\n\t }\n\t return movMonthCounter;\n\t}",
"@Test()\n public void testGetCurrentValuePerMonth() {\n\tYearMonth yearMonth = YearMonth.of(2015, 5);\n\tdouble currentValue = expenseManager.getCurrentValuePerMonth(yearMonth);\n\tassertEquals(615, currentValue, 0);\n }",
"public CopticMonth getMonth() {\n\n return CopticMonth.valueOf(this.cmonth);\n\n }",
"public void setDonors(List<Integer> donors) {\n this.donors = donors;\n }",
"public static void printDonationCalendar() {\n\t\t\tString [] args = null;\n\t\t\tScheduler.main(args);\n\t\t}",
"private Object[][] getBonusAmt(String month, String year, String divId) {\r\n\t\tObject[][] bonusData = null;\r\n\t\ttry {\r\n\t\t\tString query = \" SELECT HRMS_BONUS_EMP.EMP_ID, NVL(EMP_TOKEN,' '), NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' '), TO_CHAR(SUM(NVL(HRMS_BONUS_EMP.BONUS_TAX_AMT,0)),9999999990.99) BONUS_AMT, 0 \" \r\n\t\t\t+ \" FROM HRMS_BONUS_EMP \"\r\n\t\t\t+ \" INNER JOIN HRMS_BONUS_HDR ON (HRMS_BONUS_HDR.BONUS_CODE = HRMS_BONUS_EMP.BONUS_CODE)\"\r\n\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_BONUS_EMP.EMP_ID)\"\r\n\t\t\t+ \" WHERE HRMS_BONUS_HDR.DIV_CODE=\"+divId+\" AND HRMS_BONUS_HDR.PAY_MONTH=\"+month+\" AND HRMS_BONUS_HDR.PAY_YEAR = \"+year\r\n\t\t\t+ \" AND HRMS_BONUS_HDR.PAY_IN_SAL='N' AND HRMS_BONUS_HDR.DEDUCT_TAX='Y'\"\r\n\t\t\t+ \" GROUP BY HRMS_BONUS_EMP.EMP_ID, NVL(EMP_TOKEN,' '), NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' ')\";\r\n\t\t\t\r\n\t\t\tbonusData = getSqlModel().getSingleResult(query);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn bonusData;\r\n\t}",
"private Object[][] getAllowanceAmt(String month, String year, String divId) {\r\n\t\tObject[][]data = null;\r\n\t\ttry {\r\n\t\t\tString query = \"SELECT TO_CHAR(NVL(SUM(ALLW_TAX_AMT),0),9999999990.99),HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID \" \r\n\t\t\t+\" FROM HRMS_ALLOWANCE_HDR \"\r\n\t\t\t+\" INNER JOIN HRMS_ALLOWANCE_EMP_DTL ON (HRMS_ALLOWANCE_EMP_DTL.ALLW_ID = HRMS_ALLOWANCE_HDR.ALLW_ID) \"\r\n\t\t\t+\" INNER JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID) \"\r\n\t\t\t+\" INNER JOIN HRMS_CREDIT_HEAD ON (HRMS_CREDIT_HEAD.CREDIT_CODE = HRMS_ALLOWANCE_HDR.ALLW_CREDIT_HEAD) \" \r\n\t\t\t+\" AND TO_CHAR(ALLW_PROCESS_DATE,'MM')=\"+month+\" \"\r\n\t\t\t+\" AND TO_CHAR(ALLW_PROCESS_DATE,'YYYY')=\"+year+\" \" \r\n\t\t\t+\" AND EMP_DIV = \"+divId+\" \"\r\n\t\t\t+\" GROUP BY HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID\";\r\n\t\t\tdata = getSqlModel().getSingleResult(query);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in allowance query\",e);\r\n\t\t} //end of catch\t\r\n\t\treturn data;\r\n\t}",
"public BigDecimal getMoneyPaidForYear(int year) {\n if (year == endDate.getYear()) {\n return moneyPaid.subtract(prevYearMoneyPaid);\n } else if (year == effectDate.getYear()) {\n return prevYearMoneyPaid;\n }\n return BigDecimal.ZERO;\n }",
"List<KeyDevelopmentsStatsPerMonthVO> getGrossProductPerMonth(final StatisticalDTO dto);"
] | [
"0.5810272",
"0.5658447",
"0.56041586",
"0.54442066",
"0.5376674",
"0.5361514",
"0.5357285",
"0.5321353",
"0.53158975",
"0.526058",
"0.5225786",
"0.5116504",
"0.5115341",
"0.5112039",
"0.5071651",
"0.50515485",
"0.5049982",
"0.5032097",
"0.50108534",
"0.4983269",
"0.4979965",
"0.49659693",
"0.49593568",
"0.4901114",
"0.48875582",
"0.48867723",
"0.4853453",
"0.48534107",
"0.4850198",
"0.48481575",
"0.48400012",
"0.4836382",
"0.48345447",
"0.4830185",
"0.48276255",
"0.48179886",
"0.48163745",
"0.47982848",
"0.47756758",
"0.47713336",
"0.47621328",
"0.47601983",
"0.47599983",
"0.4757887",
"0.47457004",
"0.47380078",
"0.4733101",
"0.47194833",
"0.47099942",
"0.47097757",
"0.4708763",
"0.47043702",
"0.4703825",
"0.46988127",
"0.4693048",
"0.46924257",
"0.46898752",
"0.4670208",
"0.4665477",
"0.4649665",
"0.46490917",
"0.46463808",
"0.46427518",
"0.463383",
"0.46298456",
"0.46284217",
"0.46188667",
"0.4618241",
"0.46178797",
"0.46105036",
"0.45988643",
"0.4584256",
"0.4576659",
"0.456981",
"0.45671976",
"0.4562558",
"0.45619735",
"0.45574453",
"0.455428",
"0.45526934",
"0.45441356",
"0.45429346",
"0.45378584",
"0.45344633",
"0.4533254",
"0.45311204",
"0.45308393",
"0.4530526",
"0.45261228",
"0.45235884",
"0.45212257",
"0.45181265",
"0.4513347",
"0.45040223",
"0.45001563",
"0.44941744",
"0.44914922",
"0.4486774",
"0.4486077",
"0.44854358"
] | 0.6738705 | 0 |
/reservar cita que manda aal bd Firebae | private void ReservarCita(String horaini,String horafin)
{
progressDialog=new ProgressDialog(HorasCitasActivity.this);
progressDialog.setTitle("Agregado horario");
progressDialog.setMessage("cargando...");
progressDialog.show();
progressDialog.setCancelable(false);
String key = referenceehoras.push().getKey();
// para gaurar el nodo Citas
// sadfsdfsdfsd1212sdss
Horario objecita =new Horario(key,idespecialidad,horaini,horafin,nombreespecialidad );
//HorarioAtencion
// reference=FirebaseDatabase.getInstance().getReference("HorarioAtencion");
// referenceCitas= FirebaseDatabase.getInstance().getReference("CitasReservadas").child(user_id);
referenceehoras.child(key).setValue(objecita).addOnCompleteListener(new OnCompleteListener<Void>() {
@Override
public void onComplete(@NonNull Task<Void> task) {
if (task.isSuccessful()){
Toast.makeText(HorasCitasActivity.this, "Agregado", Toast.LENGTH_SHORT).show();
progressDialog.dismiss();
}
}
}).addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception e) {
Toast.makeText(HorasCitasActivity.this, "Error :" +e.getMessage(), Toast.LENGTH_SHORT).show();
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Reserva Obtener();",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"private void limpiarDatos() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"void entrerAuGarage();",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"public static void viaggia(List<Trasporto> lista,Taxi[] taxi,HandlerCoR h) throws SQLException\r\n {\n Persona app = (Persona) lista.get(0);\r\n /* ARGOMENTI handleRequest\r\n 1° Oggetto Request\r\n 2° Array Taxi per permettere la selezione e la modifica della disponibilità\r\n */\r\n h.handleRequest(new RequestCoR(app.getPosPartenza(),app.getPosArrivo(),taxi),taxi); \r\n SceltaPercorso tempo = new SceltaPercorso();\r\n SceltaPercorso spazio = new SceltaPercorso();\r\n tempo.setPercorsoStrategy(new timeStrategy());\r\n spazio.setPercorsoStrategy(new lenghtStrategy());\r\n for(int i=0;i<5;i++)\r\n if(!taxi[i].getLibero())\r\n {\r\n if(Scelta.equals(\"veloce\"))\r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Veloce...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n tempo.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n } else\r\n \r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Breve...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n spazio.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n \r\n }\r\n }\r\n \r\n }",
"private void remplirUtiliseData() {\n\t}",
"private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela Paciente\\n\");\n\t\tpaciente = new Paciente();\n\t\tlistaPaciente = pacienteService.buscarTodos();\n\t\t\n\t}",
"private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\\n\");\n\t\tpressaoArterial = new PressaoArterial();\n\t\tlistaPressaoArterial = pressaoArterialService.buscarTodos();\n\n\t}",
"private void valider() {\n\n\t\t/**\n\t\t * Renvoie un tableau de caractères qui sera transformé en chaine de caractère\n\t\t **/\n\n\t\tString passewordTraduit = new String(passeword.getPassword());\n\n\t\t/**\n\t\t * login.getText() récupère le contenu de la barre de saisie\n\t\t **/\n\t\t\n\t\tString user = login.getText();\n\t\tString passwd = passewordTraduit;\n\t\t/**\n\t\t *Permettra de savoir si la connexion à la BDD SQL c'est bien passée.\n\t\t */\n\t\tboolean reussite;\n\t\t/**\n\t\t * On va créer la BDD si elle n'existe pas\n\t\t */\n\t\t\n\t\treussite = Initialisation.getInstance().creerBDD(user, passwd);\n\t\t/**\n\t\t * On set le password et l'utilisateur pour que les paramètres de connexion soient les bons\n\t\t */\n\t\tInitialisation.getInstance().setPasswd(passwd);\n\t\tInitialisation.getInstance().setUser(user);\n\t\tModification.getInstance().setPasswd(passwd);\n\t\tModification.getInstance().setUser(user);\n\t\tif(reussite) {\n\t\t\t/**\n\t\t\t *Si tout c'est bien passé on regarde si l'utilisateur existe dans le fichier et dans le cas contraire on le crée.\n\t\t\t */\n\t\t\tif(personnesDejaInscrite.getInstance().getMaListDePersonneInscrite().get(user) == null) {\n\t\t\t\tpersonnesDejaInscrite.getInstance().getMaListDePersonneInscrite().put(user, new CompteAdministrateur(passwd));\n\t\t\t\tpersonnesDejaInscrite.getInstance().sauvegarder();\n\t\t\t}\n\t\t\tFenetreLogin.getInstance().dispose();\n\t\t\tFenetreFond.getInstance().changerFenetre(login.getText());\n\t\t\t/**\n\t\t\t *On remet les champs à nul pour que quand on se déconnecte on est pas le login et le mot de passe de l'utilisateur précédent.\n\t\t\t */\n\t\t\tlogin.setText(\"\");\n\t\t\tpasseword.setText(\"\");\n\t\t}\n\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 almacenarFallos() {\n BaseDatos bd = new BaseDatos(this);\n// Log.i(\"FALLOS\",\"Nmero de fallos final: \"+fallos);\n bd.updatePalabra(palabraActual.getId(),fallos);\n\n bd.close();\n }",
"private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Campo campoDataInizio;\n Campo campoDataFine;\n Campo campoConto;\n Date dataIniziale;\n Date dataFinale;\n int numPersone;\n ContoModulo modConto;\n\n\n String titolo = \"Esecuzione addebiti fissi\";\n AddebitoFissoPannello pannello;\n Date dataInizio;\n Pannello panDate;\n Campo campoStato;\n Filtro filtro;\n int codConto;\n int codCamera;\n\n\n try { // prova ad eseguire il codice\n\n /* recupera dati generali */\n modConto = Albergo.Moduli.Conto();\n codConto = this.getCodConto();\n codCamera = modConto.query().valoreInt(Conto.Cam.camera.get(), codConto);\n numPersone = CameraModulo.getNumLetti(codCamera);\n\n /* crea il pannello servizi e vi registra la camera\n * per avere l'anteprima dei prezzi*/\n pannello = new AddebitoFissoPannello();\n this.setPanServizi(pannello);\n pannello.setNumPersone(numPersone);\n this.setTitolo(titolo);\n\n// /* regola date suggerite */\n// dataFinale = Progetto.getDataCorrente();\n// dataInizio = Lib.Data.add(dataFinale, -1);\n\n /* pannello date */\n campoDataInizio = CampoFactory.data(nomeDataIni);\n campoDataInizio.decora().obbligatorio();\n// campoDataInizio.setValore(dataInizio);\n\n campoDataFine = CampoFactory.data(nomeDataFine);\n campoDataFine.decora().obbligatorio();\n// campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = CampoFactory.comboLinkSel(nomeConto);\n campoConto.setNomeModuloLinkato(Conto.NOME_MODULO);\n campoConto.setLarScheda(180);\n campoConto.decora().obbligatorio();\n campoConto.decora().etichetta(\"conto da addebitare\");\n campoConto.setUsaNuovo(false);\n campoConto.setUsaModifica(false);\n\n /* inizializza e assegna il valore (se non inizializzo\n * il combo mi cambia il campo dati e il valore si perde)*/\n campoConto.inizializza();\n campoConto.setValore(this.getCodConto());\n\n /* filtro per vedere solo i conti aperti dell'azienda corrente */\n campoStato = modConto.getCampo(Conto.Cam.chiuso.get());\n filtro = FiltroFactory.crea(campoStato, false);\n filtro.add(modConto.getFiltroAzienda());\n campoConto.getCampoDB().setFiltroCorrente(filtro);\n\n panDate = PannelloFactory.orizzontale(this.getModulo());\n panDate.creaBordo(\"Periodo da addebitare\");\n panDate.add(campoDataInizio);\n panDate.add(campoDataFine);\n panDate.add(campoConto);\n\n this.addPannello(panDate);\n this.addPannello(this.getPanServizi());\n\n this.regolaCamera();\n\n /* recupera la data iniziale (oggi) */\n dataIniziale = AlbergoLib.getDataProgramma();\n\n /* recupera la data di partenza prevista dal conto */\n modConto = ContoModulo.get();\n dataFinale = modConto.query().valoreData(Conto.Cam.validoAl.get(),\n this.getCodConto());\n\n /* recupera il numero di persone dal conto */\n numPersone = modConto.query().valoreInt(Conto.Cam.numPersone.get(),\n this.getCodConto());\n\n /* regola date suggerite */\n campoDataInizio = this.getCampo(nomeDataIni);\n campoDataInizio.setValore(dataIniziale);\n\n campoDataFine = this.getCampo(nomeDataFine);\n campoDataFine.setValore(dataFinale);\n\n /* conto */\n campoConto = this.getCampo(nomeConto);\n campoConto.setAbilitato(false);\n\n /* regola la data iniziale di riferimento per l'anteprima dei prezzi */\n Date data = (Date)campoDataInizio.getValore();\n this.getPanServizi().setDataPrezzi(data);\n\n /* regola il numero di persone dal conto */\n this.getPanServizi().setNumPersone(numPersone);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"@Override\n\tvoid geraDados() {\n\n\t}",
"public void selecao () {}",
"public void procesarTramaEasyFuel(){\n switch (bufferRecepcion[4]){\n //TRAMA DE CONFIGURACION\n case 0x06:\n if(bufferRecepcion[5] == 0x01 || bufferRecepcion[5] == 0x02){\n //TRAMA DE CONFIGURACION\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(bufferRecepcion,bufferRecepcion.length)));\n //Log.v(\"NOMBRE EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaNombreEmbedded,tramaNombreEmbedded.length)));\n //Log.v(\"TRAMA EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaMACEmbedded,tramaMACEmbedded.length)));\n //Log.v(\"PING HOST EMBEDDED\", \"\" + hexToAscii(byteArrayToHexString(tramaPingHost,tramaPingHost.length)));\n //Log.v(\"NÚMERO DE BOMBAS\", \"\" + byteArrayToHexInt(numeroBombas,1));\n\n llenarDatosConfiguracion();\n insertarMaestrosSQLite();\n agregarImagenEstaciones();\n //inicializarMangueras();\n clientTCPThread.write(EmbeddedPtcl.b_ext_configuracion); //0x06\n\n //inicializarMangueras();\n /*try {\n Thread.sleep(3000);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }*/\n\n //cambiarEstadoIniciaAbastecimiento(1);\n\n }\n break;\n\n //CAMBIO DE ESTADO\n case 0x01:\n int indiceLayoutHose=0;\n //Capturar idBomba\n int[] arrayIdBomba = new int[1];\n int idBomba = 0;\n arrayIdBomba[0] = bufferRecepcion[7];\n idBomba = Integer.parseInt(byteArrayToHexIntGeneral(arrayIdBomba,1));\n\n for(int i=0;i<hoseEntities.size();i++ ){\n if(hoseEntities.get(i).idBomba==idBomba) {\n indiceLayoutHose = i;\n break;\n }\n }\n\n switch (bufferRecepcion[5]){\n case 0x01:\n //Cambio de estado\n if(hoseEntities.size() > 0){\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x02:\n //Estado actual de Mangueras\n cambioEstado(indiceLayoutHose, bufferRecepcion[8]);\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n case 0x03:\n //Cambio de Pulsos\n switch (bufferRecepcion[9]){\n case 0x01:\n // FLUJO\n if(hoseEntities.size() > 0){\n cambiarPulsos(indiceLayoutHose);\n }\n break;\n case 0x02:\n // INICIO NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoSinFlujo(indiceLayoutHose);\n }\n break;\n case 0x03:\n // NO FLUJO\n if(hoseEntities.size() > 0){\n cambiarEstadoCierreHook(indiceLayoutHose);\n }\n break;\n }\n break;\n case 0x04:\n //Vehiculo Leido\n if(hoseEntities.size() > 0){\n cambiarPlaca(indiceLayoutHose);\n }\n\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n break;\n case 0x07:\n //Ultima transaccion\n\n if(hoseEntities.size() > 0){\n\n /*for(int j = 0; j< hoseEntities.size(); j++){\n if(hoseEntities.get(j).idBomba == idBomba){\n //llenarDatosTransaccion(hoseEntities.get(j));\n break;\n }\n }*/\n\n llenarDatosTransaccion(hoseEntities.get(indiceLayoutHose),indiceLayoutHose);\n\n }\n clientTCPThread.write(EmbeddedPtcl.b_ext_cambio_estado);//0x01\n //mConnectedThread.write(EmbeddedPtcl.b_ext_cambio_estado); //0x01\n break;\n }\n break;\n\n case 0x07:\n switch(bufferRecepcion[5]){\n case 0x01:\n break;\n }\n break;\n }\n changeFragment=true;\n }",
"private static void dbempresasNotExists(){\n new Thread(() -> {\n \n try {\n \n //Grt the connection params to dbempresas\n final ConfigFileModel ConfigFileModel = ConfigFileUtil.getSingleton().getConfigFileModel();\n \n //Create the jdbc datanase\n MysqlScriptsUtil.getInstance().creaDBJDBC(ConfigFileModel.getDb(), ConfigFileModel.getUser(), ConfigFileModel.getPassword(), ConfigFileModel.getInstance(), Integer.valueOf(ConfigFileModel.getPort()));\n \n //Create hibernate schemes and initial connection for dbempresas\n HibernateUtil.getSingleton().createDbEmpresas(); \n \n //Insert base catalogs in dbempresa\n MysqlScriptsUtil.getInstance().loadDBEmpresasCatalogFileIntoDatabase(ConfigFileModel.getDb(), ConfigFileModel.getUser(), ConfigFileModel.getPassword(), ConfigFileModel.getInstance(), Integer.valueOf(ConfigFileModel.getPort()));\n \n //Continue with the normal system flow\n veryLicense();\n \n } catch (Exception ex) {\n LoggerUtility.getSingleton().logError(Start.class, ex);\n\n try {\n //Rollback\n final HibernateConfigModel HibernateConfigModel_ = HibernateUtil.getSingleton().getHibernateConfigModelDbempresas();\n MysqlScriptsUtil.getInstance().rollbackDBEmpresas(HibernateConfigModel_.getUser(), HibernateConfigModel_.getPassword(), HibernateConfigModel_.getInstance(), HibernateConfigModel_.getPort());\n \n } catch (Exception ex1) {\n LoggerUtility.getSingleton().logError(Start.class, ex1);\n }\n \n ViewsFactory.getSingleton().getDialogJFrame(ex.getMessage()).setVisible();\n \n System.exit(-1);\n }\n \n }).start();\n }",
"public void asetaTeksti(){\n }",
"@Override\r\n\tpublic void dibujar(Entorno unEntorno, Casilla casilla) {\n\t\t\r\n\t}",
"public void abrirCerradura(){\n cerradura.abrir();\r\n }",
"public void mantenimiento(){\n\t}",
"public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }",
"public int MasalarmasaEkle(String masa_adi) {\n baglanti vb = new baglanti();\r\n vb.baglan();\r\n try {\r\n int masa_no = 0;\r\n // masalar tablosundaki en son id ye gore masa_no yu getirir\r\n String sorgu = \"select masa_no from masalar where idmasalar= (select idmasalar from masalar order by idmasalar desc limit 0, 1)\";\r\n ps = vb.con.prepareStatement(sorgu);\r\n rs = ps.executeQuery(sorgu);\r\n while (rs.next()) {\r\n masa_no = rs.getInt(1);\r\n }\r\n masa_no = masa_no + 1;\r\n String sorgu2 = \"insert into masalar (masa_no, masa_adi) values (\" + masa_no + \", '\" + masa_adi + \"')\";\r\n ps = vb.con.prepareStatement(sorgu2);\r\n ps.executeUpdate();\r\n String sorgu3 = \"insert into masa_durum (masa_no, durum) values (\" + masa_no + \", 0)\";\r\n ps = vb.con.prepareStatement(sorgu3);\r\n ps.executeUpdate();\r\n return masa_no;\r\n } catch (Exception e) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, e);\r\n return 0;\r\n }\r\n finally{\r\n try {\r\n vb.con.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(masalar.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }",
"private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }",
"@Override\r\n /* OSINE791 - RSIS1 - Inicio */\r\n //public ExpedienteDTO generarExpedienteOrdenServicio(ExpedienteDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO) throws ExpedienteException{\r\n public ExpedienteGSMDTO generarExpedienteOrdenServicio(ExpedienteGSMDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO,String sigla) throws ExpedienteException{\r\n LOG.error(\"generarExpedienteOrdenServicio\");\r\n ExpedienteGSMDTO retorno= new ExpedienteGSMDTO();\r\n try{\r\n expedienteDTO.setEstado(Constantes.ESTADO_ACTIVO);\r\n PghExpediente pghExpediente = ExpedienteGSMBuilder.toExpedienteDomain(expedienteDTO);\r\n pghExpediente.setFechaEstadoProceso(new Date());\r\n pghExpediente.setDatosAuditoria(usuarioDTO);\r\n crud.create(pghExpediente);\r\n retorno=ExpedienteGSMBuilder.toExpedienteDto(pghExpediente);\r\n \r\n //reg historicoEstado\r\n MaestroColumnaDTO tipoHistorico=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_EXPEDIENTE).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstado=historicoEstadoDAO.registrar(pghExpediente.getIdExpediente(), null, pghExpediente.getIdEstadoProceso().getIdEstadoProceso(), pghExpediente.getIdPersonal().getIdPersonal(), pghExpediente.getIdPersonal().getIdPersonal(), tipoHistorico.getIdMaestroColumna(),null,null, null, usuarioDTO);\r\n LOG.info(\"historicoEstado-->\"+historicoEstado);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n //inserta ordenServicio\r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.registrar(retorno.getIdExpediente(), \r\n expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), expedienteDTO.getOrdenServicio().getEstadoProceso().getIdEstadoProceso(), \r\n /* OSINE791 - RSIS1 - Inicio */\r\n //codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO);\r\n codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,sigla);\r\n /* OSINE791 - RSIS1 - Fin */\r\n LOG.info(\"OrdenServicioDTO:\"+OrdenServicioDTO.getNumeroOrdenServicio());\r\n //busca idPersonalDest\r\n PersonalDTO personalDest=null;\r\n List<PersonalDTO> listPersonalDest=null;\r\n if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)){\r\n //personalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null)).get(0);\r\n listPersonalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null));\r\n }else if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)){\r\n //personalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa())).get(0);\r\n listPersonalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa()));\r\n }\r\n if(listPersonalDest==null || listPersonalDest.isEmpty()){\r\n throw new ExpedienteException(\"La Empresa Supervisora no tiene un Personal asignado\",null);\r\n }else{\r\n personalDest=listPersonalDest.get(0);\r\n }\r\n //inserta historico Orden Servicio\r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistoricoOS=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstadoOS=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistoricoOS.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstadoOS:\"+historicoEstadoOS);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n }catch(Exception e){\r\n LOG.error(\"error en generarExpedienteOrdenServicio\",e);\r\n throw new ExpedienteException(e.getMessage(), e);\r\n }\r\n return retorno;\r\n }",
"public void acheter(){\n\t\t\n\t\t// Achete un billet si il reste des place\n\t\ttry {\n\t\t\tthis.maBilleterie.vendre();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tthis.status.put('B', System.currentTimeMillis());\n\t\tSystem.out.println(\"STATE B - Le festivalier \" + this.numFestivalier + \" a acheté sa place\");\n\t}",
"public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}",
"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 sendeSpielStarten();",
"protected void elaboraPagina() {\n testoPagina = VUOTA;\n\n //header\n testoPagina += this.elaboraHead();\n\n //body\n testoPagina += this.elaboraBody();\n\n //footer\n //di fila nella stessa riga, senza ritorno a capo (se inizia con <include>)\n testoPagina += this.elaboraFooter();\n\n //--registra la pagina principale\n if (dimensioniValide()) {\n testoPagina = testoPagina.trim();\n\n if (pref.isBool(FlowCost.USA_DEBUG)) {\n testoPagina = titoloPagina + A_CAPO + testoPagina;\n titoloPagina = PAGINA_PROVA;\n }// end of if cycle\n\n //--nelle sottopagine non eseguo il controllo e le registro sempre (per adesso)\n if (checkPossoRegistrare(titoloPagina, testoPagina) || pref.isBool(FlowCost.USA_DEBUG)) {\n appContext.getBean(AQueryWrite.class, titoloPagina, testoPagina, summary);\n logger.info(\"Registrata la pagina: \" + titoloPagina);\n } else {\n logger.info(\"Non modificata la pagina: \" + titoloPagina);\n }// end of if/else cycle\n\n //--registra eventuali sottopagine\n if (usaBodySottopagine) {\n uploadSottoPagine();\n }// end of if cycle\n }// end of if cycle\n\n }",
"private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}",
"public void ventaBilleteMaquina1()\n {\n maquina1.insertMoney(500);\n maquina1.printTicket();\n }",
"public void bienvenida(){\n System.out.println(\"Bienvenid@ a nuestro programa de administracion de parqueos\");\n }",
"public static void main(String[] args) {\n\t\tHamburger cheeseBurger = new Hamburger(\"CheeseBurger\");\r\n\t\tHamburger maxiBurger = new Hamburger(\"MaxiBurger\");\r\n\t\tAccompagnement accompagnement = new Accompagnement(\"Frites\");\r\n\t\tBoisson boissonCoca = new Boisson(\"Coca\");\r\n\t\tBoisson boissonOrange = new Boisson(\"Orange\");\r\n\r\n\t\t// Mise en place de l'environnement\r\n\t\tControlCreerProfil controlCreerProfil = new ControlCreerProfil();\r\n\t\tcontrolCreerProfil.creerProfil(ProfilUtilisateur.PERSONNEL, \"Dupond\", \"Jacques\", \"jdu\");\r\n\r\n\t\t// Connexion du cuisinier\r\n\t\tControlSIdentifier controlSIdentifier = new ControlSIdentifier();\r\n\t\tint numCuisinier = controlSIdentifier.sIdentifier(ProfilUtilisateur.PERSONNEL, \"Jacques.Dupond\", \"jdu\");\r\n\r\n\t\t// Initialisation controleur du cas & cas Inclus/etendu\r\n\t\tControlVerifierIdentification controlVerifierIdentification = new ControlVerifierIdentification();\r\n\t\tcontrolVerifierIdentification.verifierIdentification(ProfilUtilisateur.PERSONNEL, numCuisinier);\r\n\r\n\t\t// cas visualiser commande du jour\r\n\t\tControlVisualiserCommandeJour controlVisualiserCommandeJour = new ControlVisualiserCommandeJour(\r\n\t\t\t\tcontrolVerifierIdentification);\r\n\t\tBoundaryVisualiserCommandeJour boundaryVisualiserCommandeJour = new BoundaryVisualiserCommandeJour(\r\n\t\t\t\tcontrolVisualiserCommandeJour);\r\n\t\tboundaryVisualiserCommandeJour.visualiserCommandeJour(numCuisinier);\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(1500);\r\n\t\t\tSystem.out.println(\"Ecriture des commandes dans le fichier\");\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// extrait cas commander\r\n\t\tBDCommande bdCommande = BDCommande.getInstance();\r\n\t\tbdCommande.enregistrerCommande(1, cheeseBurger, accompagnement, boissonCoca);\r\n\t\tbdCommande.enregistrerCommande(1, maxiBurger, accompagnement, boissonOrange);\r\n\r\n\t\t// Ecriture des commandes dans le fichier\r\n\t\t// Commande n°1 : CheeseBurger, Frites, Coca\r\n\t\t// Commande n°2 : MaxiBurger, Frites, Orange\r\n\t}",
"public void identificarPersona() {\n try {\n //Obtiene todas las huellas de la bd\n ResultSet rsIdentificar = identificarhue.executeQuery();\n \n //Si se encuentra la huella en la base de datos\n while(rsIdentificar.next()){\n //Lee la plantilla de la base de datos\n byte templateBuffer[] = rsIdentificar.getBytes(\"huellap\");\n //Crea una nueva plantilla\n Template referenceTemplate = new Template(templateBuffer);\n \n //compara las plantilas (actual vs bd)\n boolean coinciden = fingerprintSDK.verify(template,referenceTemplate);\n \n //Si encuentra coincidencia entonces envia true y si no entonces envia false\n if (coinciden){ \n objpantprincipal.coincidehuella(true);\n return;\n }\n else{\n objpantprincipal.coincidehuella(false);\n }\n } \n \n } catch (SQLException e) { \n initDB();\n identificarPersona();\n } catch (GrFingerJavaException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }",
"@Override\r\n\tpublic void action() {\n\t\tMessageTemplate mt=MessageTemplate.or(MessageTemplate.MatchContent(\"comida\"), MessageTemplate.MatchContent(\"bebida\"));\r\n ACLMessage msg = myAgent.receive(mt);\r\n if(msg!=null){\r\n \tif(msg.getContent().compareTo(\"comida\")==0){\r\n \t\tif(Comida>=5){\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"Si\");\r\n System.out.println(myAgent.getLocalName()+\":Si, gracias tengo hambre todavia\"); \r\n myAgent.send(reply);\r\n Comida=Comida-5;\r\n \t\t}\r\n \t\telse{\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"No\");\r\n System.out.println(myAgent.getLocalName()+\":No gracias\"); \r\n myAgent.send(reply);\r\n \t\t} \r\n \t}\r\n \telse if(msg.getContent().compareTo(\"bebida\")==0){\r\n \t\tif(Bebida>=5){\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"Si\");\r\n System.out.println(myAgent.getLocalName()+\":Si, gracias tengo sed todavia\"); \r\n myAgent.send(reply);\r\n Bebida=Bebida-5;\r\n \t\t}\r\n \t\telse{\r\n \t\t\tACLMessage reply = msg.createReply();\r\n reply.setContent(\"No\");\r\n System.out.println(myAgent.getLocalName()+\":No gracias\"); \r\n myAgent.send(reply);\r\n \t\t} \r\n \t}\r\n }\r\n if (Comida==0 && Bebida==0){\r\n \tmyAgent.doDelete();\r\n }\r\n\t}",
"public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }",
"Jugador consultarGanador();",
"public void baocun() {\n\t\t\n\t}",
"public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}",
"public void iniciarBatalha() {\r\n\t\trede.iniciarPartidaRede();\r\n\t}",
"public void eisagwgiFarmakou() {\n\t\t// Elegxw o arithmos twn farmakwn na mhn ypervei ton megisto dynato\n\t\tif(numOfMedicine < 100)\n\t\t{\n\t\t\tSystem.out.println();\t\n\t\t\tmedicine[numOfMedicine] = new Farmako();\t\n\t\t\tmedicine[numOfMedicine].setCode(rnd.nextInt(1000000)); // To sistima dinei automata ton kwdiko tou farmakou\n\t\t\tmedicine[numOfMedicine].setName(sir.readString(\"DWSTE TO ONOMA TOU FARMAKOU: \")); // Zitaw apo ton xristi na mou dwsei to onoma tou farmakou\n\t\t\tmedicine[numOfMedicine].setPrice(sir.readPositiveFloat(\"DWSTE THN TIMH TOU FARMAKOU: \")); // Pairnw apo ton xristi tin timi tou farmakou\n\t\t\tSystem.out.println();\n\t\t\t// Elegxos monadikotitas tou kwdikou tou farmakou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfMedicine; i++)\n\t\t\t{\n\t\t\t\tif(medicine[i].getCode() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(10);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfMedicine++;\n\t\t}\n\t\t// An xeperastei o megistos arithmos farmakwn\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLA FARMAKA!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}",
"public void PagarConsulta() {\n\t\tSystem.out.println(\"el patronato es gratiuto y no necesita pagar \");\r\n\t}",
"private static void CrearVenda (BaseDades bd, int idproducte, int quantitat) {\n Producte prod = bd.consultarUnProducte(idproducte);\n java.sql.Date dataActual = getCurrentDate();//Data SQL\n if (prod != null) {\n if (bd.actualitzarStock(prod, quantitat, dataActual)>0) {//Hi ha estoc\n String taula = \"VENDES\";\n int idvenda = bd.obtenirUltimID(taula);\n Venda ven = new Venda(idvenda, prod.getIdproducte(), dataActual, quantitat);\n \n if (bd.inserirVenda(ven)>0)\n System.out.println(\"VENDA INSERIDA...\");\n } else\n System.out.println(\"NO ES POT FER LA VENDA, NO HI HA ESTOC...\");\n \n } else {\n System.out.println(\"NO HI HA EL PRODUCTE\");\n }\n }",
"public void limpiar() {\n\t\taut_empleado.limpiar();\n\t\tutilitario.addUpdate(\"aut_empleado\");// limpia y refresca el autocompletar\n\n\n\t}",
"public SuperRodada(){\n this.pontos_em_disputa=0;\n this.truco=false;\n this.Desafiante=null;\n this.addPontosEmDisputa(2);\n Game game = Game.getGame();\n DonoDoBaralho=(DonoDoBaralho==null)?game.getDupla(1).getJogadorA():this.proximoAJogar(DonoDoBaralho);\n \n }",
"public void asignarVida();",
"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 }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public static void main(String[]args) {PostagemDAO pDAO = new PostagemDAO();\n////\t\tPostagem postagem = new Postagem();\n////\t\tString s = \"1999-3-9\";\n////\t\tDate data = Date.valueOf(s);\n////\t\tpostagem.setDescPostagem(\"john johnes\");\n////\t\tpostagem.setDataPostagem(data);\n////\t\tpDAO.inserirPostagem(postagem);\n//\t\t\n////\t\tImagensDAO iDAO = new ImagensDAO();\n////\t\tImagens imagens = new Imagens();\n////\t\t\n////\t\timagens.setTipoImagem((short)2);\n////\t\timagens.setArquivoImagem(\"busato\");\n////\t\tiDAO.inserirImagem(imagens);\n//\t\t\n//\t\tUsuarioDAO uDAO = new UsuarioDAO();\n//\t\tUsuario usuario = new Usuario();\n//\t\t\n////\t\tusuario.setEmail(\"sadasda\");\n////\t\tusuario.setNickname(\"sdasdasae\");\n////\t\tusuario.setSenha(\"12345\");\n////\t\tusuario.setSteamid(31231231);\n////\t\tusuario.setFotoPerfil(\"FOTO\");\n////\t\tuDAO.cadastrar(usuario);\n//\t\t\n//\t\t\n//\t\tComentariosDAO cDAO = new ComentariosDAO();\n//\t\tComentarios comentarios = new Comentarios();\n//\t\t\n//\t\tcomentarios.setCorpoComentario(\"comentario comentado\");\n//\t\tcomentarios.setDataComentario(Date.valueOf(\"2018-03-09\"));\n//\t\tcDAO.inserirComentarios(comentarios);\n//\t\t\n//\t\tSystem.out.println(\"sera que comitou\");\n//\t\t\n\t\t\n\t\tPostagem postagem = new Postagem();\n\t\tpostagem.setDescPostagem(\"Uma formiguinha subindo pela parede\");\n\t\tpostagem.setTituloPostagem(\"Formiguinha\");\n\t\t\n\t\tPostagemDAO poDAO = new PostagemDAO();\n\t\tpostagem = poDAO.inserirPostagem(postagem);\n\t\t\n\t\tSystem.out.println(postagem.getIdPostagem());\n\t\t\n\t}",
"public void run() {\r\n\t\t\tthis.setName(\"Vista.CacheUploaderDaemon\");\r\n\t\t\tint frac = 0;\r\n\t\t\tint prog = 0; // Progreso de la cola\r\n\t\t\twhile (alive) {\r\n\t\t\t\tif (!colaEscritura.isEmpty()) {\r\n\t\t\t\t\tfrac = 100/colaEscritura.size();\r\n\t\t\t\t\tprog = 0;\r\n\t\t\t\t}\r\n\t\t\t\twhile (!colaEscritura.isEmpty()) {\r\n\t\t\t\t\tsetProgreso(\"Actualizando base de datos\", prog);\r\n\t\t\t\t\tprog+=frac;\r\n\t\t\t\t\tElementoCache e = colaEscritura.poll();\r\n\t\t\t\t\tif (e.i==INSERTAR) {\r\n\t\t\t\t\t\tif (e.tipo.equals(\"Empleado\" ))\t\tinsertEmpleadoBD((Empleado) e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Cuadrante\"))\t\tcontrolador.insertCuadrante((Cuadrante) e.o.get(0)); \t\t\t\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"TurnoContrato\"))\tcontrolador.insertTurnoPorContrato((Integer)e.o.get(0), (Integer)e.o.get(1));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Sugerencia\"))\t\tcontrolador.insertSugerencia((Sugerencia)e.o.get(0));\r\n//\t\t\t\t\t\telse if (e.tipo.equals(\"Contrato\"))\t\t\tcontrolador.insertContrato((Contrato) e.o.get(0));\r\n\t\t\t\t\t\t/*else if (e.tipo.equals(\"Departamento\"))\t\tcontrolador.insertDepartamento((Departamento)e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"CrearDepartamento\")){ \tcontrolador.insertDepartamentoUsuario((Integer)e.o.get(2),e.o.get(0).toString()); //tabla DepartamentoUsuario\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontrolador.insertNumerosDepartamento((Integer)e.o.get(1),e.o.get(0).toString()); //tabla NumerosDEPARTAMENTOs\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontrolador.insertDepartamentoPruebas(e.o.get(0).toString(),(Integer)e.o.get(2)); //tabla DEPARTAMENTO\r\n\t\t\t\t\t\t}*/\r\n\t\t\t\t\t\t//TODO quitar esto\r\n\t\t\t\t\t\telse System.err.println(\"Error en cache - Insertar \"+e.tipo+\" no existe\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (e.i==ELIMINAR) {\r\n\t\t\t\t\t\tif (e.tipo.equals(\"Contrato\"))\t\t\tcontrolador.eliminaContrato((Integer) e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Turno\"))\t\t\tcontrolador.eliminaTurno((Integer) e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"ContratoConTurnos\"))\tcontrolador.eliminaContratoConTurnos((Integer) e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Empleado\"))\t\t\tcontrolador.eliminaEmpleado((Integer) e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"eliminaMesTrabaja\")) {\r\n\t\t\t\t\t\t\tArrayList<Object> ar = (ArrayList<Object>)e.o.get(0);\r\n\t\t\t\t\t\t\tcontrolador.eliminaMesTrabaja((Integer)ar.get(0),(Integer)ar.get(1),(Integer)ar.get(2),ar.get(3).toString());\r\n\t\t\t\t\t\t}else if (e.tipo.equals(\"eliminaTurnoDeContrato\")){\r\n\t\t\t\t\t\t\tArrayList<Object> aux = (ArrayList<Object>)e.o.get(0);\r\n\t\t\t\t\t\t\tcontrolador.eliminaTurnoDeContrato((Integer)aux.get(0),(Integer)aux.get(1));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t//TODO quitar esto\r\n\t\t\t\t\t\telse System.err.println(\"Error en cache - Eliminar \"+e.tipo+\" no existe\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(e.i==MODIFICAR) {\r\n\t\t\t\t\t\tif (e.tipo.equals(\"Contrato\"))\t\t\tcontrolador.modificarContrato(((Contrato)e.o.get(0)).getNumeroContrato(), ((Contrato)e.o.get(0)).getTurnoInicial(), ((Contrato)e.o.get(0)).getNombreContrato(), ((Contrato)e.o.get(0)).getPatron() , ((Contrato)e.o.get(0)).getDuracionCiclo(), ((Contrato)e.o.get(0)).getSalario(), ((Contrato)e.o.get(0)).getTipoContrato());\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Turno\"))\t\t\tcontrolador.modificarTurno(((Turno)e.o.get(0)).getIdTurno(), ((Turno)e.o.get(0)).getDescripcion(), ((Turno)e.o.get(0)).getHoraEntrada(), ((Turno)e.o.get(0)).getHoraSalida(), ((Turno)e.o.get(0)).getHoraDescanso(), ((Turno)e.o.get(0)).getTDescanso(),((Turno)e.o.get(0)).getColor());\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Empleado\"))\t\t\tcontrolador.cambiarEmpleado(((Empleado)e.o.get(0)).getEmplId(), ((Empleado)e.o.get(0)).getNombre(), ((Empleado)e.o.get(0)).getApellido1(), ((Empleado)e.o.get(0)).getApellido2(), ((Empleado)e.o.get(0)).getFechaNac(), ((Empleado)e.o.get(0)).getSexo(), ((Empleado)e.o.get(0)).getEmail(), ((Empleado)e.o.get(0)).getPassword(), ((Empleado)e.o.get(0)).getGrupo(), ((Empleado)e.o.get(0)).getFcontrato(), ((Empleado)e.o.get(0)).getFAlta(), ((Empleado)e.o.get(0)).getFelicidad(), ((Empleado)e.o.get(0)).getIdioma(), ((Empleado)e.o.get(0)).getRango(), ((Empleado)e.o.get(0)).getTurnoFavorito(), ((Empleado)e.o.get(0)).getColor(),((Empleado)e.o.get(0)).getContratoId(), ((Empleado)e.o.get(0)).getPosicion());\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Mensaje\"))\t\t\tcontrolador.marcarMensaje((Mensaje)e.o.get(0));\r\n\t\t\t\t\t\telse if (e.tipo.equals(\"MensajeLeido\"))\t\tcontrolador.setLeido((Mensaje)e.o.get(0));\r\n\t\t\t\t\t\t//else if (e.tipo.equals(\"JefeDepartamento\"))\tcontrolador.modificaDpto(((Departamento)e.o.get(0)).getNombreDepartamento(), ((Departamento)e.o.get(0)).getJefeDepartamento().getEmplId()); \r\n\t\t\t\t\t\telse if (e.tipo.equals(\"NombreDepartamento\")){controlador.cambiaNombreDpto(((ArrayList<String>)e.o.get(0)).get(0),((ArrayList<String>)e.o.get(0)).get(1));}//nombre antiguo,nombre nuevo\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontrolador.cambiaNombreDepartamentoUsuario(e.o.get(0).toString(),e.o.get(1).toString());\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontrolador.cambiaNombreNumerosDEPARTAMENTOs(e.o.get(0).toString(),e.o.get(1).toString());\r\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\telse if (e.tipo.equals(\"Trabaja\"))\t\t\tcontrolador.modificaTrabaja(((Trabaja)e.o.get(0)).getIdEmpl(), ((Trabaja)e.o.get(0)).getIdTurno(), (String)e.o.get(1));\r\n\t\t\t\t\t\t//TODO quitar esto\r\n\t\t\t\t\t\telse System.err.println(\"Error en cache - Modificar \"+e.tipo+\" no existe\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Actualizando base de datos\", 100);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsleep(1000);\r\n\t\t\t\t} catch (Exception e) {};\r\n\t\t\t}\r\n\t\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 verarbeite() {\n\t\t\r\n\t}",
"public void start() {\n Date dataCorr;\n\n try { // prova ad eseguire il codice\n for (int codConto : codiciConto) {\n quanti++;\n dataCorr = dataInizio;\n while (Lib.Data.isPrecedenteUguale(dataFine, dataCorr)) {\n creaAddebitiGiornoConto(dataCorr, codConto);\n dataCorr = Lib.Data.add(dataCorr, 1);\n\n /* interruzione nella superclasse */\n if (super.isInterrompi()) {\n break;\n }// fine del blocco if\n\n }// fine del blocco while\n }// fine del blocco for\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}",
"public static void main(String[] args){\n \r\n Log.registroTraza( \"Iniciando ejecución de la tarea SolicitudesAVencerse\");\r\n \r\n String strSQL, strFechaRecibo, strReqRpta, strRadicado, strIdResp = \"\";\r\n int totalSolAlertadas=0, totalSolVencidas=0;\r\n String[] strTemp = null;\r\n int lgTiempoRpta, lgRestante, lgTiempoConfig; \r\n Vector arrConsecutivos = new Vector();\r\n Vector arrFechasCreacion = new Vector();\r\n Vector arrReqRpta = new Vector();\r\n Vector arrTiempoRpta = new Vector();\r\n Vector arrIdsResp = new Vector();\r\n Comunes comun = new Comunes();\r\n Notificacion n = new Notificacion();\r\n Calendar fechaRecibo = null;\r\n Calendar fechaRpta = null;\r\n Calendar fechaActual = null;\r\n \r\n try{\r\n strSQL = \"select g.txtNroDiasAlerta from buzon.buzon_generales g where g.txtCodigo = 'frmGeneral'\";\r\n String[] strDatosGral = GestionSQL.getFila(strSQL, \"Buzon\");\r\n lgTiempoConfig = Integer.parseInt(strDatosGral[0]);\r\n \r\n strSQL = \"select DISTINCT p.txtRadicado, p.dtFechaCreacion, r.txtReqRpta, r.txtTiempoRpta, p.txtNomCargo from buzon_pqrs p INNER JOIN buzon_retroalimentacion r on (p.txtTipoPQRS = r.txtCodigo) where (p.txtIdEstado <> 'AT' and p.txtIdEstado <> 'CPU') ORDER BY CAST(p.txtRadicado AS SIGNED)\";\r\n Vector arrSols = GestionSQL.consultaSQL(strSQL,\"Buzon\",\"ALERTASSOLS\");\r\n \r\n if (arrSols != null){ \r\n for (int i=0;i<arrSols.size();i++){\r\n strTemp = arrSols.get(i).toString().split(\",\");\r\n arrConsecutivos.add(strTemp[0]);\r\n arrFechasCreacion.add(strTemp[1]);\r\n arrReqRpta.add(strTemp[2]);\r\n arrTiempoRpta.add(strTemp[3]); \r\n arrIdsResp.add(strTemp[4]);\r\n } \r\n\r\n //Obtener los feriados.\r\n\r\n Vector arrFechas = new Vector();\r\n strSQL = \"SELECT d.dtFecha from users.users_dias_no_habiles d order by d.dtFecha\";\r\n arrFechas = GestionSQL.consultaSQL(strSQL, \"Users\", \"FECHAS\"); \r\n\r\n for(int i=0;i<arrConsecutivos.size();i++){\r\n strRadicado = arrConsecutivos.get(i).toString(); \r\n strReqRpta = arrReqRpta.get(i).toString();\r\n strIdResp = arrIdsResp.get(i).toString();\r\n lgRestante = 0; \r\n fechaRecibo = null;\r\n fechaRpta = null;\r\n fechaActual = comun.calcularFechaActual();\r\n\r\n if (strReqRpta.equals(\"S\")){ \r\n lgTiempoRpta = Integer.parseInt(arrTiempoRpta.get(i).toString());\r\n fechaRecibo = Calendar.getInstance(); \r\n\r\n strFechaRecibo = arrFechasCreacion.get(i).toString();\r\n strTemp = strFechaRecibo.split(\"-\"); \r\n fechaRecibo.set(Integer.parseInt(strTemp[0]),(Integer.parseInt(strTemp[1])-1),Integer.parseInt(strTemp[2]));\r\n fechaRecibo.set(Calendar.SECOND, 0);\r\n fechaRecibo.set(Calendar.MILLISECOND, 0); \r\n\r\n fechaRpta= Calendar.getInstance();\r\n fechaRpta.set(Calendar.SECOND, 0);\r\n fechaRpta.set(Calendar.MILLISECOND, 0); \r\n fechaRpta = comun.incrementarDiasHabiles(fechaRecibo, lgTiempoRpta, arrFechas); \r\n\r\n lgRestante = (comun.getDiasHabiles(fechaActual, fechaRpta, arrFechas)-1); \r\n\r\n if ((lgRestante <= lgTiempoConfig) && (lgRestante > 0)){ \r\n n.NotificacionSolAVencer(strRadicado, Long.valueOf(lgRestante + 1), strIdResp); \r\n totalSolAlertadas = totalSolAlertadas + 1;\r\n }else{\r\n if (lgRestante<0){\r\n n.NotificacionSolVencidas(strRadicado, fechaRpta, strIdResp);\r\n totalSolVencidas = totalSolVencidas + 1;\r\n } \r\n } \r\n } \r\n }\r\n }\r\n }catch(Exception e){\r\n Log.registroTraza(\"Se generó un error en la tarea SolicitudesAVencerse: \" + e.getMessage());\r\n }\r\n\r\n SimpleDateFormat formato = new SimpleDateFormat(\"hh:mm:ss\");\r\n Log.registroTraza( \"Tarea SolicitudesAVencerse invocada a la hora: \" + formato.format(new Date()) + \". Solicitudes alertadas: \" + totalSolAlertadas + \". Solicitudes vencidas: \" + totalSolVencidas);\r\n\r\n }",
"public void contabilizarConMesYProfesor(ProfesorBean profesor, int mes){\r\n GestionDetallesInformesBD.deleteDetallesInforme(profesor, mes); \r\n\r\n //Preparamos todos los datos. Lista de fichas de horario.\r\n ArrayList<FichajeBean> listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n ArrayList<FichajeRecuentoBean> listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n\r\n /**\r\n * Contabilizar horas en eventos de día completo\r\n */\r\n \r\n int segundosEventosCompletos=contabilizarEventosCompletos(listaFichajesRecuento, profesor,mes);\r\n \r\n /**\r\n * Contabilizar horas en eventos de tiempo parcial\r\n */\r\n \r\n ArrayList<EventoBean> listaEventos=GestionEventosBD.getListaEventosProfesor(false, profesor, mes);\r\n int segundosEventosParciales=contabilizarEventosParciales(listaFichajesRecuento,listaEventos, profesor, mes, \"C\");\r\n \r\n /**\r\n * Contabilizamos las horas lectivas\r\n */\r\n ArrayList<FichaBean> listaFichasLectivas=UtilsContabilizar.getHorarioCompacto(profesor, \"L\");\r\n int segundosLectivos=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasLectivas, profesor,\"L\", mes);\r\n \r\n /**\r\n * Contabilizar horas complementarias\r\n */\r\n ArrayList<FichaBean> listaFichasComplementarias=UtilsContabilizar.getHorarioCompacto(profesor, \"C\");\r\n int segundosComplementarios=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasComplementarias, profesor,\"C\", mes);\r\n \r\n /**\r\n * Contabilizamos la horas no lectivas (el resto de lo que quede en los fichajes.\r\n */\r\n int segundosNLectivos=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, true, mes);\r\n \r\n /**\r\n * Contabilizamos las horas extra añadidas al profesor\r\n */\r\n ArrayList<HoraExtraBean> listaHorasExtra=GestionHorasExtrasBD.getHorasExtraProfesor(profesor, mes);\r\n HashMap<String, Integer> tablaHorasExtra = contabilizaHorasExtra(listaHorasExtra, profesor, mes);\r\n \r\n System.out.println(\"Segundos de horas lectivas: \"+Utils.convierteSegundos(segundosLectivos));\r\n System.out.println(\"Segundos de horas complementarias: \"+Utils.convierteSegundos(segundosComplementarios));\r\n System.out.println(\"Segundos de horas no lectivas: \"+Utils.convierteSegundos(segundosNLectivos));\r\n System.out.println(\"Segundos eventos completos: \"+Utils.convierteSegundos(segundosEventosCompletos));\r\n System.out.println(\"Segundos eventos parciales: \"+Utils.convierteSegundos(segundosEventosParciales));\r\n System.out.println(\"Total: \"+Utils.convierteSegundos((segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales)));\r\n \r\n /**\r\n * Comprobacion\r\n */\r\n listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n int segundosValidacion=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, false, mes);\r\n int segundosValidacion2=segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales;\r\n System.out.println(\"Comprobacion: \"+Utils.convierteSegundos(segundosValidacion));\r\n String obser=segundosValidacion==segundosValidacion2?\"Correcto\":\"No coinciden las horas en el colegio, con las horas calculadas de cada tipo.\";\r\n \r\n segundosComplementarios+=segundosEventosCompletos;\r\n segundosComplementarios+=segundosEventosParciales;\r\n\r\n //Guardamos en la base de datos\r\n GestionInformesBD.guardaInforme(profesor, obser, segundosLectivos, segundosNLectivos, segundosComplementarios,mes);\r\n \r\n }",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"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 }",
"public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}",
"@Override\n\tpublic void atirou() {\n\n\t\t\tatirou=true;\n\t\t\t\n\t\t\n\t}",
"@Override\r\n public void salir() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"private void remplirFabricantData() {\n\t}",
"public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }",
"public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }",
"public static void BuscarReserva (Variables var,Menus Menus,BaseDades db,Reserva res, TReserva reserva,sMissatges missatge, bComprobadors comp){\r\n comp.bBuscar = true; \r\n \r\n //Mostra el menu de Buscar Reserva\r\n Menus(Menus.MenuBuscarReserva);\r\n \r\n //Llegeix les dades per buscar reserva\r\n reserva.iTelefon = sLlegirNumero(missatge.nTelefonReserva);\r\n\r\n //Mostra la Reserva\r\n MostrarReserva(var, db, res, reserva, Menus, comp);\r\n //Comprueba si la reserva se ha mostrado, sino muestra mensaje de no encontrada\r\n if(comp.bBuscar == true){\r\n Mostra(missatge.sReservaNoTrobada);\r\n }\r\n }",
"private void loadMaTauVaoCBB() {\n cbbMaTau.removeAllItems();\n try {\n ResultSet rs = LopKetNoi.select(\"select maTau from Tau\");\n while (rs.next()) {\n cbbMaTau.addItem(rs.getString(1));\n }\n } catch (Exception e) {\n System.out.println(\"Load ma tau vao cbb that bai\");\n }\n\n }",
"public void crear_un_evento_recurrente_para_el_dia_de_hoy() {\n\t\t\n\t}",
"public void aplicarDescuento();",
"@Override\n\n public void run(String... strings) throws Exception {\n \n Usuario u= new Usuario(1521L, \"Viridiana Hernandez\",\"[email protected]\");\n \n //la guardamos\n \n // repoUsu.save(u);\n \n //GENERAMOS LA DIRECCION QUE VAMOS A GUARDAR\n \n Direccion d = new Direccion(new Usuario(1521L),\"Calle 13\", 55120, \"Ecatepec\");\n //repoDir.save(d);\n \n \n //AQUI HAREMOS EL JOIN\n \n \n Direccion d2= repoDir.findOne(2L);\n System.out.println(\"Correo:\"+d2.getU().getEmail()+ \" municipio \"+d2.getMunicipio());\n \n \n \n \n \n \n //repoMensa.save (new Mensajito(\"Primero\",\"Mi primera vez con hibernate\"))\n /*\n Mensajito m= repoMensa.findOne(1);\n System.out.println(m.getTitulo());\n \n \n \n // repoMensa.save(new Mensajito(\"17 de octubre\",\"No temblo\"));\n System.out.println(\"vamos a uscar todos\");\n \n for (Mensajito mensa:repoMensa.findAll()){\n System.out.println(mensa);\n \n }\n \n //para buscar por id FINDONE\n System.out.println(\"vamos a buscar por id\");\n System.out.println(repoMensa.findOne(1));\n \n \n // Actualizar \n repoMensa.save(new Mensajito(1,\"nuevo titulo\",\"nuevo cuerpo\"));\n System.out.println(repoMensa.findOne(1));\n*/\n }",
"public void eisagwgiGiatrou() {\n\t\t// Elegxw o arithmos twn iatrwn na mhn ypervei ton megisto dynato\n\t\tif(numOfDoctors < 100)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tdoctor[numOfDoctors] = new Iatros();\n\t\t\tdoctor[numOfDoctors].setFname(sir.readString(\"DWSTE TO ONOMA TOU GIATROU: \")); // Pairnei apo ton xristi to onoma tou giatrou\n\t\t\tdoctor[numOfDoctors].setLname(sir.readString(\"DWSTE TO EPWNYMO TOU GIATROU: \")); // Pairnei apo ton xristi to epitheto tou giatrou\n\t\t\tdoctor[numOfDoctors].setAM(rnd.nextInt(1000000)); // To sistima dinei automata ton am tou giatrou\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\t// Elegxos monadikotitas tou am tou giatrou\n\t\t\th = rnd.nextInt(1000000);\n\t\t\tfor(int i = 0; i < numOfDoctors; i++)\n\t\t\t{\n\t\t\t\tif(doctor[i].getAM() == h)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.println(\"O KWDIKOS AUTOS YPARXEI HDH!\");\n\t\t\t\t\th = rnd.nextInt(1000000);\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tnumOfDoctors++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"DEN MPOREITE NA EISAGETE ALLOUS GIATROUS!\");\n\t\t\tSystem.out.println(\"EXEI SYMPLHRWTHEI O PROVLEPOMENOS ARITHMOS!\");\n\t\t}\n\t}",
"public void FermerAgd() {\n //on essaye d'ouvrir un fichier dans lequel enregistrer le contenu de l'agenda\n try {\n Formatter agd_a_enreg = new Formatter(\"C:\\\\Projet_Agenda_ING3\\\\saved_agendas\");\n\n for (RdV el : this.getAgenda()) {\n //on enregistre 1 rdv par ligne\n //faire gaffe aux formats : %..\n agd_a_enreg.format(\"%s/%s/%s de %s a %s : %s , %s\\n\",\n el.getDate().getDayOfMonth(), el.getDate().getMonthValue(),\n el.getDate().getYear(), el.getHdebut(),\n el.getHfin(), el.getLibelle(), el.getRappel());\n //on supprime le rdv de l'arraylist d'agenda \n this.suppressionRdV(el);\n }\n //on ferme le fichier en ecriture\n agd_a_enreg.close();\n //on met l'attribut agenda à null une fois qu'il est \"vidé\"\n this.agd = null;\n } //en cas de probleme dans l'ouverture du fichier on affiche une erreur\n catch (Exception e) {\n System.out.print(\"Erreur d'ouverture du fichier en ecriture\\n\");\n }\n\n }",
"public void start() {\n boolean continua = true;\n Dati datiRMP;\n int codPiatto;\n int codRiga;\n int quantiCoperti;\n int quanteComande;\n String descPiatto;\n String catPiatto;\n Modulo modRMP = RMPModulo.get();\n Modulo modPiatto = PiattoModulo.get();\n Modulo modCategoria = CategoriaModulo.get();\n ModuloRisultati modRisultati = getModuloRisultati();\n Campo chiaveRMP;\n int codRMP;\n int codMenu;\n int[] codici;\n double qtaOff;\n double qtaCom;\n double gradimento = 0.0;\n PanCoperti panCoperti;\n\n try { // prova ad eseguire il codice\n\n /* azzera il numero di coperti serviti */\n panCoperti = getPanCoperti();\n panCoperti.setNumCopertiPranzo(0);\n panCoperti.setNumCopertiCena(0);\n\n /* svuota i dati del modulo risultati */\n getModuloRisultati().query().eliminaRecords();\n\n datiRMP = this.getDati();\n chiaveRMP = modRMP.getCampoChiave();\n\n /* spazzola le RMP trovate */\n for (int k = 0; k < datiRMP.getRowCount(); k++) {\n\n this.quanti++;\n\n codRMP = datiRMP.getIntAt(k, chiaveRMP);\n codPiatto = datiRMP.getIntAt(k, modRMP.getCampo(RMP.CAMPO_PIATTO));\n descPiatto = datiRMP.getStringAt(k,\n modPiatto.getCampo(Piatto.CAMPO_NOME_ITALIANO));\n catPiatto = datiRMP.getStringAt(k,\n modCategoria.getCampo(Categoria.CAMPO_SIGLA));\n\n codRiga = addPiatto(codPiatto, descPiatto, catPiatto);\n\n if (codRiga <= 0) {\n continua = false;\n break;\n }// fine del blocco if\n\n /* incrementa di 1 il numero di volte in cui il piatto è stato proposto\n * per questa riga risultati */\n incrementaCampo(codRiga, Campi.Ris.quanteVolte, 1);\n\n /* determina il numero dei coperti presenti nel menu al\n * quale questa RMP appartiene */\n codMenu = datiRMP.getIntAt(k, modRMP.getCampo(RMP.CAMPO_MENU));\n quantiCoperti = getQuantiCoperti(codMenu);\n\n /* incrementa il numero di coperti potenziali per questa riga risultati */\n incrementaCampo(codRiga, Campi.Ris.quantiCoperti, quantiCoperti);\n\n /* determina il numero di comande effettuate\n * per questa RMP */\n quanteComande = getQuanteComande(codRMP);\n\n /* incrementa il numero di comande effettuate per questa riga risultati */\n incrementaCampo(codRiga, Campi.Ris.quanteComande, quanteComande);\n\n /* interruzione nella superclasse */\n if (super.isInterrompi()) {\n continua = false;\n break;\n }// fine del blocco if\n\n } // fine del ciclo for\n\n /* spazzola le righe dei risultati per regolare il gradimento */\n if (continua) {\n codici = modRisultati.query().valoriChiave();\n for (int k = 0; k < codici.length; k++) {\n codRiga = codici[k];\n gradimento = 0.0;\n qtaOff = modRisultati.query()\n .valoreDouble(Campi.Ris.quantiCoperti.getCampo(), codRiga);\n qtaCom = modRisultati.query()\n .valoreDouble(Campi.Ris.quanteComande.getCampo(), codRiga);\n if (qtaOff != 0) {\n gradimento = qtaCom / qtaOff;\n gradimento = Lib.Mat.arrotonda(gradimento, 4);\n }// fine del blocco if\n modRisultati.query().registraRecordValore(codRiga,\n Campi.Ris.gradimento.getCampo(),\n gradimento);\n } // fine del ciclo for\n }// fine del blocco if\n\n datiRMP.close();\n\n getNavigatore().aggiornaLista();\n\n /* aggiorna il numero di coperti serviti */\n Filtro filtro;\n Number numero;\n Modulo moduloRMT = RMTModulo.get();\n Filtro filtroMenu = getFiltroMenu();\n Filtro filtroPranzo = FiltroFactory.crea(MenuModulo.get().getCampo(Menu.Cam.pasto), Ristorante.COD_DB_PRANZO);\n Filtro filtroCena = FiltroFactory.crea(MenuModulo.get().getCampo(Menu.Cam.pasto), Ristorante.COD_DB_CENA);\n filtro = new Filtro();\n filtro.add(filtroMenu);\n filtro.add(filtroPranzo);\n numero = moduloRMT.query().somma(RMT.Cam.coperti.get(), filtro);\n panCoperti.setNumCopertiPranzo(Libreria.getInt(numero));\n filtro = new Filtro();\n filtro.add(filtroMenu);\n filtro.add(filtroCena);\n numero = moduloRMT.query().somma(RMT.Cam.coperti.get(), filtro);\n panCoperti.setNumCopertiCena(Libreria.getInt(numero));\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }",
"@Override\n\tpublic void naoAtirou() {\n\t\tatirou=false;\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"public void Ordenamiento() {\n\n\t}",
"private void matar() {\n dead = true;\n tareaRestar.cancel();\n ventana.matar();\n\n juego.getFabricaE().seguir();\n\n ventana.dispose();\n }",
"public void recibir_estado_partida(){\n\n }",
"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}",
"public RespuestaBD crearRegistro(int codigoFlujo, int secuencia, int servicioInicio, int accion, int codigoEstado, int servicioDestino, String nombreProcedimiento, String correoDestino, String enviar, String mismoProveedor, String mismoCliente, String estado, int caracteristica, int caracteristicaValor, int caracteristicaCorreo, String metodoSeleccionProveedor, String indCorreoCliente, String indHermana, String indHermanaCerrada, String indfuncionario, String usuarioInsercion) {\n/* 342 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* 344 */ int elSiguiente = siguienteRegistro(codigoFlujo);\n/* 345 */ if (elSiguiente == 0) {\n/* 346 */ rta.setMensaje(\"Generando secuencia\");\n/* 347 */ return rta;\n/* */ } \n/* */ \n/* */ try {\n/* 351 */ String s = \"insert into wkf_detalle(codigo_flujo,secuencia,servicio_inicio,accion,codigo_estado,servicio_destino,nombre_procedimiento,correo_destino,enviar_solicitud,ind_mismo_proveedor,ind_mismo_cliente,estado,caracteristica,valor_caracteristica,caracteristica_correo,metodo_seleccion_proveedor,ind_correo_clientes,enviar_hermana,enviar_si_hermana_cerrada,ind_cliente_inicial,usuario_insercion,fecha_insercion) values (\" + codigoFlujo + \",\" + \"\" + elSiguiente + \",\" + \"\" + servicioInicio + \",\" + \"\" + accion + \",\" + \"\" + codigoEstado + \",\" + \"\" + ((servicioDestino == 0) ? \"null\" : Integer.valueOf(servicioDestino)) + \",\" + \"'\" + nombreProcedimiento + \"',\" + \"'\" + correoDestino + \"',\" + \"'\" + enviar + \"',\" + \"'\" + mismoProveedor + \"',\" + \"'\" + mismoCliente + \"',\" + \"'\" + estado + \"',\" + ((caracteristica == 0) ? \"null\" : (\"\" + caracteristica)) + \",\" + ((caracteristicaValor == 0) ? \"null\" : (\"\" + caracteristicaValor)) + \",\" + ((caracteristicaCorreo == 0) ? \"null\" : (\"\" + caracteristicaCorreo)) + \",\" + ((metodoSeleccionProveedor.length() == 0) ? \"null\" : (\"'\" + metodoSeleccionProveedor + \"'\")) + \",\" + ((indCorreoCliente.length() == 0) ? \"null\" : (\"'\" + indCorreoCliente + \"'\")) + \",\" + ((indHermana.length() == 0) ? \"null\" : (\"'\" + indHermana + \"'\")) + \",\" + ((indHermanaCerrada.length() == 0) ? \"null\" : (\"'\" + indHermanaCerrada + \"'\")) + \",\" + ((indfuncionario.length() == 0) ? \"null\" : (\"'\" + indfuncionario + \"'\")) + \",\" + \"'\" + usuarioInsercion + \"',\" + \"\" + Utilidades.getFechaBD() + \"\" + \")\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 398 */ rta = this.dat.executeUpdate2(s);\n/* 399 */ rta.setSecuencia(elSiguiente);\n/* */ }\n/* 401 */ catch (Exception e) {\n/* 402 */ e.printStackTrace();\n/* 403 */ Utilidades.writeError(\"%FlujoDetalleDAO:crearRegistro \", e);\n/* 404 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 406 */ return rta;\n/* */ }",
"public void datos_elegidos(){\n\n\n }",
"void berechneFlaeche() {\n\t}",
"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 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 }",
"private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }",
"public void obtenerTipificacionesCliente(Participante cliente)\n throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Entrada\");\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n if (cliente.getOidCliente() == null) {\n cliente.setTipificacionCliente(null);\n if(log.isDebugEnabled()) {//sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- NULO : \");\n UtilidadesLog.debug(\"---- cliente : \" + cliente.getOidCliente());\n } \n } else {\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n try {\n query.append(\" SELECT CLIE_OID_CLIE, \");\n query.append(\" CLAS_OID_CLAS, \");\n query.append(\" SBTI_OID_SUBT_CLIE, \");\n query.append(\" TCCL_OID_TIPO_CLASI, \");\n query.append(\" TICL_OID_TIPO_CLIE \");\n query.append(\" FROM V_MAE_TIPIF_CLIEN \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + cliente\n .getOidCliente());\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- TIPIF : \" + respuesta);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n if (respuesta.esVacio()) {\n cliente.setTipificacionCliente(null);\n } else {\n TipificacionCliente[] tipificaciones = new TipificacionCliente[\n respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n tipificaciones[i] = new TipificacionCliente();\n\n {\n BigDecimal oidClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"CLAS_OID_CLAS\");\n tipificaciones[i].setOidClasificacionCliente((\n oidClasificacionCliente != null) ? new Long(\n oidClasificacionCliente.longValue()) : null);\n }\n\n tipificaciones[i].setOidSubTipoCliente(new Long((\n (BigDecimal) respuesta\n .getValueAt(i, \"SBTI_OID_SUBT_CLIE\")).longValue()));\n\n {\n BigDecimal oidTipoClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"TCCL_OID_TIPO_CLASI\");\n tipificaciones[i].setOidTipoClasificacionCliente(\n (oidTipoClasificacionCliente != null)? new Long(\n oidTipoClasificacionCliente.longValue()) \n : null);\n }\n\n tipificaciones[i].setOidTipoCliente(new Long(((BigDecimal)\n respuesta.getValueAt(i, \"TICL_OID_TIPO_CLIE\"))\n .longValue()));\n }\n\n cliente.setTipificacionCliente(tipificaciones);\n }\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Salida\");\n }",
"public void ventaBilleteMaquina2()\n {\n maquina2.insertMoney(600);\n maquina1.printTicket();\n }",
"private static void registrarAuditoriaDetallesPlantillaFactura(Connexion connexion,PlantillaFactura plantillafactura)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getid_empresa().equals(plantillafactura.getPlantillaFacturaOriginal().getid_empresa()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getid_empresa().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getid_empresa()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getid_empresa().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.IDEMPRESA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getcodigo().equals(plantillafactura.getPlantillaFacturaOriginal().getcodigo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getcodigo();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getcodigo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getcodigo() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.CODIGO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getnombre().equals(plantillafactura.getPlantillaFacturaOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getdescripcion().equals(plantillafactura.getPlantillaFacturaOriginal().getdescripcion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getdescripcion();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getdescripcion() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.DESCRIPCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getes_proveedor().equals(plantillafactura.getPlantillaFacturaOriginal().getes_proveedor()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getes_proveedor()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getes_proveedor().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getes_proveedor()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getes_proveedor().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.ESPROVEEDOR,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getid_cuenta_contable_aplicada().equals(plantillafactura.getPlantillaFacturaOriginal().getid_cuenta_contable_aplicada()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getid_cuenta_contable_aplicada()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getid_cuenta_contable_aplicada().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getid_cuenta_contable_aplicada()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getid_cuenta_contable_aplicada().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.IDCUENTACONTABLEAPLICADA,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getid_cuenta_contable_credito_bien().equals(plantillafactura.getPlantillaFacturaOriginal().getid_cuenta_contable_credito_bien()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getid_cuenta_contable_credito_bien()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getid_cuenta_contable_credito_bien().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getid_cuenta_contable_credito_bien()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getid_cuenta_contable_credito_bien().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.IDCUENTACONTABLECREDITOBIEN,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getid_cuenta_contable_credito_servicio().equals(plantillafactura.getPlantillaFacturaOriginal().getid_cuenta_contable_credito_servicio()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getid_cuenta_contable_credito_servicio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getid_cuenta_contable_credito_servicio().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getid_cuenta_contable_credito_servicio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getid_cuenta_contable_credito_servicio().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.IDCUENTACONTABLECREDITOSERVICIO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getid_tipo_retencion_fuente_bien().equals(plantillafactura.getPlantillaFacturaOriginal().getid_tipo_retencion_fuente_bien()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getid_tipo_retencion_fuente_bien()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getid_tipo_retencion_fuente_bien().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getid_tipo_retencion_fuente_bien()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getid_tipo_retencion_fuente_bien().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.IDTIPORETENCIONFUENTEBIEN,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getid_tipo_retencion_fuente_servicio().equals(plantillafactura.getPlantillaFacturaOriginal().getid_tipo_retencion_fuente_servicio()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getid_tipo_retencion_fuente_servicio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getid_tipo_retencion_fuente_servicio().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getid_tipo_retencion_fuente_servicio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getid_tipo_retencion_fuente_servicio().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.IDTIPORETENCIONFUENTESERVICIO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getid_tipo_retencion_iva_bien().equals(plantillafactura.getPlantillaFacturaOriginal().getid_tipo_retencion_iva_bien()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getid_tipo_retencion_iva_bien()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getid_tipo_retencion_iva_bien().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getid_tipo_retencion_iva_bien()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getid_tipo_retencion_iva_bien().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.IDTIPORETENCIONIVABIEN,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getid_tipo_retencion_iva_servicio().equals(plantillafactura.getPlantillaFacturaOriginal().getid_tipo_retencion_iva_servicio()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getid_tipo_retencion_iva_servicio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getid_tipo_retencion_iva_servicio().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getid_tipo_retencion_iva_servicio()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getid_tipo_retencion_iva_servicio().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.IDTIPORETENCIONIVASERVICIO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(plantillafactura.getIsNew()||!plantillafactura.getid_cuenta_contable_gasto().equals(plantillafactura.getPlantillaFacturaOriginal().getid_cuenta_contable_gasto()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(plantillafactura.getPlantillaFacturaOriginal().getid_cuenta_contable_gasto()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=plantillafactura.getPlantillaFacturaOriginal().getid_cuenta_contable_gasto().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(plantillafactura.getid_cuenta_contable_gasto()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=plantillafactura.getid_cuenta_contable_gasto().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),PlantillaFacturaConstantesFunciones.IDCUENTACONTABLEGASTO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}",
"public void run() {\n\n\t// DecimalFormat df = new DecimalFormat(\"#.###\");\n\tint frecuencia = 0;\n\n\twhile (true) {\n\n\t if (rearmarAne) {\n\t\tlogger.warn(\"Termino el hilo de Anemometro porque se ha rearmado Irrisoft\");\n\t\treturn;\n\t }\n\t tiempoini = (System.nanoTime());\n\t // Cojo los datos a enviar por el puerto serie.\n\t churro = datosInicio();\n\n\t // Duermo el tiempo requerido\n\t logger.info(\"La freceuncia de lectura de Anemometro es: \"\n\t\t + sens.getFrec_lect());\n\n\t // Duermo el sensor el un tiempo, para recibir otra lectura.\n\t dormirSensor();\n\n\t try {\n\t\tserialcon.cogesemaforo(sens.getNum_placa());\n\t\t// Purgo el puerto\n\t\tserialcon.serialPort.purgePort(SerialPort.PURGE_RXCLEAR\n\t\t\t| SerialPort.PURGE_TXCLEAR);\n\n\t\tif (serialcon.serialPort.writeBytes(churro)) {\n\n\t\t if (logger.isInfoEnabled()) {\n\t\t\tlogger.info(\"Comando mandado al puerto serie !\"\n\t\t\t\t+ Arrays.toString(churro));\n\t\t }\n\t\t} else {\n\t\t if (logger.isErrorEnabled()) {\n\t\t\tlogger.error(\"Fallo en mandar comando al puerto serie! \"\n\t\t\t\t+ Arrays.toString(churro));\n\t\t }\n\t\t // RECONECTO\n\t\t // serialcon.purga_puerto(sens.getNum_placa(),\n\t\t // serialcon.serialPort.getPortName());\n\t\t}\n\n\t\t// Leo la respuesta\n\t\tbufferResp = serialcon.serialPort.readBytes(6, 4000);\n\t\t//Trato las lecturas para tener el dato.\n\t\tlectura = sacarLecturas(bufferResp);\n\t\t\n\t\t// Escribo en el panel la lectura\n\t\t// ponelecturas(sens);\n\n\t\t// Irrisoft.window.panelecturasens.getLblectane().setText(medicion+\" pulsos , velocidad \"+velocidad+\n\t\t// \" m/s\");\n\t\tfrecuencia = (int) (frecuencia + ((System.nanoTime() - tiempoini) / Math\n\t\t\t.pow(10, 9)));\n\t\tif (logger.isWarnEnabled()) {\n\t\t logger.warn(\"Tiempo pasado bucle hiloAnemometro: \"\n\t\t\t + frecuencia);\n\t\t}\n\n\t\t// Insertar registro en la pasarela\n\t\tif (frecuencia >= sens.getFrec_env()) {\n\t\t // Creo la lectura para enviar a GIS.\n\t\t LecturasSensor lecturaFinal = cogerLectura(lectura);\n\t\t // Envio la lectura a GIS.\n\t\t enviarLecturasGIS(lecturaFinal);\n\n\t\t frecuencia = 0;\n\t\t}\n\n\t } catch (SerialPortTimeoutException | SerialPortException e) {\n\t\tif (logger.isErrorEnabled()) {\n\t\t if (e instanceof SerialPortTimeoutException)\n\t\t\tlogger.error(\"TIMEOUUUUUT en la lectura del buffer serie: \"\n\t\t\t\t+ e.getMessage());\n\t\t else if (e instanceof SerialPortException)\n\t\t\tlogger.error(e.getMessage());\n\t\t}\n\t\tserialcon.sueltasemaforo(sens.getNum_placa());\n\t }\n\t serialcon.sueltasemaforo(sens.getNum_placa());\n\t}\n\n }",
"private void datosVehiculo(boolean esta_en_revista) {\n\t\ttry{\n\t\t\t String Sjson= Utils.doHttpConnection(\"http://datos.labplc.mx/movilidad/vehiculos/\"+placa+\".json\");\n\t\t\t JSONObject json= (JSONObject) new JSONTokener(Sjson).nextValue();\n\t\t\t JSONObject json2 = json.getJSONObject(\"consulta\");\n\t\t\t JSONObject jsonResponse = new JSONObject(json2.toString());\n\t\t\t JSONObject sys = jsonResponse.getJSONObject(\"tenencias\");\n\t\t\t \n\t\t\t if(sys.getString(\"tieneadeudos\").toString().equals(\"0\")){\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.sin_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_verde);\n\t\t\t }else{\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.con_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_rojo);\n\t\t\t \tPUNTOS_APP-=PUNTOS_TENENCIA;\n\t\t\t }\n\t\t\t \n\t\t\t JSONArray cast = jsonResponse.getJSONArray(\"infracciones\");\n\t\t\t String situacion;\n\t\t\t boolean hasInfraccion=false;\n\t\t\t for (int i=0; i<cast.length(); i++) {\n\t\t\t \tJSONObject oneObject = cast.getJSONObject(i);\n\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t situacion = (String) oneObject.getString(\"situacion\");\n\t\t\t\t\t\t\t if(!situacion.equals(\"Pagada\")){\n\t\t\t\t\t\t\t\t hasInfraccion=true;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t }\n\t\t\t }\n\t\t\t if(hasInfraccion){\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.tiene_infraccion));\n\t\t\t\t \tautoBean.setImagen_infraccones(imagen_rojo);\n\t\t\t\t \tPUNTOS_APP-=PUNTOS_INFRACCIONES;\n\t\t\t }else{\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.no_tiene_infraccion));\n\t\t\t\t autoBean.setImagen_infraccones(imagen_verde);\n\t\t\t }\n\t\t\t JSONArray cast2 = jsonResponse.getJSONArray(\"verificaciones\");\n\t\t\t if(cast2.length()==0){\n\t\t\t \t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t }\n\t\t\t\t\t Date lm = new Date();\n\t\t\t\t\t String lasmod = new SimpleDateFormat(\"yyyy-MM-dd\").format(lm);\n\t\t\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\tBoolean yaValide=true;\n\t\t\t\t for (int i=0; i<cast2.length(); i++) {\n\t\t\t\t \tJSONObject oneObject = cast2.getJSONObject(i);\n\t\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\tif(!esta_en_revista&&yaValide){\n\t\t\t\t\t\t\t\t\t\t autoBean.setMarca((String) oneObject.getString(\"marca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setSubmarca((String) oneObject.getString(\"submarca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setAnio((String) oneObject.getString(\"modelo\"));\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_revista(getResources().getString(R.string.sin_revista));\n\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_revista(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t Calendar calendar = Calendar.getInstance();\n\t\t\t\t\t\t\t\t\t\t int thisYear = calendar.get(Calendar.YEAR);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t if(thisYear-Integer.parseInt(autoBean.getAnio())<=10){\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_nuevo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_verde);\n\t\t\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_viejo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t\t PUNTOS_APP-=PUNTOS_ANIO_VEHICULO;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t yaValide=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t Date date1 = formatter.parse(lasmod);\n\t\t\t\t\t\t\t\t Date date2 = formatter.parse(oneObject.getString(\"vigencia\").toString());\n\t\t\t\t\t\t\t\t int comparison = date2.compareTo(date1);\n\t\t\t\t\t\t\t\t if((comparison==1||comparison==0)&&!oneObject.getString(\"resultado\").toString().equals(\"RECHAZO\")){\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.tiene_verificaciones)+\" \"+oneObject.getString(\"resultado\").toString());\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_verde); \n\t\t\t\t\t\t\t\t\t hasVerificacion=true;\n\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t\t\t\t\t hasVerificacion=false;\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t } catch (ParseException e) {\n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t if(!hasVerificacion){\n\t\t\t\t \t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t\t }\n\t\t\t \n\t\t\t}catch(JSONException e){\n\t\t\t\tDatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t}\n\t\t\n\t}",
"private void adicionarFaltas(final String matricula) {\n firebase.child(\"Alunos/\" + matricula + \"/faltas\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n long qtdAtual = (long) dataSnapshot.getValue();\n firebase.child(\"Alunos/\" + matricula + \"/faltas\").setValue(qtdAtual + 1);\n Toast.makeText(getContext(), \"Falta adicionada com sucesso.\", Toast.LENGTH_SHORT).show();\n\n if (alunoEncontrado == null) {\n Log log = new Log(matricula, 0);\n log.faltas(\"Adicionar\");\n } else {\n Log log = new Log(alunoEncontrado, 0);\n log.faltas(\"Adicionar\");\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }",
"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 }",
"public static void main(String [ ] args){\n\t\t Fecha Hoy = new Fecha(12,12,2020);\r\n\t\t ArrayList<Cuenta> cuentas = new ArrayList<Cuenta>();\r\n\t\t \r\n\t\t Cuenta c0 = new CtaAhorros(10000,10);\r\n\t\t Cuenta c1 = new CtaCheques(256070,0);\r\n\t\t Cuenta c2 = new CtaCredito(13245,100);\r\n\t\t Cuenta c3 = new CtaCheques(765,20);\r\n\t\t Cuenta c4 = new CtaAhorros(9000,20);\r\n\t\t Cuenta c5 = new CtaAhorros(2300,10);\r\n\t\t Cuenta c6 = new CtaCredito(25000,12);\r\n\t\t \r\n\t\t cuentas.add(c0);\r\n\t\t cuentas.add(c1);\r\n\t\t cuentas.add(c2);\r\n\t\t cuentas.add(c3);\r\n\t\t cuentas.add(c4);\r\n\t\t cuentas.add(c5);\r\n\t\t \r\n\t\t Cliente C1=new Cliente(\"QUIJOTE\",cuentas,\"QX400\");\r\n\t\t Hoy.AvanzarTiempo(11,1,0);\r\n\t\t \r\n\t\t C1.depositar(1,1200, Hoy);\r\n\t\t C1.retirar(2,1100, Hoy);\r\n\t\t System.out.println(\"saldo cuenta 3:\"+C1.consultar(3,Hoy));\r\n\t\t C1.depositar(4,600, Hoy);\r\n\t\t \r\n\t\t //C1.reportarEdosCtas();\r\n\t\t \r\n\t\t }",
"private static void VeureVendes (BaseDades bd) {\n ArrayList <Venda> llista = new ArrayList <Venda>();\n llista = bd.consultaVen(\"SELECT * FROM VENDES\");\n if (llista != null)\n for (int i = 0; i<llista.size(); i++) {\n Venda p = (Venda) llista.get(i);\n Producte prod = bd.consultarUnProducte(p.getIdproducte());\n System.out.println(\"ID Venda =>\"+p.getNumvenda()+\"* Producte: \"\n +prod.getDescripcio()+\"* Quantitat: \"+p.getQuantitat()\n +\"* Data: \"+p.getDatavenda());\n }\n }",
"public static void main(String[] args) {\n \n //Joueur zidane=new Joueur(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,34,Sponsor.FLY_EMIRATES);\n // Attaquant messi=new Attaquant(\"zidane\",\"zinedine\",\"zizou\", \"12/07/1995\",\"marseille\",\"francais\",75.5f,1.82f, Sexe.HOMME,Pied.AMBIDEXTRE,Tenue.SHORT,10,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Milieu xavi=new Milieu(\"xavi\",\"xava\",\"go\", \"12/07/1990\",\"barcelone\",\"espagnol\",78.5f,1.85f, Sexe.HOMME,Pied.DROIT,Tenue.JOGGING,15,Sponsor.FLY_EMIRATES,PosteJoueur.DEFENSEUR);\n //Defenseur ramos=new Defenseur(\"xavi\",\"ramos\",\"ifjiej\", \"18/07/1990\",\"madrid\",\"espagnol\",78.5f,1.88f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES,PosteJoueur.MILIEU);\n //ramos.celebrer();\n //ramos.defendre();\n //Gardien neuer=new Gardien(\"neuer\",\"manuel\",\"ifjiej\", \"18/07/1991\",\"Bayern\",\"bayern\",88.5f,1.95f, Sexe.HOMME,Pied.GAUCHE,Tenue.SHORT,15,Sponsor.FLY_EMIRATES);\n //neuer.sortir();\n //Spectateur paul=new Spectateur(\"bollart\",12,false,false);\n //Arbitre guillaume=new Arbitre(\"ovigneur\",\"guillaume\",\"guigou\",\"12/07/1676\",\"Lille\", \"France\", 1.98f,1.67f,Sexe.HOMME,Pied.DROIT,Tenue.SHORT,48,Sponsor.MORELLE);\n Equipe marseille= new Equipe (NomEquipe.OM);\n Equipe paris= new Equipe (NomEquipe.PSG);\n Match match=new Match(TypeTerrain.GAZON,marseille,paris);\n match.simulerMatch();\n System.out.println(match.equipeGagnante);\n System.out.println(marseille.attaquants[2].getStatTir());\n \n Tournoi tournoi = new Tournoi(); \n tournoi.qualificaionsTournoi();\n tournoi.huitiemes();\n tournoi.quarts();\n tournoi.demi();\n tournoi.finale();\n \n System.out.println(tournoi.getEquipeEnLis());\n System.out.println(tournoi.getEquipeQualifie());\n System.out.println(tournoi.getEquipePerdanteHuit());\n System.out.println(tournoi.getEquipeGagnanteHuit());\n System.out.println(tournoi.getEquipePerdanteQuarts());\n System.out.println(tournoi.getEquipeGagnanteQuarts());\n System.out.println(tournoi.getEquipePerdanteDemi());\n System.out.println(tournoi.getEquipeGagnanteDemi());\n System.out.println(tournoi.getEquipeFinale());\n\n \n \n //Mise en place de \"l'interface\"\n Scanner sc = new Scanner(System.in);\n \n //Choix du mode de jeu\n System.out.println(\"\\n *** Choix du mode de jeu *** \\n\\t| tournoi : taper 1|\\n\\t| mode solo : taper 2|\");\n int modeDeJeu = sc.nextInt();\n sc.nextLine(); //On vide la ligne\n \n //AJOUTER UNE EXCEPTION POUR LE MODE DE JEU\n \n \n \n //Choix de l'equipe a l'aide d'un scanner\n// System.out.println(\"Choisissez votre équipe :\");\n// NomEquipe equipe;\n// Equipe equipeChoisit = new Equipe(nomEquipe);\n \n\n\n /*Scanner sc = new Scanner(System.in);\n System.out.println(\"Voulez vous disputer un match ? Oui=1 ou NON=2 \");\n int i = sc.nextInt();\n System.out.println(\"Saisissez le numéro de l'equipe avec laquelle vous voulez Jouez \"\n + \"PSG :1\"\n + \"MARSEILLE:2 \");\n //On vide la ligne avant d'en lire une autre\n sc.nextLine();\n int equipe = sc.nextInt(); \n System.out.println(\"FIN ! \");\n \n switch(equipe) {\n case 1:\n Equipe paris= new Equipe (NomEquipe.PSG);\n System.out.println(paris.stade);\n break;\n case 2 :\n Equipe marseille= new Equipe (NomEquipe.OM);\n System.out.println(marseille.stade);\n \n }*/\n }",
"public void fecharAgenda(){\n\t\tsetBooSelecionouDataHora (false);\n\t\tsetBooSelecionouUsuario(false);\n\t\tsetBooIdentifiquese(false);\n\t\tsetBooSucesso(false);\n\t\tsetStrCelular(\"\");\n\t\tRequestContext.getCurrentInstance().closeDialog(0);\n\t\tthis.refresh();\n\t}",
"@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }"
] | [
"0.6355217",
"0.633617",
"0.6291215",
"0.62416637",
"0.6234504",
"0.6155234",
"0.6138209",
"0.6126375",
"0.6121833",
"0.60983217",
"0.6083376",
"0.6073309",
"0.6071524",
"0.60612524",
"0.60382456",
"0.6030006",
"0.6028387",
"0.59969866",
"0.59947574",
"0.5985296",
"0.59630066",
"0.5959478",
"0.5953037",
"0.5937777",
"0.5913954",
"0.59136474",
"0.59126335",
"0.5911991",
"0.5907168",
"0.58926284",
"0.5890493",
"0.58891964",
"0.58852994",
"0.5879418",
"0.58784425",
"0.5876584",
"0.5871768",
"0.586943",
"0.58620596",
"0.58609796",
"0.5854231",
"0.58495295",
"0.5848854",
"0.5838376",
"0.5834072",
"0.58293504",
"0.58277607",
"0.58083814",
"0.58060056",
"0.58038366",
"0.57982075",
"0.57961",
"0.5796034",
"0.5791855",
"0.57812464",
"0.57775635",
"0.57766974",
"0.5774984",
"0.5774982",
"0.57684577",
"0.57591873",
"0.5759163",
"0.57578605",
"0.5755848",
"0.5755119",
"0.5751281",
"0.5750475",
"0.57502097",
"0.57452404",
"0.57438916",
"0.57407624",
"0.57401174",
"0.57342064",
"0.5728645",
"0.57247245",
"0.57224953",
"0.5720307",
"0.5712641",
"0.5707999",
"0.5703561",
"0.57018554",
"0.5700949",
"0.569938",
"0.56976473",
"0.56938857",
"0.5689878",
"0.5684052",
"0.5680658",
"0.56759816",
"0.56759405",
"0.5665266",
"0.56632024",
"0.5660482",
"0.5659055",
"0.5656628",
"0.56552124",
"0.5652293",
"0.5651224",
"0.5647556",
"0.5641906"
] | 0.5721115 | 76 |
TODO Autogenerated method stub | public static void main(String[] args) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void SetUpperLayer(BaseLayer pUpperLayer) {
if (pUpperLayer == null)
return;
this.p_aUpperLayer.add(nUpperLayerCount++, pUpperLayer);
// nUpperLayerCount++;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public String GetLayerName() {
return pLayerName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public BaseLayer GetUnderLayer() {
if (p_UnderLayer == null)
return null;
return p_UnderLayer;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public BaseLayer GetUpperLayer(int nindex) {
if (nindex < 0 || nindex > nUpperLayerCount || nUpperLayerCount < 0)
return null;
return p_aUpperLayer.get(nindex);
} | {
"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 |
compares two Person objects by their pay grades. | @Override
public int compare(Person o1, Person o2) {
return o1.payGrade - o2.payGrade;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test \n\tpublic void TestStudentGPA() throws PersonException{\n\t\tArrayList<Enrollment> EnrolledStudents = new ArrayList<Enrollment>();\n\t\tfor (int i = 0; i < Students.size(); i++){\n\t\t\tStudent student = Students.get(i);\n\t\t\tfor (int j = 0; j < Sections.size(); j++){\n\t\t\t\tSection section = Sections.get(j);\n\t\t\t\tEnrollment enrolled = new Enrollment(student.getStudentID(),section.getSectionID());\n\t\t\t\tenrolled.setGrade((i*10)); // Assumes each student gets a consistent grade in every section! (Otherwise average GPAs would be a bit tougher)\n\t\t\t\tEnrolledStudents.add(enrolled);\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<Double> StudentsGPA = new ArrayList<Double>();\n\t\tfor (int i = 0; i < EnrolledStudents.size(); i+=6) {\n\t\t\t\tif (EnrolledStudents.get(i).getGrade() >= 90)\n\t\t\t\t\tStudentsGPA.add(4.0);\n\t\t\t\telse if (EnrolledStudents.get(i).getGrade() >= 80)\n\t\t\t\t\tStudentsGPA.add(3.66);\n\t\t\t\telse if (EnrolledStudents.get(i).getGrade() >= 70)\n\t\t\t\t\tStudentsGPA.add(3.33);\n\t\t\t\telse if (EnrolledStudents.get(i).getGrade() >= 60)\n\t\t\t\t\tStudentsGPA.add(3.0);\n\t\t\t\telse if (EnrolledStudents.get(i).getGrade() >= 50)\n\t\t\t\t\tStudentsGPA.add(2.66);\n\t\t\t\telse if (EnrolledStudents.get(i).getGrade() >= 40)\n\t\t\t\t\tStudentsGPA.add(2.33);\n\t\t\t\telse if (EnrolledStudents.get(i).getGrade() >= 30)\n\t\t\t\t\tStudentsGPA.add(2.0);\n\t\t\t\telse if (EnrolledStudents.get(i).getGrade() >= 20)\n\t\t\t\t\tStudentsGPA.add(1.66);\n\t\t\t\telse if (EnrolledStudents.get(i).getGrade() >= 10)\n\t\t\t\t\tStudentsGPA.add(1.33);\n\t\t\t\telse \n\t\t\t\t\tStudentsGPA.add(1.0);\n\t\t}\n\t\tassertTrue(StudentsGPA.get(0) == 1.0);\n\t\tassertTrue(StudentsGPA.get(1) == 1.33);\n\t\tassertTrue(StudentsGPA.get(2) == 1.66);\n\t\tassertTrue(StudentsGPA.get(3) == 2.0);\n\t\tassertTrue(StudentsGPA.get(4) == 2.33);\n\t\tassertTrue(StudentsGPA.get(5) == 2.66);\n\t\tassertTrue(StudentsGPA.get(6) == 3.0);\n\t\tassertTrue(StudentsGPA.get(7) == 3.33);\n\t\tassertTrue(StudentsGPA.get(8) == 3.66);\n\t\tassertTrue(StudentsGPA.get(9) == 4.0);\n\t\t\n\t\tArrayList<Double> CoursesGPA = new ArrayList<Double>();\n\t\tdouble count = 0;\n\t\tfor (int i = 0; i < EnrolledStudents.size(); i+=6){\n\t\t\tcount += EnrolledStudents.get(i).getGrade();\n\t\t}\n\t\tif (count == 450){ // Again, assumes a simple case (average grade = 45 -> average GPA = 2.497)\n\t\t\tCoursesGPA.add(2.497);\n\t\t}\n\t\tassertTrue(CoursesGPA.get(0) == 2.497);\n\t\t\n\t}",
"public int compare(Person a, Person b){\n int aWeight = (int)a.getWeight();\n int bWeight = (int)b.getWeight();\n return aWeight - bWeight;\n }",
"@Test\n\tpublic void testAssignGrade2() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor2\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertFalse(grade.equals(new Integer(90)));\n\t}",
"@Override\n\t\tpublic int compare(ScoreSum lhs, ScoreSum rhs) {\n\t\t\tScoreSum temp1 = lhs;\n\t\t\tScoreSum temp2 = rhs;\n\t\t\tint num = temp1.getScore().compareTo(temp2.getScore());\n\t\t\tif (num == 0)\n\t\t\t\treturn temp1.getAthleteName().compareTo(temp2.getAthleteName());\n\t\t\treturn num;\n\t\t}",
"public static void main(String[] args) {\n Map<String,Integer> firstGrading = TestResults.getOriginalGrades();\n Map<String, Integer> secondGrading = TestResults.getMakeUpGrades();\n\n for (var student : secondGrading.entrySet()) {\n Integer firstGrade = firstGrading.get(student.getKey()); //getValue?\n Integer secondGrade = secondGrading.get(student.getKey());\n\n if (secondGrade > firstGrade) {\n firstGrading.put(student.getKey(),secondGrade);\n }\n }\n System.out.println(\"The final student grades are:\");\n firstGrading.forEach(\n (k,v) -> System.out.println(\"Student: \" + k + \" with \" + \" Grade: \" + v + \".\")\n );\n\n\n }",
"@Override\n\t\t\tpublic int compare(Object o1, Object o2) {\n\t\t\t\tint result = ((Student)o2).getAge() - ((Student)o1).getAge();\n\t\t\t\tif (result == 0 ) result = 1;\n\t\t\t\treturn result;\n\t\t\t}",
"@Override\n\tpublic int compareTo(Student other) {\n\t\tdouble gpaDif = other.getGpa() - this.getGpa(); // could reverse\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// ordering by changing\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// these two terms\n\t\tif (Math.abs(gpaDif) < 0.000001) { // for practical reasons, if their\n\t\t\t\t\t\t\t\t\t\t\t// GPAs are close enough, then they\n\t\t\t\t\t\t\t\t\t\t\t// can be considered equal\n\t\t\treturn this.getName().compareTo(other.getName());\n\t\t} else if (gpaDif < 0) {\n\t\t\t// could have also used Double.compare(this.getGpa(), other.getGpa());\n\t\t\treturn -1;\n\t\t} else {\n\t\t\treturn 1;\n\t\t}\n\t\t/*\n\t\t * Note that we CANNOT return gpaDif because Java will automatically\n\t\t * cast this double to an int. During this casting, 0.5 would be casted\n\t\t * to 0, which would be wrong.\n\t\t */\n\t}",
"@Override\n public void addGrade(String firstName, String lastName, int pID, String grade) {\n Student s = new Student(firstName, lastName, pID);\n Grade g = new Grade(grade);\n\n for (Student key : map.keySet()) {\n if (key.compareTo(s) == 0) {\n map.replace(key, g);\n return;\n }\n }\n\n map.put(s, g);\n\n }",
"public int compareTo(Person otherPerson) {\n if (this.bankroll == otherPerson.getBankroll()) {\n //if they have same amount\n return 0;\n } else if (this.bankroll < otherPerson.getBankroll()) {\n //if other person has more money\n return 1;\n } else {\n //if other person has less money\n return -1;\n }\n }",
"@Test\n\tpublic void testAssignGrade() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertTrue(grade.equals(new Integer(90)));\n\t}",
"@Override\n\tpublic int compare(Student s1, Student s2) {\n\t\tif(s1.grade>s2.grade) {\n\t\t\treturn 1;\n\t\t}\n\t\tif(s1.grade<s2.grade) {\n\t\t\treturn -1;\n\t\t}\n\t\tif(s1.grade==s2.grade) {\n\t\t\treturn s1.name.compareTo(s2.name);\n\t\t}\n\t\treturn 0;\n\t\t\n\t}",
"@Override\n\t\tpublic int compareTo(student that) {\n\t\t\treturn that.gpa - this.gpa;\n\t\t}",
"@Override\n public int compare(Student s1, Student s2) {\n return (int)(1000*(s2.getGPA()-s1.getGPA()));\n }",
"@Override\n\tpublic int compare(Student one, Student two) {\n\t\t/*\n\t\t * Note that we should not use \"this\" in this method. That is because\n\t\t * \"this\" refers to the current object, not necessarily the two that we\n\t\t * are comparing. \"this\" is just acting as something that can compare\n\t\t * two other things.\n\t\t */\n\n\t\tint temp = one.getName().compareTo(two.getName());\n\t\tif (temp == 0) {\n\t\t\treturn one.compareTo(two); // will compare by gpa next.\n\t\t} else {\n\t\t\treturn temp;\n\t\t}\n\t\t\n\t\t/* If you don't like that version, here is an equivalent statement:\n\t\t * \n\t\tint temp = one.getName().compareTo(two.getName());\n\t\tif (temp == 0) {\n\t\t\tdouble gpaDif = two.getGpa() - one.getGpa(); \n\t\t\tif (Math.abs(gpaDif) < 0.000001) {\n\t\t\t\treturn one.getName().compareTo(two.getName());\n\t\t\t} else if (gpaDif < 0) {\n\t\t\t\treturn -1;\n\t\t\t} else {\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t} else {\n\t\t\treturn temp;\n\t\t} */\n\t}",
"public static Object[] question4(Student student1, Student student2)\r\n {\r\n \r\n int student1HighestGrade = 0;\r\n double student1total = 0;\r\n double student2total = 0;\r\n int student2HighestGrade = 0; \r\n double student1AverageGrade = 0;\r\n double student2AverageGrade = 0; \r\n Student bestAverageGradeStudent = student1;\r\n Student bestHighGradeStudent = student2; \r\n \r\n // Your code goes Here:\r\n for(int i = 0; i < 8; i++)\r\n {\r\n if(student1HighestGrade < student1.getExamScore(i))\r\n {\r\n \r\n student1HighestGrade = student1.getExamScore(i);\r\n }\r\n \r\n if(student2HighestGrade < student2.getExamScore(i))\r\n {\r\n student2HighestGrade = student2.getExamScore(i);\r\n }\r\n \r\n }\r\n if (bestHighGradeStudent == student2)\r\n {\r\n bestHighGradeStudent = student2;\r\n }\r\n else \r\n {\r\n bestAverageGradeStudent = student1;\r\n }\r\n \r\n \r\n \r\n \r\n for(int c = 0;c < 8; c++)\r\n {\r\n student1total += student1.getExamScore(c);\r\n }\r\n student1AverageGrade = student1total/8;\r\n \r\n for(int d = 0; d < 8; d++)\r\n {\r\n student2total += student2.getExamScore(d);\r\n }\r\n student2AverageGrade = student2total/8;\r\n \r\n \r\n \r\n \r\n // Necessary for Unit Test \r\n return new Object[] {student1HighestGrade, student2HighestGrade, student1AverageGrade, student2AverageGrade, bestHighGradeStudent, bestAverageGradeStudent}; \r\n }",
"public int compare(Employee a, Employee b)\n\t{\n\t\treturn a.Salary - b.Salary;\n\t}",
"@Override\n public int compare(Student student1, Student student2) {\n\n if(student1.getAge() == student2.getAge()) {\n //if age same then check with names\n\n if(student1.getName().compareTo(student2.getName()) == 0)\n //if names are also same then check with id\n return student1.getId().compareTo(student2.getId());\n\n else\n //if names are not same\n return student1.getName().compareTo(student2.getName());\n }\n\n else if(student1.getAge()>student2.getAge())\n //if ages are not same(student 1 age is greater than student2)\n return 1;\n\n else\n //if student2 age is greater than student1\n return -1;\n }",
"private static void print_Final(Gradebook gradebook, String[] flags){\n if (flags[3] != null && flags[3].equals(\"G\")){\n List<Student> studentsList = gradebook.getAllStudents();\n //Map<Student, Double>\n Map<Double, List<Student>> grades = new HashMap<Double, List<Student>>();\n Set<Double> gradeSet = new HashSet<Double>();\n\n for(Student s : studentsList){\n double grade = gradebook.getGradeStudent(s);\n List<Student> studs = grades.get(grade);\n\n if(studs == null){\n studs = new ArrayList<Student>();\n }\n\n studs.add(s);\n grades.put(grade, studs);\n gradeSet.add(grade);\n }\n\n List<Double> gradeList = new ArrayList<Double>(gradeSet);\n Collections.sort(gradeList, Collections.reverseOrder());\n\n DecimalFormat df = new DecimalFormat(\"#.####\"); //Round to 4 decimal places\n df.setRoundingMode(RoundingMode.HALF_UP);\n for(Double d : gradeList){\n\n List<Student> studs = grades.get(d);\n for(Student s : studs){\n\n System.out.println(\"(\" + s.getLast() + \", \" + s.getFirst() + \", \" + df.format(d) + \")\");\n }\n }\n } else if (flags[4] != null && flags[4].equals(\"A\")){\n //compare override class at bottom of file\n List<Student> studentsAlpha = gradebook.getAllStudents();\n Collections.sort(studentsAlpha, new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n if ( o2.getLast().compareToIgnoreCase(o1.getLast()) == 0) {\n return o1.getFirst().compareToIgnoreCase(o2.getFirst());\n } else {\n return o1.getLast().compareToIgnoreCase(o2.getLast());\n }\n }\n });\n\n DecimalFormat df = new DecimalFormat(\"#.####\"); //Round to 4 decimal places\n df.setRoundingMode(RoundingMode.HALF_UP);\n for (Student stud: studentsAlpha) {\n System.out.println(\"(\" + stud.getLast() + \", \" + stud.getFirst() + \", \" + df.format(gradebook.getGradeStudent(stud)) + \")\");\n }\n\n }\n else{\n throw new IllegalArgumentException(\"Grade or Alphabetical flag missing.\");\n }\n return;\n }",
"static void compareEmployeeSalary(EmployeeQ7 e1, EmployeeQ7 e2) {\n\t\tif (e1.getSalary() > e2.getSalary()) {\n\t\t\te1.display();\n\t\t} else {\n\t\t\te2.display();\n\t\t}\n\n\t}",
"public boolean Equal(Person other){\n\t\tboolean ret_val = true;\n\t\tint nt = 0;\n\t\tint thisAge = this.GetAge();\n\t\tint otherAge = other.GetAge();\n\t\tif (!this.Compare(thisAge,otherAge)){\n\t\t\tret_val = false ;\n\t\t} \n\t\telse { \n\t\t\tint thisSalary = this.GetSalary();\n\t\t\tint otherSalary = other.GetSalary();\n\t\t if (!this.Compare(thisSalary, otherSalary)){\n\t\t \tret_val = false ;\n\t\t } \n\t\t else {\n\t\t \tboolean thisMarried = this.GetMarried();\n\t\t \tboolean otherMarried = other.GetMarried();\n\t\t \tif (thisMarried) {\n\t\t \t\tif (!otherMarried){\n\t\t \t\t\tret_val = false;\n\t\t \t\t} \n\t\t\t \t \telse {\n\t\t\t \t \t\tnt = 0 ;\n\t\t\t \t \t}\n\t\t \t}\n\t\t\t\telse{\n\t\t\t\t\tif (otherMarried){\n\t\t\t\t\t\tret_val = false;\n\t\t\t\t\t} \n\t\t\t\t else {\n\t\t\t\t \tnt = 0 ;\n\t\t\t\t } \n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\treturn ret_val ;\n }",
"@Override\n\t\t\tpublic int compare(Person o1, Person o2) {\n\t\t\t\treturn o1.getAge().compareTo(o2.getAge());\n\t\t\t}",
"@Override\r\n\tpublic int compare(Student_UsingComparator o1, Student_UsingComparator o2) {\n\t\treturn o1.studentage-o2.studentage;\r\n\t}",
"@Override\n public int compareTo(Student other) {\n double compareCgpa = this.cgpa - other.cgpa;\n if (compareCgpa > 0) return -1;\n else if (compareCgpa < 0) return 1;\n\n // Sort Students by name in ascending order.\n int compareName = this.name.compareTo(other.name);\n if (compareName > 0) return 1;\n else if (compareName < 0) return -1;\n\n // Sort Students by id in ascending order.\n return this.id > other.id ? 1 : -1;\n }",
"@Test\n public void isSameGrade() {\n assertTrue(MATHS_GRADE.isSameGrade(MATHS_GRADE));\n\n // null -> returns false\n assertFalse(MATHS_GRADE.isSameGrade(null));\n\n // same subject name and graded item, different grade -> returns true\n Grade editedMaths = new GradeBuilder(MATHS_GRADE)\n .withGrade(VALID_GRADE_SCIENCE).build();\n assertTrue(MATHS_GRADE.isSameGrade(editedMaths));\n\n // different subject name, all other attributes same -> returns false\n editedMaths = new GradeBuilder(MATHS_GRADE)\n .withSubject(VALID_SUBJECT_NAME_SCIENCE).build();\n assertFalse(MATHS_GRADE.isSameGrade(editedMaths));\n\n // different graded item, all other attributes same -> returns false\n editedMaths = new GradeBuilder(MATHS_GRADE)\n .withGradedItem(VALID_GRADED_ITEM_SCIENCE).build();\n assertFalse(MATHS_GRADE.isSameGrade(editedMaths));\n\n // subject differs in case, all other attributes same -> returns true\n Grade editedScience = new GradeBuilder(SCIENCE_GRADE)\n .withSubject(VALID_SUBJECT_NAME_SCIENCE.toLowerCase()).build();\n assertTrue(SCIENCE_GRADE.isSameGrade(editedScience));\n\n // graded item differs in case, all other attributes same -> returns true\n editedScience = new GradeBuilder(SCIENCE_GRADE)\n .withGradedItem(VALID_GRADED_ITEM_SCIENCE.toLowerCase()).build();\n assertTrue(SCIENCE_GRADE.isSameGrade(editedScience));\n\n // subject has trailing spaces, all other attributes same -> returns false\n String subjectWithTrailingSpaces = VALID_SUBJECT_NAME_SCIENCE + \" \";\n editedScience = new GradeBuilder(SCIENCE_GRADE)\n .withSubject(subjectWithTrailingSpaces).build();\n assertFalse(SCIENCE_GRADE.isSameGrade(editedScience));\n\n // graded item has trailing spaces, all other attributes same -> returns false\n String itemWithTrailingSpaces = VALID_GRADED_ITEM_SCIENCE + \" \";\n editedScience = new GradeBuilder(SCIENCE_GRADE)\n .withGradedItem(itemWithTrailingSpaces).build();\n assertFalse(SCIENCE_GRADE.isSameGrade(editedScience));\n }",
"@Override\n public Grade findGrade(String firstName, String lastName, int pID) {\n Student s = new Student(firstName, lastName, pID);\n Grade grade = null;\n for (Student key : map.keySet()) {\n if (key.compareTo(s) == 0) {\n grade = map.get(key);\n return grade;\n }\n }\n throw new NoSuchElementException(\"Grade cannot be found, Student is not on map\");\n }",
"@Override\n\tpublic int compare(Person p1, Person p2) {\n\t\tif(p1.getWeight() >p2.getWeight()){\n\t\n\t\treturn 1;\n\t\t}\n\t\telse if(p1.getWeight()==p2.getWeight()){\n\t\t\tif(p1.getHeight() >p2.getHeight()){\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"@Override\n public int compare(Person o1, Person o2) {\n log.info(\"Compare date of birth \" + o1.getDateOfBirth() + \" and \" + o2.getDateOfBirth());\n\n return o1.getDateOfBirth().compareTo(o2.getDateOfBirth());\n }",
"public float calculateGrade() {\r\n\t\t// Creating variables for correct answers, total questions and the grade itself.\r\n\t\tint correct = 0;\r\n\t\tint total = correctAnswers.size();\r\n\t\tfloat grade = 0;\r\n\t\t// Loop that goes around the list with user's answers and correct answers.\r\n\t\tfor (int i = 0; i < correctAnswers.size(); i++) {\r\n\t\t\t// Creating variable result which compare the elements from the two list index\r\n\t\t\t// by index.\r\n\t\t\tint result = (userAnswers.get(i).compareTo(correctAnswers.get(i)));\r\n\t\t\t// Condition that increments the variable correct with one every time when there\r\n\t\t\t// is match between the lists' elements by index.\r\n\t\t\tif (result == 0) {\r\n\t\t\t\tcorrect++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Calculating the grade of the student.\r\n\t\tgrade = (float) ((double) correct / total * 100);\r\n\t\treturn grade;\r\n\t}",
"@Test\n public void equals() {\n Grade mathsCopy = new GradeBuilder(MATHS_GRADE).build();\n assertTrue(MATHS_GRADE.equals(mathsCopy));\n\n // same object -> returns true\n assertTrue(MATHS_GRADE.equals(MATHS_GRADE));\n\n // null -> returns false\n assertFalse(MATHS_GRADE.equals(null));\n\n // different type -> returns false\n assertFalse(MATHS_GRADE.equals(5));\n\n // different person -> returns false\n assertFalse(MATHS_GRADE.equals(SCIENCE_GRADE));\n\n // different subject name -> returns false\n Grade editedMaths = new GradeBuilder(MATHS_GRADE)\n .withSubject(VALID_SUBJECT_NAME_SCIENCE).build();\n assertFalse(MATHS_GRADE.equals(editedMaths));\n\n // different graded item -> returns false\n editedMaths = new GradeBuilder(MATHS_GRADE)\n .withGradedItem(VALID_GRADED_ITEM_SCIENCE).build();\n assertFalse(MATHS_GRADE.equals(editedMaths));\n\n // different grade -> returns false\n editedMaths = new GradeBuilder(MATHS_GRADE)\n .withGrade(VALID_GRADE_SCIENCE).build();\n assertFalse(MATHS_GRADE.equals(editedMaths));\n }",
"@Test\n\tpublic void testAssignGrade4() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertFalse(grade.equals(new Integer(90)));\n\t}",
"int compareTo(Student s){\n\n if(cgpa.compareTo(s.cgpa)!=0)\n return -(cgpa.compareTo(s.cgpa)); //Sort in descending order according to cgpa\n\n else{\n\n // if cgpa of both student is same\n if(name.compareTo(s.name)!=0)\n return (name.compareTo(s.name)); //sort in ascending order according to name\n\n else{\n // if name of both sudents are same\n return (token.compareTo(s.token)); //sort in ascending order according to token\n }\n\n }\n\n }",
"@Override\r\n\tpublic void comparo(Persona p1, Persona p2) {\n\t\t\r\n\t}",
"@Override\n\tpublic int compareTo(Persons p) {\n\n\t\treturn new Integer(age).compareTo(p.getAge());\n\t}",
"@Override\n public boolean equals(Object obj) {\n // Cast type to correct type\n Student studentObj = (Student) obj;\n\n // Check if first name, last name, and grade are the same and return result\n return studentObj.firstName == this.firstName &&\n studentObj.lastName == this.lastName &&\n studentObj.grade == this.grade;\n }",
"@Override\n\tpublic int compare(Personagem one, Personagem two) {\n\t\treturn one.getDateOfBirth().compareTo(two.getDateOfBirth());\n\t}",
"public static void betterApplicant(double gpaScore1, double gpaScore2, double examScore1, double examScore2)\n {\n System.out.print(\"\\n\");\n double firstApplicant = gpaScore1 + examScore1;\n System.out.printf(\"First applicant overall score: %.1f \\n\", firstApplicant);\n double secondApplicant = gpaScore2 + examScore2;\n System.out.printf(\"Second applicant overall score: %.1f \\n\", secondApplicant);\n \n if(firstApplicant > secondApplicant)\n {\n System.out.println(\"The first applicant seems to be better\");\n }\n else if (secondApplicant > firstApplicant)\n {\n System.out.println(\"The second applicant seems to be better\");\n }\n else if(firstApplicant == secondApplicant)\n {\n System.out.println(\"The two applicants seem to be equal\");\n }\n }",
"@Override\n\tpublic int compareTo(Student o) {\n\t\treturn this.score - o.score;\n\t\t\n\t}",
"@Override\n public int compareTo(Object o) { \n if(this.getGrade()==((BoardCandidate)o).getGrade()){\n return (int)(Math.random()*10-Math.random()*10);\n }\n return this.getGrade()-((BoardCandidate)o).getGrade();\n }",
"@Override\n public int compareTo(Score other) {\n return (int) (100 * (this.getAsDouble() - other.getAsDouble()));\n }",
"public void testCreateExamGrades() {\n double grades[] = new double[10];\n \n for (int i = 0; i < 10; i++) {\n grades[i] = 100 - i;\n }\n \n ExamGrades g = new ExamGrades(grades);\n\n assertEquals(100.0, g.grades[0]);\n assertEquals(91.0, g.grades[9]); \n }",
"public boolean equals(Personnel p){\nreturn numPers.equals(p.numPers);\n}",
"@Override\n\tpublic int compare(Students o1, Students o2) {\n\t\treturn (int) (o1.marks-o2.marks);\n\t}",
"@Override \n public boolean equals(Object o) {\n if(this.gnum == ((Student)(o)).getGnum()){\n return true;\n }\n return false;\n }",
"@Override\n\tpublic int compare(Person one, Person two) {\n\t\tif (one.getLastName().equalsIgnoreCase(two.getLastName())) {\n\t\t\treturn one.getFirstName().compareTo(two.getFirstName());\n\t\t}\n\t\treturn (one.getLastName().compareTo(two.getLastName()));\n\t}",
"private static void print_Assignment(Gradebook gradebook, String[] flags) {\n //sort grades highest to lowest\n if (flags[3] != null && flags[3].equals(\"G\")) {\n List<Student> studentList = gradebook.getAllStudents();\n Map<Integer, Set<Student>> gradeToName = new HashMap<Integer, Set<Student>>();\n Set<Integer> grades = new HashSet<Integer>();\n\n for(Student s : studentList){\n Assignment assign = gradebook.getAssignment(flags[0]);\n Map<Assignment, Integer> gradeMap = gradebook.getStudentGrades(s);\n Integer grade = gradeMap.get(assign);\n\n Set<Student> studs = gradeToName.get(grade);\n if(studs == null){\n\n studs = new HashSet<Student>();\n }\n\n studs.add(s);\n gradeToName.put(grade, studs);\n grades.add(grade);\n }\n\n List<Integer> sortedList = new ArrayList<Integer>(grades);\n Collections.sort(sortedList, Collections.reverseOrder());\n\n for(Integer i : sortedList){\n Set<Student> studs = gradeToName.get(i);\n for(Student s : studs)\n System.out.println(\"(\" + s.getLast() + \", \" + s.getFirst() + \", \" + i + \")\");\n }\n\n // sort display aplhabetically\n } else if (flags[4] != null && flags[4].equals(\"A\")){\n //compare override class at bottom of file\n List<Student> studentsAlpha = gradebook.getAllStudents();\n Collections.sort(studentsAlpha, new Comparator<Student>() {\n @Override\n public int compare(Student o1, Student o2) {\n if ( o2.getLast().compareToIgnoreCase(o1.getLast()) == 0) {\n return o1.getFirst().compareToIgnoreCase(o2.getFirst());\n } else {\n return o1.getLast().compareToIgnoreCase(o2.getLast());\n }\n }\n });\n\n for (Student stud: studentsAlpha) {\n // flags[0] should be assign name\n System.out.println(\"(\" + stud.getLast() + \", \" + stud.getFirst() + \", \" + gradebook.getPointsAssignment(stud, gradebook.getAssignment(flags[0])) + \")\");\n }\n\n } else {\n throw new IllegalArgumentException(\"Please specify if you want the display to be alphabetical or by grades highest to lowest.\");\n }\n return;\n }",
"public double computeHeuristicGrade();",
"@Override\n public int compare(Student o1, Student o2) {\n return o1.rollno - o2.rollno;\n }",
"public int compare(Student s1, Student s2) { \n if (s1.cgpa < s2.cgpa) \n return 1; \n else if (s1.cgpa > s2.cgpa) \n return -1; \n else\n \treturn 0;\n }",
"@Override\n\t\t\tpublic int compare(Person o1, Person o2) {\n\t\t\t\treturn o1.getLastname().compareTo(o2.getLastname());\n\t\t\t}",
"@Test\r\n\tpublic void fromNumGradeTest(){\r\n\t\tint[] testNumGrade = { -1, 0, 34,36,41,42,45,47,51,53,55,58,60,63,65,68,71,74,77, 100 };\r\n\t\tint expectedValue = 20;\r\n\t\tfor(int i=0;i<testNumGrade.length;i++){\r\n\t\t\tassertEquals(expectedValue,PointGrade.fromNumGrade(testNumGrade[i]).getPoints());\r\n\t\t\texpectedValue--;\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n Person helga = new Person(\"Helga\", 31,12,2009);\n Person janika = new Person(\"Janika\", 1,1,2010);\n \n System.out.println(helga.age());\n System.out.println(janika.age());\n System.out.println(helga.olderThan(janika));\n \n //Person Helga, born 31.12.2009 should be older than Janika, born 1.1.2010\n }",
"public int compare(User a, User b)\n {\n return b.age - a.age;\n }",
"@Override\n\t\tpublic int compare(S o1, S o2) {\n\t\t\tif (getProb(o1) > getProb(o2))\n\t\t\t\treturn -1;\n\t\t\tif (getProb(o1) < getProb(o2))\n\t\t\t\treturn 1;\n\t\t\treturn Double.compare(o1.hashCode(), o2.hashCode());\n\t\t}",
"long countByExample(SalGradeExample example);",
"@Override\n\tpublic int compareTo(student o) {\n\t\treturn this.maths -o.maths;\n\t}",
"@Override\n\tpublic int compare(Account o1, Account o2) {\n\t\treturn ((Double)(o1.getBalance())).compareTo(o2.getBalance());\n\t}",
"public int compare(Student2 a, Student2 b) {\n\t\treturn a.rollno - b.rollno;\n\t}",
"public int compare(Submission lhs, Submission rhs) {\n\t\tint firstCriteria = lhs.getStatus().compareTo(rhs.getStatus());\n\t\tif (firstCriteria != 0)\n\t\t\treturn firstCriteria;\n\t\treturn lhs.getProposedDate().compareTo(rhs.getProposedDate());\n\t}",
"@Override\r\n\t\t\tpublic int compare(Developer o1, Developer o2) {\n\t\t\t\treturn o2.getAge()-o1.getAge();\r\n\t\t\t}",
"public double getStudentGrade() \n {\n Set<String> cc = courses.keySet();\n for (String c: cc) \n {\n if (courses.get(c).getActive() == false) \n {\n return courses.get(c).getGrade(); \n }\n }\n return 0; \n }",
"@Override\n\tpublic int compare(Assignment a1, Assignment a2) {\n\t\tif (a1.weight > a2.weight && a1.deadline < a2.deadline) return -1;\n\t\tif (a1.weight > a2.weight && a1.deadline > a2.deadline) return 1;\n\t\tif (a1.weight < a2.weight && a1.deadline < a2.deadline) return -1;\n\t\tif (a1.weight < a2.weight && a1.deadline > a2.deadline) return 1;\n\t\tif (a1.weight == a2.weight && a1.deadline < a2.deadline) return -1;\n\t\tif (a1.weight == a2.weight && a1.deadline > a2.deadline) return 1;\n\t\tif (a1.weight < a2.weight) return 1;\n\t\tif (a1.weight > a2.weight) return -1;\n\t\treturn 0;\n\t}",
"private static void print_Student(Gradebook gradebook, String firstName, String lastName) {\n\n Student stud = gradebook.getStudent(firstName, lastName);\n\n if (stud == null){\n\n System.out.println(\"Invalid student.\");\n System.exit(255);\n }\n\n Map<Assignment, Integer> assignments = gradebook.getStudentGrades(stud);\n List<Assignment> assignList = gradebook.getAllAssignments();\n\n for(Assignment a : assignList){\n System.out.println(\"(\" + a.getName() + \", \" + assignments.get(a) + \")\");\n }\n\n return;\n }",
"@Override\n public int compare(PublisherInfo lhs, PublisherInfo rhs) {\n if (lhs.lastName != rhs.lastName) {\n return lhs.lastName.compareToIgnoreCase(rhs.lastName);\n\n } else {\n if (lhs.firstName != rhs.firstName) {\n return lhs.firstName.compareToIgnoreCase(rhs.firstName);\n } else {\n return lhs.middleName.compareToIgnoreCase(rhs.middleName);\n }\n }\n\n }",
"@Test\n public void testCompareTo() throws ParseException {\n System.out.println(\"compareTo\");\n \n Student instance = new Student(9, \"Gabriela\", \"04567888\", \"[email protected]\", 8, \"start Street\", \"SouthWest\", \"SA\", \"5089\", \"Cert4\", new SimpleDateFormat(\"mm/dd/yyyy\").parse(\"10/17/2009\"), new SimpleDateFormat(\"mm/dd/yyyy\").parse(\"10/17/2009\"), \"1\", \"Awaited\", new Course(\"Cert4\", \"Certificate 4\", 250));\n int expResult = 0;\n int result = instance.compareTo(student);\n assertEquals(expResult, result);\n \n }",
"public void testCompareTo() throws Exception {\r\n setUp();\r\n Student allison = new Student(\"0\", \"Allison\", \"DeSantis\");\r\n Student alli = new Student(\"0\", \"Aaa\", \"DeSantis\");\r\n\r\n // same last name, returns 1\r\n assertEquals(allison.compareTo(alli), 1);\r\n\r\n // same last name, returns -1\r\n Student al = new Student(\"0\", \"z\", \"DeSantis\");\r\n assertEquals(allison.compareTo(al), -1);\r\n\r\n // same name\r\n Student allis = new Student(\"0\", \"Allison\", \"DeSantis\");\r\n assertEquals(allison.compareTo(allis), 0);\r\n\r\n // same first name, returns 1\r\n Student last = new Student(\"0\", \"Allison\", \"c\");\r\n assertEquals(allison.compareTo(last), 1);\r\n\r\n // same first name, returns -1\r\n Student diff = new Student(\"0\", \"Allison\", \"Z\");\r\n assertEquals(allison.compareTo(diff), -1);\r\n\r\n\r\n Student c1 = new Student(\"0\", \"Colleen\", \"Schmidt\");\r\n Student c2 = new Student(\"0\", \"Colleen\", \"Schmidt\");\r\n\r\n assertEquals(c1.compareTo(c2), 0);\r\n\r\n assertEquals(c2.compareTo(c1), 0);\r\n\r\n Student c3 = new Student(\"0\", \"Colleen\", \"Schmidt\");\r\n assertEquals(c1.compareTo(c3), 0);\r\n }",
"@Test\r\n\tpublic void SickPersonCompTest () {\n\t\tAssert.assertEquals(\"compareToImpl incorrect, this.severity() > p.severity() issue\", -5, sp1.compareToImpl(sp2), 0.000001);\r\n\t//(2) this severity < p (expect positive number)\r\n\t\tAssert.assertEquals(\"compareToImpl incorrect, this.severity() < p.severity issue\", 5, sp2.compareToImpl(sp1),0.000001);\r\n\t//(3) this severity = p (expect 0)\r\n\t\tAssert.assertEquals(\"compareToImpl incorrect, Severity equal issue\",0, sp1.compareToImpl(sp3));\r\n\t//(4) p is HealthyPerson (expect -1)\r\n\t\tAssert.assertEquals(\"compareToImpl incorrect, p = HealthyPerson issue\", -1, sp1.compareToImpl(hp));\r\n\t}",
"@Override\r\n\t public int compare(Student_UsingComparator obj1, Student_UsingComparator obj2){\n\t\t return obj2.rollno-obj1.rollno;\r\n\t }",
"public int compare1(Student o1, Student o2)\r\n\t\t\t\t\t{\n\t\t\t\t\treturn 0;\r\n\t\t\t\t\t}",
"public static void main(String[] args) {\n\t\tList<GradeVO> grades = new ArrayList();\n\t\t\n\t\tfor(int i = 0 ; i < 3 ; i ++) {\n\t\t\tSystem.out.println(\"현재위치 : \" + i);\n\t\t\tGradeVO gradeVO = new GradeVO();\n\t\t\t// if(makeScore(gradeVO) == false) {\n\t\t\tif(!makeScore(gradeVO)) {\n\t\t\t\t// makeScore가 실행되는 도중\n\t\t\t\t// 문제가 발생하면 false를 return할 것이고\n\t\t\t\t// i 값을 1개 감소한 다음 다시 for로 되돌아가서\n\t\t\t\t// 재입력하도록 시도\n\t\t\t\ti--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// makeScore가 정상적으로 실행이 되서\n\t\t\t// 최종 true를 return한 경우에는 List를 하나 추가\n\t\t\tgrades.add(gradeVO);\n\t\t}\n\t\t\n\n\t}",
"public int compareTo(Student other) {\n\t\tif (this.gpa > other.gpa) {\n\t\t\treturn 1;\n\t\t} else if (this.gpa < other.gpa) {\n\t\t\treturn -1;\n\t\t} else {\n\t\t\tif (this.brIndexa > other.brIndexa) {\n\t\t\t\treturn 1;\n\t\t\t} else if (this.brIndexa < other.brIndexa) {\n\t\t\t\treturn -1;\n\t\t\t} else {\n\t\t\t\tif (this.ime.compareTo(other.ime) < 0) {\n\t\t\t\t\treturn 1;\n\t\t\t\t} else if (this.ime.compareTo(other.ime) > 0) {\n\t\t\t\t\treturn -1;\n\t\t\t\t} else\n\t\t\t\t\treturn 0;\n\t\t\t}\n\t\t}\n\t}",
"public static List<Integer> gradingStudents(List<Integer> grades) {\n\t\t int test=0;\n\t\t int p=0;\n\t\t \n\t\t for(int grade: grades) {\n\t\t\t\n\t\t\t if(((grade/5)+1)*5-grade<3 && grade>=38 ) {\n\t\t\t test = (grade/5+1)*5;\n\t\t\t\t \n\t\t\t }else {\n\t\t\t\t test=grade;\n\t\t\t }\n\t\t\t \n\t\t }\n\t\t \n\t\t System.out.println(\"test \"+test );\n\t\t \treturn new ArrayList();\n\t\t }",
"@Override\n\tpublic int compareTo(Student o) \n\t{\n\t\treturn o.average - average;\n\t}",
"private void comparePoints(double[] firstP, double[] secondP) {\n assertEquals(firstP.length, secondP.length);\n\n for(int j=0; j<firstP.length; j++) {\n assertEquals(\"j = \"+j, firstP[j], secondP[j], TOLERANCE);\n }\n }",
"@Override\r\n public int compareTo(Job o) {\n return o.profit - this.profit;\r\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tStudent obj1=(Student) obj;\r\n\t\treturn obj1.getAge().equals(this.getAge())&&obj1.getName().equals(this.getName());\r\n\t}",
"public static void main(String[] args) {\r\n\t\tCourse la = new Course(\"CS 2110\", 3.0, 4.0);\r\n\t\tCourse laa = new Course(3.0);\r\n\t\tlaa.setName(\"CS 2110\");\r\n\t\tla.gpaConverter();\r\n\t\tSystem.out.println(la);\r\n\t\tSystem.out.println(la.equals(laa));\r\n\t}",
"public int compare1(Student o1, Student o2)\r\n\t\t\t{\n\t\t\treturn 0;\r\n\t\t\t}",
"public int compare1(Student o1, Student o2)\r\n\t\t\t{\n\t\t\treturn 0;\r\n\t\t\t}",
"public int compare1(Student o1, Student o2)\r\n\t\t\t{\n\t\t\treturn 0;\r\n\t\t\t}",
"public int compare(Student s1, Student s2) {\n\n //uses compare method of student class to commpare students\n return s1.compareTo(s2);\n\n }",
"public int compare1(Student o1, Student o2)\r\n\t\t\t\t{\n\t\t\t\treturn 0;\r\n\t\t\t\t}",
"@Override\n public int compare(Student o1, Student o2) {\n return o1.name.compareTo(o2.name);\n }",
"public Student(int id, String name, int grade) {\n this.id = id;\n this.name = name;\n this.grade = grade;\n feesPaid = 0;\n feesTotal = 50000;\n feesRemaining = feesTotal - feesPaid;\n }",
"@Test\n\tpublic void testAssignGrade3() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW2\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertNull(grade);\n\t}",
"public double weightedGPA() {\r\n\t\t\tdouble average = 0; \r\n\t\t\tdouble gradePoint = 0;\r\n\t\t\tdouble credit = 0;\r\n\t\t\t// Grade points\r\n\t\t\tfor (int i = 0; i < finalGrade.size(); i++) {\r\n\t\t\t\tif (finalGrade.get(i) >= 90 && finalGrade.get(i) <= 100) {\r\n\t\t\t\t\tgradePoint = gradePoint + (9*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 80 && finalGrade.get(i) <= 89.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (8*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 75 && finalGrade.get(i) <= 79.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (7*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 70 && finalGrade.get(i) <= 74.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (6*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 65 && finalGrade.get(i) <= 69.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (5*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 60 && finalGrade.get(i) <= 64.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (4*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 55 && finalGrade.get(i) <= 59.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (3*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 50 && finalGrade.get(i) <= 54.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (2*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) >= 47 && finalGrade.get(i) <= 49.99) {\r\n\t\t\t\t\tgradePoint = gradePoint + (1*courseTaken.get(i).getCredit());\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t\telse if (finalGrade.get(i) > 47) {\r\n\t\t\t\t\tgradePoint = gradePoint + 0;\r\n\t\t\t\t\tcredit = credit + courseTaken.get(i).getCredit();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\taverage = gradePoint/credit; // GPA\r\n\t\t\treturn Math.round(average*10)/10.0; // GPA is returned\r\n\t\t}",
"@Override\n\tpublic int compareTo(Students o) {\n\t\tint tem = this.getAll() - o.getAll();\n\t\tint tem1 = (tem == 0) ? this.getCh() - o.getCh() : tem;\n\t\tint tem2 = (tem1 == 0) ? this.getMath() - o.getMath() : tem1;\n\t\tint tem3 = (tem2 == 0) ? this.getEng() - o.getEng() : tem2;\n\t\tint tem4 = (tem3 == 0) ? this.getName().compareTo(o.getName()) : tem3;\n\t\treturn -tem4;\n\t}",
"public Comparison compare(double left, double right) {\n return checkResult(Double.compare(left, right));\n }",
"public int getGrade();",
"@Override\n public boolean equals(Object other) {\n /* Check this and other refer to the same object */\n if (this == other) {\n return true;\n }\n\n /* Check other is Person and not null */\n if (!(other instanceof Person)) {\n return false;\n }\n\n Person person = (Person) other;\n\n /* Compare all required fields */\n return age == person.age &&\n Objects.equals(firstName, person.firstName) &&\n Objects.equals(lastName, person.lastName);\n }",
"@Test\r\n public void testAddPers2() {\r\n assertEquals(p2.toString(), bank.searchPerson(p2.getFullName()).toString());\r\n }",
"double getPricePerPerson();",
"@Test\r\n\tpublic void getAllGradesWithPerfectGradeTest()\r\n\t\t\tthrows ClassNotFoundException, SonarqubeDataBaseException, SQLException, IOException {\r\n\t\t// Filling with 'perfectScore'\r\n\t\tlistScoreMetricStudent.put(\"comment_lines_density\", 70f);\r\n\t\tlistScoreMetricStudent.put(\"complexity\", 11f);\r\n\t\tlistScoreMetricStudent.put(\"test_success_density\", 100f);\r\n\t\tlistScoreMetricStudent.put(\"tests\", 4f);\r\n\t\tlistScoreMetricStudent.put(\"test_success_density_teacher\", 1f);\r\n\t\tHashMap<String, Integer> mapIssuesEmpty = new HashMap<String, Integer>();\r\n\t\tlistAllGrades.put(\"FinalGrade\", 20f); // changer project name par un projet Student nikel\r\n\t\tAssert.assertEquals(\r\n\t\t\t\tUtilCalculGrade.getAllGrades(mapQuality, listScoreMetricStudent, listScoreMetricTeacher, mapConf,\r\n\t\t\t\t\t\tmapIssuesEmpty, projectName, idModule).get(\"FinalGrade\"),\r\n\t\t\t\tlistAllGrades.get(\"FinalGrade\"));\r\n\t}",
"public boolean obtainAGrade(String courseCode, int score) {\n for(int i = 0; i < transcripts.length; i++){\n if(transcripts[i] != null){\n // checking if the given course code equal to transcripts[i]'s code and the course does not have a grade in it\n if (transcripts[i].getCode().equalsIgnoreCase(courseCode) && transcripts[i].getGrade() == null){\n //System.out.println(\"transcripts[i].getCode() = \" + transcripts[i].getCode());\n //System.out.println(\"courseCode = \" + courseCode);\n // setting the course grade\n this.setCourseGrade(transcripts[i],score);\n \n return true;\n }\n }\n }\n return false;\n \n }",
"public void testers() {\r\n assertEquals(\"A\", name1.getFirstName());\r\n assertEquals(\"B\", name1.getLastName());\r\n assertEquals(\"William\", name2.getMiddleName());\r\n name2.setFirstName(\"Luke\");\r\n assertEquals(\"Luke\", name2.getFirstName());\r\n name3.setLastName(\"Smith\");\r\n assertEquals(\"Smith\", name3.getLastName());\r\n name2.setMiddleName(\"Mike\");\r\n assertEquals(\"Mike\", name2.getMiddleName());\r\n boolean result1 = false;\r\n if (0 == name1.compareTo(name1)) {\r\n result1 = true;\r\n }\r\n assertTrue(result1);\r\n boolean result2 = false;\r\n if (name1.compareTo(name2) == -1) {\r\n result2 = true;\r\n }\r\n assertTrue(result2);\r\n boolean result3 = false;\r\n if (name2.compareTo(name1) == 1) {\r\n result3 = true;\r\n }\r\n assertTrue(result3);\r\n boolean result4 = false;\r\n if (name3.compareTo(name4) == -1) {\r\n result4 = true;\r\n }\r\n assertTrue(result4);\r\n\r\n boolean result5 = false;\r\n if (name4.compareTo(name3) == 1) {\r\n result5 = true;\r\n }\r\n assertTrue(result1);\r\n assertTrue(result2);\r\n assertTrue(result3);\r\n assertTrue(result4);\r\n assertTrue(result5);\r\n }",
"protected abstract boolean gradeable();",
"public static void main(String[] args) {\n\n\t\tPerson p1 = new Person();//2k\n\t\tp1.age = new Node();\n\t\t\n\t\tPerson p2 = new Person();//3k\n\t\tp2.age = new Node();\n\t\t\n\t\tSystem.out.println(p1.age == p2.age);\n\t\tp1.getAge();\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\tif(o instanceof Student){\n\t\t\tStudent tmp = (Student)o;\n\t\t\treturn tmp.total = this.total;\n\t\t}else{\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t}",
"public void main(String[] args) {\n\t\t\t\tint Year = 2000; // leap\n\t\t\t\tboolean LeapYear = Year % 4 == 0;\n\t\t\t\t\n\t\t\t\tif(LeapYear) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Year \"+Year+\" is a leap year\");\n\t\t\t\t\t\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Year \"+Year+\" is NOT a leap year\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t \n\t\t\t\t 2. grade calculator\n\t\t\t\t\t \tA => 90 ~ 100 \n\t\t\t\t\t \tB => 80 ~ 89\n\t\t\t\t\t \tC => 70 ~ 79\n\t\t\t\t\t \tD => 60 ~ 69\n\t\t\t\t\t \tF => 0 ~ 59\n\t\t\t\t\t \t\n\t\t\t\t\t \t\n\t\t\t\t \n\t\t\t\t */\n\t\t\t\t\n\t\t\t\tint grade = 99;\n\t\t\t\tboolean A = grade >= 90 && grade <= 100;\n\t\t\t\tboolean B = grade >= 80 && grade <= 89;\n\t\t\t\tboolean C = grade >= 70 && grade <= 79;\n\t\t\t\tboolean D = grade >= 60 && grade <= 69;\n\t\t\t\tboolean ValidGrade = grade >=0 && grade <= 100;\n\t\t\t\n\t\t\t\n\t\t\t\t// in order to multi-brach if gets executed, first ValidGrade has to be true\n\t\t\tif(ValidGrade)\t{\n\t\t\t\tif(A) { // 100 >= grade >= 90\n\t\t\t\t\tSystem.out.println(\"You made A\");\n\t\t\t\t}\n\t\t\t\telse if(B) { // 90> grade >= 80\n\t\t\t\t\tSystem.out.println(\"You made B\");\n\t\t\t\t}\n\t\t\t\telse if(C) { // 80> grade >= 70\n\t\t\t\t\tSystem.out.println(\"You made C\");\n\t\t\t\t}\n\t\t\t\telse if(D) { // 70> grade >= 60\n\t\t\t\t\tSystem.out.println(\"You made D\");\n\t\t\t\t}\n\t\t\t\telse{ // 0 =< grade < 60 \n\t\t\t\t\tSystem.out.println(\"You made F\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else { // grade <0 || grade > 100\n\t\t\t\tSystem.out.println(\"Invalid grade\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\t/*\n\t\t\t\t \n\t\t\t\t declare an int variable called Age\n\t\t\t\t declare a boolean variable \"GoodPerson\"\n\t\t\t\t \n\t\t\t\t if goodperson is false:\n\t\t\t\t\t\t age >= 18 => cigra\n\t\t\t\t\t\t age >= 21 => Hookah\n\t\t\t\t\t\t age >= 25 => alcohol\n\t\t\t\t\t\t \n\t\t\t\t\t\t age < 18 => milk\n\t\t\t\t\t\t \n\t\t\t\telse \n\t\t\t\t// bad for your health\n\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t \n\t\t\t\t */\n\t\t\tint age =21;\n\t\t\tboolean GoodPerson = false;\n\t\t\t\t\n\t\t\tif( age >= 18) {\n\t\t\t\n\t\t\t\tif(GoodPerson) {\n\t\t\t\t\tSystem.out.println(\"Alcohol is bad for your health\");\n\t\t\t\t}\n\t\t\t\telse { // GoodPerson=false, && age >=18\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"You can buy Cigrates\");\n\t\t\t\t\tif(age>=21) {\n\t\t\t\t\t\tSystem.out.println(\"You can buy Hookah\");\n\t\t\t\t\t}\n\t\t\t\t\tif(age >= 25) {\n\t\t\t\t\t\tSystem.out.println(\"You can buy Alcohol\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"buy milk\");\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}",
"public static void main(String[] args) {\n\t\tStudent ivan = new Student(\"Ivan Petrov\", \"Computer Science\");\n\t\tivan.grade=5.5;\n\t\tivan.yearInCollege=2;\n\t\tivan.money=500;\n\t\tivan.age=19;\n\t\t\n\t\tStudent teodor = new Student(\"Teodor Alexiev\", \"Computer Science\");\n\t\tteodor.grade=5.25;\n\t\tteodor.yearInCollege=3;\n\t\tteodor.money=300;\n\t\tteodor.age=20;\n\t\t\n\t\tStudent irina = new Student(\"Irina Paraskelova\", \"Computer Science\");\n\t\tirina.grade = 5.65;\n\t\tirina.money=400;\n\t\tirina.age=18;\n\t\t\n\t\tStudent vasilena = new Student (\"Vasilena Kremenlieva\", \"Computer Science\");\n\t\tvasilena.grade = 5.0;\n\t\tvasilena.money=1000;\n\t\tvasilena.age=18;\n\t\t\n\t\tStudent trifon = new Student(\"Trifon Stoimenov\", \"Computer Science\");\n\t\ttrifon.grade = 5.70;\n\t\ttrifon.yearInCollege=3;\n\t\ttrifon.money = 800;\n\t\ttrifon.age=21;\n\t\t\n\t\tStudent alexander = new Student (\"Alexander Dobrikov\", \"Finance\");\n\t\talexander.grade = 4.75;\n\t\talexander.yearInCollege = 2;\n\t\talexander.money = 600;\n\t\talexander.age = 20;\n\t\t\n\t\tStudent mirela = new Student (\"Mirela Kostadinova\", \"Finance\");\n\t\tmirela.grade = 5.5;\n\t\tmirela.yearInCollege=1;\n\t\tmirela.money=100;\n\t\tmirela.age=19;\n\t\t\n\t\tStudent velizar = new Student(\"Velizar Stoyanov\", \"Finance\");\n\t\tvelizar.grade = 6.0;\n\t\tvelizar.yearInCollege = 3;\n\t\tvelizar.money = 500;\n\t\tvelizar.age = 22;\n\t\t\n\t\tStudent antoaneta = new Student(\"Antoaneta Borisova\", \"Finance\");\n\t\tantoaneta.grade = 5.30;\n\t\tantoaneta.yearInCollege = 2;\n\t\tantoaneta.money = 750;\n\t\tantoaneta.age = 19;\n\t\t\n\t\tirina.upYear();\n\t\tSystem.out.println(\"Irina is in year \"+irina.yearInCollege+\" of college.\");\n\t\t\n\t\tvasilena.receiveScholarship(5.0, 350);\n\t\tSystem.out.println(vasilena.money);\n\t\t\n\t\tStudentGroup cs1 = new StudentGroup(\"Computer Science\");\n\t\tcs1.addStudent(ivan);\n\t\tcs1.addStudent(teodor);\n\t\tcs1.addStudent(irina);\n\t\tcs1.addStudent(vasilena);\n\t\tcs1.addStudent(trifon);\n\t\tteodor.upYear();\n\t\tSystem.out.println(teodor.isDegree);\n\t\t\n\t\tcs1.addStudent(velizar);\n\t\t\n\t\tcs1.printStudentsInGroup();\n\t\tSystem.out.println(cs1.theBestStudent());\n\t\t\n\t\tcs1.emptyGroup();\n\t\tcs1.printStudentsInGroup();\n\t\t\n\t\tStudentGroup fin1 = new StudentGroup(\"Finance\");\n\t\t\n\t\tfin1.addStudent(alexander);\n\t\tfin1.addStudent(mirela);\n\t\tfin1.addStudent(velizar);\n\t\tfin1.addStudent(antoaneta);\n\t\t\n\t\tfin1.printStudentsInGroup();\n\t\t\t\n\t\t\n\t}",
"@Override\n public int compare( ReservaViaje r1, ReservaViaje r2 )\n {\n int diff = ( int ) (r1.darCostoTotal( )-r2.darCostoTotal( ));\n return diff==0?0:(diff>0?1:-1);\n }"
] | [
"0.6179799",
"0.593045",
"0.58469766",
"0.5609546",
"0.55274403",
"0.54508615",
"0.5446296",
"0.54454845",
"0.54317135",
"0.53867644",
"0.5371782",
"0.53570104",
"0.5338349",
"0.5338161",
"0.53206843",
"0.5312161",
"0.5272068",
"0.52499",
"0.5234338",
"0.52130026",
"0.52114844",
"0.5210013",
"0.5186914",
"0.5181985",
"0.51753396",
"0.5126213",
"0.5097735",
"0.5092828",
"0.5072869",
"0.50696766",
"0.5047062",
"0.50371337",
"0.502429",
"0.5018209",
"0.5017007",
"0.49924338",
"0.49718535",
"0.49573225",
"0.49397057",
"0.49313757",
"0.48980674",
"0.48912835",
"0.48880494",
"0.48850027",
"0.48745513",
"0.48690274",
"0.4868701",
"0.4867519",
"0.48523992",
"0.4851786",
"0.4843861",
"0.48341185",
"0.48125628",
"0.47969234",
"0.47936535",
"0.47909123",
"0.47824046",
"0.47812098",
"0.47586444",
"0.47510764",
"0.4736454",
"0.47249666",
"0.4721427",
"0.47211835",
"0.47198588",
"0.47155875",
"0.47142565",
"0.4699459",
"0.46926636",
"0.46883494",
"0.4686415",
"0.4683441",
"0.46767893",
"0.46756324",
"0.46749094",
"0.46737814",
"0.4666342",
"0.4666342",
"0.4666342",
"0.46659112",
"0.4661929",
"0.46565872",
"0.46474302",
"0.46453407",
"0.4643659",
"0.46423656",
"0.46415064",
"0.46370652",
"0.4636453",
"0.46264",
"0.462094",
"0.46171024",
"0.46025062",
"0.45843327",
"0.45827138",
"0.45826662",
"0.458054",
"0.45800304",
"0.45794684",
"0.45704603"
] | 0.72571933 | 0 |
corrected from (String args[]) | public static void main(String[] args) {
J_S4A2 p = new Child();
p.method2();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String args[]){\n\t\t\n\t}",
"public static void main(String args[]){\n\t\t\r\n\t}",
"public static void main(String args[]){\n\t\t\n\t\n\t}",
"public static void main(String args[])\r\n {\n }",
"public static void main (String args[]) {\n\t\t\n }",
"public static void main(String arg[]) {\n\n }",
"public static void main(String args[]){\n }",
"public static void main(String[] args)\r\t{",
"public static void main(final String[] args) {\n\n\t}",
"public static void main(String args[]) {\r\n }",
"public static void main(String[] args) {\n\n\t\t\n\t\t\n\t}",
"Object[] args();",
"public static void main(String args[]){\n\t}",
"public static void main(String args[]) {\n\n }",
"public static void main(String[] args){\n\n\t}",
"public static void main(String[] args){\n\n\t}",
"public static void main(String[] args){\n\n\t}",
"public static void main(String args[]) {\n }",
"public static void main(String args[]) {}",
"public static void main(String args[]) {}",
"public static void main(String args[]) {}",
"public static void main(String[] args){\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\n\t}",
"public static void main(String args[]){\n \t\n \t\n }",
"public static void main(String[] args) {\n\t\n\t\t\n\n\t}",
"public static void main(String Args[]) {\r\n\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\t\t\n\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String args[]) {\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\t\n\n\t}",
"public static void main(String args[]) {\n\t}",
"public static void main(String args[]) {\n\t}",
"public static void main(String args[]) {\n\t}",
"public static void main(String[] args) {\n\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\n\t}",
"public static void main(String[] args) {\n\t\t\n\n\t}",
"public static void main(String[] args){\n\t\t\n\t\t\n \t}",
"public static void main(String args[]){\n }",
"public static void main(String args[]){\n }",
"public static void main(String args[]){\n }",
"public static void main(String args[]){\n }",
"public static void main(String args[]){\n }",
"public static void main(String args[]) {\n }",
"public static void main(String args[]) {\n }",
"public static void main(String args[]) {\n }",
"private String parseArgs(String args[])\n {\n String fpath = null;\n \n for (String arg : args)\n {\n if (arg.startsWith(\"-\"))\n {\n // TODO: maybe add something here.\n }\n else // expect a filename.\n {\n fpath = arg;\n }\n }\n \n return fpath;\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\n\n\t}",
"public static void main(String[] args) {\n \n\t}",
"public static void main(String[] args) {\n \r\n\t}",
"public static void main(String args[]) { \r\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t}",
"public static void main(String... args){\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n \n\t\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\n\n\t}",
"public static void main(String[] args) {\n\n\n\t}",
"public static void main(String[] args) {\n\n\n\t}",
"public static void main(String[] args) {\n\n }",
"public static void main(String[] args) {\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"public static void main (String[] args) {\r\n\t\t \r\n\t\t}",
"public static void main (String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t \n\t}",
"public static void main(String... args){\n\n }",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t}"
] | [
"0.7775138",
"0.770368",
"0.7698904",
"0.76951927",
"0.7693404",
"0.7671253",
"0.764739",
"0.7612967",
"0.7591852",
"0.7578185",
"0.75515133",
"0.7545842",
"0.752906",
"0.7525843",
"0.7520798",
"0.7520798",
"0.7520798",
"0.7517378",
"0.7516487",
"0.7516487",
"0.7516487",
"0.7508305",
"0.75016516",
"0.7500594",
"0.74934703",
"0.7490766",
"0.74899155",
"0.74878615",
"0.74878615",
"0.74878615",
"0.74878615",
"0.74840474",
"0.74800754",
"0.7473864",
"0.746961",
"0.7464709",
"0.7464709",
"0.7464709",
"0.74636674",
"0.7459079",
"0.7459079",
"0.7459079",
"0.7459079",
"0.7459079",
"0.7459079",
"0.7459079",
"0.7454789",
"0.74405617",
"0.74405617",
"0.74405617",
"0.74405617",
"0.74405617",
"0.7440538",
"0.7440538",
"0.7440538",
"0.7438603",
"0.74349445",
"0.74328786",
"0.7416295",
"0.7416241",
"0.7410394",
"0.7410394",
"0.7410394",
"0.7410394",
"0.7400431",
"0.7386949",
"0.7386949",
"0.7386949",
"0.7386949",
"0.7386949",
"0.7386949",
"0.7386949",
"0.7386949",
"0.7386949",
"0.7384132",
"0.7383284",
"0.73794466",
"0.73794466",
"0.73794466",
"0.7370715",
"0.7370715",
"0.736851",
"0.736851",
"0.7361293",
"0.7353235",
"0.7351534",
"0.73502123",
"0.7345768",
"0.7340837",
"0.7340837",
"0.7340837",
"0.7340837",
"0.7340837",
"0.7340837",
"0.7340837",
"0.7340837",
"0.7340837",
"0.7340837",
"0.7340837",
"0.7340837",
"0.7340837"
] | 0.0 | -1 |
Invoked when an action occurs. | @Override
public void actionPerformed(final ActionEvent e) {
if (e.getSource() == applyButton) {
applyChanges();
} else if (e.getSource() == addButton) {
addObject();
} else if (e.getSource() == removeButton) {
removeObject();
} else if (e.getSource() == clearButton) {
clear();
} else if (e.getSource() == closeButton) {
dispatchEvent(new WindowEvent(CheckDesignDialog.this, WindowEvent.WINDOW_CLOSING));
} else if (e.getSource() == setupButton) {
pageSetup();
} else if (e.getSource() == heightField) {
updateHeight();
} else if (e.getSource() == countField) {
updateCount();
} else if (e.getSource() == printButton) {
printSample();
} else if (e.getSource() == saveButton) {
saveLayout();
} else if (e.getSource() == openButton) {
openLayout();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}",
"public abstract void onAction();",
"public void action() {\n action.action();\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\n public void action() {\n }",
"@Override\r\n\tpublic void action() {\n\t\t\r\n\t}",
"@Override\n\tpublic void onActionStart(int action) {\n\t\t\n\t}",
"public void actionSuccessful() {\n System.out.println(\"Action performed successfully!\");\n }",
"public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n handleAction();\n }",
"@Override\n\tpublic void HandleEvent(int action) {\n\t\tsetActiveAction(action);\n\t\tSystem.out.println(\"action is :\" + action);\n\t\t\n\t}",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"public void act() \r\n {\r\n // Add your action code here.\r\n }",
"@Override\n\tpublic void action() {\n\n\t}",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"public void act() \n {\n // Add your action code here.\n }",
"private void act() {\n\t\tmyAction.embodiment();\n\t}",
"@Override\r\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t}",
"void noteActionEvaluationStarted(ActionLookupData actionLookupData, Action action);",
"public void performAction();",
"void actionCompleted(ActionLookupData actionLookupData);",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t}",
"public void doAction(){}",
"@Override\n\t\t\t\tpublic void handle(ActionEvent event) {\n\n\t\t\t\t}",
"void actionChanged( final ActionAdapter action );",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t}",
"@Override\n public void action() {\n System.out.println(\"do some thing...\");\n }",
"@Override\r\n\tpublic void handle(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\tpublic void handleAction(Action action, Object sender, Object target) {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tSystem.out.print(\"Action: \" + e.getActionCommand() + \"\\n\");\n\t\t\t\t}",
"@Override\r\n\tpublic void visit(SimpleAction action)\r\n\t{\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\t\n\t\t\t}",
"public void executeAction( String actionInfo );",
"abstract public void performAction();",
"public void initiateAction() {\r\n\t\t// TODO Auto-generated method stub\t\r\n\t}",
"@Override\r\n\tpublic void performAction(Event e) {\n\r\n\t}",
"@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}",
"public void action() {\n }",
"@Override\n\tpublic void newAction() {\n\t\t\n\t}",
"@Override\r\n protected void doActionDelegate(int actionId)\r\n {\n \r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n action.actionPerformed(e);\n }",
"@Override\r\n public void actionPerformed( ActionEvent e )\r\n {\n }",
"public void doInitialAction(){}",
"@Override\n public void actionOccured(Perspective perspective, ActionDescription action) {\n\n }",
"void handleActionEvent(ActionEvent event);",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\taddAction();\n\t\t\t}",
"public void processAction(CIDAction action);",
"public void postActionEvent() {\n fireActionPerformed();\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tSystem.out.println(\"Got an M\");\n\t}",
"public void notifyNewAction(Action action){\n\t\tnotifyObservers(action);\n\t}",
"protected void takeAction() {\n lastAction = System.currentTimeMillis();\n }",
"@Override\n public void onPressed(Action action) {\n // pass the message on\n notifyOnPress(action);\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void handleEventAgentAction(Agent agent, Action action) {\n\t\t// TODO: verify the agent is \"authorised\" to execute this action\n\t\tengine.submitAction(action);\n\t\t\n\t\t// TODO: handle response to Action, ie. callback... direct it back to the Agent.\n\t}",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n }",
"@Override\n protected void doAct() {\n }",
"public void run(IAction action) {\n\t\tMessageDialog.openInformation(window.getShell(), \"AccTrace\",\n\t\t\t\t\"Hello, Eclipse world\");\n\t}",
"public void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}",
"@Override\n\tpublic void setAction() {\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n public void onAction(RPObject player, RPAction action) {\n }",
"@Override\n\tpublic void handle(ActionEvent event) {\n\t\t\n\t}",
"@Override\n public void accept(Action action) {\n }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t}",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t}",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"public abstract void action();",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\r\n\t}",
"public void performAction(HandlerData actionInfo) throws ActionException;",
"public void actionPerformed( ActionEvent event )\n {\n \n }",
"@Override\n\tpublic void handle(ActionEvent event) {\n\n\t}",
"String getOnAction();",
"public void act() \n {\n // Add your action code here.\n tempoUp();\n }",
"public void setAction(String action) { this.action = action; }",
"@Override\n\t public void actionPerformed(ActionEvent e){\n\t }",
"@Override\n public void act() {\n }",
"public void actionStarted(ActionStreamEvent action);",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) \n\t\t{\n\t\t\t\n\t\t}",
"@Override\n\tpublic void actionHandler(Actions action, int arg1, int arg2) {\n\t\tlogic.actionHandler(action, arg1, arg2);\n\t}",
"private void entryAction() {\n\t}",
"@Override public void handle(ActionEvent e)\n\t {\n\t }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t\tSystem.out.println(\"156161\");\r\n\t\t\t}"
] | [
"0.7907701",
"0.7775921",
"0.7644247",
"0.76119846",
"0.76119846",
"0.76119846",
"0.751699",
"0.74891174",
"0.74193674",
"0.7412826",
"0.7402896",
"0.738321",
"0.7359403",
"0.7359403",
"0.73438245",
"0.73412704",
"0.73412704",
"0.73412704",
"0.73412704",
"0.73412704",
"0.73412704",
"0.73412704",
"0.73412704",
"0.7208963",
"0.71728235",
"0.7165464",
"0.7162891",
"0.71325284",
"0.71145105",
"0.70986086",
"0.7091996",
"0.70612967",
"0.70496726",
"0.7043273",
"0.7006072",
"0.7002117",
"0.6977562",
"0.69654745",
"0.6932325",
"0.6932325",
"0.6928806",
"0.6926541",
"0.69240624",
"0.6922733",
"0.69181263",
"0.6888793",
"0.68870175",
"0.68602604",
"0.6845913",
"0.6845913",
"0.68433756",
"0.68317664",
"0.68244517",
"0.68170506",
"0.68149835",
"0.6813531",
"0.68060344",
"0.6801481",
"0.67974603",
"0.6794913",
"0.67716646",
"0.6756334",
"0.67541665",
"0.6749117",
"0.6739969",
"0.67390776",
"0.67382175",
"0.6736006",
"0.6734406",
"0.672872",
"0.672872",
"0.6727953",
"0.6725088",
"0.6712174",
"0.67117023",
"0.67117023",
"0.6708787",
"0.6708787",
"0.6708787",
"0.6708787",
"0.67001283",
"0.67001283",
"0.67001283",
"0.67001283",
"0.67001283",
"0.67001283",
"0.66688913",
"0.66625386",
"0.6661826",
"0.6661063",
"0.6659918",
"0.6655469",
"0.66447055",
"0.6643573",
"0.6635867",
"0.66298044",
"0.66291845",
"0.66095674",
"0.6593642",
"0.65925467",
"0.6591968"
] | 0.0 | -1 |
directory can be null, The JFileChooser will sort it out | private static JFileChooser createFileChooser(final String dir) {
JFileChooser chooser = new JFileChooser(dir);
chooser.addChoosableFileFilter(new FileNameExtensionFilter("jGnash Files(*.xml)", "xml"));
chooser.setMultiSelectionEnabled(false);
return chooser;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void processDirectorySelecction()\n {\n int answer = JSoundsMainWindowViewController.jFileChooser1.showOpenDialog(JSoundsMainWindowViewController.jSoundsMainWindow);\n \n if (answer == JFileChooser.APPROVE_OPTION)\n {\n File actualDirectory = JSoundsMainWindowViewController.jFileChooser1.getCurrentDirectory();\n String directory = actualDirectory.getAbsolutePath() + \"/\" + JSoundsMainWindowViewController.jFileChooser1.getSelectedFile().getName();\n UtilFunctions.listFilesAndFilesSubDirectories(directory);\n JSoundsMainWindowViewController.orderBy(true, false, false);\n \n \n }\n }",
"private void chooseDirectoryAction(){\n\t\t \tJFileChooser chooser = new JFileChooser(); \n\t\t chooser.setCurrentDirectory(lastChoosedDirectory == null ? new java.io.File(\".\") : lastChoosedDirectory);\n\t\t chooser.setDialogTitle(translations.getChooseDirectory());\n\t\t chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\t //\n\t\t // disable the \"All files\" option.\n\t\t //\n\t\t chooser.setAcceptAllFileFilterUsed(false);\n\t\t // \n\t\t if (chooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) { \n\t\t \tFile file = chooser.getSelectedFile();\n\t\t \tsetDirectoryInfoLabel(file.getAbsolutePath());\n\t\t\t\tsetMessage( translations.getDirChosen().replace(\"#replace\", file.getAbsolutePath() ) );\n\t\t\t\tlastChoosedDirectory = file;\n\t\t }\n\t\t else {\n\t\t \tsetDirectoryInfoLabel(translations.getDirHasNotBeenChosen());\n\t\t \tshowWarningMessage( translations.getDirHasNotBeenChosen() );\n\t\t \tlastChoosedDirectory = null;\n\t\t }\n\t}",
"private void chooseFilesDirectory() {\n JFileChooser setWD = new JFileChooser(System.getProperty(\"user.home\"));\n setWD.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n setWD.setDialogType(JFileChooser.OPEN_DIALOG);\n setWD.showDialog(this, \"Выбрать папку\");\n workingDirectory = setWD.getSelectedFile();\n putLog(\"Директория с файлами: \" + workingDirectory.getPath());\n jbParse.setEnabled(workingDirectory != null && remainderFile != null);\n }",
"private JFileChooser getFileChooser() {\t\t\n\t\treturn getFileChooser(JFileChooser.FILES_AND_DIRECTORIES);\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n fileCho = new javax.swing.JFileChooser();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n fileCho.setBackground(style.GraphicCharter.colorYellow);\n fileCho.setCurrentDirectory(new java.io.File(\"D:\\\\Projets\"));\n fileCho.setDialogTitle(\"\");\n fileCho.setFileSelectionMode(javax.swing.JFileChooser.DIRECTORIES_ONLY);\n fileCho.setFont(style.GraphicCharter.fontCorps);\n fileCho.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n fileChoActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(fileCho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(fileCho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n }",
"private static JFileChooser createFileChooser() {\n final JFileChooser fc = new JFileChooser();\n fc.setCurrentDirectory(new java.io.File(\".\"));\n fc.setDialogTitle(\"Select the folder containing project files and audio exports\");\n fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n fc.setCurrentDirectory(loadFilePath());\n return fc;\n }",
"private void jButtonBrowseInputFilesActionPerformed(ActionEvent e) {\n\t\tJFileChooser fileChooser = new JFileChooser();\n\t\tfileChooser.addChoosableFileFilter(new RootFileFilter());\n\t\tfileChooser.setAcceptAllFileFilterUsed(false);\n\t\tint result = fileChooser.showOpenDialog(this);\n\t\tif (result == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = fileChooser.getSelectedFile();\n\t\t\tjTextFieldInputFiles.setText(file.getAbsolutePath());\n\t\t}\n\t}",
"public String openDirectoryChooser() {\n\t\tthis.setCurrentDirectory(new File(\".\"));\n\t\tthis.setDialogTitle(\"Choose your path\");\n\t\tthis.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\tthis.setAcceptAllFileFilterUsed(false);\n\t\tint returnValue = this.showOpenDialog(null);\n\t\tif (returnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\treturn this.getSelectedFile().getAbsolutePath();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"void selectDirectory(){\n fc.setCurrentDirectory(new java.io.File( \"saved\" + File.separator));\n fc.setDialogTitle(\"FILE CHOOSER!\");\n FileNameExtensionFilter xmlfilter = new FileNameExtensionFilter(\n \"json files (*.json)\", \"json\");\n fc.setFileFilter(xmlfilter);\n int response = fc.showSaveDialog(this);\n if (response == JFileChooser.APPROVE_OPTION) {\n File selectedFile = fc.getSelectedFile();\n System.out.println(\"Save as file: \" + selectedFile.getAbsolutePath());\n } else if (response == JFileChooser.CANCEL_OPTION) {\n System.out.println(\"Cancel was selected\");\n }\n System.out.println(fc.getSelectedFile().getAbsolutePath());\n }",
"private static Path openDirectoryDialog(String title, String initialPath) throws Exception, Error {\n System.setProperty(\"apple.awt.fileDialogForDirectories\", \"true\");\n\n FileDialog chooser = new FileDialog(MainWindow.getFrame(), title);\n if (StringUtils.isNotBlank(initialPath)) {\n Path path = Paths.get(initialPath);\n if (Files.exists(path)) {\n chooser.setDirectory(path.toFile().getAbsolutePath());\n }\n }\n chooser.setVisible(true);\n\n // reset system property\n System.setProperty(\"apple.awt.fileDialogForDirectories\", \"false\");\n\n if (StringUtils.isNotEmpty(chooser.getFile())) {\n return Paths.get(chooser.getDirectory(), chooser.getFile());\n }\n else {\n return null;\n }\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tJFileChooser jfc=new JFileChooser();\n\t\t\n\t\t//显示文件和目录\n\t\tjfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES );\n\t\tjfc.showDialog(new JLabel(), \"选择\");\n\t\tFile file=jfc.getSelectedFile();\n\t\t\n\t\t//file.getAbsolutePath()获取到的绝对路径。\n\t\tif(file.isDirectory()){\n\t\t\tSystem.out.println(\"文件夹:\"+file.getAbsolutePath());\n\t\t}else if(file.isFile()){\n\t\t\tSystem.out.println(\"文件:\"+file.getAbsolutePath());\n\t\t}\n\t\t\n\t\t//jfc.getSelectedFile().getName() 获取到文件的名称、文件名。\n\t\tSystem.out.println(jfc.getSelectedFile().getName());\n\t\t\n\t}",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tJFileChooser fc = new JFileChooser();\r\n\t\t\t\t\tfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n\t\t\t\t\tint result = fc.showOpenDialog(new JFrame());\r\n\t\t\t\t\tif(result == JFileChooser.APPROVE_OPTION){\r\n\t\t\t\t\t\tString path = fc.getSelectedFile().getAbsolutePath();\r\n\t\t\t\t\t\ttfPath.setText(path);\r\n\t\t\t\t\t}\r\n\t\t\t\t}",
"public void seleccionarArchivo(){\n JFileChooser j= new JFileChooser();\r\n FileNameExtensionFilter fi= new FileNameExtensionFilter(\"pdf\",\"pdf\");\r\n j.setFileFilter(fi);\r\n int se = j.showOpenDialog(this);\r\n if(se==0){\r\n this.txtCurriculum.setText(\"\"+j.getSelectedFile().getName());\r\n ruta_archivo=j.getSelectedFile().getAbsolutePath();\r\n }else{}\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n JFileChooser j = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n\n // set the selection mode to directories only\n j.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n // invoke the showsSaveDialog function to show the save dialog\n int r = j.showSaveDialog(null);\n\n if (r == JFileChooser.APPROVE_OPTION) {\n // set the label to the path of the selected directory\n directory.setText(j.getSelectedFile().getAbsolutePath());\n }\n // if the user cancelled the operation\n else\n directory.setText(\"the user cancelled the operation\");\n }",
"private void fileChooser(){\n JFileChooser chooser = new JFileChooser();\n // Note: source for ExampleFileFilter can be found in FileChooserDemo,\n // under the demo/jfc directory in the JDK.\n //ExampleFileFilter filter = new ExampleFileFilter();\n// filter.addExtension(\"jpg\");\n// filter.addExtension(\"gif\");\n// filter.setDescription(\"JPG & GIF Images\");\n // chooser.setFileFilter(new javax.swing.plaf.basic.BasicFileChooserUI.AcceptAllFileFilter());\n int returnVal = chooser.showOpenDialog(this.getContentPane());\n if(returnVal == JFileChooser.APPROVE_OPTION) {\n System.out.println(\"You chose to open this file: \" +\n chooser.getSelectedFile().getName());\n try{\n this.leerArchivo(chooser.getSelectedFile());\n\n }\n catch (Exception e){\n System.out.println(\"Imposible abrir archivo \" + e);\n }\n }\n }",
"private JFileChooser fileChooserDialog(String title, String currentDir) {\n JFileChooser fc = new JFileChooser();\n fc.setDialogTitle(title);\n\n // Choose only files, not directories\n fc.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\n fc.setCurrentDirectory(new File(currentDir));\n\n // Set filter for Java source files.\n fc.setFileFilter(fImageFilter);\n return fc;\n }",
"private void outputBrowseButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_outputBrowseButtonActionPerformed\n JFileChooser chooser = new JFileChooser();\n chooser.setCurrentDirectory(new java.io.File(\".\"));\n chooser.setDialogTitle(\"Select a directory\");\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n chooser.setAcceptAllFileFilterUsed(false);\n\n if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n outputFileLoc.setText(chooser.getCurrentDirectory().getAbsolutePath());\n }\n }",
"private void getFileOrDirectory() {\r\n // display file dialog, so user can choose file or directory to open\r\n JFileChooser fileChooser = new JFileChooser();\r\n\t fileChooser.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\r\n fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES );\r\n\r\n int result = fileChooser.showOpenDialog(this);\r\n\r\n // if user clicked Cancel button on dialog, return\r\n if (result == JFileChooser.CANCEL_OPTION )\r\n System.exit( 1 );\r\n\r\n File name = fileChooser.getSelectedFile(); // get File\r\n\r\n // display error if invalid\r\n if ((name == null) || (name.getName().equals( \"\" ))){\r\n JOptionPane.showMessageDialog(this, \"Invalid Name\",\r\n \"Invalid Name\", JOptionPane.ERROR_MESSAGE );\r\n System.exit( 1 );\r\n } // end if\r\n\t \r\n\t filename = name.getPath();\r\n }",
"public String promptForFolder( Component parent )\n\t{\n\t JFileChooser fc = new JFileChooser();\n\t fc.setFileSelectionMode( JFileChooser.FILES_AND_DIRECTORIES);\n\n\t if( fc.showOpenDialog( parent ) == JFileChooser.APPROVE_OPTION )\n\t {\n\t return fc.getSelectedFile().getAbsolutePath();\n\t }\n\n\t return null;\n\t}",
"public static void processOneFileSelecction()\n {\n int answer = JSoundsMainWindowViewController.jfcOneFile.showOpenDialog(JSoundsMainWindowViewController.jSoundsMainWindow);\n \n if (answer == JFileChooser.APPROVE_OPTION)\n {\n File actualDirectory = JSoundsMainWindowViewController.jfcOneFile.getCurrentDirectory();\n String directory = actualDirectory.getAbsolutePath() + \"/\" + JSoundsMainWindowViewController.jfcOneFile.getSelectedFile().getName();\n UtilFunctions.listOneFile(JSoundsMainWindowViewController.jfcOneFile.getSelectedFile());\n JSoundsMainWindowViewController.orderBy(true, false, false); \n }\n }",
"public void chooseDataDirectory() {\n File file;\n JFileChooser fileChooser = new JFileChooser(\n new java.io.File(defaultDirectory));\n fileChooser.setDialogTitle(NbBundle.getMessage(\n SessionTopComponent.class, \"ChooseDataDirectory\"));\n fileChooser.setFileSelectionMode(\n JFileChooser.DIRECTORIES_ONLY);\n int returnVal = fileChooser.showOpenDialog(this);\n\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n file = fileChooser.getSelectedFile();\n\n dataDirectoryTextField.setText(file.getAbsolutePath());\n defaultDirectory = file.getPath();\n }\n enableStartButton();\n }",
"public void actionPerformed(ActionEvent e) {\n\t \tJFileChooser fileChooser = new JFileChooser(lastChoosenDir);\n\t int returnValue = fileChooser.showOpenDialog(null);\n\t if (returnValue == JFileChooser.APPROVE_OPTION) {\n\t selectedFile = fileChooser.getSelectedFile();\n\t lastChoosenDir = selectedFile.getParentFile();\n\t System.out.println(selectedFile.getName());\n\t // lblSlika=new JLabel(\"aa\");\n\t displayChosen();\n\t \n\t // content.add(lblSlika);\n\t \n\t }\n\t }",
"private void showFileChooser(){\n\t\t//Create the file chooser with a default directory of the last downloadPath (default will be user.home\\Downloads\\)\n\t\tJFileChooser chooser = new JFileChooser(downloadPath);\n\t\t//Allow the file chooser to only select directories\n\t\tchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\t//Set the title\n\t\tchooser.setDialogTitle(\"Choose where to save your images\");\n\t\t//If the user chose a directory, then set the new path\n\t\tif(chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION){\t\n\t\t\tdownloadPath = chooser.getSelectedFile().getAbsolutePath() + File.separator;\n\t\t}\n\t\t//If the user did not choose a directory, then reset to default path\n\t\telse{\n\t\t\tsetDefaultPath();\n\t\t}\n\t\t//Check to see if the path is completed by a \\\n\t\tif(!downloadPath.endsWith(File.separator)){\n\t\t\tdownloadPath += File.separator;\n\t\t}\n\t\t//Update to let the user see where their files are downloaded\n\t\tcurrentPath.setText(downloadPath);\n\t\tcurrentPath.setToolTipText(downloadPath);\n\t}",
"public SanPhamJFrame() {\n initComponents();\n setLocationRelativeTo(null);\n fileChooser = new JFileChooser();\n\n }",
"public void getFileChooser(){\r\n \r\n FileNameExtensionFilter txtfilter = new FileNameExtensionFilter(\"*.txt\", \"txt\");\r\n //FileNameExtensionFilter pngfilter = new FileNameExtensionFilter(\"*.png\", \"png\");\r\n FileNameExtensionFilter zipfilter = new FileNameExtensionFilter(\"*.zip\", \"zip\");\r\n \r\n final JFileChooser fc = new JFileChooser();\r\n fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\r\n fc.setAcceptAllFileFilterUsed(false);\r\n fc.setDialogTitle(\"Choose directory [USQ_DATA] or File\");\r\n //filter txt and png\r\n //fc.setFileFilter(pngfilter);\r\n fc.setFileFilter(txtfilter);\r\n fc.setFileFilter(zipfilter);\r\n \r\n try{\r\n fc.setCurrentDirectory(new File(workplace));\r\n }catch(Exception e) {\r\n FileSystemView fsv = FileSystemView.getFileSystemView();\r\n wppath = fsv.getDefaultDirectory();\r\n File rd = new File(wppath.getAbsolutePath() + \"/USQ_Reporter.txt\");\r\n rd.delete();\r\n try {\r\n setDir();\r\n } catch (FileNotFoundException ex) {\r\n JOptionPane.showMessageDialog(null, \"file not found.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, \"IOException when get file.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n int returnVal = fc.showOpenDialog(this);\r\n if(returnVal == JFileChooser.APPROVE_OPTION) {\r\n File file = fc.getSelectedFile();\r\n //if txt from zip, dont copy to old\r\n fromzip = false;\r\n if(!file.exists()) {\r\n JOptionPane.showMessageDialog(null, \"file doesn't exist.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n } else if(file.isDirectory()) {\r\n File files[] = file.listFiles();\r\n File old = new File(workplace + \"/old\");\r\n //create old folder\r\n if(!old.exists())old.mkdir();\r\n if(old.exists()&&old.isFile())old.mkdir();\r\n for(int i=0 ; i<files.length ; i++) {\r\n if(files[i].isFile()) {\r\n readFile(files[i]);\r\n if(files[i].getName().equals(\"USQRecorders.txt\"))\r\n createSes(files[i]);\r\n }\r\n }\r\n //delete read in dir\r\n for(int i=0 ; i<files.length ; i++){\r\n boolean b =files[i].delete();\r\n System.out.println(files[i].getAbsolutePath() + \" \" + b);\r\n }\r\n file.delete(); \r\n } else if (file.isFile()) {\r\n File old = new File(workplace + \"/old\");\r\n //create old folder\r\n if(old.exists()&&old.isFile())old.mkdir();\r\n if(!old.exists())old.mkdir();\r\n if(file.getName().endsWith(\".zip\")){fromzip=true;}else{fromzip=false;}\r\n readFile(file);\r\n if(file.getName().equals(\"USQRecorders.txt\"))\r\n createSes(file);\r\n }\r\n \r\n //delete read in file\r\n file.delete();\r\n }\r\n }",
"void selectFile(){\n JLabel lblFileName = new JLabel();\n fc.setCurrentDirectory(new java.io.File(\"saved\" + File.separator));\n fc.setDialogTitle(\"FILE CHOOSER\");\n FileNameExtensionFilter xmlfilter = new FileNameExtensionFilter(\n \"json files (*.json)\", \"json\");\n fc.setFileFilter(xmlfilter);\n int response = fc.showOpenDialog(this);\n if (response == JFileChooser.APPROVE_OPTION) {\n lblFileName.setText(fc.getSelectedFile().toString());\n }else {\n lblFileName.setText(\"the file operation was cancelled\");\n }\n System.out.println(fc.getSelectedFile().getAbsolutePath());\n }",
"public void chooseOutputDirectory() {\n File file;\n JFileChooser fileChooser = new JFileChooser(\n new java.io.File(defaultDirectory));\n fileChooser.setDialogTitle(NbBundle.getMessage(\n SessionTopComponent.class, \"ChooseOutputDirectory\"));\n fileChooser.setFileSelectionMode(\n JFileChooser.DIRECTORIES_ONLY);\n int returnVal = fileChooser.showOpenDialog(this);\n\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n file = fileChooser.getSelectedFile();\n\n outputDirectoryTextField.setText(file.getAbsolutePath());\n defaultDirectory = file.getPath();\n }\n enableStartButton();\n }",
"private void showDestinationDirChooser() {\r\n\t\tDirectoryChooser chooser = new DirectoryChooser();\r\n\t\tchooser.setTitle(\"Pick destination directory for split DARs. Hint: use a folder on TeacherShare.\");\r\n\t\tFile defaultDirectory = new File(System.getenv(\"userprofile\") + \"\\\\Desktop\");\r\n\t\tchooser.setInitialDirectory(defaultDirectory);\r\n\t\tFile selectedDirectory = chooser.showDialog(null);\r\n\r\n\t\tif (selectedDirectory != null) {\r\n\t\t\tString messageS = null;\r\n\t\t\tmessageS = selectedDirectory.getAbsolutePath();\r\n\t\t\tpreferences.setProperty(prefOutputPath, messageS);\r\n\t\t\tdestinationDirFX.update();\r\n\t\t}\r\n\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (e.getSource() == browseBtn) {\n\t\t\t\t\tfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\t\t\t\tint returnVal = fc.showOpenDialog(browseBtn);\n\t\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\tFile file = fc.getSelectedFile();\n\t\t\t\t\t\tcomboBox.setSelectedItem(file.getAbsolutePath());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"private void setChooser ()\n {\n chooser.setCurrentDirectory (new File (\".\"));\n // accept all files ending with .xml\n chooser.setFileFilter (new javax.swing.filechooser.FileFilter ()\n {\n public boolean accept (File f)\n {\n return f.getName ().toLowerCase ().endsWith (\".xml\") || f.isDirectory ();\n }\n\n public String getDescription ()\n {\n return \"XML files\";\n }\n });\n }",
"private void outputBrowseButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_outputBrowseButtonActionPerformed\n if (fileChooser1.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\n outputDirText.setText(fileChooser1.getSelectedFile().getAbsolutePath());\n } else {\n System.out.println(\"File access cancelled.\");\n }\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onChosenDir(String chosenDir) {\n\t\t\t\t\t\t\t\t\tm_chosen = chosenDir;\n\t\t\t\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Chosen FileOpenDialog File: \" +\n\t\t\t\t\t\t\t\t\t\t\tm_chosen, Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t\t\t\tRecord_Dialog_On = false;\n\t\t\t\t\t\t\t\t}",
"public void selectPathDirectory(String dir, StringComparator comparator) {\n getQueueTool().waitEmpty();\n output.printTrace(\"Select \\\"\" + dir + \"\\\" directory in JFileChooser\\n : \"\n + toStringSource());\n JComboBoxOperator comboOper = new JComboBoxOperator(getPathCombo());\n comboOper.copyEnvironment(this);\n comboOper.setOutput(output.createErrorOutput());\n //workaround\n comboOper.setSelectedIndex(findDirIndex(dir, comparator));\n //comboOper.selectItem(findDirIndex(dir, comparator));\n waitPainted(-1);\n }",
"public int openFileChooser(){\n int returnVal = fileChooser.showOpenDialog(getCanvas()); //Parent component as parameter - affects position of dialog\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"ZIP & OSM & BIN\", \"osm\", \"zip\", \"bin\",\"OSM\",\"ZIP\",\"BIN\"); //The allowed files in the filechooser\n fileChooser.setFileFilter(filter); //sets the above filter\n return returnVal;\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n jPanel2 = new javax.swing.JPanel();\n jFileChooserFoto = new javax.swing.JFileChooser();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"August- Selecione uma imagem\");\n\n jFileChooserFoto.setApproveButtonText(\"Carregar\");\n jFileChooserFoto.setCurrentDirectory(new java.io.File(\"H:\\\\Pedro\\\\WEB\\\\Arquivos_htm\\\\doctor whosite\"));\n jFileChooserFoto.setDialogTitle(\"Selecione uma imagem\");\n jFileChooserFoto.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n jFileChooserFotoActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jFileChooserFoto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jFileChooserFoto, javax.swing.GroupLayout.PREFERRED_SIZE, 346, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public File getFileChooserDirectory() {\n\n\t\tFile dir = null;\n\n\t\ttry {\n\t\t\tFile tmpDir = new File(diffuseBaseValueControl.getText());\n\t\t\tif (tmpDir.exists()) dir = tmpDir.getParentFile();\n\t\t} catch (Exception ex) {\n\t\t}\n\n\t\ttry {\n\t\t\tFile tmpDir = new File(specularBaseValueControl.getText());\n\t\t\tif (tmpDir.exists()) dir = tmpDir.getParentFile();\n\t\t} catch (Exception ex) {\n\t\t}\n\n\t\ttry {\n\t\t\tFile tmpDir = new File(((TextField) textureInputLayout.lookup(\"tex_path\")).getText());\n\t\t\tif (tmpDir.exists()) dir = tmpDir.getParentFile();\n\t\t} catch (Exception ex) {\n\t\t}\n\n\t\treturn dir;\n\t}",
"public TiffTestFrame() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n JDialog.setDefaultLookAndFeelDecorated(true);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n initComponents();\n fc = new JFileChooser();\n //fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n //fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n }",
"private void browseInputButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_browseInputButtonActionPerformed\n JFileChooser chooser = new JFileChooser();\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"XLS file\", new String[]{\"xls\", \"xlsx\"});\n chooser.setFileFilter(filter);\n chooser.setCurrentDirectory(new java.io.File(\".\"));\n chooser.setDialogTitle(\"Select a file\");\n chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n chooser.setAcceptAllFileFilterUsed(false);\n\n if (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n FILEPATH.setText(chooser.getSelectedFile().getPath());\n }\n }",
"private void setupDirectoryChooser(DirectoryChooser directoryChooser) \n {\n directoryChooser.setTitle(\"Select Directory to save Report\");\n\n // Set Initial Directory\n directoryChooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\n }",
"private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser fc = new JFileChooser();\n fc.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\n int result = fc.showOpenDialog(this);\n if (result == JFileChooser.APPROVE_OPTION) {\n File selectedFile = fc.getSelectedFile();\n myFile = selectedFile.getAbsolutePath().replaceAll(\"\\\\\\\\\", \"/\");\n //System.out.println(\"Selected file: \" + myFile);\n }\n jSimulationBtn.setEnabled(true);\n jBtnFuzzy.setEnabled(true);\n jFileTxt.setText(myFile);\n }",
"private JFileChooser getInChooser() \r\n {\r\n if (inChooser == null) \r\n {\r\n inChooser = new JFileChooser();\r\n }\r\n return inChooser;\r\n }",
"@Override\n public void actionPerformed(ActionEvent ae) {\n if (ae.getSource() == btnAbrir) {\n JFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.home\"));\n fileChooser.setFileFilter(new FolderFilter());\n fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n int returnValue = fileChooser.showDialog(this, \"Escolha o diretório para o seu projeto\");\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n File file = fileChooser.getSelectedFile();\n\n String caminho = file.getAbsolutePath();\n\n txtCaminho.setText(caminho);\n } else {\n\n }\n\n }\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t\n\t\tif(e.getSource()==browse){\n\t\t\tif (chooser == null){\n\t\t\t\tchooser = new JFileChooser();\n\t\t\t\tchooser.setCurrentDirectory(new java.io.File(projectPath));\n\t\t\t\tchooser.setDialogTitle(\"Find Folder\");\n\t\t\t\tchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\t\t\tchooser.setAcceptAllFileFilterUsed(false);\n\n\t\t\t\tif (chooser.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\tsaveTo.setText(chooser.getSelectedFile().toString());\t\t\n\t\t\t\t}\n\t\t\t\tchooser = null;\n\t\t\t}\t\n\t\t}else if(e.getSource()== save){\n\t\t\tsaveFile();\n\t\t}else if(e.getSource()==cancel){\n\t\t\tnameOfFile.setText(\"\");\n\t\t\tsaveTo.setText(\"\");\n\t\t\tthisFrame.dispose();\n\t\t}\n\t\t\n\t}",
"public GeoGebraFileChooser(AppD app, File currentDirectory) {\n\t\tthis(app, currentDirectory, false);\n\t}",
"@FXML\r\n\tprivate void choisirFichier()\r\n\t{\r\n\t\tFileChooser fileChooser = new FileChooser();\r\n\r\n\t\tfileChooser\r\n\t\t\t\t.setInitialDirectory(new File(System.getProperty(\"user.dir\")));\r\n\t\tFile fichier = fileChooser.showOpenDialog(new Stage());\r\n\r\n\t\tif (fichier != null)\r\n\t\t{\r\n\t\t\ttextFieldFichier.setText(fichier.getPath());\r\n\t\t}\r\n\t}",
"public static Path selectDirectory(String title, String initialPath) {\n if (SystemUtils.IS_OS_MAC) {\n try {\n // open directory chooser\n return openDirectoryDialog(title, initialPath);\n }\n catch (Exception | Error e) {\n LOGGER.warn(\"cannot open AWT directory chooser: {}\", e.getMessage());\n }\n finally {\n // reset system property\n System.setProperty(\"apple.awt.fileDialogForDirectories\", \"false\");\n }\n }\n else {\n // try to open with NFD\n try {\n\n PointerBuffer outPath = MemoryUtil.memAllocPointer(1);\n\n // check if the initialPath is accessible\n if (StringUtils.isBlank(initialPath) || !Files.exists(Paths.get(initialPath))) {\n initialPath = System.getProperty(\"user.home\");\n }\n\n try {\n int result = NativeFileDialog.NFD_PickFolder(initialPath, outPath);\n if (result == NativeFileDialog.NFD_OKAY) {\n Path path = Paths.get(outPath.getStringUTF8());\n NativeFileDialog.nNFD_Free(outPath.get(0));\n return path;\n }\n else if (result == NativeFileDialog.NFD_CANCEL) {\n return null;\n }\n else {\n LOGGER.warn(\"NFD result was ERROR for path {}; trying JFileChooser\", initialPath);\n }\n }\n finally {\n MemoryUtil.memFree(outPath);\n }\n\n }\n catch (Exception | Error e) {\n LOGGER.error(\"could not call nfd - {}\", e.getMessage());\n }\n }\n\n // open JFileChooser\n return openJFileChooser(JFileChooser.DIRECTORIES_ONLY, title, initialPath, true, null, null);\n }",
"private void saveDialog() {\n JFileChooser chooser = new JFileChooser();\n \n FileFilter ff = new FileFilter() {\n\n @Override\n public boolean accept(File f) {\n // TODO Auto-generated method stub\n return f.getName().endsWith(FILE_EXTENSION);\n }\n\n @Override\n public String getDescription() {\n return \"CSV\";\n }\n\n };\n chooser.addChoosableFileFilter(ff);\n chooser.setAcceptAllFileFilterUsed(true);\n chooser.setFileFilter(ff);\n chooser.showSaveDialog(null);\n this.file = chooser.getSelectedFile();\n //this.file = new File(chooser.getSelectedFile().getName() + INSTANCE.FILE_EXTENSION);\n\n\n try {\n\n if (file != null) {\n this.saveData();\n this.isModifed = false;\n }\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage(), \"Error Saving File\", JOptionPane.ERROR_MESSAGE);\n\n }\n\n }",
"public void initializeJFileChoosers()\r\n\t{\r\n\t\tqFileChooser = new JFileChooser();\r\n\t\textensionFilter = new FileNameExtensionFilter(\"Img\",\"jpg\",\"gif\",\"png\");\r\n\t\tqFileChooser.setFileFilter(extensionFilter);\r\n\t\tqFileChooser.setAcceptAllFileFilterUsed(false);\r\n\t\taFileChooser = new JFileChooser();\r\n\t\textensionFilter = new FileNameExtensionFilter(\"Img\",\"jpg\",\"gif\",\"png\");\r\n\t\taFileChooser.setFileFilter(extensionFilter);\r\n\t\taFileChooser.setAcceptAllFileFilterUsed(false);\r\n\t}",
"private void selectFolderBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_selectFolderBtnMouseClicked\n if (workingDirectory == null)\n {\n workingDirectory = new File(\".\");\n }\n JFileChooser selectFolderUI = new JFileChooser();\n selectFolderUI.setCurrentDirectory(workingDirectory);\n selectFolderUI.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n int response = selectFolderUI.showOpenDialog(mainUI.this);\n if (response == JFileChooser.APPROVE_OPTION)\n {\n ArrayList<FileItem> fileList = new ArrayList<>();\n workingDirectory = selectFolderUI.getSelectedFile();\n ArrayList<File> files = \n new ArrayList<>(Arrays.asList(workingDirectory.listFiles()));\n \n for (File f : files)\n {\n if (!f.isDirectory())\n {\n FileItem fi = null;\n try {\n fi = new FileItem(f);\n } catch (IOException ex) {\n Logger.getLogger(mainUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n fileList.add(fi);\n }\n }\n \n CSPB.testFiles = fileList;\n mainUI.this.refresh();\n } \n }",
"private void handleBrowse() {\n\t\tDirectoryDialog dirDial = new DirectoryDialog(this.getShell());\n\t\tdirText.setText(dirDial.open());\n\t}",
"private JFileChooser getOutChooser() \r\n {\r\n if (outChooser == null) \r\n {\r\n outChooser = new JFileChooser();\r\n }\r\n return outChooser;\r\n }",
"@FXML\n private void chooseNewDirEvent() throws IOException {\n DirectoryChooser chooser = new DirectoryChooser();\n chooser.setTitle(\"Choose Home Directory\");\n Stage curStage = (Stage) rootPane.getScene().getWindow();\n File selectedDirectory = chooser.showDialog(curStage);\n if (selectedDirectory != null) {\n model.User.setRootDir(selectedDirectory);\n model.DirectoryManager.set(selectedDirectory);\n model.User.setGalleryPhotos(model.DirectoryManager.getTree().getDir().getPhotos());\n fadeOutEvent();\n } else {\n curStage.show();\n }\n }",
"public NewFileChooser_Alejandro() {\n initComponents();\n }",
"public void actionPerformed(ActionEvent e) {\r\n\r\n if (e.getActionCommand() == \"BATCH_SOURCE_FOLDER\") { \r\n \t JFileChooser fc = new JFileChooser();\r\n\r\n\t\t fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n\t\t int returnVal = fc.showDialog(RSMLGUI.this, \"Choose\");\r\n\t\t \r\n if (returnVal == JFileChooser.APPROVE_OPTION){ \r\n \t String fName = fc.getSelectedFile().toString();\r\n \t batchSourceFolder.setText(fName);\r\n }\r\n else SR.write(\"Choose folder cancelled.\"); \r\n }\r\n \r\n else if(e.getActionCommand() == \"BATCH_EXPORT\"){\r\n \t batchExport();\r\n }\r\n \r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n JFileChooser j = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory());\n\n // invoke the showsSaveDialog function to show the save dialog\n int r = j.showSaveDialog(null);\n\n if (r == JFileChooser.APPROVE_OPTION) {\n // set the label to the path of the selected directory\n dataFile.setText(j.getSelectedFile().getAbsolutePath());\n }\n // if the user cancelled the operation\n else\n dataFile.setText(\"the user cancelled the operation\");\n }",
"private void loadFolderPressed() {\n\n\t\t// open a jfile chooser and then go through the directory chosen\n\t\t// then load all the video and audio files in that directory\n\n\t\tFile chosenDirectory =null;\n\n\t\t// choose a directory only\n\t\tJFileChooser chooser = new JFileChooser();\n\t\tchooser.setCurrentDirectory(new java.io.File(\".\"));\n\t\tchooser.setDialogTitle(\"Choose Directory\");\n\t\tchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\tint response = chooser.showOpenDialog(Library.this);\n\t\tif (response == JFileChooser.APPROVE_OPTION) {\n\t\t\t// Chose the directory to save to\n\t\t\tchosenDirectory = chooser.getSelectedFile().getAbsoluteFile();\n\t\t}\n\t\tif(chosenDirectory != null){\n\t\t\t// go through the chosen directory and get all the files\n\t\t\tl.clear();\n\t\t\tFile[] directoryListing = chosenDirectory.listFiles();\n\t\t\tif (directoryListing != null) {\n\n\t\t\t\t// check if that file chosen currently is a media file. If it is then\n\t\t\t\t// add it to the list\n\t\t\t\tInvalidCheck ic = new InvalidCheck();\n\n\t\t\t\tfor(File f : directoryListing){\n\t\t\t\t\tboolean isValid = ic.invalidCheck(f.getAbsolutePath());\n\n\t\t\t\t\tif(isValid){\n\t\t\t\t\t\tlistFolder.add(f);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(File f2 : listFolder){\n\t\t\t\t\tSystem.out.println(f2.getName());\n\t\t\t\t}\n\n\t\t\t\t// get the paths and sizes of the media files.\n\t\t\t\tfor(File f : listFolder){\n\t\t\t\t\t// only put the file in if it is not size 0 so that any bad files are avoided.\n\t\t\t\t\tif(f.length() != 0){\n\t\t\t\t\t\tl.addElement(f.getName());\n\t\t\t\t\t\tpaths.put(f.getName(),f.getAbsoluteFile());\n\t\t\t\t\t\tsizes.put(f.getName(), f.length());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void saveFileChooser(){\n JFileChooser chooser = new JFileChooser();\n // Note: source for ExampleFileFilter can be found in FileChooserDemo,\n // under the demo/jfc directory in the JDK.\n //ExampleFileFilter filter = new ExampleFileFilter();\n// filter.addExtension(\"jpg\");\n// filter.addExtension(\"gif\");\n// filter.setDescription(\"JPG & GIF Images\");\n // chooser.setFileFilter(new javax.swing.plaf.basic.BasicFileChooserUI.AcceptAllFileFilter());\n int returnVal = chooser.showSaveDialog(this.getContentPane());\n if(returnVal == JFileChooser.APPROVE_OPTION) {\n System.out.println(\"You chose to open this file: \" +\n chooser.getSelectedFile().getName());\n try{\n this.generarReporte(chooser.getSelectedFile().getAbsolutePath());\n }\n catch (Exception e){\n System.out.println(\"Imposible abrir archivo \" + e);\n }\n }\n }",
"public File selectDirectory(final File currentDirectory) {\r\n return select(currentDirectory, JFileChooser.DIRECTORIES_ONLY);\r\n }",
"private String displayPDFFileDialog() {\r\n String fileName = null;\r\n if(fileChooser == null) {\r\n // COEUSQA-1925: Narrative upload recall the last folder from which an upload Can't be done - Start\r\n// fileChooser = new JFileChooser();\r\n fileChooser = new CoeusFileChooser(CoeusGuiConstants.getMDIForm());\r\n if(budgetSubAwardFileFilter == null) {\r\n budgetSubAwardFileFilter = new BudgetSubAwardFileFilter();\r\n }\r\n fileChooser.setFileFilter(budgetSubAwardFileFilter);\r\n fileChooser.setAcceptAllFileFilterUsed(false);\r\n }\r\n// int selection = fileChooser.showOpenDialog(subAwardBudget);\r\n fileChooser.showFileChooser();\r\n if(fileChooser.isFileSelected()){\r\n // if(selection == JFileChooser.APPROVE_OPTION) {\r\n// File file = fileChooser.getSelectedFile();\r\n File file = fileChooser.getFileName();\r\n // COEUSQA-1925: Narrative upload recall the last folder from which an upload Can't be done - End\r\n fileName = file.getAbsolutePath();\r\n }\r\n return fileName;\r\n }",
"public void openFileDialog() {\n\tswitch(buttonAction) {\n\t case SELECT_FILES:\n openFileDialog(fileUpload, true);\n break;\n\t case SELECT_FILE:\n default:\n openFileDialog(fileUpload, false);\n break;\n\t}\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jFileChooser1 = new javax.swing.JFileChooser();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jFileChooser1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jFileChooser1ActionPerformed(evt);\n }\n });\n\n jButton1.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jButton1.setText(\"GRAFICA\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jFileChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, 575, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(19, 19, 19)\n .addComponent(jFileChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGap(227, 227, 227)\n .addComponent(jButton1)))\n .addContainerGap(58, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public void seleccionarFichero(){\n JFileChooser fileChooser = new JFileChooser();\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"xml\", \"xml\");\n fileChooser.setFileFilter(filter);\n fileChooser.setCurrentDirectory(new java.io.File(\"./ficheros\"));\n int seleccion = fileChooser.showOpenDialog(vista_principal);\n if (seleccion == JFileChooser.APPROVE_OPTION){\n fichero = fileChooser.getSelectedFile();\n vista_principal.getTxtfield_nombre_fichero().\n setText(fichero.getName().substring(0, fichero.getName().length()-4));\n }\n }",
"private void outputFolderButtonActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser chooser = new JFileChooser();\n chooser.setDialogTitle(\"Select Output Folder\");\n chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n File workingDirectory = new File(System.getProperty(\"user.dir\"));\n chooser.setCurrentDirectory(workingDirectory);\n if (chooser.showSaveDialog(this) == JFileChooser.APPROVE_OPTION) {\n outputFile = chooser.getSelectedFile();\n outputFolderLabel.setText(getFileName(chooser.getSelectedFile()));\n }\n }",
"@Override\r\n\tprotected void directorySelectionChangedDirectly() {\n\r\n\t}",
"public void setDir() throws FileNotFoundException, IOException{\r\n final JFileChooser jfc = new JFileChooser();\r\n jfc.setDialogTitle(\"Choose Workplace Dirtory\");\r\n FileSystemView fsv = FileSystemView.getFileSystemView();\r\n //wppath stores workplace location\r\n wppath = fsv.getDefaultDirectory();\r\n File rd = new File(wppath.getAbsolutePath() + \"/USQ_Reporter.txt\");\r\n int ext = 0;\r\n if(rd.exists())ext=1;\r\n if(!rd.exists())ext=2;\r\n FileReader fr; \r\n if(rd.exists()){\r\n fr= new FileReader(rd);\r\n if(fr.read()==-1)\r\n ext=2;\r\n }\r\n //System.out.println(ext);\r\n //workplace path\r\n if(ext==1) {\r\n BufferedReader br = new BufferedReader(new FileReader(rd));\r\n workplace = br.readLine();\r\n }else if (ext==2) {\r\n jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n int returnVal = jfc.showOpenDialog(this);\r\n \r\n if(returnVal == JFileChooser.APPROVE_OPTION) {\r\n File file = jfc.getSelectedFile();\r\n if(!file.exists()) {\r\n JOptionPane.showMessageDialog(null, \"file doesn't exist.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n } else if(file.isDirectory()) {\r\n workplace = file.getAbsolutePath();\r\n }\r\n }\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(rd));\r\n bw.write(workplace);\r\n bw.flush();\r\n bw.close();\r\n }\r\n }",
"public String openFileChooser() {\n\t\tthis.setCurrentDirectory(new File(\".\"));\n\t\tthis.setDialogTitle(\"Choose your file\");\n\t\tint returnValue = this.showOpenDialog(null);\n\t\tif (returnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\treturn this.getSelectedFile().getAbsolutePath();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent e) {\r\n JFileChooser fileChooser = new JFileChooser();\r\n fileChooser.setCurrentDirectory(new File(System.getProperty(\"user.home\")));\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"*.Images\", \"jpg\", \"gif\", \"png\");\r\n fileChooser.addChoosableFileFilter(filter);\r\n int result1 = fileChooser.showOpenDialog(null);\r\n if(result1 == JFileChooser.APPROVE_OPTION) {\r\n \tselectedFile = fileChooser.getSelectedFile();\r\n \treview.setText(selectedFile.getAbsolutePath());\r\n }\r\n }",
"@FXML\n private void handleChooseDirectory(){\n\n //Use directoryChooser for let user select the directory he wants\n //to be monitored\n DirectoryChooser directoryChooser = new DirectoryChooser();\n directoryChooser.setTitle(\"Select a directory to be monitored...\");\n directoryChooser.setInitialDirectory(new File(\"C:\\\\\"));\n File chosenDirectory = directoryChooser.showDialog(mainApp.getPrimaryStage());\n\n\n //Check that the path is valid and if it exists\n if(chosenDirectory.isDirectory() && chosenDirectory.exists()){\n //Put the full path in the textField\n directoryPathField.setText(chosenDirectory.getAbsolutePath());\n }\n\n //Enable buttons after directory has been chosen\n startWatcherButton.setDisable(false);\n stopWatcherButton.setDisable(true);\n\n //Getting the path\n monitoredPath = Paths.get(chosenDirectory.getAbsolutePath());\n }",
"private void openFile() {\n\t\tJDialog fileDialog = new JDialog(this, \"Select File\", true);\n\t\tFileDialog filePanel = new FileDialog(this, this, false, false, false);\n\t\tfileDialog.getContentPane().add(filePanel);\n\t\tfileDialog.pack();\n\n\t\t// set the location.\n\t\tPoint p1 = this.getLocation();\n\t\tDimension d1 = this.getSize();\n\t\tDimension d2 = fileDialog.getSize();\n\t\tfileDialog.setLocation((p1.x + (d1.width / 2)) - (d2.width / 2),\n\t\t\t\t(p1.y + (d1.height / 2)) - (d2.height / 2));\n\n\t\tfilePanel.setCurrentDirectory(Config.getInstance().getBaseHarvestDir());\n\t\tfileDialog.show();\n\t}",
"private void browseOutputFilePath()\n\t{\n\t\tString filedirectory = \"\";\n\t\tString filepath = \"\";\n\t\ttry\n\t\t{\n\t\t\tJFileChooser fc = new JFileChooser(\".\");\n\t\t\tfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); //select directories or files\n\t\t\tfc.setDialogTitle(\"Please choose a directory to save the converted file(s)\");\n\n\t\t\tFileNameExtensionFilter sifdata = new FileNameExtensionFilter(\"SIF\", \"sif\");\n\t\t\tfc.addChoosableFileFilter(sifdata);\n\n\t\t\tint returnVal = fc.showOpenDialog(this); // shows the dialog of the file browser\n\t\t\t// get name und path\n\t\t\tif(returnVal == JFileChooser.APPROVE_OPTION)\n\t\t\t{\n\t\t\t\tmainframe.setOutputTextfieldText(fc.getSelectedFile().getAbsolutePath());\n\t\t\t}\n\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(new JFrame(),\n\t\t\t\t\t\t\t\"Problem when trying to choose an output : \" + e.toString(),\n\t\t\t\t\t\t\t\"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public JFileChooser getAnswerFileChooser() {\r\n\t\treturn aFileChooser;\r\n\t}",
"public void openInputFileDialog() {\n// try{Thread.currentThread().sleep(200);}catch(InterruptedException e){}\n float oldScale=chipCanvas.getScale();\n fileChooser=new JFileChooser();\n// new TypeAheadSelector(fileChooser);\n //com.sun.java.plaf.windows.WindowsFileChooserUI;\n// fileChooser.addKeyListener(new KeyAdapter() {\n// public void keyTyped(KeyEvent e){\n// System.out.println(\"keycode=\"+e.getKeyCode());\n// }\n// });\n// System.out.println(\"fileChooser.getUIClassID()=\"+fileChooser.getUIClassID());\n// KeyListener[] keyListeners=fileChooser.getKeyListeners();\n// ChipDataFilePreview preview=new ChipDataFilePreview(fileChooser,chip); // from book swing hacks\n// new FileDeleter(fileChooser,preview);\n// fileChooser.addPropertyChangeListener(preview);\n// fileChooser.setAccessory(preview);\n String lastFilePath=prefs.get(\"MotionViewer.lastFile\",\"\"); // get the last folder\n lastFile=new File(lastFilePath);\n// fileChooser.setFileFilter(datFileFilter);\n DATFileFilter datFileFilter = new DATFileFilter();\n fileChooser.addChoosableFileFilter(datFileFilter);\n fileChooser.setCurrentDirectory(lastFile); // sets the working directory of the chooser\n// boolean wasPaused=isPaused();\n setPaused(true);\n int retValue=fileChooser.showOpenDialog(MotionViewer.this);\n if(retValue==JFileChooser.APPROVE_OPTION){\n try{\n lastFile=fileChooser.getSelectedFile();\n if(lastFile!=null) recentFiles.addFile(lastFile);\n startPlayback(lastFile);\n }catch(FileNotFoundException fnf){\n fnf.printStackTrace();\n// exceptionOccurred(fnf,this);\n }\n }\n fileChooser=null;\n chipCanvas.setScale(oldScale); // restore persistent scale so that we don't get tiny size on next startup\n setPaused(false);\n }",
"public void chooseDatasetDescriptionFile() {\n JFileChooser fileChooser = new JFileChooser(\n new java.io.File(defaultDirectory));\n fileChooser.setDialogTitle(NbBundle.getMessage(\n SessionTopComponent.class, \"ChooseDatasetDescriptionFile\"));\n fileChooser.setFileSelectionMode(\n JFileChooser.FILES_AND_DIRECTORIES);\n FileNameExtensionFilter fileFilter = new FileNameExtensionFilter(\n \"XML-filer\", \"xml\");\n fileChooser.setFileFilter(fileFilter);\n int returnVal = fileChooser.showOpenDialog(this);\n\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n datasetDescriptionFile = fileChooser.getSelectedFile();\n\n datasetDescriptionFileTextField.setText(\n datasetDescriptionFile.getAbsolutePath());\n defaultDirectory = datasetDescriptionFile.getPath();\n }\n enableStartButton();\n }",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n\n JFileChooser chooser = new JFileChooser(); ////apabila merah -> ALT+ENTER -> j file chooser -> TOP\n chooser.showOpenDialog(null);\n File f = chooser.getSelectedFile();\n String filename = f.getAbsolutePath();\n vpath.setText(filename);\n }",
"private void processChooseFileButton() {\n try {\n dataOutputArea.setText(\"\");\n JFileChooser myFileChooser = new JFileChooser(\".\", FileSystemView.getFileSystemView());\n int returnValue = myFileChooser.showOpenDialog(null);\n if(returnValue == JFileChooser.APPROVE_OPTION) {\n selectedFile = myFileChooser.getSelectedFile();\n dataFileField.setText(selectedFile.getName());\n }\n } catch(Exception e) {\n System.out.println(\"There was an error with JFileChooser!\\n\\n\" + e.getMessage());\n } //end of catch()\n }",
"private void chooseRemaindersFile() {\n JFileChooser setEF = new JFileChooser(System.getProperty(\"user.home\"));\n setEF.setDialogType(JFileChooser.OPEN_DIALOG);\n setEF.showDialog(this, \"Выбрать файл\");\n remainderFile = setEF.getSelectedFile();\n putLog(\"Файл остатков: \" + remainderFile.getPath());\n jbParse.setEnabled(workingDirectory != null && remainderFile != null);\n }",
"public FilterChooser() {\n\n \tsuper();\n \tchooser = new JFileChooser();\n \tthis.setupListeners();\n \t\n \n }",
"public String ouvrir(){\n \n JTextArea text=new JTextArea();\n FileNameExtensionFilter filter = new FileNameExtensionFilter (\n \"java\", \"java\");\n chooser.setFileFilter(filter);\n \n int ret=chooser.showOpenDialog(text);\n String path=\"\";\n if(ret==JFileChooser.APPROVE_OPTION){\n path=chooser.getSelectedFile().getAbsolutePath();\n }\n\n return path;\n }",
"public String choosePath(int chooserType) {\n JFileChooser jfc=new JFileChooser();\n jfc.setFileSelectionMode(chooserType );\n jfc.showDialog(new JLabel(), \"选择\");\n File file=jfc.getSelectedFile();\n if(file.isDirectory()){\n return file.getAbsolutePath()+\"\\\\\";\n }\n System.out.println(jfc.getSelectedFile().getName());\n return file.getAbsolutePath();\n }",
"private void jButtonBrowseFileNameActionPerformed(ActionEvent e) {\n\t\tJFileChooser fileChooser = new JFileChooser();\n\t\tint result = fileChooser.showSaveDialog(this);\n\t\tif (result == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = fileChooser.getSelectedFile();\n\t\t\tjTextFieldFileName.setText(file.getAbsolutePath());\n\t\t}\n\t}",
"public JFileChooser getaFileChooser() {\r\n\t\treturn aFileChooser;\r\n\t}",
"@FXML\n private void selectPath(MouseEvent mouseEvent) {\n\n DirectoryChooser directoryChooser = new DirectoryChooser();\n File selectedDirectory = directoryChooser.showDialog(getStage(mouseEvent));\n if (selectedDirectory != null){\n pathTextField.setText(selectedDirectory.getPath());\n }\n\n }",
"public File selectFileOrDirectory(final File currentDirectory) {\r\n return select(currentDirectory, JFileChooser.FILES_AND_DIRECTORIES);\r\n }",
"public JFileChooser getQuestionFileChooser() {\r\n\t\treturn qFileChooser;\r\n\t}",
"private void openItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openItemActionPerformed\n if (fileChooser.showOpenDialog(this) == JFileChooser.APPROVE_OPTION) {\n File file = fileChooser.getSelectedFile();\n String t = \"\";\n if (file.isFile()) {\n if ((file.getName().toLowerCase().endsWith(\".jpg\")\n || file.getName().toLowerCase().endsWith(\".png\"))) {\n files.add(file.getAbsolutePath());\n flist.add(file);\n } else if (file.getName().toLowerCase().endsWith(\".pdf\")) {\n parsePDF(file.getAbsolutePath());\n flist.add(file);\n }\n t += file.getAbsolutePath() + \"\\n\";\n } else {\n for (File f : file.listFiles()) {\n if (f.isFile() && (f.getName().toLowerCase().endsWith(\".jpg\")\n || f.getName().toLowerCase().endsWith(\".png\"))) {\n files.add(f.getAbsolutePath());\n flist.add(f);\n t += f.getAbsolutePath() + \"\\n\";\n } else if (f.isFile() && f.getName().toLowerCase().endsWith(\".pdf\")) {\n parsePDF(f.getAbsolutePath());\n flist.add(f);\n t += f.getAbsolutePath() + \"\\n\";\n }\n }\n }\n textArea.setText(t);\n } else {\n System.out.println(\"File access cancelled.\");\n }\n }",
"private void openFileChooser(FileType type) {\r\n\t\ttry {\r\n\t\t\tJFileChooser fc = new JFileChooser(\"C:\\\\\");\r\n\t\t\tint choice = fc.showDialog(this.view, \"Add File\");\r\n\t\t\tif(choice == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t\tFileModel model = new FileModel(fc.getSelectedFile(), type);\r\n\t\t\t\tif(Validation.isModelValid(model)) {\r\n\t\t\t\t\tFileData.saveFileModel(model);\r\n\t\t\t\t\tthis.updateColumnSelections(type);\r\n\t\t\t\t\tthis.setButtonEnabled(type);\r\n\t\t\t\t\tthis.loadFileNames();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}",
"private void fixFileOption() {\n\t\t\n\t\tnewFileOption.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew CreateFileFrame(main, true , controller);\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\topenFileOption.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser fileSelector = new JFileChooser();\n\t\t\t\tFileNameExtensionFilter fileFilter = new FileNameExtensionFilter(\"ASM , IN, OUT\", \"asm\", \"in\",\"out\");\n\t\t\t\tfileSelector.setFileFilter(fileFilter);\n\t\t\t\t\n\t\t\t\tint option = fileSelector.showOpenDialog(openFileOption);\n\t\t\t\t\n\t\t\t\tif(option == JFileChooser.APPROVE_OPTION){\n\t\t\t\t\tString path = fileSelector.getSelectedFile().getPath();\n\t\t\t\t\tString extension = path.substring(path.lastIndexOf('.') + 1);\n\t\t\t\t\t\n\t\t\t\t\tif (extension.equalsIgnoreCase(\"in\")) {\n\t\t\t\t\t\tcontroller.changeIn(path);\n\t\t\t\t\t}\n\t\t\t\t\telse if (extension.equalsIgnoreCase(\"out\")) {\n\t\t\t\t\t\tcontroller.changeOut(path);\n\t\t\t\t\t}\n\t\t\t\t\telse if (extension.equalsIgnoreCase(\"asm\")) {\n\t\t\t\t\t\tcontroller.changeProgram(path);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\texitOption.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent arg0){\n\t\t\t\toptionExit();\n\t\t\t}\n\t\t});\n\t}",
"private void openPathButtonActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_openPathButtonActionPerformed\n\tFile savePath = PlatypusGUI.getInstance().getLastSavePath();\n\tif (savePath.isDirectory()) {\n\t try {\n\t\tDesktop.getDesktop().open(savePath);\n\t } catch (IOException ex) {\n\t\tex.printStackTrace();\n\t }\n\t}\n }",
"public static void otvoriFajl() {\r\n\t\tJFileChooser fc = new JFileChooser();\r\n\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\"Gym files\", \"gym\");\r\n\r\n\t\tfc.setFileFilter(filter);\r\n\t\tfc.setCurrentDirectory(new File(\".\"));\r\n\t\tint izbor = fc.showOpenDialog(teretanaGui.getContentPane());\r\n\r\n\t\tif (izbor == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tFile f = fc.getSelectedFile();\r\n\r\n\t\t\tString fileName = f.getAbsolutePath();\r\n\r\n\t\t\tpath = fileName;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tlistaClanova.ucitajIzFajla(fileName);\r\n\t\t\t\tpopuniTabelu();\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(teretanaGui.getContentPane(), \"Greska pri ucitavanju clanova!\", \"Greska\",\r\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {\n JFileChooser fc = new JFileChooser();\n int result = fc.showDialog(this, \"Attach\");\n if (result == JFileChooser.APPROVE_OPTION) \n {\n selectedFile = fc.getSelectedFile();\n \tjTextField1.setText(selectedFile.getAbsolutePath());\n \n }\n \n }",
"void showFileManagerDialog();",
"private void setFileChoosers() {\n\t\t// sets default attributes for save file chooser\n\t\tsaveFileChooser = new JFileChooser();\n\t\tsaveFileChooser.setDialogType(JFileChooser.SAVE_DIALOG);\n\t\tsaveFileChooser.setCurrentDirectory(new java.io.File(\".\"));\n\t\tsaveFileChooser.setDialogTitle(\"Save As\");\n\t\tsaveFileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n\t\t// sets default attributes for load file chooser\n\t\tloadFileChooser = new JFileChooser();\n\t\tloadFileChooser.setDialogType(JFileChooser.OPEN_DIALOG);\n\t\tloadFileChooser.setCurrentDirectory(new java.io.File(\".\"));\n\t\tloadFileChooser.setDialogTitle(\"Open\");\n\t\tloadFileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\n\t}",
"public JFileChooser getWinCaseJFileChooser() {\n return new JFileChooser() {\n JDialog curDialog = null;\n boolean alreadyRun = false;\n \n @Override\n protected JDialog createDialog(Component parent) throws HeadlessException {\n curDialog = super.createDialog(parent);\n return curDialog;\n }\n \n @Override\n public void setCurrentDirectory(File dir) {\n super.setCurrentDirectory(dir);\n if (dir != null \n && dir.getAbsolutePath().endsWith(System.getenv(\"windir\") + \"\\\\Fonts\")\n && curDialog != null\n && !alreadyRun) {\n alreadyRun = true;\n var winFonts = new ScrWinFontFolderSelector(core, PolyGlot.getPolyGlot().getRootWindow());\n curDialog.setVisible(false);\n winFonts.pack();\n winFonts.setModal(true);\n winFonts.setVisible(true);\n winFonts.toFront();\n \n File result = winFonts.getSeletedFont();\n this.setSelectedFile(result);\n \n if (result == null) {\n this.cancelSelection();\n } else {\n this.approveSelection();\n }\n \n curDialog.dispose();\n }\n }\n };\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser jfc=new JFileChooser(); \r\n\t\t jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES ); \r\n\t\t jfc.showDialog(new JLabel(), \"选择\"); \r\n\t\t File file=jfc.getSelectedFile();\r\n\t\t if(null==file){\r\n\t\t \treturn;\r\n\t\t }\r\n\t\t if(file.isDirectory()){\r\n\t\t System.out.println(\"文件夹:\"+file.getAbsolutePath()); \r\n\t\t }else if(file.isFile()){\r\n\t\t System.out.println(\"文件:\"+file.getAbsolutePath()); \r\n\t\t }\r\n\t\t if(Util.isImage(file)){\r\n\t\t \tImageIcon img = new ImageIcon(file.getAbsolutePath());\r\n\t\t\t\t\tlbImage.setIcon(img);\r\n\t\t\t\t\tMain.img = img.getImage();\r\n\t\t }else{\r\n\t\t \tJOptionPane.showMessageDialog(Main.this, \"请选择图片\");\r\n\t\t }\r\n\t\t\t}",
"public String saveFile( Component parent )\n\t{\n\t\t\n\t JFileChooser fc = new JFileChooser();\n\t fc.setFileSelectionMode( JFileChooser.DIRECTORIES_ONLY);\n\t String s=null;\n\t //if( fc.showSaveDialog( parent ) == JFileChooser.SAVE_DIALOG )\n\t //{\n\t // return fc.getSelectedFile().getAbsolutePath();\n\t //}\n\t int rVal = fc.showSaveDialog(frame);\n\t if (rVal == JFileChooser.APPROVE_OPTION) {\n\t \n\t s=fc.getCurrentDirectory().toString()+\"/\"+fc.getSelectedFile().getName();\n\t }\n\t if (rVal == JFileChooser.CANCEL_OPTION) {\n\t \t JOptionPane.showMessageDialog(frame,\"you have pressed cancel,nothing will get saved\");\n\t }\n\t \n\n\t return s;\n\t}",
"public static JFileChooser findJFileChooser() {\n return findJFileChooser(findJFileChooserDialog());\n }",
"public static JDialog findJFileChooserDialog() {\n return (JDialogOperator.\n findJDialog(new JFileChooserJDialogFinder(JemmyProperties.\n getCurrentOutput())));\n }",
"private static File loadFile(){\n\t\t//make the window\n\t\tJFrame window=new JFrame();\n\t\ttry{\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t}catch(Exception ex){}\n\t\tUIManager.put(\"FileChooser.readOnly\",Boolean.TRUE);\n\t\tJFileChooser fc=new JFileChooser();\n\t\tfc.setCurrentDirectory(new File(System.getProperty(\"user.dir\")+\"//examples\"));\n\t\t\n\t\t//get the file\n\t\tint result=fc.showOpenDialog(window);\n\t\tFile f;\n\t\tif(result==JFileChooser.APPROVE_OPTION){\n\t\t\tf=fc.getSelectedFile();\n\t\t}else{\n\t\t\tSystem.exit(0);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t//close window and return\n\t\twindow.dispose();\n\t\treturn f;\n\t}",
"private void abrirFichero() {\r\n\t\tJFileChooser abrir = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tabrir.setFileFilter(filtro);\r\n\t\tif(abrir.showOpenDialog(abrir) == JFileChooser.APPROVE_OPTION){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.liga = (Liga) Gestion.abrir(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setAbierto(true);\r\n\t\t\t\tGestion.setFichero(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se ha podido abrir el fichero\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\t public void actionPerformed(ActionEvent arg0) {\n\t\t JFileChooser j = new JFileChooser(FileSystemView.getFileSystemView().getHomeDirectory()); \n\t\t\n\t\t // invoke the showsOpenDialog function to show the save dialog \n\t\t int r = j.showOpenDialog(null); \n\t\t\n\t\t // if the user selects a file \n\t\t if (r == JFileChooser.APPROVE_OPTION) \n\t\t\n\t\t { \n\t\t // set the label to the path of the selected file \n\t\t textfield.setText(j.getSelectedFile().getAbsolutePath()); \n\t\t\n\t\t } \n\t\t // if the user cancelled the operation \n\t\t \n\t\t //\n\t\t \n\t\t }"
] | [
"0.7586735",
"0.757111",
"0.73791414",
"0.73667055",
"0.72761995",
"0.7190224",
"0.7090656",
"0.7031858",
"0.7022798",
"0.6979664",
"0.6961515",
"0.693712",
"0.6905371",
"0.6900245",
"0.68964404",
"0.68328524",
"0.67908263",
"0.6732371",
"0.6724387",
"0.6661651",
"0.6646442",
"0.659417",
"0.6545963",
"0.6508217",
"0.65009224",
"0.64895403",
"0.64692664",
"0.64691544",
"0.646619",
"0.64576036",
"0.6439022",
"0.64116687",
"0.63902825",
"0.6387828",
"0.6380876",
"0.6374925",
"0.63690406",
"0.6359801",
"0.6331567",
"0.63282394",
"0.6320004",
"0.6301932",
"0.6296511",
"0.6276727",
"0.62746555",
"0.62716717",
"0.6266558",
"0.6265113",
"0.6264225",
"0.6262213",
"0.6250218",
"0.62466717",
"0.62452084",
"0.62443656",
"0.6234333",
"0.6233956",
"0.6233624",
"0.62238395",
"0.6217845",
"0.6212486",
"0.61958784",
"0.61850536",
"0.6178616",
"0.61728185",
"0.6171061",
"0.61606306",
"0.6147443",
"0.6143497",
"0.6136535",
"0.61165506",
"0.6109248",
"0.6106913",
"0.6083186",
"0.6082154",
"0.60747194",
"0.6064997",
"0.6058528",
"0.6056483",
"0.60497123",
"0.6044228",
"0.60401636",
"0.6035337",
"0.6028922",
"0.6024177",
"0.6022519",
"0.60154265",
"0.60099983",
"0.6006352",
"0.59952205",
"0.5992408",
"0.5978403",
"0.597227",
"0.59684575",
"0.59653175",
"0.59618765",
"0.59443986",
"0.5942808",
"0.5940612",
"0.5924306",
"0.5919106"
] | 0.67282623 | 18 |
Called whenever the value of the selection changes. | @Override
public void valueChanged(final ListSelectionEvent e) {
if (e.getValueIsAdjusting()) {
return;
}
showObject();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void valueChanged (TreeSelectionEvent event)\n {\n updateSelection();\n }",
"public void selectionChanged(Selection selecton) {\r\n }",
"@Override\n\tpublic void selectionChanged(SelectionChangedEvent arg0) {\n\t\t\n\t}",
"@Override\r\n public void valueChanged(ListSelectionEvent e) {\n selectionChanged();\r\n }",
"public void valueChanged(TreeSelectionEvent e) {\n\t}",
"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}",
"protected void selectionChanged(ITextSelection selection) {}",
"public void valueChanged(ListSelectionEvent arg0) {\n\t\t\r\n\t}",
"public void updateSelection() {\n\t\t\n\t}",
"public void valueChanged(ListSelectionEvent e)\n\t\t\t{\n\t\t\t}",
"@Override\r\n public void valueChanged(TreeSelectionEvent e) {\n }",
"@Override\n\tpublic abstract void valueChanged(ListSelectionEvent arg0);",
"@Override\n public void onValueDeselected() {\n }",
"public void valueChanged(TreeSelectionEvent ev) {\n controller.removeSelectionListener(modelSelectionListener);\r\n controller.setSelectedFurniture(getSelectedFurniture());\r\n controller.addSelectionListener(modelSelectionListener);\r\n }",
"public void valueChanged(ListSelectionEvent e) {\n\t\t\n\t}",
"@Override\n public void valueChanged(ListSelectionEvent e) {\n currentRow = recordList.getSelectedIndex();\n setRowValues(currentRow, currentColumn);\n if (selectionAction == WAITING_ON_SELECTION) {\n selectionAction = SENDING_SELECTION;\n }\n if (selectionAction == SENDING_SELECTION) {\n selectionAction = FINISHED_SELECTION;\n cellNotifier.select(currentRow, currentColumn); // Notify GUI to select\n }\n \n \n }",
"@Override\n public void onValueDeselected() {\n\n }",
"@Override\n public void onValueDeselected() {\n\n }",
"@Override\n public void onValueDeselected() {\n\n }",
"@Override\n public void onValueDeselected() {\n\n }",
"@Override\n public void onValueSelected(int arcIndex, SliceValue value) {\n }",
"@Override\n public void onValueSelected(int arcIndex, SliceValue value) {\n }",
"private void fireSelectionChangeNotification () {\r\n\t\tif ( selectionChangeListener!=null)\r\n\t\t\tselectionChangeListener.execute();\r\n\t}",
"@Override\n public void valueChanged(javax.swing.event.ListSelectionEvent e)\n {\n this.choice = e.getFirstIndex();\n }",
"@Override\r\n\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\r\n\t\t}",
"public void onSelectionChanged();",
"@Override\n\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\n\t}",
"@Override\n public void onValueSelected(int lineIndex, int pointIndex, PointValue value) {\n }",
"@Override\r\n public void selectionChanged(IAction action, ISelection selection) {\n }",
"public void valueChanged( TreeSelectionEvent e )\n {\n //throw new UnsupportedOperationException( \"Not supported yet.\" );\n }",
"public void valueChanged(ListSelectionEvent e) {\r\n\t\tif (e.getValueIsAdjusting() == false)\r\n\t\t\tsetSelectedObjects();\r\n\r\n\t\tgetTable().repaint();\r\n\t}",
"@Override\n public void valueChanged(TreeSelectionEvent e) {\n\n }",
"@Override\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\t}",
"public void valueChanged( ListSelectionEvent event )\r\n {\r\n if( !event.getValueIsAdjusting() ) \r\n {\r\n ListSelectionModel model = m_list.getSelectionModel();\r\n synchronized( model )\r\n {\r\n Object old = m_selection;\r\n m_selection = (TransitModel) m_list.getSelectedValue();\r\n if( null != m_selection )\r\n {\r\n try\r\n {\r\n TransitPanel panel = \r\n new TransitPanel( m_parent, m_selection );\r\n m_splitPane.setRightComponent( panel );\r\n m_splitPane.setDividerLocation( 100 );\r\n }\r\n catch( Throwable e )\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n }",
"public void selectionChanged(\r\n\t\t\t\t\t\t\tSelectionChangedEvent selectionChangedEvent) {\r\n\t\t\t\t\t\tsetSelection(selectionChangedEvent.getSelection());\r\n\t\t\t\t\t}",
"@Override\r\n\tpublic void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}",
"@Override\n\tpublic void onValueSelected(Entry e, int dataSetIndex, Highlight h) {\n\t\t\n\t}",
"public void valueChanged(TreeSelectionEvent evt) {\n\t\t\t\tTreePath selectedPath = tree.getSelectionPath();\n\t\t\t\tif (selectedPath != null)\n\t\t\t\t\tSystem.out.println(\"In TreeSelectionListener: \"\n\t\t\t\t\t\t\t+ selectedPath.getLastPathComponent());\n\t\t\t}",
"@Override\n public void selectedSamplesChanged()\n {\n final List<ModelItem> items = model.getItems();\n final List<String> names = new ArrayList<>(items.size());\n final List<String> times = new ArrayList<>(items.size());\n final double[] values = new double[items.size()];\n int i=0;\n for (ModelItem item : items)\n {\n names.add(item.getResolvedDisplayName());\n final Optional<PlotDataItem<Instant>> sample = item.getSelectedSample();\n if (sample.isPresent())\n {\n times.add(TimestampFormats.MILLI_FORMAT.format(sample.get().getPosition()));\n values[i++] = sample.get().getValue();\n }\n else\n {\n times.add(\"-\");\n values[i++] = Double.NaN;\n }\n }\n final VType value = VTable.of(\n List.of(String.class, String.class, double.class),\n List.of(\"Trace\", \"Timestamp\", \"Value\"),\n List.of(names, times, ArrayDouble.of(values)));\n model_widget.propSelectionValue().setValue(value);\n }",
"protected void onSelectedItemChanged() {\n if (selectedItem == null) {\n anchorLabel();\n getInputWidget().setText(\"\");\n } else {\n String playerName = ((Player)selectedItem).getName();\n getInputWidget().setText(playerName);\n floatLabel();\n }\n\n if (itemChooserListener != null) itemChooserListener.onSelectionChanged(this, selectedItem);\n }",
"protected void selectionChanged(IStructuredSelection selection) {\n \t}",
"@Override\n public void valueChanged(ListSelectionEvent arg0) {\n\n }",
"@Override\n\tpublic void selectionChanged(IAction arg0, ISelection arg1) {\n\n\t}",
"private void gListValueChanged(ListSelectionEvent e) {\n }",
"@Override\r\n public void selectionRemoved(ChangeEvent e) {\n\r\n }",
"void autoCompleteSelectionChanged(Event event) {\n Events.sendEvent(new Event(\"onValueSelected\", this));\n }",
"void selectionModeChanged(SelectionMode mode);",
"public void setSelectionChanged(boolean selectionChanged);",
"public void selectOneMenuListener(ValueChangeEvent event) {\n\t Object newValue = event.getNewValue(); \n\t //The rest of your processing logic goes here...\n\t}",
"private void cListValueChanged(ListSelectionEvent e) {\n }",
"public void valueChanged(ListSelectionEvent le) {\n\n int idx = jlist.getSelectedIndex();\n\n /** Display the selection */\n if (idx != -1)\n jl.setText(\"Current Selection = \" + names[idx]);\n else\n jl.setText(\"Please choose a name !\");\n }",
"protected void onSelect() {\n\n }",
"public void dropDown1_processValueChange(ValueChangeEvent event) {\n \n }",
"public void selectionChanged(IAction action, ISelection selection) {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\tif (e.getValueIsAdjusting()) {\n\t\t\t\tJList list = (JList) e.getSource();\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tSystem.out.println(\"selected: \" + list.getSelectedValue());\n\t\t\t\tint userSelect = list.getSelectedIndex();\n\t\t\t\tplayingDBThread = null;\n\t\t\t\taudioDBThread = null;\n\t\t\t\tload_DB_video(resultListRankedNames.get(userSelect));\n\t\t\t\tupdateSimilarFrame();\n\t\t\t\tslider.setValue(0);\n\t\t\t}\n\t\t}",
"public void valueChanged(ListSelectionEvent e){\n\t\tif(e.getValueIsAdjusting()) return;\n\t\t\n\t\t//\tget selected DataObjects\n\t\tclear();\n\t\taddAll(list != null ? JBNDUtil.castArray(list.getSelectedValues(), DataObject.class) : \n\t\t\tJBNDSwingUtil.selectedRecords(table));\n\t}",
"public void valueChanged(ListSelectionEvent e) \n\t{\n\t\tif(!e.getValueIsAdjusting())\n\t\t{\n\t\t\t// gets values from your jList and added it to a list\n\t\t\tList values = spotView.getCountryJList().getSelectedValuesList();\n\t\t\tspotView.setSelectedCountry(values);\n\t\t\t\n\t\t\t//based on country selection, state needs to be updated\n\t\t\tspotView.UpdateStates(spotView.getSelectedCountry());\n\t\t}\n\n\t}",
"@Override\n \tpublic void valueChanged(ListSelectionEvent e) { \n \t\tListSelectionModel lsm = (ListSelectionModel) e.getSource();\n \n \t\tif (!lsm.isSelectionEmpty()) {\n \t\t\tint selection = table.convertRowIndexToModel(getSelection(lsm));\n \t\t\tnotifySelectionListeners(list.getPackage(selection));\t\n \t\t}\n \t}",
"@Override\n public void selectionChanged(SelectionChangedEvent event) {\n setInput(getProjectAdapter());\n }",
"@Override\r\n\tpublic void selectionChanged(IWorkbenchPart part, ISelection selection) {\n\r\n\t}",
"public void selectionChanged(Action item);",
"public void selectionChanged(IAction action, ISelection selection) {\n\t}",
"public void selectionChanged(SelectionChangedEvent event) {\n\t\t// System.out.println(event + \" on: \" + this);\n\t\tlastSelection = event.getSelection();\n\t\tif (keepSynched) {\n\t\t\tprocessSelection(lastSelection);\n\t\t}\n\t}",
"@Override\n\tpublic void valueChange(ValueChangeEvent event) {\n\t\t\n\t}",
"@DISPID(200)\r\n public void selectionChanged() {\r\n throw new UnsupportedOperationException();\r\n }",
"public void selectedChanged(SelectEvent e) {\n\t\t\t\tm_Report.getStatusBar().repaint();\r\n\t\t\t}",
"public void valueChanged(ListSelectionEvent e) {\n if (!e.getValueIsAdjusting()) {\n selRow = table.getSelectedRow();\n }\n }",
"public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent();\n sheet.displayNode(node);\n }",
"protected void onSelectionPerformed(boolean success) {\n }",
"public void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}",
"public void selectionChanged(IAction action, ISelection selection) {\n\r\n\t}",
"public void valueChanged(TreeSelectionEvent e) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent();\n\n if (node == null)\n return;\n }",
"@Override\r\n\t\t\tpublic void valueChanged(ListSelectionEvent ev) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tReservation selected = reservationsList.getSelectedValue();\r\n\t\t\t\t//Add other Values\r\n\t\t\t\t\tcodeTextField.setText(selected.getCode());\r\n\t\t\t\t\tflightTextField.setText(selected.getFlightCode());\r\n\t\t\t\t\tairlineTextField.setText(selected.getAirline());\r\n\t\t\t\t\tcostTextField.setText(\"$\"+selected.getCost());\r\n\t\t\t\t\tnameTextField.setText(selected.getName());\r\n\t\t\t\t\tcitizenshipTextField.setText(selected.getCitizenship());\r\n\t\t\t\t\tif(selected.isActive()) {\r\n\t\t\t\t\t\tstatusComboBox.setSelectedItem(\"Active\");\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tstatusComboBox.setSelectedItem(\"Inactive\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(NullPointerException ex) {\r\n\t\t\t\t\t//exists to stop crashing of program when it new list is selected.\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\n public void valueChanged(ListSelectionEvent e) {\n ListSelectionModel mSelectionModel = (ListSelectionModel)e.getSource();\n \n if (mSelectionModel.isSelectionEmpty() == false) {\n // Find out which indexes are selected.\n int mMinIndex = mSelectionModel.getMinSelectionIndex();\n int mMaxIndex = mSelectionModel.getMaxSelectionIndex();\n \n if (mMinIndex == mMaxIndex) {\n if (mSelectionModel.isSelectedIndex(mMinIndex)) {\n try {\n fillContactDetails(mMinIndex);\n } catch (SQLException ex) {\n Logger.getLogger(frmContacts.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n //Save the selected row for the case that the next action after this is cancel.\n pSelectedRow = mMinIndex;\n }\n }\n }\n }",
"private void SelectionChanged(String type) {\n try {\n VaadinSession.getCurrent().getLockInstance().lock();\n Listeners_Map.values().stream().forEach((filter) -> {\n filter.selectionChanged(type);\n });\n } finally {\n VaadinSession.getCurrent().getLockInstance().unlock();\n busyTask.setVisible(false);\n }\n\n }",
"@Override\n public void changed(ObservableValue observable, Object oldValue, Object newValue) {\n carManager.setMarkaChoice((String) modelCBox.getValue());\n// Mechaniz wyboru silnika\n carManager.gatherEngineSet(connectionManager.getStatement());\n\n\n carEngineList.removeAll(carEngineList);\n for(String p: carManager.getEngineSet())\n carEngineList.add(p);\n\n engineCBox.setItems(carEngineList);\n engineCBox.getSelectionModel().selectedItemProperty().addListener(new ChangeListener() {\n @Override\n public void changed(ObservableValue observable, Object oldValue, Object newValue) {\n carManager.setEngineChoice(String.valueOf(engineCBox.getValue()));\n }\n });\n\n\n }",
"@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }",
"public void selectionChanged(String[][] selection);",
"public void selectionChanged(IAction action, ISelection selection) {\n }",
"private void updateStateUiAfterSelection() {\n stageManager.updateStateUi();\n eventBus.publish(EventTopic.DEFAULT, EventType.SELECTED_OBJECT_CHANGED);\n eventManager.fireEvent(EngineEventType.SELECTED_OBJECT_CHANGED);\n }",
"public void valueChanged(ListSelectionEvent e)\n\t{\n\t\t//Only process the final event\n\t\tif(!e.getValueIsAdjusting())\n\t\t{\n\t\t\tpopupMenu.setVisible(false);\n\t\t\tint index=popupList.getSelectedIndex();\n\t\t\t//redraw the label\n\t\t\tsetIcon(index<0?renderer.unselectedIcon:renderer.listIcons[index]);\n\t\t\t//pass the event on\n\t\t\tActionEvent ae = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, actionCommand);\n\t\t\tfor(int i = listeners.size() - 1; i >= 0; i--)\n\t\t\t{\n\t\t\t\tlisteners.get(i).actionPerformed(ae);\n\t\t\t}\n\t\t}\n\t}",
"public void valueChanged(ListSelectionEvent e) {\r\n\t\tObject source = e.getSource();\r\n\t\tif (source == this.gragraNames) {\r\n\t\t\tswitch (this.stepPanel.getStep()) {\r\n\t\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\t\tsetGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\t\tbreak;\r\n\t\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\t\tsetGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\t\tbreak;\r\n\t\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\t\tsetPairs();\r\n\t\t\t\tbreak;\r\n\t\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void updateAndAlertListener() {\n\n\t\teditText.setText(getRoundedValue(value));\n\n\t\tif (changeListener != null) {\n\t\t\tchangeListener.onValueChange(this, value);\n\t\t}\n\t}",
"@Override\n public void changed(ObservableValue observableValue, Object oldValue, Object newValue) {\n if(verTabla.getSelectionModel().getSelectedItem() != null) { \n //System.out.println(newValue);\n String []values = newValue.toString().replace(\"[\", \"\").replace(\"]\", \"\") .split(\",\");\n editarIDProv.setText(values[0]);\n editarNombrePro.setText(values[1]);\n editarDescripcionPro.setText(values[2]);\n editarCantidadPro.setText(values[3]);\n editarIVAProv.setText(values[4]);\n editarPrecioPro.setText(values[5]);\n editarIDProvePro.setText(values[6]);\n }\n }",
"@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tif (!arg0.getValueIsAdjusting()){\n\t\t\t\t\tKIDSUITimePeriodComponent selected = timePeriodJList.getSelectedValue();\n\t\t\t\t\tpopulateTree(top, eventJList.getSelectedValue(), selected);\n\t\t\t\t\tParameterTree.repaint();\n\t\t\t\t\tselectedTimePeriod = selected;\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\tpublic void valuesChanged() {\r\n\t}",
"@Override\n\tprotected void selectedProductChanged()\n\t{\n\t\tgetController().selectedProductChanged();\n\t}",
"void afterMasterSelectionChange();",
"@Override\n public void changed(ObservableValue observableValue, Object oldValue, Object newValue) {\n if(verTabla.getSelectionModel().getSelectedItem() != null) { \n //System.out.println(newValue);\n String []values = newValue.toString().replace(\"[\", \"\").replace(\"]\", \"\") .split(\",\");\n editarIDProv.setText(values[0]);\n editarNombrePro.setText(values[1]);\n editarDescripcionPro.setText(values[2]);\n editarCantidadPro.setText(values[3]);\n editarIVAProv.setText(values[4]);\n editarPrecioPro.setText(values[5]);\n editarIDProvePro.setText(values[6]);\n }\n }",
"public void selectionChanged(IStructuredSelection selection) {\r\n\t\t\r\n\t\tsetEnabled(canOperateOn(selection));\r\n\t}",
"@Override\n protected void updateModelFromUi(@Nullable Selection<DataType> selection) {\n try {\n selection.setSelected(theCheckBox.isChecked());\n Logger.debug(\"Updated selection: \" + selection.toString());\n\n } catch (Exception e) {\n Logger.error(\"Failed to update selection\", e);\n }\n }",
"protected abstract void selectedCurrencyChanged();",
"public void selectionChanged(\r\n \t\t\t\t\t\t\t\t\tSelectionChangedEvent event) {\r\n \t\t\t\t\t\t\t\thandleContentOutlineSelection(event\r\n \t\t\t\t\t\t\t\t\t\t.getSelection());\r\n \t\t\t\t\t\t\t}",
"@Override\n\tpublic void onSelectionChanged(ListSelectionEvent e, List<ShoppingListObject> values) {\n\n\t}",
"@Override\n\tpublic void selectionChanged(ActionEvent e) {\n\t\tif (dm != null && dm.getRowSelected() >= 0) {\n\t\t\trowList.removeListSelectionListener(rowSelectListener); \n\t\t\t// disable listener temporarily to prevent looping.\n\t\t\t\n\t\t\tint row = dm.getRowSelected();\n\t\t\tint column = dm.getColSelected();\n\t\t\trowElements.get(column).requestFocus();\n\t\t\tfor (int i = 0; i < rowElements.size(); i++) {\n\t\t\t\tString value = dm.getValue(i, row);\n\t\t\t\trowElements.get(i).setText(value);\n\t\t\t}\n\t\t\trowList.setSelectedIndex(row);\n\t\t\trowList.addListSelectionListener(rowSelectListener);\n\t\t}\n\t}",
"@Override\n\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void widgetSelected(SelectionEvent arg0) {\n\n\t}",
"@Subscribe\r\n\tpublic void onSelectExperiement(ExpressionDataSelectedEvent event)\r\n\t{\r\n\t\tgetView().updateSelectionLabel(event.GetPayload().getName());\r\n\t}",
"@Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n if (newValue != null) {\n \n // Show selected/current month above calendar\n monthLabel.setText(newValue);\n System.out.println(\"mounth new \"+newValue);\n // Update the VIEWING MONTH;\n Model.getInstance().viewing_month = Model.getInstance().getMonthIndex(newValue);\n \n \n //Model.getInstance().viewing_month = monthSelect.getSelectionModel().getSelectedIndex();\n \n \n // System.out.println(\"mounth\"+Model.getInstance().viewing_month);\n\n // Update view\n repaintView();\n }\n \n }"
] | [
"0.8049871",
"0.77195513",
"0.75989825",
"0.7549665",
"0.7493419",
"0.74383575",
"0.73643315",
"0.7329341",
"0.7322108",
"0.7305355",
"0.7297087",
"0.7268752",
"0.725651",
"0.7226077",
"0.72207373",
"0.72141874",
"0.7213752",
"0.7213752",
"0.7213752",
"0.7213752",
"0.7207815",
"0.7207815",
"0.71457154",
"0.7116025",
"0.7103589",
"0.7085655",
"0.7082904",
"0.7046937",
"0.7024692",
"0.70219105",
"0.701837",
"0.70140857",
"0.69930327",
"0.6969663",
"0.6955038",
"0.69179827",
"0.6899518",
"0.686652",
"0.6859459",
"0.68575025",
"0.68454045",
"0.6842316",
"0.6820728",
"0.68070245",
"0.67849183",
"0.6783265",
"0.67803484",
"0.67646414",
"0.67355335",
"0.6726812",
"0.67155564",
"0.6714437",
"0.67085624",
"0.6696865",
"0.66922486",
"0.66911924",
"0.66876876",
"0.66825897",
"0.66803265",
"0.66802764",
"0.66738397",
"0.6665376",
"0.66629714",
"0.6629857",
"0.662799",
"0.6625595",
"0.6602073",
"0.659777",
"0.6588436",
"0.6549555",
"0.6549555",
"0.6546413",
"0.6545558",
"0.65367293",
"0.65286154",
"0.652809",
"0.6526282",
"0.6514617",
"0.6501216",
"0.64823484",
"0.64669603",
"0.6459289",
"0.6453909",
"0.64457643",
"0.6442984",
"0.64396584",
"0.64259315",
"0.6421504",
"0.6421109",
"0.6419172",
"0.63930947",
"0.6385744",
"0.6384864",
"0.63808393",
"0.6376918",
"0.63757944",
"0.6374955",
"0.6372323",
"0.63678855",
"0.63640165"
] | 0.6993995 | 32 |
Invoked when a component gains the keyboard focus. | @Override
public void focusGained(final FocusEvent e) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void focusLost(FocusEvent e) { }",
"public void focusLost(FocusEvent e)\r\n/* 61: */ {\r\n/* 62:100 */ super.focusLost(e);\r\n/* 63:101 */ if (!e.isTemporary())\r\n/* 64: */ {\r\n/* 65:102 */ this.isKeyboardFocusEvent = true;\r\n/* 66:103 */ if (Boolean.TRUE.equals(getComponent().getClientProperty(\"JGoodies.setCaretToStartOnFocusLost\"))) {\r\n/* 67:104 */ setDot(0);\r\n/* 68: */ }\r\n/* 69: */ }\r\n/* 70: */ }",
"public void focusLost(FocusEvent e)\n {\n }",
"@Override public void keyReleased(KeyEvent e)\n {\n if (this.focusedComponent != null)\n this.focusedComponent.executeEvent(new KeyReleaseEvent(e.getKey(),e.getKeyCode()));\n }",
"@Override\n\tpublic void focusLost(FocusEvent e) {\n\t\tfocusGained(e);\n\t}",
"public void focusGained(FocusEvent event) {}",
"@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t\tfocusLost = false;\n\t\t\n\t}",
"@Override\n\tpublic void focusLost(FocusEvent e)\n\t{\n\t\t\n\t}",
"@Override\r\n\tpublic void focusLost(FocusEvent e) {\n\r\n\t}",
"@Override\n public void focusLost(FocusEvent e) {\n }",
"@Override\n\tpublic void focusLost(FocusEvent arg0) {\n\t\tfocusLost = true;\n\t\t\n\t}",
"public void mouseReleased(MouseEvent e)\r\n/* 81: */ {\r\n/* 82:120 */ super.mouseReleased(e);\r\n/* 83:121 */ if (e.isPopupTrigger())\r\n/* 84: */ {\r\n/* 85:122 */ this.isKeyboardFocusEvent = false;\r\n/* 86:123 */ if ((getComponent() != null) && (getComponent().isEnabled()) && (getComponent().isRequestFocusEnabled())) {\r\n/* 87:125 */ getComponent().requestFocus();\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90: */ }",
"@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t}",
"@Override\r\n public void focusGained(FocusEvent event) {\r\n }",
"@Override\n\t\tpublic void focusLost(FocusEvent e) {\n\t\t}",
"@Override\r\n public void focusGained(FocusEvent e) {\n }",
"@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\tpublic void focusGained(FocusEvent e) {\n\t}",
"@Override\n\t\tpublic void focusLost(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F OUTT\");\t\t\n\t\t}",
"@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\r\n\t\t\t\t\t\t\t}",
"@Override\n public void focusGained(FocusEvent e) {\n }",
"@Override\n public void focusGained(FocusEvent e) {\n }",
"@Override\n public void focusGained(FocusEvent e) {\n }",
"@Override\n public void focusGained(FocusEvent e) {\n }",
"protected void onFocusGained()\n {\n ; // do nothing. \n }",
"public void focusGained(FocusEvent e)\r\n {\n }",
"@Override\r\n\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\r\n\t\t}",
"public void focusGained( FocusEvent fe) \n {\n }",
"@Override\n public void focusGained(FocusEvent e) {\n }",
"@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusGained(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"protected void onFocusLost()\n {\n ; // do nothing. \n }",
"@Override\r\n public void windowLostFocus(final WindowEvent windowevent) {\n\r\n }",
"public void focusGained(FocusEvent e)\r\n {\r\n // TODO Auto-generated method stub\r\n\r\n }",
"@Override\n\t\tpublic void focusGained(FocusEvent e) {\t\tSystem.out.println(\"Focus Gained\");\n\t\t}",
"public void focusLost(FocusEvent e) {\n\t\trepaint();\n\t}",
"public void upFocusCycle(Component paramComponent)\n/* */ {\n/* 1398 */ if (paramComponent != null) {\n/* 1399 */ paramComponent.transferFocusUpCycle();\n/* */ }\n/* */ }",
"@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F gaing\");\t\n\t\t}",
"@Override\n\t\tpublic void focusLost(FocusEvent e) {\n\t\t\tchangeListener.actionPerformed(new ActionEvent(this, 0, \"\"));\n\t\t}",
"public void keyReleased(KeyEvent e) {}",
"public void keyReleased(KeyEvent e) {}",
"public void keyReleased(KeyEvent e) {}",
"public void focusLost(FocusEvent arg0) {\r\n\t\thelpActive = false;\r\n\t\tpopup.setVisible(false);\r\n\t}",
"public void keyReleased(KeyEvent ke){}",
"public void keyReleased(KeyEvent arg0) {}",
"@Override\n\tpublic void focusLost(FocusEvent e) {\n\t\tlog.info(\"|--------失去编辑焦点-------|\\t\"+\n\t\t\t\ttable.getEditingRow()+\",\"+table.getEditingColumn()\n\t\t\t\t+\"\\n\"+e.getSource());\n\t\t\n\t\tif(e.getSource().getClass().equals(\"javax.swing.JComboBox\")){\n\t\t\ttable.getEditorComponent().transferFocus();\n\t\t\tfireEditingStopped();\n\t\t}\n\t}",
"@Override\n public void triggerKeyRelease(KeyEvent e) {\n\n }",
"public void triggerFocusLost() {\n //Clearing focus on the last registered view\n if (mLastRegisteredFocusChangeView != null) {\n mLastRegisteredFocusChangeView.clearFocus();\n mLastRegisteredFocusChangeView = null;\n }\n\n //Clearing focus on the last registered view in Product Attributes RecyclerView\n if (mProductAttributesAdapter != null) {\n mProductAttributesAdapter.triggerFocusLost();\n }\n }",
"public void keyReleased(KeyEvent e){}",
"public void focusLost(FocusEvent fe) {\n\t\tif (isVisible())\n\t\t\trequestFocus();\n\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\n\t\t\t\t\t\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t}",
"@Override\n public void onWindowFocusChanged(boolean hasFocus) {\n }",
"public void keyReleased (KeyEvent e){}",
"@Override\n public void keyReleased(KeyEvent e) {}",
"public void focusLost(FocusEvent e) {\n\t\tJTextField textField = (JTextField) e.getComponent();\n\t\tif (textField != null)\n\t\t\ttextField.select(0, 0);\n\t}",
"@Override\n\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\n\t\t}",
"public abstract void keyReleased(KeyReleasedEvent keyReleasedEvent);",
"private static void triggerFocusGained(Component component) {\n\t\tFocusListener[] listeners = component.getFocusListeners();\n\t\tFocusEvent e = new FocusEvent(component, (int) System.currentTimeMillis());\n\t\trunSwing(() -> {\n\t\t\tfor (FocusListener l : listeners) {\n\t\t\t\tl.focusGained(e);\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void keyReleased(KeyEvent arg0) {\n\n }",
"public void keyReleased(KeyEvent arg0) {\n\t\n}",
"@Override\n public void windowDeactivated( WindowEvent arg0 )\n {\n\n }",
"@Override\n public void windowDeactivated( WindowEvent arg0 )\n {\n\n }",
"@Override\r\n\t\t\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void keyReleased(KeyEvent arg0) {\n\t\t\r\n\t}"
] | [
"0.7315261",
"0.72929037",
"0.7218077",
"0.72015345",
"0.7091004",
"0.70329297",
"0.6995188",
"0.6962948",
"0.69411004",
"0.69061387",
"0.6895146",
"0.68951446",
"0.6888567",
"0.6888567",
"0.68820053",
"0.6870118",
"0.6858421",
"0.6854284",
"0.6854284",
"0.6843854",
"0.6843378",
"0.6843378",
"0.68392974",
"0.68392974",
"0.68392974",
"0.68392974",
"0.68392974",
"0.68392974",
"0.68392974",
"0.6836929",
"0.6830828",
"0.68297094",
"0.68284243",
"0.68284243",
"0.68284243",
"0.6799989",
"0.6799989",
"0.6799989",
"0.6795522",
"0.67621344",
"0.67621344",
"0.67621344",
"0.67621344",
"0.6754429",
"0.6753116",
"0.67457354",
"0.67457354",
"0.67457354",
"0.66906875",
"0.66546977",
"0.6652431",
"0.6652431",
"0.66355836",
"0.66128504",
"0.66074365",
"0.65483236",
"0.650675",
"0.6479064",
"0.6476369",
"0.6435796",
"0.64228654",
"0.64228654",
"0.64228654",
"0.6412285",
"0.6403189",
"0.6380314",
"0.63764805",
"0.6372519",
"0.63681716",
"0.6320031",
"0.6286623",
"0.6261612",
"0.6261612",
"0.6261612",
"0.6261612",
"0.6261612",
"0.6261612",
"0.6261612",
"0.6254516",
"0.6242612",
"0.6241147",
"0.62331194",
"0.6230673",
"0.62270045",
"0.6223396",
"0.6221656",
"0.6216922",
"0.6209216",
"0.6193325",
"0.6193325",
"0.61903566",
"0.6186352",
"0.6186352",
"0.6186352",
"0.6186352",
"0.6186352",
"0.6186352",
"0.6186352",
"0.6186352",
"0.6186352"
] | 0.69253415 | 9 |
Invoked when a component loses the keyboard focus. | @Override
public void focusLost(final FocusEvent e) {
if (e.getSource() == heightField) {
updateHeight();
} else if (e.getSource() == countField) {
updateCount();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void focusLost(FocusEvent e) { }",
"public void focusLost(FocusEvent e)\r\n/* 61: */ {\r\n/* 62:100 */ super.focusLost(e);\r\n/* 63:101 */ if (!e.isTemporary())\r\n/* 64: */ {\r\n/* 65:102 */ this.isKeyboardFocusEvent = true;\r\n/* 66:103 */ if (Boolean.TRUE.equals(getComponent().getClientProperty(\"JGoodies.setCaretToStartOnFocusLost\"))) {\r\n/* 67:104 */ setDot(0);\r\n/* 68: */ }\r\n/* 69: */ }\r\n/* 70: */ }",
"public void focusLost(FocusEvent e)\n {\n }",
"@Override\n\tpublic void focusLost(FocusEvent arg0) {\n\t\tfocusLost = true;\n\t\t\n\t}",
"public void focusLost(FocusEvent arg0) {\r\n\t\thelpActive = false;\r\n\t\tpopup.setVisible(false);\r\n\t}",
"protected void onFocusLost()\n {\n ; // do nothing. \n }",
"@Override\n\tpublic void focusLost(FocusEvent e) {\n\t\tfocusGained(e);\n\t}",
"@Override\n\tpublic void focusLost(FocusEvent e)\n\t{\n\t\t\n\t}",
"@Override\n\t\tpublic void focusLost(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F OUTT\");\t\t\n\t\t}",
"@Override\n public void focusLost(FocusEvent e) {\n }",
"@Override\n\t\tpublic void focusLost(FocusEvent e) {\n\t\t}",
"@Override\r\n\tpublic void focusLost(FocusEvent e) {\n\r\n\t}",
"@Override public void keyReleased(KeyEvent e)\n {\n if (this.focusedComponent != null)\n this.focusedComponent.executeEvent(new KeyReleaseEvent(e.getKey(),e.getKeyCode()));\n }",
"@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t}",
"@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t\tfocusLost = false;\n\t\t\n\t}",
"@Override\r\n public void windowLostFocus(final WindowEvent windowevent) {\n\r\n }",
"@Override\n public void windowDeactivated( WindowEvent arg0 )\n {\n\n }",
"@Override\n public void windowDeactivated( WindowEvent arg0 )\n {\n\n }",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\tsetFocusableWindowState(false);\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void focusLost(FocusEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent arg0)\n\t{\n\t}",
"public void focusLost(FocusEvent e) {\n\t\trepaint();\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent arg0)\n\t{\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent arg0) {\n\n\t}",
"@Override\n\tpublic void focusLost(FocusEvent e) {\n\t\tlog.info(\"|--------失去编辑焦点-------|\\t\"+\n\t\t\t\ttable.getEditingRow()+\",\"+table.getEditingColumn()\n\t\t\t\t+\"\\n\"+e.getSource());\n\t\t\n\t\tif(e.getSource().getClass().equals(\"javax.swing.JComboBox\")){\n\t\t\ttable.getEditorComponent().transferFocus();\n\t\t\tfireEditingStopped();\n\t\t}\n\t}",
"@Override\n public void windowDeactivated(WindowEvent arg0) {\n\n }",
"@Override\n\t\t\tpublic void windowDeactivated(WindowEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowDeactivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n public void windowDeactivated(WindowEvent e) {\r\n\r\n }",
"protected void onFocusGained()\n {\n ; // do nothing. \n }",
"@Override\r\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t}",
"@Override\r\n\tpublic void windowDeiconified(WindowEvent e) {\n\t\tsetFocusableWindowState(false);\r\n\t}",
"public void loseFocus(){\r\n\t//\tthis.setId(\"single-image-widget\");\r\n//\t\t((ColumnViewPane) this.getParent()).refresh();\r\n\t\thasFocus = false;\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\n\tpublic void windowDeactivated( WindowEvent e ) {\n\t\t\n\t}",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\n public void windowDeactivated(WindowEvent e) {\n }",
"@Override\r\n\t\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\t\r\n\t\t}",
"public void focusLost(FocusEvent e) {\n\t\tJTextField textField = (JTextField) e.getComponent();\n\t\tif (textField != null)\n\t\t\ttextField.select(0, 0);\n\t}",
"@Override\n public void windowDeactivated(WindowEvent we) {\n }",
"public void mouseReleased(MouseEvent e)\r\n/* 81: */ {\r\n/* 82:120 */ super.mouseReleased(e);\r\n/* 83:121 */ if (e.isPopupTrigger())\r\n/* 84: */ {\r\n/* 85:122 */ this.isKeyboardFocusEvent = false;\r\n/* 86:123 */ if ((getComponent() != null) && (getComponent().isEnabled()) && (getComponent().isRequestFocusEnabled())) {\r\n/* 87:125 */ getComponent().requestFocus();\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90: */ }",
"@Override\r\n\t\t\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e)\n\t{\n\n\t}",
"@Override\n public void windowDeactivated(WindowEvent e)\n {\n\n }",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\t\t\n\t}",
"public void focusLost(FocusEvent e) {\n if (hidePopupOnFocusLoss)\n comboBox.setPopupVisible(false);\n }",
"public void focusLost(FocusEvent fe) {\n\t\tif (isVisible())\n\t\t\trequestFocus();\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\n\t}",
"@Override\n\tpublic void windowDeactivated(WindowEvent e) {\n\n\t}"
] | [
"0.732611",
"0.72424257",
"0.7234921",
"0.71455914",
"0.71188617",
"0.7107634",
"0.7014906",
"0.6943822",
"0.69353294",
"0.6915103",
"0.68954945",
"0.6884816",
"0.68456036",
"0.6826104",
"0.6817126",
"0.6782781",
"0.6769052",
"0.6769052",
"0.67446196",
"0.67408746",
"0.67408746",
"0.67408746",
"0.67408746",
"0.67408746",
"0.67408746",
"0.67408746",
"0.67408746",
"0.672542",
"0.672542",
"0.672542",
"0.67103654",
"0.66980296",
"0.66904485",
"0.66618377",
"0.66618377",
"0.66618377",
"0.66618377",
"0.66448927",
"0.66438025",
"0.6639291",
"0.6637984",
"0.66258043",
"0.6601766",
"0.6566706",
"0.6566706",
"0.65583307",
"0.6555651",
"0.6553621",
"0.6496609",
"0.6493762",
"0.6492883",
"0.6490194",
"0.6490194",
"0.6490194",
"0.6490194",
"0.6490194",
"0.64876795",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6483468",
"0.6472909",
"0.6466479",
"0.64616406",
"0.64490217",
"0.644049",
"0.644049",
"0.6434216",
"0.64293104",
"0.6420396",
"0.6420396",
"0.6420396",
"0.6420396",
"0.6420396",
"0.6420396",
"0.6420396",
"0.6420396",
"0.6420396",
"0.64192146",
"0.64112914",
"0.6403187",
"0.6403187",
"0.6403187",
"0.6403187"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void execute(Frame frame) {
DSTORE._dstore(frame, 1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void onResponse(String arg0) {
System.out.println(arg0);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Patient getPatientByMI(String miCardNo) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public Patient getPatientByIDCard(String idCardNo) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public MedicalCard issueCard(Patient patient) {
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 |
Given the total forward translation, total sideways translation, and total changed heading, and assuming that all three values changed at a constant rate throughout the robot's travel, calculate the final change in position. Imagine a line from (x,y) to (x', y') and curve it into a sector of angle theta | public pose curvedTrajectoryTranslation(pose in){
// if no rotation, then trig functions will be undefined
if(in.r == 0) return in;
// define circle that contains the sector
double arclength = Math.hypot(in.x, in.y);
double radius = arclength/in.r;
//curve the path around the sector
point curved = new point(radius * Math.cos(in.r) - radius, radius * Math.sin(in.r));
// maintain original direction of path
point rotated = curved.rotate(-Math.PI/2 + Math.atan2(in.y, in.x));
return new pose(rotated.x, rotated.y, in.r);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void calculateLocation()\r\n\t{\r\n\t\tdouble leftAngleSpeed \t= this.angleMeasurementLeft.getAngleSum() / ((double)this.angleMeasurementLeft.getDeltaT()/1000); //degree/seconds\r\n\t\tdouble rightAngleSpeed \t= this.angleMeasurementRight.getAngleSum() / ((double)this.angleMeasurementRight.getDeltaT()/1000); //degree/seconds\r\n\r\n\t\tdouble vLeft\t= (leftAngleSpeed * Math.PI * LEFT_WHEEL_RADIUS ) / 180 ; //velocity of left wheel in m/s\r\n\t\tdouble vRight\t= (rightAngleSpeed * Math.PI * RIGHT_WHEEL_RADIUS) / 180 ; //velocity of right wheel in m/s\t\t\r\n\t\tdouble w \t\t= (vRight - vLeft) / WHEEL_DISTANCE; //angular velocity of robot in rad/s\r\n\t\t\r\n\t\tDouble R \t= new Double(( WHEEL_DISTANCE / 2 ) * ( (vLeft + vRight) / (vRight - vLeft) ));\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\tdouble ICCx = 0;\r\n\t\tdouble ICCy = 0;\r\n\r\n\t\tdouble W_xResult \t\t= 0;\r\n\t\tdouble W_yResult \t\t= 0;\r\n\t\tdouble W_angleResult \t= 0;\r\n\t\t\r\n\t\tdouble E_xResult \t\t= 0;\r\n\t\tdouble E_yResult \t\t= 0;\r\n\t\tdouble E_angleResult \t= 0;\r\n\t\t\r\n\t\t//short axe = 0;\r\n\t\t\r\n\t\tdouble deltaT = ((double)this.angleMeasurementLeft.getDeltaT())/1000;\r\n\t\t\r\n\t\t// Odometry calculations\r\n\t\tif (R.isNaN()) \t\t\t\t//robot don't move\r\n\t\t{\r\n\t\t\tW_xResult\t\t= this.pose.getX();\r\n\t\t\tW_yResult\t\t= this.pose.getY();\r\n\t\t\tW_angleResult \t= this.pose.getHeading();\r\n\t\t} \r\n\t\telse if (R.isInfinite()) \t//robot moves straight forward/backward, vLeft==vRight\r\n\t\t{ \r\n\t\t\tW_xResult\t\t= this.pose.getX() + vLeft * Math.cos(this.pose.getHeading()) * deltaT;\r\n\t\t\tW_yResult\t\t= this.pose.getY() + vLeft * Math.sin(this.pose.getHeading()) * deltaT;\r\n\t\t\tW_angleResult \t= this.pose.getHeading();\r\n\t\t} \r\n\t\telse \r\n\t\t{\t\t\t\r\n\t\t\tICCx = this.pose.getX() - R.doubleValue() * Math.sin(this.pose.getHeading());\r\n\t\t\tICCy = this.pose.getY() + R.doubleValue() * Math.cos(this.pose.getHeading());\r\n\t\t\r\n\t\t\tW_xResult \t\t= Math.cos(w * deltaT) * (this.pose.getX()-ICCx) - Math.sin(w * deltaT) * (this.pose.getY() - ICCy) + ICCx;\r\n\t\t\tW_yResult \t\t= Math.sin(w * deltaT) * (this.pose.getX()-ICCx) + Math.cos(w * deltaT) * (this.pose.getY() - ICCy) + ICCy;\r\n\t\t\tW_angleResult \t= this.pose.getHeading() + w * deltaT;\r\n\t\t}\r\n\t\t\r\n\t\tthis.pose.setLocation((float)W_xResult, (float)W_yResult);\r\n\t\tthis.pose.setHeading((float)W_angleResult);\r\n\t\t\r\n\t\t// Conversion to grads\r\n\t\tW_angleResult = W_angleResult/Math.PI*180;\r\n\t\t\r\n\t\t// Get the heading axe\r\n\t\t//axe = getHeadingAxe();\r\n\t\tgetHeadingAxe();\r\n\t\t\r\n\t\t// Verify the coordinates and the heading angle\r\n\t\tif (Po_Corn == 1)\r\n\t\t{\r\n\t\t\tswitch (Po_CORNER_ID)\r\n\t\t\t{\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tE_xResult = 0;\r\n\t\t\t\t\tE_yResult = 0;\r\n\t\t\t\t\tPo_ExpAng = 0;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tE_xResult = 1.8;\r\n\t\t\t\t\tE_yResult = 0.11;\r\n\t\t\t\t\tPo_ExpAng = 90;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tE_xResult = 1.6;\r\n\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\tPo_ExpAng = 180;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tE_xResult = 1.5;\r\n\t\t\t\t\tE_yResult = 0.45;\r\n\t\t\t\t\tPo_ExpAng = 270;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tE_xResult = 1.5;\r\n\t\t\t\t\tE_yResult = 0.3;\r\n\t\t\t\t\tPo_ExpAng = 180;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tE_xResult = 0.3;\r\n\t\t\t\t\tE_yResult = 0.3;\r\n\t\t\t\t\tPo_ExpAng = 90;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\tE_xResult = 0.3;\r\n\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\tPo_ExpAng = 180;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tE_xResult = 0;\r\n\t\t\t\t\tE_yResult = 0.6;\r\n\t\t\t\t\tPo_ExpAng = 270;\r\n\t\t\t\t\tbreak;\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tE_angleResult = W_angleResult;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint block = 0;\r\n\t\t\t// white = 0, black = 2, grey = 1\r\n\t\t\tif ((lineSensorLeft == 0) && (lineSensorRight == 0) && (block == 0)) \t// Robot moves on the black line\r\n\t\t\t{\r\n\t\t\t\tswitch (Po_CORNER_ID)\t\t\t\t\t\t\t\t// Even numbers - x, Odd numbers - y\r\n\t\t\t\t{\r\n\t\t\t\tcase 0: \r\n\t\t\t\t\tif (this.pose.getX() < 1.6)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_yResult = 0;\r\n\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\tE_angleResult = W_angleResult;\r\n\t\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 1: \r\n\t\t\t\t\tif (this.pose.getY() < 0.4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_xResult = 1.8;\r\n\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\tE_angleResult = W_angleResult; \r\n\t\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tif (this.pose.getX() > 1.65)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_yResult = 0.6;\r\n\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\tE_angleResult = W_angleResult;\r\n\t\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tif (this.pose.getY() > 0.4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_xResult = 1.5; \r\n\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\tE_angleResult = W_angleResult; \r\n\t\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 4: \r\n\t\t\t\t\tif (this.pose.getX() > 0.4)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_yResult = 0.3;\r\n\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\tE_angleResult = W_angleResult;\r\n\t\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tif (this.pose.getY() < 0.5)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_xResult = 0.3;\r\n\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\tE_angleResult = W_angleResult; \r\n\t\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 6: \r\n\t\t\t\t\tif (this.pose.getX() > 0.1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_yResult = 0.6;\r\n\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\tE_angleResult = W_angleResult;\r\n\t\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase 7:\r\n\t\t\t\t\tif (this.pose.getY() > 0.1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tE_angleResult = Po_ExpAng;\r\n\t\t\t\t\t\tE_xResult = 0;\r\n\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\tE_angleResult = W_angleResult; \r\n\t\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault: \r\n\t\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse if(((lineSensorLeft == 0) && (lineSensorRight == 2)) || ((lineSensorLeft == 2) && (lineSensorRight == 0)))\r\n\t\t\t{\r\n\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\r\n\t \tif (W_angleResult >= TRSH_W)\r\n\t \t{\r\n\t \t\tE_angleResult = TRSH_W;\r\n\t \t}\r\n\t \telse if (W_angleResult >= (360 - TRSH_W))\r\n\t \t{\r\n\t \t\tE_angleResult = 360 - TRSH_W;\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\tE_angleResult = W_angleResult;\r\n\t \t}\r\n\t \t\r\n\t \t// test\r\n\t \tE_angleResult = W_angleResult;\r\n\t\t\t}\r\n\t\t\telse if(((lineSensorLeft == 0) && (lineSensorRight == 1)) || ((lineSensorLeft == 1) && (lineSensorRight == 0)))\r\n\t\t\t{\r\n\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\t\r\n\t \tif (W_angleResult >= TRSH_G)\r\n\t \t{\r\n\t \t\tE_angleResult = TRSH_G;\r\n\t \t}\r\n\t \telse if (W_angleResult >= (360 - TRSH_G))\r\n\t \t{\r\n\t \t\tE_angleResult = 360 - TRSH_G;\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\tE_angleResult = W_angleResult;\r\n\t \t}\r\n\t \t\r\n\t \t// test\r\n\t \tE_angleResult = W_angleResult;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tE_xResult = W_xResult;\r\n\t\t\t\tE_yResult = W_yResult;\r\n\t\t\t\tE_angleResult = W_angleResult;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tLCD.drawString(\"AngRs: \" + (E_angleResult), 0, 7);\r\n\t\t\r\n\t\t// Conversion to rads\r\n\t\tW_angleResult = W_angleResult*Math.PI/180;\r\n\t\tE_angleResult = E_angleResult*Math.PI/180;\r\n\t\t\r\n\t\tif ((Po_CORNER_ID == 3) && (100*this.pose.getY() < 45))\r\n\t\t{\r\n\t\t\tE_angleResult = 3*Math.PI/180;;\r\n\t\t}\r\n\t\t\r\n\t\tthis.pose.setLocation((float)E_xResult, (float)E_yResult);\r\n\t\tthis.pose.setHeading((float)E_angleResult);\r\n\t\t\r\n\t\t/*\r\n\t\t// Integration deviation correction\r\n\t\tthis.pose.setLocation((float)(W_xResult), (float)(W_yResult + (0.01*22.4)/175));\r\n\t\tthis.pose.setHeading((float)((W_angleResult + 14/175)*Math.PI/180));\r\n\t\t*/\r\n\t}",
"private synchronized void updatePose(Move event) {\n\t\tfloat angle = event.getAngleTurned() - angle0;\n\t\tfloat distance = event.getDistanceTraveled() - distance0;\n\t\tdouble dx = 0, dy = 0;\n\t\tdouble headingRad = (Math.toRadians(heading));\n\n\t\tif (event.getMoveType() == Move.MoveType.TRAVEL\n\t\t\t\t|| Math.abs(angle) < 0.2f) {\n\t\t\tdx = (distance) * (float) Math.cos(headingRad);\n\t\t\tdy = (distance) * (float) Math.sin(headingRad);\n\t\t} else if (event.getMoveType() == Move.MoveType.ARC) {\n\t\t\tdouble turnRad = Math.toRadians(angle);\n\t\t\tdouble radius = distance / turnRad;\n\t\t\tdy = radius\n\t\t\t\t\t* (Math.cos(headingRad) - Math.cos(headingRad + turnRad));\n\t\t\tdx = radius\n\t\t\t\t\t* (Math.sin(headingRad + turnRad) - Math.sin(headingRad));\n\t\t}\n\t\tx += dx;\n\t\ty += dy;\n\t\theading = normalize(heading + angle); // keep angle between -180 and 180\n\t\tangle0 = event.getAngleTurned();\n\t\tdistance0 = event.getDistanceTraveled();\n\t\tcurrent = !event.isMoving();\n\t}",
"void updateStepCoordiantes(){\n if(xIncreasing) {\n lat = lat + STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat + STEP_LENGTH*yCompMotion*degToMRatio;\n }\n else{\n lat = lat - STEP_LENGTH * yCompMotion * degToMRatio;\n displayLat = displayLat - STEP_LENGTH*yCompMotion*degToMRatio;\n }\n if(yIncreasing) {\n lon = lon + STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon + STEP_LENGTH*xCompMotion*degToMRatio;\n }\n else{\n lon = lon - STEP_LENGTH * xCompMotion * degToMRatio;\n dispalyLon= dispalyLon - STEP_LENGTH*xCompMotion*degToMRatio;\n }\n }",
"private void updateLinearDrive() {\n// double rotations = (getLeftRotations() + getRightRotations()) / 2;\n// linearDriveDistance = Conversion.rotationsToInches(rotations, Constants.driveWheelDiameter);\n// double angleController = turnControl.getOutput(linearDriveMultiplier * (navX.getAngle() - linearDriveTargetAngle));\n// double driveController = driveControl.getOutput(linearDriveTargetDistance - linearDriveDistance);\n// setOutput(driveController + angleController, driveController - angleController);\n }",
"public void calculate(double totalTime, double timeStep, double robotTrackWidth)\n\t{\n\t\t/**\n\t\t * pseudo code\n\t\t * \n\t\t * 1. Reduce input waypoints to only essential (direction changing) node points\n\t\t * 2. Calculate how many total datapoints we need to satisfy the controller for \"playback\"\n\t\t * 3. Simultaneously inject and smooth the path until we end up with a smooth path with required number \n\t\t * of datapoints, and which follows the waypoint path.\n\t\t * 4. Calculate left and right wheel paths by calculating parallel points at each datapoint \n\t\t */\n\n\n\t\t//First find only direction changing nodes\n\t\tnodeOnlyPath = nodeOnlyWayPoints(origPath);\n\n\t\t//Figure out how many nodes to inject\n\t\tint[] inject = injectionCounter2Steps(nodeOnlyPath.length, totalTime, timeStep);\n\n\t\t//Iteratively inject and smooth the path\n\t\tfor(int i=0; i<inject.length; i++)\n\t\t{\n\t\t\tif(i==0)\n\t\t\t{\n\t\t\t\tsmoothPath = inject(nodeOnlyPath,inject[0]);\n\t\t\t\tsmoothPath = smoother(smoothPath, pathAlpha, pathBeta, pathTolerance);\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsmoothPath = inject(smoothPath,inject[i]);\n\t\t\t\tsmoothPath = smoother(smoothPath, 0.1, 0.3, 0.0000001);\t\n\t\t\t}\n\t\t}\n\n\t\t//Calculate left and right path based on center path\n\t\tleftRight(smoothPath, robotTrackWidth);\n\n\t\torigCenterVelocity = velocity(smoothPath, timeStep);\n\t\torigLeftVelocity = velocity(leftPath, timeStep);\n\t\torigRightVelocity = velocity(rightPath, timeStep);\n\n\t\t//Copy smooth velocities into fix Velocities\n\t\tsmoothCenterVelocity = doubleArrayCopy(origCenterVelocity);\n\t\tsmoothLeftVelocity = doubleArrayCopy(origLeftVelocity);\n\t\tsmoothRightVelocity = doubleArrayCopy(origRightVelocity);\n\n\t\t//Set final vel to zero\n\t\tsmoothCenterVelocity[smoothCenterVelocity.length-1][1] = 0.0;\n\t\tsmoothLeftVelocity[smoothLeftVelocity.length-1][1] = 0.0;\n\t\tsmoothRightVelocity[smoothRightVelocity.length-1][1] = 0.0;\n\n\t\t//Smooth velocity with zero final V\n\t\tsmoothCenterVelocity = smoother(smoothCenterVelocity, velocityAlpha, velocityBeta, velocityTolerance);\n\t\tsmoothLeftVelocity = smoother(smoothLeftVelocity, velocityAlpha, velocityBeta, velocityTolerance);\n\t\tsmoothRightVelocity = smoother(smoothRightVelocity,velocityAlpha, velocityBeta, velocityTolerance);\n\n\t\t//Fix velocity distance error\n\t\tsmoothCenterVelocity = velocityFix(smoothCenterVelocity, origCenterVelocity, 0.0000001);\n\t\tsmoothLeftVelocity = velocityFix(smoothLeftVelocity, origLeftVelocity, 0.0000001);\n\t\tsmoothRightVelocity = velocityFix(smoothRightVelocity, origRightVelocity, 0.0000001);\n\t}",
"public void updateTrifecta() {\n\n\t\taccelX = (xl.getX() - 0) * 9.8 * Math.cos(angleToForward * (Math.PI / 180.0)); //convert from g's\n\t\taccelY = (xl.getY() - 0) * 9.8 * Math.sin(angleToForward * (Math.PI / 180.0));\n\t\taccelZ = (xl.getZ() - 0) * 9.8;\n\t\t\n\t\t//velocity updated by acceleration integral\n\t\tvelX += accelX * dT;\n\t\tvelY += accelY * dT;\n\t\tvelZ += accelZ * dT;\n\t\t\n\t\t//position updated by velocity integral and adjusted for robot rotation\n\t\tposX += velX * dT;\n\t\tposY += velY * dT;\n\t\tposZ += velZ * dT;\n\t}",
"public void updateAngle() {\n\t\tfloat ak = 0;\n\t\tfloat gk = 0;\n\t\tak = (float) (pathBoardRectangles.get(curTargetPathCellIndex).getCenterX() - x);\n\t\tgk = (float) (pathBoardRectangles.get(curTargetPathCellIndex).getCenterY() - y);\n\t\tangleDesired = (float) Math.toDegrees(Math.atan2(ak*-1, gk));\n\t\t// if the angle and the angleDesired are opposites the Vector point into the opposite direction\n\t\t// this means the angle will be the angle of the longer vector which is always angle\n\t\t// so if that happens the angleDesired is offset so this won't happen\n\t\tangle = Commons.calculateAngleAfterRotation(angle, angleDesired, rotationDelay);\n\t}",
"public void update()\n {\n // always roatating time by 7 for fixed point calculation\n x = (velocity*cos(theta) *time) >> 21;\n int yFirstPart = (int)(velocity*sin(theta)*time) >> 21;\n int ySecondPart = (int)((g*time*time) >> 15);\n y = yFirstPart - ySecondPart;\n y =initialY - y;\n x= x + initialX;\n time+= updateSpeed;\n if(lastY == -1)\n {\n lastY = y;\n }else{\n int direction = lastY - y;\n if(lastDirection == -1)\n {\n lastDirection = direction;\n }else{\n if(lastDirection != 0 && direction != 0)\n {\n \n int signOfDirection = lastDirection / Math.abs(lastDirection);\n int signOfLastDirection = direction / Math.abs(direction);\n if(signOfDirection != signOfLastDirection)\n {\n if(!reachedTop)\n {\n onTop();\n reachedTop = true;\n }\n \n setIsOnHalf(true);\n }\n }\n lastY = y;\n }\n \n }\n }",
"private static Vector3f[] calculatePositionDifferences(Drone drone, Vector3f[] newVelocities, float dt) {\r\n\r\n\t\t\r\n\t\t// calculate the average linear velocity\r\n\t\tVector3f avgLinearVelocityW = average(drone.getLinearVelocity(), newVelocities[0]);\r\n\r\n\t\t// calculate the translation\r\n\t\tVector3f deltaPositionW = (Vector3f) avgLinearVelocityW.scale(dt);\r\n\r\n\t\t// calculate the average angular velocity\r\n\t\tVector3f avgAngularVelocityW = average(drone.getAngularVelocity(), newVelocities[1]);\r\n\r\n\t\t// calculate the rotation\r\n\t\tVector3f deltarotationW = ((Vector3f) avgAngularVelocityW.scale(dt));\r\n\r\n\t\treturn new Vector3f[] { deltaPositionW, deltarotationW };\r\n\t}",
"public double calculateHeadingRadians(){\r\n if(coordinateHistory.size() > 2){\r\n GPSCoordinate firstPoint = coordinateHistory.get(coordinateHistory.size() - 2);\r\n GPSCoordinate secondPoint = coordinateHistory.get(coordinateHistory.size() - 1);\r\n \r\n if(!firstPoint.compareTo(secondPoint)){\r\n double latA = firstPoint.getLatitude();\r\n double longA = firstPoint.getLongitude();\r\n double latB = secondPoint.getLatitude();\r\n double longB = secondPoint.getLongitude();\r\n\r\n double X = Math.cos(latB) * Math.sin(longB - longA);\r\n double Y = (Math.cos(latA) * Math.sin(latB)) - (Math.sin(latA) * Math.cos(latB) * Math.cos(longB - longA));\r\n\r\n headingRadians = - Math.atan2(X, Y);\r\n return headingRadians;\r\n }else{\r\n return headingRadians;\r\n }\r\n }else{\r\n return headingRadians;\r\n }\r\n }",
"@Override\n\tpublic double calculateVelocity() {\n\t\tdouble result = distance / time + velocitySame - velocityReverse;\n\t\treturn result;\n\t}",
"private void calculateMovement() {\r\n \tmovementY = (int)(movementSpeed * Math.sin(Math.toRadians(movementDirection - 90)));\r\n \tmovementX = (int)(movementSpeed * Math.cos(Math.toRadians(movementDirection - 90)));\r\n }",
"@Override\n public void step(double deltaTime) {\n // wheel radius, in meters\n double wheelCircumference = 2 * simulatorConfig.driveBase.wheelRadius * Math.PI;\n\n double leftRadians = 0;\n double rightRadians = 0;\n for (SimMotor simMotor : motorStore.getSimMotorsSorted()) {\n if (simMotor.isLeftDriveMotor()) {\n leftRadians = simMotor.position / simulatorConfig.driveBase.gearRatio;\n } else if (simMotor.isRightDriveMotor()) {\n rightRadians = simMotor.position / simulatorConfig.driveBase.gearRatio;\n }\n }\n\n // invert the left side because forward motor movements mean backwards wheel movements\n rightRadians = -rightRadians;\n\n double currentLinearRadians = (leftRadians + rightRadians) / 2;\n\n double deltaRadians = currentLinearRadians - lastLinearRadians;\n double metersPerRadian = wheelCircumference / (Math.PI * 2);\n double deltaLinearPosition = deltaRadians * metersPerRadian;\n double newHeading = ((leftRadians - rightRadians) * metersPerRadian / simulatorConfig.driveBase.radius);\n\n // for next loop\n lastLinearRadians = currentLinearRadians;\n\n robotPosition.heading = newHeading + startHeading;\n\n robotPosition.velocity = deltaLinearPosition / deltaTime;\n robotPosition.x += deltaLinearPosition * Math.sin(robotPosition.heading);\n robotPosition.y += deltaLinearPosition * Math.cos(robotPosition.heading);\n\n SimNavX simNavX = SimSPI.getNavX(SPI.Port.kMXP.value);\n if (simNavX != null) {\n float degrees = (float)((robotPosition.heading - simulatorConfig.startPosition.heading) * 360 / (Math.PI * 2));\n\n // degrees are between 0 and 360\n if (degrees < 0) {\n degrees = 360 - (Math.abs(degrees) % 360);\n } else {\n degrees = degrees % 360;\n }\n simNavX.heading = degrees;\n }\n\n }",
"@Override\n public void teleopPeriodic() {\n\n double l = left.calculate((int)rightEnc.get());\n double r = right.calculate((int)rightEnc.get());\n\n double gyro_heading = gyro.getYaw(); // Assuming the gyro is giving a value in degrees\n double desired_heading = Pathfinder.r2d(left.getHeading()); // Should also be in degrees\n\n double angleDifference = Pathfinder.boundHalfDegrees(desired_heading - gyro_heading);\n double turn = 0.8 * (-1.0/80.0) * angleDifference;\n\n //left1.set(l + turn);\n //right1.set(r - turn);\n left1.set(0);\n right1.set(0);\n System.out.println(\"Get: \" + rightEnc.get() + \" Raw: \" + rightEnc.getRaw());\n\n }",
"private float computeCenter_old() {\n\t\tVector3f PA = A.subtract(P);\n\t\tVector3f PB = B.subtract(P);\n\t\tN = PA.cross(PB);\n\t\tif (N.lengthSquared() <= EPSILON*EPSILON) {\n//\t\t\tSystem.out.println(\"A=\"+A+\", B=\"+B+\" P=\"+P+\" -> it is a line\");\n\t\t\treturn 0; //Degenerated to a line\n\t\t}\n\t\t\n\t\t//define orthonormal basis I,J,K\n\t\tN.normalizeLocal();\n\t\tVector3f I = PA.normalize();\n\t\tVector3f J = N.cross(I);\n\t\tVector3f K = N;\n\t\tVector3f IxK = I.cross(K);\n\t\tVector3f JxK = J.cross(K);\n\t\t//project points in the plane PAB\n\t\tVector3f PAxN = PA.cross(N);\n\t\tVector3f PBxN = PB.cross(N);\n\t\tVector2f P2 = new Vector2f(0, 0);\n\t\tVector2f A2 = new Vector2f(PA.dot(JxK)/I.dot(JxK), PA.dot(IxK)/J.dot(IxK));\n\t\tVector2f B2 = new Vector2f(PB.dot(JxK)/I.dot(JxK), PB.dot(IxK)/J.dot(IxK));\n\t\t\n\t\t//compute time t of C=P+tPA°\n\t\tfloat t;\n\t\tif (B2.x == A2.x) {\n\t\t\tt = (B2.y - A2.y) / (A2.x - B2.x);\n\t\t} else {\n\t\t\tt = (B2.x - A2.x) / (A2.y - B2.y);\n\t\t}\n\t\t//compute C\n\t\tVector2f PArot = new Vector2f(A.y-P.y, P.x-A.x);\n\t\tVector2f C2 = P2.addLocal(PArot.multLocal(t));\n\t\t//project back\n\t\tC = new Vector3f(P);\n\t\tC.addScaledLocal(C2.x, I);\n\t\tC.addScaledLocal(C2.y, J);\n\t\t//Debug\n//\t\tSystem.out.println(\"A=\"+A+\", B=\"+B+\" P=\"+P+\" -> I=\"+I+\", J=\"+J+\", K=\"+K+\", P'=\"+P2+\", A'=\"+A2+\", B'=\"+B2+\", t=\"+t+\", C'=\"+C2+\", C=\"+C);\n\t\t//set radius\n\t\treturn C.distance(A);\n\t}",
"static float calculateNewPosition(float a, float deltaTime, float v, float x0) {\n return x0\n + (a * deltaTime * deltaTime / 2 + v * deltaTime)\n * (Utility.sensorType == Sensor.TYPE_GYROSCOPE ? GYROSCOPE_MOVEMENT_COEFF : GRAVITY_MOVEMENT_COEFF);\n }",
"private void correctParameter(){\n \tint ifObtuse;\r\n \tif(initialState.v0_direction>90)ifObtuse=1;\r\n \telse ifObtuse=0;\r\n \tdouble v0=initialState.v0_val;\r\n \tdouble r0=initialState.r0_val;\r\n \tdouble sintheta2=Math.sin(Math.toRadians(initialState.v0_direction))*Math.sin(Math.toRadians(initialState.v0_direction));\r\n \tdouble eccentricityMG=Math.sqrt(center.massG*center.massG-2*center.massG*v0*v0*r0*sintheta2+v0*v0*v0*v0*r0*r0*sintheta2);\r\n \tdouble cosmiu0=-(v0*v0*r0*sintheta2-center.massG)/eccentricityMG;\r\n \tpe=(v0*v0*r0*r0*sintheta2)/(center.massG+eccentricityMG);\r\n \tap=(v0*v0*r0*r0*sintheta2)/(center.massG-eccentricityMG);\r\n \tsemimajorAxis=(ap+pe)/2;\r\n \tsemiminorAxis=Math.sqrt(ap*pe);\r\n \tsemifocallength=(ap-pe)/2;\r\n \tSystem.out.println(semimajorAxis+\",\"+semiminorAxis+\",\"+semifocallength);\r\n \teccentricity=eccentricityMG/center.massG;\r\n \tperiod=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));\r\n \trotate=(360-Math.toDegrees(Math.acos(cosmiu0)));\r\n \torbitCalculator.angleDelta=(Math.toDegrees(Math.acos(cosmiu0))+360);\r\n \trotate=rotate+initialState.r0_direction;\r\n \t\r\n \tif(ifObtuse==1) {\r\n \t\tdouble rbuf=rotate;\r\n \t\trotate=initialState.r0_direction-rotate;\r\n \t\torbitCalculator.angleDelta+=(2*rbuf-initialState.r0_direction);\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate>360)rotate=rotate-360;\r\n \t\telse break;\r\n \t}\r\n \tfor(;;) {\r\n \t\tif(rotate<0)rotate=rotate+360;\r\n \t\telse break;\r\n \t}\r\n \t/*\r\n \tpe=initialState.r0_val;\r\n rotate=initialState.r0_direction;\r\n ap=(initialState.v0_val*initialState.v0_val*pe*pe)/(2*center.massG-initialState.v0_val*initialState.v0_val*pe);\r\n peSpeed=initialState.v0_val;\r\n apSpeed=(2*center.massG-initialState.v0_val*initialState.v0_val*pe)/(initialState.v0_val*pe);\r\n if(ap<pe){\r\n double lf=ap;ap=pe;pe=lf;\r\n lf=apSpeed;apSpeed=peSpeed;peSpeed=lf;\r\n }\r\n semimajorAxis=(ap+pe)/2;\r\n semifocallength=(ap-pe)/2;\r\n semiminorAxis=Math.sqrt(ap*pe);\r\n eccentricity=semifocallength/semimajorAxis;\r\n period=2*Math.PI*Math.sqrt(semimajorAxis*semimajorAxis*semimajorAxis/(center.massG));*/\r\n }",
"public int TakeStep()\n\t\t{\n\t\t// the eventual movement command is placed here\n\t\tVec2\tresult = new Vec2(0,0);\n\n\t\t// get the current time for timestamps\n\t\tlong\tcurr_time = abstract_robot.getTime();\n\n\n\t\t/*--- Get some sensor data ---*/\n\t\t// get vector to the ball\n\t\tVec2 ball = abstract_robot.getBall(curr_time);\n\n\t\t// get vector to our and their goal\n\t\tVec2 ourgoal = abstract_robot.getOurGoal(curr_time);\n\t\tVec2 theirgoal = abstract_robot.getOpponentsGoal(curr_time);\n\n\t\t// get a list of the positions of our teammates\n\t\tVec2[] teammates = abstract_robot.getTeammates(curr_time);\n\n\t\t// find the closest teammate\n\t\tVec2 closestteammate = new Vec2(99999,0);\n\t\tfor (int i=0; i< teammates.length; i++)\n\t\t\t{\n\t\t\tif (teammates[i].r < closestteammate.r)\n\t\t\t\tclosestteammate = teammates[i];\n\t\t\t}\n\n\n\t\t/*--- now compute some strategic places to go ---*/\n\t\t// compute a point one robot radius\n\t\t// behind the ball.\n\t\tVec2 kickspot = new Vec2(ball.x, ball.y);\n\t\tkickspot.sub(theirgoal);\n\t\tkickspot.setr(abstract_robot.RADIUS);\n\t\tkickspot.add(ball);\n\n\t\t// compute a point three robot radii\n\t\t// behind the ball.\n\t\tVec2 backspot = new Vec2(ball.x, ball.y);\n\t\tbackspot.sub(theirgoal);\n\t\tbackspot.setr(abstract_robot.RADIUS*5);\n\t\tbackspot.add(ball);\n\n\t\t// compute a north and south spot\n\t\tVec2 northspot = new Vec2(backspot.x,backspot.y+0.7);\n\t\tVec2 southspot = new Vec2(backspot.x,backspot.y-0.7);\n\n\t\t// compute a position between the ball and defended goal\n\t\tVec2 goaliepos = new Vec2(ourgoal.x + ball.x,\n\t\t\t\tourgoal.y + ball.y);\n\t\tgoaliepos.setr(goaliepos.r*0.5);\n\n\t\t// a direction away from the closest teammate.\n\t\tVec2 awayfromclosest = new Vec2(closestteammate.x,\n\t\t\t\tclosestteammate.y);\n\t\tawayfromclosest.sett(awayfromclosest.t + Math.PI);\n\n\n\t\t/*--- go to one of the places depending on player num ---*/\n\t\tint mynum = abstract_robot.getPlayerNumber(curr_time);\n\n\t\t/*--- Goalie ---*/\n\t\tif (mynum == 0)\n\t\t\t{\n\t\t\t// go to the goalie position if far from the ball\n\t\t\tif (ball.r > 0.5) \n\t\t\t\tresult = goaliepos;\n\t\t\t// otherwise go to kick it\n\t\t\telse if (ball.r > 0.1) \n\t\t\t\tresult = kickspot;\n\t\t\telse \n\t\t\t\tresult = ball;\n\t\t\t// keep away from others\n\t\t\tif (closestteammate.r < 0.3)\n\t\t\t\t{\n\t\t\t\tresult = awayfromclosest;\n\t\t\t\t}\n\t\t\t}\n\n\t\t/*--- midback ---*/\n\t\telse if (mynum == 1)\n\t\t\t{\n\t\t\t// go to a midback position if far from the ball\n\t\t\tif (ball.r > 0.5) \n\t\t\t\tresult = backspot;\n\t\t\t// otherwise go to kick it\n\t\t\telse if (ball.r > 0.30) \n\t\t\t\tresult = kickspot;\n\t\t\telse \n\t\t\t\tresult = ball;\n\t\t\t// keep away from others\n\t\t\tif (closestteammate.r < 0.3)\n\t\t\t\t{\n\t\t\t\tresult = awayfromclosest;\n\t\t\t\t}\n\t\t\t}\n\n\t\telse if (mynum == 2)\n\t\t\t{\n\t\t\t// go to a the northspot position if far from the ball\n\t\t\tif (ball.r > 0.5) \n\t\t\t\tresult = northspot;\n\t\t\t// otherwise go to kick it\n\t\t\telse if (ball.r > 0.30) \n\t\t\t\tresult = kickspot;\n\t\t\telse \n\t\t\t\tresult = ball;\n\t\t\t// keep away from others\n\t\t\tif (closestteammate.r < 0.3)\n\t\t\t\t{\n\t\t\t\tresult = awayfromclosest;\n\t\t\t\t}\n\t\t\t}\n\n\t\telse if (mynum == 4)\n\t\t\t{\n\t\t\t// go to a the northspot position if far from the ball\n\t\t\tif (ball.r > 0.5) \n\t\t\t\tresult = southspot;\n\t\t\t// otherwise go to kick it\n\t\t\telse if (ball.r > 0.3 )\n\t\t\t\tresult = kickspot;\n\t\t\telse \n\t\t\t\tresult = ball;\n\t\t\t// keep away from others\n\t\t\tif (closestteammate.r < 0.3)\n\t\t\t\t{\n\t\t\t\tresult = awayfromclosest;\n\t\t\t\t}\n\t\t\t}\n\n\t\t/*---Lead Forward ---*/\n\t\telse if (mynum == 3)\n\t\t\t{\n\t\t\t// if we are more than 4cm away from the ball\n\t\t\tif (ball.r > .3)\n\t\t\t\t// go to a good kicking position\n\t\t\t\tresult = kickspot;\n\t\t\telse\n\t\t\t\t// go to the ball\n\t\t\t\tresult = ball;\n\t\t\t}\n\n\n\t\t/*--- Send commands to actuators ---*/\n\t\t// set the heading\n\t\tabstract_robot.setSteerHeading(curr_time, result.t);\n\n\t\t// set speed at maximum\n\t\tabstract_robot.setSpeed(curr_time, 1.0);\n\n\t\t// kick it if we can\n\t\tif (abstract_robot.canKick(curr_time))\n\t\t\tabstract_robot.kick(curr_time);\n\n\t\t/*--- Send message to other robot ---*/\n\t\t// COMMUNICATION\n\t\t// if I can kick\n\t\tif (abstract_robot.canKick(curr_time))\n\t\t\t{\n\t\t\t// and I am robot #3\n\t\t\tif ((mynum==3))\n\t\t\t\t{\n\t\t\t\t// construct a message\n\t\t\t\tStringMessage m = new StringMessage();\n\t\t\t\tm.val = (new Integer(mynum)).toString();\n\t\t\t\tm.val = m.val.concat(\" can kick\");\n\n\t\t\t\t// send the message to robot 2\n\t\t\t\t// note: broadcast and multicast are also\n\t\t\t\t// available.\n\t\t\t\ttry{abstract_robot.unicast(2,m);}\n\t\t\t\tcatch(CommunicationException e){}\n\t\t\t\t}\n\t\t\t}\n\n\t\t/*--- Look for incoming messages ---*/\n\t\t//COMMUNICATION\n\t\twhile (messagesin.hasMoreElements())\n\t\t\t{\n\t\t\tStringMessage recvd = \n\t\t\t\t(StringMessage)messagesin.nextElement();\n\t\t\tSystem.out.println(mynum + \" received:\\n\" + recvd);\n\t\t\t}\n\n\t\t// tell the parent we're OK\n\t\treturn(CSSTAT_OK);\n\t\t}",
"private float calculateAngles(){\n\t\t// First we will move the current angle heading into the previous angle heading slot.\n\t\tdata.PID.headings[0] = data.PID.headings[1];\n\t\t// Then, we assign the new angle heading.\n\t\tdata.PID.headings[1] = data.imu.getAngularOrientation().firstAngle;\n\n\t\t// Finally we calculate a computedTarget from the current angle heading.\n\t\tdata.PID.computedTarget = data.PID.headings[1] + (data.PID.IMURotations * 360);\n\n\t\t// Now we determine if we need to re-calculate the angles.\n\t\tif(data.PID.headings[0] > 300 && data.PID.headings[1] < 60) {\n\t\t\tdata.PID.IMURotations++; //rotations of 360 degrees\n\t\t\tcalculateAngles();\n\t\t} else if(data.PID.headings[0] < 60 && data.PID.headings[1] > 300) {\n\t\t\tdata.PID.IMURotations--;\n\t\t\tcalculateAngles();\n\t\t}\n\t\treturn data.PID.headings[1];\n\t}",
"private void updateAngles(){\n double xCompassVal, yCompassVal, radCompassVal, compassHeading;\n xCompassVal = compass.getValues()[0];\n yCompassVal = compass.getValues()[2];\n radCompassVal = Math.atan2(yCompassVal, xCompassVal);\n compassHeading = (radCompassVal - 1.5708);\n\n if(compassHeading < 0.0){\n compassHeading = compassHeading + (2 * Math.PI);\n }\n this.currentHeading = compassHeading;\n\n\n //Update difference to position\n double dx = 0.0;\n double dy = 0.0;\n double bearing = 0;\n if(this.currentNode != null && this.nextNode != null ){\n System.out.println(\"Nodes Not Null\");\n dx = this.nextNode.getX() - this.currentNode.getX();\n dy = this.nextNode.getY() - this.currentNode.getY();\n\n }\n\n if (dx > 0 ){\n System.out.println(\"RADD CHECK \" + Math.atan(dy/dx));\n bearing = (Math.PI/2) - Math.atan(dy/dx);\n\n }\n\n if (dx > 0 ){\n System.out.println(\"RADD \" + Math.atan(dy/dx));\n bearing = (0.75 * Math.PI) - Math.atan(dy/dx);\n\n }\n\n if (dx == 0){\n System.out.println(\"dx == 0; Avoiding divide by 0...\");\n\n if (dy > 0) bearing = 0;\n if (dy < 0) bearing = Math.PI;\n if (dy == 0) bearing = 0;\n }\n\n this.bearingAngle = bearing;\n\n }",
"protected long travel() {\n\n return Math.round(((1 / Factory.VERTEX_PER_METER_RATIO) / (this.speed / 3.6)) * 1000);\n }",
"@Override\n public void calculateMove() {\n int xa = 0, ya = 0;\n if (steps <= 0) {\n direction = ep.calculateDirection();\n steps = MAX_STEPS;\n }\n if (direction == 0) {\n ya--;\n }\n if (direction == 2) {\n ya++;\n }\n if (direction == 3) {\n xa--;\n }\n if (direction == 1) {\n xa++;\n }\n if (canMove(xa, ya)) {\n steps -= 1 + rest;\n move(xa * speed, ya * speed);\n moving = true;\n } else {\n steps = 0;\n moving = false;\n }\n }",
"private void calculateMotorOutputs(int angle, int strength) {\n Point cart_point = polarToCart(angle,strength);\n\n final double max_motor_speed = 1024.0;\n final double min_motor_speed = 600.0;\n\n final double max_joy_val = 100;\n\n final double fPivYLimit = 24.0; // 32.0 was originally recommended\n\n // TEMP VARIABLES\n double nMotPremixL; // Motor (left) premixed output (-100..+99)\n double nMotPremixR; // Motor (right) premixed output (-100..+99)\n int nPivSpeed; // Pivot Speed (-100..+99)\n double fPivScale; // Balance scale b/w drive and pivot ( 0..1 )\n\n\n // Calculate Drive Turn output due to Joystick X input\n if (cart_point.y >= 0) {\n // Forward\n nMotPremixL = (cart_point.x>=0)? max_joy_val : (max_joy_val + cart_point.x);\n nMotPremixR = (cart_point.x>=0)? (max_joy_val - cart_point.x) : max_joy_val;\n } else {\n // Reverse\n nMotPremixL = (cart_point.x>=0)? (max_joy_val - cart_point.x) : max_joy_val;\n nMotPremixR = (cart_point.x>=0)? max_joy_val : (max_joy_val + cart_point.x);\n }\n\n // Scale Drive output due to Joystick Y input (throttle)\n nMotPremixL = nMotPremixL * cart_point.y/max_joy_val;\n nMotPremixR = nMotPremixR * cart_point.y/max_joy_val;\n\n // Now calculate pivot amount\n // - Strength of pivot (nPivSpeed) based on Joystick X input\n // - Blending of pivot vs drive (fPivScale) based on Joystick Y input\n nPivSpeed = cart_point.x;\n fPivScale = (Math.abs(cart_point.y)>fPivYLimit)? 0.0 : (1.0 - Math.abs(cart_point.y)/fPivYLimit);\n\n // Calculate final mix of Drive and Pivot, produces normalised values between -1 and 1\n double motor_a_prescale = ( (1.0-fPivScale)*nMotPremixL + fPivScale*( nPivSpeed) ) /100;\n double motor_b_prescale = ( (1.0-fPivScale)*nMotPremixR + fPivScale*(-nPivSpeed) ) /100;\n\n // convert normalised values to usable motor range\n motor_a = (int)( motor_a_prescale * (max_motor_speed - min_motor_speed) + (Math.signum(motor_a_prescale)*min_motor_speed) );\n motor_b = (int)( motor_b_prescale * (max_motor_speed - min_motor_speed) + (Math.signum(motor_b_prescale)*min_motor_speed) );\n\n }",
"private void updateTranslated() {\r\n\r\n\tfloat[] dp = new float[3];\r\n\tTools3d.subtract(p, _p, dp);\r\n\r\n\tfor (int i = 0; i < npoints * 3; i+= 3) {\r\n\t // translate by adding the amount local origin has moved by\r\n\t ps[i] += dp[0];\r\n\t ps[i + 1] += dp[1];\r\n\t ps[i + 2] += dp[2];\r\n\t}\r\n\t\r\n\t// reset bounding box and clear dirty flag\r\n\tbox.setBB();\r\n\tdirtyT = false;\r\n\r\n\t// finally\r\n\t_p[0] = p[0];\r\n\t_p[1] = p[1];\r\n\t_p[2] = p[2];\r\n }",
"public void moveOneStep(double dt) {\r\n double movementX = this.p.getX() + dt * this.vel.getDx();\r\n double movementY = this.p.getY() + dt * this.vel.getDy();\r\n Line trajectory = new Line(this.p, new Point(movementX, movementY));\r\n CollisionInfo collInfo = gameE.getClosestCollision(trajectory);\r\n // if there is a collision point collInfo doesn't equal to null.\r\n if (collInfo != null) {\r\n double x = this.getX();\r\n double y = this.getY();\r\n Point collisionPoint = collInfo.collisionPoint();\r\n Collidable obj = collInfo.collisionObject();\r\n Rectangle r = obj.getCollisionRectangle();\r\n // Check if the ball hit on one of the corners block.\r\n if (collisionPoint.getY() == collisionPoint.getX()) {\r\n // If the ball hit on the top corners.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()\r\n || collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n // else the ball hit on the bottom corners.\r\n } else {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n }\r\n // Set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n return;\r\n }\r\n\r\n // If the ball hit on the left border block.\r\n if (collisionPoint.getX() == r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() - this.getSize() - 0.001;\r\n y = collisionPoint.getY();\r\n // If the ball hit on the right border block.\r\n } else if (collisionPoint.getX() == r.getWidth() + r.getUpperLeft().getX()) {\r\n x = collisionPoint.getX() + this.getSize() + 0.001;\r\n y = collisionPoint.getY();\r\n\r\n }\r\n // If the ball hit on the top border block.\r\n if (collisionPoint.getY() == r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() - this.getSize() - 0.001;\r\n x = collisionPoint.getX();\r\n // If the ball hit on the bottom border block.\r\n } else if (collisionPoint.getY() == r.getHeight() + r.getUpperLeft().getY()) {\r\n y = collisionPoint.getY() + this.getSize() + 0.001;\r\n x = collisionPoint.getX();\r\n }\r\n // set a new velocity.\r\n this.setVelocity(obj.hit(this, collInfo.collisionPoint(), this.getVelocity()));\r\n this.p = new Point(x, y);\r\n // else move the ball one step.\r\n } else {\r\n this.p = this.getVelocity().applyToPoint(this.p, dt);\r\n }\r\n }",
"@Override\n\t\tpublic void updateVariables(){\n\t\t\tthis.currentX = odometer.getCurrentX();\n\t\t\tthis.currentY = odometer.getCurrentY();\n\t\t\tthis.currentAngle = odometer.getHeadingAngle();\n\t\t\tthis.currentAverageVelocity = odometer.getCurrentAverageVelocity();\n\t\t}",
"private void updateDesiredDirection() {\n\t\t/* http://www.cs.mcgill.ca/~hsafad/robotics/, accessed 28/02/16 */\n\n\t\t// First, set all seen bots' charge to -VE, all on LEDs to +VE, all off LEDs to 0.0D\n\t\tpopulateCharges();\n\t\t\n\t\t// VARIABLES\n\t\tdouble dirX = 0.0D; // relative dirX and dirY that the bot will need to face\n\t\tdouble dirY = 0.0D; \n\t\tdouble dx = 0.0D;\t// used to calculate each push/pull force, added to dirX, dirY\n\t\tdouble dy = 0.0D;\n\t\tdouble targetCharge = 0.0D;\t// charge of current target bot / led\n\t\tdouble minS = 50;\n\t\tdouble distSq = 0.0D;\t// distance^2 to bot/led\n\t\tdouble safety = 0.0D;\n\t\tdouble norm = 0.0D;\n\t\t\n\t\tfor (int i = 0; i < seenCharges.size(); i++) {\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// now, update direction depending on charges\n\t\t\t\tif (seenCharges.get(i) instanceof Bot) {\n\t\t\t\t\t\t\n\t\t\t\t\ttargetCharge = ((Bot) seenCharges.get(i)).getCharge();\n\t\t\t\t\tdistSq = sens.getDistanceTo((Bot) seenCharges.get(i));\n\t\t\t\t\tdistSq = distSq * distSq;\n\t\t\t\t\t\n\t\t\t\t\t// calculated forces\n\t\t\t\t\tdx = targetCharge * (((Bot) seenCharges.get(i)).getX() - this.getX()) / distSq;\n\t\t\t\t\tdy = targetCharge * (((Bot) seenCharges.get(i)).getY() - this.getY()) / distSq;\n\n\t\t\t\t\t// add calculated forces to overall direction so far\n\t\t\t\t\tdirX += dx;\n\t\t\t\t\tdirY += dy;\n\t\t\t\t\t\n\t\t\t\t\tsafety = distSq / ((dx*dirX + dy*dirY));\n\t\t\t\t\tif ((safety > 0) && (safety < minS)) { minS = safety; }\n\t\t\t\t\t\t\n\t\t\t\t} else if ((seenCharges.get(i) instanceof LED)) {\n\t\t\t\t\n\t\t\t\t\ttargetCharge = ((LED) seenCharges.get(i)).getCharge();\n\t\t\t\t\t\n\t\t\t\t\tif (targetCharge != 0.0D) { \n\t\t\t\t\t\t\n\t\t\t\t\t\tdistSq = sens.getDistanceTo((LED) seenCharges.get(i));\n\t\t\t\t\t\tdistSq = distSq * distSq;\n\n\t\t\t\t\t\t// calculated forces\n\t\t\t\t\t\tdx = targetCharge * (((LED) seenCharges.get(i)).getTargetX() - this.getX()) / distSq;\n\t\t\t\t\t\tdy = targetCharge * (((LED) seenCharges.get(i)).getTargetY() - this.getY()) / distSq;\n\t\t\t\t\t\t\n\t\t\t\t\t\t// add calculated forces to overall direction so far\n\t\t\t\t\t\tdirX += dx;\n\t\t\t\t\t\tdirY += dy;\n\t\t\t\t\t\t\n\t\t\t\t\t\tsafety = distSq / ((dx*dirX + dy*dirY));\n\t\t\t\t\t\tif ((safety > 0) && (safety < minS)) { minS = safety; }\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (minS < 5) {\n\t\t\t\t\t\t\ttargetCharge *= minS/5;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t \n\t\t\t\t\t\tif (minS > 50) {\n\t\t\t\t\t\t\ttargetCharge *= minS/50;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"ERROR: unknown seenCharges item \"+i);\n\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\t\n\t\t// calculate vector normal, apply to dirX, dirY\n\t\tnorm = Math.sqrt(dirX*dirX + dirY*dirY);\n\t\tdirX = dirX / norm;\n\t\tdirY = dirY / norm;\n\t\t\n\t\t// set desired direction if it calculates a number\n\t\tif (dirX == (double) dirX && dirY == (double) dirY) {\n\t\t\tthis.setDesiredDirection(sens.getDirectionTo(dirX + sens.getXPos(), dirY + sens.getYPos()));\n\t\t}\n\t}",
"public void moveForward()\r\n\t{\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] -= Math.sin(Math.toRadians(heading-90))*distance; \r\n\t\t\tthis.loc[2] -= Math.cos(Math.toRadians(heading-90))*distance;\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unused\")\n\tpublic void execute(){\n\t\tdouble mtrFrontRight;\n\t\tdouble mtrFrontLeft;\n\t\tdouble mtrBackRight;\n\t\tdouble mtrBackLeft;\n\t\t\n\t\tdouble speed = 3.0; //The variable we are assigning\n\t\tdouble yawHeading = 0; //Obtained from Robot class\n\t\t\n\t\tdouble getCurrentSetPoint = 0.0; //This Will be obtained via a variable set in the turn to heading class as it is obtained. (possible issues)\n\t\tdouble actualEncoderSetpoint; //Represents the value the encoder is actually at.\n\t\t\n\t\tdouble zeroHeading; //This is a weird one. it is there because of the odd difference calculations issue of say being 5 off of zero and heading being 355;\n\t\t\n\t\t\n\t\t//Switch structure stuff\n\t\tint forward = 0;\n\t\tint left = 1;\n\t\tint right = 2;\n\t\tint state = forward;\n\t\t\n\t\t\n\t\tif(getCurrentSetPoint == 0) {\n\t\t\tstate = forward;\n\t\t} else if(getCurrentSetPoint == 90) {\n\t\t\tstate = right;\n\t\t} else if(getCurrentSetPoint == 270) {\n\t\t\tstate = left;\n\t\t}\n\t\t\n\t\t//where the weirdness of zero heading comes into play.\n\t\tif(yawHeading > 180){\n\t\t\tzeroHeading = 360 - yawHeading;\n\t\t\tzeroHeading = -(zeroHeading);\n\t\t} else {\n\t\t\tzeroHeading = yawHeading;\n\t\t}\n\t\t\n\t\t//Here comes the fun math.\n\t\t// oh yeah and brackets are fun just saying.\n\t\t//try not to get cancer.\n\t\t\n\t\tswitch (state) {\n\t\t\t\n\t\t\tcase 0 :\n\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\tmtrFrontRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrBackRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\tmtrFrontLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\tmtrBackLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\tcase 1 :\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\t\tmtrBackRight = -(speed - ((zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\t\tmtrBackLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\t\tmtrFrontRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\t\tmtrFrontLeft = speed - ((-zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\tcase 2 : \n\t\t\t\tif(zeroHeading < -5) {\n\t\t\t\t\tmtrBackRight = -(speed - ((-zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrBackLeft = speed - ((-zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrBackRight = -speed;\n\t\t\t\t\tmtrBackLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(zeroHeading > 5) {\n\t\t\t\t\tmtrFrontRight = -(speed - ((zeroHeading * Math.pow(10, -1)) * .3) );\n\t\t\t\t\tmtrFrontLeft = speed - ((zeroHeading * Math.pow(10, -1)) * .3);\n\t\t\t\t} else {\n\t\t\t\t\tmtrFrontRight = -speed;\n\t\t\t\t\tmtrFrontLeft = speed;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t}\n\t}",
"public void laserUpdate3() {\n\n\t\t// makes laser & ship stay coupled (maybe a better way to do this?)\n\t\tif (StartingClass.downEnemies.get(StartingClass.currentIndex).isMovingY()) {\n\t\t\tcenterY = StartingClass.downEnemies.get(StartingClass.currentIndex).getCenterY();\n\t\t\tcenterX = StartingClass.downEnemies.get(StartingClass.currentIndex).getCenterX();\n\t\t}\n\t\tif (StartingClass.MIDDLE_Y > StartingClass.downLasers.get(StartingClass.currentIndex).getCenterY()) {\n\t\t\tcenterY += 3;\n\t\t} else {\n\t\t\tcenterX = StartingClass.downEnemies.get(StartingClass.currentIndex).getCenterX() + 1;\n\t\t\tcenterY = StartingClass.downEnemies.get(StartingClass.currentIndex).getCenterY();\n\t\t}\n\t}",
"public float calculateDeltaIdealHeading(double currentHeading, Vector2 target) {\r\n\t\t//first calculate the angle from here to the target\r\n\t\tdouble delta_x = target.x() - position.x();\r\n\t\tdouble delta_y = target.y() - position.y();\r\n\t\tdouble idealAngle = Math.toDegrees(Math.atan(delta_x / delta_y));\r\n\t\tdouble deltaAngle = idealAngle - currentHeading;\r\n\t\treturn (float)deltaAngle;\r\n\t}",
"public void moveOneStep() {\n\n //computing the predicted trajectory\n Line trajectory = computeTrajectory();\n\n //checking the borders\n if (reachedBorder(trajectory)) {\n return;\n }\n\n //getting the closest collision info\n //CollisionInfo collisionInfo = this.gameEnvironment.getClosestCollision(trajectory);\n CollisionInfo collisionInfo = this.gameLevel.getEnvironment().getClosestCollision(trajectory);\n\n if (collisionInfo != null && collisionInfo.collisionObject() != null) {\n\n //changing the velocity according to the collision info (point, type of collidiable\n // and position on the collidable)\n Velocity newVelocity =\n collisionInfo.collisionObject().hit(this, collisionInfo.collisionPoint(), this.velocity);\n this.velocity = newVelocity;\n }\n\n //setting the next position of the center of the ball (new velocity after collision)\n this.center = this.getVelocity().applyToPoint(this.center);\n }",
"private void calculateDirection(){\n\t\tif(waypoints.size() > 0){\n\t\t\tif(getDistanceToWaypoint() <= getSpeed()){\n\t\t\t\tsetPosition(new Vector2(waypoints.remove(0)));\n\t\t\t\tsetCurrentWaypoint(getCurrentWaypoint() + 1);\n\t\t\t}else{\t\t\n\t\t\t\tVector2 target = new Vector2(waypoints.get(0));\n\t\t\t\tVector2 newDirection = new Vector2(target.sub(getPosition())); \n\t\t\t\tsetDirection(newDirection);\n\t\t\t}\n\t\t}else{\n\t\t\tsetDirection(new Vector2(0, 0));\n\t\t}\n\t}",
"private void getNextPosition() {\n \n if (turnLeft) {\n angleSpeed += angleMoveSpeed;\n if (angleSpeed > maxAngleSpeed) {\n angleSpeed = maxAngleSpeed;\n }\n angle += angleSpeed;\n \n if (angle > 360) {\n angle = angle - 360 + angleSpeed;\n }\n \n if (forward)\n {\n speed += moveSpeed;\n if (speed > maxSpeed)\n {\n speed = maxSpeed;\n }\n } else if (backwards)\n {\n speed -= moveSpeed;\n if (speed < -maxSpeed)\n {\n speed = -maxSpeed;\n }\n }\n }\n //moving in negative x direction\n if (turnRight) {\n angleSpeed -= angleMoveSpeed;\n if (angleSpeed < -maxAngleSpeed) {\n angleSpeed = -maxAngleSpeed;\n }\n angle += angleSpeed;\n \n if (angle < -360) {\n angle = angle + 360 - angleSpeed;\n }\n \n if (backwards)\n {\n speed -= moveSpeed;\n if (speed < -maxSpeed)\n {\n speed = -maxSpeed;\n }\n } else if (forward)\n {\n speed += moveSpeed;\n if (speed > maxSpeed)\n {\n speed = maxSpeed;\n }\n }\n }\n \n //moving in positive y direction\n if (backwards) {\n speed += moveSpeed;\n if (speed > maxSpeed) {\n speed = maxSpeed;\n }\n }\n //moving in negative y direction\n if (forward) {\n speed -= moveSpeed;\n if (speed < -maxSpeed) {\n speed = -maxSpeed;\n }\n }\n \n //not moving forward or backwards direction\n if (isNotMoving()) {\n //stop moving in the x direction\n if (speed > 0) {\n speed -= stopSpeed;\n if (speed < 0) {\n speed = 0;\n }\n }\n else if (speed < 0) {\n speed += stopSpeed;\n if (speed > 0) {\n speed = 0;\n }\n }\n \n if (isNotTurning()) {\n //stop moving in the y direction\n if (angleSpeed > 0) {\n angleSpeed -= stopSpeed;\n if (angleSpeed < 0) {\n angleSpeed = 0;\n }\n }\n else if (angleSpeed < 0) {\n angleSpeed += stopSpeed;\n if (angleSpeed > 0) {\n angleSpeed = 0;\n }\n }\n } \n }\n }",
"double getHeadingDiff(double init_h) {\n double curr_h = getHeading();\n double diff_h = init_h - curr_h;\n if( diff_h>=360.0 ) diff_h -= 360.0;\n else if( diff_h<=-360.0 ) diff_h += 360.0;\n return diff_h ;\n }",
"private Line getMiddleTrajectory() {\n Point startPoint;\n if (movingRight()) {\n startPoint = middleRight();\n } else if (movingLeft()) {\n startPoint = middleLeft();\n } else {\n return null;\n }\n\n return new Line(startPoint, this.velocity);\n }",
"private void updatePosition() {\n\t\tfor (int i = 0; i < encoders.length; i++) {\n\t\t\tdRot[i] = (encoders[i].get() - lastEncPos[i]) / this.cyclesPerRev;\n\t\t\tdPos[i] = dRot[i] * wheelDiameter * Math.PI;\n\t\t\tlastEncPos[i] = encoders[i].get();\n\t\t}\n\t\t\n\t\tdLinearPos = (dPos[0] + dPos[1]) / 2;\n\t\t\n\t\tposition[2] = Math.toRadians(gyro.getAngle()) + gyroOffset;\n\t\tposition[0] += dLinearPos * Math.sin(position[2]);\n\t\tposition[1] += dLinearPos * Math.cos(position[2]);\n\t}",
"public void moveOneStep() {\n // special case - the ball is inside the paddle\n Map<Integer, Point> result = movingBlock.getCollisionRectangle().insideRectangle(this.center);\n if (result != null) {\n // getting a pair information of:\n // A point: the new point of the center outside the paddle\n // An Integer: 1 if it's on the right, -1 if on the left\n for (Integer direction : result.keySet()) {\n // setting the new center, and the new velocity, based on the result\n this.center = result.get(direction);\n this.setVelocity(Math.abs(this.getVelocity().getX()) * direction, -Math.abs(this.getVelocity().getY()));\n }\n // normal case - the ball is not inside the paddle\n } else {\n // getting the line trajectory\n Line trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n // getting the collision info\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n int count = 0;\n // while this info is not null\n while (info != null) {\n // changing the velocity of the ball\n // notify the object it has been hit\n this.setVelocity(info.collisionObject().hit(this, info.collisionPoint(), this.getVelocity()));\n // getting the update trajectory and info (while they're not null!)\n trajectory = new Line(this.center, this.getVelocity().applyToPoint(this.center));\n info = this.gameEnvironment.getClosestCollision(trajectory);\n // if the count is 3, it means we are into an infinite loop!\n // oppose the velocity and break\n if (count == 3) {\n this.setVelocity(-this.getVelocity().getX(), -this.getVelocity().getY());\n break;\n }\n count++;\n }\n this.center = this.getVelocity().applyToPoint(this.center);\n }\n }",
"private float calculateAngle() {\r\n\r\n\t\tdouble angleTemp = Math.atan2(Target.getY() - y, Target.getX() - x);\r\n\t\t// I needed to use wikipedia to get this i\r\n\t\t// did not learn this in math and needed\r\n\t\t// to use a couplle youtube tutorials to\r\n\t\t// find out how to do the math in java\r\n\t\t// aswell thank fully one had the exact\r\n\t\t// way of doing this\r\n\t\treturn (float) Math.toDegrees(angleTemp) + 90;\r\n\t}",
"public void driveTo(double targetX, double targetY, float heading, double speedLimit) throws InterruptedException {\n float error = heading - zRotation; //The number of degrees between the true heading and desired heading\n double correction; //Modifies power to account for error\n double max;\n double Y_P_COEFF = 0.17825353626292278; //0.002\n double Y_I_COEFF = 0.2852056580206765; //0.0035\n double Y_D_COEFF = 0.0003; //0.00042\n double X_P_COEFF = 0.17825353626292278; //0.002\n double X_I_COEFF = 0.2852056580206765; //0.0035\n double X_D_COEFF = 0.0003; //0.00042\n double T_P_COEFF = 0.0084;\n double T_I_COEFF = 0.0168;\n double T_D_COEFF = 0.0028;\n double driveY, driveX;\n double distanceY;\n double distanceX;\n long loops = 0;\n heading = (int) normalize360(heading);\n\n double frontLeft;\n double frontRight;\n double backLeft;\n double backRight;\n\n setEncoderBase();\n int lastEncoderY = 0;\n int lastEncoderX = 0;\n float lastHeading = zRotation;\n\n speedLimit = Range.clip(speedLimit, 0.0, 1.0);\n\n if (speedLimit==0){\n return;\n }\n\n double power;\n double deltaT;\n double derivativeY = 0;\n double derivativeX = 0;\n double derivativeT = 0;\n double integralY = 0;\n double integralX = 0;\n double integralT = 0;\n int deltaDY;\n int deltaDX;\n float deltaDT;\n\n double theta;\n double theta2;\n double gamma;\n double h;\n double local_globalX;\n double local_globalY;\n\n double lastTime = callingOpMode.getRuntime();\n\n while ((((((Math.abs(targetY)-1) > Math.abs(globalY)) || ((Math.abs(targetY)+1) < Math.abs(globalY))) ||\n (((Math.abs(targetX)-1) > Math.abs(globalX)) || ((Math.abs(targetX)+1) < Math.abs(globalX)))) ||\n (Math.abs(error)>=5.0f)) && ((LinearOpMode) callingOpMode).opModeIsActive()) {\n\n error = heading - zRotation;\n\n while (error > 180) error = (error - 360);\n while (error <= -180) error = (error + 360);\n\n local_globalX = globalX;\n local_globalY = globalY;\n\n theta = zRotation * Math.PI / 180.0;\n\n // these represent the current x and y translations still to do, in global coordinates ... in inches\n driveY = targetY - local_globalY;\n driveX = targetX - local_globalX;\n\n theta2 = Math.atan2(driveY, driveX);\n gamma = theta+theta2;\n h = Math.sqrt((driveX*driveX)+(driveY*driveY));\n\n // in robot coordinates,\n distanceY = Math.sin(gamma)*h;\n distanceX = Math.cos(gamma)*h;\n\n deltaT = callingOpMode.getRuntime()-lastTime;\n lastTime = callingOpMode.getRuntime();\n deltaDY = getEncoderWheelYPosition()-lastEncoderY;\n lastEncoderY = getEncoderWheelYPosition();\n deltaDX = getEncoderWheelXPosition()-lastEncoderX;\n lastEncoderX = getEncoderWheelXPosition();\n deltaDT = zRotation-lastHeading;\n lastHeading = zRotation;\n\n derivativeY = ((double) deltaDY)/deltaT;\n derivativeX = ((double) deltaDX)/deltaT;\n derivativeT = ((double) deltaDT/deltaT);\n\n if(Math.abs(distanceY*Y_P_COEFF)<1 && Math.abs(distanceY)>1){\n integralY += distanceY*deltaT;\n } else {\n integralY = 0;\n }\n if(Math.abs(distanceX*X_P_COEFF)<1 && Math.abs(distanceX)>1){\n integralX += distanceX*deltaT;\n } else {\n integralX = 0;\n }\n if(Math.abs(error*T_P_COEFF)<1 && Math.abs(error)>5){\n integralT += error*deltaT;\n } else {\n integralT = 0;\n }\n\n power = (distanceY*Y_P_COEFF) + (integralY*Y_I_COEFF) - (derivativeY*Y_D_COEFF);\n\n frontLeft = power;\n frontRight = power;\n backLeft = power;\n backRight = power;\n\n power = (distanceX*X_P_COEFF) + (integralX*X_I_COEFF) - (derivativeX*X_D_COEFF);\n\n frontLeft += power;\n frontRight -= power;\n backLeft -= power;\n backRight += power;\n\n max = Math.max(Math.max(Math.abs(frontLeft), Math.abs(frontRight)), Math.max(Math.abs(backLeft), Math.abs(backRight)));\n if (max > Math.abs(speedLimit)) {\n frontLeft /= max;\n frontRight /= max;\n backLeft /= max;\n backRight /= max;\n frontLeft *= Math.abs(speedLimit);\n frontRight *= Math.abs(speedLimit);\n backLeft *= Math.abs(speedLimit);\n backRight *= Math.abs(speedLimit);\n }\n\n correction = (error*T_P_COEFF) + (integralT*T_I_COEFF) - (derivativeT*T_D_COEFF);\n\n frontLeft -= correction;\n frontRight += correction;\n backLeft -= correction;\n backRight += correction;\n\n max = Math.max(Math.max(Math.abs(frontLeft), Math.abs(frontRight)), Math.max(Math.abs(backLeft), Math.abs(backRight)));\n if (max > 1.0) {\n frontLeft /= max;\n frontRight /= max;\n backLeft /= max;\n backRight /= max;\n }\n\n updateDriveMotors(frontLeft, frontRight, backLeft, backRight);\n\n if (((loops+10) % 10) == 0) {\n callingOpMode.telemetry.addData(\"zRotation\" , zRotation);\n callingOpMode.telemetry.addData(\"globalY\" , local_globalY);\n callingOpMode.telemetry.addData(\"globalX\" , local_globalX);\n callingOpMode.telemetry.addData(\"distanceY\", distanceY);\n callingOpMode.telemetry.addData(\"distanceX\", distanceX);\n callingOpMode.telemetry.addData(\"theta\", theta);\n callingOpMode.telemetry.addData(\"theta2\",theta2);\n callingOpMode.telemetry.addData(\"gamma\",gamma);\n callingOpMode.telemetry.addData(\"driveY\",driveY);\n callingOpMode.telemetry.addData(\"driveX\",driveX);\n callingOpMode.telemetry.addData(\"error\", error);\n callingOpMode.telemetry.addData(\"loops\", loops);\n callingOpMode.telemetry.update();\n }\n\n loops++;\n\n updateGlobalPosition();\n\n ((LinearOpMode) callingOpMode).sleep(10);\n }\n }",
"public void moveOneStep() {\r\n\r\n // detects what direction the ball moves and switches it.\r\n double xDirection, yDirection;\r\n if (v.getDx() < 0) {\r\n xDirection = -r;\r\n } else {\r\n xDirection = r;\r\n }\r\n if (v.getDy() < 0) {\r\n yDirection = -r;\r\n } else {\r\n yDirection = r;\r\n }\r\n // if the ball is in the paddle because they move towards each other, the ball moves to the top of the paddle.\r\n Rectangle danger;\r\n // finding the paddle.\r\n for (Collidable c: environment.getCollidables()) {\r\n if (c.getCollisionRectangle().getUpperLeft().getY() == 550) {\r\n danger = c.getCollisionRectangle();\r\n // moving the ball up if its in the paddle.\r\n if (center.getY() > danger.getUpperLeft().getY()\r\n && center.getX() > danger.getUpperLeft().getX()\r\n && center.getX() < danger.getUpperRight().getX()) {\r\n this.center = new Point(center.getX(), danger.getUpperLeft().getY() - r);\r\n }\r\n }\r\n }\r\n Line yTrajectory = new Line(center.getX(), center.getY() + yDirection,\r\n center.getX() + v.getDx(), center.getY() + yDirection + v.getDy());\r\n Line xTrajectory = new Line(center.getX() + xDirection, center.getY(),\r\n center.getX() + v.getDx() + xDirection, center.getY() + v.getDy());\r\n // the collision is on the y field.\r\n if (environment.getClosestCollision(yTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(yTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(yTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(this.center.getX(),\r\n bangedPoint.getY() - yDirection - v.getDy());\r\n }\r\n // the collision is on the x field.\r\n if (environment.getClosestCollision(xTrajectory) != null) {\r\n Collidable bangedCollidable = environment.getClosestCollision(xTrajectory).collisionObject();\r\n Point bangedPoint = environment.getClosestCollision(xTrajectory).collisionPoint();\r\n this.setVelocity(bangedCollidable.hit(this, bangedPoint, this.v));\r\n this.center = new Point(bangedPoint.getX() - xDirection - v.getDx(),\r\n this.center.getY());\r\n }\r\n this.center = this.getVelocity().applyToPoint(this.center);\r\n }",
"public void updateGoalPositions() {\n // Convert angle to unit vector\n double downUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI));\n double downUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI));\n double sideUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI / 2));\n double sideUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI / 2));\n\n // Create troops and set starting positions for each troop\n double topX = anchorX - (width - 1) * unitStats.spacing * sideUnitX / 2;\n double topY = anchorY - (width - 1) * unitStats.spacing * sideUnitY / 2;\n\n // Update troops goal positions\n for (int row = 0; row < aliveTroopsFormation.length; row++) {\n for (int col = 0; col < aliveTroopsFormation[0].length; col++) {\n BaseSingle troop = aliveTroopsFormation[row][col];\n if (troop == null) continue;\n double xGoalSingle;\n double yGoalSingle;\n // If the person is the flanker, go straight to the assigned position in flankers offset.\n if (state == UnitState.FIGHTING) {\n if (row < flankersCount[col]) {\n double offsetSide = flankerOffsets[col].get(row)[0];\n double offsetDown = flankerOffsets[col].get(row)[1];\n xGoalSingle = this.unitFoughtAgainst.getAverageX() + offsetSide * sideUnitX + offsetDown * downUnitX;\n yGoalSingle = this.unitFoughtAgainst.getAverageY() + offsetSide * sideUnitY + offsetDown * downUnitY;\n } else {\n xGoalSingle = topX + col * unitStats.spacing * sideUnitX\n + (row - flankersCount[col]) * unitStats.spacing * downUnitX;\n yGoalSingle = topY + col * unitStats.spacing * sideUnitY\n + (row - flankersCount[col]) * unitStats.spacing * downUnitY;\n }\n } else {\n xGoalSingle = topX + col * unitStats.spacing * sideUnitX\n + row * unitStats.spacing * downUnitX;\n yGoalSingle = topY + col * unitStats.spacing * sideUnitY\n + row * unitStats.spacing * downUnitY;\n }\n // Set the goal and change the state\n troop.setxGoal(xGoalSingle);\n troop.setyGoal(yGoalSingle);\n troop.setAngleGoal(anchorAngle);\n }\n }\n }",
"public void update(){\r\n //Move and rotate the gate at the specified speeds\r\n this.angle += this.rotationSpeed; \r\n this.centerX += this.xSpeed;\r\n this.centerY += this.ySpeed;\r\n \r\n //Calculate the new endpoints based on the updated values\r\n p1.x = centerX + (int)((length / 2)*(Math.cos(angle)));\r\n p1.y = centerY + (int)((length / 2)*(Math.sin(angle)));\r\n p2.x = centerX - (int)((length / 2)*(Math.cos(angle)));\r\n p2.y = centerY - (int)((length / 2)*(Math.sin(angle))); \r\n \r\n //Check if either end is out of bounds\r\n checkOutOfBounds(p1);\r\n checkOutOfBounds(p2); \r\n }",
"private double getCorrection(){\n //Get the current angle of the robot\n double angle = getAngle();\n double correction;\n\n //Use the angle to calculate the correction\n if (angle == 0){\n //If angle = 0, robot is moving straight; no correction needed\n correction = 0;\n }else{\n //If angle != 0, robot is not moving straight\n //Correction is negative angle (to move the robot in the opposite direction)\n //multiplied by gain; the gain is the sensitivity to angle\n //We have determined that .1 is a good gain; higher gains result in overcorrection\n //Lower gains are ineffective\n correction = angle*gain;\n }\n //Display correction\n telemetry.addData(\"Correction\", correction);\n telemetry.update();\n\n return correction;\n }",
"private double changeDirection(double theta) {\n // Check angle not out of bounds\n theta = (theta > MAX_ANGLE) ? MAX_ANGLE : theta;\n theta = (theta < -MAX_ANGLE) ? -MAX_ANGLE : theta;\n\n return theta;\n }",
"public void travelTo(double x, double y){\r\n\r\n\t\t\tdouble xDistance = x - odometer.getX();//the distance the robot has to travel in x to get to its destination from current position.\r\n\t\t\tdouble yDistance = y - odometer.getY();//the distance the robot has to travel in y to get to its destination from current position.\r\n\t\t\tdouble distance = Math.sqrt(xDistance*xDistance + yDistance*yDistance);//the overall distance the robot has to travel from current position.\r\n\t\t\t\r\n\t\t\tnewAngle = Math.atan(xDistance/yDistance); // if the yDistance is negative and xDistance superior to 0, it will provide the right angle for the nxt by adding pi to it's turn angle, \r\n\t\t\t\r\n\t\t\tcurrentAngle = odometer.getAng(); // gets current angle of nxt\r\n\t\t\ttheta = Math.toDegrees(newAngle) - currentAngle; \r\n\t\t\t\r\n\t\t\t// if true, turn to theta and run the trajectory without obstacleAvoidance\r\n\t\t\tLCD.drawString(\"theta: \"+ theta, 0, 1);\r\n\t\t\tturnTo(theta);\r\n\t\t\t\t\r\n\t\t\tleftMotor.setSpeed(FORWARD_SPEED);\r\n\t\t\trightMotor.setSpeed(FORWARD_SPEED);\r\n\r\n\t\t\tleftMotor.rotate(convertDistance(wheelRadius, distance), true);\r\n\t\t\trightMotor.rotate(convertDistance(wheelRadius, distance), false);\r\n\t\t}",
"public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }",
"public void reviseMotorSpeed() {\n\t\tmHandler.removeMessages(EVAL_MOTOR_SPEED);\n\t\tlong starttime = System.currentTimeMillis();\n\n\t\t//Retrieve current orientation.\t\t\n\t\t\n\t\tmAzimuth = mStatus.getReadingField(AZIMUTH);\t\t\n\t\tmPitchDeg = mStatus.getReadingField(PITCH);\n\t\tmRollDeg = -mStatus.getReadingField(ROLL);\n\t\t\n\t\tdouble[] errors = new double[4];\n\t\tsynchronized (mAngleTarget) {\n\t\t\t//logArray(\"mAngleTarget\", mAngleTarget);\n\t\t\terrors[0] = mAngleTarget[0] - mRollDeg;\n\t\t\terrors[1] = mAngleTarget[1] - mPitchDeg;\n\t\t\terrors[2] = mAngleTarget[2] - mStatus.getGpsField(dALT);\n\t\t\terrors[3] = mAngleTarget[3] - mAzimuth;\n\t\t\t//logArray(\"errors\", errors);\n\t\t}\n\t\t\n\t\t@SuppressWarnings(\"unused\")\n\t\tString errs = \"errors: \";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\terrs += errors[i] + \": \";\n\t\t}\n\t\t//Log.v(TAG, errs);\n\t\t//For azimuth, multiple possibilities exist for error, each equally valid; but only the error nearest zero makes practical sense.\n\t\tif (errors[3] > 180.0)\n\t\t\terrors[3] -= 360.0;\n\t\tif (errors[3] < -180.0)\n\t\t\terrors[3] += 360.0;\n\t\t\n\t\t\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t//Calculate proportional errors\n\t\t\tdouble err = errors[i];//mTarget[i] - mCurrent[i];\n\t\t\t\n\n\t\t\t//Calculate derivative errors.\n\t\t\tlong timeInterval = starttime - mLastUpdate;\n\t\t\tif (timeInterval != 0) {\n\t\t\t\tmErrors[i][2] = (err - mErrors[i][0]) * 1000.0 / timeInterval;\n\t\t\t} else {\n\t\t\t\tmErrors[i][2] = 0.0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//Mark proportional error\n\t\t\tmErrors[i][0] = err;\n\t\t\t/*if (i == 2)\n\t\t\t\tLog.v(TAG, \"guid, dalt err is \" + err);*/\n\t\t\t//Update integral errors\n\t\t\tmErrors[i][1] -= mIntegralErrors[i][mIntegralIndex];\n\t\t\tmIntegralErrors[i][mIntegralIndex] = err;\n\t\t\tmErrors[i][1] += err;\n\t\t\tmIntegralIndex = ++mIntegralIndex % PIDREPS;\n\t\t\t\n\t\t\t//Calculate changes in output\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tmControlVars[i] += mErrors[i][j] * mGain[i][j];\n\t\t\t}\n\t\t}\n\t\tif (mGuidanceMode.get() == MANUAL) {\n\t\t\tsynchronized (mAngleTarget) {\n\t\t\t\tmControlVars[2] = mAngleTarget[2];\n\t\t\t}\n\t\t}\n\t\tmLastUpdate = starttime;\n\t\t\n\t\t// Constrain control vars:\n\t\tmControlVars[0] = constrainValue(mControlVars[0], -1, 1);\n\t\tmControlVars[1] = constrainValue(mControlVars[1], -1, 1);\n\t\tmControlVars[2] = constrainValue(mControlVars[2], 0, 1);\n\t\tmControlVars[3] = constrainValue(mControlVars[3], -2, 2);\n\t\t\n\t\t/*String vars = \"Control vars: \";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tvars += mControlVars[i] + \": \";\n\t\t}\n\t\tLog.v(TAG, vars);*/\n\t\t\n\t\tcontrolVarsToMotorSpeeds();\n\t\t\n\t\t//Send motor values to motors here:\n\t\tupdateMotors();\n\t\tupdateAngleTarget();\n\t\t//Log.v(TAG, \"motors: \" + mMotorSpeed[0] + \", \" + mMotorSpeed[1] + \", \" + mMotorSpeed[2] + \", \" + mMotorSpeed[3]);\n\t\t//Sleep a while\n\t\tlong timetonext = (1000 / PIDREPS) - (System.currentTimeMillis() - starttime);\n\t\t//Log.v(TAG, \"time to next: \" + timetonext);\n\t\tint currentMode = mGuidanceMode.get();\n\t\tif ((currentMode == MANUAL) || (currentMode == AUTOPILOT)) {\n\t\t\tif (timetonext > 0)\n\t\t\t\tmHandler.sendEmptyMessageDelayed(EVAL_MOTOR_SPEED, timetonext);\n\t\t\telse {\n\t\t\t\tLog.e(TAG, \"Guidance too slow\");\n\t\t\t\tmHandler.sendEmptyMessage(EVAL_MOTOR_SPEED);\n\t\t\t}\n\t\t}\n\t}",
"public void updateIntention() {\n\n // First, rotate the front line\n double distanceToGoal = MathUtils.quickRoot1((float)((anchorX - goalX) * (anchorX - goalX) + (anchorY - goalY) * (anchorY - goalY)));\n double moveAngle, moveSpeed;\n double moveSpeedX, moveSpeedY;\n double speedModifier;\n double[] deltaVel;\n switch (state) {\n case FIGHTING:\n // TODO(sonpham): Come up with a way to change FIGHTING to IN_POSITION when comebat with a unit is over.\n if (unitFoughtAgainst.getNumAlives() == 0) {\n state = UnitState.STANDING;\n anchorAngle = goalAngle;\n unitFoughtAgainst = null;\n break;\n }\n goalAngle = MathUtils.atan2(unitFoughtAgainst.getAverageY() - averageY,\n unitFoughtAgainst.getAverageX() - averageX);\n goalX = unitFoughtAgainst.getAverageX();\n goalY = unitFoughtAgainst.getAverageY();\n\n // If army still rotating, half the speed\n moveAngle = MathUtils.atan2(goalY - anchorY, goalX - anchorX); // TODO: This is currently repeated too much\n moveSpeed = speed / 2;\n\n // Apply speed modifier by terrain\n moveSpeedX = Math.cos(moveAngle) * moveSpeed;\n moveSpeedY = Math.sin(moveAngle) * moveSpeed;\n deltaVel = terrain.getDeltaVelFromPos(anchorX, anchorY);\n speedModifier = MathUtils.ratioProjection(deltaVel[0], deltaVel[1], moveSpeedX, moveSpeedY);\n speedModifier = MathUtils.capMinMax(speedModifier,\n UniversalConstants.MINIMUM_TERRAIN_EFFECT,\n UniversalConstants.MAXIMUM_TERRAIN_EFFECT);\n moveSpeed *= (1 + speedModifier);\n if (distanceToGoal > moveSpeed) {\n double moveUnitX = Math.cos(moveAngle);\n double moveUnitY = Math.sin(moveAngle);\n anchorX += moveUnitX * moveSpeed;\n anchorY += moveUnitY * moveSpeed;\n } else {\n anchorX = goalX;\n anchorY = goalY;\n }\n\n // Update flanker status. If the flank has not engaged with the enemy for a long time, they will join\n // the flanker, which will have a different goal position.\n if (gameSettings.isEnableFlankingMechanics()) {\n for (int i = 0; i < width; i++) {\n if (flankersCount[i] < troops.size() / width && aliveTroopsFormation[flankersCount[i]][i] != null) {\n if (aliveTroopsFormation[0][i].getCombatDelay() < 0) {\n frontLinePatientCounters[i] += 1;\n } else {\n frontLinePatientCounters[i] = 0;\n }\n }\n if (frontLinePatientCounters[i] == GameplayConstants.FLANKER_PATIENT) {\n // If the front-liner has waited for too long, they will join the flanker.\n flankersCount[i] += 1;\n\n // Pick an offset for the flankers\n Triplet<Integer, Integer, Integer> pos;\n Iterator<Triplet<Integer, Integer, Integer>> it;\n // TODO: If the flanker troop is right in the middle, then it should select either\n // iterator half the time.\n if (i < width / 2) {\n it = leftFlankerIndices.iterator();\n } else {\n it = rightFlankerIndices.iterator();\n }\n pos = it.next();\n\n // Generate a new goal offset position for that flanker\n double flankingSpacing = GameplayConstants.FLANKING_SPACING_RATIO * unitStats.spacing;\n double[] offset = MathUtils.generateOffsetBasedOnHexTripletIndices(\n pos.x, pos.y, pos.z, flankingSpacing);\n double positionalJiggling = GameplayConstants.FLANKING_POSITION_JIGGLING_RATIO * flankingSpacing;\n offset[0] += MathUtils.randDouble(-1.0, 1.0) * positionalJiggling;\n offset[1] += MathUtils.randDouble(-1.0, 1.0) * positionalJiggling;\n\n // Assign that position to flanker positions\n flankerOffsets[i].add(offset);\n\n // Change the set of candidates\n leftFlankerIndices.remove(pos);\n rightFlankerIndices.remove(pos);\n if (leftFlankerIndices.size() == 0) {\n leftRingIndex += 1;\n leftFlankerIndices = MathUtils.getHexagonalIndicesRingAtOffset(leftRingIndex);\n Set<Triplet<Integer, Integer, Integer>> removalSet = new HashSet<>();\n for (Triplet<Integer, Integer, Integer> triplet : leftFlankerIndices) {\n if (triplet.z > 0) {\n removalSet.add(triplet);\n } else if (triplet.y < triplet.x) {\n removalSet.add(triplet);\n }\n }\n for (Triplet<Integer, Integer, Integer> triplet : removalSet) {\n leftFlankerIndices.remove(triplet);\n }\n }\n if (rightFlankerIndices.size() == 0) {\n rightRightIndex += 1;\n rightFlankerIndices = MathUtils.getHexagonalIndicesRingAtOffset(rightRightIndex);\n Set<Triplet<Integer, Integer, Integer>> removalSet = new HashSet<>();\n for (Triplet<Integer, Integer, Integer> triplet : rightFlankerIndices) {\n if (triplet.z > 0) {\n removalSet.add(triplet);\n } else if (triplet.y > triplet.x) {\n removalSet.add(triplet);\n }\n }\n for (Triplet<Integer, Integer, Integer> triplet : removalSet) {\n rightFlankerIndices.remove(triplet);\n }\n }\n\n // Reset patient counters.\n frontLinePatientCounters[i] = 0;\n }\n }\n }\n break;\n case ROUTING:\n // Update the direction that the unit ought to run away from, it should be the opposite vector of\n // the sum of difference in unit location difference.\n double dx = 0;\n double dy = 0;\n int numVisibleEnemies = 0;\n for (BaseUnit unit : visibleUnits) {\n if (unit.getPoliticalFaction() != politicalFaction) {\n numVisibleEnemies += 1;\n dx += unit.getAliveTroopsSet().size() * (averageX - unit.averageX);\n dy += unit.getAliveTroopsSet().size() * (averageY - unit.averageY);\n }\n }\n // Invert dx and dy. We need to run in the opposite direction.\n // Also, only change goalAngle if there are more than 1 visible enemy units. Otherwise, atan2 function\n // will return PI / 2 and change the unit direction, which is undesirable. It doesn't make sense for\n // unit to change their direction once they no longer see their enemy.\n if (numVisibleEnemies > 0) {\n goalAngle = MathUtils.atan2(dy, dx);\n }\n break;\n case MOVING:\n // If army is moving, the the army shall move at normal speed.\n moveAngle = MathUtils.atan2(goalY - anchorY, goalX - anchorX); // TODO: This is currently repeated too much\n moveSpeed = speed * turningSpeedRatio;\n\n // Apply speed modifier by terrain\n moveSpeedX = Math.cos(moveAngle) * moveSpeed;\n moveSpeedY = Math.sin(moveAngle) * moveSpeed;\n deltaVel = terrain.getDeltaVelFromPos(anchorX, anchorY);\n speedModifier = MathUtils.ratioProjection(deltaVel[0], deltaVel[1], moveSpeedX, moveSpeedY);\n speedModifier = MathUtils.capMinMax(speedModifier,\n UniversalConstants.MINIMUM_TERRAIN_EFFECT,\n UniversalConstants.MAXIMUM_TERRAIN_EFFECT);\n moveSpeed *= (1 + speedModifier);\n\n if (MathUtils.doubleEqual(moveAngle, anchorAngle)) {\n isTurning = false;\n turningSpeedRatio = 1.0;\n } else {\n isTurning = true;\n turningSpeedRatio = 1.0;\n turningSpeedRatio = Math.max(\n 0.0, turningSpeedRatio - GameplayConstants.TURNING_UNIT_SPEED_DECELERATION_RATIO);\n }\n\n // Rotate towards the goal\n anchorAngle = MovementUtils.rotate(anchorAngle, moveAngle, unitStats.rotationSpeed);\n\n if (distanceToGoal > moveSpeed) {\n double moveUnitX = Math.cos(anchorAngle);\n double moveUnitY = Math.sin(anchorAngle);\n anchorX += moveUnitX * moveSpeed;\n anchorY += moveUnitY * moveSpeed;\n } else {\n anchorX = goalX;\n anchorY = goalY;\n if (path != null && node == path.getNodes().getLast()) {\n path = null;\n node = null;\n state = UnitState.STANDING;\n } else if (path != null) {\n path.getNodes().pollFirst();\n node = path.getNodes().get(0);\n goalX = node.getX();\n goalY = node.getY();\n } else {\n path = null;\n node = null;\n state = UnitState.STANDING;\n }\n }\n break;\n case STANDING:\n anchorAngle = MovementUtils.rotate(anchorAngle, goalAngle, unitStats.rotationSpeed);\n isTurning = false;\n break;\n }\n\n // Update goal positions\n updateGoalPositions();\n\n // Update troop intentions\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.updateIntention();\n }\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n theta = (float) Math.toDegrees(Math.atan(event.values[1] / event.values[2]));\n\n\n }",
"protected void computeTranslationVelocityCommand() { // (Solution)\n\t\tdouble translationError = targetRange - desiredFixationDistance; // (Solution)\n\t\tif (Math.abs(translationError) < translationErrorTolerance) // (Solution)\n\t\t\ttranslationVelocityCommand = 0.0; // (Solution)\n\t\telse\n\t\t\t// (Solution)\n\t\t\ttranslationVelocityCommand = // (Solution)\n\t\t\tMath.max(-translationVelocityMax, // (Solution)\n\t\t\t\t\tMath.min(translationVelocityMax, // (Solution)\n\t\t\t\t\t\t\ttranslationError * translationVelocityGain)); // (Solution)\n\t}",
"private void updatePos() {\n var ballBounds = ball.getMesh().getRelativeRectangleBounds().getBounds2D();\n var hookBallBounds = hook.getHookBall().getMesh().getRelativeRectangleBounds().getBounds2D();\n var ballCenter = new Vector2(ballBounds.getCenterX(), ballBounds.getCenterY());\n var hookBallCenter = new Vector2(hookBallBounds.getCenterX(), hookBallBounds.getCenterY());\n fullDirection = hookBallCenter.subtracted(ballCenter);\n var oposDir = ballCenter.subtracted(hookBallCenter).normalized();\n oposDir.multiplyBy(hookBallBounds.getWidth() / 2);\n hookBallCenter.add(oposDir);\n direction = hookBallCenter.subtracted(ballCenter);\n getTransform().setPosition(ballCenter);\n getTransform().setRotation(GeometryHelper.vectorToAngle(hookBallCenter.subtracted(ballCenter)));\n getTransform().translate(0, -GameSettings.ROPE_HEIGHT / 2 - 1);\n }",
"public float calculateIdealHeading(double currentHeading, Vector2 target) {\n\t\tdouble delta_x = target.x() - position.x();\r\n\t\tdouble delta_y = target.y() - position.y();\r\n\t\tdouble idealAngle = Math.toDegrees(Math.atan(delta_x / delta_y));\r\n\t\treturn (float)idealAngle;\r\n\t}",
"private void transformPoints() {\r\n\r\n\t\t// angle between x-axis and the line between start and goal\r\n//\t\tthis.angle = inverse_tan (slope)\r\n\t\tthis.angle = (int) Math.toDegrees(Math.atan2(goal.getY()-robot.getY(), goal.getX()-robot.getX()));\r\n\r\n\t\t// deviation of start point's x-axis from (0,0)\r\n\t\tthis.deviation = this.robot;\r\n\r\n\t\tthis.robot = new Robot(GA_PathPlanning.Transform(robot, -deviation.x, -deviation.y));\r\n\t\tthis.robot = new Robot(Rotate(robot, -angle));\r\n\t\t \r\n\t\tthis.goal = GA_PathPlanning.Transform(goal, -deviation.x, -deviation.y);\r\n\t\tthis.goal = GA_PathPlanning.Rotate(goal, -angle);\r\n\t\t\r\n\t\tfor(int i=0;i<obstacles.length;i++)\r\n\t\t{\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Transform(obstacles[i], -deviation.x, -deviation.y));\r\n\t\t\tthis.obstacles[i]= new Obstacle(GA_PathPlanning.Rotate(obstacles[i], -angle));\r\n\t\t}\r\n\t\t// make start point as (0,0)\r\n\t\t// transform xy-axis to axis of the straight line between start and goal\r\n\t\t\r\n\t\t\r\n\t}",
"public double passAlign() {\n \tdouble angle;\n \tif (MasterController.ourSide == TeamSide.LEFT) {\n \t\tangle = angleToX();\n \t} else {\n \t\tangle = angleToNegX();\n \t}\n \tdouble amount = -0.7 * angle;\n\t\tDebug.log(\"Angle: %f, Rotating: %f\", angle, amount);\n\t\trotate(amount); // TODO: Test if works as expected\n\t\treturn amount;\n\t}",
"public void moveOneStep() {\n //We will create a line that checks the movement of the ball.\n Line trajectory = new Line(this.center.getX(), this.center.getY(),\n this.center.getX() + this.velocity.getDx(), this.center.getY() + this.velocity.getDy());\n //We will get information for the closest barrier.\n CollisionInfo info = this.gameEnvironment.getClosestCollision(trajectory);\n //If there is information about an obstacle on the way, we will almost change our direction before reaching\n // the barrier.\n if (info != null) {\n this.center = new Velocity(-0.2 * this.velocity.getDx(),\n -0.2 * this.velocity.getDy()).applyToPoint(this.center);\n this.velocity = info.collisionObject().hit(this, info.collisionPoint(), this.velocity);\n //Otherwise, we will allow it to reach its destination\n } else {\n this.center = this.velocity.applyToPoint(this.center);\n }\n }",
"public void applyStrategy(){\n\t\tfloat dx, dy;\n\t\t\n\t\tdx = targetCar.getX() - myCar.getX();\n\t\tdy = targetCar.getY() - myCar.getY();\n\t\t\n\t\t// awesome, atan2 handles all the hard parts of arctan calculations\n\t\tint angle = (int)Math.toDegrees( Math.atan2(dx, dy) );\n\t\tmyCar.setHeading( angle );\n\t}",
"public static void updatePosition() {\n\t\tfor (int i = 0; i < TitanV4.planets.length; i++) { //compute forces between all celestial corpses\n\t\t\tfor(int j=i; j<TitanV4.planets.length; j++){\n\t\t\t\tif (i != j) {\n\t\t\t\t\tdouble upper = TitanV4.G*TitanV4.planets[i].getMass() * TitanV4.planets[j].getMass();\n\t\t\t\t\tdouble lower = TitanV4.planets[i].getPosition().distanceFrom(TitanV4.planets[j].getPosition());\n\t\t\t\t\tdouble gravitation = upper/lower;\n\t\t\t\t\tVector a = new Vector();\n\t\t\t\t\ta = TitanV4.planets[i].getPosition().substract(TitanV4.planets[j].getPosition()).normalize().multiply(-1);\n\n\t\t\t\t\tTitanV4.planets[i].force.add(a.multiply(gravitation));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//compute acceleration vector for each celestial corpse but the sun\n\t\tfor(int i=1; i<TitanV4.planets.length; i++){\n\t\t\tTitanV4.planets[i].acceleration = (TitanV4.planets[i].force.divide(TitanV4.planets[i].getMass()));\n\t\t}\n\n\t\t//calculate change in speed over deltaT\n\t\tfor(int i=1; i<TitanV4.planets.length; i++){\n\t\t\tVector oldVelocity = new Vector(TitanV4.planets[i].velocity);\n\t\t\tTitanV4.planets[i].velocity.add((TitanV4.planets[i].acceleration.multiply(TitanV4.deltaT)));\n\n\t\t\tVector posChange = new Vector();\n\t\t\tposChange = (oldVelocity.add(velocity).divide(2)).multiply(TitanV4.deltaT);\n\t\t\tTitanV4.planets[i].pos.add(posChange);\n\t\t}\n\t}",
"double compute_lift_pos () {\n return AC_OFFSET_K * this.chord + \n (convert_moments_to_AC_offset ? -1*this.moment/this.lift : 0);\n }",
"@Override\n public void calculateCorrection(Time currentTime, Coordinates approximatedPose, SatellitePosition satelliteCoordinates, NavigationIono navigationIono) {\n approximatedPose.computeGeodetic();\n\n // Get the user's height\n double height = approximatedPose.getGeodeticHeight();\n\n // Compute the elevation and azimuth angles for each satellite\n TopocentricCoordinates topo = new TopocentricCoordinates();\n topo.computeTopocentric(approximatedPose, satelliteCoordinates);\n\n // Assign the elevation information to a new variable\n double elevation = topo.getElevation();\n\n double tropoCorr = 0;\n\n if (height > 5000)\n return;\n\n elevation = Math.toRadians(Math.abs(elevation));\n if (elevation == 0){\n elevation = elevation + 0.01;\n }\n\n // Numerical constants and tables for Saastamoinen algorithm\n // (troposphere correction)\n final double hr = 50.0;\n final int[] ha = {0, 500, 1000, 1500, 2000, 2500, 3000, 4000, 5000 };\n final double[] ba = { 1.156, 1.079, 1.006, 0.938, 0.874, 0.813, 0.757, 0.654, 0.563 };\n\n // Saastamoinen algorithm\n double P = Constants.STANDARD_PRESSURE * Math.pow((1 - 0.0000226 * height), 5.225);\n double T = Constants.STANDARD_TEMPERATURE - 0.0065 * height;\n double H = hr * Math.exp(-0.0006396 * height);\n\n // If height is below zero, keep the maximum correction value\n double B = ba[0];\n // Otherwise, interpolate the tables\n if (height >= 0) {\n int i = 1;\n while (height > ha[i]) {\n i++;\n }\n double m = (ba[i] - ba[i - 1]) / (ha[i] - ha[i - 1]);\n B = ba[i - 1] + m * (height - ha[i - 1]);\n }\n\n double e = 0.01\n * H\n * Math.exp(-37.2465 + 0.213166 * T - 0.000256908\n * Math.pow(T, 2));\n\n tropoCorr = ((0.002277 / Math.sin(elevation))\n * (P - (B / Math.pow(Math.tan(elevation), 2))) + (0.002277 / Math.sin(elevation))\n * (1255 / T + 0.05) * e);\n\n correctionValue = tropoCorr;\n\n }",
"double motor_y () { return strut.span + DRIVING_FORCE_HEIGHT; }",
"private static double getRotation(Position previous, Position current, Position next) {\n \t\tboolean prevAbove = false;\n \t\tboolean prevUnder = false;\n \t\tboolean prevLeft = false;\n \t\tboolean prevRight = false;\n \t\t\n \t\tboolean nextRight = false;\n \t\tboolean nextUnder = false;\n \t\tboolean nextLeft = false;\n \t\tboolean nextAbove = false;\n \t\t\n \t\t/*\n \t\t * Only calculate values if there is a previous\n \t\t * respective next position in.\n \t\t */\n \t\tif (previous != null) {\n \t\t\tprevAbove = previous.getRow() < current.getRow();\n \t\t\tprevUnder = previous.getRow() > current.getRow();\n \t\t\tprevLeft = previous.getCol() < current.getCol();\n \t\t\tprevRight = previous.getCol() > current.getCol();\n \t\t}\n \t\tif (next != null) {\n \t\t\tnextRight = next.getCol() > current.getCol();\n \t\t\tnextUnder = next.getRow() > current.getRow();\n \t\t\tnextLeft = next.getCol() < current.getCol();\n \t\t\tnextAbove = next.getRow() < current.getRow();\n \t\t}\n \t\t/*\n \t\t * If previous is null then only determine rotation based on \n \t\t * next position.\n \t\t * >> Path is always of length 2 at least, therefore no point can\n \t\t * have neither previous or next location.\n \t\t */\n \t\tif (previous == null) {\n \t\t\tif (nextAbove) {\n \t\t\t\treturn 3*Math.PI/2;\n \t\t\t} else if (nextUnder) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (nextLeft) {\n \t\t\t\treturn Math.PI;\n \t\t\t} else if (nextRight) {\n \t\t\t\treturn 0;\n \t\t\t}\n \t\t}\n \t\t/*\n \t\t * If next is null then only determine rotation based on \n \t\t * previous position.\n \t\t */\n \t\tif (next == null) {\n \t\t\tif (prevAbove) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (prevUnder) {\n \t\t\t\treturn 3*Math.PI/2;\n \t\t\t} else if (prevLeft) {\n \t\t\t\treturn 0;\n \t\t\t} else if (prevRight) {\n \t\t\t\treturn Math.PI;\n \t\t\t}\n \t\t}\n \t\t/*\n \t\t * Return rotation based on where the previous and next locations are.\n \t\t */\n \t\tif (prevAbove) {\n \t\t\tif (nextUnder) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (nextLeft) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (nextRight) {\n \t\t\t\treturn Math.PI;\n \t\t\t}\n \t\t} else if (nextAbove) {\n \t\t\tif (prevUnder) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (prevLeft) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (prevRight) {\n \t\t\t\treturn Math.PI;\n \t\t\t}\n \t\t} else if (prevUnder) {\n \t\t\tif (nextAbove) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (nextLeft) {\n \t\t\t\treturn 0;\n \t\t\t} else if (nextRight) {\n \t\t\t\treturn 3*Math.PI/2;\n \t\t\t}\n \t\t} else if (nextUnder) {\n \t\t\tif (prevAbove) {\n \t\t\t\treturn Math.PI/2;\n \t\t\t} else if (prevLeft) {\n \t\t\t\treturn 0;\n \t\t\t} else if (prevRight) {\n \t\t\t\treturn 3*Math.PI/2;\n \t\t\t}\n \t\t}\n \t\t/*\n \t\t * Return 0 to make the compiler happy, will never run\n \t\t * unless previous == current || current == next which\n \t\t * is wrong usage.\n \t\t */\n \t\treturn 0;\n \t}",
"protected void updateMotionDriveArc(CommandHelper cmdHelp, PlanState planState) {\r\n ParameterList params = cmdHelp.getParameters();\r\n float distance = params.getFloat(MOTION_METHOD_DRIVEARC_PARAM_DISTANCE.VALUE);\r\n float headingChange = params.getFloat(MOTION_METHOD_DRIVEARC_PARAM_HEADINGCHANGE.VALUE);\r\n float crabDirection = params.getFloat(MOTION_METHOD_DRIVEARC_PARAM_CRABDIRECTION.VALUE);\r\n if(headingChange == 0 && crabDirection == 0) {\r\n Vector3 wpXyz = new Vector3();\r\n Vector3 drive = new Vector3(distance, 0, 0);\r\n Transform xfm = planState.getTransform(new Transform());\r\n xfm.applyForward(drive, wpXyz);\r\n\r\n //-- get z from terrain\r\n ReadOnlyTransform siteToWorld = planState.getSiteToWorldTransform();\r\n siteToWorld.applyForward(wpXyz, t_world);\r\n VerveBaseMap.setZFromMap(t_world, 0);\r\n siteToWorld.applyInverse(t_world, wpXyz);\r\n\r\n setIsDirectional(false);\r\n setTolerance(0.2f);\r\n\r\n planState.setXyz(wpXyz);\r\n }\r\n else {\r\n logger.warn(\"FIXME: updateMotionDriveArc only supports straight line drives\");\r\n }\r\n }",
"private void updateTranslationfromCenterAnchor(Pose pose, int teapotId) {\n float poseX = pose.tx();\n float poseZ = pose.tz();\n\n float anchorPoseX = globalCenterPose.tx();\n float anchorPoseZ = globalCenterPose.tz();\n\n float[] translate = new float[3];\n\n if (poseX > anchorPoseX) {\n translate[0] = poseX - anchorPoseX;\n } else {\n translate[0] = -(anchorPoseX - poseX);\n }\n\n if (poseZ > anchorPoseZ) {\n translate[2] = poseZ - anchorPoseZ;\n } else {\n translate[2] = -(anchorPoseZ - poseZ);\n }\n\n teapotTranslations[teapotId] = translate;\n }",
"public void move(long deltaTime) {\n\n Point currentTile = getOccupyingTile(position);\n\n /*\n if (!Simulator.getInstance().getTileMap().isInsideMap(currentTile))\n return;\n\n if (Simulator.getInstance().getTileMap().isAWall(currentTile) || Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(currentTile))\n return;\n*/\n\n if (Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(currentTile))\n return;\n\n setTargetVector(Simulator.getInstance().getDestination().getDistanceMap().getTiles()[currentTile.y][currentTile.x].getVector());\n\n\n if (!Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(currentTile) && Simulator.getInstance().getDestination().getDistanceMap().getTiles()[currentTile.y][currentTile.x].getVector().equals(new Point2D.Double(0.0, 0.0))) {\n setTargetVector(Simulator.getInstance().getDestination().getDistanceMap().getTiles()[currentTile.y][currentTile.x].getVector());\n double angle = 0;\n while ((angle >= 60 && angle <= 120) || (angle >= 150 && angle <= 210) || (angle >= 240 && angle <= 300) || (angle >= 330) || (angle <= 30)) {\n\n angle = Math.random() * 360;\n }\n setVector(new Point2D.Double(Math.cos(Math.toRadians(angle)) / 1.5, Math.sin(Math.toRadians(angle)) / 1.5));\n } else {\n setTargetVector(Simulator.getInstance().getDestination().getDistanceMap().getTiles()[currentTile.y][currentTile.x].getVector());\n }\n\n\n Point2D vectorDiff = new Point2D.Double(vector.getX() - targetVector.getX(), vector.getY() - targetVector.getY());\n\n if (vectorDiff.getX() < 0)\n vector.setLocation(vector.getX() + 0.001 * velocity * deltaTime, vector.getY());\n else if (vectorDiff.getX() > 0)\n vector.setLocation(vector.getX() - 0.001 * velocity * deltaTime, vector.getY());\n\n if (vectorDiff.getY() < 0)\n vector.setLocation(vector.getX(), vector.getY() + 0.001 * velocity * deltaTime);\n else if (vectorDiff.getY() > 0)\n vector.setLocation(vector.getX(), vector.getY() - 0.001 * velocity * deltaTime);\n\n\n Point2D newPosition = new Point2D.Double(\n position.getX() + (velocity * deltaTime) * vector.getX(), position.getY() + (velocity * deltaTime) * vector.getY());\n\n\n Point targetTile = getOccupyingTile(newPosition);\n\n\n Point direction = getDirection(currentTile, targetTile);\n\n\n if (!Simulator.getInstance().getTileMap().isInsideMap(targetTile) || Simulator.getInstance().getTileMap().isAWall(targetTile)\n || Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(targetTile)) {// || Simulator.getInstance().getDestination().getDistanceMap().getTiles()[targetTile.y][targetTile.x].getVector() == new Point2D.Double(0, 0)) {\n\n if (Simulator.getInstance().isUsingBounceCollision()) {\n if (direction.x > 0 || direction.x < 0)\n vector.setLocation(vector.getX() * -0.5, vector.getY());\n if (direction.y > 0 || direction.y < 0)\n vector.setLocation(vector.getX(), vector.getY() * -0.5);\n\n newPosition = new Point2D.Double(\n position.getX() + (velocity * deltaTime) * vector.getX(), position.getY() + (velocity * deltaTime) * vector.getY());\n\n\n targetTile = getOccupyingTile(newPosition);\n\n //Secondary check to make sure the bounce doesn't make it go out of bounds\n if (!Simulator.getInstance().getTileMap().isInsideMap(targetTile) || Simulator.getInstance().getTileMap().isAWall(targetTile)\n || Simulator.getInstance().getDestination().getDistanceMap().isNotInitialized(targetTile)) { //|| Simulator.getInstance().getDestination().getDistanceMap().getTiles()[targetTile.y][targetTile.x].getVector() == new Point2D.Double(0, 0)) {\n vector.setLocation(0, 0);\n } else {\n setPosition(newPosition);\n }\n\n\n } else {\n vector.setLocation(0, 0);\n }\n\n } else {\n setPosition(newPosition);\n }\n\n }",
"public void drive(double xSpeed, double ySpeed, double rot, boolean fieldRelative, boolean rateLimit) {\n \n double xSpeedCommanded;\n double ySpeedCommanded;\n\n if (rateLimit) {\n // Convert XY to polar for rate limiting\n double inputTranslationDir = Math.atan2(ySpeed, xSpeed);\n double inputTranslationMag = Math.sqrt(Math.pow(xSpeed, 2) + Math.pow(ySpeed, 2));\n\n // Calculate the direction slew rate based on an estimate of the lateral acceleration\n double directionSlewRate;\n if (m_currentTranslationMag != 0.0) {\n directionSlewRate = Math.abs(DriveConstants.kDirectionSlewRate / m_currentTranslationMag);\n } else {\n directionSlewRate = 500.0; //some high number that means the slew rate is effectively instantaneous\n }\n \n\n double currentTime = WPIUtilJNI.now() * 1e-6;\n double elapsedTime = currentTime - m_prevTime;\n double angleDif = SwerveUtils.AngleDifference(inputTranslationDir, m_currentTranslationDir);\n if (angleDif < 0.45*Math.PI) {\n m_currentTranslationDir = SwerveUtils.StepTowardsCircular(m_currentTranslationDir, inputTranslationDir, directionSlewRate * elapsedTime);\n m_currentTranslationMag = m_magLimiter.calculate(inputTranslationMag);\n }\n else if (angleDif > 0.85*Math.PI) {\n if (m_currentTranslationMag > 1e-4) { //some small number to avoid floating-point errors with equality checking\n // keep currentTranslationDir unchanged\n m_currentTranslationMag = m_magLimiter.calculate(0.0);\n }\n else {\n m_currentTranslationDir = SwerveUtils.WrapAngle(m_currentTranslationDir + Math.PI);\n m_currentTranslationMag = m_magLimiter.calculate(inputTranslationMag);\n }\n }\n else {\n m_currentTranslationDir = SwerveUtils.StepTowardsCircular(m_currentTranslationDir, inputTranslationDir, directionSlewRate * elapsedTime);\n m_currentTranslationMag = m_magLimiter.calculate(0.0);\n }\n m_prevTime = currentTime;\n \n xSpeedCommanded = m_currentTranslationMag * Math.cos(m_currentTranslationDir);\n ySpeedCommanded = m_currentTranslationMag * Math.sin(m_currentTranslationDir);\n m_currentRotation = m_rotLimiter.calculate(rot);\n\n\n } else {\n xSpeedCommanded = xSpeed;\n ySpeedCommanded = ySpeed;\n m_currentRotation = rot;\n }\n\n // Convert the commanded speeds into the correct units for the drivetrain\n double xSpeedDelivered = xSpeedCommanded * DriveConstants.kMaxSpeedMetersPerSecond;\n double ySpeedDelivered = ySpeedCommanded * DriveConstants.kMaxSpeedMetersPerSecond;\n double rotDelivered = m_currentRotation * DriveConstants.kMaxAngularSpeed;\n\n var swerveModuleStates = DriveConstants.kDriveKinematics.toSwerveModuleStates(\n fieldRelative\n ? ChassisSpeeds.fromFieldRelativeSpeeds(xSpeedDelivered, ySpeedDelivered, rotDelivered, Rotation2d.fromDegrees(m_gyro.getAngle()))\n : new ChassisSpeeds(xSpeedDelivered, ySpeedDelivered, rotDelivered));\n SwerveDriveKinematics.desaturateWheelSpeeds(\n swerveModuleStates, DriveConstants.kMaxSpeedMetersPerSecond);\n m_frontLeft.setDesiredState(swerveModuleStates[0]);\n m_frontRight.setDesiredState(swerveModuleStates[1]);\n m_rearLeft.setDesiredState(swerveModuleStates[2]);\n m_rearRight.setDesiredState(swerveModuleStates[3]);\n }",
"public static final void control(float args_cmd_forward, float args_cmd_turn,\r\n\t\t\tfloat args_gyro, float args_gyro_offset, float args_theta_m_l,\r\n\t\t\tfloat args_theta_m_r, float args_battery) {\r\n\t\tfloat tmp_theta;\r\n\t\tfloat tmp_theta_lpf;\r\n\t\tfloat tmp_pwm_r_limiter;\r\n\t\tfloat tmp_psidot;\r\n\t\tfloat tmp_pwm_turn;\r\n\t\tfloat tmp_pwm_l_limiter;\r\n\t\tfloat tmp_thetadot_cmd_lpf;\r\n\t\tint tmp_0;\r\n\r\n\t\t/*\r\n\t\t * Sum: '<S8>/Sum' incorporates: Constant: '<S3>/Constant6' Constant:\r\n\t\t * '<S8>/Constant' Constant: '<S8>/Constant1' Gain: '<S3>/Gain1' Gain:\r\n\t\t * '<S8>/Gain2' Inport: '<Root>/cmd_forward' Product: '<S3>/Divide'\r\n\t\t * Product: '<S8>/Product' Sum: '<S8>/Sum1' UnitDelay: '<S8>/Unit Delay'\r\n\t\t */\r\n\t\ttmp_thetadot_cmd_lpf = (((args_cmd_forward / CMD_MAX) * K_THETADOT) * (1.0F - A_R))\r\n\t\t\t\t+ (A_R * ud_thetadot_cmd_lpf);\r\n\r\n\t\t/*\r\n\t\t * Gain: '<S4>/Gain' incorporates: Gain: '<S4>/deg2rad' Gain:\r\n\t\t * '<S4>/deg2rad1' Inport: '<Root>/theta_m_l' Inport: '<Root>/theta_m_r'\r\n\t\t * Sum: '<S4>/Sum1' Sum: '<S4>/Sum4' Sum: '<S4>/Sum6' UnitDelay:\r\n\t\t * '<S10>/Unit Delay'\r\n\t\t */\r\n\t\ttmp_theta = (((DEG2RAD * args_theta_m_l) + ud_psi) + ((DEG2RAD * args_theta_m_r) + ud_psi)) * 0.5F;\r\n\r\n\t\t/*\r\n\t\t * Sum: '<S11>/Sum' incorporates: Constant: '<S11>/Constant' Constant:\r\n\t\t * '<S11>/Constant1' Gain: '<S11>/Gain2' Product: '<S11>/Product' Sum:\r\n\t\t * '<S11>/Sum1' UnitDelay: '<S11>/Unit Delay'\r\n\t\t */\r\n\t\ttmp_theta_lpf = ((1.0F - A_D) * tmp_theta) + (A_D * ud_theta_lpf);\r\n\r\n\t\t/*\r\n\t\t * Gain: '<S4>/deg2rad2' incorporates: Inport: '<Root>/gyro'\r\n\t\t * Sum: '<S4>/Sum2'\r\n\t\t */\r\n\t\ttmp_psidot = (args_gyro - args_gyro_offset) * DEG2RAD;\r\n\r\n\t\t/*\r\n\t\t * Gain: '<S2>/Gain' incorporates: Constant: '<S3>/Constant2' Constant:\r\n\t\t * '<S3>/Constant3' Constant: '<S6>/Constant' Constant: '<S9>/Constant'\r\n\t\t * Gain: '<S1>/FeedbackGain' Gain: '<S1>/IntegralGain' Gain:\r\n\t\t * '<S6>/Gain3' Inport: '<Root>/battery' Product: '<S2>/Product'\r\n\t\t * Product: '<S9>/Product' Sum: '<S1>/Sum2' Sum: '<S1>/sum_err' Sum:\r\n\t\t * '<S6>/Sum2' Sum: '<S9>/Sum' UnitDelay: '<S10>/Unit Delay' UnitDelay:\r\n\t\t * '<S11>/Unit Delay' UnitDelay: '<S5>/Unit Delay' UnitDelay: '<S7>/Unit\r\n\t\t * Delay'\r\n\t\t */\r\n\t\ttmp[0] = ud_theta_ref;\r\n\t\ttmp[1] = 0.0F;\r\n\t\ttmp[2] = tmp_thetadot_cmd_lpf;\r\n\t\ttmp[3] = 0.0F;\r\n\t\ttmp_theta_0[0] = tmp_theta;\r\n\t\ttmp_theta_0[1] = ud_psi;\r\n\t\ttmp_theta_0[2] = (tmp_theta_lpf - ud_theta_lpf) / EXEC_PERIOD;\r\n\t\ttmp_theta_0[3] = tmp_psidot;\r\n\t\ttmp_pwm_r_limiter = 0.0F;\r\n\t\tfor (tmp_0 = 0; tmp_0 < 4; tmp_0++) {\r\n\t\t\ttmp_pwm_r_limiter += (tmp[tmp_0] - tmp_theta_0[tmp_0])\r\n\t\t\t\t\t* K_F[(tmp_0)];\r\n\t\t}\r\n\r\n\t\ttmp_pwm_r_limiter = (((K_I * ud_err_theta) + tmp_pwm_r_limiter) / ((BATTERY_GAIN * args_battery) - BATTERY_OFFSET)) * 100.0F;\r\n\r\n\t\t/*\r\n\t\t * Gain: '<S3>/Gain2' incorporates: Constant: '<S3>/Constant1' Inport:\r\n\t\t * '<Root>/cmd_turn' Product: '<S3>/Divide1'\r\n\t\t */\r\n\t\ttmp_pwm_turn = (args_cmd_turn / CMD_MAX) * K_PHIDOT;\r\n\r\n\t\t/* Sum: '<S2>/Sum' */\r\n\t\ttmp_pwm_l_limiter = tmp_pwm_r_limiter + tmp_pwm_turn;\r\n\r\n\t\t/* Saturate: '<S2>/pwm_l_limiter' */\r\n\t\ttmp_pwm_l_limiter = rt_SATURATE(tmp_pwm_l_limiter, -100.0F, 100.0F);\r\n\r\n\t\t/*\r\n\t\t * Outport: '<Root>/pwm_l' incorporates: DataTypeConversion: '<S1>/Data\r\n\t\t * Type Conversion'\r\n\t\t */\r\n\t\tpwm_l = (int) tmp_pwm_l_limiter;\r\n\r\n\t\t/* Sum: '<S2>/Sum1' */\r\n\t\ttmp_pwm_r_limiter -= tmp_pwm_turn;\r\n\r\n\t\t/* Saturate: '<S2>/pwm_r_limiter' */\r\n\t\ttmp_pwm_r_limiter = rt_SATURATE(tmp_pwm_r_limiter, -100.0F, 100.0F);\r\n\r\n\t\t/*\r\n\t\t * Outport: '<Root>/pwm_r' incorporates: DataTypeConversion: '<S1>/Data\r\n\t\t * Type Conversion6'\r\n\t\t */\r\n\t\tpwm_r = (int) tmp_pwm_r_limiter;\r\n\r\n\t\t/*\r\n\t\t * Sum: '<S7>/Sum' incorporates: Gain: '<S7>/Gain' UnitDelay: '<S7>/Unit\r\n\t\t * Delay'\r\n\t\t */\r\n\t\ttmp_pwm_l_limiter = (EXEC_PERIOD * tmp_thetadot_cmd_lpf) + ud_theta_ref;\r\n\r\n\t\t/*\r\n\t\t * Sum: '<S10>/Sum' incorporates: Gain: '<S10>/Gain' UnitDelay:\r\n\t\t * '<S10>/Unit Delay'\r\n\t\t */\r\n\t\ttmp_pwm_turn = (EXEC_PERIOD * tmp_psidot) + ud_psi;\r\n\r\n\t\t/*\r\n\t\t * Sum: '<S5>/Sum' incorporates: Gain: '<S5>/Gain' Sum: '<S1>/Sum1'\r\n\t\t * UnitDelay: '<S5>/Unit Delay' UnitDelay: '<S7>/Unit Delay'\r\n\t\t */\r\n\t\ttmp_pwm_r_limiter = ((ud_theta_ref - tmp_theta) * EXEC_PERIOD)\r\n\t\t\t\t+ ud_err_theta;\r\n\r\n\t\t/* user code (Update function Body) */\r\n\t\t/* System '<Root>' */\r\n\t\t/* 次回演算用状態量保存処理 */\r\n\r\n\t\t/* Update for UnitDelay: '<S5>/Unit Delay' */\r\n\t\tud_err_theta = tmp_pwm_r_limiter;\r\n\r\n\t\t/* Update for UnitDelay: '<S7>/Unit Delay' */\r\n\t\tud_theta_ref = tmp_pwm_l_limiter;\r\n\r\n\t\t/* Update for UnitDelay: '<S8>/Unit Delay' */\r\n\t\tud_thetadot_cmd_lpf = tmp_thetadot_cmd_lpf;\r\n\r\n\t\t/* Update for UnitDelay: '<S10>/Unit Delay' */\r\n\t\tud_psi = tmp_pwm_turn;\r\n\r\n\t\t/* Update for UnitDelay: '<S11>/Unit Delay' */\r\n\t\tud_theta_lpf = tmp_theta_lpf;\r\n\t}",
"double getHorVel(double initial_hor_vel)\n {\n ux = initial_hor_vel;\n vx = ux;\n return vx;\n }",
"protected void calculateProgressDegrees() {\r\n\t\tmProgressDegrees = mPointerPosition - mStartAngle; // Verified\r\n\t\tmProgressDegrees = (mProgressDegrees < 0 ? 360f + mProgressDegrees : mProgressDegrees); // Verified\r\n\t}",
"public void apply() {\n double currentHeading = self.getHeading();\n IGameIterator iter = target.getCollection().getIterator();\n Pylon nextPylon = null;\n while (iter.hasNext()) {\n iter.getNext();\n if (iter.get() instanceof Pylon) {\n if (((Pylon) iter.get()).getNum() == self.getLatestPylon() + 1) { //if it is the next pylon\n nextPylon = (Pylon) iter.get();\n }\n }\n }\n if (nextPylon == null) { //if there are no more pylons\n self.changeSpeed(0 - ((int) self.getMaxSpeed())); //stop at the finish line\n return;\n }\n\n double deltaX = nextPylon.getPosition().getX() - self.getPosition().getX();\n double deltaY = nextPylon.getPosition().getY() - self.getPosition().getY();\n newHeading = Math.toDegrees(Math.atan2(deltaY, deltaX));\n double rightTurn;\n double leftTurn;\n\n rightTurn = (newHeading - currentHeading);\n if (rightTurn < 0)\n rightTurn += 360;\n leftTurn = 360 - rightTurn;\n\n if (leftTurn <= rightTurn) {\n //turn left\n self.steer(-15);\n } else {\n // turn right\n self.steer(15);\n }\n //self.steer((int) (newHeading - currentHeading));\n currentHeading = self.getHeading();\n\n //move at max speed towards it\n self.changeSpeed((int) self.getMaxSpeed());\n }",
"@Override\n public void update(float deltaTime) {\n \tif (isMoving && (!getCurrentMainCellCoordinates().equals(targetMainCellCoordinates))) {\n \t\tVector distance = getOrientation().toVector();\n \t\tdistance = (distance.mul(1.0f / framesForCurrentMove));\n \t\tsetCurrentPosition(getPosition().add(distance));\n \t} else {\n \t\tresetMotion();\n \t}\n }",
"protected void execute() {\n \n \t\n \t \n \t\n \n System.out.println((Timer.getFPGATimestamp()- starttime ) + \",\" + (RobotMap.motorLeftTwo.getEncPosition()) + \",\"\n + (RobotMap.motorLeftTwo.getEncVelocity()*600)/-4096 + \",\" + RobotMap.motorRightTwo.getEncPosition() + \",\" + (RobotMap.motorRightTwo.getEncVelocity()*600)/4096);\n \n /*if(endpoint > 0){\n cruiseVelocityLeft = (float) (this.initCruiseVelocityLeft+ angleorientation.getResult());\n cruiseVelocityRight = (float) (this.initCruiseVelocityRight - angleorientation.getResult());\n }\n if(endpoint <= 0){\n cruiseVelocityLeft = (float) (this.initCruiseVelocityLeft- angleorientation.getResult());\n cruiseVelocityRight = (float) (this.initCruiseVelocityRight + angleorientation.getResult());\n }*/\n System.out.println(this.motionMagicEndPoint*4096 + RobotMap.motorLeftTwo.getEncPosition() + \"l\");\n System.out.println(this.motionMagicEndPoint*4096 - RobotMap.motorRightTwo.getEncPosition() + \"r\");\n \n \n \t if(RobotMap.motorLeftTwo.getEncVelocity()!= velocityLeft)\n velocityLeft = RobotMap.motorLeftTwo.getEncVelocity(); \n velocityRight = RobotMap.motorRightTwo.getEncVelocity();\n SmartDashboard.putNumber(\"LeftWheelError\", (this.motionMagicEndPoint*4096 + RobotMap.motorLeftTwo.getEncPosition()));\n SmartDashboard.putNumber(\"RightWheelError\",(this.motionMagicEndPoint*4096 - RobotMap.motorRightTwo.getEncPosition()));\n SmartDashboard.putNumber(\"LeftWheelVelocity\", (RobotMap.motorLeftTwo.getEncVelocity())*600/4096);\n SmartDashboard.putNumber(\"RightWheelVelocity\",(RobotMap.motorRightTwo.getEncVelocity()*600)/4096);\n \n \n count++;\n \tangleorientation.updatePID(RobotMap.navx.getAngle());\n }",
"private void calculateTurn () {\n // Do we need a turn? If not, we're done.\n if (dirOne.opposite() == dirTwo) return;\n /*\n * We need a turn. The coordinates of the turn point will be the x\n * coordinate of the north/south leg and the y coordinate of the\n * east/west leg.\n */\n if (dirOne == Direction.north || dirOne == Direction.south) {\n xTurn = xOne;\n yTurn = yTwo;\n } else {\n xTurn = xTwo;\n yTurn = yOne;\n }\n }",
"public float[] calibrate(Base mBase, Sensor mSensor) {\n final double metersPerLatitude;\n final double metersPerLongitude;\n\n\n\n //Fetching the cisco position for the robot, which returns\n float ciscoLong = (float) 8.57617285865058;\n float ciscoLat = (float) 58.33447638466072;\n\n\n metersPerLongitude = distanceCalculator.calculateDistance(ciscoLong, ciscoLat, ciscoLong + 1.0, ciscoLat);\n\n metersPerLatitude= distanceCalculator.calculateDistance(ciscoLong, ciscoLat, ciscoLong, ciscoLat + 1.0);\n\n\n float originCiscoPositionx = ciscoLong * (float) metersPerLongitude;\n float originCiscoPositiony = ciscoLat * (float) metersPerLatitude;\n\n\n //Driving 1 meter forward test\n //mBase.addCheckPoint(1, 0);\n\n\n //GetCiscoPosition()\n //These are the actual coordinates of x2 and y2 in latitude and longitude.\n\n\n\n //If Loomo was already headed east, we would expect these coordinates in meters:\n float expectedCiscoPositionx2 = (originCiscoPositionx + 1);\n\n float newCiscoPointlon = (float) 8.57617413279317;\n float newCiscoPointlat = (float) 58.334468102336245;\n\n\n float actualCiscoPositionx2 = newCiscoPointlon * (float) metersPerLongitude;\n float actualCiscoPositiony2 = newCiscoPointlat * (float) metersPerLatitude;\n\n\n\n //Defining 3 vectors that make up a triangle abc\n double[] aVector = {expectedCiscoPositionx2 - originCiscoPositionx, originCiscoPositiony - originCiscoPositiony};\n double[] bVector = {actualCiscoPositionx2 - originCiscoPositionx, actualCiscoPositiony2 - originCiscoPositiony};\n double[] cVector = {expectedCiscoPositionx2 - actualCiscoPositionx2, originCiscoPositiony - actualCiscoPositiony2};\n\n\n\n //Calculating the length of each vector / side of the triangle with the pythagorean therm.\n double aVectorLengthSquared = Math.pow(aVector[0], 2.0) + Math.pow(aVector[1], 2.0);\n double bVectorLengthSquared = Math.pow(bVector[0], 2.0) + Math.pow(bVector[1], 2.0);\n double cVectorLengthSquared = Math.pow(cVector[0], 2.0) + Math.pow(cVector[1], 2.0);\n\n System.out.println(\"Length a = \" + sqrt(aVectorLengthSquared));\n System.out.println(\"Length b = \" + sqrt(bVectorLengthSquared));\n System.out.println(\"Length c = \" + sqrt(cVectorLengthSquared));\n System.out.println(\" \");\n\n //Calculating the angle between the vector from the expected points and the vector from the\n // real points using the cosine law. This gives us an angle ∈ [0,PI].\n float angle = (float) acos((aVectorLengthSquared + bVectorLengthSquared - cVectorLengthSquared)\n / (2 * sqrt(aVectorLengthSquared) * sqrt(bVectorLengthSquared)));\n\n\n\n //If the y-element of the b-vector is negative, that means loomo has been driving\n // southwards. This means, if we are to rotate the coordinates to fit loomo,\n // they will need to be rotated in the positive direction, or against the clock. -> angle = angle\n // If the y-element is positive, then loomo has been driving north, and the coordinates will\n // need to be rotated with the clock. Then \"angle\" will be the negative value\n // found with the cosine law.\n\n if (bVector[1] < 0) {\n angle = angle;\n } else if (bVector[1] > 0) {\n angle = -angle;\n }\n\n System.out.println(\"The angle between the reference systems are: \" + angle + \", which equals \" + angle / PI + \"*PI\\n\" );\n\n mBase.cleanOriginalPoint();\n\n //Setting Fetching the original point where Loomo stands.\n mBase.cleanOriginalPoint();\n Pose2D pose2D = mBase.getOdometryPose(-1);\n mBase.setOriginalPoint(pose2D);\n\n //Driving North: \t58.334512491588754, 8.576253530218082 to 58.33452608839093, 8.576253888068521\n //Driving East: 58.33452608839093, 8.576253888068521 to 58.33452618178464, 8.576285073219395\n //Driving West: 58.33452618178464, 8.576285073219395 to 58.33452693486112, 8.576258173706947\n //Driving South: 58.33452693486112, 8.576258173706947 to 58.33451544969185, 8.576258890746544\n\n float[] calibInfo = {angle, (float) metersPerLongitude, (float) metersPerLatitude};\n return calibInfo;\n }",
"private int DirectionCalculation(int angle)\r\n\t{\t\r\n\t\treturn (int) ((angle/14.28)+1); //Angle divided by (100/(parts-1)) = 1-8\r\n\t}",
"private double calculateDeltaPhi(double r, double phi)\n\t{\n\t\t// The logarithmic spiral that describes the centre of the cylindrical lens is of the form r = a exp(b Phi), where Phi is an *unwrapped* azimuthal angle\n\t\t// that can take on values from -infinity to +infinity.\n\t\t// We can calculate the value of Phi for which the centre of the cylindrical lens is at distance from the centre r by solving the equation for the\n\t\t// logarithmic spiral,\n\t\t// r = a exp(b Phi),\n\t\t// for Phi, which gives\n\t\t// Phi = ln(r/a)/b.\n\t\tdouble Phi = Math.log(r/a)/b;\n\t\t\n\t\t// Phi lies between two values of Delta phi, namely between floor(Phi/(2 pi))*(2 pi) and floor(Phi/(2 pi) + 1)*(2 pi)\n\t\tdouble floorPhi = Math.floor(Phi/(2*Math.PI))*2*Math.PI;\n\t\t\n\t\t// find the correct one, which is the one for which the point with polar coordinates (r, phi) is closest to the logarithmic spiral.\n\t\t// phi is the azimuthal angle, somehow restricted (depending on how it is calculated, usually by Math.atan2, which restricts it to -pi to pi).\n\n\t\t// double modPhi = phi - Math.floor(phi/(2*Math.PI))*2*Math.PI;\n\t\t// System.out.println(\"phi=\"+phi+\", modPhi=\"+modPhi);\n\t\t\n\t\treturn \n\t\t\t(MyMath.square(r-calculateSpiralDistanceFromCentre(phi+floorPhi)) < MyMath.square(r-calculateSpiralDistanceFromCentre(phi+floorPhi + 2*Math.PI)))\n\t\t\t?floorPhi\n\t\t\t:floorPhi+2*Math.PI;\n\t\t// return Math.floor(phiUnwrapped/(2*Math.PI))*2*Math.PI;\n//\t\t\n//\t\tdouble deltaPhi = -30*Math.PI;\n//\t\tdouble rMin = MyMath.square(r-calculateSpiralDistanceFromCentre(phi+deltaPhi));\n//\t\tdo\n//\t\t{\n//\t\t\tdouble rMinNext = MyMath.square(r-calculateSpiralDistanceFromCentre(phi+deltaPhi+2*Math.PI));\n//\t\t\tif(rMinNext > rMin) break;\n//\t\t\trMin = rMinNext;\n//\t\t\tdeltaPhi += 2*Math.PI;\n//\t\t}\n//\t\twhile (deltaPhi < 20*Math.PI);\n//\t\t\n//\t\t// System.out.println(\"PhaseHologramOfLogarithmicCylindricalLensSpiral:calculateSpiralDistanceFromCentre: deltaPhi=\"+deltaPhi+\", phiUnwrapped=\"+phiUnwrapped);\n//\t\treturn deltaPhi;\n\t}",
"void turnTo(double theta){\n\t\tdouble currT = odometer.getTheta();\n\t\tdouble deltaT = theta-currT;\n\t\t//makes sure smallest angle\n\t\tif(deltaT>180){\n\t\t\tdeltaT=deltaT-360;\n\t\t}\n\t\telse if(deltaT <-180){\n\t\t\tdeltaT= deltaT+360;\n\t\t}\n\t\t// set motors here \n\t\tleftMotor.setSpeed(LocalizationLab.ROTATE_SPEED);\n\t\trightMotor.setSpeed(LocalizationLab.ROTATE_SPEED);\n\t\tleftMotor.rotate(convertAngle(LocalizationLab.WHEEL_RADIUS, LocalizationLab.TRACK, deltaT), true);\n\t\trightMotor.rotate(-convertAngle(LocalizationLab.WHEEL_RADIUS, LocalizationLab.TRACK, deltaT), false);\n\n\t}",
"public void localize() {\n //Turn robot to 45 degrees\n leftMotor.setSpeed(ROTATE_SPEED);\n rightMotor.setSpeed(ROTATE_SPEED);\n initialRedValue = leftRedVal;\n Navigation.turnTo(45);\n \n //Proceed forward until the color sensors detect lines\n while(Math.abs(leftRedVal - initialRedValue) < rgbThres || Math.abs(rightRedVal - initialRedValue) < rgbThres) {\n leftMotor.forward();\n rightMotor.forward();\n }\n leftMotor.stop(true);\n rightMotor.stop(false);\n \n //Make the robot turn left until the left sensor finds it\n \n //make the robot turn right until the right sensor finds it\n \n //do calculations\n \n //turn robot back to facing north\n }",
"public interface MovementParameters {\n\n\t/**\n\t * Value to make the robot steer right on its center\n\t */\n\tstatic final int STEER_RIGHT = -200;\n\t/**\n\t * Value to make the robot steer left on its center\n\t */\n\tstatic final int STEER_LEFT = 200;\n\t/**\n\t * Angular speed of the robot for rotations in degrees / sec\n\t */\n\tstatic final double ANGULAR_SPEED = 5;\n\t/**\n\t * Speed for a single motor\n\t */\n\tstatic final double MOTOR_SPEED = 20;\n\t\n\t/**\n\t * Linear speed of the robot in cm / s\n\t */\n\tstatic final double LINEAR_SPEED = 40;\n\t/**\n\t * Linear acceleration of the robot in cm / s^2\n\t */\n\tstatic final double LINEAR_ACCELERATION = 2;\n\t/**\n\t * Tolerance set to the heading in degrees\n\t */\n\tstatic final float HEADING_TOLERANCE = 1f;\n\t/**\n\t * Minimum distance the robot can reach when is approaching an object\n\t */\n\tstatic final int MIN_DISTANCE = 40;\n}",
"private synchronized void updatePathFollower() {\n TrajectoryStatus leftUpdate = pathFollower\n .getLeftVelocity(leftDrive.getPosition(), leftDrive.getSpeed(), -navX.getYaw());\n TrajectoryStatus rightUpdate = pathFollower\n .getRightVelocity(rightDrive.getPosition(), rightDrive.getSpeed(), -navX.getYaw());\n leftStatus = leftUpdate;\n rightStatus = rightUpdate;\n if (isEncodersConnected()) {\n setVelocitySetpoint(\n new DriveSignal(leftUpdate.getOutput(), rightUpdate.getOutput(), brakePath),\n leftUpdate.getArbFeed(), rightUpdate.getArbFeed());\n } else {\n leftDrive.set(ControlMode.PercentOutput,\n ((1.0 / MkMath.RPMToInchesPerSec(DRIVE.RIGHT_RPM_MAX)) * leftUpdate.getOutput()), false,\n leftUpdate.getArbFeed());\n rightDrive.set(ControlMode.PercentOutput,\n ((1.0 / MkMath.RPMToInchesPerSec(DRIVE.LEFT_RPM_MAX)) * rightUpdate.getOutput()), false,\n rightUpdate.getArbFeed());\n }\n }",
"public void translation(Double xMovement,Double yMovement) {\n GPoint tempPoint1=new GPoint((point1.getFirst()+xMovement),\n (point1.getSecond()+yMovement));\n GPoint tempPoint2=new GPoint((point2.getFirst()+xMovement),\n (point2.getSecond()+yMovement));\n point1=tempPoint1;\n point2=tempPoint2;\n }",
"private double calculateNewSteeringWheelPosition(double newPos) {\n if (newPos > MAXPOSITION) {\n return MAXPOSITION;\n }\n\n if (newPos < MINPOSITION) {\n return MINPOSITION;\n }\n\n // Ha már egy lépésnyinél kevesebbel térünk el 0-tól, akkor beállítjuk 0-ra\n // hogy ne ugráljon magától ide oda a kormányállás.\n if (Math.abs(newPos) < STEP) {\n return 0;\n }\n\n return newPos;\n }",
"public float MoveForward(){\n motorLeft1Power = normalSpeed;\n motorLeft2Power = normalSpeed;\n motorRight1Power = normalSpeed;\n motorRight2Power = normalSpeed;\n\n startOrientation = imu.getAngularOrientation().toAxesReference(AxesReference.INTRINSIC).toAxesOrder(AxesOrder.ZYX).firstAngle;\n motorPID = new PIDController(startOrientation);\n return startOrientation;\n }",
"@Override\n public int getSteeringAngle(int[] pixels) {\n leftLine.clearPoints();\n rightLine.clearPoints();\n findLaneLines(pixels, getCameraHeight() - START_SEARCH, getCameraWidth() / 2, getCameraWidth() / 2);\n setMidPoints(calculateMidPoints());\n setSteerPoint(calculateSteerPoint());\n setLeftPoints(leftLine.getLanePoints());\n setRightPoints(rightLine.getLanePoints());\n return getDegreeOffset(getOrigin(), getSteerPoint());\n }",
"public void travelForward (double x, double y){\r\n\r\n\t\t\tdouble xDistance = x - odometer.getX();//the distance the robot has to travel in x to get to its destination from current position.\r\n\t\t\tdouble yDistance = y - odometer.getY();//the distance the robot has to travel in y to get to its destination from current position.\r\n\t\t\tdouble distance = Math.sqrt(xDistance*xDistance + yDistance*yDistance);//the overall distance the robot has to travel from current position.\r\n\t\t\r\n\t\t\tdouble xStart = odometer.getX();\r\n\t\t\tdouble yStart = odometer.getY();\r\n\t\t\t\r\n\t\t\tboolean isTravelling = true;\r\n\t\t\t\r\n\t\t\twhile(isTravelling){\r\n\t\t\t\t\r\n\t\t\t\tleftMotor.setSpeed(FORWARD_SPEED);\r\n\t\t\t\trightMotor.setSpeed(FORWARD_SPEED);\r\n\r\n\t\t\t\tleftMotor.rotate(convertDistance(wheelRadius, distance - distanceTravelled), true);\r\n\t\t\t\trightMotor.rotate(convertDistance(wheelRadius, distance - distanceTravelled), true);\r\n\t\t\t\t\r\n\t\t\t\txTravelled =(odometer.getX() - xStart); //update xTravelled\r\n\t\t\t\tyTravelled =(odometer.getY() - yStart);\t//update yTravelled\r\n\t\t\t\t\r\n\t\t\t\tdistanceTravelled = Math.sqrt(xTravelled*xTravelled +yTravelled*yTravelled); //update the distance travelled\r\n\t\t\t\tif (distanceTravelled >= distance){\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tif(getFilteredData() < 15 ){ // if the robot sees an object on the path\r\n\t\t\t\t\tisTravelling = false; //set to false so we exit the loop \r\n\t\t\t\t}\r\n\t\t\t\tLCD.drawString(\"x \", 0, 5);\r\n\t\t\t\tLCD.drawString(\"x \"+odometer.getX(), 0, 5);\r\n\t\t\t\tLCD.drawString(\"y \", 0, 6);\r\n\t\t\t\tLCD.drawString(\"y \"+odometer.getY(), 0, 6);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tleftMotor.setSpeed(0);\r\n\t\t\trightMotor.setSpeed(0);\r\n\t\t\t\t\r\n\t\t\t}",
"private void goTo(double x, double y) \n\t{\n\t\t/* Transform our coordinates into a vector */\n\t\tx -= getX();\n\t\ty -= getY();\n\t \n\t\t/* Calculate the angle to the target position */\n\t\tdouble angleToTarget = Math.atan2(x, y);\n\t \n\t\t/* Calculate the turn required get there */\n\t\tdouble targetAngle = Utils.normalRelativeAngle(angleToTarget - getHeadingRadians());\n\t \n\t\t/* \n\t\t * The Java Hypot method is a quick way of getting the length\n\t\t * of a vector. Which in this case is also the distance between\n\t\t * our robot and the target location.\n\t\t */\n\t\tdouble distance = Math.hypot(x, y);\n\t \n\t\t/* This is a simple method of performing set front as back */\n\t\tdouble turnAngle = Math.atan(Math.tan(targetAngle));\n\t\tsetTurnRightRadians(turnAngle);\n\t\tif(targetAngle == turnAngle) {\n\t\t\tsetAhead(distance);\n\t\t} else {\n\t\t\tsetBack(distance);\n\t\t}\n\t}",
"public void dirigirHaciaPunto(int x, int y){ \r\n\r\n\tint coordenadaXObjetivo;\r\n\tint coordenadaYObjetivo;\r\n\tint distanciaEnX;\r\n\tint distanciaEnY;\r\n\tint incrementoDesplazamiento = 1;\t\t\r\n\t\t\t\t\t\t\r\n\tcoordenadaXObjetivo = x;\t\r\n\tdistanciaEnX = coordenadaXObjetivo - this.x;\r\n\t\t\t\t\t\r\n\tcoordenadaYObjetivo = y;\t\r\n\tdistanciaEnY = coordenadaYObjetivo - this.y;\r\n\t\r\n\tif(distanciaEnX <= 0){\r\n\t\tif (distanciaEnX == 0){\r\n\t\t\tif(distanciaEnY < 0){\r\n\t\t\t\tthis.y -= incrementoDesplazamiento; \r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\tthis.y += incrementoDesplazamiento;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telse{\r\n\t\t\tif(distanciaEnY <= 0){\r\n\t\t\t\tif(distanciaEnY == 0){\r\n\t\t\t\t\tthis.x -= incrementoDesplazamiento;\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tthis.x -= incrementoDesplazamiento;\r\n\t\t\t\t\tthis.y -= incrementoDesplazamiento;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tthis.x -= incrementoDesplazamiento;\r\n\t\t\t\tthis.y += incrementoDesplazamiento;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\telse{\r\n\t\tif(distanciaEnY <= 0){\r\n\t\t\tif(distanciaEnY == 0){\r\n\t\t\t\tthis.x +=incrementoDesplazamiento;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse{\r\n\t\t\t\tthis.x +=incrementoDesplazamiento;\r\n\t\t\t\tthis.y -= incrementoDesplazamiento;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telse{\r\n\t\t\tthis.x +=incrementoDesplazamiento;\r\n\t\t\tthis.y += incrementoDesplazamiento;\r\n\t\t}\r\n\t}\r\n\t\r\n\tif((this.x >= x - incrementoDesplazamiento) && (this.x <= x + incrementoDesplazamiento) && \r\n\t\t\t(this.y >= y - incrementoDesplazamiento) && (this.y <= y + incrementoDesplazamiento)){\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t\tthis.entroAlCirculo = true;\r\n\t\t\r\n\t\t}\t\t\t\t\t\t\t\t\t\r\n\t}",
"float[] calculate(float[] acc, float[] oldAcc, float[] gyr , float[] oldGyr,float[] oldGra, float[] oldAccVelDisGra)\n {\n// System.out.println(\"inside method acc:\"+acc[0]+\", \"+acc[1]+\", \"+acc[2]+\", oldAcc:\"+oldAcc[0]+\", \"+oldAcc[1]+\", \"+oldAcc[2]);\n// System.out.println(\"inside method gravity:\"+oldGra[0]+\", \"+oldGra[1]+\", \"+oldGra[2]);\n if (oldAccVelDisGra==null)\n {\n oldAccVelDisGra= new float[9];\n for (int i = 0; i <9; i++) {\n oldAccVelDisGra[i]=0.0f;\n }\n }\n float[] oldDynamicAcc = new float[]{0.0f, 0.0f, 0.0f};\n float[] oldVelocity = new float[]{0.0f, 0.0f, 0.0f};\n float[] oldDistance = new float[]{0.0f, 0.0f, 0.0f};\n float[] newGra = gravityFromRotation(oldGra, gyr);\n\n for (int i = 0; i < 3; i++) {\n oldDynamicAcc[i] = oldAccVelDisGra[i];\n oldVelocity[i] = oldAccVelDisGra[i+3];\n oldDistance[i] = oldAccVelDisGra[i+6];\n }\n float[] accVelDisGra = new float[]{0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};\n float[] dynAccDiff = dynamicAccDiff(acc,gyr,oldGra,oldAcc,oldGyr);\n float[] dynamicAcc = dynamicAcc(oldDynamicAcc, dynAccDiff);\n float[] velocity = velocity(oldVelocity,dynamicAcc);\n float[] distance = distance(oldDistance, velocity);\n for (int i = 0; i < 3; i++) {\n accVelDisGra[i]=dynamicAcc[i];\n accVelDisGra[i+3]= velocity[i];\n accVelDisGra[i+6]=distance[i];\n accVelDisGra[i+9]=newGra[i];\n }\n return accVelDisGra;\n }",
"public Point getAlteredCoord(Point actualPoint) {\n //If breath rate is out of range, returns an altered coordinate according to the level of out of range and\n //the current game level (Easy, Medium, Hard). If breath is in range, return the same coord.\n Point alteratedPoint = actualPoint;\n\n Random randomNoise = new Random();\n\n //As USER_CURRENT_BREATH_RATE will be changing, we must do a \"snapshot\" at this time to work with proper measures.\n double userCurrentSnap = USER_CURRENT_BREATH_RATE;\n\n //Consider 6-8, MAX_IDEAL_BREATH_RATE (8) will be the max\n double referenceDistance = MAX_BREATH_RATE - MAX_IDEAL_BREATH_RATE;\n double myRateExcess = userCurrentSnap - MAX_IDEAL_BREATH_RATE;\n double relationPreferedActual = myRateExcess / referenceDistance;\n\n //How much far of the ideal is?, according to our limit of 20\n double percentOfExcess = relationPreferedActual * 100;\n\n /*\n EASY:\n Speed: 25%\n Range of speed change: (up to 15%)\n Maximum amount of noise: +/- 30% of the maximum number on coord x or y\n MEDIUM:\n Speed: 45%\n Range of speed change: (up to 15%)\n Maximum amount of noise: +/- 50% of the maximum number on coord x or y\n HARD:\n Speed: 80%\n Range of speed change: (up to 15%)\n Maximum amount of noise: +/- 80% of the maximum number on coord x or y\n */\n\n //Maximum increment of speed in 15% of MAX_SCALED_SPEED\n double mxSpdInc = MAX_SCALED_SPEED * .15;\n\n //NOTE: The formulas obtained were based on x^2\n /*\n *Solving y=ax^2 + b\n *Finding the variables a, and b. X represents the amount of excess and Y represents the speed for that amount\n */\n double a, b;\n double maxSpeed; //Max space in case of 100% of\n double easyNoise = .38, mediumNoise = .58, hardNoise = .75; //Percents\n\n //drive_control works acording to the size of the wheel. And as closer to the circumference as faster that will be.\n int maxX = this.wheel.getBounds().width(); //This represent the max X possible coord on the wheel\n int maxY = this.wheel.getBounds().height();\n\n if (percentOfExcess > 0) {\n switch (this.ACTUAL_DIFICULTY) {\n case EASY:\n\n //Alter speed. The speed will be changed\n maxSpeed = EASY_BASE_SPEED + mxSpdInc;\n b = EASY_BASE_SPEED; //Minimum\n a = (maxSpeed - b) / (100 * 100); //Maximum\n this.drive_control.setSpeedScale((float) getSpeedAccordingExcessPercent(a, b, percentOfExcess));\n\n alteratedPoint = getFinalPoint(maxX, maxY, easyNoise, percentOfExcess, actualPoint.x, actualPoint.y);\n\n break;\n case MEDIUM:\n maxSpeed = MEDIUM_BASE_SPEED + mxSpdInc;\n b = MEDIUM_BASE_SPEED; //Minimum\n a = (maxSpeed - b) / (100 * 100); //Maximum\n this.drive_control.setSpeedScale((float) getSpeedAccordingExcessPercent(a, b, percentOfExcess));\n alteratedPoint = getFinalPoint(maxX, maxY, mediumNoise, percentOfExcess, actualPoint.x, actualPoint.y);\n\n\n break;\n case HARD:\n maxSpeed = HARD_BASE_SPEED + mxSpdInc;\n b = HARD_BASE_SPEED; //Minimum\n a = (maxSpeed - b) / (100 * 100); //Maximum\n this.drive_control.setSpeedScale((float) getSpeedAccordingExcessPercent(a, b, percentOfExcess));\n alteratedPoint = getFinalPoint(maxX, maxY, hardNoise, percentOfExcess, actualPoint.x, actualPoint.y);\n\n\n break;\n }\n } else {//Else, the user's breath rate must be under 8 so it's ok.\n //In this case, we will ensure that the speed it's acording to the level.\n switch (this.ACTUAL_DIFICULTY) {\n case EASY:\n this.drive_control.setSpeedScale(this.EASY_BASE_SPEED);\n break;\n case MEDIUM:\n this.drive_control.setSpeedScale(this.MEDIUM_BASE_SPEED);\n break;\n case HARD:\n this.drive_control.setSpeedScale(this.HARD_BASE_SPEED);\n break;\n }\n }\n return alteratedPoint;\n }",
"void updateTotals () {\n\n speed_kts_mph_kmh_ms_info = make_speed_kts_mph_kmh_ms_info(velocity);\n double lift = foil_lift();\n double drag = total_drag();\n \n // This computes location of the center of gravity of the craft\n // (rider, roughly) in relation to the leading edge (aka LE) of the\n // mast (roughly, front bolt of DT). \n //\n // Mtipping is 0.5*eff_strut_span*strut,drag\n //\n // cg_pos: x-axis offset relative to strut bottom LE. \"fore\" is -, \"aft\" is +,\n dash.cg_pos = find_cg_xpos(); \n // cg_pos_board_level: at board level where x=0 at strut's board-side LE.\n // strut tilt correction is required. example:\n // cg_pos=-35cm, xoff_tip=5cm (horue,dmitry) cg_pos_board_level=-30-5=-35\n dash.cg_pos_board_level = dash.cg_pos;\n\n // foilboard AOA correction. when the board is at high angle of\n // attack, the computed offset is only an approximation, rider is more\n // forward *alone the board surface* in reality. for 90 degree strut,\n // it is the hypotenuse where the adjasent is -dash.cg_pos + cos(\n // BOARD_THICKNESS + strut.span)\n if (rider_xpos_tilt_correction) {\n double pitch_rad = Math.toRadians(craft_pitch);\n double hypo = BOARD_THICKNESS + strut.span;\n double deck_rot_adj = - // when AOA is positive, and cg_pos is\n // negative, increses the magnitude\n hypo * Math.sin(pitch_rad);\n\n // board deck offset is hypotenuse; adjasent value is dash.cg_pos plus\n // deck_rot_adjn\n \n // deck_x_offset is the 'hypotenuse' H = A / cos(A)\n double deck_x_offset = (dash.cg_pos + deck_rot_adj) // the 'adjasent'\n / Math.cos(pitch_rad);\n\n // apply correction\n dash.cg_pos_board_level = deck_x_offset;\n }\n\n // cg_pos_board_level: at board level where x=0 at strut's board-side LE.\n // strut tilt correction is required. example for AoA=0:\n // cg_pos=-30cm, xoff_tip=5cm (horue,dmitry) cg_pos_board_level=-30-5=-35\n dash.cg_pos_board_level -= strut.xoff_tip;\n\n \n // rider_countering_x_offset is computed and saved to reflect posture\n // change due to (a) headwind (b) propulsion pull as follows below\n double rider_countering_x_offset = 0;\n\n // (a) Headwind.\n // Two square triangles: rider_offset/height = rider.drag/weight\n if (!in.opts.ignore_air_resistance)\n rider_countering_x_offset += -(rider.drag/rider.weight)* RIDER_CG_HEIGHT;\n\n // (b) Propulsion pull. \n // Rider's force-countering stance is in effect only if the drive force is applied\n // above the board, which implies it goes through rider's body\n if (DRIVING_FORCE_HEIGHT > 0) {\n // drive force, scaled to be considering coming from the rider CG height spot\n double drive_force_scaled = \n (in.opts.ignore_drive_moment)\n ? 0\n : (total_drag() * DRIVING_FORCE_HEIGHT/RIDER_CG_HEIGHT);\n // two square triangles: rider_offset/height = drive_force_scaled/weight\n rider_countering_x_offset += (drive_force_scaled/rider.weight)* RIDER_CG_HEIGHT; // wasFF 0.86;\n }\n rider.force_countering_x_offest = rider_countering_x_offset;\n dash.cg_pos_of_rider = dash.cg_pos_board_level + rider.force_countering_x_offest;\n\n // factored out to dash.loadPanel()\n // if (can_do_gui_updates) {\n // dash.loadPanel();\n // }\n }",
"private long calcRotTime (int newSector)\r\n\t{\r\n\t\t//\tCompute number of sectors to wait until we rotate to where\r\n\t\t//\twe should be.\r\n\t\tint moveSect = newSector - this.sector;\r\n\t\t//\tIf newSector < currSector, adjust from negative.\r\n\t\tif (moveSect < 0) moveSect += config.getSectors();\r\n\t\t//\tCompute time to rotate into position.\r\n\t\tlong moveTime = Math.round(moveSect * config.getRotSect());\r\n\t\treturn moveTime;\r\n\t}",
"private void updateSensors()\r\n\t{\t\t\r\n\t\tthis.lineSensorRight\t\t= perception.getRightLineSensor();\r\n\t\tthis.lineSensorLeft \t\t= perception.getLeftLineSensor();\r\n\t\t\r\n\t\tthis.angleMeasurementLeft \t= this.encoderLeft.getEncoderMeasurement();\r\n\t\tthis.angleMeasurementRight \t= this.encoderRight.getEncoderMeasurement();\r\n\r\n\t\tthis.mouseOdoMeasurement\t= this.mouseodo.getOdoMeasurement();\r\n\r\n\t\tthis.frontSensorDistance\t= perception.getFrontSensorDistance();\r\n\t\tthis.frontSideSensorDistance = perception.getFrontSideSensorDistance();\r\n\t\tthis.backSensorDistance\t\t= perception.getBackSensorDistance();\r\n\t\tthis.backSideSensorDistance\t= perception.getBackSideSensorDistance();\r\n\t}",
"public double computeCurvatureToReach(\n Transform initialTransform, double[] targetNode, double[] nextNode) {\n\n // Takes the closest point from robot in the line generated by the goal node and the next\n double[] nearestPoint = Geometry.getIntersectionBetweenLineAndPerpendicularPoint(\n targetNode, nextNode, initialTransform.getPosition());\n // Generates a goal point from the nearest point distanced at a lookahead distance\n double[] goalPoint = getGoalPointAtLookaheadDistance(targetNode, nextNode, nearestPoint);\n // Computes the rotation necessary to reach the goal\n // TODO: If curvature * {angularModification} > ANGULAR_VELOCITY_LIMIT -> Saturate\n return Geometry.computeCurvature(\n initialTransform.getPosition(), initialTransform.getRotationZ(), goalPoint)\n * angularModification;\n }",
"private void moveRecursiveHelper (double pixels) {\n if (pixels <= 0 + PRECISION_LEVEL) return;\n \n Location currentLocation = getLocation();\n Location nextLocation = getLocation();\n Location nextCenter = nextLocation;\n nextLocation.translate(new Vector(getHeading(), pixels));\n Location[] replacements = { nextLocation, nextCenter };\n \n if (nextLocation.getY() < 0) {\n // top\n replacements = overrunsTop();\n }\n else if (nextLocation.getY() > myCanvasBounds.getHeight()) {\n // bottom\n replacements = overrunBottom();\n }\n else if (nextLocation.getX() > myCanvasBounds.getWidth()) {\n // right\n replacements = overrunRight();\n }\n else if (nextLocation.getX() < 0) {\n // left\n replacements = overrunLeft();\n }\n \n nextLocation = replacements[0];\n nextCenter = replacements[1];\n \n setCenter(nextCenter);\n double newPixels = pixels - (Vector.distanceBetween(currentLocation, nextLocation));\n if (myPenDown) {\n myLine.addLineSegment(currentLocation, nextLocation);\n }\n moveRecursiveHelper(newPixels);\n \n }",
"public double calculateTheta (double angleA, double angleB){\n\t\tif(LocalizationLab.fallingEdge == false){\n\t\t\tdeltaTheta = 37 - (0.5)*(angleA+angleB);\n\t\t}\n\t\telse{\n\t\t\tdeltaTheta = 220 - (0.5)*(angleA+angleB);\n\t\t}\n\t\treturn deltaTheta;\n\t}",
"private void setNewValues(Line[] line, Text[] angles, Circle[] points) {\r\n for (int i = 0; i < 3; i++) {\r\n int ind = i == 2 ? 0 : (i+1); //needed to prevent NullPointerException\r\n line[i].setStartX(points[i].getCenterX());\r\n line[i].setEndX(points[ind].getCenterX());\r\n line[i].setStartY(points[i].getCenterY());\r\n line[i].setEndY(points[ind].getCenterY());\r\n\r\n }\r\n //distances\r\n double a,b,c;\r\n a = calculateDistance(points[0], points[1]);\r\n b = calculateDistance(points[1], points[2]);\r\n c = calculateDistance(points[2], points[0]);\r\n\r\n //angles\r\n int A,B,C;\r\n A = (int) Math.toDegrees(Math.acos((a*a - b*b - c*c) / (-2 * b * c)));\r\n B = (int) Math.toDegrees(Math.acos((b*b - a*a - c*c) / (-2 * a * c)));\r\n C = (int) Math.toDegrees(Math.acos((c*c - b*b - a*a) / (-2 * a * b)));\r\n\r\n angles[0].setText(String.valueOf(String.valueOf(B)));\r\n angles[1].setText(String.valueOf(String.valueOf(C)));\r\n angles[2].setText(String.valueOf(String.valueOf(A)));\r\n\r\n //set location of angle labels\r\n for(int i = 0; i < angles.length;i++) {\r\n angles[i].setX(points[i].getCenterX() + 10);\r\n angles[i].setY(points[i].getCenterY() + 10);\r\n\r\n }\r\n\r\n }",
"@Override\n\tpublic void update(float delta) {\n\t\tHashMap<Coordinate, MapTile> currentView = getView();\n\t\tcheckStateChange();\n\t\tfor(Coordinate i : currentView.keySet()) {\n\t\t\t\n\t\t\t//Building up wholeMap with data from currentView\n\t\t\tif(i.x >= 0 && i.y >= 0 && i.x < World.MAP_WIDTH && i.y < World.MAP_HEIGHT ) {\n\t\t\t\twholeMap.put(i, currentView.get(i));\n\t\t\t}\n\t\n\t\t}\n//\t\tif(getSpeed() > CAR_SPEED/2f){\n//\t\t\tapplyBrake();\n//\t\t}\n\n//\t\tif(checkWallAhead(getOrientation(), currentView)){\n//\t\t\tisReversing = true;\n//\t\t}\n//\t\tif(checkRightWall(getOrientation(), currentView)){\n//\t\t\tisTurningLeft = true;\n//\t\t}\n//\t\tif(checkLeftWall(getOrientation(), currentView)){\n//\t\t\tisTurningRight = true;\n//\t\t}\n\n\n\n\t\tdebugPrint(\"STATES: A: \" + isAccelerating +\" Rv: \"+ isReversing +\n\t\t\" L: \"+ isTurningLeft + \" R: \"+isTurningRight);\n\n\n\t\t//Handles Steering\n\t\tif(isTurningLeft){\n\t\t\tdebugPrint(\"TRYING TO TURN LEFT\");\n\t\t\tapplySafeLeftTurn(delta);\n\t\t} else if(isTurningRight){\n\t\t\tdebugPrint(\"TRYING TO TURN RIGHT\");\n\t\t\tapplySafeRightTurn(delta);\n\t\t}\n\t\tif(isAccelerating){\n\t\t\tdebugPrint(\"No\");\n\t\t\tapplySafeForwardAcceleration();\n\t\t}\n\n\t\tif(isReversing){\n\t\t\tapplySafeReverseAcceleration();\n//\t\t\tisReversing = false;\n\n\t\t}\n\n\n\n\n\n\t\t//\n\t\tif(hasReachedNextDest) {\n\t\t\tdebugPrint(\"Recalculating Route.\");\n\t\t\tList<Node> result =exploreDijkstras(new Coordinate(carrrr.getPosition()));\n\t\t\tresult.add(new Node(\"1,2\"));\n\t\t\tpathList.add(result);\n\t\t\thasReachedNextDest = false;\n\t\t}\n\n\n\n\n\t\t//Car movement code-----------------------------------------------------------------------------------\n\t\t//If there's a path in the path array to follow\n\t\tif(pathList.size() > 0 || processing) {\n\t\t\tif(processing) {\n\t\t\t\tcheckStateChange();\n\n\t\t\t\t//Identify if target tile is N,S,E or W.\n\t\t\t\ttry {\n\t\t\t\t\tpath.get(counter+1);\n\t\t\t\t}\n\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tdebugPrint(\"Starting new path\");\n\t\t\t\t\tcounter = 0;\n\t\t\t\t\tprocessing = false;\n\t\t\t\t\thasReachedNextDest = true;\n\t\t\t\t}\n\n\n\n\t\t\t\tCoordinate currPos = new Coordinate (getPosition());\n\t\t\t\tCoordinate targetPos = new Coordinate(path.get(counter).getName());\n\n\t\t\t\tif(!coordList.contains(currPos)){\n\t\t\t\t\tdebugPrint(\"Recalculating Route (Not on route).\");\n\t\t\t\t\tList<Node> result =exploreDijkstras(new Coordinate(getPosition()));\n\t\t\t\t\tresult.add(new Node(\"99,99\")); //This is just to make sure something is there.\n\t\t\t\t\tpathList.add(result);\n\t\t\t\t\tprocessing = false;\n\t\t\t\t\tdebugPrint(result);\n\t\t\t\t\tcounter = 0;\n\t\t\t\t}\n\n\n\t\t\t\tWorldSpatial.Direction dir = getDirection(currPos, targetPos);\n\n\t\t\t\tboolean isFacingTarget = false;\n\n\t\t\t\tSystem.out.println(\"-----------------\");\n\t\t\t\tdebugPrint(\"currPos: \"+ currPos);\n\t\t\t\tdebugPrint(\"targetPos: \"+ targetPos);\n\t\t\t\tSystem.out.println(\"-----------------\");\n\n\t\t\t\t// If we are on the target, move on to next.\n\t\t\t\tif(currPos.equals(targetPos)) {\n\t\t\t\t\tcounter++;\n\t\t\t\t\tcurrPos = targetPos;\n\t\t\t\t\ttargetPos = new Coordinate(path.get(counter).getName());\n\n\n\n\t\t\t\t\tif(!isFacingTarget){\n//\t\t\t\t\t\tisTurningSoon = true;\n\t\t\t\t\t\trotateAntiClockwise(delta);\n\n\t\t\t\t\t}\n\t\t\t\t\tdir = getDirection(currPos, targetPos);\n\t\t\t\t\tSystem.out.println(\"dir: \"+ dir);\n\t\t\t\t}\n\t\t\t\telse {\n\n\t\t\t\t\tSystem.out.println(\"dir: \"+ dir + \"|| carFront: \" + getOrientation());\n\t\t\t\t\tisFacingTarget = dir.equals(getOrientation());\n\n\t\t\t\t\tif(dir.equals(oppositeOfOrientation(getOrientation()))){\n\t\t\t\t\t\tisReversing = true;\n\t\t\t\t\t\tisAccelerating = false;\n\t\t\t\t\t}\n\n\t\t\t\t\t//Not on target yet.\n\t\t\t\t\tif(!isFacingTarget && isReversing) {\n\t\t\t\t\t\t//If not moving in Direction of target Coord:\n\t\t\t\t\t\tif(leftOrRight(dir) == null){\n\t\t\t\t\t\t\t//this is bad.\n\t\t\t\t\t\t\tdebugPrint(\"Not left or right?\");\n\t\t\t\t\t\t\tdebugPrint(\"UTURN REQUIRED\");\n\t\t\t\t\t\t\trotateAntiClockwise(delta);\n\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tisReversing = false;\n\t\t\t\t\t\t\tdebugPrint(\"leftOrRight: \" + leftOrRight(dir));\n\t\t\t\t\t\t\tlastTurnDirection = leftOrRight(dir);\n\t\t\t\t\t\t\tint targetDegree = directionToDegree(dir);\n\n\t\t\t\t\t\t\tdebugPrint(\"PEEK: \"+peek(getVelocity(), targetDegree, WorldSpatial.RelativeDirection.RIGHT, delta).getCoordinate().toString());\n\n\t\t\t\t\t\t\tif(peek(getVelocity(), targetDegree, WorldSpatial.RelativeDirection.RIGHT, delta).getCoordinate().equals(currPos)){\n\t\t\t\t\t\t\t\t//isAccelerating = true;\n//\t\t\t\t\t\t\t\tapplyForwardAcceleration();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(lastTurnDirection.equals(WorldSpatial.RelativeDirection.RIGHT)){\n\t\t\t\t\t\t\t\tif(peek(getVelocity(),targetDegree, WorldSpatial.RelativeDirection.RIGHT, delta).getCoordinate().equals(targetPos)){\n\t\t\t\t\t\t\t\t\tdebugPrint(\"RIGHT TURN SAFE\");\n\t\t\t\t\t\t\t\t\tisTurningRight = true;\n\t\t\t\t\t\t\t\t\tisAccelerating = false;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tisTurningRight = false;\n\t\t\t\t\t\t\t\t\tisAccelerating = true;\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\t\tif(peek(getVelocity(),targetDegree, WorldSpatial.RelativeDirection.LEFT, delta).getCoordinate().equals(targetPos)) {\n\t\t\t\t\t\t\t\t\tdebugPrint(\"LEFT TURN SAFE\");\n\n\t\t\t\t\t\t\t\t\tisTurningLeft = true;\n\t\t\t\t\t\t\t\t\tisAccelerating = false;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tisTurningLeft = false;\n\t\t\t\t\t\t\t\t\tisAccelerating = true;\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\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\treadjust(lastTurnDirection, delta);\n\t\t\t\t\t\t//If moving in right direction,\n\t\t\t\t\t\t//Accelerate if not traveling at max speed\n\t\t\t\t\t\tfloat x = CAR_SPEED;\n\t\t\t\t\t\tif(isTurningSoon) {\n\t\t\t\t\t\t\tx = CAR_SPEED/4f;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(getSpeed() < x){\n\t\t\t\t\t\t\tisTurningSoon = false;\n\t\t\t\t\t\t\t//isAccelerating = true;\n//\t\t\t\t\t\t\tapplyForwardAcceleration();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tif(useTestPath){\n\t\t\t\t\tmakeTestPath();\n\t\t\t\t\tpath = testpath;\n\t\t\t\t} else {\n\t\t\t\t\tpath = pathList.poll();\n\t\t\t\t\t//Populate coordList\n\t\t\t\t\tfor(Node n: path){\n\t\t\t\t\t\tcoordList.add(new Coordinate(n.getName()));\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tdebugPrint(path);\n\t\t\t\tprocessing = true; \n\t\t\t\t\n\t\t\t}\n\t\n\t\t\t\n\t\t} else {\n\t\t\tdebugPrint(\"End of path list\");\n\t\t}\n\n\n\n\n\n\n\n/*\t\t// If you are not following a wall initially, find a wall to stick to!\n\t\tif(!isFollowingWall){\n\t\t\tif(getSpeed() < CAR_SPEED){\n\t\t\t\tapplyForwardAcceleration();\n\t\t\t}\n\t\t\t// Turn towards the north\n\t\t\tif(!getOrientation().equals(WorldSpatial.Direction.NORTH)){\n\t\t\t\tlastTurnDirection = WorldSpatial.RelativeDirection.LEFT;\n\t\t\t\tapplyLeftTurn(getOrientation(),delta);\n\t\t\t}\n\t\t\tif(checkNorth(currentView)){\n\t\t\t\t// Turn right until we go back to east!\n\t\t\t\tif(!getOrientation().equals(WorldSpatial.Direction.EAST)){\n\t\t\t\t\tlastTurnDirection = WorldSpatial.RelativeDirection.RIGHT;\n\t\t\t\t\tapplyRightTurn(getOrientation(),delta);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tisFollowingWall = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// Once the car is already stuck to a wall, apply the following logic\n\t\telse{\n\n\t\t\t// Readjust the car if it is misaligned.\n\t\t\treadjust(lastTurnDirection,delta);\n\n\t\t\tif(isTurningRight){\n\t\t\t\tapplyRightTurn(getOrientation(),delta);\n\t\t\t}\n\t\t\telse if(isTurningLeft){\n\t\t\t\t// Apply the left turn if you are not currently near a wall.\n\t\t\t\tif(!checkFollowingWall(getOrientation(),currentView)){\n\t\t\t\t\tapplyLeftTurn(getOrientation(),delta);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tisTurningLeft = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Try to determine whether or not the car is next to a wall.\n\t\t\telse if(checkFollowingWall(getOrientation(),currentView)){\n\t\t\t\t// Maintain some velocity\n\t\t\t\tif(getSpeed() < CAR_SPEED){\n\t\t\t\t\tapplyForwardAcceleration();\n\t\t\t\t}\n\t\t\t\t// If there is wall ahead, turn right!\n\t\t\t\tif(checkWallAhead(getOrientation(),currentView)){\n\t\t\t\t\tlastTurnDirection = WorldSpatial.RelativeDirection.RIGHT;\n\t\t\t\t\tisTurningRight = true;\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// This indicates that I can do a left turn if I am not turning right\n\t\t\telse{\n\t\t\t\tlastTurnDirection = WorldSpatial.RelativeDirection.LEFT;\n\t\t\t\tisTurningLeft = true;\n\t\t\t}\n\t\t}\n\n\t\t*/\n\n\t}",
"public static void changePosition() {\n int direction;\n int speed;\n int newTopX;\n int newTopY;\n\n for (int i = 0; i < numShapes; ++i) {\n direction = moveDirection[i];\n speed = moveSpeed[i];\n newTopX = xTopLeft[i];\n newTopY = yTopLeft[i];\n\n //the switch uses the direction the speed should be applied to in order to find the new positions\n switch (direction) {\n case 0 -> {\n newTopX = newTopX - (speed);\n xTopLeft[i] = newTopX;\n }\n //upper left 135 degrees\n case 1 -> {\n newTopX = newTopX - (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY - (speed);\n yTopLeft[i] = newTopY;\n }\n case 2 -> {\n newTopY = newTopY - (speed);\n yTopLeft[i] = newTopY;\n }\n //upper right 45 degrees\n case 3 -> {\n newTopX = newTopX + (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY - (speed);\n yTopLeft[i] = newTopY;\n }\n case 4 -> {\n newTopX = newTopX + (speed);\n xTopLeft[i] = newTopX;\n }\n //bottom right 315 degrees\n case 5 -> {\n newTopX = newTopX + (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY + (speed);\n yTopLeft[i] = newTopY;\n }\n case 6 -> {\n newTopY = newTopY + (speed);\n yTopLeft[i] = newTopY;\n }\n //bottom left 225 degrees\n case 7 -> {\n newTopX = newTopX - (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY + (speed);\n yTopLeft[i] = newTopY;\n }\n }\n }\n }",
"private Location[] overrunLeft () {\n Location nextLocation;\n Location nextCenter;\n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == THREE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(0, getY());\n nextCenter = new Location(myCanvasBounds.getWidth(), getY());\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = getHeading() - ONE_QUARTER_TURN_DEGREES;\n if (getHeading() > HALF_TURN_DEGREES) {\n angle = -(THREE_QUARTER_TURN_DEGREES - getHeading());\n }\n angle = Math.toRadians(angle);\n nextLocation = new Location(0, getY() + getX() / Math.tan(angle));\n nextCenter = new Location(myCanvasBounds.getWidth(), getY() + getX() /\n Math.tan(angle));\n \n return new Location[] { nextLocation, nextCenter };\n }",
"static float calculateNewVelocity(float a, float deltaTime, float v0) {\n return v0 + (a * deltaTime);\n }",
"void updateMotion(boolean altitudeLock)\n {\n \n ascendDescendLift:\n {\n // as pitch and roll increases, lift decreases by fall-off function.\n\t // thrust.y ranges from 0 to 1. at 1, almost perfectly balances gravity\n\t \n //thrust.y = MathHelper.cos(pitchRad) * MathHelper.cos(rollRad);\n thrust.y = MathHelper.cos(pitchRad) * MathHelper.cos(rollRad) * MathHelper.cos(rollRad);\n }\n\n forwardBack:\n {\n // as pitch increases, forward-back motion increases\n // but sin function was too touchy so using 1-cos\n float accel = 1f - MathHelper.cos(pitchRad);\n if (pitchRad > 0f) accel *= -1f;\n \n thrust.x = -fwd.x * accel;\n thrust.z = -fwd.z * accel;\n \n // also adjust y in addition to ascend/descend to simulate diving\n thrust.y += -fwd.y * accel * .3f;\n }\n\n strafeLeftRight:\n {\n // float strafe = -MathHelper.sin(roll);\n float strafe = 1f - MathHelper.cos(rollRad);\n if (rollRad > 0f) strafe *= -1f;\n\n // use perp of yaw and scale by roll\n thrust.x -= fwd.z * strafe;\n thrust.z += fwd.x * strafe;\n }\n\n // start with current velocity\n velocity.set((float)motionX, (float)motionY, (float)motionZ);\n\n // friction, very little!\n velocity.scale(FRICTION);\n\n // scale thrust by current throttle and delta time\n //thrust.normalize().scale(MAX_ACCEL * (1f + throttle) * deltaTime / .05f);\n thrust.normalize().scale(MAX_ACCEL * (1f + throttle) * deltaTime / .05f);\n\n // apply the thrust\n Vector3.add(velocity, thrust, velocity);\n\n // gravity is always straight down\n //if (!inWater && !onGround) velocity.y -= GRAVITY * deltaTime / .05f;\n velocity.y -= GRAVITY * deltaTime / .05f;\n\n // limit max velocity\n if (velocity.lengthSquared() > MAX_VELOCITY * MAX_VELOCITY)\n {\n velocity.scale(MAX_VELOCITY / velocity.length());\n }\n\n // apply velocity changes\n motionX = (double) velocity.x;\n motionY = (double) velocity.y;\n motionZ = (double) velocity.z;\n \n if (altitudeLock && riddenByEntity != null)\n {\n motionY *= .9;\n if (motionY < .00001) motionY = .0;\n }\n \n moveEntity(motionX, motionY, motionZ);\n }"
] | [
"0.63270587",
"0.62393856",
"0.6217475",
"0.6184087",
"0.60151047",
"0.6001065",
"0.59617543",
"0.5877308",
"0.58631986",
"0.57781106",
"0.5741115",
"0.57299495",
"0.57043535",
"0.569862",
"0.5685739",
"0.5673544",
"0.5626884",
"0.55911696",
"0.5582098",
"0.5576029",
"0.5571531",
"0.55496556",
"0.5515468",
"0.55047435",
"0.5500906",
"0.54925585",
"0.5485393",
"0.5438056",
"0.542818",
"0.54219604",
"0.5421166",
"0.5415359",
"0.5396728",
"0.5377678",
"0.53735614",
"0.5361155",
"0.5348289",
"0.5345133",
"0.53444105",
"0.5342367",
"0.53420144",
"0.5333136",
"0.5324748",
"0.529062",
"0.5284152",
"0.528309",
"0.527696",
"0.5270051",
"0.52649325",
"0.5263132",
"0.52557623",
"0.52490467",
"0.5248473",
"0.5231878",
"0.52231026",
"0.52230257",
"0.52200365",
"0.5199138",
"0.51853025",
"0.5184672",
"0.5174757",
"0.5172715",
"0.51722413",
"0.5149726",
"0.51427925",
"0.51395094",
"0.5138818",
"0.51325244",
"0.51323146",
"0.51294297",
"0.5124489",
"0.5110538",
"0.5103119",
"0.5102276",
"0.50905675",
"0.50893074",
"0.5082332",
"0.50662637",
"0.50569135",
"0.5051568",
"0.5051563",
"0.5051036",
"0.5049899",
"0.50486624",
"0.5042844",
"0.50422275",
"0.5041551",
"0.5028859",
"0.5027633",
"0.50245905",
"0.5022721",
"0.50184995",
"0.50178444",
"0.5017392",
"0.5016374",
"0.50146466",
"0.5012628",
"0.50125676",
"0.5011568",
"0.5007316",
"0.50040454"
] | 0.0 | -1 |
Get the active page. | private static void replaceCurrentPerspective( IPerspectiveDescriptor persp )
{
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if( window != null )
{
IWorkbenchPage page = window.getActivePage();
if( page != null )
{
// Set the perspective.
page.setPerspective( persp );
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getCurrentPage();",
"int getCurrentPage();",
"public Page getCurrentPageObject() {\n return getPageObject(this.currentIndex.viewIndex);\n }",
"public Integer getCurrentPage();",
"public Page getCurrentPageObject() {\n return getPageObject(this.currentIndex.viewIndex);\n }",
"public CharSequence getCurrentPage() {\n return pages.get(currentIndex);\n }",
"public static IWorkbenchPage getActivePage() {\n\t\tIWorkbench wb = PlatformUI.getWorkbench();\t\t\n\t\tif(wb != null) {\n\t\t\tIWorkbenchWindow win = wb.getActiveWorkbenchWindow();\t\t\t\n\t\t\tif(win != null) {\n\t\t\t\tIWorkbenchPage page = win.getActivePage();\t\t\t\t\n\t\t\t\tif(page != null) {\n\t\t\t\t\treturn page;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public int getCurrentPage() {\n\t\treturn currentPage;\n\t}",
"public static IWorkbenchPage getActivePage() {\n\t IWorkbenchWindow window = getDefault().getWorkbench().getActiveWorkbenchWindow();\n\t if (window == null) {\n\t return null;\n\t }\n\t return window.getActivePage();\n\t}",
"public static IWorkbenchPage getActivePage() {\n IWorkbenchWindow window = getActiveWorkbenchWindow();\n if (window != null) {\n return window.getActivePage();\n }\n return null;\n }",
"public String getCurrentPage(){\n\t\treturn sCurrentPage;\n\t}",
"public Number getCurrentPage() {\r\n\t\treturn this.currentPage;\r\n\t}",
"public static String getCurrentPage() throws ConfigurationException, IOException {\r\n return GetRunTimeData(\"currentPage\");\r\n }",
"public int getPage() {\n return page;\n }",
"public int getPage() {\n return page;\n }",
"public int getPage() {\n return page;\n }",
"public int getPage() {\n return page;\n }",
"Navigation getActiveNavigation();",
"public Integer getPage() {\n return page;\n }",
"public Page getPage() {\n\t\treturn page;\n\t}",
"@Override\r\n\t\tpublic int getCurrentpage() throws Exception\r\n\t\t\t{\n\t\t\t\treturn 0;\r\n\t\t\t}",
"public TransUnitPage getCurrentTransUnitPage() {\n\t\treturn page;\n\t}",
"private String getCurrentPage(WebDriver d) {\n\t\tWebElement element = d.findElement(By.cssSelector(\"#space-search-result .aui-nav-selected\"));\n\t\tif (element != null) {\n\t\t\treturn element.getText();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n public AbstractPage getPage() {\n if (this.page == null || page == AbstractPage.EMPTY)\n this.page = getPages().get(0);\n return this.page;\n }",
"public String gotoPage() {\n return FxJsfUtils.getParameter(\"page\");\n }",
"public Active getActive() {\n return _active;\n }",
"public int getPageNumber() {\r\n\t\t\t\treturn currentPage;\r\n\t\t\t}",
"public int getStartingPage() {\n return startingPage;\n }",
"public Page getPage() {\n return page;\n }",
"public Page getPage() {\n return page;\n }",
"public static Page getCurrentPage(SlingHttpServletRequest request) {\n Resource resource = request.getResource();\n PageManager pageManager = getPageManager(request);\n return pageManager.getContainingPage(resource);\n }",
"public Page getRequestedPageConf() {\n return getPageList().get(getPageIdx());\n }",
"public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage() {\n return page_;\n }",
"String getStartpage();",
"public Page getPage() {return page;}",
"public org.biocatalogue.x2009.xml.rest.PageParameter getPage()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.biocatalogue.x2009.xml.rest.PageParameter target = null;\r\n target = (org.biocatalogue.x2009.xml.rest.PageParameter)get_store().find_element_user(PAGE$2, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public static String getPageUrl() {\n\t\tLOG.info(\"Reading current page URL.\");\n\t\treturn Constants.driver.getCurrentUrl();\n\n\t}",
"public String getMainPage() {\n return (String)getAttributeInternal(MAINPAGE);\n }",
"public SQLInteger getPage() {\n\t\treturn page;\n\t}",
"Page getPage();",
"public int active() {\n return this.active;\n }",
"public Object getFirstPageIdentifier()\n {\n return firstWizardPage.getIdentifier();\n }",
"public int getStartPage() {\n return startPage;\n }",
"public static profile getActive(){\n return active;\n }",
"public JSONObject page() {\n\t\treturn null;\n\t}",
"public int getDefaultPage()\n\t{\n\t\treturn defaultPage;\n\t}",
"public Slide getCurrentSlide() {\n\t\treturn getSlide(currentSlideNumber);\n\t}",
"public PrevPageAbstract getPPAbst(){\r\n\t\treturn ppagea;\r\n\t}",
"public Page getNextPageObject() {\n return getPageObject(this.currentIndex.viewIndex + 1);\n }",
"public io.dstore.values.StringValue getPage() {\n return page_ == null ? io.dstore.values.StringValue.getDefaultInstance() : page_;\n }",
"public boolean isPageActive(PageLocator loc, Object... args);",
"Integer getPage();",
"public int getCurrentTabId() {\n\t\treturn viewPager.getCurrentItem();\n\t}",
"public boolean getActive()\n {\n return this.active;\n }",
"public Page getPrevPageObject() {\n return getPageObject(this.currentIndex.viewIndex - 1);\n }",
"boolean getUsePage();",
"int getPage();",
"public int getPageId() {\n return this.page_id;\n }",
"public Integer getPageIdx() {\n return pageIdx;\n }",
"public PageInfo getPageInfo() {\n return pageInfo;\n }",
"public String getComponentPage() {\n\t\tLOGGER.info(\n\t\t\t\t\"Start of DataListTableBean:getComponentPage()\");\n\t\tString value = FacesContext.getCurrentInstance().\n\t\t\t\tgetExternalContext().getRequestParameterMap().get(\"datatable_selection\");\n\t\tif(value == \"\"){\n\t\t\treturn \"componentTable\";\n\t\t}\n\t\tString page = component.getPage();\n\t\tLOGGER.info(\n\t\t\t\t\"End of DataListTableBean:getComponentPage()\");\t\n\t\treturn page;\n\t}",
"public int getFirstPage() {\n\t\treturn firstPage;\n\t}",
"public boolean isFirstPage();",
"public Boolean getActive() {\n return this.active;\n }",
"public Boolean getActive() {\n return this.active;\n }",
"public PdfPage getFirstPage() {\n if (this.pages == null || this.pages.isEmpty()) {\n return null;\n }\n return this.pages.get(0);\n }",
"public lanyotech.cn.park.protoc.CommonProtoc.PageHelper getPage() {\n if (pageBuilder_ == null) {\n return page_;\n } else {\n return pageBuilder_.getMessage();\n }\n }",
"public Object getLastPageIdentifier()\n {\n return firstWizardPage.getIdentifier();\n }",
"public io.dstore.values.IntegerValue getActive() {\n return active_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : active_;\n }",
"public Sequence getActiveSequence() {\n\t\treturn activeSequence;\n\t}",
"public String getCurrentPageSource() {\n return driver.getPageSource();\n }",
"public H5Page getMainDOMPage() {\n H5Page mainDOMPage = (H5Page) this.mH5Page.get();\n Object obj = mainDOMPage.getExtra(WEB_VIEW_PAGE_TAG);\n if (obj instanceof H5Page) {\n return (H5Page) obj;\n }\n return mainDOMPage;\n }",
"public String getActiveClass () {\r\n\t\treturn (String) getStateHelper().eval(PropertyKeys.activeClass);\r\n\t}",
"public String getCurrentPageTitle() {\n return driver.getTitle();\n }",
"public final Scene getActiveScene() {\n return activeScene;\n }",
"public Boolean getActive() {\n\t\treturn this.Active;\n\t}",
"public java.lang.Boolean getActive() {\n return active;\n }",
"PageAgent getPage();",
"public String getPageNum() {\r\n return pageNum;\r\n }",
"public String getHomePage() {\r\n return this.homePage;\r\n }",
"public String getCurrentURLOfPage(){\n return driver.getCurrentUrl();\n\n }",
"public String getPageId() {\n return pageId;\n }",
"public int getPageStart(){\r\n\t\treturn (this.page -1) * perPageNum;\r\n\t}",
"public int getCurrentPage(String url) {\n Document doc;\n int result = 0;\n try {\n doc = Jsoup.connect(url).get();\n String position = doc.body().select(TABLE_SORT_OPTIONS)\n .last()\n .select(TR_TAG)\n .select(TD_TAG)\n .select(B_TAG)\n .text();\n result = Integer.parseInt(position);\n } catch (IOException e) {\n LOG.error(e, e.fillInStackTrace());\n }\n return result;\n }",
"public static int current() {\n\t\tString[] parts = MenuPath.path.split(\"_\");\n\t\tint len = parts.length;\n\t\t\n\t\treturn Integer.parseInt(parts[len-1]);\n\t}",
"public int getPageNumber() {\n return mPageNumber;\n }",
"public int getPageNumber() {\n return mPageNumber;\n }",
"public int getCurrent(){\r\n\t\treturn dialogToDisplay;\r\n\t}",
"int getPageNumber();",
"public int getHome() {\n return m_home;\n }",
"public io.dstore.values.StringValue getPage() {\n if (pageBuilder_ == null) {\n return page_ == null ? io.dstore.values.StringValue.getDefaultInstance() : page_;\n } else {\n return pageBuilder_.getMessage();\n }\n }",
"public io.dstore.values.IntegerValue getActive() {\n if (activeBuilder_ == null) {\n return active_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : active_;\n } else {\n return activeBuilder_.getMessage();\n }\n }",
"public String getActiveTitle() {\n\t\treturn getTitle(TitleBuilder.byActiveWindow());\n\t}",
"public abstract Page value();",
"public PDPage getPage()\n {\n return page;\n }",
"public HtmlPage getCurrentHtmlPage() throws BackendException {\n final Page tmpPage = getCurrentPage();\n if (tmpPage.isHtmlPage()) {\n return (HtmlPage) tmpPage;\n }\n\n final String tmpMessage = Messages.getMessage(\"noHtmlPage\", tmpPage.getClass());\n throw new BackendException(tmpMessage);\n }",
"@Override\n public synchronized WebHistoryItem getCurrentItem() {\n return getItemAtIndex(mCurrentIndex);\n }",
"@Accessor(qualifier = \"active\", type = Accessor.Type.GETTER)\n\tpublic Boolean getActive()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ACTIVE);\n\t}",
"private int getCurrentWindow() {\n // Subscribe to window information\n AccessibilityServiceInfo info = mUiAutomation.getServiceInfo();\n info.flags |= AccessibilityServiceInfo.FLAG_RETRIEVE_INTERACTIVE_WINDOWS;\n mUiAutomation.setServiceInfo(info);\n\n AccessibilityNodeInfo activeWindowRoot = mUiAutomation.getRootInActiveWindow();\n\n for (AccessibilityWindowInfo window : mUiAutomation.getWindows()) {\n if (window.getRoot().equals(activeWindowRoot)) {\n return window.getId();\n }\n }\n throw new RuntimeException(\"Could not find active window\");\n }",
"@UML(identifier=\"page\", obligation=OPTIONAL, specification=ISO_19115)\n String getPage();",
"public PageContext getPageContext() {\n return this.pageContext;\n }"
] | [
"0.7731503",
"0.76472145",
"0.75972116",
"0.75854534",
"0.7574968",
"0.75586504",
"0.747279",
"0.74354374",
"0.7356802",
"0.72679037",
"0.7185087",
"0.7073816",
"0.6668031",
"0.64668876",
"0.64668876",
"0.64668876",
"0.64668876",
"0.6466306",
"0.63953733",
"0.63391125",
"0.6337027",
"0.63196844",
"0.6288017",
"0.6240596",
"0.61910826",
"0.6154354",
"0.6134286",
"0.6134202",
"0.6131015",
"0.6131015",
"0.6129829",
"0.6046724",
"0.60174423",
"0.601329",
"0.59825736",
"0.5964015",
"0.5926105",
"0.5895335",
"0.58549774",
"0.5830562",
"0.58078843",
"0.58006567",
"0.57742286",
"0.5740983",
"0.5731531",
"0.56984997",
"0.5691641",
"0.56843495",
"0.5679352",
"0.56619865",
"0.5655947",
"0.56378424",
"0.5633112",
"0.5629587",
"0.5619827",
"0.56003565",
"0.5585991",
"0.5576212",
"0.5575101",
"0.5555781",
"0.5510134",
"0.5508323",
"0.54937404",
"0.54933345",
"0.54933345",
"0.54808813",
"0.5478549",
"0.5473421",
"0.5469908",
"0.5463741",
"0.5459429",
"0.5453217",
"0.5429426",
"0.54137886",
"0.54072183",
"0.5401669",
"0.54012644",
"0.5384054",
"0.53781724",
"0.53615534",
"0.5355244",
"0.53388715",
"0.53188556",
"0.5315085",
"0.5314665",
"0.53067285",
"0.53067285",
"0.5301106",
"0.5300578",
"0.52981013",
"0.5275381",
"0.52690303",
"0.5261398",
"0.5253254",
"0.5252568",
"0.5251798",
"0.5248798",
"0.5233703",
"0.52285725",
"0.52212507",
"0.5220147"
] | 0.0 | -1 |
Retrieve the new project open perspective preference setting | @SuppressWarnings( "restriction" )
public static void switchToLiferayPerspective()
{
String perspSetting = PrefUtil.getAPIPreferenceStore().getString( IDE.Preferences.PROJECT_OPEN_NEW_PERSPECTIVE );
String promptSetting =
IDEWorkbenchPlugin.getDefault().getPreferenceStore().getString(
IDEInternalPreferences.PROJECT_SWITCH_PERSP_MODE );
// Return if do not switch perspective setting and are not prompting
if( !( promptSetting.equals( MessageDialogWithToggle.PROMPT ) ) &&
perspSetting.equals( IWorkbenchPreferenceConstants.NO_NEW_PERSPECTIVE ) )
{
return;
}
// Map perspective id to descriptor.
IPerspectiveRegistry reg = PlatformUI.getWorkbench().getPerspectiveRegistry();
IPerspectiveDescriptor finalPersp = reg.findPerspectiveWithId( LiferayPerspectiveFactory.ID );
IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if( window != null )
{
IWorkbenchPage page = window.getActivePage();
if( page != null )
{
IPerspectiveDescriptor currentPersp = page.getPerspective();
// don't switch if the current perspective is the Liferay perspective
if( finalPersp.equals( currentPersp ) )
{
return;
}
}
// prompt the user to switch
if( !confirmPerspectiveSwitch( window, finalPersp ) )
{
return;
}
}
// replace active perspective setting otherwise
replaceCurrentPerspective( finalPersp );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Image getOpenPerspectiveImage() {\n\t\treturn iconService.getIcon(\"new_persp.gif\");\n\t}",
"String getSceneModePref();",
"public static Object getActiveGISProject() {\r\n Project project = ProjectPlugin.getPlugin().getProjectRegistry().getCurrentProject();\r\n \r\n if (project != null)\r\n return project;\r\n \r\n return ProjectPlugin.getPlugin().getProjectRegistry().getDefaultProject();\r\n }",
"int getCameraIdPref();",
"public int getPropertyShowMode()\n {\n return propertyShowMode;\n }",
"public static OpenEditPolicy createOpenEditPolicy() {\n\t\treturn (new ShowViewEditPolicy())\n\t\t\t\t.createOpenEditPolicy(\"org.eclipse.ui.views.PropertySheet\");\n\t}",
"boolean getPausePreviewPref();",
"String getDefaultPreference(String preferenceName) throws OntimizeJEERuntimeException;",
"@Override\n\tpublic Perspective createPerspective() {\n\t\tif (app == null) {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t// return the default perspective in case we're creating new preferences of\n\t\t// a virgin application.\n\t\tEuclidianView ev = app.getEuclidianView1();\n\t\tPerspective perspective = new Perspective();\n\n\t\tif (dockManager.getRoot() != null) {\n\t\t\t// get the information about the split panes\n\t\t\tDockSplitPaneW.TreeReader spTreeReader = new DockSplitPaneW.TreeReader(\n\t\t\t\t\tapp);\n\t\t\tperspective.setSplitPaneData(\n\t\t\t\t\tspTreeReader.getInfo(dockManager.getRoot()));\n\n\t\t\t// get the information about the dock panels\n\t\t\tDockPanelW[] panels = dockManager.getPanels();\n\t\t\tDockPanelData[] dockPanelInfo = new DockPanelData[panels.length];\n\n\t\t\tfor (int i = 0; i < panels.length; ++i) {\n\t\t\t\t// just the width of the panels isn't updated every time the\n\t\t\t\t// panel\n\t\t\t\t// is updated, so we have to take care of this by ourself\n\t\t\t\tif (panels[i].isVisible()) {\n\t\t\t\t\tDockSplitPaneW parent = panels[i].getParentSplitPane();\n\t\t\t\t\tif (parent != null && parent\n\t\t\t\t\t\t\t.getOrientation() == SwingConstants.HORIZONTAL_SPLIT) {\n\t\t\t\t\t\tpanels[i].setEmbeddedSize(panels[i].getWidth());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpanels[i].setEmbeddedSize(panels[i].getHeight());\n\t\t\t\t\t}\n\t\t\t\t\tpanels[i].setEmbeddedDef(panels[i].calculateEmbeddedDef());\n\t\t\t\t}\n\t\t\t\tdockPanelInfo[i] = panels[i].createInfo();\n\t\t\t}\n\t\t\t// Sort the dock panels as the entries with the smallest amount of\n\t\t\t// definition should\n\t\t\t// be read first by the loading algorithm.\n\t\t\tArrays.sort(dockPanelInfo, (o1, o2) -> o2.getEmbeddedDef().length()\n\t\t\t\t\t- o1.getEmbeddedDef().length());\n\n\t\t\tperspective.setDockPanelData(dockPanelInfo);\n\t\t} else {\n\t\t\tperspective.setSplitPaneData(\n\t\t\t\t\tgetDefaultPerspectives(Perspective.GEOMETRY - 1)\n\t\t\t\t\t\t\t.getSplitPaneData());\n\t\t\tperspective.setDockPanelData(\n\t\t\t\t\tgetDefaultPerspectives(Perspective.GEOMETRY - 1)\n\t\t\t\t\t\t\t.getDockPanelData());\n\t\t}\n\t\tperspective.setToolbarDefinition(((GuiManagerW) app.getGuiManager())\n\t\t\t\t.getGeneralToolbarDefinition());\n\t\tperspective.setShowToolBar(app.showToolBar());\n\t\tperspective.setShowAxes(ev.getShowXaxis() && ev.getShowYaxis());\n\t\tperspective.setShowGrid(ev.getShowGrid());\n\t\tperspective.setShowInputPanel(app.showAlgebraInput());\n\t\tperspective.setShowInputPanelCommands(app.showInputHelpToggle());\n\t\tperspective.setInputPosition(app.getInputPosition());\n\t\t\n\t\tperspective.setToolBarPosition(app.getToolbarPosition());\n\t\t//perspective.setShowToolBarHelp(app.showToolBarHelp());\n\t\t//perspective.setShowDockBar(app.isShowDockBar());\n\t\t//perspective.setDockBarEast(app.isDockBarEast());\n\n\t\tperspective.setLabelingStyle(ev.getSettings().getDefaultLabelingStyle());\n\n\t\treturn perspective;\n\t}",
"public PanelDisplayProject getDisplayProject(){\n return displayProject;\n }",
"public FlexoPerspective getCurrentPerspective() {\n\t\tif (currentLocation != null) {\n\t\t\treturn currentLocation.getPerspective();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"protected void setupPerspectiveSettings() {\n if (m_settings.getSettings(m_ownerApp.getApplicationID()) != null\n && m_settings.getSettings(m_ownerApp.getApplicationID()).size() > 1) {\n Map<Settings.SettingKey, Object> appSettings =\n m_settings.getSettings(m_ownerApp.getApplicationID());\n SingleSettingsEditor appEditor = new SingleSettingsEditor(appSettings);\n m_settingsTabs.addTab(\"General\", appEditor);\n m_perspectiveEditors.add(appEditor);\n }\n\n // main perspective\n Perspective mainPers = m_ownerApp.getMainPerspective();\n String mainTitle = mainPers.getPerspectiveTitle();\n String mainID = mainPers.getPerspectiveID();\n SingleSettingsEditor mainEditor =\n new SingleSettingsEditor(m_settings.getSettings(mainID));\n m_settingsTabs.addTab(mainTitle, mainEditor);\n m_perspectiveEditors.add(mainEditor);\n\n List<Perspective> availablePerspectives =\n m_ownerApp.getPerspectiveManager().getLoadedPerspectives();\n List<String> availablePerspectivesIDs = new ArrayList<String>();\n List<String> availablePerspectiveTitles = new ArrayList<String>();\n for (int i = 0; i < availablePerspectives.size(); i++) {\n Perspective p = availablePerspectives.get(i);\n availablePerspectivesIDs.add(p.getPerspectiveID());\n availablePerspectiveTitles.add(p.getPerspectiveTitle());\n }\n\n Set<String> settingsIDs = m_settings.getSettingsIDs();\n for (String settingID : settingsIDs) {\n if (availablePerspectivesIDs.contains(settingID)) {\n int indexOfP = availablePerspectivesIDs.indexOf(settingID);\n\n // make a tab for this one\n Map<Settings.SettingKey, Object> settingsForID =\n m_settings.getSettings(settingID);\n if (settingsForID != null && settingsForID.size() > 0) {\n SingleSettingsEditor perpEditor =\n new SingleSettingsEditor(settingsForID);\n m_settingsTabs.addTab(availablePerspectiveTitles.get(indexOfP),\n perpEditor);\n m_perspectiveEditors.add(perpEditor);\n }\n }\n }\n }",
"final public boolean isPerspective()\n {\n return ComponentUtils.resolveBoolean(getProperty(PERSPECTIVE_KEY), true);\n }",
"public org.eclipse.core.resources.IProject getProject() {\n \t\treturn project;\n \t}",
"public Object createPrefsEditor()\n \t{\n \t\treturn this.createPrefsEditor(true, false);\n \t}",
"String getPreviewRotationPref();",
"public IProject getNewProject() {\r\n\t\treturn newProject;\r\n\t}",
"private int getSavedOption(){\n SharedPreferences preferences = getSharedPreferences(PREFERENCE_FILE_NAME, MODE_PRIVATE);\n\n return preferences.getInt(SAVED_WORKSPACE_POSITION_PREFERENCE_FIELD, -1);\n }",
"public FlexoProject getProject() {\n \t\treturn findCurrentProject();\n \t}",
"Bundle getOpenInOtherWindowActivityOptions();",
"private static void replaceCurrentPerspective( IPerspectiveDescriptor persp )\r\n {\n IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\r\n\r\n if( window != null )\r\n {\r\n IWorkbenchPage page = window.getActivePage();\r\n\r\n if( page != null )\r\n {\r\n // Set the perspective.\r\n page.setPerspective( persp );\r\n }\r\n }\r\n }",
"boolean getStartupFocusPref();",
"Object getPreference(String prefKey, Object defaultValue);",
"public PanelNewProject getNewProject(){\n return nuevoProyecto;\n }",
"public static final String getProject() { return project; }",
"public static final String getProject() { return project; }",
"public String getProjcontactor() {\n return projcontactor;\n }",
"public Project getProject()\n {\n \treturn project;\n }",
"String getFocusPref(boolean is_video);",
"AdminPreference getDefaultAdminPreference();",
"public Project getProject() {\n\t\treturn bnd.getProject();\n\t}",
"public ProjectInfo getProjectInfo()\n {\n\treturn c_projectInfo;\n }",
"void openChooser(Property<String> pathProperty);",
"public boolean openSettings(){\n return true;\n }",
"private static String getProjectVersion() {\n\t\tString version;\n\n\t\ttry {\n\t\t\tfinal Properties pomProperties = new Properties();\n\t\t\tpomProperties.load(Main.class.getResourceAsStream(\n \"/META-INF/MediaPlayer/pom.properties\"));\n\t\t\tversion = pomProperties.getProperty(\"version\");\n\t\t} catch(Exception e) {\n\t\t\tversion = \"RUNNING.IN.IDE.FULL\";\n\t\t}\n\n\t\treturn version;\n\t}",
"protected abstract IEditorPreferences getPreferences();",
"String getPreference(String user, String preferenceName) throws OntimizeJEERuntimeException;",
"public Project getProject() {\r\n return project;\r\n }",
"public Preferences getActionPreferences() {\n return actionPrefs;\n }",
"public OpenEditPolicy createOpenEditPolicy(final String viewID) {\n\t\treturn new OpenEditPolicy() {\n\t\t\t@Override\n\t\t\tprotected Command getOpenCommand(Request request) {\n\t\t\t\t// fjcano :: if the hosting figure has any diagram\n\t\t\t\t// associated, open one of them\n\t\t\t\tDiagram diagramToOpen = getDiagramToOpen();\n\t\t\t\tif (diagramToOpen != null) {\n\t\t\t\t\treturn new OpenDiagramCommand(diagramToOpen).toGEFCommand();\n\t\t\t\t}\n\t\t\t\t// fjcano :: if no diagram is available to open, check if a\n\t\t\t\t// new one can be created\n\t\t\t\tString diagramToCreate = getDiagramKindToCreate();\n\t\t\t\tif (diagramToCreate != null) {\n\t\t\t\t\tIGraphicalEditPart host = MDTUtil\n\t\t\t\t\t\t\t.getHostGraphicalEditPart(this);\n\t\t\t\t\treturn new OpenAsDiagramCommand(getGMFREsource(host), host\n\t\t\t\t\t\t\t.resolveSemanticElement(), diagramToCreate)\n\t\t\t\t\t\t\t.toGEFCommand();\n\t\t\t\t}\n\t\t\t\t// fjcano :: by default, open the properties view\n\t\t\t\tTransactionalEditingDomain domain = getEditingDomain();\n\t\t\t\tif (domain != null) {\n\t\t\t\t\treturn (new OpenViewCommand(domain, viewID)).toGEFCommand();\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tprotected Resource getGMFREsource(IGraphicalEditPart editPart) {\n\t\t\t\tif (editPart != null) {\n\t\t\t\t\treturn editPart.getNotationView().eResource();\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Return true if an associated diagram was opened.\n\t\t\t * \n\t\t\t * @return\n\t\t\t */\n\t\t\tprotected Diagram getDiagramToOpen() {\n\t\t\t\tIGraphicalEditPart grahicalHostEditPart = (IGraphicalEditPart) getHost();\n\t\t\t\tEObject element = grahicalHostEditPart.resolveSemanticElement();\n\t\t\t\tList<Diagram> diagramL = MultiDiagramUtil\n\t\t\t\t\t\t.getDiagramsAssociatedToElement(element);\n\n\t\t\t\tif (diagramL.isEmpty()) {\n\t\t\t\t\treturn null;\n\t\t\t\t} else if (diagramL.size() == 1) {\n\t\t\t\t\treturn diagramL.get(0);\n\t\t\t\t}\n\n\t\t\t\tElementListSelectionDialog dialog = new ElementListSelectionDialog(\n\t\t\t\t\t\tPlatformUI.getWorkbench().getActiveWorkbenchWindow()\n\t\t\t\t\t\t\t\t.getShell(), new GeneralLabelProvider());\n\t\t\t\tdialog.setMessage(\"Select the diagram to be opened\");\n\t\t\t\tdialog.setTitle(\"Diagram selection\");\n\t\t\t\tdialog.setElements(diagramL.toArray());\n\t\t\t\tif (dialog.open() == Dialog.OK) {\n\t\t\t\t\treturn (Diagram) dialog.getFirstResult();\n\t\t\t\t}\n\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tprotected String getDiagramKindToCreate() {\n\t\t\t\tIGraphicalEditPart grahicalHostEditPart = (IGraphicalEditPart) getHost();\n\t\t\t\tList<String> diagramL = EClassToDiagramRegistry.getInstance()\n\t\t\t\t\t\t.getDiagramsForEditPart(grahicalHostEditPart);\n\n\t\t\t\tif (diagramL.isEmpty()) {\n\t\t\t\t\treturn null;\n\t\t\t\t} else if (diagramL.size() == 1) {\n\t\t\t\t\treturn diagramL.get(0);\n\t\t\t\t}\n\n\t\t\t\tElementListSelectionDialog dialog = new ElementListSelectionDialog(\n\t\t\t\t\t\tPlatformUI.getWorkbench().getActiveWorkbenchWindow()\n\t\t\t\t\t\t\t\t.getShell(), new GeneralLabelProvider());\n\t\t\t\tdialog.setMessage(\"Select the diagram to be created\");\n\t\t\t\tdialog.setTitle(\"Diagram selection\");\n\t\t\t\tdialog.setElements(diagramL.toArray());\n\t\t\t\tif (dialog.open() == Dialog.OK) {\n\t\t\t\t\treturn (String) dialog.getFirstResult();\n\t\t\t\t}\n\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tprotected TransactionalEditingDomain getEditingDomain() {\n\t\t\t\tif (getHost() instanceof IGraphicalEditPart) {\n\t\t\t\t\treturn ((IGraphicalEditPart) getHost()).getEditingDomain();\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\n\t}",
"public Project getProject(){\n\t\treturn this.project;\n\t}",
"public PropertySet getViewProperties() {\r\n return prefs;\r\n }",
"public MavenProject getCurrentProject()\n {\n return currentProject;\n }",
"public Object getProjection() {\n return getValue(PROP_PROJECTION);\n }",
"private MinesweeperPreferences getPrefs() {\n return Main.getPrefs();\n }",
"protected Project getProject() {\n return getConfiguration().getProject();\n }",
"public boolean getAdminProject()\r\n {\r\n return (m_adminProject);\r\n }",
"public Project getProject() {\n return project;\n }",
"public Project getProject() {\n return project;\n }",
"public String getProjectno() {\r\n return projectno;\r\n }",
"public int getCurrent(){\r\n\t\treturn dialogToDisplay;\r\n\t}",
"PreferenceDialogTitleAttribute getDialogTitle();",
"public String getProjId() {\n return projId;\n }",
"public Project getProject() {\n\t\treturn project;\n\t}",
"ProjectRepresentation getWorkingProject();",
"public File getPreferencesFile() {\n\t\treturn preferencesFile;\n\t}",
"public Project getProject()\n {\n return project;\n }",
"public CreateProfilePane getCreateProfilePane() {\n\t\treturn csp;\n\t}",
"public static String GetLastOpenedProject() {\n\t\tString lastOpenedProjectPath = \"\";\n\t\tif (applicationSettingsFile != null) {\n\t\t\t// Get all \"files\"\n\t\t\tNodeList lastProject = applicationSettingsFile.getDocumentElement().getElementsByTagName(\"lastProject\");\n\t\t\t// Handle result\n\t\t\tif (lastProject.getLength() > 0) {\n\t\t\t\tlastOpenedProjectPath = Utilities.getXmlNodeAttribute(lastProject.item(0), \"value\");\n\t\t\t}\n\t\t}\n\t\treturn lastOpenedProjectPath;\n\t}",
"public ProjectModel getCurrentProject() {\n if (projects.size() > 0) {\n return projects.get(0);\n }\n else return null;\n }",
"private void showPreferenceSettings() {\n \tfor(PrefKeysE k: PrefKeysE.values()) {\n \t\tString key = k.getKey();\n \t\tboolean isFound = Tt.isPreferencePresent(key);\n \t\tint prtFlags = 0; //don't print from getPreference()\n// \t\tboolean valB;\n// \t\tint valI;\n// \t\tdouble valD;\n \t\tString valFoundStr = \"\";\n \t\tString prefix = String.format(\"%-40s: %-7s: found? %s, default \", key, k.getType().name(), (isFound ? \"Y\" : \"N\"));\n \t\tswitch(k.getType()) {\n \t\tcase BOOLEAN:\n \t\t\tboolean dfltB = k.getDefaultBoolean();\n \t\t\tvalFoundStr += dfltB;\n \t\t\tif(isFound) {\n \t\t\t\tboolean val = Tt.getPreference(k, dfltB, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current \" + val;\n \t\t\t}\n \t\t\tbreak;\n \t\tcase INT:\n \t\t\tint dfltI = k.getDefaultInt();\n \t\t\tvalFoundStr += dfltI;\n \t\t\tif(isFound) {\n \t\t\t\tint val = Tt.getPreference(k, dfltI, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current \" + val;\n \t\t\t}\n \t\t\tbreak;\n \t\tcase DOUBLE:\n \t\t\tdouble dfltD = k.getDefaultDouble();\n \t\t\tvalFoundStr = String.format(\"% 1.4f\", dfltD);\n \t\t\tif(isFound) {\n \t\t\t\tdouble val = Tt.getPreference(k, dfltD, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += String.format(\", current % 1.4f\", val);\n \t\t\t}\n \t\t\tbreak;\n \t\tcase STRING:\n \t\t\tString dfltS = k.getDefaultString();\n\t\t\t\tvalFoundStr += \"'\" + dfltS + \"'\";\n \t\t\tif(isFound) {\n \t\t\t\tString val = Tt.getPreference(k, dfltS, prtFlags, PrefCreateE.DO_NOT_CREATE);\n \t\t\t\tvalFoundStr += \", current '\" + val + \"'\";\n \t\t\t}\n \t\t\tbreak;\n \t\t}\n\t\t\tP.println(prefix + valFoundStr);\n\n// \t\tif(k.getType().equals(PrefTypeE.BOOLEAN)) \n \t}\n }",
"Project getProject();",
"public static PreferencesView createPreferencesView() {\n // Retrieve application preferences and attach them to their view\n // (This instance must be instanciated after dependencies)\n final LinkedHashMap<String, JPanel> panels = new LinkedHashMap<String, JPanel>(2);\n panels.put(\"General settings\", new PreferencePanel());\n\n final PreferencesView preferencesView = new PreferencesView(getFrame(), Preferences.getInstance(), panels);\n preferencesView.init();\n\n return preferencesView;\n }",
"public static Node projModeMOf(Node sideEffect) {\n if (sideEffect.getMode().equals(Mode.getM())) {\n return sideEffect;\n }\n return getMemProjSuccessor(sideEffect);\n }",
"private ProjectMgr getPmNameTrueLoadActualProject() {\n ProjectMgr pm = null;\n try {\n pm = new ProjectMgr(\"Example\", true);\n\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n }\n\n IOException e;\n return pm;\n }",
"@JavascriptInterface\n public String getPreference(String name) {\n Log.d(TAG, \"getPreference: \" + name);\n return preferences.getString(name, \"\");\n }",
"public IProject getProject() {\n\treturn this.project;\n }",
"public IProject getProject();",
"IngestModuleGlobalSettingsPanel getGlobalSettingsPanel();",
"public VariableDeclaration getProject() {\n return project;\n }",
"boolean getTouchCapturePref();",
"public int getProjectID() {\n return projectID;\n }",
"public ProjectFile getProject()\r\n {\r\n return m_project;\r\n }",
"public Project getProject()\n\t{\n\t\treturn this.project;\n\t}",
"private File showOpenDialog()\n {\n \tJFileChooser fc = new JFileChooser(m_preferences.get(\"path-load-game\"));\n \tint ret = fc.showOpenDialog(this);\n \tif (ret == JFileChooser.APPROVE_OPTION)\n \t return fc.getSelectedFile();\n \treturn null;\n }",
"String getLockOrientationPref();",
"public String getProjectName() {\n return getProperty(Property.PROJECT_NAME);\n }",
"public boolean onPreferenceClick(final Preference preference) {\n SimpleFileDialog FolderChooseDialog = new SimpleFileDialog(getActivity(), SimpleFileDialog.FolderChooseWrite,\n new SimpleFileDialog.SimpleFileDialogListener() {\n @Override\n public void onChosenDir(String chosenDir) {\n // The code in this function will be executed when the dialog OK button is pushed\n ((EditTextPreference)preference).setText(chosenDir);\n try {\n SettingsActivity.createWorkingDir(getActivity(), new File(chosenDir));\n } catch (Exception ex) {\n Toast.makeText(getActivity(), ex.getMessage(), Toast.LENGTH_SHORT).show();\n }\n AvnLog.i(Constants.LOGPRFX, \"select work directory \" + chosenDir);\n }\n\n @Override\n public void onCancel() {\n\n }\n });\n FolderChooseDialog.Default_File_Name=\"avnav\";\n FolderChooseDialog.dialogTitle=getString(R.string.selectWorkDir);\n FolderChooseDialog.newFolderNameText=getString(R.string.newFolderName);\n FolderChooseDialog.newFolderText=getString(R.string.createFolder);\n FolderChooseDialog.chooseFile_or_Dir(myPref.getText());\n return true;\n }",
"public boolean getProjectExternallyEdited()\r\n {\r\n return (m_projectExternallyEdited);\r\n }",
"public IProject getProject() {\n return mProject;\n }",
"int wkhtmltoimage_get_global_setting(PointerByReference settings, Pointer name, Pointer value, int vs);",
"AdminPreference getAdminPreference(AuthenticationToken admin);",
"String getFlashPref();",
"public String getProjectName(){\n return projectModel.getProjectName();\n }",
"public int open() {\n\t\tint value = super.open();\n\t\tif (popupCloser == null) {\n\t\t\tpopupCloser = new PopupCloserListener();\n\t\t}\n\t\tpopupCloser.installListeners();\n\t\tProposal p = getSelectedProposal();\n\t\tif (p != null) {\n\t\t\tshowProposalDescription();\n\t\t}\n\t\treturn value;\n\t}",
"HibProject getProject(InternalActionContext ac);",
"public jkt.hrms.masters.business.MstrProject getProject () {\n\t\treturn project;\n\t}",
"public static IProject getSelectedProject() {\n\t\tIProject activeProject = null;\n\t\tIWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();\n\t\tISelectionService selectionService = window.getSelectionService();\n\t\tISelection selection = selectionService.getSelection(IPageLayout.ID_PROJECT_EXPLORER);\n\t\tif (selection instanceof StructuredSelection) {\n\t\t\tIResource resource = (IResource) ((StructuredSelection) selection).getFirstElement();\n\t\t\tactiveProject = resource.getProject();\n\t\t}\n\t\t\n\t\treturn activeProject;\n\t}",
"public NetworkCallInformation getPreferences() {\n return preferencesModel.getPreferences();\n\n }",
"@Override\n\tpublic IProject getProject() {\n\t\treturn fProject;\n\t}",
"protected IDescriptor getActiveDescriptor() {\n if (editor != null) {\n return editor.getActiveDisplayPane().getDescriptor();\n }\n return null;\n }",
"public static String getActiveProjectName() {\r\n Project project = ProjectPlugin.getPlugin().getProjectRegistry().getCurrentProject();\r\n \r\n if (project == null)\r\n project = ProjectPlugin.getPlugin().getProjectRegistry().getDefaultProject();\r\n \r\n return project.getName();\r\n }",
"public JPanel buildProjectProperties()\n\t{\n\t\tprojectProperties.setPreferredSize(new Dimension(200, 190)); //Set the size of the window\n \tprojectProperties.setBorder (projectTitle); //Add a border around the window\n \t\n \treturn projectProperties;\n\t}",
"boolean getGeotaggingPref();",
"@Override \r\n \tprotected IDialogSettings getDialogSettings() {\n \t\tIDialogSettings temp = super.getDialogSettings();\t\r\n \t\treturn temp;\r\n \t}",
"public String getProjectName() {\n\t\treturn project;\n\t}",
"public void openProject(AbstractProject project) {\n\t\tsetActiveValue(project.getId(), \"1\"); //$NON-NLS-1$\n\t}",
"public String getProjectTitle() {\n return getProperty(Property.PROJECT_TITLE);\n }",
"public Man getPreference(int rank) {\r\n\t\treturn preference[rank - 1]; // rank = 1 => preference[0]\r\n\t}",
"private JMenuItem getMiConfigure() {\n\t\tif (miConfigure == null) {\n\t\t\tmiConfigure = new JMenuItem();\n\t\t\tmiConfigure.setText(\"Ayarlar\");\n\t\t\tmiConfigure.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tDlgConfiguration dlgConf = new DlgConfiguration(MainFrame.this);\n\t\t\t\t\tdlgConf.setModal(true);\n\t\t\t\t\tdlgConf.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn miConfigure;\n\t}"
] | [
"0.6105316",
"0.57859457",
"0.57357985",
"0.5566905",
"0.55043626",
"0.5485163",
"0.5408164",
"0.53928626",
"0.5384743",
"0.534943",
"0.53374964",
"0.5334004",
"0.5329347",
"0.5299211",
"0.5299134",
"0.5284442",
"0.52615017",
"0.5238116",
"0.52034354",
"0.518799",
"0.51826674",
"0.5152908",
"0.51207775",
"0.51203746",
"0.51185733",
"0.51185733",
"0.5118473",
"0.5113604",
"0.51115596",
"0.51094556",
"0.51062715",
"0.50905687",
"0.5071792",
"0.5056904",
"0.50530374",
"0.50491184",
"0.50265306",
"0.50207824",
"0.5012051",
"0.5006781",
"0.5004967",
"0.5003739",
"0.49955073",
"0.49791893",
"0.4971584",
"0.49461544",
"0.49454856",
"0.49383685",
"0.49383685",
"0.49311632",
"0.4928459",
"0.49275023",
"0.49272743",
"0.492713",
"0.49253207",
"0.49029937",
"0.49007827",
"0.49004957",
"0.48987848",
"0.48982188",
"0.48977",
"0.4880281",
"0.48744026",
"0.48710033",
"0.48691136",
"0.48657888",
"0.48589942",
"0.48556864",
"0.48552716",
"0.48512706",
"0.48481566",
"0.4847135",
"0.48463094",
"0.48359755",
"0.48307022",
"0.48269105",
"0.48255563",
"0.48210403",
"0.4816959",
"0.48119476",
"0.48012358",
"0.48005018",
"0.47977823",
"0.47967368",
"0.47944564",
"0.47938538",
"0.47930616",
"0.47926292",
"0.47918987",
"0.47911626",
"0.47886425",
"0.47886103",
"0.4778033",
"0.47775653",
"0.47715",
"0.47596678",
"0.47511977",
"0.47428262",
"0.47351456",
"0.47333297"
] | 0.6011506 | 1 |
se inician las clases Productos y clientes, Vector y se invocan los metodos | public static void main(String[] args) {
Producto p = null;//
Vector productos = new Vector();
Cliente c = null;
Vector clientes = new Vector();
//Hacemos do-while para entrar al ciclo del menu
do{
//MENU
System.out.print("\nMENU\n 1. Registrar Producto\n 2. Registrar venta y cliente\n 3. Buscar producto\n 4. Reporte\n 5.Salir ");
//leemos la opcion del menu
opcion = entrada.nextInt();
//Hacemos un switch para cada caso del menu
switch(opcion){
//Opcion 1
case 1:
System.out.print("Favor ingresar codigo de producto: ");
//Leemos cada variable
codigo = entrada.nextInt();
System.out.print("Favor ingresar nombre del producto: ");
nom = entrada.next();
System.out.print("Favor ingresar precio: ");
precio = entrada.nextDouble();
System.out.print("Favor ingresar stock: ");
stock = entrada.nextInt();
//La funcion busqueda hace que comparemos el codigo con todos los productos
p = busqueda(codigo, productos);
if (p==null) {
//si no se encuentra el codigo se agrega un nuevo producto
productos.addElement(new Producto(codigo,nom,precio,stock));
System.out.print("Producto agregado");
}
else
//si se encuentra digita ese comentario
System.out.print("ya existe este producto");
break;
//Opcion 2
case 2:
// creamos variables auxiliares
String a = "s";
String op = new String();
int i = 0;
int x = 0;
boolean s = false;
double total = 0;
System.out.print("Favor de digitar su nombre: ");
nom = entrada.next();
System.out.print("Favor de digitar su numero telefonico: ");
numt = entrada.next();
do {
System.out.print("Favor ingresar codigo: ");
codigo = entrada.nextInt();
//Buscamos el codigo
p = busqueda(codigo, productos);
//Si se encuentra el codigo entra al if de compra
if(p!=null){
//si el stock es mayor a 0 sige
if(p.getStock() > 0){
//ciclo para ver si la cantidad del producto que queremos comprar es menor o igual al stock exsistente
do {
System.out.print("Cuanto producto quiere comprar: ");
x = entrada.nextInt();
/*Si sabemos que la cantidad es menor o
igual a la que hay en stock se suma a la variable i para saber cantidad que hemos comprado*/
if(x <= p.getStock()) {
i += x;
// se resta el stock
p.setStock(p.getStock() - x);
System.out.print("Venta realizada");
//mostramos el resultado
p.mostrarResultado();
//Multiplicamos la cantidad de producto que compramos y se lo sumamos al total
total+=(p.getPrecio())* x;
s = true;
}
}while(s == false);
}
else
System.out.print("Sin stock");
}
else {
System.out.print("Producto inexistente");
}
// si la respuesta es no se suman los precios para saber el total
System.out.print("Deseas comprar otro producto: s/n");
op = entrada.next();
//Hacemos un .euquals para comparar el string de la variable de a.
}while(op.equals(a));
// Se agrega un nuevo cliente
clientes.addElement(new Cliente(nom,numt,i,total));
System.out.print("Cliente agregado\n");
System.out.print("Su total es: " + total);
break;
//Opcion 3
case 3:
System.out.print("Favor ingresar codigo: ");
codigo = entrada.nextInt();
// Busca el codigo
p = busqueda(codigo, productos);
// si existe muestra los resultados
if(p!=null)
p.mostrarResultado();
else
//si no el producto no existe
System.out.print("Producto inexistente");
break;
//Opcion 4
case 4:
System.out.print("Reporte: ");
CrearArchivo(productos, clientes);
// Leer archivo generado.
LeerArchivo();
// Asignar lectura de archivo a un nuevo objeto.
break;
default: System.out.println("favor ingresar opcion de menu");
}
// si es 5 se sale del ciclo
}while(opcion!= 5);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String mostrarVentas() {\n String ventas = \"\";\n for (int i = 0; i < posicionActual; i++) { //Recorre el vector hasra la poscion actual, y almacena toda la informacion de estos en una variable String la cual se retornara \n ventas += mostrarCliente(i);\n }\n return ventas;\n }",
"private void cargarProductos() {\r\n\t\tproductos = productoEJB.listarInventariosProductos();\r\n\r\n\t\tif (productos.size() == 0) {\r\n\r\n\t\t\tList<Producto> listaProductos = productoEJB.listarProductos();\r\n\r\n\t\t\tif (listaProductos.size() > 0) {\r\n\r\n\t\t\t\tMessages.addFlashGlobalWarn(\"Para realizar una venta debe agregar los productos a un inventario\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"public Venta(Producto producto,Cliente comprador,Cliente vendedor){\n this.fechaCompra=fechaCompra.now();\n this.comprador=comprador;\n this.vendedor=vendedor;\n this.producto=producto;\n \n }",
"public Vector produitVectorielle(Vector vec){\n return new Vector(y * vec.z - z * vec.y, z * vec.x - x * vec.z, x * vec.y - y * vec.x);\t\t\n }",
"public Entrepot(Vector v){\r\n\t\tthis.id =(Integer)v.get(0);\r\n\t\tthis.localisation=new Localisation(\r\n\t\t\t\t(Integer)v.get(1),\r\n\t\t\t\t(String)v.get(2),\r\n\t\t\t\t(String)v.get(3),\r\n\t\t\t\t(String)v.get(4));\r\n\t\tthis.telephone=(String)v.get(5);\r\n\t}",
"private static void Relatorio() throws Exception \r\n {//Inicio menuRelatorio\r\n byte opcao;\r\n boolean fecharMenu = false;\r\n int idCliente, idProduto, quant;\r\n Produto p = null;\r\n Cliente c = null;\r\n do{\r\n System.out.println(\r\n \"\\n\\t*** MENU RELATORIO ***\\n\" +\r\n \"0 - Mostrar os N produtos mais Vendidos\\n\" +\r\n \"1 - Mostrar os N melhores clientes\\n\" +\r\n \"2 - Mostrar os produtos comprados por um cliente\\n\" +\r\n \"3 - Mostrar Clientes que compraram um produto\\n\" +\r\n \"4 - Sair\"\r\n );\r\n System.out.print(\"Digite sua opcao: \");\r\n opcao = read.nextByte();\r\n switch(opcao){\r\n case 0:\r\n ArrayList<Produto> listP = arqProdutos.toList();\r\n if(listP.isEmpty()) System.out.println(\"\\nNão tem produtos em nosso sistema ainda!\");\r\n else{\r\n System.out.print(\"Digite a quantidade de produtos que deseja saber: \");\r\n quant = read.nextInt();\r\n System.out.println();\r\n //Ordena a lista de forma decrescente:\r\n listP.sort((p1,p2) -> - Integer.compare(p1.getQuantVendidos(), p2.getQuantVendidos()));\r\n for(Produto n: listP){\r\n System.out.println(\"Produto de ID: \" + n.getID() + \" Nome: \" + n.nomeProduto + \"\\tQuantidade vendida: \" + n.getQuantVendidos());\r\n quant--;\r\n if(quant == 0) break;\r\n }\r\n }\r\n break;\r\n case 1:\r\n ArrayList<Cliente> listC = arqClientes.toList();\r\n if(listC.isEmpty()) System.out.println(\"Não ha clientes para mostrar!\");\r\n else{\r\n System.out.print(\"Digite a quantidade de Clientes: \");\r\n quant = read.nextInt();\r\n System.out.println();\r\n //Ordena a lista de forma decrescente:\r\n listC.sort((c1,c2) -> - Float.compare(c1.getTotalGasto(), c2.getTotalGasto()));\r\n for(Cliente n: listC){\r\n System.out.println(\"Cliente de ID: \" + n.getID() + \" Nome: \" + n.nomeCliente + \"\\tGasto total: \" + tf.format(n.getTotalGasto()));\r\n quant--;\r\n if(quant == 0) break; \r\n }\r\n }\r\n break;\r\n case 2:\r\n System.out.print(\"Digite o id do cliente: \");\r\n idCliente = read.nextInt();\r\n c = arqClientes.pesquisar(idCliente - 1);\r\n if (c != null){\r\n int[] idsProdutos = indice_Cliente_Produto.lista(idCliente);\r\n System.out.println(\"\\nO cliente \" + c.nomeCliente + \" de ID \" + c.getID() + \" comprou: \");\r\n for(int i = 0; i < idsProdutos.length; i++){\r\n p = arqProdutos.pesquisar(idsProdutos[i] - 1);\r\n System.out.println(\r\n \"\\n\\tProduto \" + i + \" -> \" + \r\n \" ID: \" + p.getID() + \r\n \" Nome: \" + p.nomeProduto + \r\n \" Marca: \" + p.marca\r\n );\r\n }\r\n }\r\n else {\r\n System.out.println(\"\\nID Invalido!\");\r\n Thread.sleep(1000);\r\n }\r\n break;\r\n case 3:\r\n System.out.print(\"Digite o id do Produto a consultar: \");\r\n idProduto = read.nextInt();\r\n p = arqProdutos.pesquisar(idProduto - 1);\r\n if(p != null){\r\n int[] idsClientes = indice_Produto_Cliente.lista(idProduto);\r\n System.out.println(\"\\nO produto '\" + p.nomeProduto + \"' de ID \" + p.getID() + \" foi comprado por: \");\r\n for(int i = 0; i < idsClientes.length; i++){\r\n c = arqClientes.pesquisar(idsClientes[i] - 1);\r\n System.out.println();\r\n System.out.println(c);\r\n }\r\n }\r\n else{\r\n System.out.println(\"\\nProduto Inexistende!\");\r\n Thread.sleep(1000);\r\n }\r\n break;\r\n case 4:\r\n fecharMenu = true;\r\n break; \r\n default:\r\n System.out.println(\"Opcao invalida!\\n\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n }while(!fecharMenu); \r\n }",
"public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }",
"public BaseDatosProductos iniciarProductos() {\n\t\tBaseDatosProductos baseDatosProductos = new BaseDatosProductos();\n\t\t// construcion datos iniciales \n\t\tProductos Manzanas = new Productos(1, \"Manzanas\", 8000.0, 65);\n\t\tProductos Limones = new Productos(2, \"Limones\", 2300.0, 15);\n\t\tProductos Granadilla = new Productos(3, \"Granadilla\", 2500.0, 38);\n\t\tProductos Arandanos = new Productos(4, \"Arandanos\", 9300.0, 55);\n\t\tProductos Tomates = new Productos(5, \"Tomates\", 2100.0, 42);\n\t\tProductos Fresas = new Productos(6, \"Fresas\", 4100.0, 3);\n\t\tProductos Helado = new Productos(7, \"Helado\", 4500.0, 41);\n\t\tProductos Galletas = new Productos(8, \"Galletas\", 500.0, 8);\n\t\tProductos Chocolates = new Productos(9, \"Chocolates\", 3500.0, 806);\n\t\tProductos Jamon = new Productos(10, \"Jamon\", 15000.0, 10);\n\n\t\t\n\n\t\tbaseDatosProductos.agregar(Manzanas);\n\t\tbaseDatosProductos.agregar(Limones);\n\t\tbaseDatosProductos.agregar(Granadilla);\n\t\tbaseDatosProductos.agregar(Arandanos);\n\t\tbaseDatosProductos.agregar(Tomates);\n\t\tbaseDatosProductos.agregar(Fresas);\n\t\tbaseDatosProductos.agregar(Helado);\n\t\tbaseDatosProductos.agregar(Galletas);\n\t\tbaseDatosProductos.agregar(Chocolates);\n\t\tbaseDatosProductos.agregar(Jamon);\n\t\treturn baseDatosProductos;\n\t\t\n\t}",
"@org.junit.Test\n public void inverser_vector() throws Exception {\n //voici un commentaire\n Vector<Integer> inppuut = new Vector<Integer>();\n inppuut.add(1);\n inppuut.add(2);\n inppuut.add(3);\n inppuut.add(4);\n\n Vector<Integer> expec = new Vector<Integer>();\n expec.add(4);\n expec.add(3);\n expec.add(2);\n expec.add(1);\n\n VectorHelper.inverser_vector(inppuut);\n assertEquals(expec, inppuut);\n\n }",
"public void ingresaVehiculo (){\r\n \r\n Vehicle skate = new Skateboard(\"vanz\", \"2009\", \"1 metro\");\r\n Vehicle carro = new Car(\"renault\", \"2009\", \"disel\",\"corriente\" );\r\n Vehicle jet = new Jet(\"jet\", \"2019\", \"premiun\", \"ocho motores\");\r\n Vehicle cicla = new Bicycle(\"shimano\", \"2010\",\"4 tiempos\" ) ; \r\n Vehuculo.add(skate);\r\n Vehuculo.add(carro);\r\n Vehuculo.add(jet);\r\n Vehuculo.add(cicla); \r\n \r\n /*\r\n for en el cual se hace el parceo y se instancia la clase Skateboard\r\n \r\n */\r\n for (Vehicle Vehuculo1 : Vehuculo) {\r\n if(Vehuculo1 instanceof Skateboard){\r\n Skateboard skatevehiculo = (Skateboard)Vehuculo1;\r\n skatevehiculo.imprimirPadre();\r\n skatevehiculo.imprimirSkate();\r\n skatevehiculo.imprimirInterfaz();\r\n }\r\n /*\r\n se intancia y se hace el parceo de la clase car\r\n \r\n */\r\n else if(Vehuculo1 instanceof Car){\r\n \r\n Car carvhiculo = (Car)Vehuculo1;\r\n carvhiculo.imprimirPadre();\r\n carvhiculo.imprimirCarro();\r\n carvhiculo.imprimirVehiculopotenciado();\r\n \r\n \r\n \r\n }\r\n /*se intancia y se hace el parceo de la clase\r\n \r\n */\r\n else if(Vehuculo1 instanceof Jet){\r\n \r\n Jet jethiculo = (Jet)Vehuculo1;\r\n jethiculo.imprimirPadre();\r\n jethiculo.imprimirJet();\r\n jethiculo.imprimirVehiculopotenciado();\r\n jethiculo.imprimirInterfaz();\r\n }\r\n else if(Vehuculo1 instanceof Bicycle){\r\n \r\n Bicycle ciclavehiculo = (Bicycle)Vehuculo1;\r\n ciclavehiculo.imprimirPadre();\r\n ciclavehiculo.imprimirBici();\r\n }\r\n }\r\n \r\n \r\n }",
"@Override\r\n\tpublic void jouer() {\r\n\t\t// liste servant a retenir les cartes potentiellement selectionnables\r\n\t\tArrayList<ICarte> listeCartesPossibles = new ArrayList<ICarte>();\r\n\t\t// sert a choisir une carte aleatoirement parmis celles selectionnables\r\n\t\tRandom random = new Random();\r\n\t\t\r\n\t\t//enregistrement des cartes pouvant etre selectionnees\r\n\t\tfor(int i=0 ; i<plateau.getListeCartesMelangees().size() ; i++) {\r\n\t\t\tif (plateau.getListeCartesMelangees().get(i).getSurPlateau() == true) {\r\n\t\t\t\tlisteCartesPossibles.add(plateau.getListeCartesMelangees().get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// choix aleatoire de la premiere carte\r\n\t\tcarte1 =listeCartesPossibles.get(random.nextInt(listeCartesPossibles.size()));\r\n\t\t\r\n\t\t//choix aleatoire de la seconde carte\r\n\t\tlisteCartesPossibles.remove(carte1);\r\n\t\tcarte2 =listeCartesPossibles.get(random.nextInt(listeCartesPossibles.size()));\r\n\t\t\r\n\t\tplateau.setCartesSelectionnees(true);\r\n\t}",
"static public ArrayList<Integer> SommerVecteur(ArrayList<Integer> vect1,ArrayList<Integer> vect2)throws TailleException\n {\n \n ArrayList<Integer> vect3 =new ArrayList<Integer>();//déclaration de la liste qui cintient le résultat de la somme\n int ind=0;//indice des éléments dans la nouvelle liste\n if(vect1.size()!= vect2.size())//test qui la taille des deux listes est différente\n {\n System.out.println(\"les deux vecteurs ont des tailles différentes ! vous pouvez pas faire la somme\");//afficher qu'on peut pas faire la somme des deux vecteurs\n throw new TailleException();//générer une excdeption si la taille est différente\n }\n else{//sinon on peut faire la somme\n int indice;//un indice pour parcourir les deux vecteurs\n \n for(indice=0;indice<vect1.size();indice++)//boucle pour parcourir les deux vecteurs\n { \n ind = vect1.get(indice)+vect2.get(indice);//effectuer la somme entre les deux éléments des deux vecteurs\n vect3.add(ind);//ajouter la somme obtenue a la nouvelle liste\n \n }\n return(vect3); //retourner la liste qui contient la somme \n }\n \n \n \n }",
"public Vector listaAsignaturasTotal(String nombre_titulacion)\n {\n try\n { \n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query\n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n\n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n\n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n\n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\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 static void promedioBoletaCliente() {\r\n\t\tPailTap clienteBoleta = getDataTap(\"C:/Paula/masterset/data/9\");\r\n\t\tPailTap boletaProperty = getDataTap(\"C:/Paula/masterset/data/4\");\r\n\t\t\r\n\t\tSubquery promedio = new Subquery(\"?Cliente_id\", \"?Promedio\", \"?Dia\")\r\n\t\t\t\t.predicate(clienteBoleta, \"_\", \"?data\")\r\n\t\t\t\t.predicate(boletaProperty, \"_\", \"?data2\")\r\n\t\t\t\t.predicate(new ExtractClienteBoleta(), \"?data\").out(\"?Cliente_id\", \"?Boleta_id\", \"?Dia\")\r\n\t\t\t\t.predicate(new ExtractBoletaTotal(), \"?data2\").out(\"?Boleta_id\",\"?Total\")\r\n\t\t\t\t.predicate(new Avg(), \"?Total\").out(\"?Promedio\");\r\n\t\t\r\n\t\tSubquery tobatchview = new Subquery(\"?json\")\r\n\t\t\t\t.predicate(promedio, \"?Cliente\", \"?Promedio\", \"?Dia\")\r\n\t\t\t\t.predicate(new ToJSON(), \"?Cliente\", \"?Promedio\", \"?Dia\").out(\"?json\");\r\n\t\tApi.execute(new batchview(), tobatchview);\r\n\t\t//Api.execute(new StdoutTap(), promedio);\r\n\t}",
"public VistaProductos() {\n setUndecorated(true);\n initComponents();\n ValidadSoloNumeros(TextCodProduct);\n ValidadCaracteres(TextDescripcion);\n ValidadSoloNumeros(TextPrecio);\n ValidadSoloNumeros(TextCostoproduc);\n ValidadSoloNumeros(txtIvap);\n cn = Conexion.getConn();\n cargar();\n\n LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(cc.listaProvee().toArray()));\n\n obj = ControllerSql.getInstancia();\n proveedores = cc.listaProvee();\n // LitsadeProovedores.setModel(new javax.swing.DefaultComboBoxModel(proveedores.toArray()));\n LitsadeProovedores.setSelectedIndex(-1);\n }",
"public static void main(String[] args) {\n \n Grupo [] grupos = new Grupo[5]; \n Grupo grupo1=new Grupo();\n Grupo grupo2=new Grupo();\n Grupo grupo3=new Grupo();\n Grupo grupo4=new Grupo();\n Grupo grupo5=new Grupo();\n \n \n // le doy valores a los atributos\n \n grupo1.nombre=\"verde\";\n grupo2.nombre=\"amarillo\";\n grupo3.nombre=\"rojo\";\n grupo4.nombre=\"naranja\";\n grupo5.nombre=\"azul\";\n \n grupo1.descripcion=\"verde como las hojas\";\n grupo2.descripcion=\"amarillo como el sol\";\n grupo3.descripcion=\"rojo como el tomate\";\n grupo4.descripcion=\"naranja como la naranja\";\n grupo5.descripcion=\"azul como el cielo\";\n \n // asigno los elementos al vector \n \n grupos[0]=grupo1; \n grupos[1]=grupo2;\n grupos[2]=grupo3;\n grupos[3]=grupo4;\n grupos[4]=grupo5;\n \n System.out.println(\"Los elementos del vector son: \\n\"); \n // muestro los elementos del vector\n \n for(Grupo r: grupos){\n r.mostrar();\n }\n \n //b con array \n \n // creo un array Grupis de cinco elementos\n \n ArrayList<Grupo> Grupis = new ArrayList<>();\n Grupis.add(grupo1);\n Grupis.add(grupo2);\n Grupis.add(grupo3);\n Grupis.add(grupo4);\n Grupis.add(grupo5);\n \n System.out.println(\"\\n Los elementos del Array son: \\n\");\n // muestro los elementos del array\n \n for (Grupo f: Grupis){\n f.mostrar(); \n }\n \n }",
"public void CargarProveedores() {\n DefaultTableModel modelo = (DefaultTableModel) vista.Proveedores.jTable1.getModel();\n modelo.setRowCount(0);\n res = Conexion.Consulta(\"select * From proveedores\");\n try {\n while (res.next()) {\n Vector v = new Vector();\n v.add(res.getInt(1));\n v.add(res.getString(2));\n v.add(res.getString(3));\n v.add(res.getString(4));\n modelo.addRow(v);\n vista.Proveedores.jTable1.setModel(modelo);\n }\n } catch (SQLException e) {\n }\n }",
"private static void VeureProductes (BaseDades bd) {\n ArrayList <Producte> llista = new ArrayList<Producte>();\n llista = bd.consultaPro(\"SELECT * FROM PRODUCTE\");\n if (llista != null)\n for (int i = 0; i<llista.size();i++) {\n Producte p = (Producte) llista.get(i);\n System.out.println(\"ID=>\"+p.getIdproducte()+\": \"\n +p.getDescripcio()+\"* Estoc: \"+p.getStockactual()\n +\"* Pvp: \"+p.getPvp()+\" Estoc Mínim: \"\n + p.getStockminim());\n }\n }",
"void realizarSolicitud(Cliente cliente);",
"public static void main(String [ ] args){\n\t\t Fecha Hoy = new Fecha(12,12,2020);\r\n\t\t ArrayList<Cuenta> cuentas = new ArrayList<Cuenta>();\r\n\t\t \r\n\t\t Cuenta c0 = new CtaAhorros(10000,10);\r\n\t\t Cuenta c1 = new CtaCheques(256070,0);\r\n\t\t Cuenta c2 = new CtaCredito(13245,100);\r\n\t\t Cuenta c3 = new CtaCheques(765,20);\r\n\t\t Cuenta c4 = new CtaAhorros(9000,20);\r\n\t\t Cuenta c5 = new CtaAhorros(2300,10);\r\n\t\t Cuenta c6 = new CtaCredito(25000,12);\r\n\t\t \r\n\t\t cuentas.add(c0);\r\n\t\t cuentas.add(c1);\r\n\t\t cuentas.add(c2);\r\n\t\t cuentas.add(c3);\r\n\t\t cuentas.add(c4);\r\n\t\t cuentas.add(c5);\r\n\t\t \r\n\t\t Cliente C1=new Cliente(\"QUIJOTE\",cuentas,\"QX400\");\r\n\t\t Hoy.AvanzarTiempo(11,1,0);\r\n\t\t \r\n\t\t C1.depositar(1,1200, Hoy);\r\n\t\t C1.retirar(2,1100, Hoy);\r\n\t\t System.out.println(\"saldo cuenta 3:\"+C1.consultar(3,Hoy));\r\n\t\t C1.depositar(4,600, Hoy);\r\n\t\t \r\n\t\t //C1.reportarEdosCtas();\r\n\t\t \r\n\t\t }",
"public static void main(String[] args) {\n Client clientIP = new IndividualEntrepreneur(100000);\n System.out.println(clientIP);\n// client.deposit(555);\n// System.out.println(client);\n// client.deposit(1234);\n// System.out.println(client);\n// client.withdraw(1498);\n// System.out.println(client);\n\n Client clientOOO= new legalEntity(200000);\n System.out.println(clientOOO);\n// client1.deposit(1234);\n// System.out.println(client1);\n// client1.withdraw(10000);\n// System.out.println(client1);\n clientOOO.send(clientIP,2000);\n System.out.println(clientIP);\n System.out.println(clientOOO);\n clientIP.getInformation();\n clientOOO.getInformation();\n\n System.out.println(\"Hah Set \" + clientIP.getClientSet());\n System.out.println(clientIP.getClientSet());\n clientIP.getClientSet().clear();\n System.out.println(clientIP.getClientSet());\n Client clientInd = new Individual(50000);\n System.out.println(clientIP.getClientSet());\n clientIP.getClientSet().add(clientInd);\n clientIP.getClientSet().add(clientInd);\n System.out.println(clientIP.getClientSet());\n\n }",
"public Hipermercado(){\r\n this.clientes = new CatalogoClientes();\r\n this.produtos = new CatalogoProdutos();\r\n this.numFiliais = 3;\r\n this.faturacao = new Faturacao(this.numFiliais);\r\n this.filial = new ArrayList<>(this.numFiliais);\r\n for (int i = 0; i < this.numFiliais; i++){\r\n this.filial.add(new Filial());\r\n }\r\n \r\n this.invalidas = 0;\r\n }",
"private static void menuCliente(int idCliente) throws Exception {//Inicio menuCliente \r\n byte opcao;\r\n int idCompra;\r\n ArrayList<Compra> minhasCompras = null;\r\n ArrayList<ItemComprado> meusItensComprados = null;\r\n ArrayList<Produto> listProdutos = null;\r\n boolean encerrarPrograma = false;\r\n do {\r\n try {\r\n System.out.println(\r\n \"\\n\\t*** MENU CLIENTE ***\\n\"\r\n + \"0 - Nova compra\\n\"\r\n + \"1 - Minhas compras\\n\"\r\n + \"2 - Alterar meus dados\\n\"\r\n + \"3 - Excluir conta\\n\"\r\n + \"4 - Sair\"\r\n );\r\n System.out.print(\"Digite sua opcao: \");\r\n opcao = read.nextByte();\r\n switch (opcao) {\r\n case 0:\r\n idCompra = arqCompra.inserir(new Compra(idCliente, new Date()));\r\n compraProdutos(idCliente, idCompra);\r\n break;\r\n case 1:\r\n listProdutos = arqProdutos.toList();\r\n minhasCompras = listComprasDoCliente(idCliente);\r\n for (Compra c : minhasCompras) {\r\n System.out.println(\"\\n*** Compra de ID: \" + c.getID() + \" Data: \" + dt.format(c.dataCompra));\r\n meusItensComprados = listarOsItensComprados(c.getID());\r\n for (ItemComprado ic : meusItensComprados) {\r\n for (Produto p : listProdutos) {\r\n if (p.getID() == ic.idProduto) {\r\n System.out.println(\r\n \"\\n\\tProduto: \" + p.nomeProduto\r\n + \"\\n\\tMarca: \" + p.marca\r\n + \"\\n\\tPreço: \" + tf.format(ic.precoUnitario)\r\n + \"\\n\\tQuant: \" + ic.qtdProduto\r\n );\r\n }\r\n }\r\n }\r\n }\r\n break;\r\n case 2:\r\n uptadeDados(idCliente);\r\n break;\r\n case 3:\r\n System.out.println(\"\\nConfirmar opção? \\n0 - Sim\\n1 - Nao\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n switch (read.nextInt()) {\r\n case 0:\r\n if (arqClientes.remover(idCliente - 1)) {\r\n System.out.println(\"Remoção feita com sucesso!\");\r\n }\r\n break;\r\n case 1:\r\n System.out.println(\"\\nObrigado por continuar!\");\r\n break;\r\n default:\r\n System.out.println(\"\\nOpcao invalida!\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n encerrarPrograma = true;\r\n break;\r\n case 4:\r\n encerrarPrograma = true;\r\n break;\r\n default:\r\n System.out.println(\"Opcao invalida!\\n\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n } catch (InputMismatchException inputMismatchException) {\r\n System.out.println(\"\\nErro !\\nTente novamente!\");\r\n Thread.sleep(1000);\r\n read.next();//Limpar buffer do Scanner\r\n }\r\n } while (!encerrarPrograma);\r\n }",
"private static void crearPedidoConStockDeVariedades() throws RemoteException {\n\t\tlong[] idVariedades = { 25, 33 };\n\t\tint[] cantidades = { 2, 3 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 1\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}",
"public VendingMachine(){\n this.customerMoney = new ArrayList<>();\n this.bank = new ArrayList<>();\n this.stock = new ArrayList<>();\n stock.add(new Product(\"Cookie\", .50, 10));\n stock.add(new Product(\"Crackers\", .25, 10));\n stock.add(new Product(\"Candy\", .45, 10));\n stock.add(new Product(\"Water\", 1.0, 10));\n stock.add(new Product(\"Juice\", 1.5, 10));\n }",
"public Vector listaAsignaturas(String nombre_titulacion)\n {\n try\n {\n Date fechaActual = new Date();\n SimpleDateFormat formato = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\n //Se obtiene una conexion\n Connection conexion = this.bbdd.getConexion();\n\n //Se prepara la query\n String query = \"SELECT * FROM asignaturatotal \";\n query += \"WHERE fechainicio <='\" + formato.format(fechaActual) +\"' \";\n query += \"AND fechafin >= '\"+formato.format(fechaActual)+\"' AND tit_nombre='\"+nombre_titulacion+\"' AND activa = 's'\";\n\n //Se crea un vector de asignaturas\n Vector vectorAsignaturas = new Vector();\n\n //Se ejecuta la query \n Statement st = conexion.createStatement();\n ResultSet resultado = st.executeQuery(query);\n \n //Para cada fila se creará un objeto y se rellenará\n //con los valores de las columnas.\n while(resultado.next())\n {\n asignatura asignatura = new asignatura();\n \n asignatura.setCodigo(resultado.getString(\"codigo\"));\n asignatura.setTitulo(resultado.getString(\"titulo\"));\n asignatura.setFechaInicio(resultado.getDate(\"fechainicio\"));\n asignatura.setFechaFin(resultado.getDate(\"fechafin\"));\n asignatura.setResponsable(resultado.getString(\"responsable\"));\n asignatura.setEmail(resultado.getString(\"email\"));\n asignatura.setTelefono(resultado.getString(\"telefono\"));\n \n //Se añade la asignatura al vector de asignaturas\n vectorAsignaturas.add(asignatura);\n }\n\n //Se cierra la conexión\n this.bbdd.cerrarConexion(conexion);\n\n return vectorAsignaturas;\n }\n catch(SQLException e)\n {\n System.out.println(\"Error al acceder a las asignaturas de la Base de Datos: \"+e.getMessage());\n return null;\n }\n }",
"private VectorArit CasteoVectores(VectorArit v, TipoPrimitivo t) {\r\n switch (t) {\r\n case STRING:\r\n return VectorToString(v);\r\n case NUMERIC:\r\n return VectorToDouble(v);\r\n case INTEGER:\r\n return VectorToInt(v);\r\n default:\r\n return v;\r\n }\r\n }",
"public void actualizarClasificacionArticuloProveedor(Collection<ProveedorClasificacionDTO> proveedorClasificacionDTOs, Integer codigoTipoProcesoIntegracion, String idUsuarioRegistro,Boolean sincronizarDescuentoNotaCredito, ProveedorVO proveedorVO, Collection<DatosOrdenCompra> ordenesCompra) throws SICException;",
"public static void main(String[] args) {\n\t// write your code her\n\n //Crear objeto de la clase BeneficiosCovid19\n BeneficiosCovid19 beneficioscovid = new BeneficiosCovid19();\n\n // Declarar tamaño vector\n int nroarray;\n\n // Crear lista de la Clase BeneficiosCovid19\n ArrayList<BeneficiosCovid19> lista1 = new ArrayList<BeneficiosCovid19>();\n ArrayList<BeneficiosCovid19> lista2 = new ArrayList<BeneficiosCovid19>();\n\n //Ingresar Informacion al lista1\n nroarray= 1;\n lista1 = IngresarInfoLista(nroarray);\n /*\n for (int i = 0; i < lista1.size(); i++){\n System.out.println(\"ID: \" + lista1.get(i).getId());\n System.out.println(\"Nombre: \" + lista1.get(i).getNombre());\n System.out.println(\"Valor: \" + lista1.get(i).getValorSubsidio());\n }\n */\n\n //Ingresar Informacion al lista2\n nroarray= 2;\n lista2 = IngresarInfoLista(nroarray);\n /*\n for (int i = 0; i < lista2.size(); i++){\n System.out.println(\"ID: \" +lista2.get(i).getId());\n System.out.println(\"Nombre: \" +lista2.get(i).getNombre());\n System.out.println(\"Valor: \" +lista2.get(i).getValorSubsidio());\n }\n */\n\n //Comparar y mostra comparacion entre lista\n getMejorbeneficios(lista1,lista2);\n\n }",
"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 }",
"@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }",
"private static void crearPedidoGenerandoOPC() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25, 29, 33 };\n\t\tint[] cantidades = { 6, 8, 11 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 3\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\t\t\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\n\t}",
"public static void main(String[] args) {\n\t\tSecretario s1 = new Secretario(\"Mauro\", \"Pérez\", \"2168\", \"Calle Falsa\", 999, 500, true, \"Fax\");\n\t\tVendedor v1 = new Vendedor(\"Pepe\", \"Martinez\", \"2177\", \"Calle de atras\", 998, 750, 669, \"Alguna\", 0.10);\n\t\tVendedor v2 = new Vendedor(\"Antonio\", \"Martinez\", \"2144\", \"Calle de delante\", 996, 750, 669, \"Alguna\", 0.10);\n\t\tJefeZona j1 = new JefeZona(\"Manolo\", \"Ortega\", \"2155\", \"Una calle\", 997, 1000, true);\n\t\t\n\t\tClientes c1 = new Clientes(\"Cliente 1\");\n\t\tClientes c2 = new Clientes(\"Cliente 2\");\n\t\t\n\t\ts1.setSupervisor(v1);\n\t\t\n\t\tv1.agregarCliente(c1);\n\t\tv1.agregarCliente(c2);\n\t\tv1.eliminarCliente(c1);\n\t\t\n\t\tj1.agregarVendedor(v1);\n\t\tj1.agregarVendedor(v2);\n\t\t\n\t\tSystem.out.println(v1.toString());\n\t\tv1.incrementarSalario();\n\t\tSystem.out.println(v1.toString());\n\t\tSystem.out.println();\n\t\tSystem.out.println(s1.toString());\n\t\ts1.incrementarSalario();\n\t\tSystem.out.println(s1.toString());\n\t\tSystem.out.println();\n\t\tSystem.out.println(j1.toString());\n\t\tj1.incrementarSalario();\n\t\tSystem.out.println(j1.toString());\n\t}",
"private void buscarProducto() {\n EntityManagerFactory emf= Persistence.createEntityManagerFactory(\"pintureriaPU\");\n List<Almacen> listaproducto= new FacadeAlmacen().buscarxnombre(jTextField1.getText().toUpperCase());\n DefaultTableModel modeloTabla=new DefaultTableModel();\n modeloTabla.addColumn(\"Id\");\n modeloTabla.addColumn(\"Producto\");\n modeloTabla.addColumn(\"Proveedor\");\n modeloTabla.addColumn(\"Precio\");\n modeloTabla.addColumn(\"Unidades Disponibles\");\n modeloTabla.addColumn(\"Localizacion\");\n \n \n for(int i=0; i<listaproducto.size(); i++){\n Vector vector=new Vector();\n vector.add(listaproducto.get(i).getId());\n vector.add(listaproducto.get(i).getProducto().getDescripcion());\n vector.add(listaproducto.get(i).getProducto().getProveedor().getNombre());\n vector.add(listaproducto.get(i).getProducto().getPrecio().getPrecio_contado());\n vector.add(listaproducto.get(i).getCantidad());\n vector.add(listaproducto.get(i).getLocalizacion());\n modeloTabla.addRow(vector);\n }\n jTable1.setModel(modeloTabla);\n }",
"public static void main(String[] args) {\n\t\tint opc;\r\n\t\t\r\n\t\tVector <Coches> coches=new Vector();\r\n\t\t\r\n\t\tScanner sc=new Scanner(System.in);\r\n\t\t\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"barra menu\");\r\n\t\t\topc=sc.nextInt();\r\n\t\t\tswitch(opc) {\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t\tsc.nextLine();\r\n\t\t\t\tSystem.out.println(\"anota matricula\");\r\n\t\t\t\tString matricula=sc.nextLine();\r\n\t\t\t\tcoches.add(new Coches(matricula));\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t\tif(coches.size()>0) {\r\n\t\t\t\t\tCoches salir=coches.remove(0);\r\n\t\t\t\t\tSystem.out.println(salir);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"no hay coches en la cola\");\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t\tSystem.out.println(coches.toString());\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t\tsc.nextLine();\r\n\t\t\t\tSystem.out.println(\"anota matricula\");\r\n\t\t\t\tmatricula=sc.nextLine();\r\n\t\t\t\tcoches.indexOf(new Coches(matricula));//indexof solo busca un objeto busca de uno en uno\r\n\t\t\t\t/*int pos=Buscar(coches, matricula);//--------primer ejemplo es lo mismo\r\n\t\t\t\tif(pos==-1)\r\n\t\t\t\t\tSystem.out.println(\"no encontrado\");------\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"encontrado en posicion\"+pos);\r\n\t\t\t\t*/\r\n\t\t\t\tbreak;\r\n\t\t\tcase 5:\r\n\t\t\t\tsc.nextLine();\r\n\t\t\t\tSystem.out.println(\"anota matricula\");\r\n\t\t\t\tmatricula=sc.nextLine();\r\n\t\t\t\tif(coches.remove(new Coches(matricula))==true)\r\n\t\t\t\t\tSystem.out.println(\"coche borrado\");\r\n\t\t\t\telse\r\n\t\t\t\t\tSystem.out.println(\"no existe el coche\");\r\n\t\t\t\tbreak;\r\n\t\t\t\tdefault: System.out.println(\"opcion incorrecta\");\r\n\t\t\t}\r\n\t\t}while(opc!=6);\r\n\t}",
"public static void main(String[] args) {\n\n\t\tMulta_Trafico mt1 = new Multa_Trafico(20, \"B\");\n\t\tmt1.setResponsable(\"Paco\");\n\t\tmt1.setDescripcion(\"Exceso de velocidad\");\n\t\tmt1.setMatricula(\"MK\");\n\t\tmt1.setFecha(\"Viernes\");\n\t\tmt1.verdatos();\n\n\t\tMulta_Covid mc2 = new Multa_Covid(10, \"C\");\n\t\tmc2.setResponsable(\"Pepa\");\n\t\tmc2.setDescripcion(\"No llevaba mascarilla\");\n\t\tmc2.setMascarilla(false);\n\t\tmc2.setFecha(\"Jueves\");\n\t\tmc2.verdatos();\n\n\t\t// Para saber de qué tipo es una clase, objeto, etc... con instanceof\n\t\t// Método saberTipo\n\n\t\tExpediente expe1 = new Expediente(10, \"A\");\n\t\tSystem.out.println(saberTipo(expe1));\n\t\tSystem.out.println(saberTipo(mt1));\n\t\tSystem.out.println(saberTipo(mc2));\n\n\t\tMulta m3 = new Multa(10, \"A\"); // variables del metodo ImporteMayor\n\t\tMulta m4 = new Multa(10, \"B\");\n\t\tm3.setDescripcion(\"Multa\");\n\t\tm3.setResponsable(\"Alberto\");\n\t\tm3.setImporte(200);\n\t\tm4.setImporte(2000);\n\n\t\tSystem.out.println(ImporteMayor(m3, m4));\n\t\tSystem.out.println(conocerTipo(m3));\n\t\tSystem.out.println(m3);\n\n\t\t// array de 50 posiciones para el método MultaMayor\n\n\t\tMulta multas[] = new Multa[50];\n\n\t\tfor (int i = 0; i < multas.length; i++) { // Relleno con descripción e importe\n\t\t\tmultas[i] = new Multa(i, \"A\");\n\t\t\tmultas[i].setDescripcion(\"Descripción\" + i);\n\t\t\tmultas[i].setImporte(Math.random() * 1000 + 25);\n\t\t}\n\t\tSystem.out.println(CalcularMayor(multas));\n\n\t}",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n\n try {\n\n Object o[] = null;\n List<Producto> listP = CProducto.findProductoEntities();\n boolean resp = false; //ESTO ES LA BANDERA PARA SABER SI EL PRODUCTO EXISTE\n int num = 0;\n String nombreP = txtproducto.getText();\n for (int i = 0; i < listP.size(); i++) {\n\n if (listP.get(i).getNombreProducto().equals(txtproducto.getText())) {\n resp = true;\n num = i;\n }\n }\n if (resp != true) { //VA A VENDER UN PRODUCTO QUE NO EXISTE:\n JOptionPane.showMessageDialog(null, \"Estás intentando vender un articulo que no existe!\\nRevisa tu inventario.\", \"ERROR\", JOptionPane.WARNING_MESSAGE);\n\n } else {\n //Obtenemos el valor total y la cantidad que tenemos hasta ahora en inventarios.\n int cantidadTotal = listP.get(num).getCantidadAlmacenada();\n\n //Obtenemos el valor total de la compra que acabamos de realizar\n int cantidadCompra = Integer.parseInt(txtcantidad.getText());\n\n int resultado = cantidadTotal - cantidadCompra;\n if (resultado < 0) {\n JOptionPane.showMessageDialog(null, \"Lo sentimos, no tenemos esa cantidad.\\nActualmente solo le podemos vender \" + cantidadTotal + \" unidades de ese articulo.\", \"Total excedido\", JOptionPane.INFORMATION_MESSAGE);\n\n int respuesta = JOptionPane.showConfirmDialog(null, \"¿Desea realizar una compra por esta cantidad?\", \"Alerta!\", JOptionPane.YES_NO_OPTION);\n\n if (respuesta == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n this.setVisible(false);\n }\n } else if (resultado == 0) {\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n CProducto.destroy(id);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n JOptionPane.showMessageDialog(null, \"El producto ahora se encentra agotado!\");\n this.setVisible(false);\n } else {\n\n int id = traerNombre(nombreP);\n Transaccion t = new Transaccion();\n\n //REALIZAMOS EL REGISTRO DE LOS DATOS EN LA TABLA TRANSACCION\n t.setNombreProducto(txtproducto.getText());\n t.setCantidad(Integer.parseInt(txtcantidad.getText()));\n t.setPrecio(Float.parseFloat(txtvalorU.getText()));\n\n //Extraemos la fecha del txtdate\n t.setFechaT(txtdate.getDate());\n t.setTipo(\"salida\");\n\n CTransaccion.create(t);\n\n float valorTotal = listP.get(num).getValorUnitario() * cantidadTotal;\n\n float valorTotalC = Float.parseFloat(txtvalorU.getText()) * cantidadCompra;\n\n //Actualizamos el valor total y la cntidad de inventario (Producto)\n valorTotal = valorTotal - valorTotalC;\n float valorUnitario = valorTotal / resultado; //Este es el costo unitario\n Producto pEdit = CProducto.findProducto(id);\n pEdit.setCantidadAlmacenada(resultado);\n pEdit.setValorUnitario(valorUnitario);\n\n CProducto.edit(pEdit);\n JOptionPane.showMessageDialog(null, \"Transacción Exitosa.\");\n this.setVisible(false);\n }\n }\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage() + e.getCause());\n }\n }",
"public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }",
"public static void llenarSoriana(){\r\n Producto naranja1 = new Producto (\"naranja\", \"el huertito\", 25, 0);\r\n Nodo<Producto> nTemp1 = new Nodo(naranja1);\r\n listaSoriana.agregarNodo(nTemp1);\r\n \r\n Producto naranja2 = new Producto (\"naranja\", \"el ranchito\", 34, 0);\r\n Nodo<Producto> nTemp2 = new Nodo (naranja2);\r\n listaSoriana.agregarNodo(nTemp2);\r\n \r\n Producto manzana3 = new Producto (\"manzana\", \"el rancho de don chuy\", 24, 0);\r\n Nodo<Producto> nTemp3 = new Nodo (manzana3);\r\n listaSoriana.agregarNodo(nTemp3);\r\n \r\n Producto manzana4 = new Producto (\"manzana\", \"la costeña\", 15, 0);\r\n Nodo<Producto> nTemp4 = new Nodo(manzana4);\r\n listaSoriana.agregarNodo(nTemp4);\r\n \r\n Producto platano5 = new Producto (\"platano\", \"el Huertito\", 26, 0);\r\n Nodo<Producto> nTemp5 = new Nodo (platano5);\r\n listaSoriana.agregarNodo(nTemp5);\r\n \r\n Producto platano6 = new Producto (\"platano\", \"granjita dorada\", 36, 0);\r\n Nodo<Producto> nTemp6 = new Nodo (platano6);\r\n listaSoriana.agregarNodo (nTemp6);\r\n \r\n Producto pera7 = new Producto (\"pera\", \"el rancho de don chuy\", 38, 0);\r\n Nodo<Producto> nTemp7 = new Nodo (pera7);\r\n listaSoriana.agregarNodo(nTemp7);\r\n \r\n Producto pera8 = new Producto (\"pera\", \"la costeña\", 8,0);\r\n Nodo<Producto> nTemp8 = new Nodo (pera8);\r\n listaSoriana.agregarNodo(nTemp8);\r\n \r\n Producto durazno9 = new Producto (\"durazno\", \"el huertito\", 12.50, 0);\r\n Nodo<Producto> nTemp9 = new Nodo (durazno9);\r\n listaSoriana.agregarNodo(nTemp9);\r\n \r\n Producto fresa10 = new Producto (\"fresa\", \"el rancho de don chuy\", 35.99,0);\r\n Nodo<Producto> nTemp10 = new Nodo (fresa10);\r\n listaSoriana.agregarNodo(nTemp10);\r\n \r\n Producto fresa11 = new Producto (\"fresa\", \"grajita dorada\", 29.99,0);\r\n Nodo<Producto> nTemp11 = new Nodo (fresa11);\r\n listaSoriana.agregarNodo(nTemp11);\r\n \r\n Producto melon12 = new Producto (\"melon\", \"la costeña\", 18.50, 0);\r\n Nodo<Producto> nTemp12 = new Nodo (melon12);\r\n listaSoriana.agregarNodo(nTemp12);\r\n \r\n Producto melon13 = new Producto (\"melon\", \"el huertito\", 8.50, 0);\r\n Nodo<Producto> nTemp13 = new Nodo (melon13);\r\n listaSoriana.agregarNodo(nTemp13);\r\n \r\n Producto elote14 = new Producto (\"elote\", \"el ranchito\", 6, 0);\r\n Nodo<Producto> nTemp14 = new Nodo (elote14);\r\n listaSoriana.agregarNodo(nTemp14);\r\n \r\n Producto elote15 = new Producto (\"elote\", \"moctezuma\", 12, 0);\r\n Nodo<Producto> nTemp15 = new Nodo (elote15);\r\n listaSoriana.agregarNodo(nTemp15);\r\n \r\n Producto aguacate16 = new Producto (\"aguacate\", \"la costeña\", 35, 0);\r\n Nodo<Producto> nTemp16 = new Nodo (aguacate16);\r\n listaSoriana.agregarNodo(nTemp16);\r\n \r\n Producto cebolla17 = new Producto (\"cebolla\", \"granjita dorada\", 8.99, 0);\r\n Nodo<Producto> nTemp17 = new Nodo (cebolla17);\r\n listaSoriana.agregarNodo(nTemp17);\r\n \r\n Producto tomate18 = new Producto (\"tomate\", \"el costeñito feliz\", 10.50, 0);\r\n Nodo<Producto> nTemp18 = new Nodo (tomate18);\r\n listaSoriana.agregarNodo(nTemp18);\r\n \r\n Producto tomate19 = new Producto (\"tomate\", \"el ranchito\", 8.99, 0);\r\n Nodo<Producto> nTemp19 = new Nodo (tomate19);\r\n listaSoriana.agregarNodo(nTemp19);\r\n \r\n Producto limon20 = new Producto (\"limon\", \"la costeña\", 3.50, 0);\r\n Nodo<Producto> nTemp20 = new Nodo (limon20);\r\n listaSoriana.agregarNodo(nTemp20);\r\n \r\n Producto limon21 = new Producto (\"limon\", \"el ranchito\", 10.99, 0);\r\n Nodo<Producto> nTemp21 = new Nodo (limon21);\r\n listaSoriana.agregarNodo(nTemp21);\r\n \r\n Producto papas22 = new Producto (\"papas\", \"la costeña\", 11, 0);\r\n Nodo<Producto> nTemp22 = new Nodo(papas22);\r\n listaSoriana.agregarNodo(nTemp22);\r\n \r\n Producto papas23 = new Producto (\"papas\", \"granjita dorada\", 4.99, 0);\r\n Nodo<Producto> nTemp23 = new Nodo(papas23);\r\n listaSoriana.agregarNodo(nTemp23);\r\n \r\n Producto chile24 = new Producto (\"chile\", \"el rancho de don chuy\", 2.99, 0);\r\n Nodo<Producto> nTemp24 = new Nodo (chile24);\r\n listaSoriana.agregarNodo(nTemp24);\r\n \r\n Producto chile25 = new Producto (\"chile\",\"la costeña\", 12, 0);\r\n Nodo<Producto> nTemp25 = new Nodo (chile25);\r\n listaSoriana.agregarNodo(nTemp25);\r\n \r\n Producto jamon26 = new Producto (\"jamon\",\"fud\", 25, 1);\r\n Nodo<Producto> nTemp26 = new Nodo(jamon26);\r\n listaSoriana.agregarNodo(nTemp26);\r\n \r\n Producto jamon27 = new Producto(\"jamon\", \"kir\", 13.99, 1);\r\n Nodo<Producto> nTemp27 = new Nodo(jamon27);\r\n listaSoriana.agregarNodo(nTemp27);\r\n \r\n Producto peperoni28 = new Producto (\"peperoni28\", \"fud\", 32, 1);\r\n Nodo<Producto> nTemp28 = new Nodo (peperoni28);\r\n listaSoriana.agregarNodo(nTemp28);\r\n \r\n Producto salchicha29 = new Producto (\"salchicha\", \" san rafael\", 23.99, 1);\r\n Nodo<Producto> nTemp29 = new Nodo (salchicha29);\r\n listaSoriana.agregarNodo(nTemp29); \r\n \r\n Producto huevos30 = new Producto (\"huevos\", \"san rafael\", 30.99, 1);\r\n Nodo<Producto> nTemp30 = new Nodo (huevos30);\r\n listaSoriana.agregarNodo(nTemp30);\r\n \r\n Producto chuletas31 = new Producto (\"chuletas\", \"la res dorada\", 55, 1);\r\n Nodo<Producto> nTemp31 = new Nodo (chuletas31);\r\n listaSoriana.agregarNodo(nTemp31);\r\n \r\n Producto carnemolida32 = new Producto (\"carne molida\", \"san rafael\", 34, 1);\r\n Nodo<Producto> nTemp32 = new Nodo (carnemolida32);\r\n listaSoriana.agregarNodo(nTemp32);\r\n \r\n Producto carnemolida33 = new Producto (\"carne molida\", \"la res dorada\", 32.99, 1);\r\n Nodo<Producto> nTemp33 = new Nodo (carnemolida33);\r\n listaSoriana.agregarNodo(nTemp33);\r\n \r\n Producto pollo34 = new Producto (\"pollo\", \"pollito feliz\", 38, 1);\r\n Nodo<Producto> nTemp34 = new Nodo (pollo34);\r\n listaSoriana.agregarNodo(nTemp34);\r\n \r\n Producto pescado35 = new Producto (\"pescado\", \"pescadito\", 32.99, 1);\r\n Nodo<Producto> nTemp35 = new Nodo (pescado35);\r\n listaSoriana.agregarNodo(nTemp35);\r\n \r\n Producto quesolaurel36 = new Producto (\"queso\", \"laurel\", 23.50, 1);\r\n Nodo<Producto> nTemp36 = new Nodo (quesolaurel36);\r\n listaSoriana.agregarNodo(nTemp36);\r\n \r\n Producto leche37 = new Producto (\"leche\", \"nutrileche\", 12.99, 1);\r\n Nodo<Producto> nTemp37 = new Nodo (leche37);\r\n listaSoriana.agregarNodo(nTemp37);\r\n \r\n Producto lechedeslactosada38 = new Producto (\"leche deslactosada\", \"lala\", 17.50, 1);\r\n Nodo<Producto> nTemp38 = new Nodo (lechedeslactosada38);\r\n listaSoriana.agregarNodo(nTemp38);\r\n \r\n Producto panblanco39 = new Producto (\"pan blanco\", \"bombo\", 23.99, 2);\r\n Nodo<Producto> nTemp39 = new Nodo (panblanco39);\r\n listaSoriana.agregarNodo(nTemp39);\r\n \r\n Producto atun40 = new Producto (\"atun\", \"la aleta feliz\", 12, 2);\r\n Nodo<Producto> nTemp40 = new Nodo (atun40);\r\n listaSoriana.agregarNodo(nTemp40);\r\n \r\n Producto atun41 = new Producto (\"atun\", \"el barco\", 10.99, 2);\r\n Nodo<Producto> nTemp41 = new Nodo (atun41);\r\n listaSoriana.agregarNodo(nTemp41);\r\n \r\n Producto arroz42 = new Producto (\"arroz\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp42 = new Nodo (arroz42);\r\n listaSoriana.agregarNodo(nTemp42);\r\n \r\n Producto arroz43 = new Producto (\"arroz\", \"soriana\", 9.99, 2);\r\n Nodo<Producto> nTemp43 = new Nodo (arroz43);\r\n listaSoriana.agregarNodo(nTemp43);\r\n \r\n Producto frijol44 = new Producto (\"frijol\", \"mi marca\", 10.99, 2);\r\n Nodo<Producto> nTemp44 = new Nodo (frijol44);\r\n listaSoriana.agregarNodo(nTemp44);\r\n \r\n Producto frijol45 = new Producto (\"frijol\", \"soriana\", 15.99, 2);\r\n Nodo<Producto> nTemp45 = new Nodo (frijol45);\r\n listaSoriana.agregarNodo(nTemp45);\r\n \r\n Producto azucar46 = new Producto (\"azucar\", \"mi marca\", 12.50, 2);\r\n Nodo<Producto> nTemp46 = new Nodo (azucar46);\r\n listaSoriana.agregarNodo(nTemp46);\r\n \r\n Producto azucar47 = new Producto (\"azucar\", \"zulka\", 15.99, 2);\r\n Nodo<Producto> nTemp47 = new Nodo (azucar47);\r\n listaSoriana.agregarNodo(nTemp47);\r\n \r\n Producto servilletas48 = new Producto (\"servilletas\", \"esponjosas\",10.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo (servilletas48);\r\n listaSoriana.agregarNodo(nTemp48);\r\n \r\n Producto sal49 = new Producto (\"sal\", \"mar azul\", 3.99, 2);\r\n Nodo<Producto> nTemp49 = new Nodo (sal49);\r\n listaSoriana.agregarNodo(nTemp49);\r\n \r\n Producto aceitedecocina50 = new Producto (\"aceite de cocina\", \"123\", 15.99, 2);\r\n Nodo<Producto> nTemp50 = new Nodo (aceitedecocina50);\r\n listaSoriana.agregarNodo(nTemp50);\r\n \r\n Producto caffe51 = new Producto (\"caffe\", \"nescafe\", 23, 2);\r\n Nodo<Producto> nTemp51 = new Nodo (caffe51);\r\n listaSoriana.agregarNodo(nTemp51);\r\n \r\n Producto puredetomate52 = new Producto (\"pure de tomate\", \" la costeña\", 12.99, 2);\r\n Nodo<Producto> nTemp52 = new Nodo (puredetomate52);\r\n listaSoriana.agregarNodo(nTemp52);\r\n \r\n Producto lentejas53 = new Producto (\"lentejas\", \"la granjita\", 8.99, 2);\r\n Nodo<Producto> nTemp53 = new Nodo (lentejas53);\r\n listaSoriana.agregarNodo(nTemp53);\r\n \r\n Producto zuko54 = new Producto (\"zuko\", \"zuko\", 2.99, 2);\r\n Nodo<Producto> nTemp54 = new Nodo (zuko54);\r\n listaSoriana.agregarNodo(nTemp54);\r\n \r\n Producto champu55 = new Producto (\"champu\", \"loreal\", 32, 3);\r\n Nodo<Producto> nTemp55 = new Nodo (champu55);\r\n listaSoriana.agregarNodo(nTemp55);\r\n \r\n Producto champu56 = new Producto (\"champu\", \"el risueño\", 29.99, 3);\r\n Nodo<Producto> nTemp56 = new Nodo (champu56);\r\n listaSoriana.agregarNodo(nTemp56);\r\n \r\n Producto desodorante57 = new Producto (\"desodorante\", \"nivea\", 23.50, 3);\r\n Nodo<Producto> nTemp57 = new Nodo (desodorante57);\r\n listaSoriana.agregarNodo(nTemp57);\r\n \r\n Producto pastadedientes58 = new Producto(\"pasta de dientes\", \"colgate\", 17.50, 3);\r\n Nodo<Producto> nTemp58 = new Nodo (pastadedientes58);\r\n listaSoriana.agregarNodo(nTemp58);\r\n \r\n Producto pastadedientes59 = new Producto (\"pasta de dientes\", \"el diente blanco\", 29, 3);\r\n Nodo<Producto> nTemp59 = new Nodo (pastadedientes59);\r\n listaSoriana.agregarNodo(nTemp59);\r\n \r\n Producto rastrillos60 = new Producto (\"rastrillos\", \"el filosito\", 33.99, 3);\r\n Nodo<Producto> nTemp60 = new Nodo (rastrillos60);\r\n listaSoriana.agregarNodo(nTemp60);\r\n \r\n Producto rastrillos61 = new Producto (\"rastrillos\", \"barba de oro\", 23.99, 3);\r\n Nodo<Producto> nTemp61 = new Nodo (rastrillos61);\r\n listaSoriana.agregarNodo(nTemp61);\r\n \r\n Producto hilodental62 = new Producto (\"hilo dental\", \"el diente blanco\", 32.99, 3);\r\n Nodo<Producto> nTemp62 = new Nodo (hilodental62);\r\n listaSoriana.agregarNodo(nTemp62);\r\n \r\n Producto cepillodedientes63 = new Producto (\"cepillo de dientes\", \"OBBM\", 17.99, 3);\r\n Nodo<Producto> nTemp63 = new Nodo (cepillodedientes63);\r\n listaSoriana.agregarNodo(nTemp63);\r\n \r\n Producto cloro64 = new Producto (\"cloro\", \"cloralex\", 23.50, 3);\r\n Nodo<Producto> nTemp64 = new Nodo (cloro64);\r\n listaSoriana.agregarNodo(nTemp64);\r\n \r\n Producto acondicionador65 = new Producto (\"acondicionador\", \"sedal\", 28.99, 3);\r\n Nodo<Producto> nTemp65 = new Nodo (acondicionador65);\r\n listaSoriana.agregarNodo(nTemp65);\r\n \r\n Producto acondicionador66 = new Producto (\"acondicionador\", \"pantene\", 23.99, 3);\r\n Nodo<Producto> nTemp66 = new Nodo (acondicionador66);\r\n listaSoriana.agregarNodo(nTemp66);\r\n \r\n Producto pinol67 = new Producto(\"pinol\", \"mi piso limpio\", 15, 3);\r\n Nodo<Producto> nTemp67 = new Nodo (pinol67);\r\n listaSoriana.agregarNodo(nTemp67);\r\n \r\n Producto pinol68 = new Producto (\"pinol\", \"eficaz\", 18.99, 3);\r\n Nodo<Producto> nTemp68 = new Nodo (pinol68);\r\n listaSoriana.agregarNodo(nTemp68);\r\n \r\n Producto tortillas69 = new Producto (\"tortillas\", \"maizena\", 8.99, 2);\r\n Nodo<Producto> nTemp69 = new Nodo (tortillas69);\r\n listaSoriana.agregarNodo(nTemp69);\r\n \r\n Producto cremaparacuerpo70 = new Producto (\"crema para cuerpo\", \"dove\", 13.50, 3);\r\n Nodo<Producto> nTemp70 = new Nodo (cremaparacuerpo70);\r\n listaSoriana.agregarNodo(nTemp70);\r\n \r\n Producto maizoro71 = new Producto (\"maizoro\", \"special k\", 35.99, 2);\r\n Nodo<Producto> nTemp71 = new Nodo (maizoro71);\r\n listaSoriana.agregarNodo(nTemp71);\r\n \r\n Producto maizoro72 = new Producto (\"maizoro\",\"azucaradas\", 43, 2);\r\n Nodo<Producto> nTemp72 = new Nodo (maizoro72);\r\n listaSoriana.agregarNodo(nTemp72);\r\n \r\n Producto zanahoria73 = new Producto (\"zanahoria\", \"el huertito\", 12.99, 0);\r\n Nodo<Producto> nTemp73 = new Nodo (zanahoria73);\r\n listaSoriana.agregarNodo(nTemp73);\r\n \r\n Producto maizoro74 = new Producto (\"maizoro\", \"cherrios\", 45, 2);\r\n Nodo<Producto> nTemp74 = new Nodo (maizoro74);\r\n listaSoriana.agregarNodo(nTemp74);\r\n \r\n Producto mayonesa75 = new Producto (\"mayonesa\", \"helmans\", 23, 2);\r\n Nodo<Producto> nTemp75 = new Nodo (mayonesa75);\r\n listaSoriana.agregarNodo(nTemp75);\r\n }",
"public void verCartasDelMazo()\n { \n for (Carta carta : mazo) {\n System.out.println(carta);\n }\n }",
"public void obtenerTipificacionesCliente(Participante cliente)\n throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Entrada\");\n BelcorpService bs;\n RecordSet respuesta;\n String codigoError;\n StringBuffer query = new StringBuffer();\n\n if (cliente.getOidCliente() == null) {\n cliente.setTipificacionCliente(null);\n if(log.isDebugEnabled()) {//sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- NULO : \");\n UtilidadesLog.debug(\"---- cliente : \" + cliente.getOidCliente());\n } \n } else {\n try {\n bs = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n try {\n query.append(\" SELECT CLIE_OID_CLIE, \");\n query.append(\" CLAS_OID_CLAS, \");\n query.append(\" SBTI_OID_SUBT_CLIE, \");\n query.append(\" TCCL_OID_TIPO_CLASI, \");\n query.append(\" TICL_OID_TIPO_CLIE \");\n query.append(\" FROM V_MAE_TIPIF_CLIEN \");\n query.append(\" WHERE CLIE_OID_CLIE = \" + cliente\n .getOidCliente());\n respuesta = bs.dbService.executeStaticQuery(query.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"---- TIPIF : \" + respuesta);\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n codigoError = CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS;\n throw new MareException(e, UtilidadesError.armarCodigoError(\n codigoError));\n }\n\n if (respuesta.esVacio()) {\n cliente.setTipificacionCliente(null);\n } else {\n TipificacionCliente[] tipificaciones = new TipificacionCliente[\n respuesta.getRowCount()];\n\n for (int i = 0; i < respuesta.getRowCount(); i++) {\n tipificaciones[i] = new TipificacionCliente();\n\n {\n BigDecimal oidClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"CLAS_OID_CLAS\");\n tipificaciones[i].setOidClasificacionCliente((\n oidClasificacionCliente != null) ? new Long(\n oidClasificacionCliente.longValue()) : null);\n }\n\n tipificaciones[i].setOidSubTipoCliente(new Long((\n (BigDecimal) respuesta\n .getValueAt(i, \"SBTI_OID_SUBT_CLIE\")).longValue()));\n\n {\n BigDecimal oidTipoClasificacionCliente = (BigDecimal) \n respuesta.getValueAt(i, \"TCCL_OID_TIPO_CLASI\");\n tipificaciones[i].setOidTipoClasificacionCliente(\n (oidTipoClasificacionCliente != null)? new Long(\n oidTipoClasificacionCliente.longValue()) \n : null);\n }\n\n tipificaciones[i].setOidTipoCliente(new Long(((BigDecimal)\n respuesta.getValueAt(i, \"TICL_OID_TIPO_CLIE\"))\n .longValue()));\n }\n\n cliente.setTipificacionCliente(tipificaciones);\n }\n }\n UtilidadesLog.info(\" DAOSolicitudes.obtenerTipificacionesCliente(Par\"\n +\"ticipante cliente):Salida\");\n }",
"public void processOffer(int[] productVector) {\r\n\r\n\t\tsetNegotiating(true);\r\n\t\t\r\n\t\tint d = SimulationBuilder.hammingDistance(demandVector, productVector);\r\n\t\t\r\n\t\tdouble r = RandomHelper.nextDoubleFromTo(0, 1);\r\n\t\t\r\n\t\tif (d>0 && d <= Math.ceil(Parameters.vectorSpaceSize / 2.0) \r\n\t\t\t\t&& r < (Parameters.customersPersuadability / 100.0)) {\r\n\t\t\tdemandVector = productVector;\r\n\t\t}\r\n\t\t\r\n\t\tsetNegotiating(false);\r\n\t}",
"public void venderProducto(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString separador = \",\";\n\t\tString producto = \"\";\n\t\tString cantidad = \"\";\n\t\tString cantidadPrevia = \"\";\n\t\tString linea = \"\";\n\t\tString respuesta = \"\";\n\t\tint stock = 0;\n\t\tString[] afirmativos = {\"SI\", \"Si\", \"si\", \"s\"};\n\t\tString [] auxiliar = null;\n\t\tList<String> lines = new ArrayList<String>();\t\n\t\t\n\t\tSystem.out.print(\"Que producto va a vender\\n\");\n\t\tproducto = sc.nextLine();\n\t\t\n\t\tboolean existe = productoExiste(producto); // Se comprueba si el peoducto existe en el stock.dat\n\t\tif(existe) {\n\t\t\tstock = Integer.parseInt(revisarStock(producto)); //Comprobamos el stock que queda del determinado producto\n\t\t\t\n\t\t\tif(stock == 0) {\n\t\t\t\tSystem.out.println(\"No queda stock de este producto, �quiere solicitarle mas al proveedeor ?\");\n\t\t\t\trespuesta = sc.nextLine();\n\t\t\t\tfor(int i = 0; i < afirmativos.length; i++) {\n\t\t\t\t\tif(respuesta.equals(afirmativos[i])) {\n\t\t\t\t\t\tañadirStock(producto);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(stock <= 5) {\n\t\t\t\tSystem.out.println(\"El stock de este producto es bajo, por favor solicite m�s al proveedor\");\n\t\t\t\tSystem.out.println(\"�Quiere solicitar m�s stock al proveedor?\");\n\t\t\t\trespuesta = sc.nextLine();\n\t\t\t\tfor(int i = 0; i< afirmativos.length; i++) {\n\t\t\t\t\tif(respuesta.equals(afirmativos[i])) {\n\t\t\t\t\t\tañadirStock(producto);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\tSystem.out.println(\"Cuantas unidades quiere vender ?\");\n\t\t\t\tcantidad = sc.nextLine();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e) {\n\t\t\t\t\tSystem.out.println(\"El valor introducido es incorrecto\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tcantidadPrevia = revisarStock(producto); //Obtenemos la cantidad que tenemos en stock en formato String para despues poder modificar el fichero\n\t\t\t\t\tint total = stock - Integer.parseInt(cantidad); //Calculamos el stock que nos quedar� despues de la venta. Para ello casteamos el valor que nos introduce el usuario de String a int para poder operar con el y con el valor que tenemos en el fichero que previamente hemos casteado a int\n\t\t\t\t\tString totalString = Integer.toString(total); // Casteamos el resultado a String para poder escribirlo en el fichero\n\t\t\t\t\t\n\t\t\t\t\tif(Integer.parseInt(totalString) >= 0) {\n\t\t\t File fichero = new File(rutaFichero);\n\t\t\t FileReader fr = new FileReader(fichero);\n\t\t\t BufferedReader br = new BufferedReader(fr);\n\t\t\t while ((linea = br.readLine()) != null) {\n\t\t\t if (linea.contains(producto)) {\n\t\t\t \tauxiliar = linea.split(separador);\n\t\t\t \tauxiliar[4] = totalString;\n\t\t\t \tlinea = (auxiliar[0] + \",\" + auxiliar[1] + \",\" + auxiliar[2]+ \",\" + auxiliar[3] + \",\" + auxiliar[4] + \",\" + auxiliar[5]);\n\t\t\t }\t \n\t\t\t lines.add(linea);\n\t\t\t }\n\n\t\t\t FileWriter fw = new FileWriter(fichero);\n\t\t\t BufferedWriter out = new BufferedWriter(fw);\n\t\t\t for(String s : lines)\n\t\t\t out.write(s + \"\\n\");\n\t\t\t out.flush();\n\t\t\t out.close();\n\t\t\t\t\t}\t\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"No queda stock suficiente como para realizar la venta solicitada, quiere solicitar m�s stock al proveedor ?\");\n\t\t\t\t\t\trespuesta = sc.nextLine();\n\t\t\t\t\t\tfor(int i = 0; i < afirmativos.length; i++) {\n\t\t\t\t\t\t\tif(respuesta.contains(afirmativos[i])) {\n\t\t\t\t\t\t\t\tañadirStock(producto);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.println(\"Venta no realizada\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tString totalFactura = calcularTotal(cantidad, auxiliar[3]);\n\t\t\t\t\tif(Integer.parseInt(cantidad) > 0) {\n\t\t\t\t\t\tcrearFactura(producto, cantidad, auxiliar[3], totalFactura);\n\t\t\t\t\t}\n\t\t } catch (Exception ex) {\n\t\t ex.printStackTrace();\n\t\t }\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"El producto especificado no existe\\n\");\n\t\t}\n\t}",
"@Override\r\n\t/**\r\n\t * Actionne l'effet de la carte.\r\n\t * \r\n\t * @param listejoueur\r\n\t * \t\t\tLa liste des joueurs de la partie.\r\n\t * @param cible\r\n\t * \t\t\tLa joueur contre qui l'effet sera joué.\r\n\t * @param table\r\n\t * \t\t\tCollection de cartes situées au centre de la table de jeu.\r\n\t * @param carte\r\n\t * \t\t\tLa carte qui joue l'effet.\r\n\t * @param j\r\n\t * \t\t\tLe joueur qui joue la carte.\r\n\t * @param collection\r\n\t * \t\t\tLe deck de cartes.\r\n\t * @param tourjoueur\r\n\t * \t\t\tLa liste des joueurs selon l'ordre de jeu.\r\n\t */\r\n\tpublic void utiliserEffet(ArrayList<Joueur> listejoueur, int cible, ArrayList<Carte> table, Carte carte,\r\n\t\t\tint j, ArrayList<Carte> collection,ArrayList<Joueur> tourjoueur) {\n\t\tcont = Controller.getInstance();\r\n\t\tint id = carte.getIdentifiantCarte();\r\n\t\tif (id ==9 || id ==10 || id==22 || id==23){\r\n\t\t\tif (tourjoueur.get(j) == listejoueur.get(0)){\r\n\t\t\t\tSystem.out.println(\"Choisissez le Divinité qui sera forcer de sacrifier un croyant\");\r\n\t\t\t\t\r\n\t\t\t\tcont.setChoisirCible(true);\r\n\t\t\t\t\r\n\t\t\t\twhile(cont.getChoixCible()==-1){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" à sacrifier un Croyant\");\r\n\t\t\t\t\r\n\t\t\t\tif (listejoueur.get(cont.getChoixCible()).getNombreCroyantTotal()>0){\r\n\t\t\t\t\tfor(int i=0;i<listejoueur.get(cont.getChoixCible()).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor (int k=0;k<listejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true); // On rend possible l'utilisation de la carte\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).setDoitSacrifierCroyant(true);\r\n\t\t\t\ttourjoueur.get(j).forcerAction(cont.getChoixCible(),listejoueur.get(cont.getChoixCible()).isDoitSacrifierCroyant(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" n'a aucun croyant a sacrifier \");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t max = 0;\r\n\t\t\t\t\tjoueurCible =-1;;\r\n\t\t\t\tfor (int i=0; i<listejoueur.size();i++){\r\n\t\t\t\t\r\n\t\t\t\t\tif (listejoueur.get(i).getGuidePossede().size() > max){\r\n\t\t\t\t\tmax = listejoueur.get(i).getGuidePossede().size();\r\n\t\t\t\t\tjoueurCible = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(joueurCible).getNom() + \" à sacrifier un Croyant\");\r\n\t\t\tif (listejoueur.get(joueurCible).getNombreCroyantTotal()>0){\r\n\t\t\t\t\r\n\t\t\t\t\tfor(int i=0;i<listejoueur.get(joueurCible).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor (int k=0;k<listejoueur.get(joueurCible).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(joueurCible).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true); // On rend possible l'utilisation de la carte\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tlistejoueur.get(joueurCible).setDoitSacrifierCroyant(true);\r\n\t\t\ttourjoueur.get(j).forcerAction(joueurCible,listejoueur.get(joueurCible).isDoitSacrifierCroyant(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun croyant à sacrifier\");\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( id==11){\r\n\t\t\tif (tourjoueur.get(j) == listejoueur.get(0)){\r\n\t\t\t\tSystem.out.println(\"Choisissez le Divinité qui sera forcer de sacrifier un guide\");\r\n\t\t\t\twhile(cont.getChoixCible()==-1){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" à sacrifier un Guide\");\r\n\t\t\t\t\r\n\t\t\t\tif(listejoueur.get(cont.getChoixCible()).getGuidePossede().size()>0){\r\n\t\t\t\t\tfor (int i=0;i<listejoueur.get(cont.getChoixCible()).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor(int k=0;k<listejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).setDoitSacrifierGuide(true);\r\n\t\t\t\t\ttourjoueur.get(j).forcerAction(cont.getChoixCible(),listejoueur.get(cont.getChoixCible()).isDoitSacrifierGuide(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun guide à sacrifier\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t max = 0;\r\n\t\t\t\t\tjoueurCible =-1;;\r\n\t\t\t\tfor (int i=0; i<listejoueur.size();i++){\r\n\t\t\t\t\r\n\t\t\t\t\tif (listejoueur.get(i).getGuidePossede().size() > max){\r\n\t\t\t\t\tmax = listejoueur.get(i).getGuidePossede().size();\r\n\t\t\t\t\tjoueurCible = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(joueurCible).getNom() + \" à sacrifier un Guide\");\r\n\t\t\t\tif (listejoueur.get(joueurCible).getGuidePossede().size()>0){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int i=0;i<listejoueur.get(joueurCible).getGuidePossede().size();i++){\r\n\t\t\t\t\t\t\tlistejoueur.get(joueurCible).getGuidePossede().get(i).setSelectionnee(true); // On rend possible l'utilisation de la carte\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlistejoueur.get(joueurCible).setDoitSacrifierGuide(true);\r\n\t\t\t\ttourjoueur.get(j).forcerAction(joueurCible,listejoueur.get(joueurCible).isDoitSacrifierGuide(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun guide à sacrifier\");\r\n\t\t\t\t}\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\r\n\t\t}\r\n\t\t\r\n\t}",
"public void buscarProductosXSucursal(){\n\t\tif(getEmpresaId()==null){\n\t\t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(\"Seleccione una sucursal\"));\n\t\t\treturn;\t\t\n\t\t}\n\t\tsetProductoEmpresaList(productoEmpresaService.getByEmpresa(getEmpresaId()));\n\t\tif(getProductoEmpresaList()==null||getProductoEmpresaList().isEmpty()){\n\t\t\tRequestContext.getCurrentInstance().execute(\"PF('confirmarBusqueda').show();\");\n\t\t}\n\t}",
"public List<Producto> verProductos(){\n SessionFactory sf = NewHibernateUtil.getSessionFactory();\n Session session = sf.openSession();\n // El siguiente objeto de query se puede hacer de dos formas una delgando a hql (lenguaje de consulta) que es el\n //lenguaje propio de hibernate o ejecutar ancestarmente la colsulta con sql\n Query query = session.createQuery(\"from Producto\");\n // En la consulta hql para saber que consulta agregar se procede a añadirla dandole click izquierdo sobre\n // hibernate.cfg.xml y aquí añadir la correspondiente consulta haciendo referencia a los POJOS\n List<Producto> lista = query.list();\n session.close();\n return lista;\n }",
"private static void crearPedidoGenerandoOPCyOrdenInsumo() throws RemoteException {\n\t\tlong[] idVariedades = { 63 };\n\t\tint[] cantidades = { 4 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 5\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}",
"public void cargarProductosEnVenta() {\n try {\n //Lectura de los objetos de tipo producto Vendido\n FileInputStream archivo= new FileInputStream(\"productosVentaCliente\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n this.productosEnVenta = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"ERROR: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }",
"public void getVentasdeUNVendedor(int v) {\r\n double vVendedor[] = new double[nm];\r\n int j;\r\n for (j = 0; j < nm; j++) {\r\n vVendedor[j] = ventas[v][j];\r\n }\r\n getMostrarVec(vVendedor);\r\n }",
"public void setProductos(ArrayList<Producto> productos) {\r\n this.productos = productos;\r\n }",
"private static ArrayList<String> construireMatriceCalcul() throws Exception_AbsenceExperienceBiomass, Exception_ParseException,IOException, Exception_SparqlConnexion {\n\n /*Pour chaque objetc : Object_TIEG de vDocExp construire le vecteur d'entrée au calul*/\n /*Le vecteur résultant sera placé sur : vVecteurCalculGlobal*/\n /*En cas de valeurs manquantes, le vecteur sera null, un message indiquant l'emplacement du manque ser transmis à la servlet*/\n \n Object_RapportCalculVecteur rapport;\n \n ArrayList<String> message= new ArrayList<>();\n \n if(vDocExp.size() > 0)\n {\n \n for(Object_TIEG obj : vDocExp)\n {\n try { \n\n if((rapport=InterrogationDataRDF.getVecteurCalcul(vPathRacine, obj, vTopicOperations, vRelationParametres)).getVecteurCalcul()!=null)\n {\n vVecteurCalculGlobal.add(rapport.getVecteurCalcul());\n }\n else\n {\n if(rapport.getMessage()!=null)\n {\n message.add(rapport.getMessage());\n }\n \n }\n \n } catch (Exception_ParseException ex) {\n \n throw ex;\n }\n }\n }\n else\n {\n throw new Exception_AbsenceExperienceBiomass();\n }\n \n return message;\n \n }",
"public void vender() {\n\t\tSystem.out.println(\"Vender \"+cantidad+\" de \"+itemName);\n\t}",
"public void listarProducto() {\n }",
"@Override\n public void interagit() {\n super.interagit();\n ArrayList<EtreVivant> cibles = this.ciblesPotentiellesAdjacentes(this.getPosition(),this.nombreVoisins);\n cibles.stream().filter((vivants) -> (vivants.getEtat().equals(EtatEtreVivant.MALADE))).forEach((vivants) -> {\n this.soigne(vivants);\n });\n }",
"public void agregarDetalleProducto() {\n //Creamos instancia de ProductoDao\n ProductoDao productoDao = new ProductoDaoImp();\n try {\n //obtenemos la instancia del producto\n producto = productoDao.obtenerProductoPorCodigoBarra(productoSeleccionado);\n if (cantidadProductoDlg != null && cantidadProductoDlg > 0) {\n //agregando detalle a la Lista de Detalle\n listDetalle.add(new Detallefactura(null, this.producto.getCodBarra(),\n this.producto.getNombreProducto(), cantidadProductoDlg, this.producto.getPrecioVenta(),\n (this.producto.getPrecioVenta().multiply(new BigDecimal(cantidadProductoDlg)))));\n \n //Seteamos el producto al item del detalle\n //Accedemos al ultimo Item agregado a la lista\n listDetalle.get(listDetalle.size()-1).setCodProducto(producto);\n \n //Seteamos la factura al item del detalle\n //Accedemos al ultimo Item agregado a la lista \n // listDetalle.get(listDetalle.size()-1).setCodFactura(factura);\n \n //Limpiamos la variable 'cantidadProducto'\n cantidadProductoDlg = null;\n //Invocamos al metodo que calcula el Total de la Venta para la factura\n totalFacturaVenta();\n\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Correcto\", \"Producto agregado al detalle!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }else{\n //Limpiamos la variable 'cantidadProducto'\n cantidadProductoDlg = null;\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR , \"Incorrecto\", \"La cantidad es incorrecta!\");\n FacesContext.getCurrentInstance().addMessage(null, message);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public void verCartasDelMazo(){\n for(Carta carta: cartasBaraja){\n System.out.println(carta);\n }\n }",
"public static void viaggia(List<Trasporto> lista,Taxi[] taxi,HandlerCoR h) throws SQLException\r\n {\n Persona app = (Persona) lista.get(0);\r\n /* ARGOMENTI handleRequest\r\n 1° Oggetto Request\r\n 2° Array Taxi per permettere la selezione e la modifica della disponibilità\r\n */\r\n h.handleRequest(new RequestCoR(app.getPosPartenza(),app.getPosArrivo(),taxi),taxi); \r\n SceltaPercorso tempo = new SceltaPercorso();\r\n SceltaPercorso spazio = new SceltaPercorso();\r\n tempo.setPercorsoStrategy(new timeStrategy());\r\n spazio.setPercorsoStrategy(new lenghtStrategy());\r\n for(int i=0;i<5;i++)\r\n if(!taxi[i].getLibero())\r\n {\r\n if(Scelta.equals(\"veloce\"))\r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Veloce...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n tempo.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n } else\r\n \r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Breve...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n spazio.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n \r\n }\r\n }\r\n \r\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 Sesiones() {\n\t\tentradasVendidas = 0;\n\t}",
"public CUClienteComplementoOV()\t{\n\n\t\t}",
"public static void main(String[] args) {\n\t\tControladorProducto controlaPro = new ControladorProducto();\n\n\t\t// Guardamos en una lista de objetos de tipo cuenta(Mapeador) los datos\n\t\t// obtenidos\n\t\t// de la tabla Cuenta de la base de datos\n\t\tList<Producto> lista = controlaPro.findAll();\n\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla Cuenta:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t// Vamos a guardar en un objeto el objeto que obtenemos pasando como parametro\n\t\t// el nombre\n\t\tProducto productoNombre = controlaPro.findByNombre(\"Manguera Camuflaje\");\n\n\t\t// Mostramos el objeto\n\t\tSystem.out.println(\"\\nEl objeto con el nombre Manguera Camuflaje es: \\n\" + productoNombre);\n\n\t\t// Vamos a guardar en un objeto el objeto que obtenemos pasando como parametro\n\t\t// su pk\n\n\t\tProducto productoPk = controlaPro.findByPK(2);\n\n\t\t// Mostramos el objeto\n\t\tSystem.out.println(\"\\nEl objeto con la Pk es: \\n\" + productoPk);\n\n\t\t// Vamos a crear un nuevo producto\n\t\tProducto nuevoProducto = new Producto();\n\n\t\tnuevoProducto.setNombreproducto(\"Embery Mono\");\n\t\t\n\t\t//Persistimos el nuevo producto\n\t\tcontrolaPro.crearEntidad(nuevoProducto);\n\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//Modificamos el nuevo producto\n\t\tnuevoProducto.setNombreproducto(\"Caesar Dorada\");\n\n\t\tcontrolaPro.ModificarEntidad(nuevoProducto);\n\t\t\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto modificado:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t\t//Borramos el nuevo producto\n\t\tcontrolaPro.borrarEntidad(controlaPro.findByPK(2));\n\t\t\n\t\tlista = controlaPro.findAll();\n\t\t// Imprimimos la lista\n\t\tSystem.out.println(\"\\n\\nEntidades de la tabla con nuevo producto eliminado:\");\n\t\tfor (Producto c : lista) {\n\t\t\tSystem.out.println(c);\n\t\t}\n\t\t\n\t}",
"@Override\n\tpublic void entregarProductos(AgenteSaab a, Oferta o) {\n\t\t\n\t}",
"public void vivir(){\r\n\t\r\n\tAtacable algo42tmp;\r\n\t\r\n\tif (!(this.muerto)){\r\n\t\tfor(int i = 0; i <= this.velY; i++){\r\n\t\t\tthis.mover();\r\n\t\t}\r\n\t\t\r\n\t\talgo42tmp = zonaDeCombate.comprobarColisionAlgo42(this);\r\n\t\tif (algo42tmp != null){\r\n\t\t\talgo42tmp.recibirDanio(20); /**hacer q se muera*/\r\n\t\t\tthis.muerto = true;\r\n\t\t}\r\n\t\t\r\n\r\n\t\t}\r\n\t}",
"public GestorDeConseptos() {\n initComponents();\n service=new InformeService(); \n m=new ConseptoTableModel();\n this.jTable1.setModel(m);\n cuentas=new Vector<ConseptoEnCuenta>();\n }",
"public void reubicarProductosUltimaCaja(DTOListaPicadoCabecera listaPicado, ArrayList tiposCajas, ArrayList volumenProductos, ArrayList cajas, int numeroCajas) throws MareException {\n UtilidadesLog.info(\"MONCalculoCubicaje.reubicarProductosUltimaCaja(DTOListaPicadoCabecera listaPicado, ArrayList tiposCajas, ArrayList volumenProductos, ArrayList cajas, Integer numeroCajas): Entrada\");\n \n if(numeroCajas > 1){\n UtilidadesLog.debug(\"Hay mas de una caja\");\n \n // sapaza -- Cambios para WCS y MUO -- 22/09/2010\n DTOTipoCajaEmbalaje ultimaCaja = null;\n for(int j=cajas.size()-1; j>=0;j--) {\n ultimaCaja = (DTOTipoCajaEmbalaje)cajas.get(j);\n \n if(ultimaCaja.getCapacidad()==null)\n continue;\n else\n break;\n }\n \n if(ultimaCaja.getCapacidad() != null) {\n \n BigDecimal volumenUtilizadoUltimaCaja = ultimaCaja.getCapacidad().subtract(ultimaCaja.getVolumenSobrante()); \n \n UtilidadesLog.debug(\"volumenUtilizadoUltimaCaja: \" + volumenUtilizadoUltimaCaja);\n UtilidadesLog.debug(\"ultimaCaja.getCapacidadMinima(): \" + ultimaCaja.getCapacidadMinima());\n \n DTOTipoCajaEmbalaje cajaAuxiliar = null ;\n \n if(volumenUtilizadoUltimaCaja.compareTo(ultimaCaja.getCapacidadMinima())==-1){\n // Arma lista con los detalles a modificar\n ArrayList detallesAModificar = new ArrayList();\n int cantProd = listaPicado.getDetalles().size();\n ArrayList detalles = listaPicado.getDetalles();\n DTOListaPicadoDetalle dtoListaPicadoDetalle = null;\n \n for (int j = 0; j < cantProd; j++) {\n dtoListaPicadoDetalle = (DTOListaPicadoDetalle)detalles.get(j);\n \n if((dtoListaPicadoDetalle.getNumeroCaja()!= null) && (dtoListaPicadoDetalle.getNumeroCaja().longValue()== numeroCajas)){\n detallesAModificar.add(dtoListaPicadoDetalle);\n }\n }\n \n // Busca una caja menor para los productos\n int cantTiposCajas = tiposCajas.size();\n DTOTipoCajaEmbalaje dtoTipoCajaEmbalaje = null;\n \n for(int i=0; i< cantTiposCajas; i++){\n dtoTipoCajaEmbalaje = (DTOTipoCajaEmbalaje)tiposCajas.get(i);\n UtilidadesLog.debug(\"dtoTipoCajaEmbalaje: \" + dtoTipoCajaEmbalaje);\n \n if(volumenUtilizadoUltimaCaja.compareTo(dtoTipoCajaEmbalaje.getCapacidad())==-1){\n cajaAuxiliar = (DTOTipoCajaEmbalaje)deepCopy(dtoTipoCajaEmbalaje);\n }\n }\n \n // Asigna los productos a la caja menor\n if(cajaAuxiliar!=null){\n int cantDetMod = detallesAModificar.size();\n \n for(int k=0; k < cantDetMod; k++){\n dtoListaPicadoDetalle = (DTOListaPicadoDetalle)detallesAModificar.get(k);\n dtoListaPicadoDetalle.setOidTipoCajaEmbalaje(cajaAuxiliar.getOid());\n dtoListaPicadoDetalle.setDescripcionTipoCajaEmbalaje(cajaAuxiliar.getDescripcion());\n }\n } else {\n UtilidadesLog.debug(\"No se encontró una caja no realizamos ninguna acción\");\n } \n }\n }\n \n }\n UtilidadesLog.info(\"MONCalculoCubicaje.reubicarProductosUltimaCaja(DTOListaPicadoCabecera listaPicado, ArrayList tiposCajas, ArrayList volumenProductos, ArrayList cajas, Integer numeroCajas): Salida\");\n }",
"public String estadisticasProductosMasVendidos() {\n String html = \"\";\n DefaultTableModel dtm = producto.estadisticaTopProductosMasVendidos();\n html = Utils.dibujarGraficasHTMLDonut(dtm, \"TOP PRODUCTOS MAS VENDIDOS\");\n return html;\n }",
"@Override\n\tpublic void entrer(TC client) {\n\t\tint prio = client.getPrio();\n\t\tif (!estPleine()) {\n\t\t\tif(prio>maxPrio) {\t\t\t\t\t\t//Si la priorité donnée est sup\n\t\t\t\tsalle.get(maxPrio).add(client);\t\t//.get récupération clé .add rajout\n\t\t\t}\n\t\t\telse if (prio<0) {\t\t\t\t\t\t//Si priorité inf à 0\n\t\t\t\tsalle.get(0).add(client);\t\t\n\t\t\t}\n\t\t\telse {salle.get(client.getPrio()).add(client);\n\t\t\t// {salle.get(prio).entrer(client);}\n\t\t\t}\n\t\t}\n\t}",
"private void renderObjetos()\n {\n for (int i=0;i<NCONSUMIBLES;i++)\n {\n //EDIT:Ruta de Inventario\n Consumible consumible=(Consumible)VenganzaBelial.atributoGestion.getInv().getItems().get(i);\n if(eleccionJugador==i)\n {\n opcionesJugadorTTF.drawString(10,i*20+400,consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\");\n }\n else{\n opcionesJugadorTTF.drawString(10, i * 20 + 400, consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\", notChosen);\n }\n }\n }",
"public String ingresaProductosSolicitud(List<SolicitudProdEntity> productos, SolicitudEntity solicitud) {\n\t\tString respuesta = \"OK\";\n\t\ttry {\n\t\t\tfor(SolicitudProdEntity item:productos){\n\t\t\t\titem.setSolicitud(solicitud);\n\t\t\t}\n\t\t\tif (\"OK\".equalsIgnoreCase(respuesta)) {\n\t\t\t\tRespuestaEntity respuestaSW = conexionWSProd().getPortProd().insertaProductosSolicitud(productos);\n\t\t\t\trespuesta = respuestaSW.getDescripcionRespuesta();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn respuesta;\n\t}",
"public void agregarMarcayPeso() {\n int id_producto = Integer.parseInt(TextCodProduct.getText());\n String Descripcion_prod = TextDescripcion.getText();\n double Costo_Venta_prod = Double.parseDouble(TextCostoproduc.getText());\n double Precio_prod = Double.parseDouble(TextPrecio.getText());\n int Codigo_proveedor = ((Proveedor) LitsadeProovedores.getSelectedItem()).getIdProveedor();\n double ivaproducto = Double.parseDouble(txtIvap.getText());\n Object tipodelproducto = jcboxTipoProducto.getSelectedItem();\n\n //Captura el tipo del producto\n //Se crea un nuevo objeto de tipo producto para hacer el llamado al decorador\n Producto p;\n //Switch para Ingresar al tipo de producto deseado \n switch ((String) tipodelproducto) {\n case \"Alimentos\":\n log(String.valueOf(tipodelproducto));\n //Creamos un nuevo producto de tipo en este caso comida y le enviamois\n //el id y el tipo de producto\n p = new Producto_tipo_comida(id_producto, (String) tipodelproducto);\n //el producto p , ahora tendra una adicion de marca del producto\n //ingreso\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n //ingreso\n break;\n case \"Ropa\":\n p = new Producto_tipo_ropa(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Automotor\":\n p = new Producto_tipo_automotor(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n\n case \"Electronico\":\n p = new Producto_tipo_electronico(id_producto, (String) tipodelproducto);\n p = new Marca_del_producto(p, id_producto, Descripcion_prod, Costo_Venta_prod, Precio_prod, ivaproducto, Costo_Venta_prod);\n p.getMarca_product();\n p.getPeso_product();\n\n break;\n }\n\n }",
"@Override\n\tpublic void concentrarse() {\n\t\tSystem.out.println(\"Se centra en sacar lo mejor del Equipo\");\n\t\t\n\t}",
"private void Mueve() {\n\t\tpaleta1.Mueve_paletas();\n\t\tpaleta2.Mueve_paletas();\n\t\tpelota.Mueve_pelota();\n\t}",
"void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }",
"private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }",
"public Collection<ProveedorClasificacionDTO> obtenerClasificacionesProveedorActualizacionArticulos(\n\t\t\tProveedorVO proveedorVO,\n\t\t\tString codigoProveedor,\n\t\t\tCollection<ProveedorClasificacionDTO> clasificacionesProveedorInicial,\n\t\t\tCollection<ProveedorClasificacionDTO> clasificacionesProveedorAlmacenar)\n\t\t\tthrows SICException;",
"public BuscarProducto(AgregandoProductos ventanaPadre) {\n this.daoProductos = new ProductoJpaController();\n this.ventanaPadre = ventanaPadre;\n initComponents();\n this.setupComponents();\n }",
"public void AfficherListClient() throws Exception{\n laListeClient = Client_Db_Connect.tousLesClients();\n laListeClient.forEach((c) -> {\n modelClient.addRow(new Object[]{ c.getIdent(),\n c.getRaison(),\n c.getTypeSo(),\n c.getDomaine(),\n c.getAdresse(),\n c.getTel(),\n c.getCa(),\n c.getComment(),\n c.getNbrEmp(),\n c.getDateContrat(),\n c.getAdresseMail()});\n });\n }",
"public ProductosInventario(String codigoDeBarras, String nombre, Empresa empresa, int presentacion, int iva, int costo, int cantidad, String tipo, int precio) {\n\t\tthis.producto = new Producto(codigoDeBarras, nombre, empresa, presentacion, iva, costo,precio);\n\t\tthis.cantidad = 0;\n\t\tsetCantidad(cantidad);\n\t\tthis.tipo = tipo;\n\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 }",
"private static void crearPedidoGenerandoOPPyOPCyOrdenInsumo() throws RemoteException {\n\t\tlong[] idVariedades = { 63, 34 };\n\t\tint[] cantidades = { 3, 3 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"Pedido nuevo de cliente desde test\", idVariedades,\n\t\t\t\tcantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\n\t}",
"public Vector toVector(){\r\n\t\tVector v = new Vector();\r\n\r\n\t\t// ATTENTION l'ordre est très important !!\r\n\t\t// l'ordre doit être :\r\n\t\t// id, id localisation, adresse, code postal, ville, telephone\r\n\r\n\t\tv.add(id);\r\n\t\tv.add(localisation.getId());\r\n\t\tv.add(localisation.getAdresse());\r\n\t\tv.add(localisation.getCodePostal());\r\n\t\tv.add(localisation.getVille());\r\n\t\tv.add(telephone);\r\n\r\n\t\treturn v;\r\n\t}",
"public void Sumatoria()\n {\n for (int i = 0; i < vector1.length; i++) {\n sumatoria[i]=vector1[i]+vector2[i];\n }\n }",
"public void guardarProductosVendidos() {\n try {\n //Si hay datos los guardamos...\n if (!productosVendidos.isEmpty()) {\n /****** Serialización de los objetos ******/\n //Serialización de los productosVendidos\n FileOutputStream archivo = new FileOutputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de personas\n guardar.writeObject(productosVendidos);\n archivo.close();\n } else {\n System.out.println(\"Error: No hay datos...\");\n }\n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }",
"public VentanaProveedor(VentanaPrincipal v) {\n initComponents();\n v = ventanaPrincipal;\n cp = new ControladorProveedor();\n }",
"public static void main(String[] args) {\n\t\tVetores vetores = new Vetores(8);\n\t\t\n\t\tvetores.adiciona(\"elemento 1\");\n\t\tvetores.adiciona(\"elemento 3\");\n\t\tvetores.adiciona(\"elemento 4\");\t\n\t\t\n\t\tSystem.out.println(\"Buscando valores: \");\n\t\tSystem.out.println(vetores.busca(1));\n\t\t\n\t\tSystem.out.println(\"Exibindo Vetor: \");\n\t\tSystem.out.println(vetores);\n\t\t\n\t\tvetores.adiciona(1, \"elemento 2\");\n\t\t\n\t\tSystem.out.println(\"Adicionando elemento no vetor: \");\n\t\tSystem.out.println(vetores);\n\t}",
"public void cargarProveedor() {\n\t}",
"private void actualizarInventarios() {\r\n\t\tfor (InventarioProducto inventarioProducto : inventariosEditar) {\r\n\t\t\tproductoEJB.editarInventarioProducto(inventarioProducto);\r\n\t\t}\r\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 void main(String[] args) {\r\n\r\n System.out.println(\"\\n INICIANDO SISTEMA\");\r\n \r\n Vendas venda = new Vendas();\r\n Projeto projeto = new Projeto();\r\n Producao producao = new Producao();\r\n Rh rh = new Rh();\r\n Cliente cliente = new Cliente();\r\n ItensPedido itens = new ItensPedido();\r\n Pedido pedido = new Pedido(0,cliente,itens);\r\n int controle =0;\r\n \r\n while (controle ==0){\r\n int decisao = 1;\r\n System.out.println(\" Para realizar vendas digite 1 e 2 para sair do sistema:\");\r\n Scanner teclado = new Scanner(System.in);\r\n decisao = teclado.nextInt();\r\n switch (decisao){\r\n case 1:\r\n // TODO code application logic here\r\n \r\n \r\n System.out.println(\" ABRINDO VENDA\\n \");\r\n \r\n \r\n \r\n rh.liberarFuncionarios(producao.contruir(rh.verificaFuncionario(producao.adicionaProjeto(projeto.recebePedido(venda.fazerVenda(pedido))))));\r\n \r\n // aloca recursos no estoque e finaliza com a liberacao do financeiro\r\n\r\n //compara se ja existe um projeto existente\r\n \r\n \r\n\r\n //chamadada estoque \r\n \r\n \r\n // realizar o teste no setor de teste no projeto\r\n Teste teste = new Teste();\r\n if (teste.realizarTeste()== true){\r\n // libera os funcionarios para modo de espera \r\n\r\n //rh.liberarFuncionarios(listaprojeto.get(entrada));\r\n }\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"************ ENCERRADA VENDA ************\");\r\n \r\n break;\r\n case 2:\r\n controle = 1;\r\n break;\r\n default:\r\n System.out.println(\"OPCAO INVALIDA \\n\");\r\n }}\r\n }",
"public static void main(String[] args) {\n\t\t\n\t\tSistemaStock sistema=new SistemaStock();\n\t\t\n\t\tProducto producto1=new Producto(1,\"Producto 1\",20.5);\n Producto producto2=new Producto(2,\"Producto 2\",15.5);\n System.out.println(producto1+\"\\n\"+producto2); \n try {\n\t\t\tsistema.agregarProducto(producto1.getDescripcion(),producto1.getPrecioUnitario());\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n System.out.println(sistema.getProductos().toString());\n Sucursal sucursal1=new Sucursal(1,\"direccion 1\");\n Sucursal sucursal2=new Sucursal(2,\"direccion 2\");\n\t\ttry {\n\t\t\tsistema.agregarSucursal(sucursal1.getDireccion());\n\t\t} catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tEmpleado empleado1=new Empleado(\"Juan\",\"Gomez\",11111111,sucursal1);\n\t\tEmpleado empleado2=new Empleado(\"Julian\",\"Suarez\",22222222,sucursal2);\n\t\tSystem.out.println(empleado1+\"\\n\"+empleado2);\n\t\t\n\t\tLote lote1=new Lote(sucursal1, producto1,LocalDate.of(2019, 10, 1),100,100,true);\n\t Lote lote2=new Lote(sucursal1,producto2,LocalDate.of(2019,10,1),50,50,true);\n\t Lote lote3=new Lote(sucursal1,producto1,LocalDate.of(2019,10,3),40,40,true);\n\t Lote lote4=new Lote(sucursal2,producto1,LocalDate.of(2019, 10, 2),80,80,true);\n\t Lote lote5=new Lote(sucursal2, producto2,LocalDate.of(2019,10, 2),80,80,true);\n\t System.out.println(lote1+\"\\n\"+lote2+\"\\n\"+lote3+\"\\n\"+lote4+\"\\n\"+lote5);\n\t \n\t sucursal1.getLotes().add(lote1);\n\t sucursal1.getLotes().add(lote2);\n\t sucursal1.getLotes().add(lote3);\n\t sucursal2.getLotes().add(lote4);\n\t sucursal2.getLotes().add(lote5);\n\t \n\t \n\t System.out.println(\"Cantidad: \"+sucursal1.traerCantidad(producto1));\n\t System.out.println(\"Validar Stock: \"+sucursal1.validarConsumo(producto1, 80));\n\t \n\t \n\t \n\t \n\t sistema.getSucursales().add(sucursal1);\n\t sistema.getSucursales().add(sucursal2);\n\t \n\t Remito remito1=new Remito(LocalDate.of(2019,10,5),producto1,80,empleado1,\"Forma de pago 1\");\n\t Remito remito2=new Remito(LocalDate.of(2019,10,5).plusDays(1),producto1,80,empleado1,\"Forma de pago 1\");\n\t System.out.println(remito1);\n\t System.out.println(remito2);\n\t \n\t try {\n\t\t\tSystem.out.println(\"Remito Generado: \"+sistema.generarRemitoDeConsumo(LocalDate.of(2019,10,5),producto1,500,empleado1,\"Forma de pago 1\"));\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t \n try {\n\t\tSystem.out.println(\"Remito Sucursal: \"+sistema.generarRemitoDeConsumo(sucursal1,LocalDate.of(2019,10,5),producto1,500,empleado1,\"Forma de pago 1\"));\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\n\t \n\t \n\t}",
"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 static void llenarWalmart(){\r\n \r\n \r\n Producto café = new Producto(\"cafe\", \"nescafe\", 77, 2);\r\n Nodo<Producto> nTemp = new Nodo(café);\r\n listaWalmart.agregarNodo(nTemp);\r\n \r\n Producto panblancobimbo = new Producto(\"pan blanco bimbo\", \"bimbo\", 30, 2);\r\n Nodo<Producto> nTemp2 = new Nodo(panblancobimbo);\r\n listaWalmart.agregarNodo(nTemp2);\r\n \r\n Producto lecheentera = new Producto(\"leche\", \"Lala\", 17, 2);\r\n Nodo<Producto> nTemp3 = new Nodo(lecheentera);\r\n listaWalmart.agregarNodo(nTemp3);\r\n \r\n Producto mantequilla = new Producto(\"mantequilla\", \"sin sal lala\", 11.50, 2);\r\n Nodo<Producto> nTemp4 = new Nodo(mantequilla);\r\n listaWalmart.agregarNodo(nTemp4);\r\n \r\n Producto huevoblanco= new Producto(\"huevo\", \"san juan\",50.50, 2);\r\n Nodo<Producto> nTemp5 = new Nodo(huevoblanco);\r\n listaWalmart.agregarNodo(nTemp5);\r\n \r\n Producto crema= new Producto(\"crema\", \"lala\", 46, 2);\r\n Nodo<Producto> nTemp6 = new Nodo(crema);\r\n listaWalmart.agregarNodo(nTemp6);\r\n \r\n Producto naranja= new Producto(\"naranja\", \"valencia\", 15.90, 0);\r\n Nodo<Producto> nTemp7 = new Nodo(naranja);\r\n listaWalmart.agregarNodo(nTemp7);\r\n \r\n Producto limon= new Producto(\"limon\", \"limon agrio\", 25.90, 0);\r\n Nodo<Producto> nTemp8 = new Nodo(limon);\r\n listaWalmart.agregarNodo(nTemp8);\r\n \r\n Producto manzana= new Producto(\"manzana\", \"red delicious\", 39.90, 0);\r\n Nodo<Producto> nTemp9 = new Nodo(manzana);\r\n listaWalmart.agregarNodo(nTemp9);\r\n \r\n Producto plátano = new Producto(\"platano\", \"chiapas\", 13.90, 0);\r\n Nodo<Producto> nTemp10 = new Nodo(plátano);\r\n listaWalmart.agregarNodo(nTemp10);\r\n \r\n Producto papaya= new Producto(\"papaya\", \"maradol\",27.90, 0);\r\n Nodo<Producto> nTemp11 = new Nodo(papaya);\r\n listaWalmart.agregarNodo(nTemp11);\r\n \r\n Producto uva= new Producto(\"uva\", \"roja sin semilla\", 59, 0);\r\n Nodo<Producto> nTemp12 = new Nodo(uva);\r\n listaWalmart.agregarNodo(nTemp12);\r\n \r\n Producto chiledelarbol= new Producto(\"chile del arbol\", \"verde valle\", 20, 2);\r\n Nodo<Producto> nTemp13 = new Nodo(chiledelarbol);\r\n listaWalmart.agregarNodo(nTemp13);\r\n \r\n Producto piernaymuslodepollo = new Producto(\"pierna y muslo de pollo\", \"bachoco\", 34, 1);\r\n Nodo<Producto> nTemp14 = new Nodo(piernaymuslodepollo);\r\n listaWalmart.agregarNodo(nTemp14);\r\n \r\n Producto pechugadepollo= new Producto(\"pechuga de pollo\", \"bachoco\", 114, 1);\r\n Nodo<Producto> nTemp15 = new Nodo(pechugadepollo);\r\n listaWalmart.agregarNodo(nTemp15);\r\n \r\n Producto costilladecerdo= new Producto(\"costilla de cerdo\", \"pork loin\", 114, 1);\r\n Nodo<Producto> nTemp16 = new Nodo(costilladecerdo);\r\n listaWalmart.agregarNodo(nTemp16);\r\n \r\n Producto carnemolida= new Producto(\"carne molida\", \"premium\", 152, 1);\r\n Nodo<Producto> nTemp17 = new Nodo(carnemolida);\r\n listaWalmart.agregarNodo(nTemp17);\r\n \r\n Producto chuletadecostilla= new Producto(\"chuleta de costilla\", \"premium\", 219, 1);\r\n Nodo<Producto> nTemp18 = new Nodo(chuletadecostilla);\r\n listaWalmart.agregarNodo(nTemp18);\r\n \r\n Producto pescado= new Producto(\"pescado\", \"sierra del golfo\", 89, 1);\r\n Nodo<Producto> nTemp19 = new Nodo(pescado);\r\n listaWalmart.agregarNodo(nTemp19);\r\n \r\n Producto atun= new Producto(\"atun\", \"herdez\", 18.50, 2);\r\n Nodo<Producto> nTemp20 = new Nodo(atun);\r\n listaWalmart.agregarNodo(nTemp20);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"verde valle super extra\", 22.50, 2);\r\n Nodo<Producto> nTemp21 = new Nodo(arroz);\r\n listaWalmart.agregarNodo(nTemp21);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"verde valle\", 30, 2);\r\n Nodo<Producto> nTemp22 = new Nodo(frijol);\r\n listaWalmart.agregarNodo(nTemp22);\r\n \r\n \r\n Producto azucar= new Producto(\"azucar\", \"zulka\", 54, 2);\r\n Nodo<Producto> nTemp23 = new Nodo(azucar);\r\n listaWalmart.agregarNodo(nTemp23);\r\n \r\n Producto consome= new Producto(\"consome\", \"knorr\", 7, 2);\r\n Nodo<Producto> nTemp24 = new Nodo(consome);\r\n listaWalmart.agregarNodo(nTemp24);\r\n \r\n Producto galletassaladas= new Producto(\"galletas saladas\", \"saladitas\", 40, 2);\r\n Nodo<Producto> nTemp25 = new Nodo(galletassaladas);\r\n listaWalmart.agregarNodo(nTemp25);\r\n \r\n Producto sal= new Producto(\"sal\", \"la fina\", 8.90, 2);\r\n Nodo<Producto> nTemp26 = new Nodo(sal);\r\n listaWalmart.agregarNodo(nTemp26);\r\n \r\n Producto pimienta= new Producto(\"pimienta\", \"mccormick\", 47.50, 2);\r\n Nodo<Producto> nTemp27= new Nodo(pimienta);\r\n listaWalmart.agregarNodo(nTemp27);\r\n \r\n Producto comino= new Producto(\"comino\", \"mccormick\", 30, 2);\r\n Nodo<Producto> nTemp28 = new Nodo(comino);\r\n listaWalmart.agregarNodo(nTemp28);\r\n \r\n Producto canela= new Producto(\"canela\", \"el cuernito\", 4.50, 2);\r\n Nodo<Producto> nTemp29 = new Nodo(canela);\r\n listaWalmart.agregarNodo(nTemp29);\r\n \r\n Producto cebolla= new Producto(\"cebolla\", \"blanca\", 31.90, 2);\r\n Nodo<Producto> nTemp30 = new Nodo(cebolla);\r\n listaWalmart.agregarNodo(nTemp30);\r\n \r\n Producto zanahoria= new Producto(\"zanahoria\", \"simple\", 19.50, 2);\r\n Nodo<Producto> nTemp31 = new Nodo(zanahoria);\r\n listaWalmart.agregarNodo(nTemp31);\r\n \r\n Producto polvoparaprepararbebida= new Producto(\"polvo para preparar bebida\", \"zuko\", 3.80, 2);\r\n Nodo<Producto> nTemp32 = new Nodo(polvoparaprepararbebida);\r\n listaWalmart.agregarNodo(nTemp32);\r\n \r\n Producto cereal= new Producto(\"cereal\", \"nestle\", 39.90, 2);\r\n Nodo<Producto> nTemp33 = new Nodo(cereal);\r\n listaWalmart.agregarNodo(nTemp33);\r\n \r\n Producto sopa= new Producto(\"sopa\", \"aurrera \", 3.10, 2);\r\n Nodo<Producto> nTemp34 = new Nodo(sopa);\r\n listaWalmart.agregarNodo(nTemp34);\r\n \r\n \r\n Producto espagueti= new Producto(\"espagueti\", \"moderna\", 5.20, 2);\r\n Nodo<Producto> nTem35 = new Nodo(espagueti);\r\n listaWalmart.agregarNodo(nTem35);\r\n \r\n Producto maquinaparaafeitar= new Producto(\"maquina para afeitar\", \"gillette prestobarba\", 20, 3);\r\n Nodo<Producto> nTemp35 = new Nodo(maquinaparaafeitar);\r\n listaWalmart.agregarNodo(nTemp35);\r\n \r\n Producto shampoo= new Producto(\"shampoo\", \"ego black\", 63.50, 3);\r\n Nodo<Producto> nTemp36 = new Nodo(shampoo);\r\n listaWalmart.agregarNodo(nTemp36);\r\n \r\n \r\n Producto pastadental= new Producto(\"pasta dental\", \"colgate\", 43.50, 3);\r\n Nodo<Producto> nTemp37 = new Nodo(pastadental);\r\n listaWalmart.agregarNodo(nTemp37);\r\n \r\n Producto papelhigienico= new Producto(\"papel higienico\", \"elite\", 17.50, 3);\r\n Nodo<Producto> nTemp38 = new Nodo(papelhigienico);\r\n listaWalmart.agregarNodo(nTemp38);\r\n \r\n Producto pañuelos = new Producto(\"pañuelos\", \"kleenex\", 14.50, 3);\r\n Nodo<Producto> nTemp39 = new Nodo(pañuelos);\r\n listaWalmart.agregarNodo(nTemp39);\r\n \r\n Producto cremad = new Producto(\"crema\", \"pond´s\", 56, 2);\r\n Nodo<Producto> nTemp40 = new Nodo(cremad);\r\n listaWalmart.agregarNodo(nTemp40);\r\n \r\n Producto desodorantemasculino= new Producto(\"desodorante masculino\", \"stefano\", 41.50, 3);\r\n Nodo<Producto> nTemp41 = new Nodo(desodorantemasculino);\r\n listaWalmart.agregarNodo(nTemp41);\r\n \r\n Producto desodorantefemenino= new Producto(\"desodorante femenino\", \"lady speed stick\", 23, 3);\r\n Nodo<Producto> nTemp42 = new Nodo(desodorantefemenino);\r\n listaWalmart.agregarNodo(nTemp42);\r\n \r\n Producto cloro= new Producto(\"cloro\", \"cloralex\", 21, 3);\r\n Nodo<Producto> nTemp43 = new Nodo(cloro);\r\n listaWalmart.agregarNodo(nTemp43);\r\n \r\n Producto pinol= new Producto(\"pinol\", \"pinol\", 29.90, 3);\r\n Nodo<Producto> nTemp44 = new Nodo(pinol);\r\n listaWalmart.agregarNodo(nTemp44);\r\n \r\n Producto lavatrastes= new Producto(\"lavatrastes\", \"axion\", 36.90, 3);\r\n Nodo<Producto> nTemp45 = new Nodo(lavatrastes);\r\n listaWalmart.agregarNodo(nTemp45);\r\n \r\n Producto deterjente= new Producto(\"deterjente\", \"finish\", 99, 3);\r\n Nodo<Producto> nTemp46 = new Nodo(deterjente);\r\n listaWalmart.agregarNodo(nTemp46);\r\n \r\n Producto queso= new Producto(\"queso\", \"chichuahua\", 125, 1);\r\n Nodo<Producto> nTemp47 = new Nodo(queso);\r\n listaWalmart.agregarNodo(nTemp47);\r\n \r\n Producto lentejas= new Producto(\"lentejas\", \"verde valle\", 25.50, 2);\r\n Nodo<Producto> nTemp48 = new Nodo(lentejas);\r\n listaWalmart.agregarNodo(nTemp48);\r\n \r\n Producto papitas= new Producto(\"papitas\", \"sabritas\", 36, 2);\r\n Nodo<Producto> nTemp49 = new Nodo(papitas);\r\n listaWalmart.agregarNodo(nTemp49);\r\n \r\n Producto mole= new Producto(\"mole\", \"doña maria \", 33, 2);\r\n Nodo<Producto> nTemp50 = new Nodo(mole);\r\n listaWalmart.agregarNodo(nTemp50);\r\n }",
"public static void llenarAlsuper(){\r\n Producto huevos = new Producto(\"huevos\", \"bachoco\", 56.90, 1);\r\n Nodo<Producto> ATemp = new Nodo(huevos);\r\n listaAlsuper.agregarNodo(ATemp);\r\n \r\n Producto chuletas = new Producto(\"chuletas\", \"Del Cero\", 84.90, 1);\r\n Nodo<Producto> ATemp2 = new Nodo(chuletas);\r\n listaAlsuper.agregarNodo(ATemp2);\r\n \r\n Producto carnemolida = new Producto(\"carne molida\", \"premium\", 79.90, 1);\r\n Nodo<Producto> ATemp3 = new Nodo(carnemolida);\r\n listaAlsuper.agregarNodo(ATemp3);\r\n \r\n Producto pollo = new Producto(\"pollo\", \"super pollo\", 59.90, 1);\r\n Nodo<Producto> ATemp4 = new Nodo(pollo);\r\n listaAlsuper.agregarNodo(ATemp4);\r\n \r\n Producto pescado = new Producto(\"pescado\", \"el pecesito\", 63.90, 1);\r\n Nodo<Producto> ATemp5 = new Nodo(pescado);\r\n listaAlsuper.agregarNodo(ATemp5);\r\n \r\n Producto atunagua = new Producto(\"atun en agua\", \"en agua\", 9.90, 1);\r\n Nodo<Producto> ATemp6 = new Nodo(atunagua);\r\n listaAlsuper.agregarNodo(ATemp6);\r\n \r\n Producto atunaceite = new Producto(\"atun en aceite\", \"en aceite\", 9.90, 1);\r\n Nodo<Producto> ATemp7 = new Nodo(atunaceite);\r\n listaAlsuper.agregarNodo(ATemp7);\r\n \r\n Producto leche = new Producto(\"leche\", \"nutri leche\", 14.90, 1);\r\n Nodo<Producto> ATemp8 = new Nodo(leche);\r\n listaAlsuper.agregarNodo(ATemp8);\r\n \r\n Producto arroz = new Producto(\"arroz\", \"mimarca\", 13.90, 1);\r\n Nodo<Producto> ATemp9 = new Nodo(arroz);\r\n listaAlsuper.agregarNodo(ATemp9);\r\n \r\n Producto frijol= new Producto(\"frijol\", \"pinto\", 16.90, 1);\r\n Nodo<Producto> ATemp10 = new Nodo(frijol);\r\n listaAlsuper.agregarNodo(ATemp10);\r\n \r\n Producto azucar = new Producto(\"azucar\", \"mimarca\", 17.90, 1);\r\n Nodo<Producto> ATemp11 = new Nodo(azucar);\r\n listaAlsuper.agregarNodo(ATemp11);\r\n \r\n Producto sal = new Producto(\"sal\", \"salada\", 10.90, 1);\r\n Nodo<Producto> ATemp12 = new Nodo(sal);\r\n listaAlsuper.agregarNodo(ATemp12);\r\n \r\n Producto pimienta = new Producto(\"pimienta\", \"pimi\", 3.90, 2);\r\n Nodo<Producto> ATemp13 = new Nodo(pimienta);\r\n listaAlsuper.agregarNodo(ATemp13);\r\n \r\n Producto limon = new Producto(\"limon\", \"verde\", 5.90, 0);\r\n Nodo<Producto> ATemp14 = new Nodo(limon);\r\n listaAlsuper.agregarNodo(ATemp14);\r\n \r\n Producto tomate = new Producto(\"tomate\", \"rojo\", 13.90, 0);\r\n Nodo<Producto> ATemp15 = new Nodo(tomate);\r\n listaAlsuper.agregarNodo(ATemp15);\r\n \r\n Producto zanahoria = new Producto(\"zanahoria\", \"goku\", 8.90, 0);\r\n Nodo<Producto> ATemp16 = new Nodo(zanahoria);\r\n listaAlsuper.agregarNodo(ATemp16);\r\n \r\n Producto papas = new Producto(\"papas\", \"ochoa\", 8.90, 0);\r\n Nodo<Producto> ATemp17 = new Nodo(papas);\r\n listaAlsuper.agregarNodo(ATemp17);\r\n \r\n Producto cebolla = new Producto(\"cebolla\", \"blanca\", 17.90, 1);\r\n Nodo<Producto> ATemp18 = new Nodo(cebolla);\r\n listaAlsuper.agregarNodo(ATemp18);\r\n \r\n Producto aceitecocina = new Producto(\"aceite de cocina\", \"123\", 29.90, 1);\r\n Nodo<Producto> ATemp19 = new Nodo(aceitecocina);\r\n listaAlsuper.agregarNodo(ATemp19);\r\n \r\n Producto panblanco = new Producto(\"pan blanco\", \"blanco\", 2.90, 1);\r\n Nodo<Producto> ATemp20 = new Nodo(panblanco);\r\n listaAlsuper.agregarNodo(ATemp20);\r\n \r\n Producto pan = new Producto(\"pan\", \"bimbo\", 39.90, 1);\r\n Nodo<Producto> ATemp21 = new Nodo(pan);\r\n listaAlsuper.agregarNodo(ATemp21);\r\n \r\n Producto zuko = new Producto(\"zuko\", \"zuko\", 4.90, 1);\r\n Nodo<Producto> ATemp22 = new Nodo(zuko);\r\n listaAlsuper.agregarNodo(ATemp22);\r\n \r\n Producto consome = new Producto(\"consome\", \"panchi\", 10.90, 2);\r\n Nodo<Producto> ATemp23 = new Nodo(consome);\r\n listaAlsuper.agregarNodo(ATemp23);\r\n \r\n Producto cereal = new Producto(\"cereal\", \"nesquik\", 40.90, 2);\r\n Nodo<Producto> ATemp24 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp24);\r\n \r\n Producto cereal2 = new Producto(\"cereal\", \"zucaritas\", 50.90, 2);\r\n Nodo<Producto> ATemp25 = new Nodo(cereal2);\r\n listaAlsuper.agregarNodo(ATemp25);\r\n \r\n Producto cereal3 = new Producto(\"cereal\", \"kellogs\", 35.90, 2);\r\n Nodo<Producto> ATemp26 = new Nodo(cereal3);\r\n listaAlsuper.agregarNodo(ATemp26);\r\n \r\n Producto chocomilk = new Producto(\"chocomilk\", \"pancho pantera\", 60.90, 2);\r\n Nodo<Producto> ATemp27 = new Nodo(chocomilk);\r\n listaAlsuper.agregarNodo(ATemp27);\r\n \r\n Producto apio = new Producto(\"apio\", \"pa el clamato\", 1.90, 0);\r\n Nodo<Producto> ATemp28 = new Nodo(cereal);\r\n listaAlsuper.agregarNodo(ATemp28);\r\n \r\n Producto chocomilk2 = new Producto(\"chocomilk\", \"el dinosaurio\", 15.90, 2);\r\n Nodo<Producto> ATemp29 = new Nodo(chocomilk2);\r\n listaAlsuper.agregarNodo(ATemp29);\r\n \r\n Producto chile = new Producto(\"chile\", \"amor\", 7.90, 0);\r\n Nodo<Producto> ATemp30 = new Nodo(chile);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto chilaca = new Producto(\"chilaca\", \"chihuahua\", 8.80, 0);\r\n Nodo<Producto> ATemp31 = new Nodo(chilaca);\r\n listaAlsuper.agregarNodo(ATemp30);\r\n \r\n Producto cafe= new Producto(\"cafe\", \"nescafe\",.90, 2);\r\n Nodo<Producto> ATemp32 = new Nodo(cafe);\r\n listaAlsuper.agregarNodo(ATemp32);\r\n \r\n Producto sopa = new Producto(\"sopa\", \"de coditos\", 4.90, 2);\r\n Nodo<Producto> ATemp33 = new Nodo(sopa);\r\n listaAlsuper.agregarNodo(ATemp33);\r\n \r\n Producto sopa2 = new Producto(\"sopa\", \"estrellas\", 3.90, 2);\r\n Nodo<Producto> ATemp34 = new Nodo(sopa2);\r\n listaAlsuper.agregarNodo(ATemp34);\r\n \r\n Producto sopa3 = new Producto(\"sopa\", \"moñitos\", 3.90, 2);\r\n Nodo<Producto> ATemp35 = new Nodo(sopa3);\r\n listaAlsuper.agregarNodo(ATemp35);\r\n \r\n Producto sopa4 = new Producto(\"sopa\", \"letras\", 3.90, 2);\r\n Nodo<Producto> ATemp36 = new Nodo(sopa4);\r\n listaAlsuper.agregarNodo(ATemp36);\r\n \r\n Producto pasta = new Producto(\"pasta\", \"spaguetti\", 15.90, 2);\r\n Nodo<Producto> ATemp37 = new Nodo(pasta);\r\n listaAlsuper.agregarNodo(ATemp37);\r\n \r\n Producto shampoo = new Producto(\"champu\", \"palmolive\", 36.90, 3);\r\n Nodo<Producto> ATemp38 = new Nodo(shampoo);\r\n listaAlsuper.agregarNodo(ATemp38);\r\n \r\n Producto desodorante = new Producto(\"desodorante\", \"old spice\", 50.90, 3);\r\n Nodo<Producto> ATemp39 = new Nodo(desodorante);\r\n listaAlsuper.agregarNodo(ATemp39);\r\n \r\n Producto jabontrastes = new Producto(\"jabon para los trastes\", \"salvo\", 40.90, 3);\r\n Nodo<Producto> ATemp40 = new Nodo(jabontrastes);\r\n listaAlsuper.agregarNodo(ATemp40);\r\n \r\n Producto jaboncuerpo = new Producto(\"jabon para el cuerpo\", \"jabonzote\", 6.90, 3);\r\n Nodo<Producto> ATemp41 = new Nodo(jaboncuerpo);\r\n listaAlsuper.agregarNodo(ATemp41);\r\n \r\n Producto rastrillo = new Producto(\"rastrillo\", \"gillette\", 60.90, 3);\r\n Nodo<Producto> ATemp42 = new Nodo(rastrillo);\r\n listaAlsuper.agregarNodo(ATemp42);\r\n \r\n Producto detergente = new Producto(\"detergente\", \"downy\", 38.90, 3);\r\n Nodo<Producto> ATemp43 = new Nodo(detergente);\r\n listaAlsuper.agregarNodo(ATemp43);\r\n \r\n Producto puredetomate = new Producto(\"pure de tomate\", \"tomax\", 9.90, 3);\r\n Nodo<Producto> ATemp44 = new Nodo(puredetomate);\r\n listaAlsuper.agregarNodo(ATemp44);\r\n \r\n Producto mole = new Producto(\"mole\", \"doña maria\", 25.90, 3);\r\n Nodo<Producto> ATemp45 = new Nodo(mole);\r\n listaAlsuper.agregarNodo(ATemp45);\r\n \r\n Producto papel = new Producto(\"papel\", \"petalo\", 6.90, 3);\r\n Nodo<Producto> ATemp46 = new Nodo(papel);\r\n listaAlsuper.agregarNodo(ATemp46);\r\n \r\n Producto servilletas = new Producto(\"servilletas\", \"mimarca\", 12.90, 3);\r\n Nodo<Producto> ATemp47 = new Nodo(servilletas);\r\n listaAlsuper.agregarNodo(ATemp47);\r\n \r\n Producto manzana = new Producto(\"manzanas\", \"roja\", 20.90, 0);\r\n Nodo<Producto> ATemp48 = new Nodo(manzana);\r\n listaAlsuper.agregarNodo(ATemp48);\r\n \r\n Producto platano = new Producto(\"platano\", \"meagarras\", 19.90, 0);\r\n Nodo<Producto> ATemp50 = new Nodo(platano);\r\n listaAlsuper.agregarNodo(ATemp50);\r\n \r\n Producto papaya = new Producto(\"papaya\", \"naranja\", 0.90, 0);\r\n Nodo<Producto> ATemp51 = new Nodo(papaya);\r\n listaAlsuper.agregarNodo(ATemp51);\r\n \r\n Producto pastadedientes = new Producto(\"pasta de dientes\", \"colgate\", 30.90, 0);\r\n Nodo<Producto> ATemp52 = new Nodo(pastadedientes);\r\n listaAlsuper.agregarNodo(ATemp52);\r\n \r\n Producto desodorante2 = new Producto(\"desodorante\", \"axe\", 50.90, 3);\r\n Nodo<Producto> ATemp53 = new Nodo(desodorante2);\r\n listaAlsuper.agregarNodo(ATemp53);\r\n \r\n Producto cremacuerpo = new Producto(\"crema\", \"real\", 30.90, 3);\r\n Nodo<Producto> ATemp54 = new Nodo(cremacuerpo);\r\n listaAlsuper.agregarNodo(ATemp54);\r\n \r\n Producto cremacomer = new Producto(\"crema\", \"lala\", 29.90, 2);\r\n Nodo<Producto> ATemp55 = new Nodo(cremacomer);\r\n listaAlsuper.agregarNodo(ATemp55);\r\n \r\n Producto cloro = new Producto(\"cloro\", \"cloralex\", 9.90, 3);\r\n Nodo<Producto> ATemp56 = new Nodo(cloro);\r\n listaAlsuper.agregarNodo(ATemp56);\r\n \r\n Producto pinol = new Producto(\"pinol\", \"pinol\", 28.90, 0);\r\n Nodo<Producto> ATemp57 = new Nodo(pinol);\r\n listaAlsuper.agregarNodo(ATemp57);\r\n \r\n Producto amonia = new Producto(\"amonia\", \"amonio\", 666.66, 3);\r\n Nodo<Producto> ATemp58 = new Nodo(amonia);\r\n listaAlsuper.agregarNodo(ATemp58);\r\n \r\n Producto tortillas = new Producto(\"tortillas\", \"caseras\", 18.90, 2);\r\n Nodo<Producto> ATemp59 = new Nodo(tortillas);\r\n listaAlsuper.agregarNodo(ATemp59);\r\n \r\n Producto winni = new Producto(\"winni\", \"chimex\", 30.90, 1);\r\n Nodo<Producto> ATemp60 = new Nodo(winni);\r\n listaAlsuper.agregarNodo(ATemp60);\r\n \r\n Producto salchicha = new Producto(\"salchicha\", \"chimex\", 60.90, 1);\r\n Nodo<Producto> ATemp61 = new Nodo(salchicha);\r\n listaAlsuper.agregarNodo(ATemp61);\r\n \r\n Producto jamon = new Producto(\"jamon\", \"chimex\", 70.90, 1);\r\n Nodo<Producto> ATemp63 = new Nodo(jamon);\r\n listaAlsuper.agregarNodo(ATemp63);\r\n \r\n Producto queso = new Producto(\"queso\", \"camargo\", 90.90, 1);\r\n Nodo<Producto> ATemp64 = new Nodo(queso);\r\n listaAlsuper.agregarNodo(ATemp64);\r\n \r\n Producto saladas = new Producto(\"saladas\", \"saladitas\", 15.90, 2);\r\n Nodo<Producto> ATemp65 = new Nodo(saladas);\r\n listaAlsuper.agregarNodo(ATemp65);\r\n \r\n Producto galletas = new Producto(\"galletas\", \"emperador\", 18.90, 2);\r\n Nodo<Producto> ATemp66 = new Nodo(galletas);\r\n listaAlsuper.agregarNodo(ATemp66);\r\n \r\n Producto lentejas = new Producto(\"lentejas\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp67 = new Nodo(lentejas);\r\n listaAlsuper.agregarNodo(ATemp67);\r\n \r\n Producto puredepapa = new Producto(\"pure de papa\", \"mi marca\", 20.90, 2);\r\n Nodo<Producto> ATemp68 = new Nodo(puredepapa);\r\n listaAlsuper.agregarNodo(ATemp68);\r\n \r\n Producto trapos = new Producto(\"trapos\", \"trapitos\", 15.90, 3);\r\n Nodo<Producto> ATemp69 = new Nodo(trapos);\r\n listaAlsuper.agregarNodo(ATemp69);\r\n \r\n Producto soda = new Producto(\"soda\", \"cocacola\", 31.90, 2);\r\n Nodo<Producto> ATemp70 = new Nodo(soda);\r\n listaAlsuper.agregarNodo(ATemp70);\r\n \r\n Producto jugo = new Producto(\"jugo\", \"jumex\",19.90, 2);\r\n Nodo<Producto> ATemp71 = new Nodo(jugo);\r\n listaAlsuper.agregarNodo(ATemp71);\r\n \r\n Producto cerbeza = new Producto(\"cerbeza\", \"indio\", 11.90, 2);\r\n Nodo<Producto> ATemp72 = new Nodo(cerbeza);\r\n listaAlsuper.agregarNodo(ATemp72);\r\n \r\n Producto hielo = new Producto(\"hielo\", \"pinguino\", 10.90, 2);\r\n Nodo<Producto> ATemp73 = new Nodo(hielo);\r\n listaAlsuper.agregarNodo(ATemp73);\r\n \r\n Producto salsa = new Producto(\"salsa\", \"maggi\", 60.90, 2);\r\n Nodo<Producto> ATemp74 = new Nodo(salsa);\r\n listaAlsuper.agregarNodo(ATemp74);\r\n \r\n Producto desechables = new Producto(\"desechables\", \"mimarca\", 10.90, 2);\r\n Nodo<Producto> ATemp75 = new Nodo(desechables);\r\n listaAlsuper.agregarNodo(ATemp75);\r\n \r\n Producto chicharo = new Producto(\"chicharo\", \"chicharo\", 10.90, 2);\r\n Nodo<Producto> ATemp76 = new Nodo(chicharo);\r\n listaAlsuper.agregarNodo(ATemp76);\r\n \r\n Producto elotes = new Producto(\"elotes\", \"elotin\", 2.90, 2);\r\n Nodo<Producto> ATemp77 = new Nodo(elotes);\r\n listaAlsuper.agregarNodo(ATemp77);\r\n \r\n Producto champiñones = new Producto(\"champiñones\", \"toat\", 14.90, 2);\r\n Nodo<Producto> ATemp78 = new Nodo(champiñones);\r\n listaAlsuper.agregarNodo(ATemp78);\r\n \r\n Producto sardina = new Producto(\"sardina\", \"sardinota\", 31.90, 2);\r\n Nodo<Producto> ATemp79 = new Nodo(sardina);\r\n listaAlsuper.agregarNodo(ATemp79);\r\n \r\n Producto hilodental = new Producto(\"hilo dental\", \"colgate\", 40.90, 3);\r\n Nodo<Producto> ATemp80 = new Nodo(hilodental);\r\n listaAlsuper.agregarNodo(ATemp80);\r\n \r\n Producto cepillodedientes = new Producto(\"cepillo de dientes\", \"colgate\", 25.90, 3);\r\n Nodo<Producto> ATemp81 = new Nodo(cepillodedientes);\r\n listaAlsuper.agregarNodo(ATemp81);\r\n \r\n Producto gel = new Producto(\"gel para el cabello\", \"ego\", 16.90, 3);\r\n Nodo<Producto> ATemp82 = new Nodo(gel);\r\n listaAlsuper.agregarNodo(ATemp82);\r\n \r\n Producto cera = new Producto(\"cera\", \"ego\", 47.90, 3);\r\n Nodo<Producto> ATemp83 = new Nodo(cera);\r\n listaAlsuper.agregarNodo(ATemp83);\r\n \r\n Producto aerosol = new Producto(\"aerosol\", \"paris\", 75.90, 3);\r\n Nodo<Producto> ATemp84 = new Nodo(aerosol);\r\n listaAlsuper.agregarNodo(ATemp84);\r\n \r\n Producto acondicionador = new Producto(\"acondicionador\", \"loreal paris\", 70.90, 3);\r\n Nodo<Producto> ATemp85 = new Nodo(acondicionador);\r\n listaAlsuper.agregarNodo(ATemp85);\r\n \r\n Producto cremaafeitar = new Producto(\"crema para afeitar\", \"yilet\", 40.90, 3);\r\n Nodo<Producto> ATemp86 = new Nodo(cremaafeitar);\r\n listaAlsuper.agregarNodo(ATemp86);\r\n }",
"public Vending_Machine(ArrayList<Products> p) {\n\t\tproducts = p;\n\t\tcurrentCoin = new CoinSet();\n\t\tcoin = new CoinSet();\n\t}",
"public Vector<T> crossProduct(Vector<T> aVector) throws VectorSizeException;",
"public static void main(String[] args) {\n\r\n\t\tCustomer customer0 = new Customer(2007, \"35621485268\", \"José Felipe Martins\", true, 590.9);\r\n\t\tCustomer customer1 = new Customer(1950, \"47821485297\", \"Maria Alice Barros\", true, 700);\r\n\t\tCustomer customer2 = new Customer(850, \"25521485858\", \"Carlos Eduardo\", true, 750);\r\n\t\tCustomer customer3 = new Customer(2150, \"32412587548\", \"Gev Alisson\", true, 400);\r\n\t\t\r\n\t\t//2 Criar um programa que percorra uma lista de objetos do tipo \r\n\t\t//criado acima e calcule a média do campo vl_total apenas para os \r\n\t\t//itens que este valor seja maior que 560 e o capo id_customer \r\n\t\t//esteja entre 1500 e 2700.\r\n\t\t\r\n\t\tList<Customer> lista = new ArrayList<Customer>();\r\n\t\tlista.add(customer0);\r\n\t\tlista.add(customer1);\r\n\t\tlista.add(customer2);\r\n\t\tlista.add(customer3);\r\n\t\t\r\n\t\tCustomerControl control = new CustomerControl();\r\n\t\tdouble media = control.CalcMedia(lista);\r\n\r\n\t\t//3 Exibir a média final.\r\n\t\tSystem.out.println(\"a media é: \"+ media);\r\n\t\t\r\n\t\t//4 Imprima cada um dos obejtos selecionados para o cálculo da média. \r\n\t\tSystem.out.println(\"objetos selecionados para media\\n\");\r\n\t\tfor(Customer c : control.selecionarParaMedia(lista)){\r\n\t\t\tSystem.out.println(c.toString());\r\n\t\t}\r\n\t\t//5 - 5 Ordene pelo campo vlTotal os objetos selecionados para o cálculo da média. \r\n\t\tList<Customer> listaOrdenada = control.Ordenar(control.selecionarParaMedia(lista));\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\\n resultado da lista ordenada\");\r\n\t\tfor(Customer c : listaOrdenada){\r\n\t\t\tSystem.out.println(c.toString());\r\n\t\t}\r\n\r\n\t}",
"public List<Ingrediente> verIngredientes(){\n\t\t// Implementar\n\t\treturn ingredientes;\n\t}",
"private void obtenerClienteRecomendado(Cliente clienteParametro, Long oidPais) throws MareException {\n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerClienteRecomendado(ClienteclienteParametro, Long oidPais):Entrada\");\n\n BelcorpService bsInc = null;\n RecordSet respuestaInc = null;\n StringBuffer queryInc = new StringBuffer();\n ArrayList lstRecomendados;\n\n if ( clienteParametro.getClienteRecomendante() != null){\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"oidClienteRecomendante=\"+clienteParametro.getClienteRecomendante().getRecomendante());\n }\n\n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n\n try {\n queryInc.append(\" SELECT \");\n queryInc.append(\" CLIE_OID_CLIE_VNDO CLIE_OID_CLIE, \");\n queryInc.append(\" FEC_DESD FEC_INIC, \");\n queryInc.append(\" FEC_HAST FEC_FINA \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU, MAE_TIPO_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNTE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND TIVC_OID_TIPO_VINC = OID_TIPO_VINC \");\n queryInc.append(\" AND PAIS_OID_PAIS = \" + oidPais);\n queryInc.append(\" AND IND_RECO = 1 \");\n queryInc.append(\" AND CLIE_OID_CLIE_VNDO NOT IN ( \");\n \n // queryInc.append(\" SELECT RDO.CLIE_OID_CLIE, FEC_INIC, FEC_FINA \");\n queryInc.append(\" SELECT DISTINCT RDO.CLIE_OID_CLIE \");\n queryInc.append(\" FROM INC_CLIEN_RECDO RDO, CRA_PERIO, \");\n queryInc.append(\" INC_CLIEN_RECTE RECT \");\n queryInc.append(\" WHERE PERD_OID_PERI = OID_PERI \");\n queryInc.append(\" AND RECT.CLIE_OID_CLIE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND CLR3_OID_CLIE_RETE = OID_CLIE_RETE \");\n \n queryInc.append(\" ) \");\n \n respuestaInc = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaInc \" + respuestaInc); \n\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n //BelcorpService bsMae = null;\n RecordSet respuestaMae = null;\n //StringBuffer queryMae = new StringBuffer();\n\n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n }\n \n boolean hayRecomendado = false;\n Cliente clienteLocal = new Cliente();\n lstRecomendados = clienteParametro.getClienteRecomendado();\n\n if (!respuestaInc.esVacio()) {\n \n hayRecomendado = true;\n \n clienteParametro.setIndRecomendadosEnINC(true);\n \n /* vbongiov -- RI SiCC 20090941 -- 16/06/2009 \n * no lleno lstRecomendados con estos valores solo mantengo el indicador IndRecomendadosEnINC \n \n lstRecomendados.clear();\n \n for(int i=0; i<respuestaInc.getRowCount();i++){ \n ClienteRecomendado clienteRecomendado = new ClienteRecomendado(); \n\n clienteRecomendado.setRecomendante(clienteParametro.getOidCliente()); \n \n BigDecimal recomendado = (BigDecimal) respuestaInc.getValueAt(i, \"CLIE_OID_CLIE\");\n clienteRecomendado.setRecomendado((recomendado != null) ? new Long(recomendado.longValue()) : null);\n \n clienteRecomendado.setFechaInicio((Date) respuestaInc.getValueAt(i, \"FEC_INIC\"));\n Date fechaFin = (Date) respuestaInc.getValueAt(i, \"FEC_FINA\");\n clienteRecomendado.setFechaFin((fechaFin != null) ? fechaFin : null);\n\n clienteLocal.setOidCliente(clienteRecomendado.getRecomendado());\n this.obtenerPeriodosConPedidosCliente(clienteLocal);\n clienteRecomendado.setPeriodosConPedidos(clienteLocal.getPeriodosConPedidos());\n \n lstRecomendados.add(clienteRecomendado); \n }*/\n } \n \n // vbongiov -- RI SiCC 20090941 -- 16/06/2009 \n // \n \n try {\n queryInc = new StringBuffer(); \n queryInc.append(\" SELECT CLIE_OID_CLIE_VNDO, FEC_DESD, FEC_HAST \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU, MAE_TIPO_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNTE = \" + clienteParametro.getOidCliente());\n queryInc.append(\" AND TIVC_OID_TIPO_VINC = OID_TIPO_VINC \");\n queryInc.append(\" AND PAIS_OID_PAIS = \" + oidPais);\n queryInc.append(\" AND IND_RECO = 1 \");\n\n respuestaMae = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaMae \" + respuestaMae); \n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n if (!respuestaMae.esVacio()) {\n \n hayRecomendado = true;\n \n clienteParametro.setIndRecomendadosEnMAE(true);\n \n lstRecomendados.clear();\n \n for(int i=0; i<respuestaMae.getRowCount();i++){ \n \n ClienteRecomendado clienteRecomendado = new ClienteRecomendado(); \n\n clienteRecomendado.setRecomendante(clienteParametro.getOidCliente());\n\n clienteRecomendado.setRecomendado(new Long(((BigDecimal) \n respuestaMae.getValueAt(i, \"CLIE_OID_CLIE_VNDO\")).longValue()));\n {\n Date fechaInicio = (Date) respuestaMae.getValueAt(i, \"FEC_DESD\");\n clienteRecomendado.setFechaInicio((fechaInicio != null) ? fechaInicio : null);\n }\n\n {\n Date fechaFin = (Date) respuestaMae.getValueAt(i, \"FEC_HAST\");\n clienteRecomendado.setFechaFin((fechaFin != null) ? fechaFin : null);\n }\n \n clienteLocal.setOidCliente(clienteRecomendado.getRecomendado());\n this.obtenerPeriodosConPedidosCliente(clienteLocal);\n clienteRecomendado.setPeriodosConPedidos(clienteLocal.getPeriodosConPedidos());\n \n lstRecomendados.add(clienteRecomendado); \n \n }\n \n clienteParametro.setClienteRecomendado(lstRecomendados);\n \n } else {\n hayRecomendado = false;\n }\n\n if (!hayRecomendado) {\n clienteParametro.setClienteRecomendado(null);\n }\n \n // JVM, sicc 20070381, if, manejo del Recomendador, bloque de recuparacion de periodo\n if (lstRecomendados.size() > 0)\n { \n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n \n RecordSet respuestaMaeRdr = null;\n\n try { \n queryInc = new StringBuffer();\n queryInc.append(\" SELECT DISTINCT CLIE_OID_CLIE_VNTE , FEC_DESD , FEC_HAST \");\n queryInc.append(\" FROM MAE_CLIEN_VINCU \");\n queryInc.append(\" WHERE CLIE_OID_CLIE_VNTE = \" + clienteParametro.getOidCliente());\n respuestaMaeRdr = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaMaeRdr \" + respuestaMaeRdr); \n \n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n \n ClienteRecomendante clienteRecomendador = new ClienteRecomendante();\n \n if (!respuestaMaeRdr.esVacio()) {\n \n {\n BigDecimal recomendador = (BigDecimal) respuestaMaeRdr.getValueAt(0, \"CLIE_OID_CLIE_VNTE\");\n clienteRecomendador.setRecomendante((recomendador != null) ? new Long(recomendador.longValue()) : null);\n }\n \n clienteRecomendador.setFechaInicio((Date) respuestaMaeRdr.getValueAt(0, \"FEC_DESD\"));\n // fecha fin de INC\n {\n Date fechaFin = (Date) respuestaMaeRdr.getValueAt(0, \"FEC_HAST\");\n clienteRecomendador.setFechaFin((fechaFin != null)? fechaFin : null);\n }\n \n clienteParametro.setClienteRecomendador(clienteRecomendador);\n }\n \n for (int i=0; i<lstRecomendados.size(); i++){\n\n ClienteRecomendado clienteRecomendados = new ClienteRecomendado(); \n \n clienteRecomendados = (ClienteRecomendado) lstRecomendados.get(i);\n \n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n \n try {\n bsInc = BelcorpService.getInstance();\n } catch (MareMiiServiceNotFoundException e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_AL_PEDIR_UN_SERVICIO_MARE));\n } \n\n queryInc = new StringBuffer();\n \n try {\n queryInc.append(\" select x.n, x.oid_peri, x.fec_inic, x.fec_fina, x.pais_oid_pais, x.marc_oid_marc, x.cana_oid_cana \"); \n queryInc.append(\" from ( \"); \n queryInc.append(\" select 1 n, b.oid_peri as oid_peri, \"); \n queryInc.append(\" b.fec_inic as fec_inic, \"); \n queryInc.append(\" b.fec_fina as fec_fina, \"); \n queryInc.append(\" b.pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" b.marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" b.cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from mae_clien_prime_conta a, cra_perio b, seg_perio_corpo c \"); \n queryInc.append(\" where a.clie_oid_clie = \" + clienteRecomendados.getRecomendado()); \n queryInc.append(\" and a.perd_oid_peri = b.oid_peri \"); \n queryInc.append(\" and b.peri_oid_peri = c.oid_peri \"); \n queryInc.append(\" and b.oid_peri in ( \"); \n queryInc.append(\" select oid_peri \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date ('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD/MM/YYYY') <= fec_fina ) \");\n queryInc.append(\" union \"); \n queryInc.append(\" select rownum + 1 as n, oid_peri as oid_peri, \"); \n queryInc.append(\" fec_inic as fec_inic, \"); \n queryInc.append(\" fec_fina as fec_fina, \"); \n queryInc.append(\" pais_oid_pais as pais_oid_pais, \"); \n queryInc.append(\" marc_oid_marc as marc_oid_marc, \"); \n queryInc.append(\" cana_oid_cana as cana_oid_cana \"); \n queryInc.append(\" from cra_perio \"); \n queryInc.append(\" where fec_inic <= to_date ('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD-MM-YYYY') \");\n queryInc.append(\" and to_date('\"+ df.format(clienteRecomendados.getFechaInicio()) +\"', 'DD-MM-YYYY') <= fec_fina \");\n queryInc.append(\" order by oid_peri asc \"); \n queryInc.append(\" ) x \"); \n queryInc.append(\" order by n \"); \n\n respuestaInc = bsInc.dbService.executeStaticQuery(queryInc.toString());\n \n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"******* respuestaInc \" + respuestaInc); \n\n } catch (Exception e) {\n UtilidadesLog.error(\"ERROR \", e);\n throw new MareException(e, UtilidadesError.armarCodigoError(\n CodigosError.ERROR_DE_LECTURA_EN_BASE_DE_DATOS));\n }\n\n BigDecimal bd;\n \n if (!respuestaInc.esVacio()) {\n\n Periodo periodo = new Periodo();\n \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"OID_PERI\");\n periodo.setOidPeriodo(new Long(bd.longValue()));\n \n periodo.setFechaDesde((Date) respuestaInc.getValueAt(0, \"FEC_INIC\"));\n\n periodo.setFechaHasta((Date) respuestaInc.getValueAt(0, \"FEC_FINA\")); \n \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"PAIS_OID_PAIS\");\n periodo.setOidPais(new Long(bd.longValue()));\n \n bd = (BigDecimal) respuestaInc.getValueAt(0, \"MARC_OID_MARC\");\n periodo.setOidMarca(new Long(bd.longValue()));\n\n bd = (BigDecimal) respuestaInc.getValueAt(0, \"CANA_OID_CANA\");\n periodo.setOidCanal(new Long(bd.longValue()));\n \n clienteRecomendados.setPeriodo(periodo);\n } \n }\n }\n\n if(log.isDebugEnabled()) //sapaza -- cambio Optimizacion Logs -- 23/03/2010 \n UtilidadesLog.debug(\"lstRecomendados(\"+lstRecomendados.size() + \n \") getIndRecomendadosEnMAE(\"+clienteParametro.getIndRecomendadosEnMAE() +\n \") getIndRecomendadosEnINC(\"+clienteParametro.getIndRecomendadosEnINC() +\")\"); \n \n UtilidadesLog.info(\" DAOSolicitudes.obtenerClienteRecomendado(ClienteclienteParametro, Long oidPais):Salida\"); \n \n }",
"public DialogoEliminarIngrediente(java.awt.Frame parent, /*IProducto AlmacenProductos, IGestionarProducto GestorProductos*/ ICocinero iCocinero) {\n super(parent, true);\n initComponents();\n //this.gestorProductos = GestorProductos;\n //this.almacenProductos = AlmacenProductos;\n this.cocina = iCocinero;\n listaIngredientes = this.cocina.obtieneIngredientes();\n this.bAceptar.setEnabled(false);\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(this.tTablaIngredientes.getColumnName(0));\n modelo.addColumn(this.tTablaIngredientes.getColumnName(1));\n modelo.setRowCount(listaIngredientes.size());\n this.tTablaIngredientes.setModel(modelo);\n Iterator iterador = listaIngredientes.iterator();\n Producto p;\n int i = 0;\n\twhile (iterador.hasNext()) {\n p = (Producto)iterador.next();\n this.tTablaIngredientes.setValueAt(p.getNombre(), i, 0);\n this.tTablaIngredientes.setValueAt(p.getCantidad(), i, 1);\n ++i;\n\t}\n }"
] | [
"0.6349456",
"0.60556567",
"0.6001794",
"0.59610045",
"0.59385693",
"0.5900588",
"0.58930415",
"0.5857545",
"0.58569145",
"0.58440167",
"0.580697",
"0.5735403",
"0.57350147",
"0.5731914",
"0.5704808",
"0.5704065",
"0.56955147",
"0.5675751",
"0.56718814",
"0.5667908",
"0.5666869",
"0.5660483",
"0.5654563",
"0.563908",
"0.5635616",
"0.5628677",
"0.56283385",
"0.5625886",
"0.56229013",
"0.5619804",
"0.5612149",
"0.5604742",
"0.5600699",
"0.55953634",
"0.55938333",
"0.55925816",
"0.55780035",
"0.55716527",
"0.55550724",
"0.55128103",
"0.550761",
"0.55063605",
"0.5500665",
"0.5499643",
"0.54958874",
"0.54862344",
"0.54832226",
"0.5481866",
"0.54786694",
"0.5477883",
"0.54740256",
"0.5471984",
"0.5469737",
"0.54668075",
"0.5465133",
"0.5463372",
"0.54622847",
"0.5460042",
"0.54519075",
"0.5450719",
"0.5443912",
"0.5436181",
"0.54295015",
"0.5423993",
"0.541947",
"0.5415647",
"0.5408358",
"0.5406884",
"0.54060686",
"0.5396219",
"0.53916717",
"0.53915364",
"0.538765",
"0.5385446",
"0.538519",
"0.5380016",
"0.53793377",
"0.5374547",
"0.537342",
"0.53732115",
"0.53730476",
"0.5372628",
"0.5365819",
"0.53615904",
"0.53505236",
"0.5349432",
"0.5348995",
"0.5347409",
"0.53468245",
"0.53345484",
"0.5331861",
"0.5329928",
"0.53282887",
"0.5327362",
"0.53267235",
"0.5326477",
"0.5325971",
"0.5323879",
"0.5321193",
"0.53164244"
] | 0.71432424 | 0 |
//////// Funcion para busqueda Verificar que el codigo que digitamos exista en el objetoproducto | static Producto busqueda(int codigo, Vector productos){
boolean band = false;
//si return no es igual a null nos regresara el codigo
Producto p,retornP = null;
//For para comparar todos los codigos del vector que digitamos
for(int x = 0; x < productos.size(); x++){
p = (Producto) productos.elementAt(x);
//si el codigo es el mismo regresamos el producto que encontramos
if(p.getCodigo() == codigo)
retornP = p;
}
return retornP;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean comprovarCodi(String codi) {\r\n if(codi == id) {\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }",
"public Integer getExisteCliente(String codigoCliente);",
"private String findObj(Integer codigoObj) {\r\n\t\tString valorObj = null;\r\n\t\tif (codigoObj != null) {\r\n\t\t\tsinObjList.setCod(codigoObj);\r\n\t\t\tList<SinObj> lista = new ArrayList<SinObj>();\r\n\t\t\tlista = sinObjList.listaResultados();\r\n\t\t\tif (lista.size() > 0)\r\n\t\t\t\tvalorObj = lista.get(0).getObjNombre();\r\n\t\t}\r\n\t\treturn valorObj;\r\n\t}",
"@Override\n\tpublic boolean verificaAgencia(String codigo)\n\t{\n\t\tchar[] digitos = capturaDigitos(codigo, 4, 0);\n\t\treturn (digitos != null);\n\t}",
"String getCodiceFiscale();",
"private String entraCodProd(boolean isIncluir) {\n String cod = \"\";\n boolean isCadastro = false;\n\n ArrayList<Produto> codProd = (obterTodosProdutos());\n\n // loop enquanto teclar vazio ou not fim\n while (cod.isEmpty() || true) {\n // janela de input do CPF\n cod = JOptionPane.showInputDialog(this, \"Cod do Produto\");\n if (cod == null) {\n return null;\n } else if (cod.isEmpty()) {\n // SE DER <ENTER> JOGA MENSAGEM DE ERRO e VOLTA AO LOOP.\n JOptionPane.showMessageDialog(null, \"Por Favor, Digite Algo!\",\n \"Msg do Servidor\", JOptionPane.INFORMATION_MESSAGE);\n } else {\n\n for (Produto codProd1 : codProd) {\n if (cod.equals(codProd1.getCod())) {\n if (isIncluir) {\n // ENQUANTO NAO ENCONTRA JOGA MENSAGEM DE ERRO e\n // VOLTA AO LOOP.\n JOptionPane.showMessageDialog(null,\n \"Produto Ja Cadastrado!!!\",\n \"Msg do Servidor\",\n JOptionPane.INFORMATION_MESSAGE);\n isCadastro = true;\n break;\n } else {\n return cod;\n }\n }\n isCadastro = false;\n }\n\n if (!isIncluir) {\n // ENQUANTO NAO ENCONTRA JOGA MENSAGEM DE ERRO e VOLTA AO\n // LOOP.\n JOptionPane.showMessageDialog(null,\n \"Produto nao encontrado!!!\", \"Msg do Servidor\",\n JOptionPane.INFORMATION_MESSAGE);\n } else {\n if (!isCadastro) {\n return cod;\n }\n }\n }\n\n }\n return cod;\n }",
"public ProductoExistencia buscarProductoExistencia(String codigo, Integer idAlmacen) throws Exception {\n\n logger.debug(\"Buscando producto con codigo: \" + codigo);\n\n try {\n\n //Obtener manager de producto\n ManagerProductoServiceBusiness mgrProducto = getMgrProductosService();\n\n //Buscar existencia del producto\n return mgrProducto.buscarProductoExistenciaPorAlmacen(codigo, idAlmacen);\n\n } catch (ManagerProductoServiceBusinessException e) {\n logger.error(e.getMessage(), e);\n throw new Exception(e.getMessage(), e);\n } catch (RemoteException e) {\n logger.error(e.getMessage(), e);\n throw new Exception(e.getMessage(), e);\n }\n }",
"@Override\n\tpublic boolean verificaContaCorrente(String codigoAgencia, String codigoConta)\n\t{\n\t\tint[] pesoDigitos = {9, 7, 3, 1, 9, 7, 1, 3, 1, 9, 7, 3};\n\t\t\n\t\tchar[] digitosAgencia = capturaDigitos(codigoAgencia, 4, 0);\n\t\t\n\t\tif (digitosAgencia == null)\n\t\t\treturn false;\n\n\t\tchar[] digitosConta = capturaDigitos(codigoConta, 9, 0);\n\t\t\n\t\tif (digitosConta == null)\n\t\t\treturn false;\n\t\t\n\t\tint soma = 0;\n\t\t\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tsoma += (digitosAgencia[i] - '0') * pesoDigitos[i] % 10;\n\t\t\n\t\tfor (int i = 0; i < 8; i++)\n\t\t\tsoma += (digitosConta[i] - '0') * pesoDigitos[i + 4] % 10;\n\n\t\tint digito = soma % 10;\n\t\t\n\t\tif (digito != 0)\n\t\t\tdigito = 10 - digito;\n\t\t\n\t\tchar ch = (char)('0' + digito);\n\t\treturn digitosConta[8] == ch;\n\t}",
"public void localizarExibirProdutoCodigo(Prateleira prat){\n Produto mockup = new Produto();\r\n \r\n //pede o codigo para porcuara\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser procurado\" ));\r\n \r\n \r\n //ordena a prateleira\r\n Collections.sort(prat.getPrateleira());\r\n //seta o valor do codigo no auxiliar\r\n mockup.setCodigo(Codigo);\r\n \r\n //faz uma busca binaria no arraylist usando o auxiliar como parametro\r\n int resultado = Collections.binarySearch(prat.getPrateleira() ,mockup);\r\n \r\n //caso não encontre um\r\n if(resultado<0) \r\n //exibe essa mensagem\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" nao encontrado\");\r\n //caso encontre\r\n else {\r\n //mostrar o produto encontrado\r\n VisualizarProduto vp = new VisualizarProduto();\r\n vp.ver((Produto) prat.get(resultado));\r\n }\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Compagnie)) {\r\n return false;\r\n }\r\n Compagnie other = (Compagnie) object;\r\n if ((this.codeCompagnie == null && other.codeCompagnie != null) || (this.codeCompagnie != null && !this.codeCompagnie.equals(other.codeCompagnie))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"private String entraCodPed(boolean isIncluir) {\n String cod = \"\";\n boolean isCadastro = false;\n\n ArrayList<Pedido> codPed = (obterTodosPedidos());\n\n // loop enquanto teclar vazio ou not fim\n while (cod.isEmpty() || true) {\n // janela de input do CPF\n cod = JOptionPane.showInputDialog(this, \"Cod do Pedido\");\n if (cod == null) {\n return null;\n } else if (cod.isEmpty()) {\n // SE DER <ENTER> JOGA MENSAGEM DE ERRO e VOLTA AO LOOP.\n JOptionPane.showMessageDialog(null, \"Por Favor, Digite Algo!\",\n \"Msg do Servidor\", JOptionPane.INFORMATION_MESSAGE);\n } else {\n\n for (Pedido codPed1 : codPed) {\n if (cod.equals(codPed1.getCodPed())) {\n if (isIncluir) {\n // ENQUANTO NAO ENCONTRA JOGA MENSAGEM DE ERRO e\n // VOLTA AO LOOP.\n JOptionPane.showMessageDialog(null,\n \"Pedido Ja Cadastrado!!!\",\n \"Msg do Servidor\",\n JOptionPane.INFORMATION_MESSAGE);\n isCadastro = true;\n break;\n } else {\n return cod;\n }\n }\n isCadastro = false;\n }\n\n if (!isIncluir) {\n // ENQUANTO NAO ENCONTRA JOGA MENSAGEM DE ERRO e VOLTA AO\n // LOOP.\n JOptionPane.showMessageDialog(null,\n \"Pedido nao encontrado!!!\", \"Msg do Servidor\",\n JOptionPane.INFORMATION_MESSAGE);\n } else {\n if (!isCadastro) {\n return cod;\n }\n }\n }\n\n }\n return cod;\n }",
"public abstract java.lang.String getCod_tecnico();",
"public boolean searchAviaoByCodigo(int codigo) {\n for (Aviao aviao : avioes) { \n if (aviao.getCodigo() == codigo) {\n System.out.println(\"###################################\\n\");\n System.out.println(String.format(\"%-10s\", \"CODIGO\") + \"\\t\" \n + String.format(\"%-20s\", \"|NOME\") + \"\\t\"\n + String.format(\"%-15s\", \"|QUANTIDADE DE ASSENTOS\"));\n \n System.out.println(String.format(\"%-10s\", aviao.getCodigo()) + \"\\t\"\n + String.format(\"%-20s\", \"|\" + aviao.getNome()) + \"\\t\" \n + String.format(\"%-15s\", \"|\" + aviao.getQtdeAssentos()));\n return true;\n }//fecha if\n \n }//fecha for\n return false;\n \n }",
"public Boolean validarCodigoRecursoPrestamo(String codigoRecurso) {\r\n Boolean resultado = false;\r\n try {\r\n\r\n Prestamo p = new Prestamo();\r\n p.setCodigoRecurso(codigoRecurso);\r\n p.setEstado(\"Activo\");\r\n ArrayList<Prestamo> prestamo = (ArrayList<Prestamo>) prestamoDao.searchMatching(conexion.obtenerConexion(), p);\r\n Prestamo validarPrestamo = (prestamo != null && prestamo.size() > 0) ? prestamo.get(0) : null;\r\n //si no existe un recurso con ese Codigo se puede agregar\r\n resultado = validarPrestamo == null;\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PrestamoBL.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return resultado;\r\n }",
"private boolean verificarCnpj(String cnpj) {\n return true;\n \n// if (cnpj.length() != 14) {\n// return false;\n// }\n//\n// int soma = 0;\n// int dig = 0;\n//\n// String digitosIniciais = cnpj.substring(0, 12);\n// char[] cnpjCharArray = cnpj.toCharArray();\n//\n// /* Primeira parte da validação */\n// for (int i = 0; i < 4; i++) {\n// if (cnpjCharArray[i] - 48 >= 0 && cnpjCharArray[i] - 48 <= 9) {\n// soma += (cnpjCharArray[i] - 48) * (6 - (i + 1));\n// }\n// }\n//\n// for (int i = 0; i < 8; i++) {\n// if (cnpjCharArray[i + 4] - 48 >= 0 && cnpjCharArray[i + 4] - 48 <= 9) {\n// soma += (cnpjCharArray[i + 4] - 48) * (10 - (i + 1));\n// }\n// }\n//\n// dig = 11 - (soma % 11);\n//\n// digitosIniciais += (dig == 10 || dig == 11) ? \"0\" : Integer.toString(dig);\n//\n// /* Segunda parte da validação */\n// soma = 0;\n//\n// for (int i = 0; i < 5; i++) {\n// if (cnpjCharArray[i] - 48 >= 0 && cnpjCharArray[i] - 48 <= 9) {\n// soma += (cnpjCharArray[i] - 48) * (7 - (i + 1));\n// }\n// }\n//\n// for (int i = 0; i < 8; i++) {\n// soma += (cnpjCharArray[i + 5] - 48) * (10 - (i + 1));\n// }\n//\n// dig = 11 - (soma % 11);\n// digitosIniciais += (dig == 10 || dig == 11) ? \"0\" : Integer.toString(dig);\n\n// return cnpj.equals(digitosIniciais);\n }",
"private boolean accountExists(String codigoCuenta, Connection con )\n {\n ClassConnection cc = new ClassConnection();\n boolean presente = (Boolean)cc.execute( \"SELECT codigocuenta FROM cuenta WHERE codigocuenta = \" + Long.parseLong( codigoCuenta ), 2, con);\n \n return presente;\n }",
"public boolean hasProduct(ProductBarcode code);",
"public CodeBook getCodificacion(){\n CodeBook res=new CodeBook();\n \n //Se obtiene los valores ni\n ArrayList<Integer> n=obtenerNi(obtenerYi());\n \n //Se asigna a cada carácter un código\n ArrayList<String> candidatos;\n int i=0;\n int cont_alfa=0;\n int nd=0;\n \n // Se comprueba para cada ni si es mayor que 0, en cuyo caso, se generan\n // los posibles códigos de longitud i que quedan libres y se asignan.\n while (i<n.size()){\n nd=nd*base;\n int cont=n.get(i);\n if (cont>0){\n candidatos=generaCod(i+1,nd);\n int cod=0;\n while (cont>0){\n res.add(alfabeto.getN(cont_alfa), candidatos.get(cod));\n nd++;\n cont_alfa++;\n cod++;\n cont--;\n }\n }\n i++;\n } \n return res;\n }",
"public abstract java.lang.String getCod_dpto();",
"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}",
"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 java.lang.String getCodigo_pcom();",
"public String getCodice() {\n\t\treturn codice;\n\t}",
"public String codifica(String cadena) {\n MessageDigest messageDigest = null;\n\n //Se crea objeto de string buffer para almacenar la concatenacion de los datos del arreglo.\n StringBuffer sb = null;\n try {\n //Se inicializa el objeto y se le pasa el tipo de encriptacion deseada\n messageDigest = MessageDigest.getInstance(\"SHA-512\");\n\n //Se extraen los bytes que contiene la cadena\n byte[] encripta = messageDigest.digest(cadena.getBytes());\n\n //Se inicializa un objeto tipo String buffer\n sb = new StringBuffer();\n\n //Se recorre el arreglo de bytes que genero messageDigest\n for (byte hashB : encripta) {\n // se concatena los datos obtenidos del arreglo\n sb.append(String.format(\"%02x\", hashB));\n }\n\n } catch (Exception e) {\n// log.info(e.getMessage());\n// errorService.createError(e.getMessage(), \"Error encriptando la cadena: \"+ cadena);\n }\n\n return sb.toString();\n }",
"Integer getCode();",
"@Test\n public void clueFromCodenameShouldReturnSaidCodename()\n {\n String codename = DatabaseHelper.getRandomCodename();\n String[] clues = DatabaseHelper.getCluesForCodename(codename);\n int errors = 0;\n\n for (int i = 0; i < clues.length; i++)\n {\n int index = Arrays.binarySearch(DatabaseHelper.getCodenamesForClue(clues[i]), codename);\n if (!(index >= 0))\n {\n errors++;\n }\n\n }\n\n assertEquals(0, errors);\n }",
"private char comprobarConsumoEnergetico(char letra) {\r\n char letras[] = { 'A', 'B', 'C', 'D', 'E', 'F' };\r\n boolean encontrado = false;\r\n this.consumoEnergetico = 'F';\r\n for (int i = 0; i < letras.length && !encontrado; i++) {\r\n if (letras[i]==letra) {\r\n encontrado = true;\r\n this.consumoEnergetico = letra;\r\n }\r\n }\r\n return this.consumoEnergetico;\r\n }",
"public static boolean comprobarPrestamo(int codigo) throws IOException {\n\t\tboolean b = false;\n\t\tif (new File(Const.FLIBROASIGNADOA).isFile()) {\n\t\t\tf = new RandomAccessFile(Const.FLIBROASIGNADOA, \"r\");\n\t\t\tArchivos.irARegistro(f, codigo, Const.N);\n\n\t\t\tLibro l = new Libro();\n\t\t\tl.leer(f);\n\t\t\tif (l.prestado)\n\t\t\t\tb = true;\n\n\t\t\tf.close();\n\t\t} else\n\t\t\tSystem.out.println(\"El Fichero no existe - ERROR EN: mostrarFichero\");\n\n\t\treturn b;\n\t}",
"public boolean buscarCodApelacion() throws ExceptionConnection {\n boolean indicador = true;\n EquivalenciasDao oEquivalencia = new EquivalenciasDao();\n EquivalenciasBean oEqv = new EquivalenciasBean();\n oEqv.setEqv_sol_numero(this.apelacionesBean.getApel_codApelar());\n oEqv = oEquivalencia.buscarEquivalenciasNum(oEqv);\n if (oEqv.getEqv_sol_numero() == null) {\n EquiparacionesDao oEquiparacion = new EquiparacionesDao();\n EquiparacionesBean oEqp = new EquiparacionesBean();\n oEqp.setEqp_sol_numero(this.apelacionesBean.getApel_codApelar());\n if (oEquiparacion.buscaDr_regt_equiparaciones(oEqp) == false) {\n indicador = false;\n }\n }\n return indicador;\n }",
"java.lang.String getProductNumberCode();",
"protected String comprobarConsumoEnergetico(Letra letra){\r\n if(getConsumoEnergetico() == Letra.A | getConsumoEnergetico() == Letra.B | getConsumoEnergetico() == Letra.C \r\n | getConsumoEnergetico() == Letra.D | getConsumoEnergetico() == Letra.E | getConsumoEnergetico() == Letra.F){\r\n return \"Consumo energetico correcto; letra correcta\";\r\n }\r\n else{\r\n return \"Consumo energetico incorrecto; letra erronea\";\r\n }\r\n}",
"boolean hasByteCode();",
"private static int isEntero(String palabra) {\n int resultado;//declaramos la variable a retornar\n\n try {\n Integer.parseInt(palabra);//convertimos la palabra a Integer\n resultado = 1;//Si no hay un error entonces es un numero y retornamos true\n } catch (NumberFormatException excepcion) {//de lo contrario es una palabra\n resultado = 0;\n }\n\n return resultado;//retornamos el valor\n }",
"public boolean buscarLibro(String codigoLibro){\n libro = manejadorArchivoLibro.leerArchivo(LIBRO, codigoLibro, \".lib\");\n return libro != null;\n }",
"public boolean isCNPJ(String CNPJ) {\n\t\t// considera-se erro CNPJ's formados por uma sequencia de numeros iguais\n if (CNPJ.equals(\"00000000000000\") || CNPJ.equals(\"11111111111111\") ||\n CNPJ.equals(\"22222222222222\") || CNPJ.equals(\"33333333333333\") ||\n CNPJ.equals(\"44444444444444\") || CNPJ.equals(\"55555555555555\") ||\n CNPJ.equals(\"66666666666666\") || CNPJ.equals(\"77777777777777\") ||\n CNPJ.equals(\"88888888888888\") || CNPJ.equals(\"99999999999999\") ||\n (CNPJ.length() != 14))\n return(false);\n\n char dig13, dig14;\n int sm, i, r, num, peso;\n\n// \"try\" - protege o codigo para eventuais erros de conversao de tipo (int)\n try {\n// Calculo do 1o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i=11; i>=0; i--) {\n// converte o i-�simo caractere do CNPJ em um n�mero:\n// por exemplo, transforma o caractere '0' no inteiro 0\n// (48 eh a posi��o de '0' na tabela ASCII)\n num = (int)(CNPJ.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig13 = '0';\n else dig13 = (char)((11-r) + 48);\n\n// Calculo do 2o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i=12; i>=0; i--) {\n num = (int)(CNPJ.charAt(i)- 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig14 = '0';\n else dig14 = (char)((11-r) + 48);\n\n// Verifica se os d�gitos calculados conferem com os d�gitos informados.\n if ((dig13 == CNPJ.charAt(12)) && (dig14 == CNPJ.charAt(13)))\n return(true);\n else return(false);\n } catch (InputMismatchException erro) {\n return(false);\n }\n\t}",
"private Filtro filtroEscludiRiga(int codice) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Campo campo = null;\n\n try { // prova ad eseguire il codice\n campo = this.getModulo().getCampoChiave();\n filtro = FiltroFactory.crea(campo, Operatore.DIVERSO, codice);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }",
"@Test\n public void testGetCodigo() {\n System.out.println(\"getCodigo\");\n byte valor = 0;\n Huffman instance = null;\n String expResult = \"\";\n String result = instance.getCodigo(valor);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }",
"boolean hasCode();",
"boolean hasCode();",
"boolean hasCode();",
"public static String creaCodiceCognome(String cognomePersona) {\n\t\tString codiceCognomePersona = \"\";\n\t\n\t\tcodiceCognomePersona = estraiTreConsonanti(cognomePersona, \"cognome\");\n\t\t\n\t\t//se vengono trovate 3 consonanti viene ritornato il codice composto da 3 consonanti\n\t\tif (codiceCognomePersona.length() == 3) return codiceCognomePersona;\n\t\telse {\n\t\t\t//altrimenti chiamo il metodo che completa la stringa ottenuta fin qua\n\t\t\treturn seConsonantiNonBastano(codiceCognomePersona, cognomePersona);\n\t\t\t}\n\t}",
"boolean hasCurrencyCode();",
"public int getCodPessoa() {\r\n\t\treturn this.codPessoa;\r\n\t}",
"public void validarCI(FacesContext context, UIComponent component, Object value) throws ValidatorException {\r\n //921999488001\r\n String ci=\"\";\r\n boolean t;\r\n ci = value.toString();\r\n \r\n if(ci.length() == 9){\r\n ci = \"0\"+ci;\r\n }\r\n \r\n if(ci.length() == 10){\r\n \r\n t = Validaciones.validacionCedula(ci);\r\n if (t) {\r\n //Codigo para autocompletar una empresa\r\n //emp.setNombre_empresa(\"funciono\");\r\n } else {\r\n FacesMessage msg = new FacesMessage(\"Cédula de Identidad no valida\");\r\n msg.setSeverity(FacesMessage.SEVERITY_ERROR);\r\n\r\n throw new ValidatorException(msg);\r\n }\r\n }\r\n }",
"public Boolean edit(Paciente codigo) {\r\n\t\t\tlogger.debug(\"Editing codigo with id: \" + codigo.getId());\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\t/*for (Paciente p:codigos) {\r\n\t\t\t\t\tif (p.getId().longValue() == codigo.getId().longValue()) {\r\n\t\t\t\t\t\tlogger.debug(\"Found record\");\r\n\t\t\t\t\t\tcodigos.remove(p);\r\n\t\t\t\t\t\tcodigos.add(codigo);\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t}*/\r\n\t\t\t\t\r\n\t\t\t\tlogger.debug(\"No records found\");\r\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tlogger.error(e);\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}",
"public static String ValidacionComida(String codigoComida, String nombreComida, String precioComida, String calorias) {\n\t\t\tif(!Comida.menuComidas.containsKey(codigoComida)) {\n\t\t\t\tComida.agregarComida(codigoComida, nombreComida,precioComida,calorias);\n\t\t\t\treturn \"La comida se ha agregado en el menú.\";\n\t\n\t\t\t}else {\n\t\t\t\treturn \"Este código ya se encuenta en el menú. La comida no ha sido agregada al menú.\";\n\t\t\t}\t\t\n\t}",
"@Override\n public boolean equals(Object object) \n {\n if (!(object instanceof Proyectos)) \n {\n return false;\n }\n Proyectos other = (Proyectos) object;\n if ((this.Codigo == null && other.Codigo != null) || (this.Codigo != null && !this.Codigo.equals(other.Codigo))) \n {\n return false;\n }\n return true;\n }",
"Boolean findExistsCampania(GestionPrecioID id) ;",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ExcepcionesCompromiso)) {\n return false;\n }\n ExcepcionesCompromiso other = (ExcepcionesCompromiso) object;\n if ((this.idExcepcionCompromiso == null && other.idExcepcionCompromiso != null) || (this.idExcepcionCompromiso != null && !this.idExcepcionCompromiso.equals(other.idExcepcionCompromiso))) {\n return false;\n }\n return true;\n }",
"@Override\n\tpublic Integer getTipoFirma(String codice) {\n\t\tif(TIPOFIRMA_FSSEMPLIFICATA.equals(codice))\n\t\t\treturn new Integer(2);\n\t\tif(TIPOFIRMA_FS.equals(codice))\n\t\t\treturn new Integer(1);\t\t\n\t\treturn null;\n\t}",
"public boolean existePieza(int codigo) {\n\t\tboolean resultado = false;\n\t\ttry {\n\t\t\tXPathQueryService consulta = \n\t\t\t\t\t(XPathQueryService) \n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tResourceSet r = consulta.query(\"/piezas/pieza[@codigo='\"+codigo+\"']\");\n\t\t\tResourceIterator i = r.getIterator();\n\t\t\tif(i.hasMoreResources()) {\n\t\t\t\tresultado = true;\n\t\t\t}\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}",
"public Cargo comparaCodigoComCargo() {\n boolean cargoNaoEncontrado = true;\n Cargo cargo = null;\n\n while (cargoNaoEncontrado) {\n int codigo = pedeCodigo();\n cargo = ControladorPrincipal.getInstance().controladorCargo.encontraCargoPorCodigo(codigo);\n if (cargo != null) {\n cargoNaoEncontrado = false;\n } else {\n this.telaFuncionario.mensagemCargoNaoEncontrado();\n }\n }\n return cargo;\n }",
"public void setCodice(String codice) {\n\t\tthis.codice = codice;\n\t}",
"public boolean existeOrdenador(String codigo) {\n\t\tboolean resultado = false;\n\t\ttry {\n\t\t\tXPathQueryService consulta = \n\t\t\t\t\t(XPathQueryService) \n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tResourceSet r = consulta.query(\"//ordenador[@codigo='\"+codigo+\"']\");\n\t\t\tResourceIterator i = r.getIterator();\n\t\t\tif(i.hasMoreResources()) {\n\t\t\t\tresultado = true;\n\t\t\t}\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn resultado;\n\t}",
"private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }",
"public Paises obtenerPaisPorID(Integer txtPais);",
"@Test\n public void testGetCidadaoPorNumero() {\n System.out.println(\"getCidadaoPorNumero\");\n Cidadao cid = new Cidadao(\"teste\", 999999999, \"@\", \"4490-479\", 1111);\n Reparticao instance = new Reparticao(\"porto\", 1111, 4490, new ArrayList<>());\n instance.addCidadao(cid);\n\n Cidadao expResult = cid;\n Cidadao result = instance.getListaCidadao().getCidadaoPorNumero(999999999);\n assertEquals(expResult, result);\n }",
"@Override\n\tpublic Producto buscarIdProducto(Integer codigo) {\n\t\treturn productoDao.editarProducto(codigo);\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CdrqasryPK)) {\n return false;\n }\n CdrqasryPK other = (CdrqasryPK) object;\n if ((this.facno == null && other.facno != null) || (this.facno != null && !this.facno.equals(other.facno))) {\n return false;\n }\n if ((this.quono == null && other.quono != null) || (this.quono != null && !this.quono.equals(other.quono))) {\n return false;\n }\n if (this.trseq != other.trseq) {\n return false;\n }\n if (this.seq != other.seq) {\n return false;\n }\n if ((this.cmccode == null && other.cmccode != null) || (this.cmccode != null && !this.cmccode.equals(other.cmccode))) {\n return false;\n }\n return true;\n }",
"@Test\r\n public void testUsingHascode()\r\n {\n \r\n try_scorers = new Try_Scorers(\"Sharief\",\"Roman\",3,9);\r\n \r\n /******** Get HashCode *****************/ \r\n //return hascode as a string the is an easy way of doing this\r\n // all u have to do is state the object preceeded with a dot hashcode \r\n //*** E.g object.hashcode() ***\r\n String num1 = Integer.toHexString(System.identityHashCode(try_scorers)) ; \r\n String num2 = Integer.toHexString(System.identityHashCode(try_scorers.updateTries(5)));\r\n \r\n //Different hashcodes mean that it isnt the same object\r\n Assert.assertNotEquals(num1,num2,\"Objects are same\");\r\n \r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof OrdenitemPK)) {\r\n return false;\r\n }\r\n OrdenitemPK other = (OrdenitemPK) object;\r\n if (this.ordencompraNumeroorden != other.ordencompraNumeroorden) {\r\n return false;\r\n }\r\n if (this.libroIsbn != other.libroIsbn) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public GrupoProducto colsultarPorCodigo(String codigo){\r\n for (int i = 0; i < listaGrupoProductos.size() ; i++) {\r\n if (!listaGrupoProductos.get(i).isEliminado()) {\r\n if (codigo.equals( listaGrupoProductos.get(i).getCodigo() ) ) {\r\n return listaGrupoProductos.get(i);\r\n }\r\n }\r\n }\r\n return null;\r\n }",
"int getCodeValue();",
"@Override\n\tpublic int hashCode() {\n\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((codigo == null) ? 0 : codigo.hashCode());\n\t\tresult = prime * result\n\t\t\t\t+ ((codigoPais == null) ? 0 : codigoPais.hashCode());\n\t\tresult = prime\n\t\t\t\t* result\n\t\t\t\t+ ((nombreEntidad == null) ? 0\n\t\t\t\t\t\t: nombreEntidad.hashCode());\n\t\tresult = prime * result\n\t\t\t\t+ ((oidTipoDoc == null) ? 0 : oidTipoDoc.hashCode());\n\t\tresult = prime * result\n\t\t\t\t+ ((estado == null) ? 0 : estado.hashCode());\n\t\tresult = prime * result\n\t\t\t\t+ ((descripcion == null) ? 0 : descripcion.hashCode());\n\t\tresult = prime * result\n\t\t\t\t+ ((obligatorio == null) ? 0 : obligatorio.hashCode());\n\t\tresult = prime * result\n\t\t\t\t+ ((siglas == null) ? 0 : siglas.hashCode());\n\t\tresult = prime * result\n\t\t\t\t+ ((longitud == null) ? 0 : longitud.hashCode());\n\t\tresult = prime * result\n\t\t\t\t+ ((dni == null) ? 0 : dni.hashCode());\n\t\tresult = prime * result\n\t\t\t\t+ ((fiscal == null) ? 0 : fiscal.hashCode());\n\t\tresult = prime * result\n\t\t\t\t+ ((tipoDocu == null) ? 0 : tipoDocu.hashCode());\n\t\t\n\t\treturn result;\n\n\t}",
"public String getCODIGO() {\r\n return CODIGO;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof DocumentoPresentadoPK)) {\n return false;\n }\n DocumentoPresentadoPK other = (DocumentoPresentadoPK) object;\n if (this.codCia != other.codCia) {\n return false;\n }\n if (this.codDocumentoPres != other.codDocumentoPres) {\n return false;\n }\n if (this.codCandidato != other.codCandidato) {\n return false;\n }\n return true;\n }",
"java.lang.String getProductCode();",
"public static YesNo codeOf(Object code) {\n if (code == null) { return null; }\n if (code instanceof YesNo) { return (YesNo)code; }\n return _codeValueMap.get(code.toString().toLowerCase());\n }",
"long getCodeId();",
"long getCodeId();",
"long getCodeId();",
"public String verificationUtilisateur( int number, int number1) {\n\t\n\tfinal String SEPARATEUR = \"\";\n\t// car va avec number\n\tchar car;\n\t// car1 va avec number1\n\tchar car1;\n\tString code;\n\tStringBuilder codeSymbole = new StringBuilder() ;\n\t\n\t\n\t\n\tString proposition;\n\tcode = String.valueOf(number);\n\tproposition = String.valueOf(number1);\n\tString mot[] = proposition.split(SEPARATEUR);\n\t\n\tfor (int i = 0; i < mot.length; i++) {\n\tcar = code.charAt(i);\n\tcar1 = proposition.charAt(i);\n\t\n\t\n\tif ( car > car1) {\n\t\tcodeSymbole.append(\"+\");\n\t}else if (car == car1) {\n\t\tcodeSymbole.append(\"=\");\n\t}else {\n\t\tcodeSymbole.append(\"-\");\n\t}\n\n\t\n\t\n\t}\n\t//System.out.println(\"les indices sont\" + arraylist.get(0) + arraylist.get(1) + arraylist.get(2) + arraylist.get(3));\n\t\n\t\n\tSystem.out.println( codeSymbole.toString());\n\t\n\treturn codeSymbole.toString() ;\n}",
"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 Response getProduto_e_sua_receita(Integer codigo) {\n\t\tProduto resultado = ((ProdutoDao) getDao()).buscarProduto_e_sua_receita(codigo);\n\t\tif (resultado != null) {\n\t\t\t// pega os componentes da receita do produto retornado.\n\t\t\tList<ItemReceita> componentes = new ArrayList<>();\n\t\t\tfor (ItemReceita item : resultado.getReceita().getComponentes()) {\n\t\t\t\tcomponentes.add(new ItemReceita(item.getComponente(), item.getQtdUtilizada()));\n\t\t\t}\n\t\t\t// pega a receita do produto retornado.\n\t\t\tReceita receitaEmJava = new Receita(resultado.getReceita().getCodigo(),\n\t\t\t\t\tresultado.getReceita().getRendimento(), resultado.getReceita().getTempoPreparo(), componentes);\n\t\t\t// Instancia um novo produto com os dados do produto retornado do BD.\n\t\t\tProduto produtoEmJava = new Produto(resultado.getCodigo(), resultado.getDescricao(),\n\t\t\t\t\tresultado.getCategoria(), resultado.getSimbolo(), resultado.getPreco(), receitaEmJava);\n\t\t\t// converte o novo produto para uma string em JSON.\n\t\t\tString produtoEmJson = converterParaJSON(produtoEmJava);\n\t\t\t// retorna um response com o produto em JSON.\n\t\t\tsetResposta(mensagemSucesso(produtoEmJson));\n\t\t} else {\n\t\t\t// retorna um response informando que o Id informado não possui cadastro.\n\t\t\tsetResposta(mensagemNaoEncontrado());\n\t\t}\n\t\treturn getResposta();\n\t}",
"public boolean comprobarPk(int pk1) {\n\n\t\ttry {\n\t\t\tcProducto.findByPK(pk1);\n\t\t\treturn true;\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean validaCnpj(String cnpj){\n if (cnpj.equals(\"00000000000000\") || cnpj.equals(\"11111111111111\") || cnpj.equals(\"22222222222222\")\n || cnpj.equals(\"33333333333333\") || cnpj.equals(\"44444444444444\") || cnpj.equals(\"55555555555555\")\n || cnpj.equals(\"66666666666666\") || cnpj.equals(\"77777777777777\") || cnpj.equals(\"88888888888888\")\n || cnpj.equals(\"99999999999999\") || (cnpj.length() != 14))\n return (false);\n\n char dig13, dig14;\n int sm, i, r, num, peso;\n\n // \"try\" - protege o código para eventuais erros de conversao de tipo (int)\n try {\n // Calculo do 1o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i = 11; i >= 0; i--) {\n // converte o i-ésimo caractere do CNPJ em um número:\n // por exemplo, transforma o caractere '0' no inteiro 0\n // (48 eh a posição de '0' na tabela ASCII)\n num = (int) (cnpj.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig13 = '0';\n else\n dig13 = (char) ((11 - r) + 48);\n\n // Calculo do 2o. Digito Verificador\n sm = 0;\n peso = 2;\n for (i = 12; i >= 0; i--) {\n num = (int) (cnpj.charAt(i) - 48);\n sm = sm + (num * peso);\n peso = peso + 1;\n if (peso == 10)\n peso = 2;\n }\n\n r = sm % 11;\n if ((r == 0) || (r == 1))\n dig14 = '0';\n else\n dig14 = (char) ((11 - r) + 48);\n\n // Verifica se os dígitos calculados conferem com os dígitos informados.\n if ((dig13 == cnpj.charAt(12)) && (dig14 == cnpj.charAt(13)))\n return (true);\n else\n return (false);\n } catch (InputMismatchException erro) {\n return (false);\n }\n }",
"public void ingresarDinero() {\n\t\tString codigo=\"\";\n\t\tint din=1;\n\t\tint saldo=0;\n\t\tint cambio=0;\n\t\t\n\t\tArrayList<Integer> dinero = new ArrayList<Integer>();\n\t\t\n\t\tSystem.out.println(\"digite el codigo del producto\");\n\t\tcodigo=leer.dato();\n\t\t\n\t\tif(cU.buscarProducto(codigo)!=null){\n\t\t\tproducto=cU.buscarProducto(codigo);\n\t\t\tSystem.out.println(\"el producto encontrado fue\"+producto);\n\t\t\n\t\t\n\t\twhile(din!=0){\n\t\t\t\n\t\t\tSystem.out.println(\"digite la denominacion o 0 si ya completo el dinero\");\n\t\t\tdin=leer.datoInt();\n\t\t\t\n\t\t\tif(din!=0){\n\t\t\t\tdinero.add(din);\n\t\t\t\tsaldo=saldo+din;\n\t\t\t}\n\t\t\tSystem.out.println(\"saldo\"+saldo);\n\t\t\t\n\t\t}\n\t\t\n\t\tcambio=cU.ingresarSaldo(dinero, codigo);\n\t\tif(cambio>=0){\n\t\tSystem.out.println(\"el valor del producto es: \"+producto.getValor());\n\t\tSystem.out.println(\"su saldo era de: \"+saldo);\n\t\tSystem.out.println(\"el cambio es: \"+cambio);\n\t\t}else{\n\t\t\tSystem.out.println(\"el valor del producto es: \"+producto.getValor());\n\t\t\tSystem.out.println(\"saldo\"+saldo);\n\t\t\tSystem.out.println(\"fondos insufucientes para comprar el producto\");\n\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"producto no encontrado\");\n\t\t}\n\t\tif(cambio==saldo){\n\t\t\tSystem.out.println(\"denominacion ingresada no valida\");\n\t\t}\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ProduccionDiaria)) {\r\n return false;\r\n }\r\n ProduccionDiaria other = (ProduccionDiaria) object;\r\n if ((this.prodDiaCodigo == null && other.prodDiaCodigo != null) || (this.prodDiaCodigo != null && !this.prodDiaCodigo.equals(other.prodDiaCodigo))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public Producto buscarProducto(String codigo) throws Exception {\n\n logger.debug(\"Buscando producto con codigo: \" + codigo);\n\n try {\n\n //Obtener manager de producto\n ManagerProductoServiceBusiness mgrProducto = getMgrProductosService();\n\n //Buscar producto por su codigo\n return mgrProducto.buscarProductoPorCodigo(codigo);\n\n } catch (ManagerProductoServiceBusinessException e) {\n logger.error(e.getMessage(), e);\n throw new Exception(e.getMessage(), e);\n } catch (RemoteException e) {\n logger.error(e.getMessage(), e);\n throw new Exception(e.getMessage(), e);\n }\n }",
"public String getCode();",
"public String getCode();",
"public String ocurrencia() {\n String palabra = \"\";\n int retorno = 0;\n for (int i = 0; i < getCadena().length(); i++) {\n\n if ((getCadena().charAt(i) == ' ') || (i > getCadena().length() - 2)) {\n if (palabra.equals(getBuscar())) {\n retorno++;\n palabra = \"\";\n } else {\n palabra = \"\";\n }\n\n } else {\n palabra += getCadena().charAt(i);\n\n }\n }\n return (\"La cantida de ocurrencias son de:\" + '\\n' + retorno);\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getCodigoBytes() {\n java.lang.Object ref = codigo_;\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 codigo_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"GestionPrecioDTO findCampania(String codigoCampaniaReferencia);",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CostCentreCode)) {\n return false;\n }\n CostCentreCode other = (CostCentreCode) object;\n if ((this.costCentreCodePK == null && other.costCentreCodePK != null) || (this.costCentreCodePK != null && !this.costCentreCodePK.equals(other.costCentreCodePK))) {\n return false;\n }\n return true;\n }",
"public boolean verifyCode(int inputCode){\n \n if(confirmationCode == inputCode)\n return true;\n else\n return false;\n \n }",
"public static int verifica() {\n boolean naoEInt = true;\n int valor = 0;\n while (naoEInt) {\n Scanner leitor = new Scanner(System.in);\n System.out.println(\"=====================\");\n try {\n valor = leitor.nextInt();\n naoEInt = false;\n } catch (Exception e) {\n System.out.println(\"Os dados digitados não são válidos!\");\n }\n }\n return valor;\n }",
"public void setComuneNascitaCod(int value) {\r\n this.comuneNascitaCod = value;\r\n }",
"public int probar(String poox){\r\n int numero = Character.getNumericValue(poox.charAt(0))+ Character.getNumericValue(poox.charAt(1))+ Character.getNumericValue(poox.charAt(2))+ \r\n Character.getNumericValue(poox.charAt(3))+ Character.getNumericValue(poox.charAt(4));\r\n int comprobar;\r\n if(numero >= 30){\r\n comprobar = 2;\r\n System.out.println( numero +\" Digito verificar = \" + comprobar);\r\n }else if (numero >=20 && numero <= 29){\r\n comprobar = 1;\r\n System.out.println(numero + \" Digito verificar = \" + comprobar);\r\n }else{\r\n comprobar = 0;\r\n System.out.println(numero + \" Digito verificar = \" + comprobar);\r\n }\r\n return comprobar;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CxiPK)) {\n return false;\n }\n CxiPK other = (CxiPK) object;\n if ((this.cancionTituloC == null && other.cancionTituloC != null) || (this.cancionTituloC != null && !this.cancionTituloC.equals(other.cancionTituloC))) {\n return false;\n }\n if (this.cancionIdIn != other.cancionIdIn) {\n return false;\n }\n if (this.interpreteIdIn != other.interpreteIdIn) {\n return false;\n }\n return true;\n }",
"public static int testCoderCar() {\r\n\t\tint note=100;\r\n\t\tSystem.out.println(\"\\nTest de coderCaractere :\");\r\n\t\tchar[] test = {'V', 'F', 'S', 'Z', 'X', 'J', 'G', 'R', 'M', 'N', 'L', 'D', 'T', 'C', 'K', 'Q', 'B', 'P', 'A', 'E', 'I', 'O', 'U', 'Y', ' ', '-', 'H'\r\n\t\t};\r\n\t\tchar[] res = {'9', '9', '8', '8', '8', '7', '7', '6', '5', '5', '4', '3', '3', '2', '2', '2', '1', '1', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0'\r\n\t\t};\r\n\r\n\t\tboolean ok = true; \r\n\t\tint i=0; \r\n\t\twhile (ok && i<test.length) {\r\n\t\t\tok = Soundex.coderCaractere(test[i])==res[i];\r\n\t\t\tif (!ok) {\r\n\t\t\t\tSystem.out.println(\" Aie... coderCaractere(\"+test[i]+\") retourne \"+Soundex.coderCaractere(test[i])+\" au lieu de \"+res[i]);\r\n\t\t\t\tnote=0;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tif (ok) {\r\n\t\t\tSystem.out.println(\" Ok. Votre code passe le test\");\r\n\t\t}\r\n\t\treturn note;\r\n\t}",
"int leerCodigoIngreso(){\n\t\treturn Integer.parseInt(cboCodigoIngreso.getSelectedItem().toString());\n\t}",
"public String getCodigoLivro() throws IOException {\r\n ArrayList<String> listLivros = livro.getListLivros();\r\n String codigo = null;\r\n for (int i = 0; i < listLivros.size(); i++) {\r\n if (listLivros.get(i).contains(jComboBoxLivros.getSelectedItem().toString())) {\r\n String[] temp = listLivros.get(i).split(\";\");\r\n codigo = temp[0];\r\n }\r\n }\r\n return codigo;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof T00401inscrmatricula)) {\n return false;\n }\n T00401inscrmatricula other = (T00401inscrmatricula) object;\n if ((this.idInscmatricula == null && other.idInscmatricula != null) || (this.idInscmatricula != null && !this.idInscmatricula.equals(other.idInscmatricula))) {\n return false;\n }\n return true;\n }",
"public static Produto pesqProdutoCodigo(int codigo) throws SQLException, ProdutoException{\n\t\tPreparedStatement objSQL = \n\t\t\tobjcon.prepareStatement(\"SELECT * FROM TABPRODUTOS WHERE CODIGO = ?\");\n\t\tobjSQL.setInt(1, codigo);\n\t\t// executeQuery, executa o comando de SQL colocado no prepareStatemente\n\t\tResultSet objResp = objSQL.executeQuery();\n\t\tif (objResp.next()) {\n\t\t\treturn new Produto(\n\t\t\t\t\tobjResp.getInt(\"CODIGO\"), \n\t\t\t\t\tobjResp.getString(\"PRODUTO\"), \n\t\t\t\t\tobjResp.getDouble(\"PRECO\"), \n\t\t\t\t\tobjResp.getDate(\"DATAPRECO\"));\n\t\t} else {\n\t\t\tthrow new ProdutoException(\"Não existe produto para o código.\");\n\t\t}\t\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Producto)) {\n return false;\n }\n Producto other = (Producto) object;\n if ((this.codpro == null && other.codpro != null) || (this.codpro != null && !this.codpro.equals(other.codpro))) {\n return false;\n }\n return true;\n }",
"public static Persona buscaSolicitante(String codigo){\n\t\tPersona solicitante=null;\n\t\tif((solicitante = buscaAlumno(codigo))!=null){\n\t\t\tSystem.out.println(\"Alumno \"+solicitante.getNombreCompleto());\n\t\t\treturn solicitante;\n\t\t}else if((solicitante=buscaProfesor(codigo))!=null){\n\t\t\tSystem.out.println(\"Profesor \"+solicitante.getNombreCompleto());\n\t\t\treturn solicitante;\n\t\t}\n\t\treturn solicitante;\n\t}",
"private boolean isIsbn10(String code) {\n return checkDigit(code, 10);\n }",
"public int getCodiceID() \r\n\t\t{\r\n\t\t\treturn CodiceID;\r\n\t\t}",
"public boolean buscarPorIdentificador(String identificador){\n Nodo_Bodega Temporal = Nodo_bodega_inicial;\n if(Size==0){\n return false;\n }else{\n if(Temporal.obtenerIdentificador().equals(identificador)){\n return true;\n }\n }\n \n while(Temporal.obtenerSiguiente()!= null){\n Temporal = Temporal.obtenerSiguiente();\n if(Temporal.obtenerIdentificador().equals(identificador)){\n return true;\n }\n }\n return false;\n }"
] | [
"0.6635041",
"0.63058764",
"0.61721015",
"0.61510855",
"0.60454243",
"0.5971576",
"0.5705029",
"0.56590855",
"0.5654823",
"0.5580806",
"0.54972064",
"0.54665256",
"0.5459162",
"0.5453437",
"0.5452052",
"0.5451254",
"0.5446593",
"0.54438436",
"0.5389709",
"0.5378813",
"0.53746104",
"0.5358138",
"0.53309786",
"0.53248423",
"0.5300721",
"0.52994853",
"0.5283899",
"0.52755684",
"0.52715296",
"0.52532786",
"0.5239574",
"0.51835215",
"0.5172551",
"0.5145658",
"0.51452166",
"0.5142335",
"0.51396",
"0.51303387",
"0.51303387",
"0.51303387",
"0.51288414",
"0.5117653",
"0.5116831",
"0.511647",
"0.51095396",
"0.51094806",
"0.5107229",
"0.5104749",
"0.5087226",
"0.50820166",
"0.5074751",
"0.5069868",
"0.5069324",
"0.50668657",
"0.5066785",
"0.5066299",
"0.50645256",
"0.50612956",
"0.5060756",
"0.5054976",
"0.5053896",
"0.5044436",
"0.5041788",
"0.5041115",
"0.5030474",
"0.5028889",
"0.50250536",
"0.502313",
"0.5018833",
"0.5018833",
"0.5018833",
"0.5018809",
"0.50166076",
"0.5010397",
"0.5004229",
"0.4992136",
"0.4989754",
"0.4984739",
"0.49778593",
"0.49768645",
"0.49768645",
"0.49708822",
"0.49702454",
"0.49697107",
"0.49694648",
"0.4969329",
"0.49687743",
"0.49663553",
"0.49640077",
"0.49635106",
"0.4959223",
"0.49528942",
"0.49486947",
"0.49454963",
"0.4941098",
"0.49409375",
"0.49406564",
"0.49389175",
"0.49374387",
"0.4934166"
] | 0.57491964 | 6 |
Funcion para crear archivo Funcion de tipo void la cual le pasamos los clientes y productos | static void CrearArchivo(Vector productos, Vector clientes){
try{ //iniciamos el try y si no funciona se hace el catch
BufferedWriter bw = new BufferedWriter(
//Iniciamos el archivo adentro de bw que es un objeto.
new FileWriter("reporte.txt") );
//creamos un producto auxiliar
Producto p;
//mientas existan productos se escribe lo siguiente en el archivo
for(int x = 0; x < productos.size(); x++){
//impresiones de nombre,codigo,stock,precio en el archivo
p = (Producto) productos.elementAt(x);
bw.write("Nombre del producto: " + p.getNombre() + "\n");
bw.write("Codigo del producto: " + p.getCodigo() + "\n");
bw.write("Tamaño del stock: " + p.getStock() + "\n");
bw.write("Precio: " + p.getPrecio() + "\n");
}
//creamos un cliente auxiliar
Cliente c;
//mientas existan clientes se escribe lo siguiente en el archivo
for(int x = 0; x < clientes.size(); x++){
c = (Cliente) clientes.elementAt(x);
//impresiones de nombre,telefono,cantidad y total en el archivo
bw.write("Nombre del cliente: " + c.getname() + "\n");
bw.write("Numero de telefono: " + c.getTelefono() + "\n");
bw.write("Cantidad de compra: " + c.getCantidad() + "\n");
bw.write("Total de compra: " + c.getTotal() + "\n");
}
// Cerrar archivo al finalizar
bw.close();
System.out.println("¡Archivo creado con éxito!");
//si no funciona imprime el error
} catch(Exception ex){
System.out.println(ex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void gerarCupom(String cliente, String vendedor,List<Produto> produtos, float totalVenda ) throws IOException {\r\n \r\n File arquivo = new File(\"cupomFiscal.txt\");\r\n String produto =\" \"; \r\n if(arquivo.exists()){\r\n System.out.println(\"Arquivo localizado com sucessso\");\r\n }else{\r\n System.out.println(\"Arquivo não localizado, será criado outro\");\r\n arquivo.createNewFile();\r\n } \r\n \r\n for(Produto p: produtos){\r\n produto += \" \"+p.getQtd()+\" \"+ p.getNome()+\" \"+p.getMarca()+\" \"+ p.getPreco()+\"\\n \";\r\n }\r\n \r\n \r\n \r\n FileWriter fw = new FileWriter(arquivo, true);\r\n BufferedWriter bw = new BufferedWriter(fw);\r\n \r\n \r\n bw.write(\" \"+LOJA);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"CLIENTE CPF\");\r\n bw.newLine();\r\n bw.write(cliente);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(DateCustom.dataHora());\r\n bw.newLine();\r\n bw.write(\" CUPOM FISCAL \");\r\n bw.newLine();\r\n bw.write(\"QTD DESCRIÇÃO PREÇO\");\r\n bw.newLine();\r\n bw.write(produto);\r\n bw.newLine(); \r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"TOTAL R$ \" + totalVenda);\r\n bw.newLine();\r\n bw.write(\"---------------------------------------\");\r\n bw.newLine();\r\n bw.write(\"Vendedor \" + vendedor);\r\n bw.newLine();\r\n bw.newLine();\r\n bw.close();\r\n fw.close();\r\n }",
"public void crearCliente(Cliente cliente) {\n \n File db = new File(\"src/Archivo/archivo.txt\");\n File tempDB = new File(\"src/Archivo/archivo_temp.txt\");\n\n try {\n \n if (cliente.getNombreCliente().isEmpty()) {\n cliente.setNombreCliente(\"undefined\");\n }\n if (cliente.getNombreEmpresa().isEmpty()) {\n cliente.setNombreEmpresa(\"undefined\");\n }\n if (cliente.getCiudad().isEmpty()) {\n cliente.setCiudad(\"undefined\");\n }\n \n List<Cliente> newClientes = añadirClienteToList(cliente);\n\n BufferedWriter bw = new BufferedWriter(new FileWriter(tempDB));\n\n\n\n for(Cliente cli:newClientes) {\n bw.write(\n Integer.toString(cli.getId())+\",\"+\n cli.getNombreCliente()+\",\"+\n cli.getNombreEmpresa()+\",\"+\n cli.getCiudad()+\",\"+\n cli.getDeuda()+\",\"+\n cli.getPrecioVentaSaco()\n );\n bw.flush();\n bw.newLine();\n }\n bw.close();\n db.delete();\n } catch (Exception e) {\n System.err.println(\"Method-actualizarUsuarioById: \" + e);\n }\n\n boolean success = tempDB.renameTo(db);\n System.out.println(success);\n }",
"public ArchivoClientes(){\n\t\t\n\t\tif(archivo.exists()){\n\t\t\t//System.out.println(\"El archivo ya existe\");\n\t\t}else{\n\t\t\ttry {\n\t\t\t\t//archivo.mkdir();\n\t\t\t\tarchivo.createNewFile();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Creación del archivo clientes: \" +e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"public void guardarProductosEnVenta() {\n try {\n //Si hay datos los guardamos...\n \n /****** Serialización de los objetos ******/\n //Serialización de las productosEnVenta\n FileOutputStream archivo = new FileOutputStream(\"productosVentaCliente\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de productosEnVenta\n guardar.writeObject(productosEnVenta);\n archivo.close();\n \n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }",
"public void generarContrato() {\r\n\t\ttry {\r\n\t\t\tString nombre = Contrato.generarContrato(estudiante, periodo, reserva.getArrSitioPeriodo().getSitNombre());\r\n\t\t\tnombre = \"Contrato_\" + estudiante.getId().getPerDni() + \".zip\";\r\n\t\t\tthis.zip(estudiante.getId().getPerDni(), periodo.getPrdId());\r\n\t\t\tFunciones.descargarZip(url_contrato+ nombre);\r\n\t\t\t// MODIFICAR NOMBRE CONTRATO\r\n\t\t\tmngRes.agregarContratoReserva(estudiante, periodo.getPrdId());\r\n\t\t} catch (Exception e) {\r\n\t\t\tFunciones.descargarPdf(url_contrato + \"error.pdf\");\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\r\n\t}",
"@Override\n public void saveToFile(List<Product> elements) throws IOException {\n List<String> collect = elements.stream()\n .map(product -> product.toString()) //z wykorzystanie method referencje .map(String::toString)\n .collect(Collectors.toList());\n\n //korzystamy z new io (nio patrz import) a nie jak wczesniej z io (we wprowadzeniu) bo latwiejsze\n Files.write(Paths.get(path), collect);\n\n\n }",
"public int Tipo() {\r\n File archivo = null;\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n \r\n try {\r\n String linea;\r\n for (a=0;a<5;a++){\r\n if (a==0){\r\n tipo=\"Embarazadas\";\r\n }\r\n if (a==1){\r\n tipo=\"Regulares\";\r\n }\r\n if (a==2){\r\n tipo=\"Discapacitados\";\r\n }\r\n if (a==3){\r\n tipo=\"Mayores\";\r\n }\r\n if (a==4){\r\n tipo=\"Corporativos\";\r\n }\r\n archivo = new File (System.getProperty(\"user.dir\")+\"/Clientes/\"+tipo+\".txt\");\r\n fr = new FileReader (archivo);\r\n br = new BufferedReader(fr);\r\n while((linea=br.readLine())!=null){\r\n if (leerTipo == contador){\r\n errorTipo =String.valueOf(String.valueOf(leerTipo).length());\r\n if (a==0){\r\n resultadoembarazadas+=1;\r\n }\r\n if (a==1){\r\n resultadoregulares+=1;\r\n }\r\n if (a==2){\r\n resultadodiscapacitados+=1;\r\n }\r\n if (a==3){\r\n resultadomayores+=1;\r\n }\r\n if (a==4){\r\n resultadocorporativos+=1;\r\n }\r\n contador +=1;\r\n leerTipo +=6;\r\n\r\n }\r\n else{\r\n contador += 1;\r\n }\r\n }\r\n }\r\n\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n // En el finally cerramos el fichero, para asegurarnos\r\n // que se cierra tanto si todo va bien como si salta \r\n // una excepcion.\r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n //return resultado;\r\n return 0;\r\n }",
"public void guardarProductosVendidos() {\n try {\n //Si hay datos los guardamos...\n if (!productosVendidos.isEmpty()) {\n /****** Serialización de los objetos ******/\n //Serialización de los productosVendidos\n FileOutputStream archivo = new FileOutputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de personas\n guardar.writeObject(productosVendidos);\n archivo.close();\n } else {\n System.out.println(\"Error: No hay datos...\");\n }\n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }",
"public void cargarProductosEnVenta() {\n try {\n //Lectura de los objetos de tipo producto Vendido\n FileInputStream archivo= new FileInputStream(\"productosVentaCliente\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n this.productosEnVenta = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"ERROR: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }",
"public void leerArchivo() {\n String rfcProveedor = produccionCigarrosHelper.getProveedor().getRfc();\n String rfcTabacalera = produccionCigarrosHelper.getTabacalera().getRfc();\n\n if (archivoFoliosService != null && desperdiciosHelper.getArchivoFolios() != null) {\n try {\n desperdiciosHelper.setNombreArchivo(desperdiciosHelper.getArchivoFolios().getFileName());\n InputStream inputStream = desperdiciosHelper.getArchivoFolios().getInputstream();\n\n desperdiciosHelper.setRangoFoliosList(archivoFoliosProduccionService.leerArchivoFolios(inputStream, desperdiciosHelper.getNombreArchivo()));\n desperdiciosHelper.setRangoFoliosListAux(validadorRangosService.generarRangosProduccion(rfcTabacalera, rfcProveedor, desperdiciosHelper.getRangoFoliosList()));\n desperdiciosHelper.setMsgErrorArchivo(\"\");\n\n solicitudService.generaCadenaOriginal(firmaFormHelper.getRfcSession(), sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()), null);\n firmaFormHelper.setCadenaOriginal(solicitudService.generaCadenaOriginal(firmaFormHelper.getRfcSession(), sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()), null));\n desperdiciosHelper.setCantidadSolicitada(sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()));\n\n } catch (SolicitudServiceException bE) {\n desperdiciosHelper.setMsgErrorArchivo(bE.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n LOGGER.error(\"Error: al Leer el archivo\" + bE.getMessage(), bE);\n } catch (RangosException rE) {\n desperdiciosHelper.setMsgErrorArchivo(rE.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n super.msgError(rE.getMessage());\n } catch (IOException io) {\n desperdiciosHelper.setMsgErrorArchivo(io.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n LOGGER.error(\"ERROR: Al leer el Archivo : \" + io.getMessage());\n } catch (ArchivoFoliosServiceException ex) {\n LOGGER.error(\"ERROR: Al leer el Archivo : \" + ex.getMessage());\n }\n if (!desperdiciosHelper.getMsgErrorArchivo().isEmpty()) {\n desperdiciosHelper.setDeshabilitaBtnGuardar(true);\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n } else {\n desperdiciosHelper.setMsgExitoArchivo(\"El archivo \" + desperdiciosHelper.getNombreArchivo() + \" se cargo con éxito\");\n desperdiciosHelper.setMsgErrorArchivo(\"\");\n }\n }\n }",
"public void setFilaDatosExportarXmlAnalisisTransaCliente(AnalisisTransaCliente analisistransacliente,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(AnalisisTransaClienteConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(analisistransacliente.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(AnalisisTransaClienteConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(analisistransacliente.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(analisistransacliente.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementmodulo_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDMODULO);\r\n\t\telementmodulo_descripcion.appendChild(document.createTextNode(analisistransacliente.getmodulo_descripcion()));\r\n\t\telement.appendChild(elementmodulo_descripcion);\r\n\r\n\t\tElement elementnombre = document.createElement(AnalisisTransaClienteConstantesFunciones.NOMBRE);\r\n\t\telementnombre.appendChild(document.createTextNode(analisistransacliente.getnombre().trim()));\r\n\t\telement.appendChild(elementnombre);\r\n\r\n\t\tElement elementdescripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.DESCRIPCION);\r\n\t\telementdescripcion.appendChild(document.createTextNode(analisistransacliente.getdescripcion().trim()));\r\n\t\telement.appendChild(elementdescripcion);\r\n\r\n\t\tElement elementtransaccion_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION);\r\n\t\telementtransaccion_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion_descripcion()));\r\n\t\telement.appendChild(elementtransaccion_descripcion);\r\n\r\n\t\tElement elementtransaccion1_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION1);\r\n\t\telementtransaccion1_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion1_descripcion()));\r\n\t\telement.appendChild(elementtransaccion1_descripcion);\r\n\r\n\t\tElement elementtransaccion2_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION2);\r\n\t\telementtransaccion2_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion2_descripcion()));\r\n\t\telement.appendChild(elementtransaccion2_descripcion);\r\n\r\n\t\tElement elementtransaccion3_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION3);\r\n\t\telementtransaccion3_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion3_descripcion()));\r\n\t\telement.appendChild(elementtransaccion3_descripcion);\r\n\r\n\t\tElement elementtransaccion4_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION4);\r\n\t\telementtransaccion4_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion4_descripcion()));\r\n\t\telement.appendChild(elementtransaccion4_descripcion);\r\n\r\n\t\tElement elementtransaccion5_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION5);\r\n\t\telementtransaccion5_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion5_descripcion()));\r\n\t\telement.appendChild(elementtransaccion5_descripcion);\r\n\r\n\t\tElement elementtransaccion6_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION6);\r\n\t\telementtransaccion6_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion6_descripcion()));\r\n\t\telement.appendChild(elementtransaccion6_descripcion);\r\n\r\n\t\tElement elementtransaccion7_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION7);\r\n\t\telementtransaccion7_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion7_descripcion()));\r\n\t\telement.appendChild(elementtransaccion7_descripcion);\r\n\r\n\t\tElement elementtransaccion8_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION8);\r\n\t\telementtransaccion8_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion8_descripcion()));\r\n\t\telement.appendChild(elementtransaccion8_descripcion);\r\n\r\n\t\tElement elementtransaccion9_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION9);\r\n\t\telementtransaccion9_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion9_descripcion()));\r\n\t\telement.appendChild(elementtransaccion9_descripcion);\r\n\r\n\t\tElement elementtransaccion10_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION10);\r\n\t\telementtransaccion10_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion10_descripcion()));\r\n\t\telement.appendChild(elementtransaccion10_descripcion);\r\n\t}",
"private static void crearPedidoGenerandoOPC() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25, 29, 33 };\n\t\tint[] cantidades = { 6, 8, 11 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 3\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\t\t\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\n\t}",
"public void cargarProductosVendidos() {\n try {\n //Lectura de los objetos de tipo productosVendidos\n FileInputStream archivo= new FileInputStream(\"productosVendidos\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosVendidos = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"private static void crearPedidoGenerandoOPCyOrdenInsumo() throws RemoteException {\n\t\tlong[] idVariedades = { 63 };\n\t\tint[] cantidades = { 4 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 5\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}",
"public static void main(String[] args) {\n\n\n System.out.println(\"Bienvenido a Export Digital\");\n\n Ingrediente ingrediente1=new Ingrediente(\"Sal\",2,2,\"Sal tipo marina\",0,\"-\",\"SalYs\");\n Ingrediente ingrediente2=new Ingrediente(\"Pimienta\",1,1,\"Origen colombia\",0,\"-\",\"Green&Light\");\n Ingrediente ingrediente3=new Ingrediente(\"Ajo\",2,3,\"Origen Buenos aires , Tigre\",0,\"-\",\"Green&Ligh\");\n Ingrediente ingrediente4=new Ingrediente(\"Oregano\",1,4,\"Condimentos SA , Tandil\",0,\"-\",\"Condimentos Sa\");\n Ingrediente ingrediente5=new Ingrediente(\"Aji picante\",1,1,\"Origen mexico\",0,\"-\",\"Pica SA\");\n List<Ingrediente> miIngredientes=new ArrayList<>();\n miIngredientes.add(ingrediente1);\n miIngredientes.add(ingrediente2);\n List<Ingrediente> miIngredientes2=new ArrayList<>();\n miIngredientes2.add(ingrediente3);\n miIngredientes2.add(ingrediente4);\n miIngredientes2.add(ingrediente1);\n List<Ingrediente> miIngredientes3=new ArrayList<>();\n miIngredientes3.add(ingrediente1);\n miIngredientes3.add(ingrediente5);\n miIngredientes3.add(ingrediente3);\n\n Receta recetaPollo=new Receta(\"Receta Pollo\",60f,miIngredientes);\n Receta recetaPescado=new Receta(\"Receta Pescado\",30f,miIngredientes2);\n Receta recetaMariscos=new Receta(\"Medallon PO\",20f,miIngredientes3);\n\n MedallonPO medallonPO=new MedallonPO(\"Medallon Pollo clasico\",4.35f,recetaPollo,100,52.3f,13,-22,180,35,25,5,100f,\"D6\",1,32,3,125f,220f,20,36);\n MedallonesPE medallonPE=new MedallonesPE(\"Medallon Pescado clasico\",4.35f,recetaPescado,100,44.3f,24f,-25,180,25,20,3,100f,\"D6\",1,33,3,\"Merluza\",240f,36);\n Anillas rabas=new Anillas(\"Anillas rebozadas\",5.35f,recetaMariscos,100,120f,15,-20,180,20,35,2,15f,\"V2\",140f,8,15,\"V2\");\n\n List<Producto> misProductos=new ArrayList<>();\n misProductos.add(medallonPO);\n misProductos.add(medallonPE);\n misProductos.add(rabas);\n List<Ventas> lista=new ArrayList<>();\n List<Ingrediente> listaingredientes = new ArrayList<>();\n List <Produccion> listaProduccion= new ArrayList<>();\n HistorialVentas historial = new HistorialVentas(lista);\n Inventario inventario=new Inventario(listaProduccion,listaingredientes);\n Fabrica miFabrica=new Fabrica(\"Mardi Sa\",\"Ortiz de zarate 3544\",historial,inventario,misProductos);\n\n miFabrica.IniciarProg();\n\n\n\n\n\n\n\n\n\n\n\n /*\n\n\n\n\n\n // Test ventas, produtos y historial\n\n Ingrediente ingrediente=new Ingrediente(\"Sal\",2,2,\"Sal marina\",0,\"12112\",\"Elmasita\");\n List<Ingrediente> miIngredientes=new ArrayList<>();\n miIngredientes.add(ingrediente);\n Receta recetaPollo=new Receta(\"Medallon PO\",60f,miIngredientes);\n MedallonPO medallonPO=new MedallonPO(\"Medallon Pollo clasico\",4.35f,recetaPollo,100,52.3f,13,-22,180,35,25,5,100f,\"D6\",1,32,3,125f,220f,20,36);\n Ventas venta=new Ventas(medallonPO,100,\"14023123\");\n Ventas vent1=new Ventas(medallonPO,1000,\"14/02/1997\");\n Ventas venta2=new Ventas(medallonPO,100,\"14/02/1994\");\n Produccion produccion=new Produccion(medallonPO,\"10/02/1994\",1000);\n List<Producto> misProductos=new ArrayList<>();\n List<Ventas> lista=new ArrayList<>();\n List<Ingrediente> listaingredientes = new ArrayList<>();\n listaingredientes.add(ingrediente);\n List <Produccion> listaProduccion= new ArrayList<>();\n HistorialVentas historial = new HistorialVentas(lista);\n Inventario inventario=new Inventario(listaProduccion,listaingredientes);\n System.out.println(medallonPO.getReceta().getIngredientes().get(0));\n inventario.mostrar(inventario.getListaIngredientes());\n Fabrica miFabrica=new Fabrica(\"Mardi Sa\",\"Ortiz de zarate 3544\",historial,inventario,misProductos);\n miFabrica.inicializarIngredientes();\n miFabrica.mostrar(miFabrica.getMiStock().getListaIngredientes());\n // miFabrica.getMiStock().inicializarIngredientes();//Seteo en 0 las cantidades de mis bolsas\n /* System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n miFabrica.mostrar(miFabrica.getMiStock().getListaIngredientes());\n miFabrica.comprarIngredientes(200);\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n /*\n\n /*miFabrica.mostrar(miFabrica.getMiStock().getListaIngredientes());*/\n /*\n miFabrica.agregar(medallonPO, miFabrica.getMisProductos());\n miFabrica.mostrar(miFabrica.getMisProductos().get(0).getReceta().getIngredientes());\n miFabrica.comprarIngredientes(200);\n miFabrica.mostrar(miFabrica.getMisProductos().get(0).getReceta().getIngredientes());\n miFabrica.mostrar(miFabrica.getMiStock().getListaIngredientes());\n // okSystem.out.println(produccion.toString());\n // ok System.out.println(medallonPO.toString());\n // System.out.println(miFabrica.getMisProductos().get(0).getReceta().toString());\n //ok miFabrica.mostrar(miFabrica.getMisProductos().get(0).getReceta().getIngredientes());\n\n\n // miFabrica.agregar(produccion,inventario.getListaProduccion());\n //inventario.mostrar(inventario.getListaProduccion());\n // miFabrica.agregar(venta,historial.getVentas());//EL AGREGADO , LAS MUESTRAS Y EL ELIMINADO FUNCIONAN , ASI COMO EL BUSQUEDA GENERAL\n // miFabrica.agregar(vent1,historial.getVentas());\n // miFabrica.agregar(venta2,historial.getVentas());\n // historial.mostrar(historial.getVentas());\n // historial.eliminar(venta,historial.getVentas());\n // historial.mostrar(historial.getVentas());\n miFabrica.producir(0);\n // miFabrica.producir(miFabrica.getMiStock(),miFabrica.getMisProductos(),0);\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n miFabrica.getMiStock().calcularTotalStockProductos(misProductos, miFabrica.getMiStock());\n // miFabrica.mostrar(miFabrica.getMiStock().getListaProduccion());\n //miFabrica.mostrar(historial.getVentas());\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n */\n //ok List<Produccion>miListaDis=miFabrica.getMiStock().bajarDisponibles(miFabrica.getMiStock().getListaProduccion());\n //ok Inventario inventario1=new Inventario(miListaDis,listaingredientes);\n //ok inventario1.mostrar(inventario1.getListaProduccion());\n /* miFabrica.mostrar(miFabrica.getMiStock().getListaProduccion());\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n miFabrica.vender(miFabrica.getMisProduccionesVendidas(),miFabrica.getMiStock(),miFabrica.getMiHistorial(),misProductos,0);\n miFabrica.mostrar(miFabrica.getMisProduccionesVendidas());\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n System.out.println(\"\\n\");\n miFabrica.mostrar(miFabrica.getMiStock().getListaProduccion());\n miFabrica.getMiStock().calcularTotalStockProductos(misProductos,miFabrica.getMiStock());\n // miFabrica.mostrar(misProductos);\n //NOTA FALTAN LAS BUSQUEDAS TANTO EN INVENTARIO COMO EN HISTORIAL Y TESTEAR\n*/\n }",
"public void writeToCsv()\r\n {\r\n //listeye urunler eklendiginde cagrılacak (Products.csv)\r\n PrintWriter pWrite = null;\r\n try {\r\n pWrite = new PrintWriter(new File(\"Products.csv\"));\r\n }\r\n catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n StringBuilder sBuilder = new StringBuilder();\r\n for (Product theProduct : allProducts ) {\r\n if (theProduct.getSize() == null && theProduct.getGender()!= null){\r\n sBuilder.append(theProduct.getName() + \";\" + theProduct.getPrice() + \";\"\r\n + theProduct.getGender() + \";\" + theProduct.getTag() + \";\"\r\n + theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n else if(theProduct.getGender() == null && theProduct.getSize() == null){\r\n sBuilder.append( theProduct.getName() + \";\" + theProduct.getPrice() + \";\"\r\n + theProduct.getTag() + \";\"+\r\n theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n else {\r\n sBuilder.append( theProduct.getName() + \";\" + theProduct.getPrice() + \";\" + theProduct.getSize() + \";\"\r\n + (theProduct).getGender() + \";\" + theProduct.getTag() + \";\"\r\n + theProduct.getContent() + \";\" + theProduct.getNumberOfProduct() + \"\\n\");\r\n }\r\n\r\n }\r\n pWrite.write(sBuilder.toString());\r\n pWrite.flush();\r\n pWrite.close();\r\n }",
"public void crearPrimerFichero(){\n File f=new File(getApplicationContext().getFilesDir(),\"datos.json\");\n // si no existe lo creo\n if(!f.exists()) {\n String filename = \"datos.json\";\n String fileContents = \"[]\";\n FileOutputStream outputStream;\n\n try {\n outputStream = openFileOutput(filename, Context.MODE_PRIVATE);\n outputStream.write(fileContents.getBytes());\n outputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n }",
"private static synchronized void saveArchivo(List<String> objects, String cabecera, String name) \n\t\t\tthrows Exception {\n\t\tFileWriter file = new FileWriter(Configuracion.pathRetencionTesaka + name +\".txt\");\n\t\tfile.write(cabecera);\n\t\tfor (String string : objects) {\n\t\t\tfile.write(string);\n\t\t}\t\n\t\tfile.flush();\n\t\tfile.close();\n\t\tFiledownload.save(InformeHechauka.PATH_FILE + name +\".txt\", null);\n\t}",
"private void exportarDatos() {\r\n // Cabecera\r\n System.out.println(\"Exportación de Datos\");\r\n System.out.println(\"====================\");\r\n\r\n // Acceso al Fichero\r\n try (PrintWriter pr = new PrintWriter(DEF_NOMBRE_FICHERO)) {\r\n // Bucle de Escritura\r\n for (Item item : CARRITO) {\r\n // Generar Linea de Texto\r\n String linea = String.format(Locale.ENGLISH, \"%d%s%s%s%.2f%s%s\",\r\n item.getId(), REG_CSV_ESCR,\r\n item.getNombre(), REG_CSV_ESCR,\r\n item.getPrecio(), REG_CSV_ESCR,\r\n UtilesGraficos.obtenerNombreColor(item.getColor()));\r\n\r\n // Item > Fichero\r\n pr.println(linea);\r\n }\r\n\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"Datos exportados correctamente\");\r\n } catch (NumberFormatException | NullPointerException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Formato de datos incorrecto\");\r\n\r\n // Vaciado Carrito\r\n CARRITO.clear();\r\n } catch (IOException e) {\r\n // Mensaje Informativo\r\n UtilesEntrada.hacerPausa(\"ERROR: Acceso al fichero\");\r\n }\r\n }",
"public void generarReporteAnalisisTransaClientes(String sAccionBusqueda,List<AnalisisTransaCliente> analisistransaclientesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaClienteMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"AnalisisTransaClienteMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"AnalisisTransaCliente\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Analisis Transaccion Clientees\");\t\t\r\n\t\tparameters.put(\"busquedapor\", AnalisisTransaClienteConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceAnalisisTransaCliente=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tAnalisisTransaClienteConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceAnalisisTransaCliente=new JRBeanArrayDataSource(AnalisisTransaClienteJInternalFrame.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceAnalisisTransaCliente);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+AnalisisTransaClienteConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+AnalisisTransaClienteConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(AnalisisTransaClienteBean.TraerAnalisisTransaClienteBeans(analisistransaclientesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoAnalisisTransaClienteActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesAnalisisTransaClientes(sAccionBusqueda,sTipoArchivoReporte,analisistransaclientesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"private static void registrarAuditoriaDetallesClienteArchivo(Connexion connexion,ClienteArchivo clientearchivo)throws Exception {\n\t\t\r\n\t\tString strValorActual=null;\r\n\t\tString strValorNuevo=null;\r\n\t\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getid_cliente().equals(clientearchivo.getClienteArchivoOriginal().getid_cliente()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getid_cliente()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getid_cliente().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getid_cliente()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getid_cliente().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.IDCLIENTE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getid_tipo_archivo().equals(clientearchivo.getClienteArchivoOriginal().getid_tipo_archivo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getid_tipo_archivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getid_tipo_archivo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getid_tipo_archivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getid_tipo_archivo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.IDTIPOARCHIVO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getnombre().equals(clientearchivo.getClienteArchivoOriginal().getnombre()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getnombre();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getnombre()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getnombre() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.NOMBRE,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getarchivo().equals(clientearchivo.getClienteArchivoOriginal().getarchivo()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getarchivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getarchivo().toString();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getarchivo()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getarchivo().toString() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.ARCHIVO,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\tif(clientearchivo.getIsNew()||!clientearchivo.getdescripcion().equals(clientearchivo.getClienteArchivoOriginal().getdescripcion()))\r\n\t\t\t{\r\n\t\t\t\tstrValorActual=null;\r\n\t\t\t\tstrValorNuevo=null;\r\n\r\n\t\t\t\tif(clientearchivo.getClienteArchivoOriginal().getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorActual=clientearchivo.getClienteArchivoOriginal().getdescripcion();\r\n\t\t\t\t}\r\n\t\t\t\tif(clientearchivo.getdescripcion()!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tstrValorNuevo=clientearchivo.getdescripcion() ;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t////auditoriaDetalleLogicAdditional.registrarNuevaAuditoriaDetalle(auditoriaObj.getId(),ClienteArchivoConstantesFunciones.DESCRIPCION,strValorActual,strValorNuevo);\r\n\t\t\t}\t\r\n\t}",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"private static void ListaProduto() throws IOException {\n \n if(ListaDProduto.isEmpty()){\n SaidaDados(\"Nenhum produto cadastrado\");\n return;\n }\n \n \n\t\tFileWriter arq = new FileWriter(\"lista_produto.txt\"); // cria o arquivo\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// será criado o\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// arquivo para\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// armazenar os\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// dados\n\t\tPrintWriter gravarArq = new PrintWriter(arq); // imprimi no arquivo \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// dados.\n\n\t\tString relatorio = \"\";\n\n\t\tgravarArq.printf(\"+--LISTA DE PRODUTOS--+\\r\\n\");\n\n\t\tfor (int i = 0; i < ListaDProduto.size(); i++) {\n\t\t\tProduto Lista = ListaDProduto.get(i);\n\t\t\t\n\n\t\t\tgravarArq.printf(\n\t\t\t\t\t\" - |Codigo: %d |NOME: %s | VALOR COMPRA: %s | VALOR VENDA: %s | INFORMAÇÕES DO PRODUTO: %s | INFORMAÇÕES TÉCNICAS: %s\\r\\n\",\n\t\t\t\t\tLista.getCodigo(), Lista.getNome(), Lista.getPrecoComprado(),\n\t\t\t\t\tLista.getPrecoVenda(), Lista.getInformacaoProduto(), Lista.getInformacaoTecnicas()); // formatação dos dados no arquivos\n \n\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\n\n\t\t\trelatorio += \"\\nCódigo: \" + Lista.getCodigo() +\n \"\\nNome: \" + Lista.getNome() +\n\t\t\t\t \"\\nValor de Compra: \" + Lista.getPrecoComprado() + \n \"\\nValor de Venda: \" + Lista.getPrecoVenda() +\n \"\\nInformações do Produto: \" + Lista.getInformacaoProduto() +\n \"\\nInformações Técnicas: \" + Lista.getInformacaoTecnicas() +\n \"\\n------------------------------------------------\";\n\n\t\t}\n \n \n\n\t\tgravarArq.printf(\"+------FIM------+\\r\\n\");\n\t\tgravarArq.close();\n\n\t\tSaidaDados(relatorio);\n\n\t}",
"public static void main(String[] args) throws IOException {\n\n writeFile(ProductService.productList,ProductService.path);\n\n// Main.display(readFile());\n }",
"public void guardarProductosComprados() {\n try {\n //Si hay datos los guardamos...\n if (!productosComprados.isEmpty()) {\n /****** Serialización de los objetos ******/\n //Serialización de los productosComprados\n FileOutputStream archivo = new FileOutputStream(\"productosComprados\"+this.getCorreo()+\".dat\");\n ObjectOutputStream guardar= new ObjectOutputStream(archivo);\n //guardamos el array de productosComprados\n guardar.writeObject(productosComprados);\n archivo.close();\n } else {\n System.out.println(\"Error: No hay datos...\");\n }\n\n } catch (IOException ioe) {\n System.out.println(\"ERROR: \" + ioe.getMessage());\n } catch (Exception e) {\n System.out.println(\"ERROR: \" + e.getMessage());\n }\n }",
"private void getArquivo()\n {\n /*** Obtem o conteudo do pacote através do diretorio ***/\n File file = new File(caminho_origem);\n if (file.isFile())\n {\n try\n {\n /*** Lê o pacote e põe em um array de bytes ***/\n DataInputStream diStream = new DataInputStream(new FileInputStream(file));\n long len = (int) file.length();\n if (len > Utils.tamanho_maximo_arquivo)\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_muito_grande);\n System.exit(0);\n }\n Float numero_pacotes_ = ((float)len / Utils.tamanho_util_pacote);\n int numero_pacotes = numero_pacotes_.intValue();\n int ultimo_pacote = (int) len - (Utils.tamanho_util_pacote * numero_pacotes);\n int read = 0;\n /***\n 1500\n fileBytes[1500]\n p[512]\n p[512]\n p[476]len - (512 * numero_pacotes.intValue())\n ***/\n byte[] fileBytes = new byte[(int)len];\n while (read < fileBytes.length)\n {\n fileBytes[read] = diStream.readByte();\n read++;\n }\n int i = 0;\n int pacotes_feitos = 0;\n while ( pacotes_feitos < numero_pacotes)\n {\n byte[] mini_pacote = new byte[Utils.tamanho_util_pacote];\n for (int k = 0; k < Utils.tamanho_util_pacote; k++)\n {\n mini_pacote[k] = fileBytes[i];\n i++;\n }\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(mini_pacote);\n this.pacotes.add(pacote_);\n pacotes_feitos++;\n }\n byte[] ultimo_mini_pacote = new byte[ultimo_pacote];\n int ultimo_indice = ultimo_mini_pacote.length;\n for (int j = 0; j < ultimo_mini_pacote.length; j++)\n {\n ultimo_mini_pacote[j] = fileBytes[i];\n i++;\n }\n byte[] ultimo_mini_pacote2 = new byte[512];\n System.arraycopy(ultimo_mini_pacote, 0, ultimo_mini_pacote2, 0, ultimo_mini_pacote.length);\n for(int h = ultimo_indice; h < 512; h++ ) ultimo_mini_pacote2[h] = \" \".getBytes()[0];\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(ultimo_mini_pacote2);\n this.pacotes.add(pacote_);\n this.janela = new HashMap<>();\n for (int iterator = 0; iterator < this.pacotes.size(); iterator++) janela.put(iterator, new Estado());\n } catch (Exception e)\n {\n System.out.println(Utils.prefixo_cliente + Utils.erro_na_leitura);\n System.exit(0);\n }\n } else\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_inexistente);\n System.exit(0);\n }\n }",
"public void insercionMasiva() {\r\n\t\tif (!precondInsert())\r\n\t\t\treturn;\r\n\t\tUploadItem fileItem = seleccionUtilFormController.crearUploadItem(\r\n\t\t\t\tfName, uFile.length, cType, uFile);\r\n\t\ttry {\r\n\t\t\tlLineasArch = FileUtils.readLines(fileItem.getFile(), \"ISO-8859-1\");\r\n\t\t} catch (IOException e) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Error al subir el archivo\");\r\n\t\t}\r\n\r\n\t\tStringBuilder cadenaSalida = new StringBuilder();\r\n\t\tString estado = \"EXITO\";\r\n\t\tcantidadLineas = 0;\r\n\t\t//Ciclo para contar la cantdad de adjudicados o seleccionados que se reciben\r\n\t\tfor (String linea : lLineasArch) {\r\n\t\t\tcantidadLineas++;\r\n\t\t\tif(cantidadLineas > 1){\r\n\t\t\t\tseleccionados++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Condicion para verificar si la cantidad de seleccionados es mayor a la cantidad de vacancias (en cuyo caso se procede a abortar el proceso e imprimir\r\n\t\t//un mensaje de error) o verificar si esta es menor (se imprime el mensaje pero se continua)\r\n\t\t\r\n\t\tif(seleccionados > concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\testado = \"FRACASO\";\r\n\t\t\tcadenaSalida.append(estado + \" - CANTIDAD DE AJUDICADOS ES SUPERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\telse if(seleccionados < concursoPuestoAgrNuevo.getCantidadPuestos()){\r\n\t\t\tcadenaSalida.append(\"ADVERTENCIA - CANTIDAD DE ADJUDICADOS ES INFERIOR A LA CANTIDAD DE PUESTOS VACANTES PARA EL GRUPO\");\r\n\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t}\r\n\t\tseleccionados = 0;\r\n\t\t\r\n\t\tif(!estado.equals(\"FRACASO\")){\r\n\r\n\t\tcantidadLineas = 0;\r\n\t\tfor (String linea : lLineasArch) {\r\n\r\n\t\t\tcantidadLineas++;\r\n\t\t\testado = \"EXITO\";\r\n\t\t\tString observacion = \"\";\r\n\t\t\tFilaPostulante fp = new FilaPostulante(linea);\r\n\t\t\tList<Persona> lista = null;\r\n\t\t\tif (cantidadLineas > 1 && fp != null && fp.valido) {\r\n\t\t\t\t//Verifica si la persona leida en el registro del archivo CSV existe en la Tabla Persona\r\n\t\t\t\tString sqlPersona = \"select * from general.persona where persona.documento_identidad = '\"+fp.getDocumento()+ \"'\";\r\n\t\t\t\tQuery q1 = em.createNativeQuery(sqlPersona, Persona.class);\r\n\t\t\t\tPersona personaLocal = new Persona();\r\n\t\t\t\tint banderaEncontroPersonas = 0;\r\n\t\t\t\t//Si existe, se almacena el registro de la tabla\r\n\t\t\t\tif(!q1.getResultList().isEmpty()){\r\n\t\t\t\t\tlista = q1.getResultList();\r\n\t\t\t\t\tif (compararNomApe(lista.get(0).getNombres(), removeCadenasEspeciales(fp.getNombres()))\r\n\t\t\t\t\t\t\t&& compararNomApe(lista.get(0).getApellidos(), removeCadenasEspeciales(fp.getApellidos())) ) {\r\n\t\t\t\t\t\t\tbanderaEncontroPersonas = 1;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\t\tobservacion += \" PERSONA NO REGISTRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\tobservacion += \" PERSONA NO REGITRADA EN LA BASE DE DATOS LOCAL\";\r\n\t\t\t\t}\r\n\t\t\t\t//Verificamos que la persona figure en la lista corta como seleccionado\r\n\t\t\t\tif(!estado.equals(\"FRACASO\")){\r\n\t\t\t\t\tint banderaExisteEnListaCorta = 0;\t\t\t\t\t\r\n\t\t\t\t\tint i=0;\r\n\t\t\t\t\tif (banderaEncontroPersonas == 1) {\r\n\t\t\t\t\t\twhile(i<lista.size()){\r\n\t\t\t\t\t\t\tpersonaLocal = (Persona) lista.get(i);\r\n\t\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\t\tList<EvalReferencialPostulante> listaEvalRefPost = p.getResultList();\r\n\t\t\t\t\t\t\tif (!listaEvalRefPost.isEmpty()) {\r\n\t\t\t\t\t\t\t\tbanderaExisteEnListaCorta = 1;\r\n\t\t\t\t\t\t\t\ti = lista.size();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ti++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (banderaExisteEnListaCorta == 0) {\r\n\t\t\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\t\t\tobservacion += \" NO SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t} else if (banderaExisteEnListaCorta == 1){\r\n\t\t\t\t\t\tobservacion += \" SELECCIONADO/ELEGIBLE EN LISTA CORTA\";\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tQuery p = em.createQuery(\"select E from EvalReferencialPostulante E \"\r\n\t\t\t\t\t\t\t\t+ \"where E.postulacion.personaPostulante.persona.idPersona =:id_persona and E.concursoPuestoAgr.idConcursoPuestoAgr =:id_concurso_puesto_agr and E.listaCorta=:esta_en_lista_corta\");\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_persona\", personaLocal.getIdPersona());\r\n\t\t\t\t\t\t\t\tp.setParameter(\"id_concurso_puesto_agr\", this.idConcursoPuestoAgr);\r\n\t\t\t\t\t\t\t\tp.setParameter(\"esta_en_lista_corta\", true);\r\n\t\t\t\t\t\tEvalReferencialPostulante auxEvalReferencialPostulante = (EvalReferencialPostulante) p.getResultList().get(0);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Validaciones para actualizaciones\r\n\t\t\t\t\t\t//Bandera indicadora de actualizaciones hechas\r\n\t\t\t\t\t\tint bandera = 0;\r\n\t\t\t\t\t\tif(auxEvalReferencialPostulante.getSelAdjudicado() == null){\r\n\t\t\t\t\t\t\testado = \"EXITO\";\r\n\t\t\t\t\t\t\tauxEvalReferencialPostulante.setSelAdjudicado(true);;\r\n\t\t\t\t\t\t\tbandera = 1;\r\n\t\t\t\t\t\t\tem.merge(auxEvalReferencialPostulante);\r\n\t\t\t\t\t\t\tem.flush();\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\tagregarEstadoMotivo(linea, estado, observacion, cadenaSalida);\r\n\t\t\t}\r\n\t\t\tif (cantidadLineas > 1 && !fp.valido) {\r\n\t\t\t\testado = \"FRACASO\";\r\n\t\t\t\tcadenaSalida\r\n\t\t\t\t\t\t.append(estado\r\n\t\t\t\t\t\t\t\t+ \" - ARCHIVO INGRESADO CON MENOS CAMPOS DE LOS NECESARIOS. DATOS INCORRECTOS EN ALGUNA COLUMNA.\");\r\n\t\t\t\tcadenaSalida.append(System.getProperty(\"line.separator\"));\r\n\t\t\t}\r\n\r\n\t\t\t// FIN FOR\r\n\t\t}\r\n\t\t//FIN IF\r\n\t\t}\r\n\t\tif (lLineasArch.isEmpty()) {\r\n\t\t\tstatusMessages.add(Severity.INFO, \"Archivo inválido\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSimpleDateFormat sdf2 = new SimpleDateFormat(\"dd_MM_yyyy_HH_mm_ss\");\r\n\t\t\tString nArchivo = sdf2.format(new Date()) + \"_\" + fName;\r\n\t\t\tString direccion = System.getProperty(\"jboss.home.dir\") + System.getProperty(\"file.separator\") + \"temp\" + System.getProperty(\"file.separator\");\r\n\t\t\tFile archSalida = new File(direccion + nArchivo);\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileUtils\r\n\t\t\t\t\t\t.writeStringToFile(archSalida, cadenaSalida.toString());\r\n\t\t\t\tif (archSalida.length() > 0) {\r\n\t\t\t\t\tstatusMessages.add(Severity.INFO, \"Insercion Exitosa\");\r\n\t\t\t\t}\r\n\t\t\t\tJasperReportUtils.respondFile(archSalida, nArchivo, false,\r\n\t\t\t\t\t\t\"application/vnd.ms-excel\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tstatusMessages.add(Severity.ERROR, \"IOException\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static void crearPedidoGenerandoOPPyOPCyOrdenInsumo() throws RemoteException {\n\t\tlong[] idVariedades = { 63, 34 };\n\t\tint[] cantidades = { 3, 3 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"Pedido nuevo de cliente desde test\", idVariedades,\n\t\t\t\tcantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\n\t}",
"@Override\n\tpublic void salvaSuFile() {\n\t\tString path = \"alimenti.txt\";\n\t\tString allergeni = Alimento.getStringaAllergeni(getElencoAllergeni());\n\t\ttry {\n\t\t\tFile file = new File(path);\n\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\tbw.write(getNome() + \" - \" + getPrezzo() + \"€\\n\");\n\t\t\tbw.write(\"Adatto a vegani: \" + (getVegano() ? \"sì\\n\" : \"no\\n\"));\n\t\t\tbw.write(\"Adatto a vegetariani: \" + (getVegetariano() ? \"sì\\n\" : \"no\\n\"));\n\t\t\tbw.write(\"Tipologia: \" + getTipoPortata().getNome().toUpperCase() + \"\\n\");\n\t\t\tbw.write(\"Cottura: \" + getTipoCottura().getNome().toUpperCase() + \"\\n\");\n\t\t\tbw.write(\"Allergeni: \" + (allergeni.isEmpty() ? \"--\" : allergeni) + \"\\n\\n\");\n\t\t\tbw.flush();\n\t\t\tbw.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void LecturaEscrituraOBjetosManual(File rutaEscribir) throws IOException {\n ObjectOutputStream escribir = new ObjectOutputStream(\n new BufferedOutputStream(\n new FileOutputStream(rutaEscribir)));\n\n Scanner read = new Scanner(System.in);\n System.out.println(\"¿Cuántas carteleras agregarás?\");\n //se ingresa cantidad de carteleras, para generar el array\n //se crea el array y se piden los datos de cada objeto\n //se agrega cada objeto al array y lo devuelve con la información rellenada\n Cartelera[] lista = Cartelera.listaCartelera(read.nextInt());\n\n //se escribe un array de cartelera. \n escribir.writeObject(lista);\n escribir.close();\n }",
"private static void crearPedidoGenerandoOPPyOrdenInsumo() throws RemoteException {\n\t\tlong[] idVariedades = { 34, 49 };\n\t\tint[] cantidades = { 4, 2 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 4\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\n\t}",
"public void recevoirDossier() {\n try {\n fileInfo = (FileInfo) ois.readObject(); //lire les informations du fichier\n //chemin du fichier en sortie\n String outputFile = fileInfo.getDestinationDirectory() + fileInfo.getFilename();\n dstFile = new File(outputFile);\n if (!new File(fileInfo.getDestinationDirectory()).exists()) { //si le fichier n'existe pas\n new File(fileInfo.getDestinationDirectory()).mkdirs(); //creation du fichier\n fos = new FileOutputStream(dstFile);\n fos.write(fileInfo.getFileData()); //ecrire les données dans le fichier\n fos.flush();\n fileInfo.setFileData(null);\n System.gc();\n fos.close();\n dstFile.setLastModified(fileInfo.getModifier());\n\n } else if (dstFile.lastModified() < fileInfo.getModifier()) { //si le fichier existe et que c'est une nouvelle version alors\n fos = new FileOutputStream(dstFile);\n fos.write(fileInfo.getFileData());\n fos.flush();\n fileInfo.setFileData(null);\n fos.close();\n dstFile.setLastModified(fileInfo.getModifier());\n }\n } catch (IOException | ClassNotFoundException ex) {\n Logger.getLogger(RecevoirFichier.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void generar() throws Exception {\n\t\tAnalizador_Sintactico.salida.generar(\".DATA\", \"genero los datos estaticos para la clase \"+this.nombre);\r\n\t\tAnalizador_Sintactico.salida.generar(\"VT_\"+nombre+\":\",\" \");\r\n\t\t\r\n\t\tboolean esDinamico=false;\r\n\t\t\r\n\t\t//para cada metodo, genero la etiqueta dw al codigo\r\n\t\tfor (EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\tAnalizador_Sintactico.salida.gen_DW(\"DW \"+m.getEtiqueta(),\"offset: \"+m.getOffsetMetodo(),m.getOffsetMetodo());\r\n\t\t\t\tesDinamico=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tAnalizador_Sintactico.salida.agregar_DW();\r\n\t\t\r\n\t\t//si NO hay ningun metodo dinamico -> VT con NOP\r\n\t\tif (! esDinamico)\r\n\t\t\tAnalizador_Sintactico.salida.generar(\"NOP\",\"no hago nada\");\r\n\t\t\r\n\t\t//genero codigo para todos los metodos\r\n\t\tAnalizador_Sintactico.salida.generar(\".CODE\",\"seccion codigo de la clase \"+this.nombre);\r\n\t\t\r\n\t\tList<EntradaPar> listaParams;\r\n\t\tfor(EntradaMetodo m: entradaMetodo.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(m);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= m.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\t\r\n\t\t\t\t//si es dinamico m -> offset desde 3\r\n\t\t\t\tif (m.getModificador().equals(\"dynamic\")) {\r\n\t\t\t\t\tp.setOffset((listaParams.size() +4) - p.getUbicacion());\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t//si es estatico m -> offset desde 2\r\n\t\t\t\t\tp.setOffset((listaParams.size() +3) - p.getUbicacion());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//genero el codigo del cuerpo de ese metodo\r\n\t\t\tm.generar();\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//genero codigo para todos los constructores\r\n\t\tfor(EntradaCtor c: entradaCtor.values()) {\r\n\t\t\t//metodo actual es m\r\n\t\t\tAnalizador_Sintactico.TS.setMetodoActual(c);\r\n\t\t\t\r\n\t\t\t//SETEO el offset de sus parametros\r\n\t\t\tlistaParams= c.getEntradaParametros();\r\n\t\t\t\r\n\t\t\tfor(EntradaPar p: listaParams) {\r\n\t\t\t\t//seteo offset de p\r\n\t\t\t\tp.setOffset(listaParams.size() +4 - p.getUbicacion());\t// +4 porque el ctor tiene this\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t//genero el codigo de ese metodo\r\n\t\t\tc.generar();\r\n\t\t}\t\r\n\t}",
"private static void menuCliente(int idCliente) throws Exception {//Inicio menuCliente \r\n byte opcao;\r\n int idCompra;\r\n ArrayList<Compra> minhasCompras = null;\r\n ArrayList<ItemComprado> meusItensComprados = null;\r\n ArrayList<Produto> listProdutos = null;\r\n boolean encerrarPrograma = false;\r\n do {\r\n try {\r\n System.out.println(\r\n \"\\n\\t*** MENU CLIENTE ***\\n\"\r\n + \"0 - Nova compra\\n\"\r\n + \"1 - Minhas compras\\n\"\r\n + \"2 - Alterar meus dados\\n\"\r\n + \"3 - Excluir conta\\n\"\r\n + \"4 - Sair\"\r\n );\r\n System.out.print(\"Digite sua opcao: \");\r\n opcao = read.nextByte();\r\n switch (opcao) {\r\n case 0:\r\n idCompra = arqCompra.inserir(new Compra(idCliente, new Date()));\r\n compraProdutos(idCliente, idCompra);\r\n break;\r\n case 1:\r\n listProdutos = arqProdutos.toList();\r\n minhasCompras = listComprasDoCliente(idCliente);\r\n for (Compra c : minhasCompras) {\r\n System.out.println(\"\\n*** Compra de ID: \" + c.getID() + \" Data: \" + dt.format(c.dataCompra));\r\n meusItensComprados = listarOsItensComprados(c.getID());\r\n for (ItemComprado ic : meusItensComprados) {\r\n for (Produto p : listProdutos) {\r\n if (p.getID() == ic.idProduto) {\r\n System.out.println(\r\n \"\\n\\tProduto: \" + p.nomeProduto\r\n + \"\\n\\tMarca: \" + p.marca\r\n + \"\\n\\tPreço: \" + tf.format(ic.precoUnitario)\r\n + \"\\n\\tQuant: \" + ic.qtdProduto\r\n );\r\n }\r\n }\r\n }\r\n }\r\n break;\r\n case 2:\r\n uptadeDados(idCliente);\r\n break;\r\n case 3:\r\n System.out.println(\"\\nConfirmar opção? \\n0 - Sim\\n1 - Nao\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n switch (read.nextInt()) {\r\n case 0:\r\n if (arqClientes.remover(idCliente - 1)) {\r\n System.out.println(\"Remoção feita com sucesso!\");\r\n }\r\n break;\r\n case 1:\r\n System.out.println(\"\\nObrigado por continuar!\");\r\n break;\r\n default:\r\n System.out.println(\"\\nOpcao invalida!\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n encerrarPrograma = true;\r\n break;\r\n case 4:\r\n encerrarPrograma = true;\r\n break;\r\n default:\r\n System.out.println(\"Opcao invalida!\\n\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n } catch (InputMismatchException inputMismatchException) {\r\n System.out.println(\"\\nErro !\\nTente novamente!\");\r\n Thread.sleep(1000);\r\n read.next();//Limpar buffer do Scanner\r\n }\r\n } while (!encerrarPrograma);\r\n }",
"public void Horas() {\r\n File archivo = null;\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n \r\n try {\r\n // Apertura del fichero y creacion de BufferedReader para poder\r\n // hacer una lectura comoda (disponer del metodo readLine()).\r\n \r\n \r\n // Lectura del fichero\r\n String linea;\r\n \r\n for (a=0;a<5;a++){\r\n if (a==0){\r\n categoria=\"Embarazadas\";\r\n }\r\n if (a==1){\r\n categoria=\"Regulares\";\r\n }\r\n if (a==2){\r\n categoria=\"Discapacitados\";\r\n }\r\n if (a==3){\r\n categoria=\"Mayores\";\r\n }\r\n if (a==4){\r\n categoria=\"Corporativos\";\r\n }\r\n archivo = new File (System.getProperty(\"user.dir\")+\"/Clientes/\"+categoria+\".txt\");\r\n fr = new FileReader (archivo);\r\n br = new BufferedReader(fr);\r\n while((linea=br.readLine())!=null)\r\n if (leerHora == contador){\r\n comparar = linea.substring(0,2);\r\n \r\n if (\"09\".equals(comparar)){\r\n nueve++;\r\n }\r\n if (\"10\".equals(comparar)){\r\n diez++;\r\n }\r\n if (\"11\".equals(comparar)){\r\n once++;\r\n }\r\n if (\"13\".equals(comparar)){\r\n una++;\r\n }\r\n if (\"14\".equals(comparar)){\r\n dos++;\r\n }\r\n if (\"15\".equals(comparar)){\r\n tres++;\r\n }\r\n if (\"16\".equals(comparar)){\r\n cuatro++;\r\n }\r\n \r\n contador +=1;\r\n leerHora += 6;\r\n }\r\n else{\r\n contador += 1;\r\n }\r\n }\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n // En el finally cerramos el fichero, para asegurarnos\r\n // que se cierra tanto si todo va bien como si salta \r\n // una excepcion.\r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n }",
"@Override\r\n\tpublic void createFile(FacebookClient fbClient, ITable table,\r\n\t\t\tString outputFile) {\n\t}",
"public boolean excribirResultados(String nom, ArrayList<Resultado> resFinal) { \n objDate = new Date(); \n hourdateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n String fecha = hourdateFormat.format(objDate);\n \n hourdateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH.mm.ss\");\n this.nombre = hourdateFormat.format(objDate) + \" \" +nom;\n try{\n file.abrirArchivo(nombre, true, false);\n file.escribirArchivo(fecha, true); \n file.escribirArchivo(encabezado, true);\n file.escribirArchivo(\"\", true);\n String nombreFun = resFinal.get(0).getFuncion();\n for (Resultado res : resFinal) { \n if(!nombreFun.equals(res.getFuncion())){\n file.escribirArchivo(\"\", true);\n nombreFun = res.getFuncion();\n }\n encabezado = organizarCadena(res);\n //escribir linea en el archivo\n file.escribirArchivo(encabezado, true); \n }\n file.escribirArchivo(\"\\n\", false); \n }catch(Exception e){\n System.out.println(\"error manipulando un archivo. ex = \" + e.getMessage());\n return false;\n }finally{\n // En el finally se cierra el fichero, para asegurarse que se cierra si todo va bien o si salta una excepcion.\n try{ \n if( null != file ){ \n file.cerrarArchivo();\n }\n }catch (Exception e2){ \n System.out.println(\"error cerando un archivo. ex = \" + e2.getMessage());\n return false;\n }\n }\n return true;\n }",
"FileContent createFileContent();",
"public void Serializar(){\n try {\n FileOutputStream archivo = new FileOutputStream(\"SerializacionEdificios\");\n ObjectOutputStream salida = new ObjectOutputStream(archivo);\n salida.writeObject(edificios);\n archivo = new FileOutputStream(\"SerializacionEstudiantes\");\n salida = new ObjectOutputStream(archivo);\n salida.writeObject(estudiantes);\n archivo = new FileOutputStream(\"SerializacionProfesores\");\n salida = new ObjectOutputStream(archivo);\n salida.writeObject(profesores);\n archivo = new FileOutputStream(\"SerializacionAdministradores\");\n salida = new ObjectOutputStream(archivo);\n salida.writeObject(administradores);\n salida.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void criar() throws IOException {\nif (!directorio.exists()) {\n directorio.mkdir();\n System.out.println(\"Directorio criado\");\n } else {\n System.out.println(\"Directorio existe\");\n }\n if (!fileAdmin.exists()) {\n fileAdmin.createNewFile();\n System.out.println(\"file de Administrador criado com sucesso\");\n escrever(lista);\n } else {\n System.out.println(\"ficheiro existe\");\n }\n\n }",
"public void escribirProductos(Context context, ArrayList<Cesta> cesta, String total) {\n SimpleDateFormat dateFormat = new SimpleDateFormat( \"dd/MM/yyyy\", Locale.getDefault() ); // \"yyyy-MM-dd\"\n Date date = new Date();\n\n String fecha = dateFormat.format( date );\n\n String[]diaMes = fecha.split( \"/\" );\n String dia = diaMes[0];\n String mes = diaMes[1];\n\n String StringNumero = dia+\"/\"+mes;\n\n // sacar la hora actural\n @SuppressLint(\"SimpleDateFormat\") DateFormat df = new SimpleDateFormat( \"HH:mm\" ); // \"EEE, d MMM yyyy, HH:mm\"\n String hora = df.format( Calendar.getInstance().getTime() );\n\n // sumar las variables\n\n String StringTotal = total.replace( \",\", \".\" );\n double DoubleTotal = Double.parseDouble( StringTotal); //\n double totalG = DoubleTotal+IVA+TAXA_DE_TRANSPORTE;\n\n System.out.println( \"Total String1: \"+StringTotal );\n System.out.println( \"Total Double: \"+DoubleTotal );\n\n String valorTotalGeneral = String.valueOf(df2.format( totalG ));\n\n System.out.println( \"TOTAL G: \"+totalG );\n\n System.out.println( \"Valor General: \"+valorTotalGeneral );\n\n // variables de aixilio de excrituras\n String info1 = \"--------------------------------------------------------------------\";\n //String info2 = \"--------------------------------------------------------------------\";\n\n\n String saludo = \"Exm@. Sr@.\";\n String usuario = Usuario.getNombre() + \" \" + Usuario.getApellidos();\n String direcion = Usuario.getCalle() + \", \" + Usuario.getPiso() + \", \" + Usuario.getPuerta();\n\n //numero aleatorio para la factura\n int numero = (int)(Math.random()*10+1);\n String valor = String.valueOf( numero );\n String nFactura = \"00\"+valor+ \"/\"+StringNumero;\n\n\n try {\n OutputStreamWriter fout =\n new OutputStreamWriter(\n context.openFileOutput( archivo, Context.MODE_PRIVATE ) );\n\n\n fout.write( \"_______________________________________________________________________________________\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t\\t\\t| \"+IdentidadTienda.nombreTienda + \"\\t\\t\\t\\t\\t|\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t\\t\\t| \"+IdentidadTienda.prov + \"\\t\\t\\t\\t\\t\\t\\t\\t\\t|\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t\\t\\t| \"+IdentidadTienda.DirecionTienda + \"\\t\\t\\t\\t|\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t\\t\\t| \"+IdentidadTienda.mail + \"\\t\\t|\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t\\t\\t| \"+IdentidadTienda.Cp + \"\\t\\t\\t\\t\\t\\t|\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t\\t\\t| \"+IdentidadTienda.tel + \"\\t\\t\\t\\t\\t\\t|\\n\" );\n fout.write( \"_______________________________________________________________________________________\\n\" );\n\n // fout.write( \"\\n\" );\n // informacion de usuario\n fout.write( \" \" + saludo + \"\\n\" );\n fout.write( \" \" + usuario + \"\\n\" );\n fout.write( \" \" + Usuario.getEmail() + \"\\n\" );\n fout.write( \" \" + Usuario.getTelefono() + \"\\n\" );\n fout.write( \" \" + Usuario.getEmail() + \"\\n\" );\n fout.write( \" \" + direcion + \"\\n\" );\n\n // fwcha, hora y nº pedido\n fout.write( \"_______________________________________________________________________________________\\n\" );\n fout.write( \"\\tFactura Nº: \"+nFactura+\"\\n\" );\n fout.write( \"\\tFecha: \"+fecha+\"\\n\" );\n fout.write( \"\\tHora: \"+hora+\"\\n\" );\n fout.write( \"_______________________________________________________________________________________\\n\" );\n\n\n // fout.write( \"_______________________________________________________________________________________\\n\" ); //=========================\n\n fout.write( \"|\\tNombre\\t\\t\\tDescripcion \\t\\t\\tPrecio\\t\\t\\tCantidad\\t\\tSubTotal|\\n\" );\n fout.write( \"_______________________________________________________________________________________\\n\" );\n for (Cesta cest1 : cesta) {\n\n fout.write( \"\\t\" + cest1.getNombre() + \"\\t\\t\\t \" +cest1.getDescripcion()+ \"\\t\\t\\t\\t\" + cest1.getPrecio() + \" \\t\\t\\tX \"+ cest1.getCantidad_User() + \"\\t\\t\\t\\t\"+cest1.getSubTotal() +\"\\n\");\n\n }\n\n fout.write( \"_______________________________________________________________________________________\\n\" );\n fout.write( \"\\tIVA: ********************************************************************* 0.99 €\\n\" );\n fout.write( \"\\tTAXA DE TRANSPORTE: ****************************************************** 2.99 €\\n\" );\n fout.write( \"\\tTOTAL DE LA COMPRA: ****************************************************** \"+total+\" €\\n\" );\n fout.write( \"\\tTOTAL GENERAL: *********************************************************** \"+valorTotalGeneral+\" €\\n\" );\n fout.write( \"-------------------------------------------------------------------------------------------\\n\" );\n\n //fout.write( \"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\\n\" );\n fout.write( \"\\t\\t\\t\\t\\t\\t\\t **** www.elproductoasugusto.es **** \\t\\t\\t\\n\" );\n fout.write( \"++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\\n\" );\n\n\n fout.close();\n } catch (Exception ex) {\n ex.printStackTrace();\n Log.e( \"Ficheros\", \"Error al escribir fichero a memoria interna\" );\n }\n\n\n }",
"private static void crearPedidoGenerandoOPP() throws RemoteException {\n\n\t\tlong[] idVariedades = { 25 };\n\t\tint[] cantidades = { 7 };\n\t\tPedidoClienteDTO pedido = crearPedido(\"20362134596\", \"test 2\", idVariedades, cantidades);\n\n\t\tpedido = PedidoController.getInstance().crearPedido(pedido).toDTO();\n\n\t\tPedidoController.getInstance().cambiarEstadoPedidoCliente(pedido.getNroPedido(), EstadoPedidoCliente.ACEPTADO);\n\t}",
"private static void createFileContribuicaoUmidade() throws IOException{\r\n\t\tInteger contribuicaoDefault = 0;\r\n\t\tarqContribuicaoUmidade = new File(pathContribuicaoUmidade);\r\n\t\tif(!arqContribuicaoUmidade.exists()) {\r\n\t\t\tarqContribuicaoUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqContribuicaoUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(contribuicaoDefault.toString() + String.valueOf('\\n'));\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {//Se arquivo existir\r\n\t\t\tFileReader fr = new FileReader(getArqContribuicaoUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio(modificado)*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqContribuicaoUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(contribuicaoDefault.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma contribuicao Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}",
"public void IntercambiarArchivos(byte[] archivoSinCifrar) {\r\n\t\ttry {\r\n\t\t\tString entry;\r\n\t\t\tServerSocket socketServidor = new ServerSocket();\r\n\t\t\tSocket client = socketServidor.accept();\r\n\t\t\t\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(client.getOutputStream());\r\n\t ObjectInputStream ois = new ObjectInputStream(client.getInputStream());\r\n\t \t \r\n\t BufferedReader inFromClient = new BufferedReader(new InputStreamReader(client.getInputStream()));\r\n\t BufferedWriter OutFromServer = new BufferedWriter( new OutputStreamWriter(client.getOutputStream() ) );\r\n\t \r\n\t OutputStream in = client.getOutputStream();\r\n\t DataOutputStream dataOut = new DataOutputStream(in);\r\n\t \r\n\t OutFromServer.write(\"GENERAR DH\");\r\n\t entry = inFromClient.readLine();\r\n\t if(entry.equals(\"LISTO PARA GENERAR DH\")) {\r\n\t \t\r\n\t }\r\n\t \r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void cargarProductosComprados() {\n try {\n //Lectura de los objetos de tipo productoComprado\n FileInputStream archivo= new FileInputStream(\"productosComprados\"+this.getCorreo()+\".dat\");\n ObjectInputStream ruta = new ObjectInputStream(archivo);\n productosComprados = (ArrayList) ruta.readObject();\n archivo.close();\n \n \n } catch (IOException ioe) {\n System.out.println(\"Error de IO: \" + ioe.getMessage());\n } catch (ClassNotFoundException cnfe) {\n System.out.println(\"Error de clase no encontrada: \" + cnfe.getMessage());\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }",
"public void respaldo() {\n if (seleccionados != null && seleccionados.length > 0) {\n ZipOutputStream salidaZip; //Donde va a quedar el archivo zip\n\n File file = new File(FacesContext.getCurrentInstance()\n .getExternalContext()\n .getRealPath(\"/temporales/\") + archivoRespaldo + \".zip\");\n\n try {\n salidaZip\n = new ZipOutputStream(new FileOutputStream(file));\n ZipEntry entradaZip;\n\n for (String s : seleccionados) {\n if (s.contains(\"Paises\")) {\n\n entradaZip = new ZipEntry(\"paises.json\");\n salidaZip.putNextEntry(entradaZip);\n byte data[]\n = PaisGestion.generaJson().getBytes();\n salidaZip.write(data, 0, data.length);\n salidaZip.closeEntry();\n }\n }\n salidaZip.close();\n\n // Descargar el archivo zip\n //Se carga el zip en un arreglo de bytes...\n byte[] zip = Files.readAllBytes(file.toPath());\n\n //Generar la página de respuesta...\n HttpServletResponse respuesta\n = (HttpServletResponse) FacesContext\n .getCurrentInstance()\n .getExternalContext()\n .getResponse();\n\n ServletOutputStream salida\n = respuesta.getOutputStream();\n\n //Defino los encabezados de la página de respuesta\n respuesta.setContentType(\"application/zip\");\n respuesta.setHeader(\"Content-Disposition\",\n \"attachement; filename=\" + archivoRespaldo + \".zip\");\n\n salida.write(zip);\n salida.flush();\n\n //Todo listo\n FacesContext.getCurrentInstance().responseComplete();\n file.delete();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(RespaldoController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(RespaldoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }\n\n }",
"private static void writeFileOnClient(FileStore.Client client) throws SystemException, TException, IOException {\n String fileName = \"sample.txt\";\n\n String content = \"Content\";\n\n try {\n\n RFile rFile = new RFile();\n RFileMetadata rFileMetaData = new RFileMetadata();\n\n rFileMetaData.setFilename(fileName);\n rFileMetaData.setFilenameIsSet(true);\n\n rFile.setMeta(rFileMetaData);\n rFile.setMetaIsSet(true);\n\n rFile.setContent(content);\n rFile.setContentIsSet(true);\n\n client.writeFile(rFile);\n\n } catch (TException x) {\n throw x;\n }\n }",
"public void generateBillFile(int orderId, ArrayList<MenuItem> items, float price, Date date) {\r\n String name = \"Bill\" + orderId;\r\n this.output = new File(name);\r\n try {\r\n output.createNewFile();\r\n writer = new FileWriter(output);\r\n\r\n writer.write(\"Order id: \" + orderId + \"\\n \\n\");\r\n writer.write(\"Ordered items: \\n\");\r\n for (MenuItem i: items) {\r\n writer.write(i.toString() + \"\\n\");\r\n }\r\n writer.write(\"Total price: \" + price + \"\\n\");\r\n writer.write(date + \"\");\r\n\r\n writer.close();\r\n } catch (Exception e) {\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tRepositoryProducts rp=RepositoryProducts.instance();\n\n\t\tint n=U.getInt(\"\\n Inserte el número de productos que se van a generar\");\n\t\t\n\t\twhile(n>0) {\n\t\t\tProduct p=generate();\n\t\t\trp.addProduct(p);\n\t\t\tn--;\n\t\t}\n\t\t\n\t\trp.saveFile();\n\t\tU.P(\"\\n Se han guardado los datos correctamente.\");\n\t}",
"public void zapisz() {\n String nazwaPliku = \"Zadania\";\n FileOutputStream out;\n PrintWriter o = null;\n pobierz();\n\n try {\n out = openFileOutput(nazwaPliku, Context.MODE_APPEND);\n o = new PrintWriter(out);\n pobierz();\n o = zadanie.zapisz(o);\n\n\n Context context = getApplicationContext();\n CharSequence text = \"Zapisano\";\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n finally {\n o.close();\n }\n\n\n }",
"public void salvaPartita(String file) {\n\r\n }",
"@Override\r\n\tpublic void addProduct() {\n\r\n\t\ttry {\r\n\t\t\toos = new ObjectOutputStream(new FileOutputStream(\"pizza.txt\"));\r\n\t\t\r\n\t\t\tint flag = 1;\r\n\t\t\twhile (flag == 1) {\r\n\t\t\t\tSystem.out.println(\"Enter your Pid\");\r\n\t\t\t\tint pId = sc.nextInt();\r\n\t\t\t\tSystem.out.println(\"Enter your pname\");\r\n\t\t\t\tString pName = sc.next();\r\n\t\t\t\tSystem.out.println(\"Enter your pprice\");\r\n\t\t\t\tint pPrice = sc.nextInt();\r\n\t\t\t\tSystem.out.println(\"enter quantity\");\r\n\t\t\t\tint pqty = sc.nextInt();\r\n\t\t\t\tPizzaBean pb = new PizzaBean(pId, pName, pPrice, pqty);\r\n\t\t\t\tpizza.add(pb);\r\n\t\t\t\tSystem.out\r\n\t\t\t\t\t\t.println(\"Do you want to add one more record press 1 otherwise any number\");\r\n\t\t\t\tflag = sc.nextInt();\r\n\t\t\t}\r\n\t\t\t\toos.writeObject(pizza);\r\n\t\t\t\toos.flush();\r\n\t\t\t\toos.close();\r\n\t\t\t\tSystem.out.println(\"----Pizzas succesfully added----------\");\r\n\t\t}\r\n\t\t\t catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t\t\r\n\t}",
"private static Vehiculo generarDatosVehiculo() throws VehiculoException{\n \n System.out.print(\"Introduzca el numero de bastidor: \");\n String bastidor = teclado.nextLine();\n\n System.out.print(\"Introduzca el valor de matricula: \");\n String matricula = teclado.nextLine();\n\n System.out.print(\"Introduzca la marca: \");\n String marca = teclado.nextLine();\n\n System.out.print(\"Introduzca el modelo: \");\n String modelo = teclado.nextLine();\n\n System.out.print(\"Introduzca el color: \");\n String color = teclado.nextLine();\n\n System.out.print(\"Introduzca la cilindrada: \");\n String cilindrada = teclado.nextLine();\n\n System.out.print(\"Introduzca el tipo de motor: \");\n String motor = teclado.nextLine();\n\n System.out.print(\"Introduzca la potencia: \");\n int potencia = Integer.parseInt(teclado.nextLine());\n\n System.out.print(\"Introduzca los extras instalados: \");\n String extras = teclado.nextLine();\n\n System.out.print(\"Introduzca el precio: \");\n double precio = teclado.nextDouble();\n\n System.out.print(\"Introduzca el tipo de vehiculo: \");\n String tipo = teclado.nextLine();\n\n System.out.print(\"Introduzca el estado del vehiculo: \");\n String estado = teclado.nextLine();\n\n Vehiculo vehiculo = new Vehiculo(bastidor, matricula, marca, modelo, color, precio, extras, motor, potencia, cilindrada, tipo, estado);\n vehiculoController.validarVehiculo(vehiculo);\n\n return vehiculo;\n }",
"public static int leerClientes(String[] nombres,String[] apellidos, String[]ruts,String[]contraseñas,double[]saldos) throws IOException{\r\n File file = new File(\"clientes.txt\");\r\n Scanner arch = new Scanner(file); \r\n int i = 0;\r\n while ( arch.hasNextLine()){\r\n String linea = arch.nextLine();\r\n String [] partes = linea.split(\",\");\r\n nombres[i] = partes[0];\r\n apellidos[i] = partes[1];\r\n ruts[i] = partes[2];\r\n contraseñas[i] = partes[3] ;\r\n saldos[i] = Double.parseDouble(partes[4]);\r\n i ++; \r\n }\r\n arch.close(); \r\n return i;\r\n }",
"private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\t\ttry {\n\t\t\tioManager.writeToFile(FileDataWrapper.productMap.values(), new Product());\n\t\t\tioManager = null;\n\t\t} catch (Exception ex) {\n\t\t\tDisplayUtil.displayValidationError(buttonPanel, StoreConstants.ERROR + \" saving new product\");\n\t\t\tioManager = null;\n\t\t}\n\t}",
"public void crearNotaDeVenta (HistorialVentas ventas){\r\n String currentDate = this.dateFormat.format(this.date);\r\n try{\r\n this.writer = new PrintWriter(\"cierre_\" + currentDate + \".txt\", \"UTF-8\");\r\n this.writer.println(\"Historial ventas\");\r\n for(int i = 0; i < ventas.size(); i++) {\r\n //ventas.size se refiere al historial de ventas, es para recorrer lo que ya se tiene \r\n this.writer.println( (i+1) + \") Clave de venta: \" + ventas.getVentaAt(i).getClave());\r\n this.writer.println(\"Precio: \" + ventas.getVentaAt(i).getPrecio() + \"\\t\" + \"Cantidad: \" + ventas.getVentaAt(i).getCantidad());\r\n this.writer.println(\"Importe: \" + ventas.getVentaAt(i).getImporte());\r\n this.writer.println(\"Descripción: \");\r\n this.writer.println(ventas.getVentaAt(i).getDescripcion());\r\n this.writer.println(\"----------------------------------------------------------------\");\r\n }//en esta parte del codigo se esta imprimiendo en el documento la informacion introducida de la venta\r\n this.writer.close();\r\n } catch (Exception e) {\r\n JOptionPane.showMessageDialog(null, \"Whoops something went horribly wrong\");\r\n }\r\n }",
"public static void writeClientfile(String filepath, Client clientObj) throws IOException {\r\n // add the new client object to clientMap\r\n addClient(clientObj);\r\n // write new client information to client csv\r\n CSVWriter writer = new CSVWriter(new FileWriter(filepath), CSVWriter.DEFAULT_SEPARATOR, \r\n CSVWriter.NO_QUOTE_CHARACTER);\r\n for (Entry<String, Client> entry : clientMap.entrySet()) {\r\n String [] record = entry.getValue().toString().split(\",\");\r\n writer.writeNext(record);\r\n }\r\n writer.close();\r\n\r\n }",
"public void leeArchivo() throws IOException {\n // defino el objeto de Entrada para tomar datos\n BufferedReader brwEntrada;\n try {\n // creo el objeto de entrada a partir de un archivo de texto\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n } catch (FileNotFoundException e) {\n // si marca error es que el archivo no existia entonces lo creo\n File filPuntos = new File(\"datos.txt\");\n PrintWriter prwSalida = new PrintWriter(filPuntos);\n // le pongo datos ficticios o de default\n // lo cierro para que se grabe lo que meti al archivo\n prwSalida.close();\n // lo vuelvo a abrir porque el objetivo es leer datos\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n }\n // con el archivo abierto leo los datos que estan guardados\n brwEntrada.close();\n }",
"public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}",
"private void enviar_arquivo()\n {\n try\n {\n verifica_servidor();\n /*** Cria a conexão UDP ***/\n socket = new DatagramSocket();\n /*** Obtem o endereço IP ***/\n InetAddress IPAddress = InetAddress.getByName(this.ip);\n /*** Inicia o handshake ***/\n handshake(IPAddress);\n /*** Cria a instancia da classe arquivo para o envio ***/\n int pacotes_enviados = 1;\n while (pacotes_enviados < pacotes.size())\n {\n verifica_servidor();\n int enviar = this.CWND / Utils.tamanho_util_pacote;\n int enviados = 0;\n int enviei = 0;\n while (enviados < enviar)\n {\n verifica_servidor();\n if(pacotes_enviados + enviados >= pacotes.size()) break;\n meu_pacote = pacotes.get(pacotes_enviados + enviados);\n meu_pacote.setId((short) this.ID);\n this.ultimo_sequencia_enviado = proximo_sequencia(this.ultimo_sequencia_enviado);\n meu_pacote.setNumero_de_sequencia(this.ultimo_sequencia_enviado);\n meu_pacote.setNumero_ack(this.ultimo_ack);\n janela.get(pacotes_enviados + enviados).setNumero_sequencia(this.ultimo_sequencia_enviado);\n /*** Dados do arquivo para enviar ***/\n byte[] data = Utils.cria_pacote(meu_pacote);\n /*** Pacote para enviar ***/\n DatagramPacket sendPacket = new DatagramPacket(data, data.length, IPAddress, this.porta);\n /*** Envia o arquivo ***/\n if(!vai_falhar(Utils.chance_perda_cliente))\n {\n socket.send(sendPacket);\n System.out.println(Utils.prefixo_cliente + Utils.pacote_enviado(meu_pacote));\n }else\n {\n System.out.println(Utils.prefixo_cliente + Utils.pacote_perdido);\n }\n janela.get(pacotes_enviados + enviados).ativa_timer();\n janela.get(pacotes_enviados + enviados).setEstouro(false);\n enviados++;\n enviei++;\n /*** Tempo de espera minimo ***/\n try\n {\n Thread.sleep(100);\n } catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n }\n boolean checkado = false;\n int recebidos = 0;\n while (!checkado)\n {\n try\n {\n verifica_servidor();\n byte[] incomingData2 = new byte[Utils.tamanho_pacote];\n /*** Recebe um pacote ***/\n DatagramPacket incomingPacket2 = new DatagramPacket(incomingData2, incomingData2.length);\n socket.setSoTimeout(Utils.tempo_espera_ack);\n socket.receive(incomingPacket2);\n byte[] data4 = incomingPacket2.getData();\n /*** Transforma os bytes em uma instancia de arquivo ***/\n Pacote pacote_2 = Utils.cria_pacote(data4);\n /*** LOG ***/\n System.out.println(Utils.janela(enviar, this.CWND, this.SS_THRESH, this.janela));\n int prox= 0;\n int indice = 0;\n for (Map.Entry a : janela.entrySet()){\n if(!((Estado) a.getValue()).isEstado())\n {\n prox = ((Estado) a.getValue()).getNumero_sequencia();\n indice = (int) a.getKey();\n break;\n }\n }\n /*** LOG ***/\n System.out.println(Utils.prefixo_cliente + Utils.seq_esperado(prox,pacote_2.getNumero_ack()));\n if (pacote_2.isACK() && pacote_2.getNumero_ack() >= prox)\n {\n System.out.println(Utils.prefixo_servidor + Utils.pacote_recebido(pacote_2));\n int contador = obtem_primeiro(pacote_2.getNumero_ack());\n for(int iterador = indice; iterador <= contador; iterador++)\n {\n desativa_s_timer();\n recebidos++;\n if (this.CWND < this.SS_THRESH) this.CWND += 512;\n else\n {\n this.CWND = (512 * 512)/this.CWND;\n if (this.CWND < 512){\n this.CWND = 512;\n// this.SS_THRESH = 10000;\n }\n }\n }\n verifica(contador);\n this.ultimo_ack = pacote_2.getNumero_de_sequencia()+1;\n }\n if (recebidos == enviei) checkado = true;\n }catch (SocketTimeoutException e){\n System.out.print(Utils.reenvio_pacote);\n checkado = true;\n verifica_servidor();\n }\n }\n int teste = houve_estouro();\n if (teste != -69)\n {\n pacotes_enviados = teste;\n if (teste != 1)\n {\n this.SS_THRESH = this.CWND;\n this.CWND = 512;\n }\n this.ultimo_sequencia_enviado = janela.get(teste-1).getNumero_sequencia();\n }\n else pacotes_enviados += enviar;\n }\n terminar_conexao();\n socket.close();\n System.exit(0);\n } catch (SocketException e)\n {\n System.out.println(Utils.prefixo_cliente + Utils.fim_de_conexao);\n } catch (IOException | ClassNotFoundException | InstantiationException | IllegalAccessException e)\n {\n e.printStackTrace();\n }\n }",
"public void generarArchivoRLC(List<Integer> result)\n\t{\n\t\t\n\t\tByteArrayOutputStream bs=new ByteArrayOutputStream();\n\t\tObjectOutputStream os;\n\t\ttry {\n\t\t\tos = new ObjectOutputStream(bs);\n\t\t\tos.writeObject(this.CR);\n\t\t\tos.close();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tbyte[] bytesCH=bs.toByteArray();\n\t\ttry {\n\t\t\tfos =new FileOutputStream(this.rutaDeAcceso+outPutFilePath);\n\t\t\tfos.write(bytesCH);\n\t\t\tfor(int i=0;i<result.size();i++)\n\t\t\t\tfos.write(result.get(i));\n\t\t\tfos.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void RDStockePEntrpot(Destination entrepot){\n File file = new File(\"src/StockeParEntrpot.txt\");\n try {\n if(!file.exists())\n file.createNewFile();\n BufferedWriter writer = new BufferedWriter(new FileWriter(file));\n for(int i = 0; i < entrepot.getSize(); i++){\n if(entrepot.getDon(i).getEtat() == Etat.STOCKE) {\n System.out.println(entrepot.getDon(i));\n writer.write(entrepot.getDon(i).toString() + \"\\r\\n\");\n }\n }\n writer.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e){\n e.printStackTrace();\n }\n }",
"public void generarReporteLibroContables(String sAccionBusqueda,List<LibroContable> librocontablesParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"LibroContable\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LibroContableMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"LibroContableMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"LibroContable\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Libro Contables\");\t\t\r\n\t\tparameters.put(\"busquedapor\", LibroContableConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(ParametroFactuPrincipal.class));\r\n\t\t\tclasses.add(new Classe(Definicion.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tLibroContableLogic librocontableLogicAuxiliar=new LibroContableLogic();\r\n\t\t\t\t\tlibrocontableLogicAuxiliar.setDatosCliente(librocontableLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\tlibrocontableLogicAuxiliar.setLibroContables(librocontablesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\tlibrocontableLogicAuxiliar.cargarRelacionesLoteForeignKeyLibroContableWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tlibrocontablesParaReportes=librocontableLogicAuxiliar.getLibroContables();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//librocontableLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (LibroContable librocontable:librocontablesParaReportes) {\r\n\t\t\t\t\t//\tlibrocontableLogic.deepLoad(librocontable, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//librocontableLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//librocontableLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileParametroFactuPrincipal = AuxiliarReportes.class.getResourceAsStream(\"ParametroFactuPrincipalDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_parametrofactuprincipal\", reportFileParametroFactuPrincipal);\r\n\r\n\t\t\tInputStream reportFileDefinicion = AuxiliarReportes.class.getResourceAsStream(\"DefinicionDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_definicion\", reportFileDefinicion);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceLibroContable=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tLibroContableConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tLibroContableConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceLibroContable=new JRBeanArrayDataSource(LibroContableJInternalFrame.TraerLibroContableBeans(librocontablesParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceLibroContable);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+LibroContableConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+LibroContableConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(LibroContableBean.TraerLibroContableBeans(librocontablesParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoLibroContableActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesLibroContables(sAccionBusqueda,sTipoArchivoReporte,librocontablesParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic String bajarFichero(String URLdiscoCliente, int idFichero, int idSesionCliente) throws RemoteException, MalformedURLException, NotBoundException {\n\t\tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\" + direccion + \":\" + puerto + \"/almacen\");\n\t\t\n\t\t//se deberia comprobar si el fichero realmente es el del cliente\n\t\t\n\t\tMetadatos m = datos.descargarFichero(idFichero,idSesionCliente);\n\t\tint idCliente = datos.sesion2id(idSesionCliente);\n\t\tint idSesionRepo = datos.dimeRepositorio(idCliente);\n\t\tif (m != null){\n\t\t\t\n\t\t\tInterfaz.imprime(\"Se ha notificado que el fichero \" + m.getNombreFichero() + \" va a ser descargado\");\n\t\t\tString URLservicioSrOperador = \"rmi://\" + direccionServicioSrOperador + \":\" + puertoServicioSrOperador + \"/sroperador/\" + idSesionRepo;\n\t\t\n\t\t\t//ahora buscamos el Servicio SrOperador y le pasamos la URL del DiscoCliente y el id de cliente que es el nombre de la carpeta\n\t\t\tServicioSrOperadorInterface servicioSrOperador =(ServicioSrOperadorInterface)Naming.lookup(URLservicioSrOperador);\n\t\t\t//el tercer parametro es la carpeta donde esta el fichero real, en caso de compartido es la carpeta dequien comparte evidentemente.\n\t\t\tservicioSrOperador.bajarFichero(URLdiscoCliente,m.getNombreFichero(),m.getIdCliente());\n\t\t\treturn m.getNombreFichero();\n\t\t}else return null;\t\t\n\t}",
"public void nuevoReporteClientes(ArrayList<Cliente> Datos) throws IOException {\n Document documento = null;\r\n try {\r\n FileOutputStream ficheroPdf = new FileOutputStream(\"C:\\\\Users\\\\panle\\\\Documents\\\\ReporteClientes.pdf\");\r\n documento = new Document(); // Se asocia el documento al OutputStream y se indica que el espaciado entre\r\n // lineas sera de 20. Esta llamada debe hacerse antes de abrir el documento\r\n PdfWriter.getInstance(documento, ficheroPdf).setInitialLeading(20);\r\n\r\n // Se abre el documento.\r\n documento.open();\r\n documento.add(new Paragraph(\"REPORTE CLIENTES\",\r\n FontFactory.getFont(\"ARIAL\", // fuente\r\n 16, // tamaño\r\n Font.ITALIC, // estilo\r\n BaseColor.BLACK))); // color\r\n\r\n PdfPTable tabla = new PdfPTable(9);\r\n Font font = new Font(FontFamily.COURIER, 6, Font.BOLD, BaseColor.BLACK);\r\n PdfPCell cell = new PdfPCell(new Phrase(\"algo\", font));\r\n documento.add(new Paragraph(\"\\n\"));\r\n\r\n Image img = Image.getInstance(\"C:\\\\Users\\\\panle\\\\Documents\\\\logo.png\");\r\n documento.add(img);\r\n documento.add(new Paragraph(\"\\n\"));\r\n int conta = 0;\r\n\r\n cell.setBorder(Rectangle.TITLE);\r\n tabla.addCell(\"NOMBRE COMLETO\");\r\n tabla.addCell(\"USUARIO\");\r\n tabla.addCell(\"NIT\");\r\n tabla.addCell(\"NO DOCUMENTO\");\r\n tabla.addCell(\"PROFESION\");\r\n tabla.addCell(\"TELÉFONO CELULAR\");\r\n tabla.addCell(\"TELÉFONO RESIDENCIA\");\r\n tabla.addCell(\"DIRECCIÓN\");\r\n tabla.addCell(\"CIUDAD\");\r\n\r\n while (conta < Datos.size()) {\r\n cell.setBorder(Rectangle.NO_BORDER);\r\n tabla.addCell(Datos.get(conta).getNOMBRE() + \" \" + Datos.get(conta).getAPELLIDO());\r\n tabla.addCell(Datos.get(conta).getUSUARIO());\r\n tabla.addCell(Datos.get(conta).getNIT());\r\n tabla.addCell(Datos.get(conta).getNUMERO_DOC());\r\n tabla.addCell(Datos.get(conta).getPROFESION());\r\n tabla.addCell(Datos.get(conta).getTEL_CEL());\r\n tabla.addCell(Datos.get(conta).getTEL_RESIDENCIA());\r\n tabla.addCell(Datos.get(conta).getDIRECCION());\r\n tabla.addCell(Datos.get(conta).getCIUDAD());\r\n conta++;\r\n }\r\n\r\n documento.add(tabla);\r\n documento.close();\r\n\r\n } catch (FileNotFoundException | DocumentException e) {\r\n System.out.println(\"Error al generar Reporte Clientes, por:\");\r\n e.printStackTrace();\r\n }\r\n }",
"public void Fecha() throws FileNotFoundException, IOException {\r\n File archivo = null;\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n \r\n try {\r\n // Apertura del fichero y creacion de BufferedReader para poder\r\n // hacer una lectura comoda (disponer del metodo readLine()).\r\n // Lectura del fichero\r\n String linea;\r\n \r\n for (b=0;b<5;b++){\r\n if (b==0){\r\n categoria=\"Embarazadas\";\r\n }\r\n if (b==1){\r\n categoria=\"Regulares\";\r\n }\r\n if (b==2){\r\n categoria=\"Discapacitados\";\r\n }\r\n if (b==3){\r\n categoria=\"Mayores\";\r\n }\r\n if (b==4){\r\n categoria=\"Corporativos\";\r\n }\r\n archivo = new File (System.getProperty(\"user.dir\")+\"/Clientes/\"+categoria+\".txt\");\r\n fr = new FileReader (archivo);\r\n br = new BufferedReader(fr);\r\n while((linea=br.readLine())!=null){\r\n if (leerFecha == contador){\r\n errorFecha = linea.substring(1,2);\r\n if (errorFecha.equals(\"/\")){\r\n comparar = linea.substring(0, 1);\r\n if (\"1\".equals(comparar)){\r\n d1++;\r\n }\r\n if (\"2\".equals(comparar)){\r\n d2++;\r\n }\r\n if (\"3\".equals(comparar)){\r\n d3++;\r\n }\r\n if (\"4\".equals(comparar)){\r\n d4++;\r\n }\r\n if (\"5\".equals(comparar)){\r\n d5++;\r\n }\r\n if (\"6\".equals(comparar)){\r\n d6++;\r\n }\r\n if (\"7\".equals(comparar)){\r\n d7++;\r\n }\r\n if (\"8\".equals(comparar)){\r\n d8++;\r\n }\r\n if (\"9\".equals(comparar)){\r\n d9++;\r\n }\r\n } \r\n else{\r\n comparar1=linea.substring(0, 2);\r\n if (\"10\".equals(comparar1)){\r\n d10++;\r\n }\r\n if (\"11\".equals(comparar1)){\r\n d11++;\r\n }\r\n if (\"12\".equals(comparar1)){\r\n d12++;\r\n }\r\n if (\"13\".equals(comparar1)){\r\n d13++;\r\n }\r\n if (\"14\".equals(comparar1)){\r\n d14++;\r\n }\r\n if (\"15\".equals(comparar1)){\r\n d15++;\r\n }\r\n if (\"16\".equals(comparar1)){\r\n d16++;\r\n }\r\n if (\"17\".equals(comparar1)){\r\n d17++;\r\n }\r\n if (\"18\".equals(comparar1)){\r\n d18++;\r\n }\r\n if (\"19\".equals(comparar1)){\r\n d19++;\r\n }\r\n if (\"20\".equals(comparar1)){\r\n d20++;\r\n }\r\n if (\"21\".equals(comparar1)){\r\n d21++;\r\n }\r\n if (\"22\".equals(comparar1)){\r\n d22++;\r\n }\r\n if (\"23\".equals(comparar1)){\r\n d23++;\r\n }\r\n if (\"24\".equals(comparar1)){\r\n d24++;\r\n }\r\n if (\"25\".equals(comparar1)){\r\n d25++;\r\n }\r\n if (\"26\".equals(comparar1)){\r\n d26++;\r\n }\r\n if (\"27\".equals(comparar1)){\r\n d27++;\r\n }\r\n if (\"28\".equals(comparar1)){\r\n d28++;\r\n }\r\n if (\"29\".equals(comparar1)){\r\n d29++;\r\n }\r\n if (\"30\".equals(comparar1)){\r\n d30++;\r\n }\r\n if (\"31\".equals(comparar1)){\r\n d31++;\r\n }\r\n \r\n }\r\n leerFecha+=6;\r\n contador += 1;\r\n }\r\n \r\n else{\r\n contador += 1;\r\n \r\n \r\n }\r\n } \r\n }\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n // En el finally cerramos el fichero, para asegurarnos\r\n // que se cierra tanto si todo va bien como si salta \r\n // una excepcion.\r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n }",
"public void grabaArchivo() throws IOException {\n\n System.out.println(\"Grabando archivo\");\n PrintWriter fileOut = new PrintWriter(new FileWriter(\"src/images/save.txt\"));\n for (int i = 0; i < vec.size(); i++) {\n\n Object x = vec.get(i);\n\n if (x instanceof Player) {\n x = (Player) vec.get(i);\n fileOut.println(x.toString());\n } else if (x instanceof Shot) {\n x = (Shot) vec.get(i);\n fileOut.println(x.toString());\n } else if (x instanceof Alien){\n x = (Alien) vec.get(i);\n fileOut.println(x.toString());\n } else {\n fileOut.println((String) x);\n }\n }\n\n vec.clear();\n fileOut.close();\n }",
"private static void createFileUmidade() throws IOException {\r\n\t\tInteger defaultUmidade = 30;\r\n\t\tarqUmidade = new File(pathUmidade);\r\n\t\tif(!arqUmidade.exists()) {\r\n\t\t\tarqUmidade.createNewFile();\r\n\t\t\tFileWriter fw = new FileWriter(getArqUmidade());\r\n\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\tbuffWrite.close();\r\n\t\t}else {\r\n\t\t\tFileReader fr = new FileReader(getArqUmidade());\r\n\t\t\tBufferedReader buffRead = new BufferedReader(fr);\r\n\t\t\tif(!buffRead.ready()) {/*Se o arquivo se encontar criado mas estiver vazio*/\r\n\t\t\t\tFileWriter fw = new FileWriter(arqUmidade);\r\n\t\t\t\tBufferedWriter buffWrite = new BufferedWriter(fw);\r\n\t\t\t\tbuffWrite.append(defaultUmidade.toString() + String.valueOf('\\n'));/*Inicializa o arquivo com uma umidade Inicial*/\r\n\t\t\t\tbuffWrite.close();\r\n\t\t\t}\r\n\t\t\tbuffRead.close();\r\n\t\t}\r\n\t}",
"private void createOrder(Shop shop, FileManager fileManager, ArrayList<Tool> toolList,\n ArrayList<Integer> quantityList) {\n if (toolList.size() != 0) {\n if (shop.createOrderOrAppendOrder(shop, toolList, quantityList, fileManager)) {\n System.out.println(\"Successfully added and/or appended order to orders.txt!\");\n } else {\n System.out.println(\"ERROR: Could not edit orders.txt.\");\n }\n }\n }",
"private void valoresconfiguracion() {\n\n String file_ultimanotificacion = \"ultima_notificacion\";\n\n String file_ramdom = \"ramdom_number_file\";\n\n String file_vibrar = \"vibrar_file\";\n String file_sonido = \"sonido_file\";\n String file_notificar = \"notificar_file\";\n String file_tipo = \"tipo_file\";\n String file_ringtone = \"ring_tone_file\";\n\n\n String file_nombre_ringtone = \"nombre_ringtone__file\";\n\n\n String ultimanotificacion_val = \"notexist\";\n\n\n String vibrar_val = \"11111\";\n String sonido_val = \"A\";\n String notificacion_val = \"11111\";\n String ringtone_val = \"A\";\n\n String tiposonidoval = \"11111\";\n String nombre_ringtone_val = \"A\";\n\n\n try {\n // FileOutputStream fileOutputStream = openFileOutput(file_name, MODE_PRIVATE);\n //fileOutputStream.write(parametro1.getBytes());\n\n\n // fileOutputStream.write(parametro2.getBytes());\n // fileOutputStream.write(parametro3.getBytes());\n // fileOutputStream.write(parametro4.getBytes());\n // fileOutputStream.write(parametro5.getBytes());\n // fileOutputStream.write(parametro6.getBytes());\n\n FileOutputStream fileOutputStream_ultimanot = openFileOutput(file_ultimanotificacion, MODE_PRIVATE);\n fileOutputStream_ultimanot.write(ultimanotificacion_val.getBytes());\n\n\n\n FileOutputStream fileOutputStream_ramdom = openFileOutput(file_ramdom, MODE_PRIVATE);\n fileOutputStream_ramdom.write(vibrar_val.getBytes());\n\n FileOutputStream fileOutputStream_vibrar = openFileOutput(file_vibrar, MODE_PRIVATE);\n fileOutputStream_vibrar.write(vibrar_val.getBytes());\n\n\n FileOutputStream fileOutputStream_sonido = openFileOutput(file_sonido, MODE_PRIVATE);\n fileOutputStream_sonido.write(sonido_val.getBytes());\n\n\n FileOutputStream fileOutputStream_notificar = openFileOutput(file_notificar, MODE_PRIVATE);\n fileOutputStream_notificar.write(notificacion_val.getBytes());\n\n\n FileOutputStream fileOutputStream_sonidotipo = openFileOutput(file_tipo, MODE_PRIVATE);\n fileOutputStream_sonidotipo.write(tiposonidoval.getBytes());\n\n\n FileOutputStream fileOutputStream_ring_tone = openFileOutput(file_ringtone, MODE_PRIVATE);\n fileOutputStream_ring_tone.write(ringtone_val.getBytes());\n\n\n FileOutputStream fileOutputStream_nombre_ring_tone = openFileOutput(file_nombre_ringtone, MODE_PRIVATE);\n fileOutputStream_nombre_ring_tone.write(nombre_ringtone_val.getBytes());\n\n\n fileOutputStream_nombre_ring_tone.close();\n\n fileOutputStream_ring_tone.close();\n\n\n fileOutputStream_sonidotipo.close();\n\n fileOutputStream_notificar.close();\n\n fileOutputStream_vibrar.close();\n\n fileOutputStream_sonido.close();\n\n // fileOutputStream.close();\n // Toast.makeText(getApplicationContext(), \"Configurado\", Toast.LENGTH_LONG).show();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static void escribirArchivo(String nombre, String contenido, boolean agregar) {\n\n\t\tFileOutputStream archivo = null;\n\t\tBufferedOutputStream buffer = null;\n\t\tbyte entrada[] = new byte [100];\n\t\tArrayList<String> lista = new ArrayList<String>(5);\n\n\t\ttry {\n\t\t\tarchivo = new FileOutputStream(nombre, agregar);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbuffer = new BufferedOutputStream(archivo);\n\t\t\tbuffer.write(contenido.getBytes());\n\t\t\tbuffer.write(\"\\n\".getBytes());\n\t\t\tbuffer.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\ttry {\n\t\t\t\t\tFileOutputStream fo = new FileOutputStream(JASONFILE);\n\t\t\t\t\tproducts = new ArrayList<Product>();\n\t\t\t\t\tproducts.add(new Product(1, \"电脑\", (float) 8888.88));\n\t\t\t\t\tproducts.add(new Product(2, \"微波炉\", (float) 666.66));\n\t\t\t\t\tproducts.add(new Product(3, \"洗衣机\", (float) 1234.56));\n\t\t\t\t\tWriteJasonStream(fo, products);\n\n\t\t\t\t\tToast.makeText(MainActivity.this, \"写入\" + JASONFILE + \"完毕\",\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t} catch (FileNotFoundException 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\n\t\t\t}",
"public void arquivoSaida() {\r\n\r\n try {\r\n File file = new File(\"arquivoSaida.txt\");\r\n try (FileWriter arquivoSaida = new FileWriter(file, true)) {\r\n arquivoSaida.write(\"Rota do menor caminho entre as cidades escolhidas: \\n\\n\");\r\n Vertice v;\r\n \r\n //Escreve no arquivo a rota de ida de entrega nas cidades\r\n for (int i = 0; i < rota.getLista_de_rota().size() - 1; i++) {\r\n for (int j = 0; j < rota.getLista_de_rota().get(i).size(); j++) {\r\n v = rota.getLista_de_rota().get(i).get(j);\r\n arquivoSaida.write(v.getId() + \"; \");\r\n }\r\n }\r\n \r\n arquivoSaida.write(\"\\n\\nRota do menor caminho de volta: (Considerando que não há mais nenhuma entrega)\\n\\n\");\r\n // pegando a ultima posição da lista geral em que está a lista do menor caminho de volta\r\n int t = rota.getLista_de_rota().size() - 1; \r\n \r\n //Escreve a rota do caminho de volta, verificando a distancia entre a cidade origem e a cidade destino\r\n for (int j = rota.getLista_de_rota().get(t).size() - 1; j >= 0; j--) {\r\n v = (Vertice) rota.getLista_de_rota().get(t).get(j);\r\n arquivoSaida.write(v.getId() + \"; \");\r\n }\r\n arquivoSaida.write(\"Distancia percorrida: \"+rota.getDistancia()+\"\\n\");\r\n arquivoSaida.close();\r\n }\r\n } catch (IOException ex) { //caso nao seja possivel abrir algum dos arquivos\r\n System.out.println(\"Não foi possivel abrir arquivo\");\r\n }\r\n }",
"public void generTirarDados() {\n\r\n\t}",
"public static boolean generarArchivo(Cancion miCancion) throws ArchivosException {\n\t\t\n\t\tString compas = \" \";\n\t\tArrayList<Estrofa> todasLasEstrofas = miCancion.getEstrofas();\n\t\tint linea = 1;\n\t\t\n\t\tString nombre = Utiles.reemplazarEspaciosDeString(miCancion.getNombreArchivo());\n\t\t\n\t\tString sFichero = nombre+Constantes.EXTENSION_ARCHIVO;\n\t\tFile fichero = new File(sFichero);\n\t\t\n\t\twhile(fichero.exists()) {\n\t\t\tnombre = nombre+\"_\";\n\t\t\tsFichero = nombre+Constantes.EXTENSION_ARCHIVO;\n\t\t\tfichero = new File(sFichero);\n\t\t\t\n\t\t}\n\t\t\n\t\tmiCancion.setNombreArchivo(nombre);\n\n\t\t\n\t\tescribirArchivo(miCancion.getNombreArchivo()+Constantes.EXTENSION_ARCHIVO, \"Tempo \" + miCancion.getTempo(), false);\n\t\tescribirArchivo(miCancion.getNombreArchivo()+Constantes.EXTENSION_ARCHIVO, \"\", true);\n\t\t\n\t\tfor (Estrofa est : todasLasEstrofas) {\n\t\t\t\n\t\t\tescribirArchivo(miCancion.getNombreArchivo()+Constantes.EXTENSION_ARCHIVO, \"Groove \" + est.getEstilo(), true);\n\t\t\t\n\t\t\tArrayList<Compas> todosLosCompases = est.getListaDeCompases();\n\t\t\n\t\t\tfor (Compas com : todosLosCompases) {\n\t\t\t\tArrayList<Acorde> todosLosAcordes = com.getAcordes();\n\t\t\t\tcompas = \" \";\n\t\t\t\tfor (Acorde ac : todosLosAcordes) {\n\t\t\t\t\tcompas = compas + \" \" + ac.getNombre();\n\t\t\t\t}\n\t\t\t\tescribirArchivo(miCancion.getNombreArchivo()+Constantes.EXTENSION_ARCHIVO, linea + compas, true);\n\t\t\t\tlinea++;\n\t\t\t}\t\n\t\t}\n\t\t//System.out.println(\"Nuevo archivo generado: \" + miCancion.getNombreArchivo()+Constantes.EXTENSION_ARCHIVO);\n\n\t\treturn crearMIDI(miCancion.getNombreArchivo(), false);\n\t}",
"private String[] concatenaArquivos(File ordem) throws Exception\n\t{\n\t\t// Cria referencia para os arquivos que serao retornados\n\t\t// apos o processamento\n\t\tCollection arquivosAposConcatenacao = new LinkedList();\n\t\t\n\t\t// Busca o objeto VoucherOrdem contendo os dados da ordem\n\t\t// que foram lidos a partir do arquivo cabecalho da ordem\n\t\tArquivoPedidoVoucherParser ordemParser = new ArquivoPedidoVoucherParser();\n\t\tVoucherOrdem ordemVoucher = ordemParser.parse(ordem);\n\t\t\n\t\t// Busca agora todas os nomes de arquivos de caixa\n\t\t// existentes gravados tambem no arquivo cabecalho\n\t\tString arquivosCaixa[] = getNomeArquivosCaixa(ordem);\n\t\tString dirOrigem = getPropriedade(\"ordemVoucher.dirArquivos\");\n\t\t\t\t\n\t\t// Faz a iteracao nos itens da ordem para entao criar um arquivo \n\t\t// para cada item no formato PrintOrder#[NUMORDEM]_[NUMITEM].dat\n\t\t// e para cada item entao identifica quais arquivos serao concatenados\n\t\tint realNumItem \t\t= 1;\n\t\tlong qtdeSomaCartoes \t= 0;\n\t\tboolean deveConcatenar \t= true;\n\t\tfor (Iterator i=ordemVoucher.getItensOrdem().iterator(); i.hasNext();)\n\t\t{\n\t\t\tVoucherOrdemItem itemOrdem = (VoucherOrdemItem)i.next();\n\t\t\t// O numero do item no sistema GPP comeca a partir do numero zero (0)\n\t\t\t// portanto como na Tecnomen e criado com item 1 o valor e decrescido de um\n\t\t\tlong qtdCartoes = procBatchPOA.getQtdeCartoes(ordemVoucher.getNumeroOrdem(),realNumItem-1);//(int)itemOrdem.getNumItem()-1);\n\t\t\tqtdeSomaCartoes += itemOrdem.getQtdeCartoes();\n\t\t\tif (qtdCartoes != 0 && deveConcatenar)\n\t\t\t{\n\t\t\t\titemOrdem.setQtdeCartoes( qtdCartoes );\n\t\t\t\tFile arquivoItem = new File(getNomeArquivoItem(ordem,realNumItem));//itemOrdem.getNumItem()));\n\t\t\t\tFileOutputStream itemStream = new FileOutputStream(arquivoItem);\n\t\t\t\tif (itemStream != null)\n\t\t\t\t{\n\t\t\t\t\t// Identifica quais sao os arquivos que devem ser concatenados\n\t\t\t\t\t// para este item. Para cada arquivo encontrado , este e lido\n\t\t\t\t\t// e entao concatenado ao arquivo do item que foi criado\n\t\t\t\t\tString caixasDoItem[] = getArquivosCaixaPorItem(ordemVoucher,itemOrdem,arquivosCaixa);\n\t\t\t\t\t// Atualiza informacoes de numeracao de lote do pedido no GPP\n\t\t\t\t\tatualizaNumeracaoLote(ordemVoucher.getNumeroOrdem(),realNumItem,caixasDoItem);//itemOrdem.getNumItem(),caixasDoItem);\n\t\t\t\t\tfor (int j=0; j < caixasDoItem.length; j++)\n\t\t\t\t\t\titemStream.write(getStreamArquivo(new File(dirOrigem+\n\t\t\t\t\t\t System.getProperty(\"file.separator\")+\n\t\t\t\t\t\t caixasDoItem[j])));\n\t\n\t\t\t\t\titemStream.close();\n\t\t\t\t\tarquivosAposConcatenacao.add(arquivoItem.getAbsolutePath());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\titemOrdem.setQtdeCartoes(0);\n\n\t\t\tdeveConcatenar = (qtdCartoes == qtdeSomaCartoes);\n\t\t\tif (qtdCartoes == qtdeSomaCartoes)\n\t\t\t{\n\t\t\t\tqtdeSomaCartoes = 0;\n\t\t\t\trealNumItem++;\n\t\t\t}\n\t\t}\n\t\treturn (String[])arquivosAposConcatenacao.toArray(new String[0]);\n\t}",
"private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.AddFilesToUser param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.AddFilesToUser.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }",
"public byte[] createTransferFile(Long nucletId, TransferOption.Map exportOptions) throws NuclosBusinessException {\n\t\tif (nucletId == null)\n\t\t\texportOptions.put(TransferOption.IS_NUCLOS_INSTANCE, null);\n\t\t\n\t\tcleanupDeadContent();\n\n\t\tLOG.info(\"CREATE Transfer (nucletId=\" + nucletId + \")\");\n\t\tLockedTabProgressNotifier jmsNotifier = new LockedTabProgressNotifier(Transfer.TOPIC_CORRELATIONID_CREATE);\n\t\tjmsNotifier.notify(\"read nuclet contents\", 0);\n\n\t\tLOG.info(\"get nuclet content instances\");\n\t\tList<INucletContent> \tcontentTypes = getNucletContentInstances(exportOptions, Process.CREATE);\n\t\tSet<Long> \t\t\t\texistingNucletIds = getExistingNucletIds(nucletId);\n\t\tList<EntityObjectVO> \tuidObjects = getUIDObjects(existingNucletIds, contentTypes, exportOptions);\n\t\tByteArrayOutputStream \tbout = new ByteArrayOutputStream(16348);\n\t\tZipOutput \t\t\t\tzout = new ZipOutput(bout);\n\t\tString\t\t\t\t\tnucletUID = null;\n\n\t\tfinal String writeContent = \"write nuclet contents to file\";\n\t\tdouble progressPerContent = 80/contentTypes.size();\n\t\tdouble progressCurrent = 10;\n\t\tfinal Map<NuclosEntity, List<EntityObjectVO>> result = new HashMap<NuclosEntity, List<EntityObjectVO>>();\n\t\tfor (INucletContent nc : contentTypes) {\n\t\t\tLOG.info(\"read content for nuclos entity: \" + nc.getEntity());\n\t\t\tjmsNotifier.notify(writeContent, Double.valueOf(progressCurrent).intValue());\n\t\t\tprogressCurrent += progressPerContent;\n\n\t\t\tList<EntityObjectVO> ncObjects = nc.getNcObjects(existingNucletIds, exportOptions);\n\t\t\tupdateUIDObjectVersion(nc, ncObjects, uidObjects);\n\t\t\t\n\t\t\tLOG.info(\"created missing UIDs for \" + nc.getEntity() + \": \" + createMissingUIDs(ncObjects, uidObjects));\n\t\t\tLOG.info(\"add content to zip\");\n//\t\t\tzout.addEntry(nc.getEntity().getEntityName()+TABLE_ENTRY_SUFFIX, toXML(ncObjects));\n\t\t\tresult.put(nc.getEntity(), ncObjects);\n\t\t}\n\t\tfor (INucletContent nc : contentTypes) {\n\t\t\tif (nc instanceof INucletInterface) {\n\t\t\t\t((INucletInterface) nc).addNucletInterfaces(result, uidObjects);\n\t\t\t}\n\t\t}\n\t\tfor (NuclosEntity ne : result.keySet()) {\n\t\t\tzout.addEntry(ne.getEntityName()+TABLE_ENTRY_SUFFIX, toXML(result.get(ne)));\n\t\t}\n\n\t\tjmsNotifier.notify(\"save file\", 90);\n\n\t\tLOG.info(\"find nuclet UID\");\n\t\tfor (EntityObjectVO uidObject : uidObjects) {\n\t\t\tif (LangUtils.equals(uidObject.getField(\"nuclosentity\", String.class), NuclosEntity.NUCLET.getEntityName()) &&\n\t\t\t\tLangUtils.equals(uidObject.getField(\"objectid\", Long.class), nucletId))\n\t\t\t\tnucletUID = uidObject.getField(\"uid\", String.class);\n\t\t}\n\t\tif (nucletId != null && nucletUID == null) {\n\t\t\tthrow new NuclosFatalException(\"Nuclet UID not found/created\");\n\t\t}\n\n\t\tcleanupUIDs();\n\n\t\tLOG.info(\"add root to zip\");\n\t\tzout.addEntry(ROOT_ENTRY_NAME, toXML(buildMetaDataRoot(nucletUID, exportOptions)));\n\t\tLOG.info(\"add UIDs to zip\");\n\t\tzout.addEntry(UID, toXML(uidObjects));\n\n\t\tzout.close();\n\t\tbyte[] bytes = bout.toByteArray();\n\t\tjmsNotifier.notify(\"finish\", 100);\n\t\treturn bytes;\n\t}",
"public void devolverArchivo(ArrayList<Alumno> lista) // Crea archivo de texto con la lista de datos ya ordenada\n {\n try\n {\n PrintWriter print = new PrintWriter(\"Registros Ordenados.txt\");\n for(int k=0; k<100; k++)\n {\n print.println(F0.get(k).getNombre() + \", \" + F0.get(k).getApellido() + \", \" + F0.get(k).getNoCnt());\n }\n print.close();\n }\n catch(Exception ex)\n {\n System.out.println(ex.getMessage());\n }\n }",
"public void dataFileCreate() {\r\n\t\tString COMMA_DELIMITER = \",\";\r\n\t\tString NEW_LINE_SEPERATOR = \"\\n\";\r\n\t\tString FILE_HEADER = \"Title,First Name,Last Name,Email,Phone Number\";\r\n\t\ttry {\r\n\t\t\tList<Customer> dataList = new ArrayList<Customer>();\r\n\t\t\tdataList.add(\r\n\t\t\t\t\tnew Customer(title, customerFirstName, customerLastName, custromerEmailId, customerPhoneNumber));\r\n\r\n\t\t\tFileWriter fileWriter = new FileWriter(\"CustomerDetails.csv\");\r\n\t\t\tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\r\n\t\t\tbufferWriter.append(FILE_HEADER);\r\n\r\n\t\t\tfor (Customer c : dataList) {\r\n\t\t\t\tbufferWriter.write(NEW_LINE_SEPERATOR);\r\n\t\t\t\tbufferWriter.write(c.getTitle());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getFirstName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getLastName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getEmailAddress());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(String.valueOf(c.getPhone()));\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t}\r\n\r\n\t\t\tbufferWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public void crearPrincipal(String nameFile, String fileClases,int tipoClase, Boolean f_gc, Boolean f_nucl, Boolean f_cod, Boolean f_k, int k) throws IOException{\n //Primero leer las clases para agregarlas al final\n ReadClasses c= new ReadClasses();\n classes=c.leer(fileClases, tipoClase);\n cat=c.getCat();\n phylum=c.getPhylum();\n specie= c.getSpecie();\n if (tipoClase==1)\n clasDif=c.getCatDif();\n //clasDif=c.getCat();\n else\n if (tipoClase==2)\n clasDif=c.getPhylumDif();\n //clasDif=c.getPhylum();\n else\n clasDif=c.getSpecieDif();\n id=c.getId();\n if (f_cod)\n crearCodon();\n if (f_k)\n crearKmers4();\n //Crear encabezado de Arff\n BufferedWriter bufferArff =crearEncArff(nameFile,f_gc, f_nucl,f_cod,f_k,k, tipoClase);\n //Adicionar los datos a la base (mismo orden)\n leerFichero(nameFile, bufferArff,f_gc, f_nucl, f_cod, f_k, k, tipoClase);\n\n }",
"private static void write(Client client, String user, String filename,String fileContent) throws SystemException, TException {\n\t\t\n\t\t\n\t\tString keyString = user + \":\" + filename;\n\t\tString key = sha_256(keyString);\n\t\t\n\t\tSystem.out.println(\"Client Locating server\");\n\t\tNodeID succNode = client.findSucc(key);\n\t\tString predIP = succNode.ip;\n\t\tint predPort = succNode.port;\n\t\tSystem.out.println(\"Client located server : \"+predPort);\n\n\t\ttry {\n\t\t\tTSocket transport = new TSocket(predIP, predPort);\n\t\t\ttransport.open();\n\t\t\tTBinaryProtocol protocol = new TBinaryProtocol(transport);\n\t\t\tClient client1 = new chord_auto_generated.FileStore.Client(protocol);\n\t\t\tSystem.out.println(\"Writting file location : \" + predPort);\n\t\t\tRFile rFile = new RFile();\n\t\t\t// rFile.setContent(\"More Updated Files content\");\n\t\t\trFile.setContent(fileContent);\n\t\t\tRFileMetadata localMeta = new RFileMetadata();\n\t\t\tlocalMeta.setFilename(filename);\n\t\t\tlocalMeta.setOwner(user); // Is this the client or server probably Client\n\t\t\trFile.setMeta(localMeta);\n\t\t\tSystem.out.println(\"Writting file Starting----------\");\n\t\t\tclient1.writeFile(rFile);\n\t\t\tSystem.out.println(\"Writting file Done----------\");\n\t\t\ttransport.close();\n\t\t} catch (TTransportException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"public static synchronized void guardarResultados(int coste1, int coste2) throws IOException{\n //Guardamos los datos en un fichero de texto\n FileWriter fichero = null;\n try{\n fichero = new FileWriter(\"src/Archivos/coste1.txt\", true); \n fichero.write(coste1+\"\\n\");\t\t\n fichero.close();\n \n \n fichero = new FileWriter(\"src/Archivos/coste2.txt\",true); \n fichero.write(coste2+\"\\n\");\t\t\n fichero.close();\n \n fichero = new FileWriter(\"src/Archivos/diferencias.txt\",true); \n fichero.write((coste2-coste1)+\"\\n\");\t\t\n fichero.close();\n \n } catch (Exception ex) {\n System.out.println(\"Mensaje de la excepción: \" + ex.getMessage());\n\t} \n }",
"public void adicionarServicos() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Não existem hospedes cadastrados!\\n\");\n } else {\n\n System.err.println(\"Digite o cpf do hospede que deseja adicionar servicos:\");\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o indice i do objeo pessoa, pega o id da pessoa e compara com o id da pessoa digitada\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se a situaçao do contrato ainda está aberta para esse hospede\n\n System.err.println(\"O que deseja editar do contrato\\n\");\n //adicionar carro, trocar de quarto, adicionar conta de restaurante,\n //encerrar contrato\n\n System.err.println(\"Adicionar carro (1):\\nAdicionar restaurante (2):\\n\"\n + \"Adicionar horas de BabySitter (3):\\nAdicionar quarto(4):\\n\");\n int caso = verifica();\n switch (caso) {\n case 1://carro\n if (carrosCadastrados.isEmpty()) {\n System.err.println(\"Nao existem carros cadastrados!\\n\");\n } else {\n listarCarros();\n System.err.println(\"Digite o id do carro que deseja contratar:\\n\");\n int idCarro = verifica();\n\n for (int j = 0; j < carrosCadastrados.size(); j++) {\n if (carrosCadastrados.get(j).getId() == idCarro) {\n if (carrosCadastrados.get(j).isEstado()) {\n System.err.println(\"Esse carro já está cadastrado.\\n\");\n } else {\n hospedesCadastrados.get(i).getContrato().setCarros(carrosCadastrados.get(j));\n carrosCadastrados.get(j).setEstado(true);\n }\n }\n }\n }\n break;\n\n case 2://restaurante\n System.err.println(\"Digite o quanto deseja gastar no restaurente\\n\");\n double valorRestaurante = ler.nextDouble();\n// idd();\n// int idRestaurante = id;\n// Restaurante restaurante = new Restaurante(idRestaurante, valorRestaurante);\n hospedesCadastrados.get(i).getContrato().setValorRestaurante(valorRestaurante);\n break;\n case 3://babysitter\n System.err.println(\"Digite o tempo gasto no BabySytter em horas\\n\");\n double tempoBaby = ler.nextDouble();\n hospedesCadastrados.get(i).getContrato().setHorasBaby(tempoBaby);\n break;\n case 4://quartos\n\n if (quartosCadastrados.isEmpty()) {\n\n } else {\n System.err.println(\"Digite o numero do quarto que deseja contratar:\\n\");\n listarQuartos();\n int num = verifica();\n System.err.println(\"Digite a quantidade de dis que pretente alugar o quarto:\\n\");\n int dias = verifica();\n for (int j = 0; j < quartosCadastrados.size(); j++) {\n if (num == quartosCadastrados.get(j).getNumero()) {//verifica se o numero digitado é igual ao numero do quarto do laco\n if (quartosCadastrados.get(j).getEstado()) {//verifica se o estado do quarto está como true\n System.err.println(\"Este quarto já está cadastrado em um contrato\");\n } else {//se o estado tiver em true é porque o quarto ja está cadastrado\n\n hospedesCadastrados.get(i).getContrato().setQuartos(quartosCadastrados.get(j));\n hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().get(j).setDias(dias);\n hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().get(j).setEstado(true);//seta o estado do quarto como ocupado\n System.err.println(\"Quarto cadastrado!\\n\");\n }\n\n }\n\n }\n\n//remove all remove todas as pessoas com tal nome\t\n }\n break;\n\n }\n } else {\n System.err.println(\"O contrato deste Hospede encontra-se encerrado\");\n break;\n }\n }\n }\n }\n }",
"public void writeCustomerReceipt(ArrayList<CustomerShoppingCart> products, String firstName, String lastName, int mobile,String deliveryAddressNumber, String deliveryAddress, String email, int age, CustomerShoppingCart items)\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\tPrintWriter out = new PrintWriter(new FileWriter(\"customerReceipt.txt\"));\r\n\t\t\t\r\n\t\t\tdouble totalCost = items.totalCost(products);\r\n\t\t\tdouble discount = items.calculateDiscount(age, totalCost);\r\n\t\t\tdouble totalDiscountedCost = totalCost - discount;\r\n\t\t\t\r\n\t\t\tNumberFormat currencyFormat = NumberFormat.getCurrencyInstance();\r\n\t\t\tout.println(\"================================= CUSTOMER RECEIPT ==================================\");\r\n\t\t\tout.println(\"Customer Name: \" +firstName + \" \" +lastName);\r\n\t\t\tout.println(\"Email: \" +email);\r\n\t\t\tout.println(\"Mobile Number: \"+mobile);\r\n\t\t\tout.println(\"Delivery Address: \" +deliveryAddressNumber+ \" \" + deliveryAddress);\r\n\t\t\tout.println(\"Age: \" +age);\r\n\t\t\tout.println(\"-------------------------------------------------------------------------------------\");\r\n\t\t\tout.println(\" Items you have purchased \");\r\n\t\t\tout.println(\"-------------------------------------------------------------------------------------\");\r\n\t\t\tfor (CustomerShoppingCart pItems: products)\r\n\t\t\t{\r\n\t\t\t\tout.println(pItems);\r\n\t\t\t}\r\n\t\t\tout.println(\"-------------------------------------------------------------------------------------\");\r\n\t\t\tout.println(\"Customers over 50 receive a 20% discount, customers under 20 receive a 15% discount\");\r\n\t\t\tout.println(\" \");\r\n\t\t\tout.println(\"Total cost excluding discount: \" +currencyFormat.format(totalCost));\r\n\t\t\tout.println(\"Discount received: \" +currencyFormat.format(discount));\r\n\t\t\tout.println(\" \");\r\n\t\t\tout.println(\"Total cost: \" +currencyFormat.format(totalDiscountedCost));\r\n\t\t\tout.println(\"=====================================================================================\\n\");\r\n\t\t\tout.close();\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error: Cannot open file for writing\");\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error: Cannot write to file\");\r\n\t\t}\r\n\t}",
"public static void inicializaMedicosText() {\n \n try (BufferedWriter bw = new BufferedWriter(new FileWriter(\"medicos.txt\"))) {\n for (Medico m : medicos) {\n if(m.getPuesto()==null)\n bw.write(m.getCedula() + \",\" + m.getNombres() + \",\" + m.getApellidos() + \",\" + m.getEdad() + \",0\");\n else\n bw.write(m.getCedula() + \",\" + m.getNombres() + \",\" + m.getApellidos() + \",\" + m.getEdad() + \",\" + m.getPuesto().getId());\n bw.newLine();\n }\n }\n catch (IOException ex) {\n Logger.getLogger(StageAdmin.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public static void main(String [ ] args){\n\t\t Fecha Hoy = new Fecha(12,12,2020);\r\n\t\t ArrayList<Cuenta> cuentas = new ArrayList<Cuenta>();\r\n\t\t \r\n\t\t Cuenta c0 = new CtaAhorros(10000,10);\r\n\t\t Cuenta c1 = new CtaCheques(256070,0);\r\n\t\t Cuenta c2 = new CtaCredito(13245,100);\r\n\t\t Cuenta c3 = new CtaCheques(765,20);\r\n\t\t Cuenta c4 = new CtaAhorros(9000,20);\r\n\t\t Cuenta c5 = new CtaAhorros(2300,10);\r\n\t\t Cuenta c6 = new CtaCredito(25000,12);\r\n\t\t \r\n\t\t cuentas.add(c0);\r\n\t\t cuentas.add(c1);\r\n\t\t cuentas.add(c2);\r\n\t\t cuentas.add(c3);\r\n\t\t cuentas.add(c4);\r\n\t\t cuentas.add(c5);\r\n\t\t \r\n\t\t Cliente C1=new Cliente(\"QUIJOTE\",cuentas,\"QX400\");\r\n\t\t Hoy.AvanzarTiempo(11,1,0);\r\n\t\t \r\n\t\t C1.depositar(1,1200, Hoy);\r\n\t\t C1.retirar(2,1100, Hoy);\r\n\t\t System.out.println(\"saldo cuenta 3:\"+C1.consultar(3,Hoy));\r\n\t\t C1.depositar(4,600, Hoy);\r\n\t\t \r\n\t\t //C1.reportarEdosCtas();\r\n\t\t \r\n\t\t }",
"public void addFilesToUser(\r\n registry.ClientRegistryStub.AddFilesToUser addFilesToUser3\r\n\r\n ) throws java.rmi.RemoteException\r\n \r\n \r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n\r\n \r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[2].getName());\r\n _operationClient.getOptions().setAction(\"urn:addFilesToUser\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n addFilesToUser3,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://registry\",\r\n \"addFilesToUser\")),new javax.xml.namespace.QName(\"http://registry\",\r\n \"addFilesToUser\"));\r\n \r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.execute(true);\r\n\r\n \r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n \r\n return;\r\n }",
"@Override\r\n\tpublic void addIceCreamProduct() {\n\t\ttry {\r\n\t\t\toos = new ObjectOutputStream(new FileOutputStream(\"iceCream.txt\"));\r\n\t\t\t\t\tint flag = 1;\r\n\t\t\twhile (flag == 1) {\r\n\t\t\t\tSystem.out.println(\"Enter your iceid\");\r\n\t\t\t\tint iceId = sc.nextInt();\r\n\t\t\t\tSystem.out.println(\"Enter your icename\");\r\n\t\t\t\tString iceName = sc.next();\r\n\t\t\t\tSystem.out.println(\"Enter your iceprice\");\r\n\t\t\t\tdouble icePrice = sc.nextDouble();\r\n\t\t\t\tSystem.out.println(\"enter icequantity\");\r\n\t\t\t\tint iceqty = sc.nextInt();\r\n\t\t\t\tIceCreamBean icb = new IceCreamBean(iceId, iceName, icePrice,\r\n\t\t\t\t\t\ticeqty);\r\n\t\t\t\ticeCream.add(icb);\r\n\t\t\t\tSystem.out\r\n\t\t\t\t\t\t.println(\"Do you want to add one more record press 1 otherwise any number\");\r\n\t\t\t\tflag = sc.nextInt();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\toos.writeObject(iceCream);\r\n\t\t\t\toos.flush();\r\n\t\t\t\toos.close();\r\n\t\t\t\tSystem.out.println(\"----IceCreams succesfully updated\");\r\n\t\t} catch (IOException e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n\t}",
"public static void WriteFile(){\n String[] linha;\n FileWriter writer;\n try{\n writer = new FileWriter(logscommissions, true);\n PrintWriter printer = new PrintWriter(writer);\n linha = ManageCommissionerList.ReturnsCommissionerListInString(ManageCommissionerList.comms.size()-1);\n for(int i=0;i<19;i++){\n printer.append(linha[i]+ \"\\n\");\n }\n printer.close();\n }catch(Exception e){\n e.printStackTrace();\n System.out.println(\"Unable to read file\\n\");\n }\n try{\n Commissions temp = ManageCommissionerList.comms.get(ManageCommissionerList.comms.size()-1);\n BufferedImage img = temp.GetWipImage();\n File fl = new File(\"wipimages/wip\" + temp.GetCommissionTitle() + temp.GetUniqueID() + \".jpg\");\n ImageIO.write(img, \"jpg\", fl);\n }catch (Exception e){\n e.printStackTrace();\n System.out.printf(\"Failure to write image file\");\n }\n \n }",
"private static void createFile(String fileType) throws Exception {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"yyyy-MM-dd-HH-mm-ss\");\n LocalDateTime now = LocalDateTime.now();\n File xmlFile = new File(System.getProperty(\"user.dir\")+\"/data/saved/\"+dtf.format(now) + fileType + \".xml\");\n OutputFormat out = new OutputFormat();\n out.setIndent(5);\n FileOutputStream fos = new FileOutputStream(xmlFile);\n XML11Serializer serializer = new XML11Serializer(fos, out);\n serializer.serialize(xmlDoc);\n\n }",
"private void saveResourceFile()\r\n\t{\t\r\n\t\tFile file = null;\r\n\t\tFileWriter fw = null;\r\n\t\t//File complete = null;//New file for the completed list\r\n\t\t//FileWriter fw2 = null;//Can't use the same filewriter to do both the end task and the complted products.\r\n\t\ttry{\r\n\t\t\tfile = new File(outFileName);\r\n\t\t\tfile.createNewFile();\r\n\t\t\tfw = new FileWriter(outFileName,true);\r\n\t\t\tfor(FactoryObject object : mFObjects)\r\n\t\t\t{\r\n\t\t\t\tif(object instanceof FactoryReporter) {\r\n\t\t\t\t\t((FactoryReporter)object).report(fw);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.out.println(ioe.getMessage());\r\n\t\t\tif(file != null) {\r\n\t\t\t\tfile.delete();\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tif(fw != null) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tfw.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tSystem.out.println(\"Failed to close the filewriter!\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public String asignarCECartaAdhesion() throws JDBCException, Exception{\n\t\tString ext = \"\", nombreArchivo=\"\";\n\t\ttry{\n\t\t\t//Recupera los datos de la solicitud de inscripcion\n\t\t\tList<SolicitudInscripcion> lstSI = iDAO.consultaSolicitudInscripcion(0, \"\", idSI);\n\t\t\tSolicitudInscripcion solIns = lstSI.get(0);\n\t\t\tfolioCartaAdhesion = solIns.getFolioCartaAdhesion();\n\t\t\t//Recupera ruta documentos de programa\n\t\t\tprograma = cDAO.consultaPrograma(solIns.getIdPrograma()).get(0);\n\t\t\tidCriterioPago = programa.getCriterioPago();\n\t\t\tString rutaSolicitud = programa.getRutaDocumentos()+\"solicitudes/\"+solIns.getIdSI()+\"/\";\n\t\t\t//Guarda el archivo de la carta de adhesion\n\t\t\tif(docCartaAFileName !=null && docCartaAFileName !=\"\"){\n\t\t\t\text = docCartaAFileName.toLowerCase().substring(docCartaAFileName.lastIndexOf(\".\") );\n\t\t\t\tnombreArchivo = \"CA\"+new java.text.SimpleDateFormat(\"yyyyMMddHHmm\").format(new Date() )+ext;\n\t\t\t\tsolIns.setNomArchivoCA(nombreArchivo);\n\t\t\t\tUtilerias.cargarArchivo(rutaSolicitud, nombreArchivo, docCartaA);\n\t\t\t\tsolIns.setFechaFirmaCa(fechaFirmaCA);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\t//Guarda el archivo de legibilidad\n\t\t\tif(docOLFileName!=null && docOLFileName != \"\"){\n\t\t\t\text = docOLFileName.toLowerCase().substring(docOLFileName.lastIndexOf(\".\") );\n\t\t\t\tnombreArchivo = \"OL\"+new java.text.SimpleDateFormat(\"yyyyMMddHHmm\").format(new Date() )+ext;\n\t\t\t\tsolIns.setNomArchivoLeg(nombreArchivo);\n\t\t\t\tsolIns.setFechaDocLeg(fechaDocLeg);\n\t\t\t\tsolIns.setFechaAcuseLeg(fechaAcuseLeg);\n\t\t\t\tsolIns.setNoOficioLeg(noOficioLeg);\n\t\t\t\tsolIns.setEstatus(4);\n\t\t\t\tUtilerias.cargarArchivo(rutaSolicitud, nombreArchivo, docOL);\n\t\t\t}\n\t\t\t\n\t\t\tif(registrar == 0){\n\t\t\t\t//Guardar la carta de adhesion en la tabla correspondiente\n\t\t\t\tCartaAdhesion ca = new CartaAdhesion();\n\t\t\t\tca.setFolioCartaAdhesion(solIns.getFolioCartaAdhesion());\n\t\t\t\tca.setIdSI(idSI.intValue());\n\t\t\t\tca.setIdPrograma(solIns.getIdPrograma());\n\t\t\t\tca.setIdComprador(solIns.getIdComprador());\n\t\t\t\tca.setEstatus(1);\t\n\t\t\t\t//Guardar carta adhesion\n\t\t\t\tcDAO.guardaObjeto(ca);\n\t\t\t\t//Guarda Asignacion cuotas carta adhesion\n\t\t\t\tfor(int i=0; i< capEstado.length; i++){\n\t\t\t\t\tAsignacionCartasAdhesion aca = new AsignacionCartasAdhesion();\n\t\t\t\t\taca.setIdCultivo(capCultivo[i]);\n\t\t\t\t\taca.setIdVariedad(capVariedad[i]);\n\t\t\t\t\taca.setIdEstado(capEstado[i]);\n\t\t\t\t\taca.setFolioCartaAdhesion(folioCartaAdhesion);\n\t\t\t\t\tDetalleAsignacionCartasAdhesion daca = new DetalleAsignacionCartasAdhesion();\n\t\t\t\t\tdaca.setIdCultivo(capCultivo[i]);\n\t\t\t\t\tdaca.setIdVariedad(capVariedad[i]);\n\t\t\t\t\tdaca.setIdEstado(capEstado[i]);\t\t\t\t\t\n\t\t\t\t\tdaca.setFolioCartaAdhesion(folioCartaAdhesion);\n\t\t\t\t\tif(idCriterioPago == 1 || idCriterioPago == 3){\n\t\t\t\t\t\taca.setVolumen(capVolumen[i]);\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tdaca.setVolumen(capVolumen[i]);\t\t\t\t\t\t\t\t\n\t\t\t\t\t}else if(idCriterioPago == 2){\n\t\t\t\t\t\taca.setImporte(capImporte[i]);\t\t\t\t\t\n\t\t\t\t\t\tdaca.setImporte(capImporte[i]);\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tdaca.setTipo(1);//Normal\n\t\t\t\t\tcDAO.guardaObjeto(aca);\n\t\t\t\t\tcDAO.guardaObjeto(daca);\t\t\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t\t//Guardar la carta adhesion en tabla de programa_comprador\n\t\t\t\tProgramaComprador pc = new ProgramaComprador();\n\t\t\t\tpc.setIdPrograma(solIns.getIdPrograma());\n\t\t\t\tpc.setIdComprador(solIns.getIdComprador());\n\t\t\t\tpc.setNoCarta(solIns.getFolioCartaAdhesion());\n\t\t\t\tcDAO.guardaObjeto(pc);\t\t\n\t\t\t}\n\t\t\tSystem.out.println(\"complementoPorampliacionChk \"+complementoPorampliacionChk);\n\t\t\t//Guarda Complemento de la CARTA ADHESION\n\t\t\tif(complementoPorampliacionChk){\n\t\t\t\t//GUARDA LOS DATOS DE FECHA Y ARCHIVO DEL COMPLEMENTO DE LA CARTA ADHESION\n\t\t\t\tsolIns.setFechaFirmaCAComplemento(fechaFirmaCAComplemento);\n\t\t\t\t//Carga archivo del complemento de la carta de adhesion\n\t\t\t\text = docAmpliacionCAFileName.toLowerCase().substring(docAmpliacionCAFileName.lastIndexOf(\".\") );\n\t\t\t\tnombreArchivo = \"CCA\"+new java.text.SimpleDateFormat(\"yyyyMMddHHmm\").format(new Date() )+ext;\n\t\t\t\tsolIns.setNomArchivoCACom(nombreArchivo);\n\t\t\t\tUtilerias.cargarArchivo(rutaSolicitud, nombreArchivo, docAmpliacionCA);\n\t\t\t\tfor(int i=0; i< capEstado.length; i++){\n\t\t\t\t\t//Recupera el registro de la asignacion de la carta de adhesion\n\t\t\t\t\tList<AsignacionCartasAdhesion> lstAca = iDAO.consultaAsignacionCartasAdhesion(capEstado[i], capCultivo[i], capVariedad[i], folioCartaAdhesion);\n\t\t\t\t\t//Verifica si el incremento es un mismo EDO, CULTIVO y VARIEDAD\n\t\t\t\t\tif(lstAca.size()>0){\n\t\t\t\t\t\tAsignacionCartasAdhesion aca = lstAca.get(0);\n\t\t\t\t\t\tif(idCriterioPago == 1 || idCriterioPago == 3){\n\t\t\t\t\t\t\taca.setVolumen(capVolumen[i]+aca.getVolumen());\n\t\t\t\t\t\t}else if(idCriterioPago==2){\n\t\t\t\t\t\t\taca.setImporte(capImporte[i]+aca.getImporte());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Actualiza volumen o importe del registro\n\t\t\t\t\t\tcDAO.guardaObjeto(aca);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t//Insertar registro en AsignacionCartasAdhesion\n\t\t\t\t\t\tAsignacionCartasAdhesion aca = new AsignacionCartasAdhesion();\n\t\t\t\t\t\taca.setFolioCartaAdhesion(folioCartaAdhesion);\n\t\t\t\t\t\taca.setIdEstado(capEstado[i]);\n\t\t\t\t\t\taca.setIdCultivo(capCultivo[i]);\n\t\t\t\t\t\taca.setIdVariedad(capVariedad[i]);\n\t\t\t\t\t\tif(idCriterioPago == 1 || idCriterioPago == 3){\n\t\t\t\t\t\t\taca.setVolumen(capVolumen[i]);\n\t\t\t\t\t\t}else if(idCriterioPago==2){\t\t\t\t\t\t\n\t\t\t\t\t\t\taca.setImporte(capImporte[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcDAO.guardaObjeto(aca);\n\t\t\t\t\t}\n\t\t\t\t\tDetalleAsignacionCartasAdhesion daca = new DetalleAsignacionCartasAdhesion();\n\t\t\t\t\tdaca.setFolioCartaAdhesion(folioCartaAdhesion);\n\t\t\t\t\tdaca.setIdEstado(capEstado[i]);\n\t\t\t\t\tdaca.setIdCultivo(capCultivo[i]);\n\t\t\t\t\tdaca.setIdVariedad(capVariedad[i]);\n\t\t\t\t\tdaca.setTipo(2); //Complemento\n\t\t\t\t\tif(idCriterioPago == 1 || idCriterioPago == 3){\n\t\t\t\t\t\tdaca.setVolumen(capVolumen[i]);\n\t\t\t\t\t}else if(idCriterioPago==2){\t\t\t\t\t\t\n\t\t\t\t\t\tdaca.setImporte(capImporte[i]);\n\t\t\t\t\t}\n\t\t\t\t\t//Inserta nuevo registro en la tabla de DetalleAsignacionCartasAdhesion\n\t\t\t\t\tcDAO.guardaObjeto(daca);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(registrar==3 || complementoPorampliacionChk){\n\t\t\t\tcDAO.guardaObjeto(solIns);\n\t\t\t\tcomplementoPorampliacionChk = false;\n\t\t\t}else{\n\t\t\t\tregistrar = 2; //para solo consulta en el jsp\n\t\t\t}\t\t\n\t\t\trecuperaCuotasInicEsquema();\t\n\t\t\tmsjOk = \"Se guardó satisfactoriamente el registro\";\n\t\t\t\n\t\t}catch(JDBCException e){\n\t\t\te.printStackTrace();\n\t\t\tregistrar=1;\n\t\t\trecuperaCuotasInicEsquema();\t\n\t\t\tAppLogger.error(\"errores\",\"Ocurrio un error al guardar la asignacion de carta de adhesion debido a:\"+e.getCause());\n\t\t\taddActionError(\"Ocurrio un error inesperado, favor de reportar al administrador\");\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tregistrar=1;\n\t\t\trecuperaCuotasInicEsquema();\t\n\t\t\tAppLogger.error(\"errores\",\"Ocurrio un error al guardar la asignacion de carta de adhesion debido a:\"+e.getCause());\n\t\t\taddActionError(\"Ocurrio un error inesperado, favor de reportar al administrador\");\n\t\t}\n\t\t\n\t\treturn SUCCESS;\n\t}",
"public void nuevoReporteProductos(ArrayList<Producto> Datos) throws IOException {\n Document documento = null;\r\n try {\r\n //Direccion root\r\n FileOutputStream ficheroPdf = new FileOutputStream(\"C:\\\\Users\\\\panle\\\\Documents\\\\ReporteProductos.pdf\");\r\n //FileOutputStream ficheroPdf = new FileOutputStream(\"user.dir/tmp\", \"ReporteProductos.pdf\");\r\n //File tempfile = new File(\"user.dir/tmp\", \"tempfile.txt\"); \r\n documento = new Document();\r\n // Se asocia el documento al OutputStream y se indica que el espaciado entre\r\n // lineas sera de 20. Esta llamada debe hacerse antes de abrir el documento\r\n PdfWriter.getInstance(documento, ficheroPdf).setInitialLeading(20);\r\n\r\n // Se abre el documento\r\n documento.open();\r\n documento.add(new Paragraph(\"REPORTE PRODUCTOS\",\r\n FontFactory.getFont(\"ARIAL\", // fuente\r\n 16, // tamaño\r\n Font.ITALIC, // estilo\r\n BaseColor.BLACK))); // color\r\n\r\n PdfPTable tabla = new PdfPTable(3);//#campos(columnas) para la tabla\r\n Font font = new Font(FontFamily.COURIER, 6, Font.BOLD, BaseColor.BLACK);\r\n PdfPCell cell = new PdfPCell(new Phrase(\"Celdas\", font));\r\n\r\n documento.add(new Paragraph(\"\\n\"));\r\n\r\n Image img = Image.getInstance(\"C:\\\\Users\\\\logo.png\");\r\n documento.add(img);\r\n documento.add(new Paragraph(\"\\n\"));\r\n\r\n int conta = 0;\r\n\r\n cell.setBorder(Rectangle.TITLE);\r\n tabla.addCell(\"DESCRIPCION\");\r\n tabla.addCell(\"REFERENCIA\");\r\n tabla.addCell(\"TIPO\");\r\n\r\n while (conta < Datos.size()) {\r\n cell.setBorder(Rectangle.NO_BORDER);\r\n tabla.addCell(Datos.get(conta).getDESCRIPCION());\r\n tabla.addCell(Datos.get(conta).getREFERENCIA());\r\n tabla.addCell(Datos.get(conta).getTIPO());\r\n conta++;\r\n }\r\n\r\n documento.add(tabla);\r\n documento.close();\r\n\r\n } catch (FileNotFoundException | DocumentException e) {\r\n System.out.println(\"Error al generar Reporte Productos, por:\");\r\n e.printStackTrace();\r\n }\r\n }",
"public void generarReporteTipoDireccions(String sAccionBusqueda,List<TipoDireccion> tipodireccionsParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoDireccion\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDireccionMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoDireccionMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDireccion\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Direcciones\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoDireccionConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(Direccion.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoDireccionLogic tipodireccionLogicAuxiliar=new TipoDireccionLogic();\r\n\t\t\t\t\ttipodireccionLogicAuxiliar.setDatosCliente(tipodireccionLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipodireccionLogicAuxiliar.setTipoDireccions(tipodireccionsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodireccionLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoDireccionWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodireccionsParaReportes=tipodireccionLogicAuxiliar.getTipoDireccions();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipodireccionLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoDireccion tipodireccion:tipodireccionsParaReportes) {\r\n\t\t\t\t\t//\ttipodireccionLogic.deepLoad(tipodireccion, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipodireccionLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipodireccionLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDireccion = AuxiliarReportes.class.getResourceAsStream(\"DireccionDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_direccion\", reportFileDireccion);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoDireccion=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoDireccionConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoDireccionConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoDireccion=new JRBeanArrayDataSource(TipoDireccionJInternalFrame.TraerTipoDireccionBeans(tipodireccionsParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoDireccion);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoDireccionConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoDireccionConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoDireccionBean.TraerTipoDireccionBeans(tipodireccionsParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoDireccionActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoDireccions(sAccionBusqueda,sTipoArchivoReporte,tipodireccionsParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"void generarArchivosDePueba(Integer parametro, Integer numeroRegistros) throws SIATException;",
"private String insertarCartaNaturalResources() {\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 0,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 5,\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 CATMFGDWInvoicePush_FlatFile(){\n\n}",
"public void generarReporteTipoDetalleMovimientoInventarios(String sAccionBusqueda,List<TipoDetalleMovimientoInventario> tipodetallemovimientoinventariosParaReportes) throws Exception {\n\t\tLong iIdUsuarioSesion=0L;\t\r\n\t\t\r\n\t\t\r\n\t\tif(usuarioActual==null) {\r\n\t\t\tthis.usuarioActual=new Usuario();\r\n\t\t}\r\n\t\t\r\n\t\tiIdUsuarioSesion=usuarioActual.getId();\r\n\t\t\r\n\t\tString sPathReportes=\"\";\r\n\t\t\r\n\t\tInputStream reportFile=null;\r\n\t\tInputStream imageFile=null;\r\n\t\t\t\r\n\t\timageFile=AuxiliarImagenes.class.getResourceAsStream(\"LogoReporte.jpg\");\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathReporteFinal=\"\";\r\n\t\t\r\n\t\tif(!esReporteAccionProceso) {\r\n\t\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\t\tif(!this.esReporteDinamico) {\r\n\t\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsPathReporteFinal=this.sPathReporteDinamico;\r\n\t\t\t\t\treportFile = new FileInputStream(sPathReporteFinal);\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventarioMasterRelaciones\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\r\n\t\t\t\t//sPathReportes=reportFile.getPath().replace(\"TipoDetalleMovimientoInventarioMasterRelacionesDesign.jasper\", \"\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsPathReporteFinal=\"TipoDetalleMovimientoInventario\"+this.sTipoReporteExtra+\"Design.jasper\";\r\n\t\t\t\treportFile = AuxiliarReportes.class.getResourceAsStream(sPathReporteFinal);\t\r\n\t\t}\r\n\t\t\r\n\t\tif(reportFile==null) {\r\n\t\t\tthrow new JRRuntimeException(sPathReporteFinal+\" no existe\");\r\n\t\t}\r\n\t\t\r\n\t\tString sUsuario=\"\";\r\n\t\t\r\n\t\tif(usuarioActual!=null) {\r\n\t\t\tsUsuario=usuarioActual.getuser_name();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"usuario\", sUsuario);\r\n\t\t\r\n\t\tparameters.put(\"titulo\", Funciones.GetTituloSistemaReporte(this.parametroGeneralSg,this.moduloActual,this.usuarioActual));\r\n\t\tparameters.put(\"subtitulo\", \"Reporte De Tipo Costos\");\t\t\r\n\t\tparameters.put(\"busquedapor\", TipoDetalleMovimientoInventarioConstantesFunciones.getNombreIndice(sAccionBusqueda)+sDetalleReporte);\r\n\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\tparameters.put(\"SUBREPORT_DIR\", sPathReportes);\r\n\t\t}\r\n\t\t\r\n\t\tparameters.put(\"con_grafico\", this.conGraficoReporte);\r\n\t\t\r\n\t\tJasperReport jasperReport = (JasperReport)JRLoader.loadObject(reportFile);\r\n\t\t\t\t\r\n\t\tthis.cargarDatosCliente();\r\n\t\t\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\t\t\r\n\t\t\r\n\t\tif(this.sTipoReporte.equals(\"RELACIONES\")) {//isEsReporteRelaciones\r\n\t\t\t\r\n\t\t\tclasses.add(new Classe(DetalleMovimientoInventario.class));\r\n\t\t\t\r\n\t\t\t//ARCHITECTURE\r\n\t\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\t\t\r\n\t\t\t\ttry\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tTipoDetalleMovimientoInventarioLogic tipodetallemovimientoinventarioLogicAuxiliar=new TipoDetalleMovimientoInventarioLogic();\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setDatosCliente(tipodetallemovimientoinventarioLogic.getDatosCliente());\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.setTipoDetalleMovimientoInventarios(tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventarioLogicAuxiliar.cargarRelacionesLoteForeignKeyTipoDetalleMovimientoInventarioWithConnection(); //deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes, \"\");\r\n\t\t\t\t\t\r\n\t\t\t\t\ttipodetallemovimientoinventariosParaReportes=tipodetallemovimientoinventarioLogicAuxiliar.getTipoDetalleMovimientoInventarios();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.getNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//for (TipoDetalleMovimientoInventario tipodetallemovimientoinventario:tipodetallemovimientoinventariosParaReportes) {\r\n\t\t\t\t\t//\ttipodetallemovimientoinventarioLogic.deepLoad(tipodetallemovimientoinventario, false, DeepLoadType.INCLUDE, classes);\r\n\t\t\t\t\t//}\t\t\t\t\t\t\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.commitNewConnexionToDeep();\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t\t\r\n\t\t\t\t} finally {\r\n\t\t\t\t\t//tipodetallemovimientoinventarioLogic.closeNewConnexionToDeep();\r\n\t\t\t\t}\r\n\t\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t\t}\r\n\t\t\t//ARCHITECTURE\t\t\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\tInputStream reportFileDetalleMovimientoInventario = AuxiliarReportes.class.getResourceAsStream(\"DetalleMovimientoInventarioDetalleRelacionesDesign.jasper\");\r\n\t\t\tparameters.put(\"subreport_detallemovimientoinventario\", reportFileDetalleMovimientoInventario);\r\n\t\t} else {\r\n\t\t\t//FK DEBERIA TRAERSE DE ANTEMANO\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\t\t\t\t\t\r\n\t\t\r\n\t\t//CLASSES PARA REPORTES OBJETOS RELACIONADOS\r\n\t\tif(!this.sTipoReporte.equals(\"RELACIONES\")) {//!isEsReporteRelaciones\r\n\t\t\tclasses=new ArrayList<Classe>();\r\n\t\t}\r\n\t\t\r\n\t\tJRBeanArrayDataSource jrbeanArrayDataSourceTipoDetalleMovimientoInventario=null;\r\n\t\t\r\n\t\tif(this.sTipoReporteExtra!=null && !this.sTipoReporteExtra.equals(\"\")) {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=this.sTipoReporteExtra;\r\n\t\t} else {\r\n\t\t\tTipoDetalleMovimientoInventarioConstantesFunciones.S_TIPOREPORTE_EXTRA=\"\";\r\n\t\t}\r\n\t\t\r\n\t\tjrbeanArrayDataSourceTipoDetalleMovimientoInventario=new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioJInternalFrame.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes,classes).toArray());\r\n\t\t\r\n\t\tjasperPrint = JasperFillManager.fillReport(jasperReport,parameters,jrbeanArrayDataSourceTipoDetalleMovimientoInventario);\r\n\t\t\t\t\r\n\t\t\r\n\t\tString sPathDest=Constantes.SUNIDAD_ARCHIVOS+\":/\"+Constantes.SCONTEXTSERVER+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.SCHEMA+\"/reportes\";\r\n\t\t\r\n\t\tFile filePathDest = new File(sPathDest);\r\n\t\t\r\n\t\tif(!filePathDest.exists()) {\r\n\t\t\tfilePathDest.mkdirs();\t\t\t\t\r\n\t\t}\r\n\t\t\t\t\r\n\t\tString sDestFileName=sPathDest+\"/\"+TipoDetalleMovimientoInventarioConstantesFunciones.CLASSNAME;\r\n\t\t\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"VISUALIZAR\") {\r\n\t\t\tJasperViewer jasperViewer = new JasperViewer(jasperPrint,false) ;\r\n\t\t\tjasperViewer.setVisible(true) ; \r\n\r\n\t\t} else if(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\") {\t\r\n\t\t\t//JasperFillManager.fillReportToFile(reportFile.getAbsolutePath(),parameters, new JRBeanArrayDataSource(TipoDetalleMovimientoInventarioBean.TraerTipoDetalleMovimientoInventarioBeans(tipodetallemovimientoinventariosParaReportes).toArray()));\r\n\t\t\t\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"HTML\") {\r\n\t\t\t\tsDestFileName+=\".html\";\r\n\t\t\t\tJasperExportManager.exportReportToHtmlFile(jasperPrint,sDestFileName);\r\n\t\t\t\t\t\r\n\t\t\t} else if(this.sTipoArchivoReporte==\"PDF\") {\r\n\t\t\t\tsDestFileName+=\".pdf\";\r\n\t\t\t\tJasperExportManager.exportReportToPdfFile(jasperPrint,sDestFileName);\r\n\t\t\t} else {\r\n\t\t\t\tsDestFileName+=\".xml\";\r\n\t\t\t\tJasperExportManager.exportReportToXmlFile(jasperPrint,sDestFileName, false);\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\r\n\t\t\t\t\r\n\t\t\tif(this.sTipoArchivoReporte==\"WORD\") {\r\n\t\t\t\tsDestFileName+=\".rtf\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRRtfExporter exporter = new JRRtfExporter();\r\n\t\t\r\n\t\t\t\texporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\r\n\t\t\t\texporter.exportReport();\r\n\t\t\t\t\r\n\t\t\t} else\t{\r\n\t\t\t\tsDestFileName+=\".xls\";\r\n\t\t\t\t\t\r\n\t\t\t\tJRXlsExporter exporterXls = new JRXlsExporter();\r\n\t\t\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);\r\n\t\t\t\texporterXls.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, sDestFileName);\r\n\t\t\t\texporterXls.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);\r\n\t\t\r\n\t\t\t\texporterXls.exportReport();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(this.sTipoArchivoReporte==\"EXCEL2\"||this.sTipoArchivoReporte==\"EXCEL2_2\") {\r\n\t\t\t//sDestFileName+=\".xlsx\";\r\n\t\t\t\r\n\t\t\tif(this.sTipoReporte.equals(\"NORMAL\")) {\r\n\t\t\t\tthis.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"FORMULARIO\")){\r\n\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"DINAMICO\")){\r\n\t\t\t\t\r\n\t\t\t\tif(this.sTipoReporteDinamico.equals(\"NORMAL\")) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthis.jButtonGenerarExcelReporteDinamicoTipoDetalleMovimientoInventarioActionPerformed(null);\r\n\t\t\t\t\t//this.generarExcelReporteTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes);\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"FORMULARIO\")){\r\n\t\t\t\t\tthis.generarExcelReporteVerticalTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t\r\n\t\t\t\t} else if(this.sTipoReporteDinamico.equals(\"RELACIONES\")){\r\n\t\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,true);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t} else if(this.sTipoReporte.equals(\"RELACIONES\")){\r\n\t\t\t\tthis.generarExcelReporteRelacionesTipoDetalleMovimientoInventarios(sAccionBusqueda,sTipoArchivoReporte,tipodetallemovimientoinventariosParaReportes,false);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(this.sTipoArchivoReporte==\"HTML\"||this.sTipoArchivoReporte==\"PDF\"||this.sTipoArchivoReporte==\"XML\"||this.sTipoArchivoReporte==\"WORD\"||this.sTipoArchivoReporte==\"EXCEL\") {\t\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(this,\"REPORTE \"+sDestFileName+\" GENERADO SATISFACTORIAMENTE\",\"REPORTES \",JOptionPane.INFORMATION_MESSAGE);\r\n\t\t}\r\n\t}",
"private void enviaCorreosElectronicos(){\r\n try{\r\n for(int i=0;i<arlDocGenDat.size();i++){\r\n strMsjCorEle=\"\";\r\n strMsjCorEle+=\"<HTML> La cotizacion Numero: \"+ objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COD_COT) + \", \";\r\n strMsjCorEle+=\" del cliente: \"+objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_NOM_CLI);\r\n strMsjCorEle+=\" se ha Facturado con Numero: <b>\" + objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_NUM_FAC)+\"</b> \";\r\n strMsjCorEle+=\" </HTML> \";\r\n switch(objUti.getIntValueAt(arlDocGenDat, i,INT_ARL_COD_EMP_COT))\r\n {\r\n case 1: objCorEle.enviarCorreoMasivo(objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COR_ELE_VEN),strTitCorEle + \" TUVAL \",strMsjCorEle ); break; \r\n case 2: objCorEle.enviarCorreoMasivo(objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COR_ELE_VEN),strTitCorEle + \" CASTEK \",strMsjCorEle ); break;\r\n case 4: objCorEle.enviarCorreoMasivo(objUti.getStringValueAt(arlDocGenDat, i,INT_ARL_COR_ELE_VEN),strTitCorEle + \" DIMULTI \",strMsjCorEle ); break; \r\n }\r\n }\r\n }\r\n catch (Exception Evt) {\r\n System.err.println(\"ERROR \" + Evt.toString());\r\n objUti.mostrarMsgErr_F1(jifCnt, Evt);\r\n } \r\n \r\n }"
] | [
"0.67832744",
"0.67348826",
"0.66491383",
"0.6357719",
"0.60647386",
"0.6037003",
"0.59456533",
"0.5943407",
"0.5943201",
"0.59383166",
"0.5891922",
"0.5847844",
"0.58063596",
"0.5804801",
"0.57816154",
"0.5778659",
"0.57681745",
"0.57581234",
"0.5746089",
"0.5718495",
"0.570628",
"0.57008827",
"0.56930536",
"0.56814665",
"0.56747085",
"0.5671669",
"0.5648071",
"0.56208587",
"0.5610591",
"0.5595631",
"0.557577",
"0.55611694",
"0.5559853",
"0.55542994",
"0.5547844",
"0.55434763",
"0.55304825",
"0.55249137",
"0.5514299",
"0.55135584",
"0.55131614",
"0.5509471",
"0.55092543",
"0.5487973",
"0.5483592",
"0.5482523",
"0.5471802",
"0.5464733",
"0.54613054",
"0.5458781",
"0.5453555",
"0.54504704",
"0.5445812",
"0.54428023",
"0.54427373",
"0.54296607",
"0.5417446",
"0.5415804",
"0.5415189",
"0.5414075",
"0.5413181",
"0.54063195",
"0.5404243",
"0.5402748",
"0.5389871",
"0.5385651",
"0.5383833",
"0.5383237",
"0.5381574",
"0.5379178",
"0.53770185",
"0.536935",
"0.53662544",
"0.5366043",
"0.53617173",
"0.53606284",
"0.53571147",
"0.5350491",
"0.53454006",
"0.5344636",
"0.53446287",
"0.5344614",
"0.53388613",
"0.53340167",
"0.5332795",
"0.5328302",
"0.5328132",
"0.5327952",
"0.5320574",
"0.531947",
"0.5318947",
"0.5317837",
"0.53087604",
"0.5308432",
"0.53070897",
"0.53060126",
"0.53052855",
"0.5304476",
"0.53033364",
"0.5302831"
] | 0.7942513 | 0 |
Funcion para leer archivo | static void LeerArchivo(){
//iniciamos el try y si no funciona se hace el catch
try{
//se crea un objeto br con el archivo de txt
BufferedReader br = new BufferedReader(
new FileReader("reporte.txt")
);
String s;
//Mientras haya una linea de texto se imprime
while((s = br.readLine()) != null){
System.out.println(s);
}
//se cierra el archivo de texto
br.close();
} catch(Exception ex){
//si no funciona se imprime el error
System.out.println(ex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Leer() throws FileNotFoundException\n {\n // se crea una nueva ruta en donde se va a ir a leer el archivo\n String ruta = new File(\"datos.txt\").getAbsolutePath(); \n archivo=new File(ruta); \n }",
"String getFile();",
"String getFile();",
"String getFile();",
"public void leeArchivo() throws IOException {\n // defino el objeto de Entrada para tomar datos\n BufferedReader brwEntrada;\n try {\n // creo el objeto de entrada a partir de un archivo de texto\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n } catch (FileNotFoundException e) {\n // si marca error es que el archivo no existia entonces lo creo\n File filPuntos = new File(\"datos.txt\");\n PrintWriter prwSalida = new PrintWriter(filPuntos);\n // le pongo datos ficticios o de default\n // lo cierro para que se grabe lo que meti al archivo\n prwSalida.close();\n // lo vuelvo a abrir porque el objetivo es leer datos\n brwEntrada = new BufferedReader(new FileReader(\"datos.txt\"));\n }\n // con el archivo abierto leo los datos que estan guardados\n brwEntrada.close();\n }",
"public void salvaPartita(String file) {\n\r\n }",
"public void readFile();",
"protected int leerArchivo(File f){\n try{\n fr = new FileReader(f);\n return parse();\n } catch(Exception e){\n System.out.println(\"Error: \" + e);\n }\n return -1;\n }",
"File getFile();",
"File getFile();",
"FileObject getFile();",
"FileObject getFile();",
"String prepareFile();",
"public void abrirArchivo() {\r\n try {\r\n entrada = new Scanner(new File(\"estudiantes.txt\"));\r\n } // fin de try\r\n catch (FileNotFoundException fileNotFoundException) {\r\n System.err.println(\"Error al abrir el archivo.\");\r\n System.exit(1);\r\n } // fin de catch\r\n }",
"void citire(FileReader f);",
"private void grabarArchivo() {\n\t\tPrintWriter salida;\n\t\ttry {\n\t\t\tsalida = new PrintWriter(new FileWriter(super.salida));\n\t\t\tsalida.println(this.aDevolver);\n\t\t\tsalida.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String leerArchivoJSON() {\n String contenido = \"\";\n FileReader entradaBytes;\n try {\n entradaBytes = new FileReader(new File(ruta));\n BufferedReader lector = new BufferedReader(entradaBytes);\n String linea;\n try {\n while ((linea = lector.readLine()) != null) {\n contenido += linea;\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n if (entradaBytes != null) {\n entradaBytes.close();\n }\n if (lector != null) {\n lector.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n } catch (FileNotFoundException ex) {\n Logger.getLogger(GenerarIsla.class.getName()).log(Level.SEVERE, null, ex);\n }\n return contenido;\n }",
"public File getFile();",
"public File getFile();",
"File openFile();",
"private void readSavedFile() {\n\n String[] files = new String[0];\n \n // On récupère la liste des fichiers\n File file = new File(folderName);\n\n // check if the specified pathname is directory first\n if(file.isDirectory()){\n //list all files on directory\n files = file.list();\n }\n\n if (files != null) {\n for(String currentFile : files) {\n Vehicule voiture;\n try {\n FileInputStream fileIn = new FileInputStream(folderName + \"/\" + currentFile);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n voiture = (Vehicule) in.readObject();\n addVoitureToList(voiture);\n in.close();\n fileIn.close();\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException c) {\n System.out.println(\"#Erreur : Impossible de récupérer l'objet \" + currentFile);\n c.printStackTrace();\n return;\n }\n }\n }\n }",
"String getFilePath();",
"public File getFile ();",
"protected abstract void readFile();",
"private void recibirArchivo() {\n \t int tam;\r\n \t try {\r\n \t\t String nombreArchivo = dis.readUTF().toString(); \r\n \t \r\n\t // Obtenemos el tamaño del archivo\r\n\t tam = dis.readInt(); \r\n\t\r\n\t // System.out.println( \"Recibiendo archivo \"+nombreArchivo );\r\n\t \r\n\t // Creamos flujo de salida, este flujo nos sirve para \r\n\t // indicar donde guardaremos el archivo\r\n\t fos = new FileOutputStream( \"C:\\\\Users\\\\feder\\\\\"+nombreArchivo );\r\n\t out = new BufferedOutputStream( fos );\r\n\t in = new BufferedInputStream( socket.getInputStream() );\r\n\t\r\n\t // Creamos el array de bytes para leer los datos del archivo\r\n\t byte[] buffer = new byte[ tam ];\r\n\t\r\n\t // Obtenemos el archivo mediante la lectura de bytes enviados\r\n\t for( int i = 0; i < buffer.length; i++ )\r\n\t {\r\n\t buffer[ i ] = ( byte )in.read( ); \r\n\t }\r\n\t\r\n\t // Escribimos el archivo \r\n\t out.write( buffer ); \r\n\t\r\n\t // System.out.println( \"Archivo Recibido \"+nombreArchivo );\r\n\t \r\n\t }\r\n\t catch( Exception e )\r\n\t {\r\n\t System.out.println( \"Recibir: \"+e.toString() ); \r\n\t }\r\n }",
"String getFilepath();",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if ((requestCode == request_code) && (resultCode == RESULT_OK)){\n Toast.makeText(getApplicationContext(),data.getDataString(),Toast.LENGTH_LONG).show();\n elemento = new File(data.getDataString());\n }\n }",
"private String llegeix_arxiu(Context context, String nom_arxiu) {\n\n String ret = \"\";\n\n try {\n InputStream inputStream = context.openFileInput(nom_arxiu);\n\n if ( inputStream != null ) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String receiveString = \"\";\n StringBuilder stringBuilder = new StringBuilder();\n\n while ( (receiveString = bufferedReader.readLine()) != null ) {\n stringBuilder.append(receiveString);\n stringBuilder.append(\"\\n\");\n }\n\n inputStream.close();\n ret = stringBuilder.toString();\n }\n }\n catch (FileNotFoundException e) {\n Log.e(\"login activity\", \"File not found: \" + e.toString());\n } catch (IOException e) {\n Log.e(\"login activity\", \"Can not read file: \" + e.toString());\n }\n\n if(ret.length() == 0)\n {\n return \"\";\n }\n else\n {\n return ret;\n }\n }",
"private void getArquivo()\n {\n /*** Obtem o conteudo do pacote através do diretorio ***/\n File file = new File(caminho_origem);\n if (file.isFile())\n {\n try\n {\n /*** Lê o pacote e põe em um array de bytes ***/\n DataInputStream diStream = new DataInputStream(new FileInputStream(file));\n long len = (int) file.length();\n if (len > Utils.tamanho_maximo_arquivo)\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_muito_grande);\n System.exit(0);\n }\n Float numero_pacotes_ = ((float)len / Utils.tamanho_util_pacote);\n int numero_pacotes = numero_pacotes_.intValue();\n int ultimo_pacote = (int) len - (Utils.tamanho_util_pacote * numero_pacotes);\n int read = 0;\n /***\n 1500\n fileBytes[1500]\n p[512]\n p[512]\n p[476]len - (512 * numero_pacotes.intValue())\n ***/\n byte[] fileBytes = new byte[(int)len];\n while (read < fileBytes.length)\n {\n fileBytes[read] = diStream.readByte();\n read++;\n }\n int i = 0;\n int pacotes_feitos = 0;\n while ( pacotes_feitos < numero_pacotes)\n {\n byte[] mini_pacote = new byte[Utils.tamanho_util_pacote];\n for (int k = 0; k < Utils.tamanho_util_pacote; k++)\n {\n mini_pacote[k] = fileBytes[i];\n i++;\n }\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(mini_pacote);\n this.pacotes.add(pacote_);\n pacotes_feitos++;\n }\n byte[] ultimo_mini_pacote = new byte[ultimo_pacote];\n int ultimo_indice = ultimo_mini_pacote.length;\n for (int j = 0; j < ultimo_mini_pacote.length; j++)\n {\n ultimo_mini_pacote[j] = fileBytes[i];\n i++;\n }\n byte[] ultimo_mini_pacote2 = new byte[512];\n System.arraycopy(ultimo_mini_pacote, 0, ultimo_mini_pacote2, 0, ultimo_mini_pacote.length);\n for(int h = ultimo_indice; h < 512; h++ ) ultimo_mini_pacote2[h] = \" \".getBytes()[0];\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(ultimo_mini_pacote2);\n this.pacotes.add(pacote_);\n this.janela = new HashMap<>();\n for (int iterator = 0; iterator < this.pacotes.size(); iterator++) janela.put(iterator, new Estado());\n } catch (Exception e)\n {\n System.out.println(Utils.prefixo_cliente + Utils.erro_na_leitura);\n System.exit(0);\n }\n } else\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_inexistente);\n System.exit(0);\n }\n }",
"public static void main(String[] args) {\n File myFile = new File (\"d:/names.txt\");\r\n // para saber si el archivo no existe, devuelve true o false\r\n System.out.println(\"file.exists(): \" + myFile.exists());\r\n System.out.println(\"file.isDirectory(): \" + myFile.isDirectory());\r\n // para saber la fecha de modificación\r\n System.out.println(\"file.lastModified(): \" + myFile.lastModified());\r\n // para saber el nombre del archivo\r\n System.out.println(\"file.getName(): \" + myFile.getName());\r\n // para saber la ruta\r\n System.out.println(\"file.getPath(): \" + myFile.getPath());\r\n // para saber el tamaño en bytes que ocupa en disco\r\n System.out.println(\"file.length(): \" + myFile.length()+\" bytes\");\r\n // para saber si es de lectura, devuelve true o false\r\n System.out.println(\"file.canRead():\" + myFile.canRead());\r\n\r\n //File newfolder = new File(\"D:/carpeta con archivos año mío\");\r\n //System.out.println(newfolder.mkdir());\r\n\r\n // si fuera un directorio, para saber los archivos que contiene\r\n File carpeta = new File(\"D:/carpeta_con_archivos\");\r\n System.out.println(\"----listado archivos D:/carpeta_archivos------\");\r\n for (String archivo : carpeta.list()) {\r\n System.out.println(archivo);\r\n }\r\n\r\n //agregar una linea nueva a un archivo existente (METODO 1)\r\n /*try {\r\n //abra el archivo , TRUE en un forma append (agregar nuevos valores)\r\n FileWriter myFile2 = new FileWriter(\"d:/names.txt\", true);\r\n //cargar en memora ram del SO el contenido del archivo\r\n BufferedWriter dataFile = new BufferedWriter(myFile2);\r\n //agregar una nueva linea\r\n dataFile.write(\"\\nnueva linea tres\");\r\n dataFile.close();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }*/\r\n //agregar una linea nueva a un archivo existente (METODO 1 optimizado)\r\n /*try{\r\n BufferedWriter dataFile = new BufferedWriter(new FileWriter(\"d:/names.txt\",true));\r\n //agregamos la nueva linea\r\n dataFile.write(\"nueva linea sin borrar\");\r\n dataFile.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }*/\r\n // agregar nueva linea con metodo super optimizado en lineas (METODO FLAHS)\r\n try{\r\n PrintWriter myFile3 = new PrintWriter(new BufferedWriter(new FileWriter(\"d:/names.txt\", true)));\r\n myFile3.println(\"Otra nueva línea mezclando las dos librerías (PrintWriter + FileWriter) \");\r\n myFile3.close();\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n\r\n\r\n }",
"public void readFromFile() {\n\n\t}",
"public void crearArchivoDeTexto(String rutas,String nombre, String texto){\n try{\n archivo = new File(rutas + File.separator + nombre);\n String rutaCompleta=archivo.getAbsolutePath();\n \n System.out.println(rutaCompleta);\n FileWriter archivoEscritura= new FileWriter(rutaCompleta,true);\n BufferedWriter escritura= new BufferedWriter(archivoEscritura);\n escritura.append(texto+\"\\n\");\n escritura.close();\n archivoEscritura.close();\n }catch(FileNotFoundException e1){\n System.out.println(\"Ruta de archivo no encontrada\");\n }catch(IOException e2){\n System.out.println(\"Error de escritura\");\n }catch(Exception e3){\n System.out.println(\"Error General\");\n }\n }",
"String savedFile();",
"List readFile(String pathToFile);",
"public String upload() throws FileNotFoundException, IOException{\n FileOutputStream fout=new FileOutputStream(\"/tmp/mi_archivo\");\n int read=0;\n byte[] data=new byte[1024];\n InputStream in = archivo.getInputStream();\n\n while((read = in.read(data)) != -1){\n fout.write(data, 0, read);\n }\n\n return \"\";\n }",
"public void descargarArchivo()throws SQLException, IOException {\n //conexion con el resultset\n st = cn.createStatement();\n\n // consulta de descarga el getId es la variable que utilizo para ubicarme en la base de datos\n ResultSet rs = st.executeQuery(\"select anexo_justi, nombre FROM anexoitem where iditem=\"+rt.getId());\ntry {\n \nrs.next();\n// pone en la variable el nombre del archivo de la base de datos\nnombre= rs.getString(\"nombre\");\n// inserta la ruta completa\nFile file = new File(rt.getPath()+nombre);\n// salida del archivo de flujo\nFileOutputStream output = new FileOutputStream(file);\nBlob archivo = rs.getBlob(1);\nInputStream inStream = archivo.getBinaryStream();\n// almacenamiento del tamaño y descarga byte a byte\nint length= -1;\nint size = (int) archivo.length();\nbyte[] buffer = new byte[size];\nwhile ((length = inStream.read(buffer)) != -1) {\noutput.write(buffer, 0, length);\nJOptionPane.showMessageDialog(null,\"El archivo se descargo correctamente\");\n// output.flush();\n\n}\n// inStream.close();\noutput.close();\n} catch (Exception ioe) {\nthrow new IOException(ioe.getMessage());\n}\n}",
"java.lang.String getFilePath();",
"public String getFileName ();",
"List<String> obtenerlineas(String archivo) throws FileException;",
"public void recevoirDossier() {\n try {\n fileInfo = (FileInfo) ois.readObject(); //lire les informations du fichier\n //chemin du fichier en sortie\n String outputFile = fileInfo.getDestinationDirectory() + fileInfo.getFilename();\n dstFile = new File(outputFile);\n if (!new File(fileInfo.getDestinationDirectory()).exists()) { //si le fichier n'existe pas\n new File(fileInfo.getDestinationDirectory()).mkdirs(); //creation du fichier\n fos = new FileOutputStream(dstFile);\n fos.write(fileInfo.getFileData()); //ecrire les données dans le fichier\n fos.flush();\n fileInfo.setFileData(null);\n System.gc();\n fos.close();\n dstFile.setLastModified(fileInfo.getModifier());\n\n } else if (dstFile.lastModified() < fileInfo.getModifier()) { //si le fichier existe et que c'est une nouvelle version alors\n fos = new FileOutputStream(dstFile);\n fos.write(fileInfo.getFileData());\n fos.flush();\n fileInfo.setFileData(null);\n fos.close();\n dstFile.setLastModified(fileInfo.getModifier());\n }\n } catch (IOException | ClassNotFoundException ex) {\n Logger.getLogger(RecevoirFichier.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public abstract String getFileLocation();",
"public EnigmaFile() throws Exception\n {\n\n String path = Main.class.getClassLoader().getResource(\"filein.txt\").getPath();\n File currentDirectory=new File(path);\n finstream = new FileInputStream(currentDirectory);\n\n\n String pathToWrite = path.replaceFirst(\"filein.txt\",\"fileout.txt\");\n File outputFile = new File(pathToWrite);\n br = new BufferedReader(new InputStreamReader(finstream));\n outputFile.createNewFile();\n FileWriter fileWrite = new FileWriter(outputFile.getAbsoluteFile());\n writer = new BufferedWriter(fileWrite);\n\n\n }",
"public void descargarArchivoVeri()throws SQLException, IOException {\n //conexion con el resultset\n st = cn.createStatement();\n\n // consulta de descarga el getId es la variable que utilizo para ubicarme en la base de datos\n ResultSet rs = st.executeQuery(\"select anexo_veri, nombre FROM anexoverificacion where idverificacion=\"+rt.getId());\ntry {\n \nrs.next();\n// pone en la variable el nombre del archivo de la base de datos\nnombre= rs.getString(\"nombre\");\n// inserta la ruta completa\nFile file = new File(rt.getPath()+nombre);\n// salida del archivo de flujo\nFileOutputStream output = new FileOutputStream(file);\nBlob archivo = rs.getBlob(1);\nInputStream inStream = archivo.getBinaryStream();\n// almacenamiento del tamaño y descarga byte a byte\nint length= -1;\nint size = (int) archivo.length();\nbyte[] buffer = new byte[size];\nwhile ((length = inStream.read(buffer)) != -1) {\noutput.write(buffer, 0, length);\nJOptionPane.showMessageDialog(null,\"El archivo se descargo correctamente\");\n// output.flush();\n\n}\n// inStream.close();\noutput.close();\n} catch (Exception ioe) {\nthrow new IOException(ioe.getMessage());\n}\n}",
"public int Tipo() {\r\n File archivo = null;\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n \r\n try {\r\n String linea;\r\n for (a=0;a<5;a++){\r\n if (a==0){\r\n tipo=\"Embarazadas\";\r\n }\r\n if (a==1){\r\n tipo=\"Regulares\";\r\n }\r\n if (a==2){\r\n tipo=\"Discapacitados\";\r\n }\r\n if (a==3){\r\n tipo=\"Mayores\";\r\n }\r\n if (a==4){\r\n tipo=\"Corporativos\";\r\n }\r\n archivo = new File (System.getProperty(\"user.dir\")+\"/Clientes/\"+tipo+\".txt\");\r\n fr = new FileReader (archivo);\r\n br = new BufferedReader(fr);\r\n while((linea=br.readLine())!=null){\r\n if (leerTipo == contador){\r\n errorTipo =String.valueOf(String.valueOf(leerTipo).length());\r\n if (a==0){\r\n resultadoembarazadas+=1;\r\n }\r\n if (a==1){\r\n resultadoregulares+=1;\r\n }\r\n if (a==2){\r\n resultadodiscapacitados+=1;\r\n }\r\n if (a==3){\r\n resultadomayores+=1;\r\n }\r\n if (a==4){\r\n resultadocorporativos+=1;\r\n }\r\n contador +=1;\r\n leerTipo +=6;\r\n\r\n }\r\n else{\r\n contador += 1;\r\n }\r\n }\r\n }\r\n\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n // En el finally cerramos el fichero, para asegurarnos\r\n // que se cierra tanto si todo va bien como si salta \r\n // una excepcion.\r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n //return resultado;\r\n return 0;\r\n }",
"private static void escribirArchivo(String nombre, String contenido, boolean agregar) {\n\n\t\tFileOutputStream archivo = null;\n\t\tBufferedOutputStream buffer = null;\n\t\tbyte entrada[] = new byte [100];\n\t\tArrayList<String> lista = new ArrayList<String>(5);\n\n\t\ttry {\n\t\t\tarchivo = new FileOutputStream(nombre, agregar);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbuffer = new BufferedOutputStream(archivo);\n\t\t\tbuffer.write(contenido.getBytes());\n\t\t\tbuffer.write(\"\\n\".getBytes());\n\t\t\tbuffer.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public File getDataFile();",
"public String getFile() {\n \n // return it\n return theFile;\n }",
"public String getFileName();",
"public String getFileName();",
"public String readFileIntoString(String filepath) throws IOException;",
"void toFile (String fileName);",
"Path getContent(String filename);",
"public abstract File mo41088k();",
"private static java.io.File c(java.lang.String r8, java.lang.String r9) {\n /*\n r0 = 0;\n r1 = 0;\n r2 = new java.io.File;\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r2.<init>(r8);\t Catch:{ Exception -> 0x00e8, all -> 0x00e4 }\n r8 = r2.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r8 != 0) goto L_0x001d;\n L_0x000d:\n r8 = \"DecryptUtils\";\n r9 = \"unZipSingleFile file don't exist\";\n r3 = new java.lang.Object[r0];\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.d.e(r8, r9, r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r1);\n r2.delete();\n return r1;\n L_0x001d:\n r8 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.<init>();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = java.io.File.separator;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = \"unzip\";\n r8.append(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r8 = r8.toString();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9 = new java.io.File;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r8);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n com.taobao.sophix.e.b.a(r9);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = r9.exists();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n if (r3 != 0) goto L_0x0044;\n L_0x0041:\n r9.mkdirs();\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x0044:\n r9 = new java.util.zip.ZipInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3 = new java.io.FileInputStream;\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r3.<init>(r2);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n r9.<init>(r3);\t Catch:{ Exception -> 0x00e1, all -> 0x00de }\n L_0x004e:\n r3 = r9.getNextEntry();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x00f4;\n L_0x0054:\n r4 = r3.getName();\t Catch:{ Exception -> 0x00dc }\n r3 = r3.isDirectory();\t Catch:{ Exception -> 0x00dc }\n if (r3 == 0) goto L_0x0085;\n L_0x005e:\n r3 = r4.length();\t Catch:{ Exception -> 0x00dc }\n r3 = r3 + -1;\n r3 = r4.substring(r0, r3);\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r3);\t Catch:{ Exception -> 0x00dc }\n r3 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00dc }\n r4.mkdirs();\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x0085:\n r3 = new java.io.File;\t Catch:{ Exception -> 0x00dc }\n r5 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x00dc }\n r5.<init>();\t Catch:{ Exception -> 0x00dc }\n r5.append(r8);\t Catch:{ Exception -> 0x00dc }\n r6 = java.io.File.separator;\t Catch:{ Exception -> 0x00dc }\n r5.append(r6);\t Catch:{ Exception -> 0x00dc }\n r5.append(r4);\t Catch:{ Exception -> 0x00dc }\n r4 = r5.toString();\t Catch:{ Exception -> 0x00dc }\n r3.<init>(r4);\t Catch:{ Exception -> 0x00dc }\n r3.createNewFile();\t Catch:{ Exception -> 0x00dc }\n r4 = new java.io.FileOutputStream;\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r4.<init>(r3);\t Catch:{ Exception -> 0x00c7, all -> 0x00c4 }\n r5 = 1024; // 0x400 float:1.435E-42 double:5.06E-321;\n r5 = new byte[r5];\t Catch:{ Exception -> 0x00c2 }\n L_0x00aa:\n r6 = r9.read(r5);\t Catch:{ Exception -> 0x00c2 }\n r7 = -1;\n if (r6 == r7) goto L_0x00b8;\n L_0x00b1:\n r4.write(r5, r0, r6);\t Catch:{ Exception -> 0x00c2 }\n r4.flush();\t Catch:{ Exception -> 0x00c2 }\n goto L_0x00aa;\n L_0x00b8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r3;\n L_0x00c2:\n r3 = move-exception;\n goto L_0x00c9;\n L_0x00c4:\n r8 = move-exception;\n r4 = r1;\n goto L_0x00d8;\n L_0x00c7:\n r3 = move-exception;\n r4 = r1;\n L_0x00c9:\n r5 = \"DecryptUtils\";\n r6 = \"unZipSingleFile unZip hotfix patch file error\";\n r7 = new java.lang.Object[r0];\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.d.a(r5, r6, r3, r7);\t Catch:{ all -> 0x00d7 }\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n goto L_0x004e;\n L_0x00d7:\n r8 = move-exception;\n L_0x00d8:\n com.taobao.sophix.e.b.a(r4);\t Catch:{ Exception -> 0x00dc }\n throw r8;\t Catch:{ Exception -> 0x00dc }\n L_0x00dc:\n r8 = move-exception;\n goto L_0x00eb;\n L_0x00de:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00fc;\n L_0x00e1:\n r8 = move-exception;\n r9 = r1;\n goto L_0x00eb;\n L_0x00e4:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n goto L_0x00fc;\n L_0x00e8:\n r8 = move-exception;\n r9 = r1;\n r2 = r9;\n L_0x00eb:\n r3 = \"DecryptUtils\";\n r4 = \"unZipSingleFile unZip hotfix patch file error\";\n r0 = new java.lang.Object[r0];\t Catch:{ all -> 0x00fb }\n com.taobao.sophix.e.d.a(r3, r4, r8, r0);\t Catch:{ all -> 0x00fb }\n L_0x00f4:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n return r1;\n L_0x00fb:\n r8 = move-exception;\n L_0x00fc:\n com.taobao.sophix.e.b.a(r9);\n r2.delete();\n throw r8;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.taobao.sophix.e.a.c(java.lang.String, java.lang.String):java.io.File\");\n }",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"public Resource cargarArchivo(String nombreArchivo) throws MalformedURLException;",
"private void cargarFichero() throws FileNotFoundException {\n\t\tFile miFichero = new File(NOMBRE_FICHERO);\n\t\tFileWriter erroresFichero;\n\t\t\n\t\tScanner in = new Scanner(miFichero);\n\t\t\n\t\tEjercicio nuevoEjer;\n\t\tString siguienteLinea;\n\t\tComprobadorEntradaFichero comprobador = new ComprobadorEntradaFichero();\n\t\tString errores = \"\";\n\t\tint numLinea = 1;\n\t\t\n\t\twhile (in.hasNextLine()) {\n\t\t\t\n\t\t\tsiguienteLinea = in.nextLine();\n\t\t\tif (comprobador.test(siguienteLinea)) {\n\t\t\t\tnuevoEjer = new Ejercicio(siguienteLinea);\n\t\t\t\tcoleccionEj.addEjercicio(nuevoEjer);\n\t\t\t} else {\n\t\t\t\t//Controlar cuántos errores va dando\n\t\t\t\terrores += \"Error en la lÃnea: \" + String.valueOf(numLinea) + \". Datos: \" + siguienteLinea + \"\\n\";\n\t\t\t}\n\t\t\tnumLinea++;\n\t\t}\n\t\t\n\t\tin.close();\n\t\t\n\t\t\n\t\t//Ahora escribimos \n\t\tif (errores != \"\") {\n\t\t\ttry {\n\t\t\t erroresFichero = new FileWriter(NOMBRE_FICHERO_ERRORES);\n\t\t\n\t\t\t erroresFichero.write(errores);\n\n\t\t\t erroresFichero.close();\n\n\t\t\t} catch (Exception ex) {\n\t\t\t\tSystem.out.println(\"Mensaje de la excepción: \" + ex.getMessage());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"private String getResultTest(){\n\t\tString nomarchivo = \"arcade.txt\";\n\t\tString todo=\"\";\n\t\tFile root = Environment.getExternalStorageDirectory();\n\t\tif(root.canRead()){\n\t\t\tFile dir = new File(root + \"/pfc\");\n\t\t\tFile file=new File(dir,nomarchivo);\n\t\t\t\n\t\t\tif(dir.exists() && file.exists()){\n\t\t\t\ttry {\n\t\t\t\t\tFileInputStream fIn = new FileInputStream(file);\n\t\t\t\t\tInputStreamReader archivo = new InputStreamReader(fIn);\n\t\t\t\t\tBufferedReader br = new BufferedReader(archivo);\n\t\t\t\t\tString linea = br.readLine();\n\t\t\t\t\twhile (linea != null) {\n\t\t\t\t\t\ttodo = todo + linea + \"\\n\";\n\t\t\t\t\t\tlinea = br.readLine();\n\t\t\t\t\t}\n\t\t\t\t\tbr.close();\n\t\t\t\t\tarchivo.close();\n\t\t\t\t\tfile.delete();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"Se ha producido un error al intentar leer el archivo\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn todo;\n\t}",
"public List<Cuenta> leerArchivoToList(InputStream archivo);",
"public static void LeerByte(File rutaLeer, File rutaEscribir) throws IOException {\n\n FileInputStream leer = new FileInputStream(rutaLeer);\n FileOutputStream escribir = new FileOutputStream(rutaEscribir);\n\n char[] letras = new char[numCaracteres(rutaLeer)]; //array para almacenar todos los char\n int b = 0;\n// letras = new char[numCaracteres(rutaLeer)];\n int contador = 0;\n while (b != -1) {\n b = leer.read(); //se lee los bytes\n char c = (char) b; // se convierte a char\n letras[contador] = c; // se guarda los char\n contador++;\n }\n\n //leer y escribir \n String letra = \"\";\n String frase = \"\";\n int contar = 0;\n boolean encontrarSigno = false;\n int data = -1;\n\n escribir.write(\"--------------------------------------\".getBytes());\n escribir.write('\\n');\n escribir.write(\" Cartelera de CineFBMoll\".getBytes());\n escribir.write('\\n');\n escribir.write(\"--------------------------------------\".getBytes());\n escribir.write('\\n');\n\n int corchete = 0;\n for (int i = 0; i < letras.length; i++) {\n if (letras[i] == '{') {\n corchete = i;\n }\n }\n letras[corchete] = '#'; // en la posición 475 ({) se cambia por #\n while (contar <= letras.length - 1 && encontrarSigno == false) {\n if (letras[contar] != '#' && contar != letras.length - 1) {\n letra = Character.toString(letras[contar]);\n frase += letra; // si no es un # se forma una frase\n\n contar++;\n } else {\n encontrarSigno = true;\n data++;\n contar++;\n int espacios = 0;\n int cortarLinea = 14; //cuenta los espacios ' ' para dar un salto de línea\n if (encontrarSigno == true) {\n if (frase.length() < 100) { // si es o no un párrafo\n escribir.write('\\n');\n escribir.write(datos[data].getBytes());\n escribir.write(\" : \".getBytes());\n escribir.write(frase.getBytes());\n escribir.write('\\n');\n\n encontrarSigno = false;\n frase = \"\";\n } else {\n escribir.write('\\n');\n escribir.write(datos[data].getBytes()); //sinopsis\n escribir.write(\" : \".getBytes());\n for (int i = 0; i < frase.length(); i++) {\n char c = frase.charAt(i);\n if (c == ' ') {\n espacios++;\n }\n if (espacios == cortarLinea) { //comprobación para dar salto de línea\n escribir.write('\\n');\n cortarLinea += 15;\n }\n escribir.write(c);\n }\n escribir.write('\\n');\n encontrarSigno = false;\n frase = \"\";\n }\n\n if (data + 1 == datos.length) {\n data = -1;\n escribir.write(\"-----------------------------\".getBytes());\n }\n }//'#'\n }\n }//while\n\n }",
"public abstract File mo41087j();",
"protected abstract E readFile() throws Exception;",
"public GestorArchivos(String numeroArchivo)\r\n {\r\n this.rutaArchivoEntrada = new File(\"archivostexto/in/in\" + numeroArchivo + \".txt\").getAbsolutePath().replace(\"\\\\\", \"/\");\r\n this.rutaArchivoSalida = new File(\"archivostexto/out/out\" + numeroArchivo + \".txt\").getAbsolutePath().replace(\"\\\\\", \"/\");\r\n }",
"File getSaveFile();",
"private Object getFile(String path) throws Exception {\t\t\t\n\t\t \n\t\t FileInputStream fileIn = new FileInputStream(path);\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\n\n Object obj = objectIn.readObject();\n objectIn.close();\n \n return obj;\t\t\n\t}",
"private String getArchivoMemoriaInterna(String fileName) throws FileSaverException{\n int size;\n byte[] buffer;\n FileInputStream mInput;\n String jsonString=null,msg;\n JSONObject objeto;\n try{\n mInput = contexto.openFileInput(fileName);\n size = mInput.available();\n buffer = new byte[size];\n mInput.read(buffer);\n mInput.close();\n msg = contexto.getResources().getString(R.string.fileSaverLecturaExitosa);\n Log.v(TAG,msg);\n jsonString = new String(buffer,\"UTF-8\");\n }\n catch(FileNotFoundException e){\n msg = contexto.getResources().getString(R.string.fileSaverErrorLecturaFileNotFound);\n Log.v(TAG,msg);\n //e.printStackTrace();\n throw new FileSaverException(msg);\n }\n catch(IOException e){\n msg = contexto.getResources().getString(R.string.fileSaverErrorLecturaLocal);\n Log.v(TAG,msg);\n throw new FileSaverException(msg,\"ArchivoInexistente\");\n }\n return jsonString;\n }",
"public void analizarArchivo(){\n\t\ttry{\n\t\t\twhile((caracter = inputStream.read())!=-1){\n\t\t\t\testado = analizador.analizarSimbolo(caracter);\n\t\t\t\t//outputStream.write(analizador.simbolo);\n\t\t\t\thistoriaStream.write(formatoEstado(estado));\n\t\t\t\tif(estado == 18 ){//La palabra es web o ebay\n\t\t\t\t\toutputStream.write(\"Auto: Línea [\"+analizador.numero_lineas+\"] Palabra: ebay \\n\");\n\t\t\t\t}else if(estado == 146){\n\t\t\t\t\toutputStream.write(\"Auto: Línea [\"+analizador.numero_lineas+\"] Palabra: web \\n\");\n\t\t\t\t}\n\t\t\t\tif(analizador.isPalabra == true || analizador.isLinea == true){\n\t\t\t\t\thistoriaStream.write(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Num. palabras: \"+analizador.numero_palabras+\" Numero líneas: \"+analizador.numero_lineas+\" Numero correctas: \"+analizador.numero_correctas);\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"String getFilename();",
"Path getFilePath();",
"public ArrayList<String> leerArchivo(String nombreArchivo) { //\"getter\" metodo arraylist que recibe como parametro nombreArchivo\n\t\tArrayList<String> lineasArchivo = new ArrayList<String>(); //instacia del ArrayList\n\t\tBufferedReader archivo = null;\n\t\ttry {\n\t\t\t//BufferedReader para leer lineas completas de una secuencia de entrada\n\t\t\t archivo = new BufferedReader(new FileReader(nombreArchivo)); \n\t\t\tString linea = \"\";\n\t\t\twhile (linea != null) {\n\t\t\t\tlinea = archivo.readLine();\n\t\t\t\tif (linea != null) {\n\t\t\t\t\tlineasArchivo.add(linea);\n\t\t\t\t}\n\t\t\t}\n\t\t\tarchivo.close();\t\t\t\n\t\t} catch(IOException ioe) {\n\t\t}\n\t\treturn lineasArchivo;\n\t}",
"private void cargarArchivoAlumnos() {\n String aux = \"\";\n String texto = \"\";\n\n JFileChooser file = new JFileChooser();\n file.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n\n //Filtro\n FileNameExtensionFilter filtro = new FileNameExtensionFilter(\"*.XML\", \"xml\");\n\n file.setFileFilter(filtro);\n\n int seleccion = file.showOpenDialog(this);\n\n if (seleccion == JFileChooser.APPROVE_OPTION) {\n File fichero = file.getSelectedFile();\n\n insertarAlumnos(fichero.getPath());\n\n }\n }",
"private BufferedReader abrirArquivoLeitura() throws FileNotFoundException {\n\t\tBufferedReader file = null;\n\t\tfile = new BufferedReader(new FileReader(caminho));\n\t\treturn file;\n\t}",
"public Files files();",
"public void leerFichero(String rutaFichero) {\r\n\t\t\ttry {\r\n\t\t\t\tBufferedReader fichero;\r\n\t\t\t\tfichero = new BufferedReader(new FileReader(rutaFichero));\r\n\t\t\t\tString registro;\r\n\t\t\t\twhile ((registro = fichero.readLine()) != null) {\r\n\t\t\t\t\tSystem.out.println(registro);\r\n\r\n\t\t\t\t\t// ................\r\n\r\n\t\t\t\t}\r\n\t\t\t\tfichero.close();\r\n\t\t\t\tSystem.out.println(\"Fin de la lectura del fichero\");\r\n\r\n\t\t\t} catch (FileNotFoundException excepcion) {\r\n\t\t\t\tSystem.out.println(\"fichero no encontrado\");\r\n\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tSystem.out.println(\"IO Excepcion\");\r\n\t\t\t}\r\n\t\t}",
"String transcribeFile(String filePath);",
"public void seleccionarArchivo(){\n JFileChooser j= new JFileChooser();\r\n FileNameExtensionFilter fi= new FileNameExtensionFilter(\"pdf\",\"pdf\");\r\n j.setFileFilter(fi);\r\n int se = j.showOpenDialog(this);\r\n if(se==0){\r\n this.txtCurriculum.setText(\"\"+j.getSelectedFile().getName());\r\n ruta_archivo=j.getSelectedFile().getAbsolutePath();\r\n }else{}\r\n }",
"public FilesInputStreamLoad readFile() throws ArcException {\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\tFile toRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\tFilesInputStreamLoad filesInputStreamLoadReturned = null;\r\n\ttry {\r\n\t\tfilesInputStreamLoadReturned = new FilesInputStreamLoad (toRead);\r\n\t} catch (IOException ioReadException) {\r\n\t\tthrow new ArcException(ioReadException, ArcExceptionMessage.FILE_READ_FAILED, toRead);\r\n\t}\r\n\treturn filesInputStreamLoadReturned;\r\n }",
"public abstract String getFileName();",
"public String getFilename();",
"public void leerArchivo() {\n String rfcProveedor = produccionCigarrosHelper.getProveedor().getRfc();\n String rfcTabacalera = produccionCigarrosHelper.getTabacalera().getRfc();\n\n if (archivoFoliosService != null && desperdiciosHelper.getArchivoFolios() != null) {\n try {\n desperdiciosHelper.setNombreArchivo(desperdiciosHelper.getArchivoFolios().getFileName());\n InputStream inputStream = desperdiciosHelper.getArchivoFolios().getInputstream();\n\n desperdiciosHelper.setRangoFoliosList(archivoFoliosProduccionService.leerArchivoFolios(inputStream, desperdiciosHelper.getNombreArchivo()));\n desperdiciosHelper.setRangoFoliosListAux(validadorRangosService.generarRangosProduccion(rfcTabacalera, rfcProveedor, desperdiciosHelper.getRangoFoliosList()));\n desperdiciosHelper.setMsgErrorArchivo(\"\");\n\n solicitudService.generaCadenaOriginal(firmaFormHelper.getRfcSession(), sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()), null);\n firmaFormHelper.setCadenaOriginal(solicitudService.generaCadenaOriginal(firmaFormHelper.getRfcSession(), sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()), null));\n desperdiciosHelper.setCantidadSolicitada(sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()));\n\n } catch (SolicitudServiceException bE) {\n desperdiciosHelper.setMsgErrorArchivo(bE.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n LOGGER.error(\"Error: al Leer el archivo\" + bE.getMessage(), bE);\n } catch (RangosException rE) {\n desperdiciosHelper.setMsgErrorArchivo(rE.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n super.msgError(rE.getMessage());\n } catch (IOException io) {\n desperdiciosHelper.setMsgErrorArchivo(io.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n LOGGER.error(\"ERROR: Al leer el Archivo : \" + io.getMessage());\n } catch (ArchivoFoliosServiceException ex) {\n LOGGER.error(\"ERROR: Al leer el Archivo : \" + ex.getMessage());\n }\n if (!desperdiciosHelper.getMsgErrorArchivo().isEmpty()) {\n desperdiciosHelper.setDeshabilitaBtnGuardar(true);\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n } else {\n desperdiciosHelper.setMsgExitoArchivo(\"El archivo \" + desperdiciosHelper.getNombreArchivo() + \" se cargo con éxito\");\n desperdiciosHelper.setMsgErrorArchivo(\"\");\n }\n }\n }",
"public abstract void readFromFile( ) throws Exception;",
"abstract String getFileRoute() throws IOException;",
"void open(String fileName);",
"public byte[] encriptarArchivo (String nombreArchivo, String key, String ruta) throws Exception{\n\n \n FileInputStream fileInputStream = null;\n byte[] encrypted = null;\n File file = new File(nombreArchivo);\n byte[] archivo = new byte[(int) file.length()];\n\n //Convertir archivo a bytes[]\n fileInputStream = new FileInputStream(file);\n fileInputStream.read(archivo);\n //llamada a libreria de encriptacion\n encrypted = encrypt(archivo, key);\n Path archivo_enc = Paths.get(ruta);\n //Creacion de archivo encriptado \n Files.write(archivo_enc, encrypted);\n \n return encrypted;\n \n }",
"private void abrirFichero() {\r\n\t\tJFileChooser abrir = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tabrir.setFileFilter(filtro);\r\n\t\tif(abrir.showOpenDialog(abrir) == JFileChooser.APPROVE_OPTION){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.liga = (Liga) Gestion.abrir(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setAbierto(true);\r\n\t\t\t\tGestion.setFichero(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se ha podido abrir el fichero\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void arquivo(String nomarq)\r\n {\n }",
"private static String readFromFile(ArrayList diretorios, String sessionId)\n\t{\n\t StringBuffer result = new StringBuffer();\n\t \n\t try\n\t {\n\t //Verificando na lista de diretorios se o arquivo pode ser encontrado. \n\t for(int i = 0; i < diretorios.size(); i++)\n\t {\n\t\t String fileName = (String)diretorios.get(i) + File.separator + sessionId;\n\t\t File fileExtrato = new File(fileName);\n\t\t \n\t\t if(fileExtrato.exists())\n\t\t {\n\t\t //Lendo o XML do arquivo.\n\t\t FileReader reader = new FileReader(fileExtrato);\n\t\t char[] buffer = new char[new Long(fileExtrato.length()).intValue()];\n\t\t int bytesRead = 0;\n\t \n\t\t while((bytesRead = reader.read(buffer)) != -1)\n\t\t {\n\t\t result.append(buffer);\n\t\t }\n\t \n\t\t reader.close();\n\t\t break;\n\t\t }\n\t }\n\t }\n\t catch(Exception e)\n\t {\n\t e.printStackTrace();\n\t }\n\t \n\t return (result.length() > 0) ? result.toString() : null;\n\t}",
"public void crearPrimerFichero(){\n File f=new File(getApplicationContext().getFilesDir(),\"datos.json\");\n // si no existe lo creo\n if(!f.exists()) {\n String filename = \"datos.json\";\n String fileContents = \"[]\";\n FileOutputStream outputStream;\n\n try {\n outputStream = openFileOutput(filename, Context.MODE_PRIVATE);\n outputStream.write(fileContents.getBytes());\n outputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n }",
"public String ler(String arquivo) throws IOException {\n\t\tString a = \"\";\n\t\tFileReader reader = new FileReader(arquivo);\n\t\tBufferedReader buffReader = new BufferedReader(reader);\n\n\t\tString linha;\n\t\twhile ((linha = buffReader.readLine()) != null) {\n\n\t\t\ta = a + linha + \"\\n\";\n\t\t}\n\t\treader.close();\n\t\treturn a;\n\t}",
"private void fecharArquivoLeitura(BufferedReader file) {\n\t\ttry {\n\t\t\tfile.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void downloadEto(File file, int id) throws IOException, SQLException;",
"Path fileToUpload();",
"public void handleOpenFile (File inFile) {\n openFile (inFile);\n }",
"static void CrearArchivo(Vector productos, Vector clientes){ \r\n \ttry{ //iniciamos el try y si no funciona se hace el catch\r\n BufferedWriter bw = new BufferedWriter(\r\n \t\t//Iniciamos el archivo adentro de bw que es un objeto.\r\n new FileWriter(\"reporte.txt\") );\r\n //creamos un producto auxiliar\r\n Producto p; \r\n //mientas existan productos se escribe lo siguiente en el archivo\r\n for(int x = 0; x < productos.size(); x++){ \r\n \t//impresiones de nombre,codigo,stock,precio en el archivo\r\n \tp = (Producto) productos.elementAt(x);\r\n bw.write(\"Nombre del producto: \" + p.getNombre() + \"\\n\"); \r\n bw.write(\"Codigo del producto: \" + p.getCodigo() + \"\\n\");\r\n bw.write(\"Tamaño del stock: \" + p.getStock() + \"\\n\");\r\n bw.write(\"Precio: \" + p.getPrecio() + \"\\n\");\r\n \r\n \r\n }\r\n //creamos un cliente auxiliar\r\n Cliente c;\r\n //mientas existan clientes se escribe lo siguiente en el archivo\r\n for(int x = 0; x < clientes.size(); x++){ \r\n \tc = (Cliente) clientes.elementAt(x);\r\n \t//impresiones de nombre,telefono,cantidad y total en el archivo\r\n bw.write(\"Nombre del cliente: \" + c.getname() + \"\\n\");\r\n bw.write(\"Numero de telefono: \" + c.getTelefono() + \"\\n\"); \r\n bw.write(\"Cantidad de compra: \" + c.getCantidad() + \"\\n\");\r\n bw.write(\"Total de compra: \" + c.getTotal() + \"\\n\");\r\n \r\n \r\n }\r\n // Cerrar archivo al finalizar\r\n bw.close();\r\n System.out.println(\"¡Archivo creado con éxito!\");\r\n //si no funciona imprime el error\r\n } catch(Exception ex){ \r\n System.out.println(ex);\r\n }\r\n }",
"private String getFileContent(java.io.File fileObj) {\n String returned = \"\";\n try {\n java.io.BufferedReader reader = new java.io.BufferedReader(new java.io.FileReader(fileObj));\n while (reader.ready()) {\n returned = returned + reader.readLine() + lineSeparator;\n }\n } catch (FileNotFoundException ex) {\n JTVProg.logPrint(this, 0, \"файл [\" + fileObj.getName() + \"] не найден\");\n } catch (IOException ex) {\n JTVProg.logPrint(this, 0, \"[\" + fileObj.getName() + \"]: ошибка ввода/вывода\");\n }\n return returned;\n }",
"public File getFileValue();"
] | [
"0.7044032",
"0.6909237",
"0.6909237",
"0.6909237",
"0.6788289",
"0.67167985",
"0.6684559",
"0.6617609",
"0.65879494",
"0.65879494",
"0.6568503",
"0.6568503",
"0.65357345",
"0.6523345",
"0.6501537",
"0.64541",
"0.6352695",
"0.62949556",
"0.62949556",
"0.62787783",
"0.6146534",
"0.6130155",
"0.61150646",
"0.61077166",
"0.6105639",
"0.6091754",
"0.6090541",
"0.6068605",
"0.6053753",
"0.6043433",
"0.6041391",
"0.60302895",
"0.6026519",
"0.5989304",
"0.5977482",
"0.5973493",
"0.5961629",
"0.59498054",
"0.59373355",
"0.59291226",
"0.5927947",
"0.5925966",
"0.5915394",
"0.59105206",
"0.5906771",
"0.5904813",
"0.58972836",
"0.58909607",
"0.58909607",
"0.5882145",
"0.58731496",
"0.5843909",
"0.5834744",
"0.58265215",
"0.5820189",
"0.5820189",
"0.5820189",
"0.5820189",
"0.5820189",
"0.5818959",
"0.5817329",
"0.5810893",
"0.5808612",
"0.58004254",
"0.5793694",
"0.5784753",
"0.5782759",
"0.5767835",
"0.5767553",
"0.5762884",
"0.57579863",
"0.5755876",
"0.5744879",
"0.5743604",
"0.5733479",
"0.57250035",
"0.57235307",
"0.57192767",
"0.57137984",
"0.5710911",
"0.57060325",
"0.570544",
"0.5702688",
"0.56984156",
"0.56981426",
"0.568893",
"0.56873584",
"0.5685587",
"0.5675366",
"0.5673849",
"0.5662974",
"0.5660171",
"0.5655157",
"0.56469756",
"0.5642233",
"0.5642038",
"0.5635597",
"0.56230557",
"0.5615416",
"0.5600619"
] | 0.7083828 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
Scanner console = new Scanner(System.in);
int numEntries = console.nextInt();
for(int ii = 0; ii < numEntries; ii++){
console.nextLine();
String lineScan = console.nextLine();
}
} | {
"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 |
Returns command to reorient EClass based link. New link target or source should be the domain model element associated with this node. | protected Command getReorientRelationshipCommand(
ReorientRelationshipRequest req) {
switch (getVisualID(req)) {
case FactLinkEditPart.VISUAL_ID:
return getGEFWrapper(new FactLinkReorientCommand(req));
case FactLink2EditPart.VISUAL_ID:
return getGEFWrapper(new FactLink2ReorientCommand(req));
case PlayerBindingEditPart.VISUAL_ID:
return getGEFWrapper(new PlayerBindingReorientCommand(req));
case ExternalFactLinkEditPart.VISUAL_ID:
return getGEFWrapper(new ExternalFactLinkReorientCommand(req));
}
return super.getReorientRelationshipCommand(req);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Command getReorientReferenceRelationshipCommand(\r\n\t\t\tReorientReferenceRelationshipRequest req) {\r\n\t\tswitch (getVisualID(req)) {\r\n\t\tcase ContractRoleAIDEditPart.VISUAL_ID:\r\n\t\t\treturn getGEFWrapper(new ContractRoleAIDReorientCommand(req));\r\n\t\tcase ContractRoleBIDEditPart.VISUAL_ID:\r\n\t\t\treturn getGEFWrapper(new ContractRoleBIDReorientCommand(req));\r\n\t\t}\r\n\t\treturn super.getReorientReferenceRelationshipCommand(req);\r\n\t}",
"protected Command getReorientRelationshipCommand(\n\t\t\tReorientRelationshipRequest req) {\n\t\tswitch (getVisualID(req)) {\n\t\tcase ScopeToCompositeActionMappingEditPart.VISUAL_ID:\n\t\t\treturn getGEFWrapper(new ScopeToCompositeActionMappingReorientCommand(\n\t\t\t\t\treq));\n\t\t}\n\t\treturn super.getReorientRelationshipCommand(req);\n\t}",
"@objid (\"000fb1bc-c4bf-1fd8-97fe-001ec947cd2a\")\npublic interface LinkEnd extends UmlModelElement {\n /**\n * The metaclass simple name.\n */\n @objid (\"e6dd0ee9-d2ae-459e-911e-137b205a96a9\")\n public static final String MNAME = \"LinkEnd\";\n\n /**\n * The metaclass qualified name.\n */\n @objid (\"62f5bc44-c159-4a21-873f-c9ba90f5653c\")\n public static final String MQNAME = \"Standard.LinkEnd\";\n\n /**\n * Get the 'graphical owner' related to this end.\n * The owner is the current source or the opposite end's target according to the navigability.\n */\n @objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();\n\n @objid (\"006058b0-2963-1080-943a-001ec947cd2a\")\n void setTarget(final Instance value, final boolean fixModel);\n\n @objid (\"006059f0-2963-1080-943a-001ec947cd2a\")\n void setSource(final Instance value, final boolean fixModel);\n\n /**\n * Sets both ends sources and targets according to the given navigability.\n * <ul>\n * <li>THISSIDE: only current source and target must be filled.</li>\n * <li>OHERSIDE: only opposite source and target must be filled.</li>\n * <li>BOTHSIDES: current source must be equals to opposite target as well as current target and opposite source.</li>\n * <li>NONE: both sources must be filled, but no target</li>\n * </ul>\n * @param value whether or not to synchronize the other end and both source/target values. This end will be made navigable whatever the current navigability is.\n */\n @objid (\"50d3075c-1fcb-4a03-a648-16729171986f\")\n void setNavigable(boolean value);\n\n @objid (\"6d12e031-ad22-449a-9171-6a88d4158b48\")\n boolean isNavigable();\n\n /**\n * Getter for attribute 'LinkEnd.IsOrdered'\n * \n * Metamodel description:\n * <i>Determines if this LinkEnd is ordered.</i>\n */\n @objid (\"fcf73d01-d406-41e9-9490-067237966153\")\n boolean isIsOrdered();\n\n /**\n * Setter for attribute 'LinkEnd.IsOrdered'\n * \n * Metamodel description:\n * <i>Determines if this LinkEnd is ordered.</i>\n */\n @objid (\"85e0d2fc-c5f1-47a6-a7a9-d1d92c110978\")\n void setIsOrdered(boolean value);\n\n /**\n * Getter for attribute 'LinkEnd.IsUnique'\n * \n * Metamodel description:\n * <i>Determines if this LinkEnd is unique.</i>\n */\n @objid (\"ef9777b4-ed2a-4341-bb22-67675cddb70a\")\n boolean isIsUnique();\n\n /**\n * Setter for attribute 'LinkEnd.IsUnique'\n * \n * Metamodel description:\n * <i>Determines if this LinkEnd is unique.</i>\n */\n @objid (\"d7a49a3a-2f15-4f2c-91a0-847c1e869a0c\")\n void setIsUnique(boolean value);\n\n /**\n * Getter for attribute 'LinkEnd.MultiplicityMax'\n * \n * Metamodel description:\n * <i>Maximum value of the Link's multiplicity.</i>\n */\n @objid (\"7bba25c1-4310-45fa-b2ce-d6cdc992be70\")\n String getMultiplicityMax();\n\n /**\n * Setter for attribute 'LinkEnd.MultiplicityMax'\n * \n * Metamodel description:\n * <i>Maximum value of the Link's multiplicity.</i>\n */\n @objid (\"0ef18ad8-3371-4bb9-933d-7b4e156bea34\")\n void setMultiplicityMax(String value);\n\n /**\n * Getter for attribute 'LinkEnd.MultiplicityMin'\n * \n * Metamodel description:\n * <i>Minimum value of the Link's multiplicity. When placed on a target end, the multiplicity specifies the number of target instances that may be associated with a single source instance across the given Link.</i>\n */\n @objid (\"258318a3-c0bd-4ddc-971b-1e72b90fcbb1\")\n String getMultiplicityMin();\n\n /**\n * Setter for attribute 'LinkEnd.MultiplicityMin'\n * \n * Metamodel description:\n * <i>Minimum value of the Link's multiplicity. When placed on a target end, the multiplicity specifies the number of target instances that may be associated with a single source instance across the given Link.</i>\n */\n @objid (\"06670c6b-fb3b-41b3-aefd-29ea57042310\")\n void setMultiplicityMin(String value);\n\n /**\n * Getter for relation 'LinkEnd->Link'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"780bebb2-6884-4789-bdef-ca10444ad5fb\")\n Link getLink();\n\n /**\n * Setter for relation 'LinkEnd->Link'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"cd72633c-53d3-4556-b5de-b52113e3a225\")\n void setLink(Link value);\n\n /**\n * Getter for relation 'LinkEnd->Target'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"19651663-f981-4f11-802a-d5d7cbd6f88a\")\n Instance getTarget();\n\n /**\n * Setter for relation 'LinkEnd->Target'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"8fb70c43-b102-4a64-9424-c7cc07d58fcf\")\n void setTarget(Instance value);\n\n /**\n * Getter for relation 'LinkEnd->OppositeOwner'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"aaf16daa-ed28-496e-bee1-ebf665987a0e\")\n LinkEnd getOppositeOwner();\n\n /**\n * Setter for relation 'LinkEnd->OppositeOwner'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"67ebbbfe-83e1-4802-a6be-2ffada70c737\")\n void setOppositeOwner(LinkEnd value);\n\n /**\n * Getter for relation 'LinkEnd->RealizedInformationFlow'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"d5ab3449-47f3-49a5-9936-6634cda6cb2a\")\n EList<InformationFlow> getRealizedInformationFlow();\n\n /**\n * Filtered Getter for relation 'LinkEnd->RealizedInformationFlow'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"b9cdbb67-9b00-43b4-aa83-a5150ca375e9\")\n <T extends InformationFlow> List<T> getRealizedInformationFlow(java.lang.Class<T> filterClass);\n\n /**\n * Getter for relation 'LinkEnd->Model'\n * \n * Metamodel description:\n * <i>The LinkEnd is an occurrence of this AssociationEnd.</i>\n */\n @objid (\"661a22c1-2de2-4b65-a955-6b755461b1ac\")\n AssociationEnd getModel();\n\n /**\n * Setter for relation 'LinkEnd->Model'\n * \n * Metamodel description:\n * <i>The LinkEnd is an occurrence of this AssociationEnd.</i>\n */\n @objid (\"1a8cb555-55ca-418e-8378-2f50ba867c6b\")\n void setModel(AssociationEnd value);\n\n /**\n * Getter for relation 'LinkEnd->Consumer'\n * \n * Metamodel description:\n * <i>Used for Connectors between Ports to designate the RequiredInterface(s) set the LinkEnd is connected to.</i>\n */\n @objid (\"8f1c9d42-a8ac-4f52-b3f8-2b5f076b4348\")\n RequiredInterface getConsumer();\n\n /**\n * Setter for relation 'LinkEnd->Consumer'\n * \n * Metamodel description:\n * <i>Used for Connectors between Ports to designate the RequiredInterface(s) set the LinkEnd is connected to.</i>\n */\n @objid (\"443e3927-5e5c-43bb-9d78-44c58df8e6fd\")\n void setConsumer(RequiredInterface value);\n\n /**\n * Getter for relation 'LinkEnd->Opposite'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"e10bb26d-c5e7-4f7e-b4cb-8c5551328d52\")\n LinkEnd getOpposite();\n\n /**\n * Setter for relation 'LinkEnd->Opposite'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"322f7781-7f9f-47de-8df7-a12ebfa5784a\")\n void setOpposite(LinkEnd value);\n\n /**\n * Getter for relation 'LinkEnd->Source'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();\n\n /**\n * Setter for relation 'LinkEnd->Source'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"fddcf86a-595c-4c38-ad3f-c2a660a9497b\")\n void setSource(Instance value);\n\n /**\n * Getter for relation 'LinkEnd->Provider'\n * \n * Metamodel description:\n * <i>Used for Connectors between Ports to designate the ProvidedInterface(s) set the LinkEnd is connected to.</i>\n */\n @objid (\"13e63a4b-fab3-4b16-b7f9-69b4d6187c94\")\n ProvidedInterface getProvider();\n\n /**\n * Setter for relation 'LinkEnd->Provider'\n * \n * Metamodel description:\n * <i>Used for Connectors between Ports to designate the ProvidedInterface(s) set the LinkEnd is connected to.</i>\n */\n @objid (\"a3188449-2f95-4e02-a233-e2e48fa5e5b0\")\n void setProvider(ProvidedInterface value);\n\n}",
"public abstract String getManipulatorLinkLabel();",
"CharNode getLink();",
"public org.omg.uml.behavioralelements.commonbehavior.LinkEnd getLinkEnd();",
"LinkRelation createLinkRelation();",
"@Override\n\tpublic String getCommand() {\n\t\treturn model.getCommand();\n\t}",
"void associate(SNode outputNode, SReferenceLink role, String targetModelRef, String targetNodeId);",
"public TransitionTo<CircularRef1> getLink() {\n return linkToCR1;\n }",
"LINK createLINK();",
"public abstract String getCommand();",
"@Override\r\n public void execute() {\r\n if (newSource != null) {\r\n edge.setSource(newSource);\r\n } else if (newTarget != null) {\r\n edge.setTarget(newTarget);\r\n }\r\n }",
"public EObject getTarget() {\n\t\treturn adaptee.getTarget();\n\t}",
"java.lang.String getCommand();",
"public GetMirrorRelation(SanBootView _view, String cmd) throws IOException {\r\n super(cmd, _view.getSocket());\r\n view = _view;\r\n }",
"public String getRel() {\r\n return rel;\r\n }",
"public FileNode getLink(){return super.getVirtualSource();}",
"public Relation setRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"public OntologyLinkModeTool()\n \t{\n \tedu.tufts.vue.ontology.ui.OntologyBrowser.getBrowser().addOntologySelectionListener(this);\n \t//creationLink.setID(\"<creationLink>\"); // can't use label or it will draw one \n \t//invisibleLinkEndpoint.addLinkRef(creationLink);\n \tcreationLink=null;\n invisibleLinkEndpoint.setSize(0,0);\n \n \t}",
"public String getOriginalCommand() {\n return command;\n }",
"public UndoableCommand redo() {\n logger.info(String.format(\"----------------[REDOING][%s]\", this));\n return new AddActivityCommand(activityAdded, true);\n }",
"public Relation setRelation(XDI3Segment arcXri, ContextNode targetContextNode);",
"public DNode getTo() { return targetnode; }",
"public DvEHRURI getTarget() {\n return target;\n }",
"Expr rel() throws IOException {\n\t\tExpr e = expr();\t\t\t\t\t\t\t\t\t\t\t// expr ge expr | expr > expr | expr\n\t\tswitch (look.tag) {\n\t\tcase '<':\n\t\tcase Tag.LE:\n\t\tcase Tag.GE:\n\t\tcase '>':\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\treturn new Rel(tok, e, expr());\n\t\tdefault:\n\t\t\treturn e;\n\t\t}\n\t}",
"private Text rel() {\n\t\tText rel = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn rel;\r\n\t}",
"Link createLink();",
"String getCommand();",
"private Agent getRecommenderFromNode()\n\t{\n\t\tMap<String,ComputationOutputBuffer> nodeInputs =\n\t\t\t\tcomputationNode.getInputs();\n\n\t\tAgent agent = new Agent();\n\t\tagent.setType(computationNode.getRecommenderClass());\n if (options == null) {\n \tOptionEdge optionEdge = (OptionEdge)\n \t\t\tnodeInputs.get(\"options\").getNext();\n nodeInputs.get(\"options\").block();\n options = new NewOptions(optionEdge.getOptions());\n }\n\t\tagent.setOptions(options.getOptions());\n\t\treturn agent;\n\t}",
"private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}",
"public String getPrefix() { return \"linknode\"; }",
"public Relation getRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"public String getCommand() {\r\n return command;\r\n }",
"public ReactionCommand( Reaction rule, Bigraph target )\n\t{\n\t\tthis.target = target;\n\t\tthis.rule = rule;\n\t\t//this.part = part;\n\t}",
"public Edge(DomainClass source, DomainClass target, EdgeType type, Direction direction) {\n this.source = source;\n this.target = target;\n this.type = type;\n this.direction = direction;\n }",
"public NAryAssociationClassOrObjectEdge(DiamondNode diamondNode, NodeBase associationClassNode, DiagramView diagram,\n\t\t\tMAssociation assoc, boolean isLink) {\n\t\tsuper(diamondNode, associationClassNode, assoc.name(), diagram);\n\t\tthis.isLink = isLink;\n\t\tinitNodeEdge(diamondNode, associationClassNode);\n\t}",
"public CloneNodeCommand() {\n// validator.configureTemplate().add(new StringToken(Commands.CLONE.getValue()))\n// .add(new StringToken()).add(new StringToken(\"from\"))\n// .add(new StringToken());\n validator.configureTemplate().add(new StringToken(Commands.CLONE.getValue()))\n .add(new MapListToken());\n }",
"public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}",
"public interface AttributeLink extends org.omg.uml.foundation.core.ModelElement {\n /**\n * Returns the value of reference attribute.\n * @return Value of reference attribute.\n */\n public org.omg.uml.foundation.core.Attribute getAttribute();\n /**\n * Sets the value of reference attribute. See {@link #getAttribute} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setAttribute(org.omg.uml.foundation.core.Attribute newValue);\n /**\n * Returns the value of reference value.\n * @return Value of reference value.\n */\n public org.omg.uml.behavioralelements.commonbehavior.Instance getValue();\n /**\n * Sets the value of reference value. See {@link #getValue} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setValue(org.omg.uml.behavioralelements.commonbehavior.Instance newValue);\n /**\n * Returns the value of reference instance.\n * @return Value of reference instance.\n */\n public org.omg.uml.behavioralelements.commonbehavior.Instance getInstance();\n /**\n * Sets the value of reference instance. See {@link #getInstance} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setInstance(org.omg.uml.behavioralelements.commonbehavior.Instance newValue);\n /**\n * Returns the value of reference linkEnd.\n * @return Value of reference linkEnd.\n */\n public org.omg.uml.behavioralelements.commonbehavior.LinkEnd getLinkEnd();\n /**\n * Sets the value of reference linkEnd. See {@link #getLinkEnd} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setLinkEnd(org.omg.uml.behavioralelements.commonbehavior.LinkEnd newValue);\n}",
"@Override\r\n\tpublic LinkMan getModel() {\n\t\treturn linkman;\r\n\t}",
"@Override\n\t\t\tprotected Command getOpenCommand(Request request) {\n\t\t\t\tDiagram diagramToOpen = getDiagramToOpen();\n\t\t\t\tif (diagramToOpen != null) {\n\t\t\t\t\treturn new OpenDiagramCommand(diagramToOpen).toGEFCommand();\n\t\t\t\t}\n\t\t\t\t// fjcano :: if no diagram is available to open, check if a\n\t\t\t\t// new one can be created\n\t\t\t\tString diagramToCreate = getDiagramKindToCreate();\n\t\t\t\tif (diagramToCreate != null) {\n\t\t\t\t\tIGraphicalEditPart host = MDTUtil\n\t\t\t\t\t\t\t.getHostGraphicalEditPart(this);\n\t\t\t\t\treturn new OpenAsDiagramCommand(getGMFREsource(host), host\n\t\t\t\t\t\t\t.resolveSemanticElement(), diagramToCreate)\n\t\t\t\t\t\t\t.toGEFCommand();\n\t\t\t\t}\n\t\t\t\t// fjcano :: by default, open the properties view\n\t\t\t\tTransactionalEditingDomain domain = getEditingDomain();\n\t\t\t\tif (domain != null) {\n\t\t\t\t\treturn (new OpenViewCommand(domain, viewID)).toGEFCommand();\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}",
"public String getCommand() { return command; }",
"public EncapsulatedIRCCommand getNextCommand();",
"private void createTargetArrows(EdgeAppearanceCalculator eac) {\r\n\t \t\r\n\t DiscreteMapping discreteMapping = new DiscreteMapping\r\n (Arrow.NONE,\r\n EDGE_TYPE,\r\n ObjectMapping.EDGE_MAPPING);\r\n\r\n\t \tdiscreteMapping.putMapValue(ACTIVATION, Arrow.BLACK_DELTA);\r\n\t \tdiscreteMapping.putMapValue(CATALYSIS, Arrow.BLACK_CIRCLE);\r\n\t discreteMapping.putMapValue(INHIBITION, Arrow.BLACK_T);\r\n\r\n\t GenericEdgeArrowCalculator edgeTargetArrowCalculator =\r\n new GenericEdgeArrowCalculator(\"SimpleBioMoleculeEditor target arrows\",\r\n discreteMapping);\r\n eac.setEdgeTargetArrowCalculator(edgeTargetArrowCalculator);\r\n System.out.println (\"Set edge target arrow calculator to \" + edgeTargetArrowCalculator);\r\n\r\n\t }",
"public RelationshipNode( metamodel.Relationship r ) {\n this.relationship = r;\n }",
"protected String newLinkName(){\n\t\treturn \"WomoEvtLnk_\" + linkNr++;\n\t}",
"public String connectRelationship(Context context,\r\n \t\tRelationshipType relationshipType,\r\n \t\tjava.lang.String relId, String strNewRelId,\r\n \t\tboolean isFrom)throws Exception\r\n {\r\n \tString fromRelId = null;\r\n \tString toRelId = null;\r\n \tString connId = null;\r\n \tStringBuffer sbCmd = new StringBuffer();\r\n \tStringBuffer sbCmd2 = new StringBuffer();\r\n try\r\n {\r\n \tif(isFrom)\r\n \t{\r\n \t\tfromRelId = strNewRelId;\r\n \t\ttoRelId = relId;\r\n \t}else\r\n \t{\r\n \t\tfromRelId = relId;\r\n \t\ttoRelId = strNewRelId;\r\n \t}\r\n\r\n \tsbCmd.append(\"add connection \\\"\");\r\n \tsbCmd.append(relationshipType);\r\n \tsbCmd.append(\"\\\" fromrel \\\"\");\r\n \tsbCmd.append(fromRelId);\r\n \tsbCmd.append(\"\\\" torel \\\"\");\r\n \tsbCmd.append(toRelId);\r\n \tsbCmd.append(\"\\\" select id dump;\");\r\n \t\r\n \tsbCmd2.append(\"add connection \");\r\n \tsbCmd2.append(\"$1\");\r\n \tsbCmd2.append(\" fromrel \");\r\n \tsbCmd2.append(\"$2\");\r\n \tsbCmd2.append(\" torel \");\r\n \tsbCmd2.append(\"$3\");\r\n \tsbCmd2.append(\" select $4 dump\");\r\n\r\n \tmqlLogRequiredInformationWriter(\"MQL command to be executed ::\" + \"\\n\" + sbCmd.toString()+ \"\\n\");\r\n \tconnId = MqlUtil.mqlCommand(context, sbCmd2.toString(), true,relationshipType.getName(),fromRelId,toRelId,\"id\");\r\n\r\n }\r\n catch (Exception e)\r\n {\r\n \tmqlLogRequiredInformationWriter(\"MQL command execution failed in 'connectRelationship' API ::\" + sbCmd.toString()+ \"\\n\");\r\n \te.printStackTrace();\r\n throw new FrameworkException(e);\r\n }\r\n\t\treturn connId;\r\n }",
"public interface Edge\n{\n\t/**\n\t * Returns the node that the <i>head</i> of the head\n\t * is connected to.\n\t * @return The head Node.\n\t */\n\tpublic Node getHeadNode();\n\n\t/**\n\t * Returns the node that the <i>tail</i> of the edge\n\t * is connected to.\n\t * @return The tail Node.\n\t */\n\tpublic Node getTailNode();\n\n\t/**\n\t * Allows an object to be associated with the <code>Edge</code>\n\t * @param o The object to be set as the userObject\n\t */\n\tpublic void setUserObject(Object o);\n\n\t/**\n\t * Gets the userObject, previously set with <code>setUserObject(Object o)</code>\n\t * @return The userObject, or <code>null</code> if no object has been set.\n\t */\n\tpublic Object getUserObject();\n\n\t/**\n\t * Causes any information in the path that represents the <code>Egde</code>\n\t * to be cleared, such as origin location and any control points.\n\t */\n\tpublic void resetPath();\n\n\t/**\n\t * Sets the location of the start of the path that represents\n\t * the <code>Edge</code>.\n\t * @param x The horizontal location.\n\t * @param y The vertical location.\n\t */\n\tpublic void setPathOrigin(int x, int y);\n\n\t/**\n\t * Extends the <code>Edge</code> using the following control points to\n\t * form a Bezier curve extension to the end point (x3, y3).\n\t * @param x1 Horizontal location of control point 1\n\t * @param y1 Vertical location of control point 1\n\t * @param x2 Horizontal location of control point 2\n\t * @param y2 Vertical location of control point 2\n\t * @param x3 Horizontal location of the end point.\n\t * @param y3 Vertical location of the end point.\n\t */\n\tpublic void pathTo(int x1, int y1, int x2, int y2, int x3, int y3);\n\n\t/**\n\t * Extends the <code>Edge</code> to the specified location using\n\t * a straight line.\n\t * @param x The horizontal location of the end point.\n\t * @param y The vertical location of the end point.\n\t */\n\tpublic void pathTo(int x, int y);\n\n\t/**\n\t * Sets the <code>Edge's</code> arrowhead.\n\t * @param baseX The x location of the centre of the arrowhead baseline.\n\t * @param baseY The y location of the centre of the arrowhead tip.\n\t * @param tipX The x location of the tip of the arrowhead.\n\t * @param tipY The y location of the tip of the arrowhead.\n\t */\n\tpublic void setArrowHead(int baseX, int baseY, int tipX, int tipY);\n\n\t/**\n\t * Sets the <code>Edge's</code> arrowtail\n\t * @param baseX The x location of the centre of the arrowhead baseline.\n\t * @param baseY The y location of the centre of the arrowhead tip.\n\t * @param tipX The x location of the tip of the arrowhead.\n\t * @param tipY The y location of the tip of the arrowhead.\n\t */\n\tpublic void setArrowTail(int baseX, int baseY, int tipX, int tipY);\n\n\t/**\n\t * Sets the <code>Edge</code>'s label position.\n\t * @param x The horizontal location (in pixels).\n\t * @param y The vertical location (in pixels).\n\t */\n\tpublic void setLabelPosition(int x, int y);\n\n\t/**\n\t * Retrieves the position of the <code>Edge's</code> label.\n\t * @return A <code>Point</code> containing the position of\n\t * the label.\n\t */\n\tpublic Point getLabelPosition();\n\n\t/**\n\t * Gets the <code>Shape</code> that represents the <code>Edge</code>.\n\t * @return The <code>Shape</code> of the <code>Edge</code>.\n\t */\n\tpublic Shape getShape();\n\n\t/**\n\t * Gets the direction of the <code>Edge</code>. This is one of the\n\t * predefined direction from the <code>GraphModel</code> interface.\n\t * @return The direction of the <code>Edge</code>.\n\t */\n\tpublic int getDirection();\n\n\n}",
"EReference getRelationReference();",
"public Living getTarget();",
"public Command getCommand() {\n\t\treturn redCom;\n\t}",
"@InVertex\n Object getTarget();",
"public String getCommand(){\n return getCommand(null);\n }",
"public String getCommand() {\n return command;\n }",
"public String getCommand() {\n return command;\n }",
"public String getLink();",
"public Link linkTo() {\n Label text = Label.of(name);\n URIObject target = FSURICodec.encode(this);\n return Link.textTarget(text, target);\n }",
"String getTarget();",
"String getTarget();",
"@Override\n\tpublic ParseState handle(final String namespace, final String tag, final String qName, final Attributes atts, final ParseState current) throws SAXException, NdexException {\n\t\tString href = atts.getValue(ReadDataManager.XLINK, \"href\");\n\n\t\tif (href == null) {\n\t\t\t// Create the edge:\n\t//\t\tid = getId(atts);\n\t\t\tString label = getLabel(atts);\n\t\t\tString sourceId = atts.getValue(\"source\");\n\t\t\tString targetId = atts.getValue(\"target\");\n\t\t\tString interaction = null;\n\t\t\t\n\t\t\t// check if we can parse the predicate from from label\n\t\t\t\n\t\t\tMatcher m = predictatePattern.matcher(label);\n\t\t\t\n\t\t\tif ( m.find()) \n\t\t\t\tinteraction = m.group(1);\n\n\t//Long edgeId = \n\t\t\tmanager.addEdge(sourceId, interaction, targetId);\n\n\t\t\tmanager.getCurrentXGMMLEdge().getProps().add(new NdexPropertyValuePair(LABEL,label));\n\t\t\t//TODO: add the rest of atts as properties to the edge.\n\t\t\t\n\n\t\t} else {\n\t\t\t// The edge might not have been created yet!\n\t\t\t// Save the reference so it can be added to the network after the\n\t\t\t// whole graph is parsed.\n\t\t\tthrow new NdexException(\"not yet handling XLINK in XGMML\");\n\t\t}\n\n\t\treturn current;\n\t}",
"EObject getAnchor();",
"public String getTarget() {\n return this.target;\n }",
"MethodElement getLinkedElement();",
"public final String entryRuleRelateOp() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleRelateOp = null;\n\n\n try {\n // InternalSafetyParser.g:7491:48: (iv_ruleRelateOp= ruleRelateOp EOF )\n // InternalSafetyParser.g:7492:2: iv_ruleRelateOp= ruleRelateOp EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getRelateOpRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleRelateOp=ruleRelateOp();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleRelateOp.getText(); \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public String getCommand() {\n return this.command;\n }",
"public JmtEdge connect(JmtCell source, JmtCell target) {\r\n \t\treturn connect(source, target, false);\r\n \t}",
"public void relate(HNode id, Object o);",
"protected abstract Content getClassLink(LinkInfo linkInfo);",
"public String getCommand() {\n\n return command;\n }",
"public String getTarget() {\n return target;\n }",
"public String getTarget() {\n return target;\n }",
"public String getCommand(){\n return command;\n }",
"public String Command() {\n\treturn command;\n }",
"public ISemanticLink createSemanticLink(IBusinessObject dest, LinkKind type)\n throws OculusException;",
"public Edge<V> getEdge(V source, V target);",
"String getTarget() {\r\n return this.target;\r\n }",
"public IHyperLink attachLink()\n throws OculusException;",
"public OSLink( rcNode creator, HashMap hAttrs) {\n rcSource = creator;\n szSourcePort = (OSPort)hAttrs.get( \"SourcePort\");\n szDestPort = (String)hAttrs.get( \"DestinationPort\");\n szDestName =(String) hAttrs.get( \"DestinationName\");\n }",
"public void actionPerformed(ActionEvent e) {\n \t\tif (e.getActionCommand().startsWith(\"node\")) {\n \t\t\tif (e.getActionCommand().endsWith(\"delete\")) {\n if(newGui==null){\n newGui = new GateProGUI(\"192.168.208.69\",2257,\"JulianPC\",\"ngantrung\");\n }\n\n newGui.setConnectInfo(\"192.168.4.95:23\");\n newGui.showMe(null);\n \t\t\t} else if (e.getActionCommand().endsWith(\"editText\")) {\n\n \t\t\t} else if (e.getActionCommand().endsWith(\"addEdge\")) {\n\n\n \t\t\t} else if (e.getActionCommand().endsWith(\"addNode\")) {\n\n \t\t\t}\n \t\t} else {\n \t\t\tif (e.getActionCommand().equals(\"addNode\")) {\n\n\n \t\t\t} else if (e.getActionCommand().equals(\"fixEdge\")) {\n if(clickedItem instanceof EdgeItem){\n EdgeItem edge = ((EdgeItem)clickedItem);\n if(edge.getString(\"status\").equalsIgnoreCase(\"wrong\")){\n\n // Create Gatepro session\n// logScroll.setVisible(true);\n\n\n NodeItem sourceItem = edge.getSourceItem();\n NodeItem targetItem = edge.getTargetItem();\n// g.getEdgeTable().removeRow(edge.getRow());\n Double weight = Double.parseDouble(edge.getString(\"weight\"));\n ((Table)vis.getSourceData(treeEdges)).removeRow(edge.getRow());\n\n String query =null;\n boolean mainPath;\n if(weight==21){\n mainPath = true;\n query = \"name = '\"+sourceItem.getString(\"mainPath\")+\"'\";\n }else{\n mainPath = false;\n query = \"name = '\"+sourceItem.getString(\"slavePath\")+\"'\";\n }\n Predicate myPredicate1 = (Predicate) ExpressionParser.parse(query);\n Iterator ite = vis.getVisualGroup(treeNodes).tuples(myPredicate1);\n while(ite.hasNext()){\n targetItem = (NodeItem)ite.next();\n break;\n }\n\n createGateProSession(\"create link between \" + sourceItem.getString(\"name\") + \" --- \" + targetItem.getString(\"name\"));\n\n Edge ed= g.getEdge(g.addEdge(sourceItem.getRow(), targetItem.getRow()));\n if(mainPath){\n ed.setString(\"weight\",\"1\");\n }else{\n ed.setString(\"weight\",\"2\");\n }\n\n ed.setString(\"status\",\"right\");\n if(!targetItem.isVisible()){\n TupleSet ts = m_vis.getFocusGroup(hover);\n ts.setTuple(sourceItem);\n myPredicate.setSearchOneNodeInfo(sourceItem.getString(\"name\"),sourceItem.getString(\"mainPath\"),sourceItem.getString(\"slavePath\"));\n }else{\n myPredicate.setAllInfo(true);\n }\n\n vis.run(\"filter\");\n Thread showLog = new Thread(){\n public void run(){\n try{\n Thread.sleep(2000);\n logDetailDialog.setVisible(true);\n }catch (Exception ex){\n\n }\n\n }\n };\n showLog.start();\n\n }\n }\n \t\t\t}\n \t\t}\n \t}",
"public RedoCommand() {\n }",
"public Node getTarget() {\n return target;\n }",
"OperationNode getNode();",
"Edge createEdge(Vertex src, Vertex tgt, boolean directed);",
"@Override\n\tpublic VType getTarget() {\n\t\t// TODO: Add your code here\n\t\treturn super.to;\n\t}",
"public AstNode getTarget() {\n return target;\n }",
"@Test\n public void testToRulenode() {\n System.out.println(\"AbsolutePathNode - testToRulenode\");\n final AbsolutePathNode instance = new AbsolutePathNode();\n final String expResult = \"apath\";\n final String result = instance.toRulenode();\n System.out.printf(\"Expected: %s\\n\", expResult);\n System.out.printf(\" Result: %s\\n\", result);\n assertEquals(expResult, result);\n }",
"protected String buildLink(Node targetNode) {\r\n if (targetNode == null) {\r\n return null;\r\n }\r\n return requestContext.getHstLinkCreator()\r\n .create(targetNode, requestContext, ContainerConstants.MOUNT_ALIAS_SITE)\r\n .toUrlForm(requestContext, false);\r\n }",
"public abstract String getLaunchCommand();",
"public void userNodeCommand(String[] command)\n\t{\n\t\t\n\t\tif(command[0].equals(\"print-shortest-path\"))\n\t\t{\n\t\t\tlinkWeights.sort(sortByWeight()); // have the linkWeights get sorted by their weights.\n\t\t\tCollections.reverse(linkWeights); // simply reverse this list since the list was being sorted in terms of smallest to highest.\n\t\t\t\n\t\t\t// loop through the link weights and print them according to size.\n\t\t\tfor(int i = 0; i < linkWeights.size(); i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(linkWeights.get(i).getSecond().getFirst() + \":\" + linkWeights.get(i).getSecond().getSecond()\n\t\t\t\t\t\t+ \"--\" + linkWeights.get(i).getThird() + \"--\"); // print this to console to get the list of the linkWeights in order by the nodes.\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(command[0].equals(\"exit-overlay\"))\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\tTCPSender deregisterMe = new TCPSender(registrySocket);\n\t\t\t\tNodeDeregistrationRequestMessage ndrm = new NodeDeregistrationRequestMessage();\n\t\t\t\tbyte[] msgToSend = ndrm.getDeregistrationBytes(portNum, registrySocket);\n\t\t\t\tderegisterMe.sendData(msgToSend); // send this command to the registry to begin the deregistration process.\n\t\t\t} \n\t\t\tcatch (IOException e) {\n\t\t\t\tSystem.err.println(\"Messaging node caught exception while trying to deregister: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"LinkReader addLink(NodeReader source, NodeReader dest, boolean overwrite) throws NoNodeException, LinkAlreadyPresentException, ServiceException;",
"public JmtEdge connect(JmtCell source, JmtCell target, boolean forced) {\r\n \t\t// If one of parameter is null, returns null\r\n \t\tif (source == null || target == null) {\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\t// Retrives source and target keys to create connection\r\n \t\tObject sourceKey = ((CellComponent) source.getUserObject()).getKey();\r\n \t\tObject targetKey = ((CellComponent) target.getUserObject()).getKey();\r\n \t\t// Initializes correct layout for routing edges\r\n \t\tMap map = new Hashtable();\r\n \t\tGraphConstants.setRouting(map, GraphConstants.ROUTING_SIMPLE);\r\n \t\tGraphConstants.setRouting(map, JmtGraphConstants.ROUTING_JMT);\r\n \t\tGraphConstants.setLineEnd(map, GraphConstants.ARROW_CLASSIC);\r\n \t\tGraphConstants.setEndFill(map, true);\r\n \t\tMap<Object, Map> viewMap = new Hashtable<Object, Map>();\r\n \t\tJmtEdge connection = new JmtEdge(sourceKey, targetKey, this);\r\n \t\tviewMap.put(connection, map);\r\n \t\tObject[] insert = new Object[] { connection };\r\n \t\tConnectionSet cs = new ConnectionSet();\r\n \t\t// Finds sourcePort\r\n \t\tIterator it;\r\n \t\tit = source.getChildren().iterator();\r\n \t\tDefaultPort tmpPort, sourcePort, targetPort;\r\n \t\tsourcePort = null;\r\n \t\twhile (it.hasNext()) {\r\n \t\t\ttmpPort = (DefaultPort) it.next();\r\n \t\t\tif (tmpPort instanceof OutputPort) {\r\n \t\t\t\tsourcePort = tmpPort;\r\n \t\t\t}\r\n \t\t}\r\n \t\t// Finds targetPort\r\n \t\tit = target.getChildren().iterator();\r\n \t\ttargetPort = null;\r\n \t\twhile (it.hasNext()) {\r\n \t\t\ttmpPort = (DefaultPort) it.next();\r\n \t\t\tif (tmpPort instanceof InputPort) {\r\n \t\t\t\ttargetPort = tmpPort;\r\n \t\t\t}\r\n \t\t}\r\n \t\tif (sourcePort != null && targetPort != null) {\r\n \t\t\tcs.connect(connection, sourcePort, true);\r\n \t\t\tcs.connect(connection, targetPort, false);\r\n \t\t\t// Adds connection to the graph only if it can be created into data\r\n \t\t\t// structure\r\n \t\t\tif (model.setConnected(sourceKey, targetKey, true) || forced) {\r\n \t\t\t\tgraph.getModel().insert(insert, viewMap, cs, null, null);\r\n \t\t\t\treturn connection;\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}",
"public Link(DvText meaning, DvText type, DvEHRURI target) {\n if(meaning == null) {\n throw new IllegalArgumentException(\"null meaning\");\n }\n if(type == null) {\n throw new IllegalArgumentException(\"null type\");\n }\n if(target == null) {\n throw new IllegalArgumentException(\"null target\");\n }\n this.meaning = meaning;\n this.type = type;\n this.target = target;\n }",
"Node navigate(String nodeType, String nodeId);",
"@Override\r\n\tpublic int getLinkDestinationId() {\n\t\treturn destination.getNodeId();\r\n\t}",
"final public String getActionCommand() {\n return command;\n }",
"public interface Link<T> {\n\n /**\n * Resolve the link and get the underlying object.\n *\n * @return the target of the link, not null\n * @throws DataNotFoundException if the link is not resolved\n */\n T resolve();\n\n /**\n * Get the type of the object that this link targets.\n *\n * @return the type of the object, not null\n */\n Class<T> getTargetType();\n\n // TODO - do we want a method to generate a resolved version of a config object e.g. new ResolvedConfigLink(resolver.resolve())\n}",
"public abstract String toUrl(Object inNode);",
"@Override\n\t\t\t\t\tpublic String call() throws Exception {\n\t\t\t\t\t\treturn reverser.reverseString(target);\n\t\t\t\t\t}",
"public abstract String getCommandName();"
] | [
"0.58884394",
"0.56282854",
"0.5528935",
"0.5250662",
"0.5199547",
"0.50812286",
"0.49638382",
"0.49353433",
"0.4896142",
"0.48629707",
"0.4797866",
"0.47844714",
"0.47742617",
"0.4742168",
"0.47382843",
"0.4728288",
"0.47221893",
"0.46676996",
"0.46600556",
"0.46488678",
"0.4639777",
"0.46264324",
"0.46247318",
"0.4620536",
"0.4608816",
"0.45972216",
"0.45911968",
"0.45884007",
"0.45742616",
"0.4573982",
"0.45691568",
"0.45565102",
"0.4538165",
"0.45283803",
"0.45046914",
"0.44935074",
"0.44923374",
"0.44903874",
"0.4489633",
"0.44806382",
"0.44803926",
"0.44770294",
"0.4476251",
"0.4476233",
"0.4462293",
"0.4460554",
"0.44491208",
"0.44470897",
"0.44406572",
"0.44383806",
"0.44333443",
"0.44328535",
"0.4428003",
"0.44271585",
"0.442552",
"0.442552",
"0.4424155",
"0.44210368",
"0.44183666",
"0.44183666",
"0.441171",
"0.44089472",
"0.44044763",
"0.4391035",
"0.43902355",
"0.43868634",
"0.43859747",
"0.43807977",
"0.43756288",
"0.4374847",
"0.43652064",
"0.43652064",
"0.4363249",
"0.43627325",
"0.43598366",
"0.43591043",
"0.43509677",
"0.4349233",
"0.4347222",
"0.43461457",
"0.43402278",
"0.43393847",
"0.4339317",
"0.4329832",
"0.4318986",
"0.43168703",
"0.43166995",
"0.43066853",
"0.43052492",
"0.42971075",
"0.42939648",
"0.42915803",
"0.42914912",
"0.42914134",
"0.42872927",
"0.42820725",
"0.42803448",
"0.42758918",
"0.42632347",
"0.4261883"
] | 0.60011107 | 0 |
Returns command to reorient EReference based link. New link target or source should be the domain model element associated with this node. | protected Command getReorientReferenceRelationshipCommand(
ReorientReferenceRelationshipRequest req) {
switch (getVisualID(req)) {
case ContractRoleAIDEditPart.VISUAL_ID:
return getGEFWrapper(new ContractRoleAIDReorientCommand(req));
case ContractRoleBIDEditPart.VISUAL_ID:
return getGEFWrapper(new ContractRoleBIDReorientCommand(req));
}
return super.getReorientReferenceRelationshipCommand(req);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ReferenceLink createReferenceLink();",
"protected Command getReorientRelationshipCommand(\r\n\t\t\tReorientRelationshipRequest req) {\r\n\t\tswitch (getVisualID(req)) {\r\n\t\tcase FactLinkEditPart.VISUAL_ID:\r\n\t\t\treturn getGEFWrapper(new FactLinkReorientCommand(req));\r\n\t\tcase FactLink2EditPart.VISUAL_ID:\r\n\t\t\treturn getGEFWrapper(new FactLink2ReorientCommand(req));\r\n\t\tcase PlayerBindingEditPart.VISUAL_ID:\r\n\t\t\treturn getGEFWrapper(new PlayerBindingReorientCommand(req));\r\n\t\tcase ExternalFactLinkEditPart.VISUAL_ID:\r\n\t\t\treturn getGEFWrapper(new ExternalFactLinkReorientCommand(req));\r\n\t\t}\r\n\t\treturn super.getReorientRelationshipCommand(req);\r\n\t}",
"@objid (\"000fb1bc-c4bf-1fd8-97fe-001ec947cd2a\")\npublic interface LinkEnd extends UmlModelElement {\n /**\n * The metaclass simple name.\n */\n @objid (\"e6dd0ee9-d2ae-459e-911e-137b205a96a9\")\n public static final String MNAME = \"LinkEnd\";\n\n /**\n * The metaclass qualified name.\n */\n @objid (\"62f5bc44-c159-4a21-873f-c9ba90f5653c\")\n public static final String MQNAME = \"Standard.LinkEnd\";\n\n /**\n * Get the 'graphical owner' related to this end.\n * The owner is the current source or the opposite end's target according to the navigability.\n */\n @objid (\"8b942215-f0a1-454e-9f8a-596315ee40d5\")\n Instance getOwner();\n\n @objid (\"006058b0-2963-1080-943a-001ec947cd2a\")\n void setTarget(final Instance value, final boolean fixModel);\n\n @objid (\"006059f0-2963-1080-943a-001ec947cd2a\")\n void setSource(final Instance value, final boolean fixModel);\n\n /**\n * Sets both ends sources and targets according to the given navigability.\n * <ul>\n * <li>THISSIDE: only current source and target must be filled.</li>\n * <li>OHERSIDE: only opposite source and target must be filled.</li>\n * <li>BOTHSIDES: current source must be equals to opposite target as well as current target and opposite source.</li>\n * <li>NONE: both sources must be filled, but no target</li>\n * </ul>\n * @param value whether or not to synchronize the other end and both source/target values. This end will be made navigable whatever the current navigability is.\n */\n @objid (\"50d3075c-1fcb-4a03-a648-16729171986f\")\n void setNavigable(boolean value);\n\n @objid (\"6d12e031-ad22-449a-9171-6a88d4158b48\")\n boolean isNavigable();\n\n /**\n * Getter for attribute 'LinkEnd.IsOrdered'\n * \n * Metamodel description:\n * <i>Determines if this LinkEnd is ordered.</i>\n */\n @objid (\"fcf73d01-d406-41e9-9490-067237966153\")\n boolean isIsOrdered();\n\n /**\n * Setter for attribute 'LinkEnd.IsOrdered'\n * \n * Metamodel description:\n * <i>Determines if this LinkEnd is ordered.</i>\n */\n @objid (\"85e0d2fc-c5f1-47a6-a7a9-d1d92c110978\")\n void setIsOrdered(boolean value);\n\n /**\n * Getter for attribute 'LinkEnd.IsUnique'\n * \n * Metamodel description:\n * <i>Determines if this LinkEnd is unique.</i>\n */\n @objid (\"ef9777b4-ed2a-4341-bb22-67675cddb70a\")\n boolean isIsUnique();\n\n /**\n * Setter for attribute 'LinkEnd.IsUnique'\n * \n * Metamodel description:\n * <i>Determines if this LinkEnd is unique.</i>\n */\n @objid (\"d7a49a3a-2f15-4f2c-91a0-847c1e869a0c\")\n void setIsUnique(boolean value);\n\n /**\n * Getter for attribute 'LinkEnd.MultiplicityMax'\n * \n * Metamodel description:\n * <i>Maximum value of the Link's multiplicity.</i>\n */\n @objid (\"7bba25c1-4310-45fa-b2ce-d6cdc992be70\")\n String getMultiplicityMax();\n\n /**\n * Setter for attribute 'LinkEnd.MultiplicityMax'\n * \n * Metamodel description:\n * <i>Maximum value of the Link's multiplicity.</i>\n */\n @objid (\"0ef18ad8-3371-4bb9-933d-7b4e156bea34\")\n void setMultiplicityMax(String value);\n\n /**\n * Getter for attribute 'LinkEnd.MultiplicityMin'\n * \n * Metamodel description:\n * <i>Minimum value of the Link's multiplicity. When placed on a target end, the multiplicity specifies the number of target instances that may be associated with a single source instance across the given Link.</i>\n */\n @objid (\"258318a3-c0bd-4ddc-971b-1e72b90fcbb1\")\n String getMultiplicityMin();\n\n /**\n * Setter for attribute 'LinkEnd.MultiplicityMin'\n * \n * Metamodel description:\n * <i>Minimum value of the Link's multiplicity. When placed on a target end, the multiplicity specifies the number of target instances that may be associated with a single source instance across the given Link.</i>\n */\n @objid (\"06670c6b-fb3b-41b3-aefd-29ea57042310\")\n void setMultiplicityMin(String value);\n\n /**\n * Getter for relation 'LinkEnd->Link'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"780bebb2-6884-4789-bdef-ca10444ad5fb\")\n Link getLink();\n\n /**\n * Setter for relation 'LinkEnd->Link'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"cd72633c-53d3-4556-b5de-b52113e3a225\")\n void setLink(Link value);\n\n /**\n * Getter for relation 'LinkEnd->Target'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"19651663-f981-4f11-802a-d5d7cbd6f88a\")\n Instance getTarget();\n\n /**\n * Setter for relation 'LinkEnd->Target'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"8fb70c43-b102-4a64-9424-c7cc07d58fcf\")\n void setTarget(Instance value);\n\n /**\n * Getter for relation 'LinkEnd->OppositeOwner'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"aaf16daa-ed28-496e-bee1-ebf665987a0e\")\n LinkEnd getOppositeOwner();\n\n /**\n * Setter for relation 'LinkEnd->OppositeOwner'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"67ebbbfe-83e1-4802-a6be-2ffada70c737\")\n void setOppositeOwner(LinkEnd value);\n\n /**\n * Getter for relation 'LinkEnd->RealizedInformationFlow'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"d5ab3449-47f3-49a5-9936-6634cda6cb2a\")\n EList<InformationFlow> getRealizedInformationFlow();\n\n /**\n * Filtered Getter for relation 'LinkEnd->RealizedInformationFlow'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"b9cdbb67-9b00-43b4-aa83-a5150ca375e9\")\n <T extends InformationFlow> List<T> getRealizedInformationFlow(java.lang.Class<T> filterClass);\n\n /**\n * Getter for relation 'LinkEnd->Model'\n * \n * Metamodel description:\n * <i>The LinkEnd is an occurrence of this AssociationEnd.</i>\n */\n @objid (\"661a22c1-2de2-4b65-a955-6b755461b1ac\")\n AssociationEnd getModel();\n\n /**\n * Setter for relation 'LinkEnd->Model'\n * \n * Metamodel description:\n * <i>The LinkEnd is an occurrence of this AssociationEnd.</i>\n */\n @objid (\"1a8cb555-55ca-418e-8378-2f50ba867c6b\")\n void setModel(AssociationEnd value);\n\n /**\n * Getter for relation 'LinkEnd->Consumer'\n * \n * Metamodel description:\n * <i>Used for Connectors between Ports to designate the RequiredInterface(s) set the LinkEnd is connected to.</i>\n */\n @objid (\"8f1c9d42-a8ac-4f52-b3f8-2b5f076b4348\")\n RequiredInterface getConsumer();\n\n /**\n * Setter for relation 'LinkEnd->Consumer'\n * \n * Metamodel description:\n * <i>Used for Connectors between Ports to designate the RequiredInterface(s) set the LinkEnd is connected to.</i>\n */\n @objid (\"443e3927-5e5c-43bb-9d78-44c58df8e6fd\")\n void setConsumer(RequiredInterface value);\n\n /**\n * Getter for relation 'LinkEnd->Opposite'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"e10bb26d-c5e7-4f7e-b4cb-8c5551328d52\")\n LinkEnd getOpposite();\n\n /**\n * Setter for relation 'LinkEnd->Opposite'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"322f7781-7f9f-47de-8df7-a12ebfa5784a\")\n void setOpposite(LinkEnd value);\n\n /**\n * Getter for relation 'LinkEnd->Source'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"4e37aa68-c0f7-4404-a2cb-e6088f1dda62\")\n Instance getSource();\n\n /**\n * Setter for relation 'LinkEnd->Source'\n * \n * Metamodel description:\n * <i>null</i>\n */\n @objid (\"fddcf86a-595c-4c38-ad3f-c2a660a9497b\")\n void setSource(Instance value);\n\n /**\n * Getter for relation 'LinkEnd->Provider'\n * \n * Metamodel description:\n * <i>Used for Connectors between Ports to designate the ProvidedInterface(s) set the LinkEnd is connected to.</i>\n */\n @objid (\"13e63a4b-fab3-4b16-b7f9-69b4d6187c94\")\n ProvidedInterface getProvider();\n\n /**\n * Setter for relation 'LinkEnd->Provider'\n * \n * Metamodel description:\n * <i>Used for Connectors between Ports to designate the ProvidedInterface(s) set the LinkEnd is connected to.</i>\n */\n @objid (\"a3188449-2f95-4e02-a233-e2e48fa5e5b0\")\n void setProvider(ProvidedInterface value);\n\n}",
"public TransitionTo<CircularRef1> getLink() {\n return linkToCR1;\n }",
"public abstract String getManipulatorLinkLabel();",
"protected Command getReorientRelationshipCommand(\n\t\t\tReorientRelationshipRequest req) {\n\t\tswitch (getVisualID(req)) {\n\t\tcase ScopeToCompositeActionMappingEditPart.VISUAL_ID:\n\t\t\treturn getGEFWrapper(new ScopeToCompositeActionMappingReorientCommand(\n\t\t\t\t\treq));\n\t\t}\n\t\treturn super.getReorientRelationshipCommand(req);\n\t}",
"EReference getRelationReference();",
"private Text rel() {\n\t\tText rel = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn rel;\r\n\t}",
"CharNode getLink();",
"LinkRelation createLinkRelation();",
"Expr rel() throws IOException {\n\t\tExpr e = expr();\t\t\t\t\t\t\t\t\t\t\t// expr ge expr | expr > expr | expr\n\t\tswitch (look.tag) {\n\t\tcase '<':\n\t\tcase Tag.LE:\n\t\tcase Tag.GE:\n\t\tcase '>':\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\treturn new Rel(tok, e, expr());\n\t\tdefault:\n\t\t\treturn e;\n\t\t}\n\t}",
"public String getRel() {\r\n return rel;\r\n }",
"public org.omg.uml.behavioralelements.commonbehavior.LinkEnd getLinkEnd();",
"LINK createLINK();",
"public IHyperLink attachLink()\n throws OculusException;",
"void associate(SNode outputNode, SReferenceLink role, String targetModelRef, String targetNodeId);",
"public void onLinkEdit()\n {\n getLinkWizard().start(LinkWizardStep.LINK_REFERENCE_PARSER.toString(), linkConfigFactory.createLinkConfig());\n }",
"EObject getAnchor();",
"EReference getModelReference();",
"public interface InternalLinkReferencePropertiesEditionPart {\n\n\t/**\n\t * @return the referencedLink\n\t * \n\t */\n\tpublic EObject getReferencedLink();\n\n\t/**\n\t * Init the referencedLink\n\t * @param settings the combo setting\n\t */\n\tpublic void initReferencedLink(EObjectFlatComboSettings settings);\n\n\t/**\n\t * Defines a new referencedLink\n\t * @param newValue the new referencedLink to set\n\t * \n\t */\n\tpublic void setReferencedLink(EObject newValue);\n\n\t/**\n\t * Defines the button mode\n\t * @param newValue the new mode to set\n\t * \n\t */\n\tpublic void setReferencedLinkButtonMode(ButtonsModeEnum newValue);\n\n\t/**\n\t * Adds the given filter to the referencedLink edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addFilterToReferencedLink(ViewerFilter filter);\n\n\t/**\n\t * Adds the given filter to the referencedLink edition editor.\n\t * \n\t * @param filter\n\t * a viewer filter\n\t * @see org.eclipse.jface.viewers.StructuredViewer#addFilter(ViewerFilter)\n\t * \n\t */\n\tpublic void addBusinessFilterToReferencedLink(ViewerFilter filter);\n\n\n\n\n\n\t/**\n\t * Returns the internationalized title text.\n\t * \n\t * @return the internationalized title text.\n\t * \n\t */\n\tpublic String getTitle();\n\n\t// Start of user code for additional methods\n\t\n\t// End of user code\n\n}",
"public Relation setRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"public Relation setRelation(XDI3Segment arcXri, ContextNode targetContextNode);",
"public OntologyLinkModeTool()\n \t{\n \tedu.tufts.vue.ontology.ui.OntologyBrowser.getBrowser().addOntologySelectionListener(this);\n \t//creationLink.setID(\"<creationLink>\"); // can't use label or it will draw one \n \t//invisibleLinkEndpoint.addLinkRef(creationLink);\n \tcreationLink=null;\n invisibleLinkEndpoint.setSize(0,0);\n \n \t}",
"public FileNode getLink(){return super.getVirtualSource();}",
"Link createLink();",
"public String getReference();",
"public String getReference();",
"@ApiModelProperty(value = \"Hyperlink reference to the target specification\")\n\n\n public String getHref() {\n return href;\n }",
"public String getLink();",
"public final void rule__ReorientExpression__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1855:1: ( ( ruleReorientRef ) | ( ruleBasicReorientExpression ) )\n int alt12=2;\n int LA12_0 = input.LA(1);\n\n if ( (LA12_0==RULE_ID) ) {\n alt12=1;\n }\n else if ( (LA12_0==61) ) {\n alt12=2;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 12, 0, input);\n\n throw nvae;\n }\n switch (alt12) {\n case 1 :\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1856:1: ( ruleReorientRef )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1856:1: ( ruleReorientRef )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1857:1: ruleReorientRef\n {\n before(grammarAccess.getReorientExpressionAccess().getReorientRefParserRuleCall_0()); \n pushFollow(FOLLOW_ruleReorientRef_in_rule__ReorientExpression__Alternatives3943);\n ruleReorientRef();\n\n state._fsp--;\n\n after(grammarAccess.getReorientExpressionAccess().getReorientRefParserRuleCall_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1862:6: ( ruleBasicReorientExpression )\n {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1862:6: ( ruleBasicReorientExpression )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1863:1: ruleBasicReorientExpression\n {\n before(grammarAccess.getReorientExpressionAccess().getBasicReorientExpressionParserRuleCall_1()); \n pushFollow(FOLLOW_ruleBasicReorientExpression_in_rule__ReorientExpression__Alternatives3960);\n ruleBasicReorientExpression();\n\n state._fsp--;\n\n after(grammarAccess.getReorientExpressionAccess().getBasicReorientExpressionParserRuleCall_1()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public Link linkTo() {\n Label text = Label.of(name);\n URIObject target = FSURICodec.encode(this);\n return Link.textTarget(text, target);\n }",
"protected String buildLink(HippoBean reference) {\r\n if (reference == null) {\r\n return null;\r\n }\r\n return buildLink(reference.getNode());\r\n }",
"public DvEHRURI getTarget() {\n return target;\n }",
"public Relation getRelation(XDI3Segment arcXri, XDI3Segment targetContextNodeXri);",
"@ApiModelProperty(required = true, value = \"URI providing the resource address for the other product that is related to the referenced one\")\n @NotNull\n public String getHref() {\n return href;\n }",
"String getReference();",
"String getReference();",
"public void setReferencedLink(EObject newValue);",
"public Node getReference() {\n return this.reference;\n }",
"@Override\r\n public void undo() {\r\n if (newSource != null) {\r\n edge.setSource(oldSource);\r\n } else if (newTarget != null) {\r\n edge.setTarget(oldTarget);\r\n }\r\n }",
"LinkReader addLink(NodeReader source, NodeReader dest, boolean overwrite) throws NoNodeException, LinkAlreadyPresentException, ServiceException;",
"@Override\r\n public void execute() {\r\n if (newSource != null) {\r\n edge.setSource(newSource);\r\n } else if (newTarget != null) {\r\n edge.setTarget(newTarget);\r\n }\r\n }",
"public void generateEnquireLink();",
"public E getReferenceId() {\n return referenceId;\n }",
"String getLink();",
"private String replaceIntermediateObjectWithRel(Context context, String strOldRelId ,String strNewRelId ,String strNewRelIdSide,Map attributeMap) throws Exception {\r\n\r\n\t\tString strNewConnId=\"\";\r\n\t\tboolean isRelToRel = true;\r\n\t\tboolean isFrom = true;\r\n\r\n\t\ttry{\r\n\r\n\t\tDomainRelationship domRel = new DomainRelationship(strOldRelId);\r\n //Get the attributes on Relationship\r\n /*Map attributeMap = new HashMap();\r\n attributeMap = domRel.getAttributeMap(context,true);*/\r\n\r\n\r\n\t\t//Get the \"Type\" of rel\r\n\t\tStringList slRelSelects = new StringList(1);\r\n slRelSelects.addElement(DomainRelationship.SELECT_TYPE);\r\n\r\n if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"from\")){\r\n \t//New Rel replaces FL/GBOM which is on \"from\" side of Old Rel hence we query now \"to\" side of Old Rel\r\n \tslRelSelects.add(\"to.id\");\r\n slRelSelects.add(\"torel.id\");\r\n\r\n }else if(strNewRelIdSide!=null && strNewRelIdSide.equalsIgnoreCase(\"to\")){\r\n \t//New Rel replaces FL/GBOM which is on \"to\" side of Old Rel hence we query now \"from\" side of Old Rel\r\n \tslRelSelects.add(\"from.id\");\r\n slRelSelects.add(\"fromrel.id\");\r\n }\r\n\r\n Hashtable htRelData = domRel.getRelationshipData(context,slRelSelects);\r\n\r\n String strFromSideOfRel =\"\";\r\n String strToSideOfRel =\"\";\r\n String strRelId =\"\";\r\n String strObjId =\"\";\r\n\r\n StringList slRelTypes = (StringList) htRelData.get(DomainRelationship.SELECT_TYPE);\r\n String strRelType = (String) slRelTypes.get(0);\r\n RelationshipType RelType = new RelationshipType(strRelType);\r\n\r\n\r\n if((StringList) htRelData.get(\"from.id\")!=null || ((StringList)htRelData.get(\"fromrel.id\"))!=null ){\r\n\r\n \tStringList slFromSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"from.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"from.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\t//isFrom = false;\r\n \t\tstrObjId = strFromSideOfRel;\r\n\r\n\r\n \t}else if(!((StringList)htRelData.get(\"fromrel.id\")).isEmpty()){\r\n \t\tslFromSideOfRel = (StringList) htRelData.get(\"fromrel.id\");\r\n \t\tstrFromSideOfRel = (String) slFromSideOfRel.get(0);\r\n\r\n \t\tstrRelId = strFromSideOfRel;\r\n \t\tisFrom = false;\r\n \t}\r\n }\r\n\r\n if((StringList) htRelData.get(\"to.id\")!=null || ((StringList)htRelData.get(\"torel.id\"))!=null ){\r\n\r\n \tStringList slToSideOfRel = new StringList();\r\n \tif(!((StringList)htRelData.get(\"to.id\")).isEmpty()){\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"to.id\");\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n\r\n \t\tisRelToRel = false;\r\n \t\tstrObjId = strToSideOfRel;\r\n \t\tisFrom = false;\r\n \t}else if(!((StringList)htRelData.get(\"torel.id\")).isEmpty()){\r\n\r\n \t\tslToSideOfRel = (StringList) htRelData.get(\"torel.id\");\r\n\r\n \t\tstrToSideOfRel = (String) slToSideOfRel.get(0);\r\n \t\tstrRelId =strToSideOfRel;\r\n \t\t//isFrom = false;\r\n \t}\r\n }\r\n\r\n\r\n if(isRelToRel){\r\n\r\n strNewConnId = connectRelationship(context, RelType, strRelId,strNewRelId, isFrom);\r\n\r\n }else{\r\n\r\n \tstrNewConnId = connectObject(context, RelType, strObjId,strNewRelId, isFrom);\r\n }\r\n\r\n\t\t\t StringList relDataSelects = new StringList();\r\n\t\t\t relDataSelects.addElement(\"frommid.id\");\r\n\t\t\t relDataSelects.addElement(\"tomid.id\");\r\n\r\n\t\t\t Map gbomRelData = domRel.getRelationshipData(context,relDataSelects);\r\n\t\t\t StringList sLFrommid = new StringList();\r\n\t\t\t StringList sLTomid = new StringList();\r\n\r\n\t\t\t sLFrommid = (StringList) gbomRelData.get(\"frommid.id\");\r\n\t\t\t if(!sLFrommid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLFrommid.size();i++){\r\n\r\n\t\t\t\t\tString strFromMid = (String)sLFrommid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strFromMid,strNewConnId,true);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\r\n\t\t\t sLTomid = (StringList) gbomRelData.get(\"tomid.id\");\r\n\t\t\t if(!sLTomid.isEmpty()){\r\n\t\t\t\tfor(int i=0;i<sLTomid.size();i++){\r\n\r\n\t\t\t\t\tString strToMid = (String)sLTomid.get(i);\r\n\t\t\t\t\tsetToRelationship(context,strToMid,strNewConnId,false);\r\n\t\t\t }\r\n\t\t\t }\r\n\r\n\t\t\tDomainRelationship domNewConnId = new DomainRelationship(strNewConnId);\r\n\t\t\tmqlLogRequiredInformationWriter(\"Rel id :: \"+ strNewConnId +\"\\n\");\r\n\t\t mqlLogRequiredInformationWriter(\"Attribute value Map set for this rel id :: \"+ attributeMap +\"\\n\\n\");\r\n\t domNewConnId.setAttributeValues(context, attributeMap);\r\n\r\n\r\n\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn strNewConnId;\r\n\t}",
"@objid (\"780bebb2-6884-4789-bdef-ca10444ad5fb\")\n Link getLink();",
"protected String buildLink(Node targetNode) {\r\n if (targetNode == null) {\r\n return null;\r\n }\r\n return requestContext.getHstLinkCreator()\r\n .create(targetNode, requestContext, ContainerConstants.MOUNT_ALIAS_SITE)\r\n .toUrlForm(requestContext, false);\r\n }",
"public void relate(HNode id, Object o);",
"public final void entryRuleReorientRef() throws RecognitionException {\n try {\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1125:1: ( ruleReorientRef EOF )\n // ../uk.ac.kcl.inf.robotics.rigid_bodies.ui/src-gen/uk/ac/kcl/inf/robotics/ui/contentassist/antlr/internal/InternalRigidBodies.g:1126:1: ruleReorientRef EOF\n {\n before(grammarAccess.getReorientRefRule()); \n pushFollow(FOLLOW_ruleReorientRef_in_entryRuleReorientRef2341);\n ruleReorientRef();\n\n state._fsp--;\n\n after(grammarAccess.getReorientRefRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleReorientRef2348); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public final String entryRuleRelateOp() throws RecognitionException {\n String current = null;\n\n AntlrDatatypeRuleToken iv_ruleRelateOp = null;\n\n\n try {\n // InternalSafetyParser.g:7491:48: (iv_ruleRelateOp= ruleRelateOp EOF )\n // InternalSafetyParser.g:7492:2: iv_ruleRelateOp= ruleRelateOp EOF\n {\n if ( state.backtracking==0 ) {\n newCompositeNode(grammarAccess.getRelateOpRule()); \n }\n pushFollow(FollowSets000.FOLLOW_1);\n iv_ruleRelateOp=ruleRelateOp();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n current =iv_ruleRelateOp.getText(); \n }\n match(input,EOF,FollowSets000.FOLLOW_2); if (state.failed) return current;\n\n }\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public String toString()\n {\n // import Component.Application.Console.Coherence;\n \n return \"RefAction{Method=\" + getMethod().getName() + \", Target=\" + getTarget() +\n \", Args=\" + Coherence.toString(getArguments()) + '}';\n }",
"void openLink(Link target);",
"public UndoableCommand redo() {\n logger.info(String.format(\"----------------[REDOING][%s]\", this));\n return new AddActivityCommand(activityAdded, true);\n }",
"public interface Link<T> {\n\n /**\n * Resolve the link and get the underlying object.\n *\n * @return the target of the link, not null\n * @throws DataNotFoundException if the link is not resolved\n */\n T resolve();\n\n /**\n * Get the type of the object that this link targets.\n *\n * @return the type of the object, not null\n */\n Class<T> getTargetType();\n\n // TODO - do we want a method to generate a resolved version of a config object e.g. new ResolvedConfigLink(resolver.resolve())\n}",
"private Text href() {\n\t\tText href = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn href;\r\n\t}",
"public void addlink(TparselinksEntity newlink);",
"@ApiModelProperty(value = \"Unique reference of the entity\")\n\n\n public String getHref() {\n return href;\n }",
"@Override\n\t\t\t\t\tpublic String call() throws Exception {\n\t\t\t\t\t\treturn reverser.reverseString(target);\n\t\t\t\t\t}",
"public NewReferenceValueStrategy replaceWithFullUrl() {\n return update -> linkProperties.r4().readUrl(update.resourceType(), update.newResourceId());\n }",
"public DancingNode linkRight (DancingNode n)\n {\n n.R = this.R;\n n.R.L = n;\n n.L = this;\n this.R = n;\n return n;\n }",
"public static void buildLink(SOS2Primitive left,SOS2Primitive right,Matrix matrix){\n\t\tint row=matrix.numRows();\n\t\t// First the reference row \t\t\n\t\tMatrixRow rowpointer =new MatrixRow(0,0,LPX.LPX_FX,\n\t\t\t\trow,\"Link\",\"LinkingRow\"+left.label+right.label);\n\t\tmatrix.addRow(rowpointer);\n\t\trow++;\n\t\trowpointer.addElement(new MatrixElement(left.getDependentColumn(0),-1));\n\t\trowpointer.addElement(new MatrixElement(right.getDependentColumn(0),1));\n\t}",
"public String getLinkName();",
"private String findLink(BasicPanel panel, Element e)\n {\n String uri = null;\n\n for (Node node = e; node.getNodeType() == Node.ELEMENT_NODE; node = node.getParentNode())\n {\n uri = panel.getSharedContext().getNamespaceHandler().getLinkUri((Element) node);\n\n if (uri != null)\n {\n try\n {\n URI linkUri = getLinkUri(uri);\n String target = panel.getSharedContext().getNamespaceHandler().getAttributeValue((Element) node, \"target\");\n logger.debug(\"link target: \" + target);\n if (EXTERNAL_TARGET.equalsIgnoreCase(target))\n {\n logger.info(\"launch external browser for \" + uri);\n BareBonesBrowserLaunch.openURL(linkUri.toString());\n uri = null;\n }\n else if (EXTERNAL_MORE_ASSIGNMENT.equalsIgnoreCase(target))\n {\n if (showMoreInfo != null)\n {\n logger.info(\"show more assignment with \" + uri);\n showMoreInfo.showMoreInfo(linkUri, MoreInfoTypes.ASSIGNMENT, eloUri);\n }\n else\n {\n logger.info(\"could not show more assignment (showMoreInfo==null) with \" + uri);\n }\n uri = null;\n }\n else if (EXTERNAL_MORE_RESOURCES.equalsIgnoreCase(target))\n {\n if (showMoreInfo != null)\n {\n logger.info(\"show more resources with \" + uri);\n showMoreInfo.showMoreInfo(linkUri, MoreInfoTypes.RESOURCES, eloUri);\n }\n else\n {\n logger.info(\"could not show more resources (showMoreInfo==null) with \" + uri);\n }\n uri = null;\n }\n break;\n }\n catch (URISyntaxException ex)\n {\n logger.error(\"error in uri\", ex);\n }\n }\n }\n\n return uri;\n }",
"public void _linkClient(ModelElement client1);",
"ReferenceTreatment createReferenceTreatment();",
"BlockChainLink getLastLink();",
"ReferenceEmbed createReferenceEmbed();",
"public void testExtendsLinkerArgsViaReference() {\n final Project project = new Project();\n final LinkerDef baseLinker = new LinkerDef();\n baseLinker.setProject(project);\n baseLinker.setId(\"base\");\n project.addReference(\"base\", baseLinker);\n final LinkerArgument linkerArg = new LinkerArgument();\n linkerArg.setValue(\"/base\");\n baseLinker.addConfiguredLinkerArg(linkerArg);\n\n final LinkerDef extendedLinker = (LinkerDef) createExtendedProcessorDef(baseLinker);\n extendedLinker.setProject(project);\n extendedLinker.setId(\"extended\");\n project.addReference(\"extended\", extendedLinker);\n\n final LinkerDef linkerRef = new LinkerDef();\n linkerRef.setProject(project);\n linkerRef.setRefid(new Reference(project, \"extended\"));\n final String[] preArgs = getPreArguments(linkerRef);\n assertEquals(1, preArgs.length);\n assertEquals(\"/base\", preArgs[0]);\n }",
"@JsonProperty(\"rel\")\n public Link.Rel getRel() {\n return rel;\n }",
"public String getRelPath () throws java.io.IOException, com.linar.jintegra.AutomationException;",
"void setLink(DependencyLink newLink);",
"public Long getRelId() {\n return relId;\n }",
"java.lang.String getRef();",
"@Override\n\tpublic EOReferensDcp toReferensDcp() {\n\t\tEOReferensDcp toReferensDcp = null;\n\n\t\ttry {\n\t\t\ttoReferensDcp = super.toReferensDcp();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn toReferensDcp;\n\t}",
"@Override\n\tpublic ParseState handle(final String namespace, final String tag, final String qName, final Attributes atts, final ParseState current) throws SAXException, NdexException {\n\t\tString href = atts.getValue(ReadDataManager.XLINK, \"href\");\n\n\t\tif (href == null) {\n\t\t\t// Create the edge:\n\t//\t\tid = getId(atts);\n\t\t\tString label = getLabel(atts);\n\t\t\tString sourceId = atts.getValue(\"source\");\n\t\t\tString targetId = atts.getValue(\"target\");\n\t\t\tString interaction = null;\n\t\t\t\n\t\t\t// check if we can parse the predicate from from label\n\t\t\t\n\t\t\tMatcher m = predictatePattern.matcher(label);\n\t\t\t\n\t\t\tif ( m.find()) \n\t\t\t\tinteraction = m.group(1);\n\n\t//Long edgeId = \n\t\t\tmanager.addEdge(sourceId, interaction, targetId);\n\n\t\t\tmanager.getCurrentXGMMLEdge().getProps().add(new NdexPropertyValuePair(LABEL,label));\n\t\t\t//TODO: add the rest of atts as properties to the edge.\n\t\t\t\n\n\t\t} else {\n\t\t\t// The edge might not have been created yet!\n\t\t\t// Save the reference so it can be added to the network after the\n\t\t\t// whole graph is parsed.\n\t\t\tthrow new NdexException(\"not yet handling XLINK in XGMML\");\n\t\t}\n\n\t\treturn current;\n\t}",
"SimpleLink createSimpleLink();",
"public String getLink() {\n\t\treturn link;\n\t}",
"public String getLink() {\n\t\treturn link;\n\t}",
"public final AstValidator.rel_return rel() throws RecognitionException {\n AstValidator.rel_return retval = new AstValidator.rel_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 AstValidator.alias_return alias157 =null;\n\n AstValidator.previous_rel_return previous_rel158 =null;\n\n AstValidator.op_clause_return op_clause159 =null;\n\n AstValidator.parallel_clause_return parallel_clause160 =null;\n\n\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:369:5: ( alias | previous_rel | op_clause ( parallel_clause )? )\n int alt46=3;\n switch ( input.LA(1) ) {\n case IDENTIFIER:\n {\n alt46=1;\n }\n break;\n case ARROBA:\n {\n alt46=2;\n }\n break;\n case ASSERT:\n case COGROUP:\n case CROSS:\n case CUBE:\n case DEFINE:\n case DISTINCT:\n case FILTER:\n case FOREACH:\n case GROUP:\n case JOIN:\n case LIMIT:\n case LOAD:\n case MAPREDUCE:\n case ORDER:\n case RANK:\n case SAMPLE:\n case SPLIT:\n case STORE:\n case STREAM:\n case UNION:\n {\n alt46=3;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 46, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt46) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:369:7: alias\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_alias_in_rel1589);\n alias157=alias();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, alias157.getTree());\n\n\n if ( state.backtracking==0 ) { validateAliasRef( aliases, (alias157!=null?alias157.node:null), (alias157!=null?alias157.name:null) ); }\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:370:7: previous_rel\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_previous_rel_in_rel1599);\n previous_rel158=previous_rel();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, previous_rel158.getTree());\n\n\n if ( state.backtracking==0 ) { validateAliasRef( aliases, (previous_rel158!=null?previous_rel158.node:null), (previous_rel158!=null?previous_rel158.name:null) ); }\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:371:7: op_clause ( parallel_clause )?\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_op_clause_in_rel1609);\n op_clause159=op_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, op_clause159.getTree());\n\n\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:371:17: ( parallel_clause )?\n int alt45=2;\n int LA45_0 = input.LA(1);\n\n if ( (LA45_0==PARALLEL) ) {\n alt45=1;\n }\n switch (alt45) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:371:17: parallel_clause\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_parallel_clause_in_rel1611);\n parallel_clause160=parallel_clause();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, parallel_clause160.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\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 }",
"@Override\r\n\tpublic LinkMan getModel() {\n\t\treturn linkman;\r\n\t}",
"public void setReference(String reference);",
"public EObject getTarget() {\n\t\treturn adaptee.getTarget();\n\t}",
"public String getPrefix() { return \"linknode\"; }",
"public String getRevisionReference();",
"public static Object referenceMacro_GetReferent_118_0(final ReferenceMacroContext _context) {\n return SModelOperations.getModelName(((SModel) _context.getVariable(\"model\"))) + \".EditorAspectDescriptorImpl\";\n }",
"public java.lang.CharSequence getTargetObjectUri() {\n return target_object_uri;\n }",
"@Column(name=\"link\")\n\tpublic String getLink() {\n\t\treturn link;\n\t}",
"public String mo10346a() {\n return \"DeepLink.ChangeID\";\n }",
"Expression relExpression() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tExpression e0 = addExpression();\r\n\t\twhile(isKind(OP_LT,OP_GT,OP_LE,OP_GE)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e1 = addExpression();\r\n\t\t\te0 = new ExpressionBinary(first,e0,op,e1);\r\n\t\t}\r\n\t\treturn e0;\r\n\t}",
"public String getLink() {\n\t\t\treturn link;\n\t\t}",
"public java.lang.CharSequence getTargetObjectUri() {\n return target_object_uri;\n }",
"public GetMirrorRelation(SanBootView _view, String cmd) throws IOException {\r\n super(cmd, _view.getSocket());\r\n view = _view;\r\n }",
"public com.commercetools.api.models.common.Reference getTarget() {\n return this.target;\n }",
"public String getOriginalCommand() {\n return command;\n }",
"@View( VIEW_MODIFY_REFERENCE )\r\n public String getModifyReference( HttpServletRequest request )\r\n {\r\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_REFERENCE ) );\r\n if ( _reference == null || ( _reference.getId( ) != nId ) )\r\n {\r\n _reference = ReferenceHome.findByPrimaryKey( nId );\r\n }\r\n Map<String, Object> model = getModel( );\r\n model.put( MARK_REFERENCE, _reference );\r\n return getPage( PROPERTY_PAGE_TITLE_MODIFY_REFERENCE, TEMPLATE_MODIFY_REFERENCE, model );\r\n }",
"public Long getRelateId() {\n return relateId;\n }",
"LinkRelationsLibrary createLinkRelationsLibrary();",
"public String link() {\n return DevRant.BASE_URL + DevRant.RANT_URL + '/' + getId();\n }",
"protected String newLinkName(){\n\t\treturn \"WomoEvtLnk_\" + linkNr++;\n\t}"
] | [
"0.58618003",
"0.5691871",
"0.55159307",
"0.5462043",
"0.54052496",
"0.5404819",
"0.5386028",
"0.5364511",
"0.53476155",
"0.53062344",
"0.5231481",
"0.51697534",
"0.5131062",
"0.5084615",
"0.5074138",
"0.5070193",
"0.5055253",
"0.5006502",
"0.4992286",
"0.4954186",
"0.49508196",
"0.49457753",
"0.49371448",
"0.49244758",
"0.49169785",
"0.49053282",
"0.49053282",
"0.48896956",
"0.48878536",
"0.48698854",
"0.4865621",
"0.48338702",
"0.48188174",
"0.48090732",
"0.480255",
"0.4790045",
"0.4790045",
"0.47852248",
"0.47846165",
"0.47812137",
"0.47779655",
"0.47593355",
"0.47433874",
"0.47373846",
"0.47241896",
"0.4711485",
"0.47098157",
"0.47095686",
"0.46928754",
"0.46662116",
"0.46655452",
"0.46481863",
"0.46435213",
"0.46376035",
"0.4635886",
"0.46348032",
"0.46329936",
"0.4628077",
"0.4624755",
"0.4619532",
"0.46166074",
"0.46153668",
"0.46145043",
"0.46121466",
"0.4611335",
"0.46016568",
"0.4598635",
"0.45983788",
"0.4596115",
"0.4593223",
"0.45930517",
"0.45916504",
"0.45868677",
"0.45750403",
"0.4574209",
"0.45651138",
"0.45638317",
"0.45635712",
"0.45635712",
"0.4553197",
"0.45462132",
"0.4545828",
"0.45441836",
"0.45400152",
"0.45237184",
"0.4523083",
"0.45228696",
"0.4521293",
"0.45207825",
"0.45185485",
"0.45152512",
"0.4513577",
"0.45134744",
"0.45134133",
"0.45126042",
"0.45095658",
"0.45021683",
"0.44936812",
"0.4490404",
"0.44844723"
] | 0.64169276 | 0 |
/ JADX INFO: super call moved to the top of the method (can break code semantics) | public Base32(int i, byte[] bArr, boolean z, byte b) {
super(5, 8, i, bArr == null ? 0 : bArr.length, b);
if (z) {
this.encodeTable = HEX_ENCODE_TABLE;
this.decodeTable = HEX_DECODE_TABLE;
} else {
this.encodeTable = ENCODE_TABLE;
this.decodeTable = DECODE_TABLE;
}
if (i <= 0) {
this.encodeSize = 8;
this.lineSeparator = null;
} else if (bArr == null) {
throw new IllegalArgumentException("lineLength " + i + " > 0, but lineSeparator is null");
} else if (!containsAlphabetOrPad(bArr)) {
this.encodeSize = bArr.length + 8;
byte[] bArr2 = new byte[bArr.length];
this.lineSeparator = bArr2;
System.arraycopy(bArr, 0, bArr2, 0, bArr.length);
} else {
String newStringUtf8 = StringUtils.newStringUtf8(bArr);
throw new IllegalArgumentException("lineSeparator must not contain Base32 characters: [" + newStringUtf8 + "]");
}
this.decodeSize = this.encodeSize - 1;
if (isInAlphabet(b) || isWhiteSpace(b)) {
throw new IllegalArgumentException("pad must not be in alphabet or whitespace");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void method_6191() {\r\n super.method_6191();\r\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\tprotected void parentMethod() {\n\t\tsuper.parentMethod();\r\n\t\tSystem.out.println(\"ChildParentMethod\");\r\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n\tpublic void inorder() {\n\n\t}",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\n\tpublic void jugar() {}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic void dosomething2() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"public void c(int paramInt)\r\n/* 101: */ {\r\n/* 102:122 */ this.b = false;\r\n/* 103:123 */ super.c(paramInt);\r\n/* 104: */ }",
"public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }",
"protected void method_2665() {\r\n super.method_2427(awt.field_4171);\r\n this.method_2440(true);\r\n this.method_2521(class_872.field_4244);\r\n }",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void bbb() {\n\t\t\n\t}",
"public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic void aaa() {\n\t\t\n\t}",
"@Override\n public void b() {\n }",
"@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}",
"@Override\r\n public void salir() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void preorder() {\n\n\t}",
"private stendhal() {\n\t}",
"public void doSomething() {\n Outer.this.doSomething();\r\n // this stops the pretty printer and gives an\r\n //parser exception (stumbling over the .super)\r\n Outer.super.doSomething();\r\n }",
"@Override\n\tpublic void deneme() {\n\t\tsuper.deneme();\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n public void preRun() {\n super.preRun();\n }",
"public abstract void mo70713b();",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void laught() {\n\r\n\t}",
"@Override\n\tpublic void imprimir() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }",
"protected void h() {}",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"public void method_4270() {}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void call() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }",
"public aed(World paramaqu)\r\n/* 9: */ {\r\n/* 10: 24 */ super(paramaqu);\r\n/* 11: */ }",
"@Override\n protected void initialize() \n {\n \n }",
"public void callP(){\n super.walks(\"called parent method\");\n }",
"void berechneFlaeche() {\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }"
] | [
"0.74149317",
"0.71197605",
"0.71197605",
"0.71197605",
"0.71150804",
"0.7021492",
"0.7006038",
"0.69588333",
"0.6935772",
"0.6829436",
"0.6788324",
"0.6759145",
"0.6727192",
"0.6727192",
"0.66796297",
"0.666967",
"0.6636736",
"0.66285443",
"0.6620278",
"0.6605166",
"0.6603405",
"0.65827775",
"0.65819615",
"0.6549783",
"0.654407",
"0.6521302",
"0.65024453",
"0.6442811",
"0.6418283",
"0.6414904",
"0.64023614",
"0.63989735",
"0.63874495",
"0.63801765",
"0.637073",
"0.6366107",
"0.636105",
"0.6353325",
"0.63516873",
"0.63364375",
"0.63196903",
"0.630674",
"0.630674",
"0.62942594",
"0.6293458",
"0.6293458",
"0.6285756",
"0.6273121",
"0.62609804",
"0.6239362",
"0.62245244",
"0.6219261",
"0.62038094",
"0.61979085",
"0.6176934",
"0.6173392",
"0.6170741",
"0.61697984",
"0.61606413",
"0.613014",
"0.6126085",
"0.61220664",
"0.6104118",
"0.6092255",
"0.60914207",
"0.6088682",
"0.6084283",
"0.60617685",
"0.6061011",
"0.60562843",
"0.60446125",
"0.6044546",
"0.60403585",
"0.6034669",
"0.6032089",
"0.6032089",
"0.6032089",
"0.6032089",
"0.6032089",
"0.6032089",
"0.60313636",
"0.6029225",
"0.6026398",
"0.6025426",
"0.6024288",
"0.60189927",
"0.60144866",
"0.6011133",
"0.6008085",
"0.60009956",
"0.59980094",
"0.5995126",
"0.59950244",
"0.59907603",
"0.5989783",
"0.597965",
"0.5970924",
"0.59688",
"0.59660697",
"0.5965756",
"0.59609413"
] | 0.0 | -1 |
/ access modifiers changed from: packageprivate | public void decode(byte[] bArr, int i, int i2, BaseNCodec.Context context) {
byte b;
int i3 = i2;
BaseNCodec.Context context2 = context;
if (!context2.eof) {
boolean z = true;
if (i3 < 0) {
context2.eof = true;
}
int i4 = i;
int i5 = 0;
while (true) {
if (i5 >= i3) {
break;
}
int i6 = i4 + 1;
byte b2 = bArr[i4];
if (b2 == this.pad) {
context2.eof = z;
break;
}
byte[] ensureBufferSize = ensureBufferSize(this.decodeSize, context2);
if (b2 >= 0) {
byte[] bArr2 = this.decodeTable;
if (b2 < bArr2.length && (b = bArr2[b2]) >= 0) {
context2.modulus = (context2.modulus + (z ? 1 : 0)) % 8;
context2.lbitWorkArea = (context2.lbitWorkArea << 5) + ((long) b);
if (context2.modulus == 0) {
int i7 = context2.pos;
context2.pos = i7 + 1;
ensureBufferSize[i7] = (byte) ((int) ((context2.lbitWorkArea >> 32) & 255));
int i8 = context2.pos;
context2.pos = i8 + 1;
ensureBufferSize[i8] = (byte) ((int) ((context2.lbitWorkArea >> 24) & 255));
int i9 = context2.pos;
context2.pos = i9 + 1;
ensureBufferSize[i9] = (byte) ((int) ((context2.lbitWorkArea >> 16) & 255));
int i10 = context2.pos;
context2.pos = i10 + 1;
ensureBufferSize[i10] = (byte) ((int) ((context2.lbitWorkArea >> 8) & 255));
int i11 = context2.pos;
context2.pos = i11 + 1;
ensureBufferSize[i11] = (byte) ((int) (context2.lbitWorkArea & 255));
}
}
}
i5++;
i4 = i6;
z = true;
}
if (context2.eof && context2.modulus >= 2) {
byte[] ensureBufferSize2 = ensureBufferSize(this.decodeSize, context2);
switch (context2.modulus) {
case 2:
int i12 = context2.pos;
context2.pos = i12 + 1;
ensureBufferSize2[i12] = (byte) ((int) ((context2.lbitWorkArea >> 2) & 255));
return;
case 3:
int i13 = context2.pos;
context2.pos = i13 + 1;
ensureBufferSize2[i13] = (byte) ((int) ((context2.lbitWorkArea >> 7) & 255));
return;
case 4:
context2.lbitWorkArea >>= 4;
int i14 = context2.pos;
context2.pos = i14 + 1;
ensureBufferSize2[i14] = (byte) ((int) ((context2.lbitWorkArea >> 8) & 255));
int i15 = context2.pos;
context2.pos = i15 + 1;
ensureBufferSize2[i15] = (byte) ((int) (context2.lbitWorkArea & 255));
return;
case 5:
context2.lbitWorkArea >>= 1;
int i16 = context2.pos;
context2.pos = i16 + 1;
ensureBufferSize2[i16] = (byte) ((int) ((context2.lbitWorkArea >> 16) & 255));
int i17 = context2.pos;
context2.pos = i17 + 1;
ensureBufferSize2[i17] = (byte) ((int) ((context2.lbitWorkArea >> 8) & 255));
int i18 = context2.pos;
context2.pos = i18 + 1;
ensureBufferSize2[i18] = (byte) ((int) (context2.lbitWorkArea & 255));
return;
case 6:
context2.lbitWorkArea >>= 6;
int i19 = context2.pos;
context2.pos = i19 + 1;
ensureBufferSize2[i19] = (byte) ((int) ((context2.lbitWorkArea >> 16) & 255));
int i20 = context2.pos;
context2.pos = i20 + 1;
ensureBufferSize2[i20] = (byte) ((int) ((context2.lbitWorkArea >> 8) & 255));
int i21 = context2.pos;
context2.pos = i21 + 1;
ensureBufferSize2[i21] = (byte) ((int) (context2.lbitWorkArea & 255));
return;
case 7:
context2.lbitWorkArea >>= 3;
int i22 = context2.pos;
context2.pos = i22 + 1;
ensureBufferSize2[i22] = (byte) ((int) ((context2.lbitWorkArea >> 24) & 255));
int i23 = context2.pos;
context2.pos = i23 + 1;
ensureBufferSize2[i23] = (byte) ((int) ((context2.lbitWorkArea >> 16) & 255));
int i24 = context2.pos;
context2.pos = i24 + 1;
ensureBufferSize2[i24] = (byte) ((int) ((context2.lbitWorkArea >> 8) & 255));
int i25 = context2.pos;
context2.pos = i25 + 1;
ensureBufferSize2[i25] = (byte) ((int) (context2.lbitWorkArea & 255));
return;
default:
throw new IllegalStateException("Impossible modulus " + context2.modulus);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void prot() {\n }",
"public void method_4270() {}",
"@Override\n public void func_104112_b() {\n \n }",
"private void m50366E() {\n }",
"private void kk12() {\n\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void perish() {\n \n }",
"public abstract void mo70713b();",
"public void m23075a() {\n }",
"public void mo38117a() {\n }",
"private MApi() {}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public void mo21779D() {\n }",
"public abstract void mo27386d();",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"void m1864a() {\r\n }",
"public abstract Object mo26777y();",
"public void mo21825b() {\n }",
"protected boolean func_70814_o() { return true; }",
"public final void mo91715d() {\n }",
"public abstract void mo27385c();",
"public void mo97908d() {\n }",
"public void mo21782G() {\n }",
"private TMCourse() {\n\t}",
"private test5() {\r\n\t\r\n\t}",
"private Util() { }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"protected void mo6255a() {\n }",
"private abstract void privateabstract();",
"public void mo21877s() {\n }",
"public void mo21787L() {\n }",
"private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private Utils() {}",
"private MetallicityUtils() {\n\t\t\n\t}",
"public void mo21791P() {\n }",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"public abstract void mo6549b();",
"public void mo23813b() {\n }",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }",
"public void mo44053a() {\n }",
"public void smell() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo115190b() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"public void mo21785J() {\n }",
"public void mo21793R() {\n }",
"public void mo21878t() {\n }",
"public void mo56167c() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public abstract String mo118046b();",
"public void mo115188a() {\n }",
"private SourcecodePackage() {}",
"public abstract String mo41079d();",
"void mo57277b();",
"public void mo6944a() {\n }",
"public abstract void mo42329d();",
"public abstract void mo30696a();",
"private final zzgy zzgb() {\n }",
"private Utils() {\n\t}",
"private Utils() {\n\t}",
"protected boolean func_70041_e_() { return false; }",
"zzafe mo29840Y() throws RemoteException;",
"private Singletion3() {}",
"public abstract void mo42331g();",
"public abstract void mo35054b();",
"public abstract String mo13682d();",
"public void mo21786K() {\n }",
"public void mo3376r() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void mo3749d() {\n }",
"public void mo21794S() {\n }",
"public void mo12628c() {\n }",
"private Infer() {\n\n }",
"public void mo9848a() {\n }",
"private OMUtil() { }",
"public abstract void mo27464a();",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private NativeSupport() {\n\t}",
"public void mo2740a() {\n }",
"@Override\n public boolean isPrivate() {\n return true;\n }"
] | [
"0.71513015",
"0.6686406",
"0.6558315",
"0.6482832",
"0.6430476",
"0.63856333",
"0.63838816",
"0.63487375",
"0.6330605",
"0.62764114",
"0.626384",
"0.62509346",
"0.6237325",
"0.62340367",
"0.6228612",
"0.6197973",
"0.6197973",
"0.61952",
"0.6183631",
"0.61797863",
"0.6157397",
"0.6152618",
"0.61521906",
"0.6116792",
"0.61100185",
"0.61080855",
"0.6088319",
"0.6082373",
"0.6072587",
"0.60691696",
"0.60570836",
"0.60564214",
"0.6056027",
"0.60505396",
"0.6050144",
"0.60472345",
"0.6044647",
"0.6036982",
"0.6024398",
"0.6024398",
"0.6024398",
"0.6024398",
"0.6020334",
"0.60201526",
"0.6018423",
"0.6016204",
"0.6005956",
"0.6002279",
"0.5999404",
"0.59974486",
"0.59964895",
"0.5995736",
"0.5991695",
"0.5991695",
"0.5991695",
"0.5991695",
"0.5991695",
"0.5991695",
"0.5991695",
"0.599113",
"0.5987661",
"0.5987661",
"0.5984926",
"0.5983099",
"0.5973421",
"0.59589046",
"0.5958243",
"0.5953439",
"0.59510964",
"0.59475076",
"0.5946366",
"0.5943994",
"0.59424007",
"0.59403396",
"0.5937576",
"0.59374106",
"0.5926433",
"0.59263766",
"0.59263766",
"0.5925841",
"0.5913479",
"0.5910542",
"0.59044325",
"0.5904201",
"0.59039",
"0.58995575",
"0.58967894",
"0.5894089",
"0.58939654",
"0.58905286",
"0.5882918",
"0.58785903",
"0.58777314",
"0.5876467",
"0.5876147",
"0.587332",
"0.58671093",
"0.58671093",
"0.58666575",
"0.5866619",
"0.58632815"
] | 0.0 | -1 |
Move through the states | public void run() {
for(int each=0; each<this.inputString.length(); each++) {
Character currentInput = this.inputString.charAt(each);
//Test input char
if(!currentInput.equals('0') && !currentInput.equals('1') ) {
System.out.println("Invalid input");
return;
}
//Make the transition
this.currentState = this.delta.calculate(this.currentState.getToken()+currentInput);
this.currentlyRead += currentInput;
System.out.println("Remainder for : " + Integer.parseInt(this.currentlyRead ,2)
+ " -> "+Integer.parseInt(this.gamma.getOuput(currentState),2));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void transitionStates () {\n myCurrentState = myNextState;\n myNextState = null;\n }",
"@Override\n protected void incrementStates() {\n\n }",
"public void move() {\n\t\tif(right) {\n\t\t\tgoRight();\n\t\t\tstate++;\n\t\t\tif(state > 5) {\n\t\t\t\tstate = 3;\n\t\t\t}\n\t\t}\n\t\telse if(left) {\n\t\t\tgoLeft();\n\t\t\tstate++;\n\t\t\tif(state > 2) {\n\t\t\t\tstate = 0;\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}",
"synchronized void advanceState()\n {\n state = state.advance();\n notifyAll();\n }",
"private void processStatesAnimation() {\n if(getState() == JUMPING_STATE || getState() == FALLING_STATE) {\n if(getDirection() == DIRECTION_RIGHT)\n setAnim(jumpingRight);\n else if(getDirection() == DIRECTION_LEFT)\n setAnim(jumpingLeft);\n }\n\n if(getState() == NORMAL_STATE) {\n if(getDirection() == DIRECTION_STOPPED_RIGHT)\n setAnim(standingRight);\n else if(getDirection() == DIRECTION_STOPPED_LEFT)\n setAnim(standingLeft);\n else if(getDirection() == DIRECTION_RIGHT)\n setAnim(walkingRight);\n else if(getDirection() == DIRECTION_LEFT)\n setAnim(walkingLeft);\n }\n\n if(getState() == DYING_STATE) \n setAnim(dying);\n }",
"void nextState();",
"public void moveInPopulation()\n\t{\n\t\tsynchronized (this) {\n\t\tcurrentState.moveInPopulation();\n\t\t}\n\t}",
"private void changeState() {\n if (jobs.contains(this.currentFloor)){\n throw new AssertionError(\"Changing state of elevator no \" + ElevatorID + \" on destination floor\");\n }\n\n // empty job set -> going to IDLE state\n if (jobs.size() == 0) {\n this.currentState = IDLE;\n return;\n }\n\n Integer closestFloorDownwards = jobs.floor(this.currentFloor);\n Integer closestFloorUpwards = jobs.ceiling(this.currentFloor);\n\n switch (this.currentState) {\n // if elevator is in idle state then we need to go to the closest job possible\n case IDLE -> {\n Integer closestFloor =\n findClosestFloor(this.currentFloor, closestFloorUpwards, closestFloorDownwards);\n\n if (closestFloor < this.currentFloor) {\n this.currentState = DOWN;\n } else {\n this.currentState = UP;\n }\n }\n case DOWN -> {\n if (closestFloorDownwards != null) { // if there exists a predecessor in `jobs`\n this.currentState = DOWN; // let's continue going down\n } else {\n this.currentState = UP; // otherwise we need to go up\n }\n }\n case UP -> {\n if (closestFloorUpwards != null) { // if there exists a successor in `jobs`\n this.currentState = UP; // let's continue going up\n } else {\n this.currentState = DOWN; // otherwise we need to go down\n }\n }\n }\n }",
"public void updateState() {\n\n // After each frame, the unit has a slight morale recovery, but only up to the full base morale.\n morale = Math.min(morale + GameplayConstants.MORALE_RECOVERY, GameplayConstants.BASE_MORALE);\n\n if (morale < GameplayConstants.PANIC_MORALE) {\n state = UnitState.ROUTING;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.switchState(SingleState.ROUTING);\n }\n } else if (state == UnitState.ROUTING && morale > GameplayConstants.RECOVER_MORALE) {\n this.repositionTo(averageX, averageY, goalAngle);\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.switchState(SingleState.MOVING);\n }\n }\n\n // Update the state of each single and the average position\n double sumX = 0;\n double sumY = 0;\n double sumZ = 0;\n int count = 0;\n for (BaseSingle single : aliveTroopsMap.keySet()) {\n single.updateState();\n sumX += single.getX();\n sumY += single.getY();\n sumZ += single.getZ();\n count += 1;\n }\n averageX = sumX / count;\n averageY = sumY / count;\n averageZ = sumZ / count;\n\n // Updating soundSink\n soundSink.setX(averageX);\n soundSink.setY(averageY);\n soundSink.setZ(averageZ);\n\n // Update the bounding box.\n updateBoundingBox();\n\n // Update stamina\n updateStamina();\n }",
"public LinkedList<State> getNextAvailableStates() {\n LinkedList<Integer> currentSide = new LinkedList<>();\n LinkedList<Integer> otherSide = new LinkedList<>();\n LinkedList<State> newStates = new LinkedList<>();\n if(isLeft) {\n if(leftSide != null) currentSide = new LinkedList<>(leftSide);\n if(rightSide != null) otherSide = new LinkedList<>(rightSide);\n } else {\n if (rightSide != null) currentSide = new LinkedList<>(rightSide);\n if (leftSide != null) otherSide = new LinkedList<>(leftSide);\n }\n\n // add one people to the other side of the bridge\n for (int index=0; index< currentSide.size(); index++) {\n LinkedList<Integer> newCurrentSide = new LinkedList<>(currentSide);\n LinkedList<Integer> newOtherSide = new LinkedList<>(otherSide);\n int firstPeopleMoved = newCurrentSide.remove(index);\n newOtherSide.add(firstPeopleMoved);\n State state = (isLeft) ? new State(newCurrentSide, newOtherSide, !isLeft,timeTaken+firstPeopleMoved, depth+1, highestSpeed) :\n new State(newOtherSide, newCurrentSide, !isLeft, timeTaken+firstPeopleMoved, depth+1, highestSpeed);\n state.setReward(state.calculateReward(firstPeopleMoved));\n // add this as parent to the child\n state.parents = new LinkedList<>(this.parents);\n state.addParent(this);\n // set the action that get to this state\n String currentAction = \"move \" + firstPeopleMoved;\n currentAction += (isLeft) ? \" across\" : \" back\";\n state.copyActions(this); // copy all the previous actions from the parent\n state.addActions(currentAction); // add new action to state generated by parent\n // add to the new states of list\n newStates.add(state);\n // add two people to the other side of the bridge\n for (int second=0; second < newCurrentSide.size(); second++) {\n LinkedList<Integer> newSecondCurrentSide = new LinkedList<>(newCurrentSide);\n LinkedList<Integer> newSecondOtherSide = new LinkedList<>(newOtherSide);\n int secondPeopleMoved = newSecondCurrentSide.remove(second);\n newSecondOtherSide.add(secondPeopleMoved);\n int slowerSpeed = (firstPeopleMoved > secondPeopleMoved) ? firstPeopleMoved : secondPeopleMoved;\n state = (isLeft) ? new State(newSecondCurrentSide, newSecondOtherSide, !isLeft, timeTaken+slowerSpeed, depth+1, highestSpeed) :\n new State(newSecondOtherSide, newSecondCurrentSide, !isLeft, timeTaken+slowerSpeed, depth+1, highestSpeed);\n state.setReward(state.calculateReward(firstPeopleMoved, secondPeopleMoved));\n // add this as parent to the child\n state.parents = new LinkedList<>(this.parents);\n state.addParent(this);\n // set the action that get to this state\n currentAction = \"move \"+ firstPeopleMoved + \" \" + secondPeopleMoved;\n currentAction += (isLeft) ? \" across\" : \" back\";\n state.copyActions(this);\n state.addActions(currentAction);\n // add to the new states of list\n newStates.add(state);\n }\n\n }\n return newStates;\n }",
"public void update(){\r\n\r\n // update curState based on inputs\r\n // Perform state-transition actions \r\n switch(curState) {\r\n${nextstatecases}\r\n default:\r\n reset();\r\n break;\r\n }",
"@Override\n\t\tprotected void doCurrentState() {\n\t\t\tswitch(currentState) {\n\t\t\t\n\t\t\t// follow operator commands, but respect limit switches\n\t\t\tcase manual:\n\t\t\t\tcd.gearLeftOpen.set(rd.gearManualLeftOpen && !rd.leftOpenSwitch, rd.gearManualLeftClose && !rd.leftCloseSwitch );\n\t\t\t\tcd.gearRightOpen.set(rd.gearManualRightOpen && !rd.rightOpenSwitch, rd.gearManualRightClose && !rd.rightCloseSwitch);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t// close each motor until fully closed, if one motor is closed stop that motor\n\t\t\tcase autoClose:\n\t\t\t\tcd.gearLeftOpen.set(false, !rd.leftCloseSwitch );\n\t\t\t\tcd.gearRightOpen.set(false, !rd.rightCloseSwitch);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t// open each motor until fully open, if one motor is open stop that motor\t\n\t\t\tcase autoOpen:\n\t\t\t\tcd.gearLeftOpen.set(!rd.leftOpenSwitch, false);\n\t\t\t\tcd.gearRightOpen.set(!rd.rightOpenSwitch, false);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"public void runStateMachine() {\n switch(m_currentState) {\n case PoweringUpState:\n if (this.doPowerUpStuff()) {\n this.setRobotState(RobotState.InitializingDataState);\n }\n break;\n case InitializingDataState:\n\n if (this.initializeData()) {\n // Load some commands for our robot.\n // We could definitely load these from a different file.\n System.out.println(\"-------- Populating Command Queue --------\");\n m_robotQueue.addCommand(new MoveToLocationXY(1.0, 2.0, 2.0));\n m_robotQueue.addCommand(new MoveToLocationXY(-1.0, -2.0, 1.0));\n m_robotQueue.addCommand(new RotateDegrees(180.0, 22.5));\n\n System.out.println(\"\\n-------- Entering Main Robot State --------\");\n this.setRobotState(RobotState.IdleWaitingForCommandState);\n }\n break;\n case IdleWaitingForCommandState:\n if (m_robotQueue.isCommandPending()) {\n\n m_currentCommand = m_robotQueue.getNextCommand();\n\n // m_currentCommand is a generic Object. Let's see what it actually is...\n String commandName = m_currentCommand.getClass().toString();\n System.out.println(\"* Got new command. Processing: \" + commandName);\n\n // Change robot state depending on the type of command we found.\n switch (commandName) {\n // NOTE: This \"class xyz\" text compare is kind of weird,\n // We could probably find a better way.\n case \"class commands.MoveToLocationXY\":\n this.setRobotState(RobotState.MovingToLocationState);\n break;\n case \"class commands.RotateDegrees\":\n this.setRobotState(RobotState.RotatingState);\n break;\n default:\n System.out.println(\"Unrecognized command \" + commandName);\n }\n System.out.println();\n\n } else if (m_currentCommand != null) {\n m_currentCommand = null; // Doing nothing. Clear current command.\n }\n break;\n case MovingToLocationState:\n MoveToLocationXY moveCmd = (MoveToLocationXY) m_currentCommand;\n try {\n if (moveCmd.runUntilComplete()) {\n // Done moving, process next item in command queue\n this.setRobotState(RobotState.IdleWaitingForCommandState);\n }\n } catch (InterruptedException e) { // for Thread.sleep - demo only\n e.printStackTrace();\n }\n break;\n case RotatingState:\n RotateDegrees rotateCmd = (RotateDegrees) m_currentCommand; // Cast to correct type.\n try {\n if (rotateCmd.runUntilComplete()) {\n // Done moving, process next item in command queue\n this.setRobotState(RobotState.IdleWaitingForCommandState);\n }\n } catch (InterruptedException e) { // for Thread.sleep - demo only\n e.printStackTrace();\n }\n break;\n case SearchingForTargetsState:\n // TODO - implement SearchTarget demo behavior\n break;\n }\n }",
"public void step() {\n\t\t// calculate new values\n\t\tfor (int x = 0; x < gridX; x++) {\n\t\t\tfor (int y = 0; y < gridY; y++) {\n\t\t\t\tCell c = cells[x + (y * gridX)];\n\t\t\t\tCell newCell = newCells[x + (y * gridX)];\n\n\t\t\t\tint neighborCount = sameNeighborCount(x, y);\n\n\t\t\t\tif (c.isActive) {\n\t\t\t\t\tif (neighborCount < 2) {\n\t\t\t\t\t\t// all alone, die of loneliness\n\t\t\t\t\t\tnewCell.isActive = false;\n\t\t\t\t\t\tnewCell.cellColor = app.color(deadColor);\n\t\t\t\t\t}\n\t\t\t\t\telse if (neighborCount > 3) {\n\t\t\t\t\t\tnewCell.isActive = false;\n\t\t\t\t\t\tnewCell.cellColor = app.color(deadColor);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Dead cells can be reborn if surrounded by enough neighbors of the same\n\t\t\t\t\t// color. The cell will be reborn using the most prominent color.\n\t\t\t\t\tint populousColor = mostPopulousColor(x, y);\n\t\t\t\t\tif (populousColor > Integer.MIN_VALUE) {\n\t\t\t\t\t\tnewCell.isActive = true;\n\t\t\t\t\t\tnewCell.cellColor = populousColor;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// update to new state\n\t\tfor (int i = 0; i < cells.length; i++) {\n\t\t\tcells[i].isActive = newCells[i].isActive;\n\t\t\tcells[i].cellColor = newCells[i].cellColor;\n\t\t}\n\t}",
"private void moveBack(){\r\n\t\tturnAround();\r\n\t\tmove();\r\n\t}",
"private void nextState() {\n int x;\n int y;\n y = st3;\n x = (st0 & MASK) ^ st1 ^ st2;\n x ^= (x << SH0);\n y ^= (y >>> SH0) ^ x;\n st0 = st1;\n st1 = st2;\n st2 = x ^ (y << SH1);\n st3 = y;\n st1 ^= parameter.getMat1(y);\n st2 ^= parameter.getMat2(y);\n }",
"void update() {\n if (gameState.states > 1)\n move();\n }",
"public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }",
"@Override\r\n\tpublic void updateState() {\r\n\t\tState<A> result = null;\r\n\t\tif(events.size() > 0){\r\n\t\t\tfor(Event<A> a : events){\r\n\t\t\t\tstate = (result = state.perform(this,a)) == null ? state : result;\r\n\t\t\t}\r\n\t\t\tevents.removeAllElements();\r\n\t\t}\r\n\t\tstate = (result = state.perform(this, null)) == null ? state : result;\r\n\t\trequestInput();\r\n\t\t\r\n\t}",
"@Override\n\tpublic int incTstates() {\n\t\treturn 4;\n\t}",
"private void updateState() {\n\t while(!isGoodState()) {\n\t\t updateStateOnce();\n\t }\n }",
"public void next()\r\n\t{\r\n\t\tif(state<3)\r\n\t\t\tstate++;\r\n\t\telse\r\n\t\t\tstate=1;\r\n\t}",
"void changeState(Spreadable spreadable, State from, State to, int count);",
"private void firstSteps() {\n\t\tturnLeft();\n\t\tmove();\n\t\tmove();\n\t\tturnRight();\n\t\tmove();\n\t}",
"public void setStateOfMovement(int movementState){stateOfMovement = movementState; }",
"public void clearState() {\r\n int size = states.size();\r\n states.clear();\r\n states.add(inception);\r\n for (int i = states.size(); i < size; i++) {\r\n nextState();\r\n }\r\n alteredStates.clear();\r\n }",
"@Override\n\tpublic void makeNextMove() \n\t{\n\t}",
"public void step() {\n\t\tcellSizes.clear();\n\t\tupsetNeighbors = new ArrayList<Neighbor>();\n\t\tavailableSpaces = new ArrayList<Cell>();\n\t\tfor (int r = 0; r < grid.getRows(); r++) {\n\t\t\tfor (int c = 0; c < grid.getColumns(); c++) {\n\t\t\t\tupdateStatus(r, c);\n\t\t\t}\n\t\t}\n\t\tupdateGrid();\n\t}",
"public void clearState() {\n // if the user press the wrong cells, aka path, etc.\n // set state back to grass\n for (int i = 0; i < cells.size(); i++) {\n if (cells.get(i) == CellState.Chosen) {\n cells.set(i, CellState.Tower);\n } else if (cells.get(i) == CellState.ToPlaceTower) {\n cells.set(i, CellState.Grass);\n }\n\n }\n }",
"private void updateArtifactState(ArrayList<TransitionRule> transitionRules , ArrayList<ArtifactInstance> Artifacts)\r\n\t{\r\n\t\t\r\n\t\t\r\n\t\tListIterator<TransitionRule> TrasitionIterator = transitionRules.listIterator();\r\n\t\t\r\n\t\t//System.out.println(\"size of transition Rule:\" + transitionRules.size());\r\n\t\t\r\n\t\twhile(TrasitionIterator.hasNext())\r\n\t\t{\r\n\t\t\tTransitionRule currentTransitionRule = TrasitionIterator.next();\r\n\t\t\tString targetArtifact = currentTransitionRule.getArtifact();\r\n\t\t\tString fromState = currentTransitionRule.getFromState();\r\n\t\t\tString toState = currentTransitionRule.getToState();\r\n\t\t\t\r\n\t\t\t//System.out.println(targetArtifact);\r\n\t\t\t//System.out.println(fromState);\r\n\t\t\t//System.out.println(toState);\r\n\t\t\t\r\n\t\t\tListIterator<ArtifactInstance> ArtifactIterator = Artifacts.listIterator();\r\n\t\t\t\r\n\t\t\twhile(ArtifactIterator.hasNext())\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tArtifactInstance CurrentArtifact = ArtifactIterator.next();\r\n\t\t\t\tString ArtifactName = CurrentArtifact.getArtifactName();\r\n\t\t\t//\tSystem.out.println(ArtifactName);\r\n\t\t\t\tString CurrentArtifactState = CurrentArtifact.getCurrentState();\r\n\t\t\t\tArrayList<StateInstance> StateList = CurrentArtifact.getStateList();\r\n\t\t\t\t\r\n\t\t\t // to be continue state transiton\r\n\t\t\t\tif(ArtifactName.equalsIgnoreCase(targetArtifact) && CurrentArtifactState.equalsIgnoreCase(fromState) ) //&& this.checkState(StateList, fromState, toState)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tCurrentArtifact.setCurrentState(toState);\r\n\t\t\t\t\t//System.out.println(CurrentArtifact.getArtifactName()+\":\"+CurrentArtifact.getCurrentState());\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\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}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}",
"public void enterHatchingState() {\n\n\t}",
"public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }",
"private void movementPhase() {\n ClickObserver.getInstance().setCreatureFlag(\"\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(false);\n TheCupGUI.update();\n Board.removeCovers();\n }\n });\n for (Player p : playerList) {\n \tplayer = p;\n player.flipAllUp();\n\t ClickObserver.getInstance().setActivePlayer(player);\n\t ClickObserver.getInstance().setCreatureFlag(\"Movement: SelectMovers\");\n\t InfoPanel.uncover(player.getName());\n\t if (p.getHexesWithPiece().size() > 0) {\n\t \tClickObserver.getInstance().setClickedTerrain(p.getHexesWithPiece().get(0));\n\t }\n\t pause();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tClickObserver.getInstance().whenTerrainClicked();\n \t GUI.getHelpText().setText(\"Movement Phase: \" + player.getName()\n + \", Move your armies\");\n \t Game.getRackGui().setOwner(player);\n }\n });\n\t \n\t while (isPaused) {\n \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t }\n\t InfoPanel.cover(player.getName());\n player.flipAllDown();\n }\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(true);\n }\n });\n ClickObserver.getInstance().setCreatureFlag(\"\");\n }",
"@Override\n public State doMove(State otherState) {\n\tWaterJugState state = (WaterJugState) otherState;\n \n if(this.getMoveName().equals(\"Fill Jug X\")){\n //if water jug X has room to add to \n if(state.getJugX() < 3){\n nextState = new WaterJugState(3, state.getJugY());\n } //else water jug x is full =3\n else {\n nextState = null;\n }\n }\n else if(this.getMoveName().equals(\"Fill Jug Y\")){\n if(state.getJugY()<4){\n nextState = new WaterJugState(state.getJugX(),4);\n }\n else{\n nextState=null;\n }\n }\n else if(this.getMoveName().equals(\"Empty Jug X\")){\n if(state.getJugX()>0){\n nextState = new WaterJugState(0,state.getJugY());\n }\n else{\n nextState=null;\n }\n }\n else if(this.getMoveName().equals(\"Empty Jug Y\")){\n if(state.getJugY()>0){\n nextState = new WaterJugState(state.getJugX(),0); \n }\n else{\n nextState= null;\n }\n }\n else if(this.getMoveName().equals(\"Transfer Jug X to Jug Y\")){\n if(state.getJugX()>0 && state.getJugY()<4){\n int Ycount=state.getJugY();\n int Xcount=state.getJugX();\n int total=Ycount+Xcount;\n if(total<=4){\n nextState = new WaterJugState(0,state.getJugX()+state.getJugY()); \n }\n else if(total>4){\n nextState= new WaterJugState((state.getJugX()+state.getJugY()-4),(state.getJugX()+state.getJugY())-(state.getJugX()+state.getJugY()-4)); \n }\n }\n else{\n nextState= null;\n }\n }\n else if(this.getMoveName().equals(\"Transfer Jug Y to Jug X\")){\n if(state.getJugY()>0 && state.getJugX()<3){\n int Ycount=state.getJugY();\n int Xcount=state.getJugX();\n int total=Ycount+Xcount;\n if(total<=3){\n nextState = new WaterJugState(state.getJugX()+state.getJugY(),0); \n }\n else if(total>3){\n nextState= new WaterJugState((state.getJugX()+state.getJugY())-(state.getJugX()+state.getJugY()-3),(state.getJugX()+state.getJugY()-3)); \n }\n }\n else{\n nextState= null;\n } \n }\n \n return nextState; \n }",
"public void act() \r\n {\r\n if (startTime > 0) {\r\n startTime--;\r\n }\r\n else {\r\n if (isScared()) {\r\n doScareMode();\r\n }\r\n else {\r\n if (counter == 0 || !canMove(currDirectionStr)) {\r\n counter = CELL_SIZE * 4;\r\n prevDirection = currDirection;\r\n do {\r\n currDirection = (int)(Math.random() * 10);\r\n if (currDirection == 0) {\r\n currDirectionStr = \"up\";\r\n }\r\n else if (currDirection == 1) {\r\n currDirectionStr = \"left\";\r\n }\r\n else if (currDirection == 2) {\r\n currDirectionStr = \"down\";\r\n }\r\n else if (currDirection == 3) {\r\n currDirectionStr = \"right\";\r\n }\r\n } while (!canMove(currDirectionStr));\r\n }\r\n \r\n if (canMove(currDirectionStr)) {\r\n move(currDirectionStr);\r\n }\r\n counter--;\r\n } \r\n }\r\n }",
"@Override\r\n public void act() {\r\n boolean willMove = canMove();\r\n if (isEnd) {\r\n // to show step count when reach the goal\r\n if (!hasShown) {\r\n String msg = stepCount.toString() + \" steps\";\r\n JOptionPane.showMessageDialog(null, msg);\r\n hasShown = true;\r\n }\r\n } else if (willMove) {\r\n move();\r\n // increase step count when move\r\n stepCount++;\r\n // 把当前走过的位置加入栈顶的arrayList\r\n crossLocation.peek().add(getLocation());\r\n // 当前方向的概率+1\r\n probablyDir[getDirection() / 90]++;\r\n } else if (!willMove) {\r\n // 这时候必须一步一步返回栈顶arrayList的开头\r\n ArrayList<Location> curCrossed = crossLocation.peek();\r\n curCrossed.remove(curCrossed.size() - 1);\r\n next = curCrossed.get(curCrossed.size() - 1);\r\n move();\r\n stepCount++;\r\n // 当前方向反向的概率-1\r\n probablyDir[((getDirection() + Location.HALF_CIRCLE)\r\n % Location.FULL_CIRCLE) / Location.RIGHT]--;\r\n if (curCrossed.size() == 1) {\r\n // 返回之后pop\r\n crossLocation.pop();\r\n }\r\n }\r\n }",
"void runState() {\n\t\tp.displaySheet();\n\t\tcurState.run();\n\t}",
"public void applyNewState() {\n this.setAlive(this.newState);\n }",
"public void checkState() {\r\n\t\tout.println(state);\r\n\t\tif(getEnergy() < 80 && getOthers() > 5) {\r\n\t\t\tstate = 1;\r\n\t\t\tturnLeft(getHeading() % 90);\r\n\t\t\tahead(moveAmount);\r\n\t\t}\r\n\t\telse if(getEnergy() < 80 && getOthers() < 5) {\r\n\t\t\tstate = 0;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tstate = 0;\r\n\t\t}\r\n\t\t\r\n\t}",
"public void moveStopped()\n {\n for (GraphElement element : elements) {\n if(element instanceof Moveable) {\n Moveable moveable = (Moveable) element;\n moveable.setPositionToGhost();\n }\n } \n }",
"@Override\n public void stepUp(Cell currentCell) {\n if(currentCell.getOldNoOfAliveNeighbours()==3)\n {\n currentCell.setState(new Alive());\n }\n }",
"@Override\n void setupState(TYPE firstItem) {\n currentItem = 0;\n }",
"public void jumpToCurrentState() {\n if (mRunningAnimator != null) {\n mRunningAnimator.end();\n }\n }",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}",
"public void step() {\r\n\t\tcard1 = player1.getCard();\r\n\t\tcard2 = player2.getCard();\r\n\t\twarPile.add(card1);\r\n\t\twarPile.add(card2);\r\n\t\tgameState = \"Player 1: \" + card1 + \"\\n\" + \"Player 2: \" + card2 + \"\\n\";\r\n\t\tif(card1.getRank() == card2.getRank()) {\r\n\t\t\tgameState = \"Cards added to the War Pile\" + \"\\n\";\r\n\t\t}else if(card1.getRank() > card2.getRank()){\r\n\t\t\ttransferCards(player1);\r\n\t\t\tgameState = \"Cards go to Player 1 \\n\";\r\n\t\t}else {\r\n\t\t\ttransferCards(player2);\r\n\t\t\tgameState = \"Cards go to Player 2 \\n\";\r\n\t\t}\r\n\t\tmoves ++;\r\n\t}",
"@Override\n\tpublic void moveState(JLabel label, int x1, int y1, int x2, int y2) {\n\n\t}",
"private void turnAround() {\r\n this.setCurrentDirection(-getCurrentDirection());\r\n }",
"public void update() {\n\t\tfirstMove = false;\n\t\tif (color == 1) xrange = -1;\n\t\tif (color == 0) xrange = 1;\n\t}",
"public void changeState(){\n\t\t//red - Green\n\t\tif (lights[0].isOn()){\n\t\t\tlights[0].turnOff();\n\t\t\tlights[2].turnOn();\n\t\t}\n\t\t\n\t\t//Green -yellow\n\t\telse if(lights[2].isOn()){\n\t\t\tlights[2].turnOff();\n\t\t\tlights[1].turnOn();\n\t\t}\n\t\t//yellow to red\n\t\telse if (lights[1].isOn()){\n\t\t\tlights[1].turnOff();\n\t\t\tlights[0].turnOn();\n\t\t}\n\t\t\n\t}",
"public synchronized void back ()\n\t// one move up\n\t{\n\t\tState = 1;\n\t\tgetinformation();\n\t\tgoback();\n\t\tshowinformation();\n\t\tcopy();\n\t}",
"@Override\r\n\tpublic void goForward() {\n\t\t\r\n\t}",
"private void moveAnts() {\n IntStream.range(currentIndex, numberOfCities - 1)\n .forEach(i -> {\n ants.forEach(ant -> ant.visitCity(currentIndex, selectNextCity(ant)));\n currentIndex++;\n });\n }",
"private void resetTurn(){\r\n lastRow = 0;\r\n lastCol = 0;\r\n selected = false;\r\n nextMove = new int[8][8];\r\n moveList = new Stack<>();\r\n repaint();\r\n System.out.println(toString());\r\n }",
"@Override\r\n\tpublic void move() {\n\t\tPoint target = strategy.search(this.getLocation(), new Point(0,0));\r\n\r\n\t\tint tries = 0;\r\n\t\t\r\n\t\twhile(!state.equals(\"Inactive\") && !game.movement(this, target.x, target.y)){\r\n\t\t\ttarget = strategy.search(new Point(x,y),playerLocation);\r\n\t\t\ttries++;\r\n\t\t\tif(tries > 4) return; // the search strategy has 4 tries to pick a valid location to move to\r\n\t\t}\r\n\t\t\r\n\t\tx = target.x;\r\n\t\ty = target.y;\r\n\r\n\t\tmoveSprite();\r\n\t}",
"@Override\r\n\tpublic void step(SimState state) {\r\n\r\n\t}",
"private void resetActionButtonsState()\n {\n // Actions\n GameAction fpAction = firstPlayer.getLastAction();\n GameAction spAction = secondPlayer.getLastAction();\n\n // First player reset state\n if (fpAction instanceof RockAction)\n {\n animateSelectedButton(firstPlayerRock, false);\n }\n else if (fpAction instanceof PaperAction)\n {\n animateSelectedButton(firstPlayerPaper, false);\n }\n else if (fpAction instanceof ScissorsAction)\n {\n animateSelectedButton(firstPlayerScissors, false);\n }\n\n // Second player reset state\n if (spAction instanceof RockAction)\n {\n animateSelectedButton(secondPlayerRock, true);\n }\n else if (spAction instanceof PaperAction)\n {\n animateSelectedButton(secondPlayerPaper, true);\n }\n else if (spAction instanceof ScissorsAction)\n {\n animateSelectedButton(secondPlayerScissors, true);\n }\n }",
"public void stepForward() {\n\t\tposition = forwardPosition();\n\t}",
"@Override\n\t\tprotected void doTransition() {\n\t\t\t\n\t\t}",
"public void step(){\n if (this.jobs.contains(this.currentFloor)){ //we arrived at our destination\n this.openDoor();\n this.leavePeople();\n this.deleteJob(this.currentFloor);\n } else {\n this.closeDoor();\n this.changeState();\n this.move();\n }\n }",
"public ArrayList<State> childStates(){\n boolean hasExpanded = false;\n this.childStates = new ArrayList<>();\n Successor successor = new Successor(); //for calling the successors functions\n //cases for this\n for (int i = 0; i < boardRows ; i++) {\n for (int j = 0; j < boardColumns; j++) {\n if(!hasExpanded){\n if(currentBoardState[i][j] == 0){\n\n if( i - 1 >= 0){\n //call moveDown()\n //System.out.println(i + \" \" + j);\n //System.out.println(\"calling moveDown()\");\n State newState = successor.moveDown(i, j, this.getCurrentBoardState(), this.getGoalBoardState());\n\n //newState.printBoard();\n childStates.add(newState);\n }\n\n if( i + 1 <= boardRows-1){\n //call moveUp()\n //System.out.println(i + \" \" + j);\n //System.out.println(\"calling moveUp()\");\n //this.printBoard();\n State newState = successor.moveUp(i, j, this.getCurrentBoardState(), this.getGoalBoardState());\n //newState.printBoard();\n childStates.add(newState);\n }\n\n if(j - 1 >= 0){\n //System.out.println(i + \" \" + j);\n //System.out.println(\"calling moveRight()\");\n //this.printBoard();\n State newState = successor.moveRIght(i, j, this.getCurrentBoardState(), this.getGoalBoardState());\n //newState.printBoard();\n childStates.add(newState);\n }\n\n if( j + 1 <= boardColumns - 1){\n //System.out.println(i + \" \" + j);\n //System.out.println(\"calling moveLeft()\");\n //this.printBoard();\n State newState = successor.moveLeft(i,j,this.getCurrentBoardState(), this.getGoalBoardState());\n //newState.printBoard();\n childStates.add(newState);\n }\n hasExpanded = true;\n }\n }\n }\n }\n return childStates;\n }",
"private Action doNextMove(Action move){\n\t\t// update east or north\n\t\tif (move == Action.East){\n\t\t\teast++;\n\t\t} else if (move == Action.West){\n\t\t\teast--;\n\t\t} else if (move == Action.North){\n\t\t\tnorth++;\n\t\t} else if (move == Action.South){\n\t\t\tnorth--;\n\t\t}\n\t\treturn move;\n\t}",
"public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}",
"public void evolve() {\n\t\tboolean[][] nextState = new boolean[width][height];\n\t\t\n\t\t// Look at each position\n\t\tfor (int x = 0; x < width; x++) {\n\t\t\tfor (int y = 0; y < height; y++) {\n\t\t\t\tboolean value = calculateNextState(x, y);\n\t\t\t\tnextState[x][y] = value;\n\t\t\t}\n\t\t}\n\t\t\n\t\tstate = nextState;\n\t}",
"private void breakSpecialState() {\n this.inSpecialState = false;\n this.resetXMovement();\n }",
"public void left() {\n\t\tstate.left();\n\t}",
"@Override\n\tpublic void setState(State state) \n\t\t{ current = new PuzzleState(state.getString(state.getState()),\n\t\t\t\t\t\t\t\t\tstate.getString(state.getGoalState())); \n\t\t}",
"public void terrainStates(){\n \tif(statesPad.getRawButton(portButton)){terrainStates = portState;}\n \telse if(statesPad.getRawButton(chevellButton)){terrainStates = chevellState;}\n \telse if(statesPad.getRawButton(ballGrabButton)){terrainStates = ballGrabState;}\n \telse if(statesPad.getRawButton(driveStateButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(lowBarButton)){terrainStates = lowBarState;}\n \telse if(statesPad.getRawButton(roughButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(rockButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(moatButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(rampartButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(drawButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(sallyButton)){terrainStates = driveState;}\n \telse if(statesPad.getRawButton(statesPadDefault) || drivePad.getRawButton(defaultButton)){terrainStates = driveState;}\n \t\n \tswitch (terrainStates) {\n\t \tcase 1: \n\t \t\tport();\n\t \t\tSystem.out.println(\"HERE IN ONE\");\n\t break;\n\t \tcase 2:\t\n\t \t\tchevell();\n\t \t\tSystem.out.println(\"HERE IN TWO\");\n\t \tbreak;\n\t case 3:\n\t \troughT();\n\t \tSystem.out.println(\"HERE IN THREE\");\n\t \tbreak;\n\t case 4: \n\t \tmoat();\n\t \tSystem.out.println(\"HERE IN FOUR\");\n\t \tbreak;\n\t case 5:\n\t \trampart();\n \t\t\tSystem.out.println(\"HERE IN FIVE\");\n \t\t\tbreak;\n\t case 6: \n\t \tdrawBridge();\n \t\t\tSystem.out.println(\"HERE IN SIX\");\n \t\t\tbreak;\n\t case 7: \n\t \tsallyPort();\n \t\t\tSystem.out.println(\"HERE IN SEVEN\");\n \t\t\tbreak;\n\t case 8: \n\t \tlowBar();\n\t \tSystem.out.println(\"HERE IN EIGHT\");\n\t \tbreak;\n\t case 9: \n\t \trockWall();\n \t\t\tSystem.out.println(\"HERE IN NINE\");\n \t\t\tbreak;\n\t case 10: \n\t \tballGrab();\n\t\t\t\tSystem.out.println(\"HERE IN TEN\");\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\tdrivingState();\n\t\t\t\tSystem.out.println(\"HERE IN TWELVE\");\n\t\t\t\tbreak;\n\t default: \n\t \t//reset all of the states\n\t \tportSwitch \t\t= 0;\n\t \tchevellSwitch\t= 0;\n\t \tballGrabSwitch\t= 0;\n\t \tdriveSwitch\t\t= 0;\n\t \tliftArm();\n\t \twheelArms();\n\t \tSystem.out.println(\"HERE IN DEFAULT\");\n \t}\n \tSystem.out.println(\"OUTSIDE THE SWITCH\");\n }",
"@Override\n\tpublic MoveState transitionTowards() {\n\t\treturn new MoveTowardsState();\n\t}",
"public void act() {\n\t\tboolean willMove = canMove();\n\t\tif (isEnd) {\n\t\t//to show step count when reach the goal\n\t\t\tif (!hasShown) {\n\t\t\t\tString msg = stepCount.toString() + \" steps\";\n\t\t\t\tJOptionPane.showMessageDialog(null, msg);\n\t\t\t\thasShown = true;\n\t\t\t}\n\t\t} else if (willMove) {\n\t\t\t//visit the next node\n\t\t\tisVisited[next.getRow()][next.getCol()] = true;\n\t\t\tmove();\n\t\t\tstepCount++;\n\t\t} else {\n\t\t\t// back to the cross location\n\t\t\tback();\n\t\t\tstepCount++;\n\t\t}\n\t}",
"@Test\n public void testStateTransitions3()\n {\n //Undo from starting state\n boolean assertionFailed = false;\n try\n {\n theEngine.undoLastMove();\n }\n catch (AssertionError ae)\n {\n assertionFailed = true;\n }\n \n assertTrue(assertionFailed);\n \n //Undo from playing state\n theEngine.start();\n try\n {\n theEngine.undoLastMove();\n }\n catch (AssertionError ae)\n {\n assertionFailed = true;\n }\n \n //Undo from halted state\n theEngine.quit();\n movePlayerToCell(getEmptyCell());\n theEngine.undoLastMove();\n //didn't throw assertion error, so fine\n assertTrue(theEngine.invariant());\n assertTrue(theEngine.inHaltedState());\n }",
"private void setState(WFDState s) {\n Log.d(TAG, \"Moving from \" + sState + \" --> \" + s);\n sState = s;\n }",
"public void train() {\n while (!environment.inTerminalState()) {\n\n Action action = policy.chooseAction(environment);\n List<Double> stateAction = environment.getStateAction(action);\n\n double knownReward = environment.immediateReward(action);\n double totalReward = environment.performAction(action);\n double unknownReward = totalReward - knownReward;\n\n // Next state of environment is implicitly passed.\n backup(stateAction, unknownReward);\n }\n }",
"public void move() {\n\n if (_currentFloor == Floor.FIRST) {\n _directionOfTravel = DirectionOfTravel.UP;\n }\n if (_currentFloor == Floor.SEVENTH) {\n _directionOfTravel = DirectionOfTravel.DOWN;\n }\n\n\n if (_directionOfTravel == DirectionOfTravel.UP) {\n _currentFloor = _currentFloor.nextFloorUp();\n } else if (_directionOfTravel == DirectionOfTravel.DOWN) {\n _currentFloor = _currentFloor.nextFloorDown();\n }\n\n if(_currentFloor.hasDestinationRequests()){\n stop();\n } \n\n }",
"public void move(){\n\t\tswitch(state){\r\n\t\t\tcase ATField.SPRITE_STAND:\r\n\t\t\t\tspriteX = 0;\r\n\t\t\t\tcoords = standbySprite.get(spriteX);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\r\n\t\t\tcase ATField.SPRITE_WALK:\r\n\t\t\t\tif(spriteX >walkSprite.size() - 1){\r\n\t\t\t\t\tspriteX = 0;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcoords = walkSprite.get(spriteX);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tspriteX++;\r\n\t\t\t\t\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase ATField.SPRITE_RUN:\r\n\t\t\t\t\r\n\t\t\t\tif(spriteX >runSprite.size() - 1){\r\n\t\t\t\t\tspriteX = 0;\r\n\t\t\t\t\tsetState(STAND);\r\n\t\t\t\t}\r\n\t\t\t\tcoords = runSprite.get(spriteX);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tspriteX++;\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase ATField.SPRITE_JUMP:\r\n\t\t\t\tif(spriteX >5){\r\n\t\t\t\t\tsetState(STAND);\r\n\t\t\t\t}\r\n\t\t\t\tcoords = jumpSprite.get(0);\r\n\t\t\t\tspriteImg = new Rect(coords.left,coords.top,coords.right,coords.bottom);\r\n\t\t\t\tactualImg = new Rect(x, y, x + width, y + height);\r\n\t\t\t\tspriteX++;\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void act() \n {\n if(s == 0)\n {\n lead();\n lookForFood();\n lookForEdge();\n lookForTail();\n }\n else\n {\n follow();\n }\n }",
"private static List<State<StepStateful>> getStates() {\n List<State<StepStateful>> states = new LinkedList<>();\n states.add(s0);\n states.add(s1);\n states.add(s2);\n states.add(s3);\n states.add(s4);\n states.add(s5);\n states.add(s6);\n return states;\n }",
"public void back() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null)\n\t return;\n\n\tif (!crossLocation.isEmpty()) {\n\t\t\n\t crossLocation.pop();\n\n\t //back\n\t ArrayList<Location> lastNode = crossLocation.peek();\n\t next = lastNode.get(0);\n\t}\n\n\tLocation loc = getLocation();\n\t\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\t\n\tint counter = dirCounter.get(getDirection());\n\tdirCounter.put(getDirection(), --counter);\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n }",
"private void moveTo(int xpos, int ypos) {\n repeat = true;\n int x1 = ypos / CELL_SIZE;\n int y1 = xpos / CELL_SIZE;\n int d;\n boolean valid = true;\n int st, bc = 0;\n if (x1 == x && y1 != y) {\n if (y1 > y) {\n for (int i = y; i <= y1; i++) {\n st = state[x][i];\n if (st == WALL_ST || st == NULL_ST) {\n valid = false;\n break;\n } else if (st == BOX_ST || st == FIT_ST) {\n bc++;\n if (bc > 1) {\n valid = false;\n break;\n }\n }\n }\n } else {\n for (int i = y1; i <= y; i++) {\n st = state[x][i];\n if (st == WALL_ST || st == NULL_ST) {\n valid = false;\n break;\n } else if (st == BOX_ST || st == FIT_ST) {\n bc++;\n if (bc > 1) {\n valid = false;\n break;\n }\n }\n }\n }\n } else if (x1 != x && y1 == y) {\n if (x1 > x) {\n for (int i = x; i <= x1; i++) {\n st = state[i][y];\n if (st == WALL_ST || st == NULL_ST) {\n valid = false;\n break;\n } else if (st == BOX_ST || st == FIT_ST) {\n bc++;\n if (bc > 1) {\n valid = false;\n break;\n }\n }\n }\n } else {\n for (int i = x1; i <= x; i++) {\n st = state[i][y];\n if (st == WALL_ST || st == NULL_ST) {\n valid = false;\n break;\n } else if (st == BOX_ST || st == FIT_ST) {\n bc++;\n if (bc > 1) {\n valid = false;\n break;\n }\n }\n }\n }\n } else {\n valid = false;\n }\n\n if (valid) {\n if (x1 == x && y1 != y) {\n if (y1 > y) {\n d = y1 - y;\n for (int i = 0; i < d && repeat; i++) {\n changeState(RIGHT_MOVE);\n try {\n Thread.sleep(SLEEP);\n } catch (InterruptedException e1) {\n //empty\n }\n }\n } else {\n d = y - y1;\n for (int i = 0; i < d && repeat; i++) {\n changeState(LEFT_MOVE);\n try {\n Thread.sleep(SLEEP);\n } catch (InterruptedException e1) {\n //empty\n }\n }\n }\n } else if (x1 != x && y1 == y) {\n if (x1 > x) {\n d = x1 - x;\n for (int i = 0; i < d && repeat; i++) {\n changeState(DOWN_MOVE);\n try {\n Thread.sleep(SLEEP);\n } catch (InterruptedException e1) {\n //empty\n }\n }\n } else {\n d = x - x1;\n for (int i = 0; i < d && repeat; i++) {\n changeState(UP_MOVE);\n try {\n Thread.sleep(SLEEP);\n } catch (InterruptedException e1) {\n //empty\n }\n }\n }\n }\n } else {\n List<Point> path = findPath(new Point(y, x), new Point(y1, x1));\n\n if (path.size() > 1) {\n Point cpnt, opnt;\n opnt = (Point) path.get(0);\n int psize = path.size();\n for (int i = 1; i < psize && repeat; i++) {\n cpnt = (Point) path.get(i);\n moveOne(cpnt.y, cpnt.x, opnt.y, opnt.x);\n opnt = cpnt;\n try {\n Thread.sleep(SLEEP);\n } catch (InterruptedException e1) {\n //empty\n }\n }\n }\n }\n }",
"public void alterState(SimulationState currentState) {\r\n int size = states.size();\r\n states.removeIf(state -> state.getFrameNumber() >= currentState.getFrameNumber());\r\n alteredStates.removeIf(num -> num >= currentState.getFrameNumber());\r\n alteredStates.add(currentState.getFrameNumber());\r\n states.add(currentState.getFrameNumber(), currentState);\r\n for (int i = states.size(); i < size; i++) {\r\n nextState();\r\n }\r\n }",
"private void exitSequence_mainRegion_State1() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.$NullState$;\n\t}",
"abstract public void updateState();",
"private void updateState() {\n switch (game.getGameState()) {\n case GAME:\n gamePlay();\n break;\n case ONE:\n lostTurnByOne();\n break;\n case READY:\n readyToPlay();\n break;\n case START:\n startGame();\n break;\n case TURN:\n startTurn();\n break;\n case FINISH:\n finishGame();\n break;\n }\n }",
"@Override\n public void act()\n {\n Location loc = getLocation();\n int r = loc.getRow();\n int c = loc.getCol();\n int dir = getDirection();\n if(dir == Location.NORTH)\n {\n if(r - START_ROW + 1 > -2*(address & ADDRESS))\n {\n move();\n }\n else\n {\n setDirection(Location.WEST);\n }\n }\n else if(dir == Location.WEST)\n {\n if(c <= RETURN_COL)\n {\n setDirection(Location.SOUTH);\n }\n else\n {\n Bit b = null;\n Actor a = getGrid().get(loc.getAdjacentLocation(Location.SOUTH));\n if(a instanceof Bit) b = (Bit)a;\n if(b != null)\n {\n processBit(b,-c-1);\n }\n move();\n }\n }\n else if(dir == Location.SOUTH)\n {\n if(r == -1)\n {\n setDirection(Location.EAST);\n }\n else\n {\n move();\n }\n }\n else if(dir == Location.EAST)\n {\n move();\n }\n else\n {\n System.err.println(\"yer bus is on an angle bud\");\n }\n }",
"public void moveAll()\n\t{\n\t\tmoveOutput = \"\";\n\t\tfor (int i = 0; i < 20; i++)\n\t\t{\n\t\t\tif (river[i] != null)\n\t\t\t{\n\t\t\t\triver[i].move(i);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void next(){\n balls.translate();\n majGui();\n }",
"public void skip(){\n if (!this.hasNext()) return;\n \n this.checkNext();\n \n if (!this.allStatesIterator.hasNext()){\n this.allStatesIterator = new IntegerIterator(1);\n this.allStatesIterator.skip();\n \n if(!this.allSubsetsIterator.hasNext()){\n this.allSubsetsIterator = new SubsetIterator(this.numberOfStates);\n this.currentFinalStatesIds = this.allSubsetsIterator.next();\n this.currentTransitions = this.allTransitionsIterator.next();\n }\n else{\n this.currentFinalStatesIds = this.allSubsetsIterator.next();\n }\n }\n else{\n this.currentInitialStateId = this.allStatesIterator.next();\n }\n }",
"private void doGameCycle() {\n if(currentState == Common.GAME_STATE.INGAME){\r\n gun.move();\r\n checkCollision();\r\n repaint();\r\n }\r\n }",
"public void restart() {\n ReadOnlyAssignmentList currentState = assignmentListStateList.get(currentStatePointer);\n assignmentListStateList.clear();\n assignmentListStateList.add(currentState);\n currentStatePointer = 0;\n }",
"public abstract Op resetStates();",
"public void moveUp() {\n\t\tstate.updateFloor(state.getFloor()+1);\n\t}",
"public void next() {\n double[][] next = new double[size][size];\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n double sum = 0.0;\n for (int k = 0; k < size; k++) {\n sum += state[i][k] * transition[k][j];\n }\n next[i][j] = sum;\n }\n }\n this.currentStep++;\n this.state = next;\n }",
"public void move() {\n Grid<Actor> gr = getGrid();\n if (gr == null) {\n return;\n }\n Location loc = getLocation();\n if (gr.isValid(next)) {\n setDirection(getLocation().getDirectionToward(next));\n moveTo(next);\n } else {\n removeSelfFromGrid();\n }\n Flower flower = new Flower(getColor());\n flower.putSelfInGrid(gr, loc);\n }",
"public void getState();",
"public void step(){\n //System.out.println(\"step\");\n //display();\n Cell[][] copy = new Cell[world.length][world.length];\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){\n copy [r][c] = new Cell();\n copy[r][c].setState(world[r][c].isAlive());\n }\n }\n\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){ \n int n = getNumberOfLiveNeighbours(r,c);\n if(world[r][c].isAlive()){\n if(n<2||n>3){\n copy[r][c].setState(false);\n }\n }else{\n if(n==3){\n copy[r][c].setState(true);\n }\n }\n }\n }\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){\n world[r][c].setState(copy[r][c].isAlive());\n }\n }\n }",
"public void move()\n\t{\n\t\tVector v = ship.v;\n\t\tb = b.getLocation().add(v).getBlock();\n\t\tif(triangle != null) triangle.move();\n\t\tif(rear != null) rear.move();\n\t\tif(foreAndAft != null) foreAndAft.move();\n\t\tif(sails != null) for(int i = 0; i < sails.size(); i++)\n\t\t{\n\t\t\tSail sail = sails.get(i);\n\t\t\tsail.move();\n\t\t}\n\t}",
"protected abstract List breakOutOfStateStack();",
"private void setTransitionsList () {\n for (int i = 0; i < dfaStates.size(); i++) {\n List<State> currStateList = dfaStates.get(i);\n int currStateListID = dfaStatesWithNumbering.get(currStateList);\n State initialState = new State(currStateListID, true);\n\n HashMap<String, List<State>> currStateListInfo = dfaTable.get(currStateList);\n for (int j = 0; j < symbolList.size()-1; j++) {\n String currSymbol = Character.toString(symbolList.get(j));\n List<State> currStateListSymbolList = currStateListInfo.get(currSymbol);\n\n if (currStateListSymbolList.size() > 0) {\n State finalState = new State(dfaStatesWithNumbering.get(currStateListSymbolList), true);\n Transition tmpTransition = new Transition(currSymbol, initialState, finalState);\n\n // now add to transition list\n if (!transitionsList.contains(tmpTransition)) {\n transitionsList.add(tmpTransition);\n }\n }\n }\n }\n }",
"public void act() {\n\n\tif (0 == stepCount) {\n\n\t ArrayList<Location> node = new ArrayList<Location>();\n\t node.add(getLocation());\n\t crossLocation.push(node);\n\t}\n\n\tboolean willMove = canMove();\n\tif (isEnd == true) {\n\t //to show step count when reach the goal\t\t\n\t if (hasShown == false) {\n\t\tString msg = stepCount.toString() + \" steps\";\n\t\tJOptionPane.showMessageDialog(null, msg);\n\t\thasShown = true;\n\t }\n\t} else if (willMove) {\n\t\n\t move();\n\t //increase step count when move \n\t stepCount++;\n\t} else {\n\t \n\t back();\n\t stepCount++;\n\t}\n\n }",
"public void set(GameState state){\n states.pop();\n states.push(state);\n }",
"@Override\r\n\tpublic void resume() {\n\t\tcurrentState.resume();\r\n\t}"
] | [
"0.75724906",
"0.73782086",
"0.7085621",
"0.6847745",
"0.66659355",
"0.65561026",
"0.6491473",
"0.64417",
"0.6415289",
"0.6331067",
"0.6255456",
"0.6234929",
"0.6214254",
"0.61920696",
"0.61703867",
"0.6167499",
"0.6167488",
"0.6138735",
"0.61246485",
"0.6123778",
"0.612217",
"0.61220187",
"0.6100624",
"0.6080186",
"0.60800385",
"0.60638416",
"0.6062973",
"0.6042503",
"0.60286146",
"0.602587",
"0.6013172",
"0.6011848",
"0.600012",
"0.5999571",
"0.5992768",
"0.59785503",
"0.59749323",
"0.59732836",
"0.59717834",
"0.5953492",
"0.59501773",
"0.59309125",
"0.59193975",
"0.5911936",
"0.5910372",
"0.5901087",
"0.5887576",
"0.5885167",
"0.5872248",
"0.5870495",
"0.5867878",
"0.58662856",
"0.5851256",
"0.5850184",
"0.58484507",
"0.58464545",
"0.5844898",
"0.58432525",
"0.58376694",
"0.5832954",
"0.58311534",
"0.58271",
"0.5826226",
"0.58202964",
"0.58128893",
"0.5812445",
"0.58059204",
"0.57977074",
"0.5796532",
"0.5790631",
"0.57906216",
"0.5773686",
"0.5770936",
"0.5765786",
"0.5759252",
"0.57573986",
"0.5755654",
"0.57517564",
"0.5748262",
"0.57480764",
"0.57417524",
"0.5738863",
"0.5738349",
"0.5736499",
"0.5736375",
"0.5735915",
"0.5732579",
"0.5731487",
"0.5730764",
"0.5729158",
"0.5726217",
"0.5725865",
"0.5723988",
"0.57194185",
"0.57146376",
"0.5714561",
"0.57092893",
"0.57088006",
"0.57021594",
"0.5701403",
"0.5700994"
] | 0.0 | -1 |
Creates new form ContractView | public ContractView() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createContract() {\n\r\n\t}",
"public Contract create(){\n\t\treturn new Contract();\n\t}",
"@Override\n public void Create() {\n\n initView();\n }",
"public void create(Contract contract) {\n contract_dao.create(contract);\n }",
"public InvoiceCreate() {\n initComponents();\n }",
"@Override\n public void Create() {\n initView();\n initData();\n }",
"public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }",
"public Contract() {\n // initialise instance variables\n generateContractId();\n }",
"@Override\n public void createNewContractAgent(Messages.ContractProposalResponse msg) {\n spawn(\n DefaultContractVisualization.class,\n a -> {\n a.contId = msg.contId;\n a.contSize = msg.contSize;\n a.contDuration = msg.contDuration;\n a.contSpecialization = msg.contSpecialization;\n a.dbContSpecialization = msg.contSpecialization.toString();\n a.addLink(getID(), Links.ContractToClient.class);\n msg.lastContract.addContractVisualization(a);\n });\n }",
"private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }",
"public Contracts() {\r\n super();\r\n \r\n }",
"@RequestMapping(value = { \"/newcontract\" }, method = RequestMethod.POST)\n public String saveContract(@RequestParam(value = \"tNumber\", required = false) String phone, @RequestParam(value = \"customer\", required = false) String sso,\n @RequestParam(value = \"tarif\", required = false) String tarif,\n ModelMap model) {\n\n\n Customer customer = userService.findBySSO(sso);\n Tarif tarif1 = tarifService.findById(Integer.parseInt(tarif));\n Contract contract = new Contract(phone, customer, tarif1);\n// if (result.hasErrors()) {\n// return \"contractRegistration\";\n// }\n customer.setTelNumber(phone);\n userService.updateUser(customer);\n contractService.persist(contract);\n List<Contract> tarifContracts = contractService.findContractByTarif(tarif1);\n tarifContracts.add(contract);\n model.addAttribute(\"tarif\", tarif1);\n model.addAttribute(\"customer\", customer);\n model.addAttribute(\"phone\", customer.getTelNumber());\n model.addAttribute(\"contract\", contract);\n model.addAttribute(\"success\", \"Contract \" + contract.getContractId() + \" \" + \" added successfully\");\n model.addAttribute(\"loggedinuser\", getPrincipal());\n return \"registrationsuccess\";\n }",
"public New_shipment() {\n initComponents();\n init();\n \n }",
"@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_data_coa, container, false);\n\n ButterKnife.bind(this, root);\n\n setAppPreference(new PreferenceUtils(getActivity(), Constanta.APPLICATION_PREFERENCE));\n\n fabAddCoa.setOnClickListener(view -> {\n startActivity(new Intent(getActivity(), AddCoaActivity.class));\n });\n\n super.viewModel = new CoaModel();\n coaPresenter = new CoaPresenter();\n coaPresenter.init(super.viewModel, this, new ApiProvider());\n\n return root;\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState)\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n contentView = inflater.inflate(R.layout.dialog_add_contract, null);\n // Inflate and set the layout for the dialog\n // Pass null as the parent view because its going in the dialog layout\n builder.setView(contentView, 36, 36, 36, 36);\n\n final DialogFragment fragment = this;\n builder.setTitle(R.string.add_contract_dialog_title)\n .setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id)\n {\n // address was added manually\n if(optionAddContract.isChecked())\n {\n selectedContractAddress = contractAddressField.getText().toString();\n dialogListener.onAddContract(selectedContractAddress, selectedContractType);\n }else{\n dialogListener.onCreateContract(selectedContractType);\n }\n }\n })\n .setNegativeButton(R.string.cancel, null);\n\n // Create the AlertDialog object and return it\n Dialog diag = builder.create();\n\n //Find and init the UI components\n contractAddressField = (EditText) contentView.findViewById(R.id.contract_address_field);\n contractAddressSection = (LinearLayout)contentView.findViewById(R.id.manual_contract_address_section);\n\n optionAddContract = (RadioButton) contentView.findViewById(R.id.option_add_contract);\n optionCreateContract = (RadioButton) contentView.findViewById(R.id.option_create_contract);\n radioGroup = (RadioGroup) contentView.findViewById(R.id.account_radio_group);\n radioGroup.setOnCheckedChangeListener(this);\n\n contractTypeSpinner = (Spinner) contentView.findViewById(R.id.contract_type_spinner);\n contractTypeSpinner.setAdapter(new ArrayAdapter<ContractType>(contentView.getContext(), android.R.layout.simple_list_item_1, ContractType.values()));\n contractTypeSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n selectedContractType = ContractType.values()[i];\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n selectedContractType = ContractType.Purchase;\n }\n });\n\n return diag;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.fragment_category_new_edit, container, false);\n\t\tinitUI(view);\n\t\tfragmentManager = getFragmentManager();\n\t\tsetGridViewIcon(); //設置GridView相關\n\n\t\tif (newEdit.equalsIgnoreCase(\"new\")) { //新增\n\t\t\tgetActivity().setTitle(\n\t\t\t\t\togl4jo3.shaowei.ogl4jo3.accounting.R.string.title_income_category_new);\n\t\t\tivCategoryIcon.setImageResource(R.drawable.ic_category_other);\n\t\t\tcategoryIcon = R.drawable.ic_category_other;\n\t\t\tcategoryID = -1;\n\t\t\tbtnDel.setVisibility(View.GONE); //新增時隱藏刪除按鈕\n\t\t} else { //編輯\n\t\t\tgetActivity().setTitle(\n\t\t\t\t\togl4jo3.shaowei.ogl4jo3.accounting.R.string.title_income_category_edit);\n\t\t\tivCategoryIcon.setImageResource(category.getIcon());\n\t\t\tcategoryIcon = category.getIcon();\n\t\t\tcategoryID = category.getId();\n\t\t\tetCategoryName.setText(category.getName());\n\t\t}\n\t\tsetOnClickListener();\n\n\t\treturn view;\n\t}",
"public @ResponseBody Contract addContract(@RequestBody Contract Contract);",
"@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}",
"@Override\n protected void commitCreates(ViewImpl view, ObjectInstance oi)\n {\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_view_comic, container, false);\n\n txtViewTitle = view.findViewById(R.id.txtViewTitle);\n txtViewVolume = view.findViewById(R.id.txtViewVolume);\n txtViewIssue = view.findViewById(R.id.txtViewIssue);\n txtViewPublisher = view.findViewById(R.id.txtViewPublisher);\n txtViewCoverPrice = view.findViewById(R.id.txtViewCoverPrice);\n txtViewCondition = view.findViewById(R.id.txtViewCondition);\n txtViewFormat = view.findViewById(R.id.txtViewFormat);\n txtViewNotes = view.findViewById(R.id.txtViewNotes);\n imgViewCover = view.findViewById(R.id.imgViewCover);\n btnViewEdit = view.findViewById(R.id.btnViewEdit);\n btnViewDelete = view.findViewById(R.id.btnViewDelete);\n btnViewHome = view.findViewById(R.id.btnViewHome);\n recyclerViewCreators = view.findViewById(R.id.recyclerViewCreators);\n\n btnViewEdit.setOnClickListener(this);\n btnViewDelete.setOnClickListener(this);\n btnViewHome.setOnClickListener(this);\n\n mainActivity = (MainActivity)getActivity();\n dbHandler = new DBHandler(getContext());\n\n //Load comic data\n loadComicData();\n\n return view;\n }",
"@Override\n public void onClick(View v) {\n NewBucketDialogFragment newBucketDialogFragment = NewBucketDialogFragment.newInstance();\n newBucketDialogFragment.setTargetFragment(BucketListFragment.this, REQ_CODE_NEW_BUCKET);\n newBucketDialogFragment.show(getFragmentManager(), NewBucketDialogFragment.TAG);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View RootView = inflater.inflate(R.layout.fragment_vendor_bank_detail, container, false);\n\n bank_NameTxt = RootView.findViewById(R.id.bank_NameTxt);\n bank_accountNumTxt = RootView.findViewById(R.id.bank_accountNumTxt);\n bank_IfscTxt = RootView.findViewById(R.id.bank_IfscTxt);\n bank_Submit = RootView.findViewById(R.id.bank_Submit);\n\n bank_NameTxt.setText(bankName);\n bank_accountNumTxt.setText(accountNum);\n bank_IfscTxt.setText(ifsc);\n\n bank_Submit.setOnClickListener(this);\n\n return RootView;\n }",
"private void setUpCreditCardViews() {\n\n mSingleLineCardEntry = (SingleLineCardEntryView) mView.findViewById(R.id.credit_card_number);\n\n\n mAddCreditCard = (Button) mView.findViewById(R.id.add_card);\n mAddCreditCard.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n AnalyticsHelper.getInstance(getActivity()).logEvent(\"Added Credit Card\");\n\n if (mSingleLineCardEntry.isValid()){\n progressDialog = new TapFitProgressDialog(getActivity());\n progressDialog.setMessage(\"Adding Credit Card...\");\n progressDialog.show();\n UserRequest.addPaymentMethod(getActivity(), BraintreePayments.encryptPayment(mSingleLineCardEntry.getCardDetails()), addCardCallback);\n }\n }\n });\n\n //mSingleLineCardEntry.getCardDetails().\n /*mExpirationDate = (EditText) mView.findViewById(R.id.expiration_date);\n mExpirationDate.addTextChangedListener(expirationListener);\n\n mExpirationDate.setNextFocusDownId(R.id.cvv);\n\n mPostalCode = (EditText) mView.findViewById(R.id.postal_code);\n mSecurityCode = (EditText) mView.findViewById(R.id.cvv);\n\n mSecurityCode.setNextFocusDownId(R.id.postal_code);*/\n }",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"View createView();",
"public ContractMethod() {\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_trans, container, false);\n listView = view.findViewById(R.id.trans_list);\n view.findViewById(R.id.trans_insert).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n TransDialog transDialog = new TransDialog(getContext());\n transDialog.setFragment(TransFragment.this);\n transDialog.show();\n }\n });\n adapter = new TransAdapter(getContext());\n adapter.setTransFragment(this);\n listView.setAdapter(adapter);\n loadData();\n return view;\n }",
"public interface ContractsView extends MvpView {\n void showContracts(LoadMoreWrapper wrapper,List<Contact> contacts);\n void showPayContactOrder(PayOrderContactDto payOrderContactDto);\n}",
"public void create_new_package(View V) {\n make_request();\r\n progressDialog.show();\r\n }",
"public ViewProveedores() {\n initComponents();\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_create_account, container, false);\r\n }",
"public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }",
"@Override\n\tpublic void createItem(Object result) {\n\t\t\n\t\tunloadform();\n\t\tif (result != null) {\n\t\t\tIOTransactionLogic tr = (IOTransactionLogic) result;\n\t\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\t\tint month = Calendar.getInstance().get(Calendar.MONTH);\n\t\t\t\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.setTime(tr.getDate());\n\t\t\tint trYear = cal.get(Calendar.YEAR);\n\t\t\tint trMonth = cal.get(Calendar.MONTH);\n\t\t\t\n\t\t\tif ((year == trYear) && (month == trMonth)\n\t\t\t\t\t&& tr.getBankAccountID() == bal.getId()) {\n\t\t\t\ttransactionDisplayer trDisplayer = new transactionDisplayer(tr);\n\t\t\t\tsetDataLineChart();\n\t\t\t\tsetDataPieChart();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public View onCreateView(@NonNull LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n \n View root = inflater.inflate(R.layout.fragment_add_training, container, false);\n controller = Controller.getInstance(root.getContext()); // database\n Button dateButton = root.findViewById(R.id.at_button_date);\n Button submit = root.findViewById(R.id.at_button_submit);\n\n // initialize form\n setCalendarToFrench();\n initForm(root);\n\n // event click on calendar button\n dateButton.setOnClickListener(v -> chooseDateFromCalendar(dateButton));\n\n // event click on submit button\n submit.setOnClickListener(v -> submitForm());\n\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_add_new_contact, container, false);\n final EditText name = v.findViewById(R.id.etName);\n final EditText phone = v.findViewById(R.id.etPhoneNumber);\n final Spinner operator = v.findViewById(R.id.spinnerOperator);\n final CountryCodePicker ccp = v.findViewById(R.id.ccp);\n\n\n Button save = v.findViewById(R.id.btnSaveAndSubmit);\n save.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n pd = new ProgressDialog(getContext());\n pd.setMessage(\"Enviando\");\n\n if(name.getText().toString().isEmpty()){\n name.setError(\"Ingresa un nombre\");\n }else if(name.getText().toString().isEmpty()){\n name.setError(\"Ingresa un nombre\");\n }else if (operator.getSelectedItem().equals(\"Provider name\")){\n Toast.makeText(getContext(), \"Elige Proveedor\", Toast.LENGTH_SHORT).show();\n }else if(phone.getText().toString().isEmpty()){\n phone.setError(\"Ingresa un numero\");\n }else {\n pd.show();\n Contact contact = new Contact(name.getText().toString(),phone.getText().toString(),ccp.getSelectedCountryCodeWithPlus(),operator.getSelectedItem().toString());\n\n final FirebaseDatabase database = FirebaseDatabase.getInstance();\n DatabaseReference ref = database.getReference(Constants.TEST);\n\n DatabaseReference usersRef = ref.child(\"contact\");\n\n usersRef.child(USER.getUid()).setValue(contact);\n if(!Constants.TEST.equals(\"testenvironment/\")) {\n Constants.sendNotification(ADMIN_TOKEN, \"Reward claimed\");\n }\n submit();\n }\n\n\n }\n });\n\n return v;\n }",
"public ServiceItemFragmentNew() {\n }",
"private CatalogContract() {}",
"@Override\n public View onCreateView(\n LayoutInflater inflater,\n ViewGroup container,\n Bundle savedInstanceState) {\n final View view =\n inflater.inflate(\n R.layout.fragment_reponses_show,\n container,\n false); \n if (this.getActivity() instanceof DeleteCallback) {\n this.deleteCallback = (DeleteCallback) this.getActivity();\n }\n\n this.initializeComponent(view);\n \n final Intent intent = getActivity().getIntent();\n this.update((Reponses) intent.getParcelableExtra(ReponsesContract.PARCEL));\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_add_new_incident, container, false);\n\n initView(view);\n incidentData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_create_card, container, false);\n }",
"public companyview() {\n initComponents();\n }",
"public TransferOfFundsForm() {\n super();\n }",
"@OnClick(R.id.fab)\n public void onClick()\n {\n CreateCommunityFragment createCommunityFragment = new CreateCommunityFragment();\n createCommunityFragment.show(getSupportFragmentManager(), getString(R.string.title_create_community));\n }",
"@OnClick (R.id.create_course_btn)\n public void createCourse()\n {\n\n CourseData courseData = new CourseData();\n courseData.CreateCourse( getView() ,UserData.user.getId() ,courseName.getText().toString() , placeName.getText().toString() , instructor.getText().toString() , Integer.parseInt(price.getText().toString()), date.getText().toString() , descreption.getText().toString() ,location.getText().toString() , subField.getSelectedItem().toString() , field.getSelectedItem().toString());\n }",
"Compuesta createCompuesta();",
"public DDSViewCollectionForm() {\n\t}",
"public InvoiceLineViewForm() throws IllegalArgumentException, Exception {\n\t\tbuildMainLayout();\n\t\tsetCompositionRoot(mainLayout);\n\t\t\n\t\t// TODO add user code here\t\t\n\t\tinitComponents();\n\t\t\n\t\t// configure Organization Type data\n\t\tinvoiceLineStatusField.setItemCaptionMode(Select.ITEM_CAPTION_MODE_PROPERTY);\n\t\tinvoiceLineStatusField.setItemCaptionPropertyId(\"description\");\n\t\t\n\t\tinvoiceField.setItemCaptionMode(Select.ITEM_CAPTION_MODE_PROPERTY);\n\t\tinvoiceField.setItemCaptionPropertyId(\"code\");\n\t\t\n\t\tivaField.setItemCaptionMode(Select.ITEM_CAPTION_MODE_PROPERTY);\n\t\tivaField.setItemCaptionPropertyId(\"description\");\n\t\t\t\t\n\t\t// get form services from OSGi Service Registry\n\t\tgetServices();\n\t\t\n\t\t// load data sources\n\t\tloadData();\t\t\n\t}",
"public ControllerNewCRV(newCRV fenetre, DAOProduit DaoProd, DAOCategorie DaoCat,DAOMedecin daoMed,DAOVisiteur daoVisi, DAOCompteRendu daoCRV) {\n\t\t\n\t\tthis.fenetre = fenetre;\n\t\tthis.daoCat = DaoCat;\n\t\tthis.daoProd = DaoProd;\n\t\tthis.daoMed = daoMed;\n\t\tthis.daoVisi = daoVisi;\n\t\tthis.daoCRV = daoCRV;\n\t\tfenetre.getBtnRetour().addActionListener(this);\n\t\tfenetre.getBtnValider().addActionListener(this);\n\t\tfenetre.getBtnAjouter().addActionListener(this);\n\t\tfenetre.getComboBox_cat().addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent event) {\n\t //\n\t // Get the source of the component, which is our combo\n\t // box.\n\t //\n\t JComboBox comboBox = (JComboBox) event.getSource();\n\t String comboBoxname = comboBox.getName();\n\t \t\t\n\t \t\tswitch (comboBoxname) {\n\t \t\tcase \"selectionner\":\n\t \t\t\tviewProduit();\n\t \t\t\tbreak;\t\n\n\t \t\tdefault:\n\t \t\t\tbreak;\n\t \t\t}\t\t\n\t \n\n\t }\n\t });\n\t}",
"public OnlineVerificationView() {\n }",
"@Override\n public View newView(Context context, Cursor cursor, ViewGroup parent) {\n LayoutInflater inflater = LayoutInflater.from(parent.getContext());\n View retView = inflater.inflate(R.layout.contact_picker_fragment, parent, false);\n ContactsViewHolder viewHolder = new ContactsViewHolder();\n viewHolder.imgView = (ImageView) retView.findViewById(R.id.contact_img);\n viewHolder.txtView = (TextView) retView.findViewById(R.id.contact_name);\n viewHolder.chkBox = (CheckBox) retView.findViewById(R.id.chkBox_selectContact);\n // viewHolder.chkBox.setOnClickListener(this);\n retView.setTag(viewHolder);\n return retView;\n }",
"public CreateAccount() {\n initComponents();\n selectionall();\n }",
"private Contract() {\n }",
"public AddToCardFragment() {\n }",
"@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}",
"private View create(PersistedView pView) {\n DsmSorting sorting = nameToSorting.get(pView.dsmSortingName);\n if (null == sorting) {\n sorting = DsmSorting.values()[0];\n }\n\n View view = new View();\n view.setName(decodeString(pView.name));\n view.setSorting(sorting);\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n // Inflate the container\n View view = inflater.inflate(R.layout.fragment_quote_add, container, false);\n // set up the text views\n mAddNameTextView = (EditText) view.findViewById(R.id.add_name_text);\n mAddSourceTextView = (EditText) view.findViewById(R.id.add_source_text);\n mAddQuoteTextView = (EditText) view.findViewById(R.id.add_quote_text);\n return view;\n }",
"private void inflateCreditCardDialog() {\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View view = inflater.inflate(R.layout.fragment_add_credit_card, null);\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setView(view);\n payDialog = builder.show();\n\n textViewCreditCardExpirationDate = (TextView) view.findViewById(R.id.editTextCreditCardExpirationDate);\n// spinnerCreditCardSelector = (Spinner) view.findViewById(R.id.spinnerCreditCardSelector);\n editTextCreditCardNumber = (EditText) view.findViewById(R.id.editTextCreditCardNumber);\n editTextCreditCardName = (EditText) view.findViewById(R.id.editTextCreditCardName);\n editTextCCV = (EditText) view.findViewById(R.id.editTextCCV);\n checkBoxAgreedTAC = (CheckBox) view.findViewById(R.id.checkBoxAgreedTAC);\n textViewSubTotalPay = (TextView) view.findViewById(R.id.textViewSubTotalPay);\n payButton = (Button) view.findViewById(R.id.buttonPayWithCC);\n textViewSubTotalPay.setText(String.valueOf(textViewPrepaidPrice.getText()));\n\n textViewCreditCardExpirationDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n showDatePicker();\n }\n });\n\n payButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n payButtonClicked();\n }\n });\n }",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"private MarkupContainer createCartFragment() {\r\n return new Fragment(CONTENT_VIEW, CART_FRAGMENT, this)\r\n .add(new ShoppingCartView(CART_VIEW));\r\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tFragmentManager fm = getActivity().getSupportFragmentManager();\n\t\t\t\tFragment_Order_Create_ListDlg editNameDialog = new Fragment_Order_Create_ListDlg();\n\t\t\t\t// editNameDialog.getDialog().setTitle(\"Nhập số lượng\");\n\t\t\t\teditNameDialog.setHandleData(FragmentOrderCreate_ViewOrConfirm.this);\n\t\t\t\teditNameDialog.show(fm, \"fragment_edit_name\");\n\t\t\t}",
"public ViewDetalleVentas() {\n initComponents();\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_add_recipe, container, false);\n\n view.findViewById(R.id.add_recipe_save).setOnClickListener(this);\n view.findViewById(R.id.add_recipe_clear).setOnClickListener(this);\n\n if(recipe != null) {\n ((EditText) view.findViewById(R.id.add_recipe_name)).setText(recipe.getName());\n ((EditText) view.findViewById(R.id.add_recipe_spices)).setText(Utils.convertListToCsv(recipe.getSpices()));\n ((EditText) view.findViewById(R.id.add_recipe_ingredients)).setText(Utils.convertListToCsv(recipe.getIngredients()));\n ((EditText) view.findViewById(R.id.add_recipe_steps)).setText(recipe.getSteps());\n }\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view =inflater.inflate(R.layout.activity_crearno, container, false);\n titulo = (EditText) view.findViewById(R.id.titulo);\n nota = (TextView) view.findViewById(R.id.titu1);\n Button btnCre = (Button) view.findViewById(R.id.crearno);\n\n btnCre.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n titu=titulo.getText().toString();\n\n NotasFragment fragment = new NotasFragment();\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n\n\n\n\n }\n });\n return view;\n }",
"public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}",
"public interface TripReimburseContract {\n interface View extends BaseView<Presenter> {\n\n\n\n void showReimbursement();\n\n void InitView(String dttime, String addr, String incity_traffic_fee, String outcity_traffic_show, String outcity_traffic_fee, String boarding_fee, String accomdation_fee, String fee_total, String memo, String bill_num);\n }\n interface Presenter extends BasePresenter {\n\n void result(int requestCode, int resultCode, Intent data);\n\n\n void submitTripReimburse(String startAddress, String endAddress, String trafficCost, String outTrafficCost, String time, String foodCost, String liveCost, String cost, String detail, String bills);\n }\n}",
"public void createInvoice() {\n\t}",
"public View() {\n initComponents();\n Paypal.setVisible(false);\n MasterCard.setVisible(false);\n Visa.setVisible(false);\n setLocationRelativeTo(null);\n setResizable(false);\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n generarFacturaBoton.setVisible(false);\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_new_goods, container, false);\n }",
"public interface CrearRutinaContract {\n\n interface View {\n void onRutinaCreadaError();\n void onRutinaCreada();\n }\n interface Presenter {\n\n void crearRutina(Rutina rutina);\n\n }\n}",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {\n\n final View contentView = inflater.inflate(R.layout.dialog_add_worklog, container, false);\n\n ButterKnife.bind(this, contentView);\n\n saveButton.setOnClickListener((v -> {\n String shortDescText = shortDesc.getText().toString();\n String longDescText = longDesc.getText().toString();\n\n ((TicketDetails)getActivity()).addWorkLogRemote(shortDescText,longDescText);\n\n shortDesc.setText(null);\n longDesc.setText(null);\n dismiss();\n }));\n\n cancelButton.setOnClickListener((view -> {\n dismiss();\n }));\n\n title.setText(getString(R.string.dialogWorkLog_title));\n return contentView;\n }",
"public CrearPedidos() {\n initComponents();\n }",
"public CustomerContract() {\n\n }",
"public interface AddEditTaskContract {\n\n interface View extends BaseView<Presenter> {\n\n void showEmptyTaskError();\n\n void showTasksList();\n\n void setTitle(String title);\n\n void setDescription(String description);\n\n boolean isActive();\n }\n\n interface Presenter extends BasePresenter<View> {\n\n void saveTask(String title, String description);\n\n void populateTask();\n\n boolean isDataMissing();\n }\n}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_add_new_entry, container, false);\n }",
"public interface GiftBuyRecordContract {\n interface View extends BaseContract.BaseView{\n void setGiftBuyRecord(List<GiftBuyRecord> bookCategories);\n void onAddAddr();\n }\n\n interface Presenter extends BaseContract.BasePresenter<View>{\n void loadGiftBuyRecord(int pageNo, int pageSize);\n void addAddr(long id, String name, String phone, String addr);\n }\n}",
"public SalesView() {\n initComponents();\n salesDetailTable.setAutoCreateColumnsFromModel(false);\n jdcTransaksi.setDate(new Date());\n enableForm(false);\n buttonConfig();\n salesDetailTable.getTableHeader().setFont(new Font(\"Segoe UI\", 0, 18)); \n }",
"public void createEvent(View view){\n showDatePickerDialog();\n }",
"public ContractorInfoPanel() {\n\t\tinitComponents();\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view =inflater.inflate(R.layout.fragment_update_account, container, false);\n mActivity.initToolBar(\"\",false);\n mActivity.hideToolbar();\n initViews(view);\n initListeners();\n getAllCurrency();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ticketBookingModule = new ViewModelProvider(Objects.requireNonNull(getActivity()), new MyViewModelFactory(this)).get(TicketBookingViewModel.class);\n return inflater.inflate(R.layout.fragment_confirm_ticket, container, false);\n }",
"@Override\n public RecyclerTransactionAdaptor.ViewHolder onCreateViewHolder(ViewGroup parent,\n int viewType) {\n // create a new view\n View v = LayoutInflater.from(parent.getContext())\n .inflate(R.layout.raw_item_transaction, parent, false);\n // set the view's size, margins, paddings and layout parameters\n\n ViewHolder vh = new ViewHolder(v);\n return vh;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_create_course_ui, container, false);\n ButterKnife.bind(this, view);\n\n //add list to spinner\n spinnerFieldList();\n return view;\n }",
"@Override\n public void onClick(View v) {\n Fragment newFragment = new NewMovimientoFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack\n transaction.replace(R.id.frame_container, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n deckDetailsView = getControllerCompositionRoot().getViewMvcFactory().getDeckDetailsViewImpl(container);\n return deckDetailsView.getRootView();\n }",
"public ViewDetallesPagos () {\r\n\r\n }",
"public ViewEntry() {\n initComponents();\n pnlRates.add(new ViewRateSchedule()); \n pnlRates.validate();\n }",
"public interface PickDistributeContract {\n\n interface View extends BaseContract.View<PickDistributeContract.Presenter> {\n void success(RspAllDistribute list);\n\n void itemSuccess(List<RspDistribute> list);\n\n void submitSuccess();\n }\n\n interface Presenter extends BaseContract.Presenter {\n void getData();\n\n void itemClick(List<RspDistribute> list, int position);\n\n void submit(List<RspDistribute> list,String note,RspUser chooseEmp);\n }\n}",
"public Contract createContract(Integer identifier) throws UnkownCustomerID {\n\t\treturn null;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_network, container, false);\n\n btnInsertar = (Button) rootView.findViewById(R.id.btnRegistrar);\n btnConsultar = (Button) rootView.findViewById(R.id.btnConsultar);\n edtName = (EditText) rootView.findViewById(R.id.edName);\n btnInsertar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String name=edtName.getText().toString().trim();\n insertDatabase(name);\n }\n });\n btnConsultar.setOnClickListener(this);\n return rootView;\n }",
"public FormularioLivroView() {\n initComponents();\n }",
"public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}",
"private FavouriteContract() {\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_risk_stratification, container, false);\n\n initializeFields(view);\n setListeners();\n if (formFilled) {\n assignValuesToFields(form, view);\n }\n\n return view;\n }",
"public CarritoComprasView(Cliente cliente, CentroComercialView centroComercialView) {\n this.setResizable(false);\n \n this.cliente = cliente;\n this.centroComercialView = centroComercialView;\n\n initComponents();\n this.setLocationRelativeTo(null);\n\n //Inicialización de los elementos de la vista.\n eliminarArticuloButton.setEnabled(false);\n eliminarPaqueteButton.setEnabled(false);\n\n mostrarCantidadProductos();\n mostrarTotalAPagar();\n mostrarArticulos();\n mostrarPaquetes();\n\n }",
"public void createNewExpense(View view) {\n EditText newExpenseNameInput = (EditText) findViewById(R.id.newExpenseName);\n EditText newDateInput = (EditText) findViewById(R.id.addExpenseDateEditText);\n Spinner newWhoPaidSpinner = (Spinner) findViewById(R.id.addExpensePayerSpinner);\n\n String newExpenseName = newExpenseNameInput.getText().toString();\n Long newAmount = totalDebt;\n Date newDate = null;\n try {\n newDate = new SimpleDateFormat(\"dd/MM/yyyy\").parse(newDateInput.getText().toString());\n } catch (ParseException e) {\n e.printStackTrace();\n }\n String newWhoPaid = newWhoPaidSpinner.getSelectedItem().toString();\n List<String> newPayees = new ArrayList<String>();\n\n int payeeListItemHoldersSize = payeeListItemHolders.size();\n List<Long> newOwedAmounts = new ArrayList<Long>();\n\n for (int i = 0; i < payeeListItemHoldersSize; i++) {\n if (payeeListItemHolders.get(i).getCheckBox().isChecked()) {\n newPayees.add(payeeListItemHolders.get(i).getCheckBox().getText().toString());\n newOwedAmounts.add(payeeListItemHolders.get(i).getDebt());\n }\n }\n\n Expense newExpense = new Expense(newExpenseName, newAmount, newDate, newWhoPaid, newPayees, newOwedAmounts, group);\n\n try {\n newExpense.save();\n } catch (com.parse.ParseException e) {\n e.printStackTrace();\n }\n\n // finish activity\n Intent intent = setUpBackIntent();\n setResult(RESULT_OK, intent);\n finish();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil.inflate(inflater, R.layout.fragment_add_address, container, false);\n root = binding.getRoot();\n\n return root;\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 }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_ins_tructor_event_create, container, false);\n }",
"@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }"
] | [
"0.63017416",
"0.62020046",
"0.61011565",
"0.6084341",
"0.5894213",
"0.5841372",
"0.58221096",
"0.5794927",
"0.57392013",
"0.5711855",
"0.5699035",
"0.56882983",
"0.56702363",
"0.56627005",
"0.56543535",
"0.562579",
"0.5607359",
"0.5605992",
"0.559578",
"0.5594587",
"0.55886376",
"0.55652314",
"0.5558096",
"0.55164146",
"0.5495806",
"0.54892534",
"0.5488889",
"0.54685014",
"0.54671395",
"0.5459862",
"0.5446348",
"0.5431972",
"0.54302025",
"0.5424838",
"0.5405213",
"0.5396738",
"0.5392756",
"0.5392079",
"0.5377628",
"0.53764343",
"0.5375629",
"0.5374159",
"0.5359293",
"0.53585064",
"0.5352929",
"0.5339018",
"0.53132236",
"0.5310329",
"0.53082305",
"0.53043514",
"0.53018564",
"0.5298422",
"0.52944136",
"0.52924913",
"0.52875215",
"0.5282991",
"0.5281725",
"0.52816707",
"0.5279467",
"0.52653414",
"0.52651745",
"0.52636445",
"0.52613705",
"0.52592635",
"0.5247801",
"0.5238792",
"0.52382714",
"0.5238233",
"0.52332765",
"0.52278847",
"0.52276796",
"0.5226989",
"0.5224166",
"0.5223782",
"0.5221779",
"0.5221024",
"0.52151126",
"0.52094316",
"0.52010226",
"0.5200851",
"0.52006835",
"0.51983595",
"0.5191947",
"0.51917845",
"0.5188873",
"0.51800716",
"0.5175619",
"0.5175214",
"0.517372",
"0.517364",
"0.51734996",
"0.51733124",
"0.5172116",
"0.5170382",
"0.5163529",
"0.51598895",
"0.51529247",
"0.5150233",
"0.5147639",
"0.51472354"
] | 0.7143981 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jDialog1 = new javax.swing.JDialog();
jPanel1 = new javax.swing.JPanel();
jLabel4 = new javax.swing.JLabel();
jComboOriginCity = new javax.swing.JComboBox<>();
jPanel2 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabelContractID = new javax.swing.JLabel();
jLabelOriginCity = new javax.swing.JLabel();
jLabelDestCity = new javax.swing.JLabel();
jLabelOrderItem = new javax.swing.JLabel();
jLabelContractCount = new javax.swing.JLabel();
jPrevButton = new javax.swing.JButton();
jBidButton = new javax.swing.JButton();
jNextButton = new javax.swing.JButton();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu2 = new javax.swing.JMenu();
jMenuNewContract = new javax.swing.JMenuItem();
jMenuQuit = new javax.swing.JMenuItem();
jMenu3 = new javax.swing.JMenu();
javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());
jDialog1.getContentPane().setLayout(jDialog1Layout);
jDialog1Layout.setHorizontalGroup(
jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 400, Short.MAX_VALUE)
);
jDialog1Layout.setVerticalGroup(
jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 300, Short.MAX_VALUE)
);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Bid on Contracts");
jPanel1.setBackground(new java.awt.Color(153, 153, 153));
jLabel4.setText("Filter By Origin:");
jComboOriginCity.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
jComboOriginCity.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jComboOriginCityActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(73, 73, 73)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(64, 64, 64)
.addComponent(jComboOriginCity, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap(50, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(jComboOriginCity, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap())
);
jPanel2.setBackground(new java.awt.Color(51, 153, 255));
jLabel1.setText("Contract ID:");
jLabel2.setText("Origin:");
jLabel3.setText("Destination:");
jLabel5.setText("Order:");
jLabelContractID.setText("bkbk");
jLabelOriginCity.setText("bkbhk");
jLabelDestCity.setText("bhjbhjb");
jLabelOrderItem.setText("bhjbjh");
jLabelContractCount.setText("n out of x Contracts");
jPrevButton.setText("Previous");
jBidButton.setText("Bid");
jNextButton.setText("Next");
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabelContractID))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jLabel3)
.addComponent(jLabel5))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 211, Short.MAX_VALUE)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabelOriginCity, javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
.addComponent(jPrevButton)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jBidButton, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jNextButton))
.addComponent(jLabelDestCity, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabelOrderItem, javax.swing.GroupLayout.Alignment.TRAILING)))
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabelContractCount)
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1)
.addComponent(jLabelContractID))
.addGap(40, 40, 40)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel2)
.addGap(18, 18, 18)
.addComponent(jLabel3)
.addGap(19, 19, 19)
.addComponent(jLabel5)
.addGap(65, 65, 65)
.addComponent(jLabelContractCount))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(6, 6, 6)
.addComponent(jLabelOriginCity)
.addGap(18, 18, 18)
.addComponent(jLabelDestCity)
.addGap(19, 19, 19)
.addComponent(jLabelOrderItem)
.addGap(29, 29, 29)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jPrevButton)
.addComponent(jNextButton)
.addComponent(jBidButton))))
.addContainerGap(27, Short.MAX_VALUE))
);
jMenu2.setText("File");
jMenuNewContract.setText("New Contract");
jMenuNewContract.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuNewContractActionPerformed(evt);
}
});
jMenu2.add(jMenuNewContract);
jMenuQuit.setText("Quit");
jMenuQuit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuQuitActionPerformed(evt);
}
});
jMenu2.add(jMenuQuit);
jMenuBar1.add(jMenu2);
jMenu3.setText("Edit");
jMenuBar1.add(jMenu3);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(63, 63, 63)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(65, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(7, 7, 7)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(70, 70, 70))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public Oddeven() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Magasin() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.7319396",
"0.7290941",
"0.7290941",
"0.7290941",
"0.7285927",
"0.7248002",
"0.72139066",
"0.72086275",
"0.71958303",
"0.718997",
"0.7184516",
"0.7159095",
"0.71481097",
"0.709288",
"0.70806605",
"0.70578784",
"0.6986726",
"0.6977067",
"0.6955257",
"0.6954392",
"0.6945326",
"0.69436216",
"0.6935779",
"0.69320637",
"0.6928225",
"0.6924907",
"0.69248605",
"0.6911609",
"0.6911109",
"0.6892906",
"0.6892066",
"0.68918383",
"0.6891177",
"0.6889087",
"0.6883209",
"0.6882372",
"0.6880651",
"0.68782973",
"0.6876634",
"0.6874696",
"0.68711734",
"0.6859314",
"0.68565166",
"0.6855607",
"0.68552643",
"0.6854565",
"0.68534696",
"0.68530536",
"0.68530536",
"0.6843682",
"0.6836637",
"0.6836613",
"0.6829145",
"0.68281287",
"0.682634",
"0.6824281",
"0.68238854",
"0.681735",
"0.6816949",
"0.6811127",
"0.68091583",
"0.6808792",
"0.680855",
"0.6808137",
"0.6802665",
"0.67954504",
"0.67941535",
"0.6793186",
"0.6791855",
"0.67899567",
"0.67891306",
"0.678766",
"0.67817825",
"0.67669976",
"0.67660517",
"0.6764966",
"0.67571455",
"0.6755968",
"0.6752885",
"0.6751322",
"0.6742087",
"0.6739845",
"0.673701",
"0.6736383",
"0.67338026",
"0.6727401",
"0.67262983",
"0.67209303",
"0.67158926",
"0.6715857",
"0.67147917",
"0.67091477",
"0.6708007",
"0.6704485",
"0.6701657",
"0.67003953",
"0.6699588",
"0.6698673",
"0.66944015",
"0.6690715",
"0.6689867"
] | 0.0 | -1 |
End of variables declaration//GENEND:variables | public void disableNextButton(boolean disable) {
this.jNextButton.setEnabled(disable);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo21779D() {\n }",
"public final void mo51373a() {\n }",
"protected boolean func_70041_e_() { return false; }",
"public void mo4359a() {\n }",
"public void mo21782G() {\n }",
"private void m50366E() {\n }",
"public void mo12930a() {\n }",
"public void mo115190b() {\n }",
"public void method_4270() {}",
"public void mo1403c() {\n }",
"public void mo3376r() {\n }",
"public void mo3749d() {\n }",
"public void mo21793R() {\n }",
"protected boolean func_70814_o() { return true; }",
"public void mo21787L() {\n }",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo21780E() {\n }",
"public void mo21792Q() {\n }",
"public void mo21791P() {\n }",
"public void mo12628c() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo97908d() {\n }",
"public void mo21878t() {\n }",
"public void mo9848a() {\n }",
"public void mo21825b() {\n }",
"public void mo23813b() {\n }",
"public void mo3370l() {\n }",
"public void mo21879u() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo21785J() {\n }",
"public void mo21795T() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void m23075a() {\n }",
"public void mo21789N() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo21794S() {\n }",
"public final void mo12688e_() {\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo6944a() {\n }",
"public static void listing5_14() {\n }",
"public void mo1405e() {\n }",
"public final void mo91715d() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void mo9137b() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void func_70295_k_() {}",
"void mo57277b();",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"void berechneFlaeche() {\n\t}",
"public void mo115188a() {\n }",
"public void mo21880v() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void mo21784I() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void mo56167c() {\n }",
"public void mo44053a() {\n }",
"public void mo21781F() {\n }",
"public void mo2740a() {\n }",
"public void mo21783H() {\n }",
"public void mo1531a() {\n }",
"double defendre();",
"private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }",
"public void stg() {\n\n\t}",
"void m1864a() {\r\n }",
"private void poetries() {\n\n\t}",
"public void skystonePos4() {\n }",
"public void mo2471e() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void yy() {\n\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }",
"static void feladat4() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"public void furyo ()\t{\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"protected void mo6255a() {\n }"
] | [
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.58814824",
"0.5854075",
"0.5851759",
"0.58514243",
"0.58418584",
"0.58395296",
"0.5835063",
"0.582234",
"0.58090156",
"0.5802706",
"0.5793836",
"0.57862717",
"0.5784062",
"0.5783567",
"0.5782131",
"0.57758564",
"0.5762871",
"0.5759349",
"0.5745087",
"0.57427835",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.57326084",
"0.57301426",
"0.57266665",
"0.57229686",
"0.57175463",
"0.5705802",
"0.5698347",
"0.5697827",
"0.569054",
"0.5689405",
"0.5686434",
"0.56738997",
"0.5662217",
"0.56531453",
"0.5645255",
"0.5644223",
"0.5642628",
"0.5642476",
"0.5640595",
"0.56317437",
"0.56294966",
"0.56289655",
"0.56220204",
"0.56180173",
"0.56134313",
"0.5611337",
"0.56112075",
"0.56058615",
"0.5604383",
"0.5602629",
"0.56002104",
"0.5591573",
"0.55856615",
"0.5576992",
"0.55707216",
"0.5569681",
"0.55570376",
"0.55531484",
"0.5551123",
"0.5550893",
"0.55482954",
"0.5547471",
"0.55469507",
"0.5545719",
"0.5543553",
"0.55424106",
"0.5542057",
"0.55410767",
"0.5537739",
"0.55269134",
"0.55236584",
"0.55170715",
"0.55035424",
"0.55020875"
] | 0.0 | -1 |
Loads the image for the resource | public void loadImg(String pic)
{
try
{
img = ImageIO.read( getClass().getResourceAsStream( pic + ".png" ) );
}
catch (IOException e)
{
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadResource() {\n\t\ttry {\n\t\t\ttarmacTexture = scaleResourceImagePaint(\"/textures/tarmac2.jpg\", 300, 300);\n\t\t\tgrassTexture = scaleResourceImagePaint(\"/textures/grass.jpg\", 300, 300);\n\t\t\tstopwayTexture = scaleResourceImagePaint(\"/textures/stopway.jpg\", 300, 300);\n\t\t} catch (IOException e) {\n\t\t\tsetUsingTextures(false);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected abstract Image loadImage();",
"@Override\n\tpublic final IRenderable load() {\n\t\tImage img = loadImage();\n\t\tassertImageIsValid(img);\n\t\treturn new ImageRenderable(img);\n\t}",
"@Override\n\tpublic Image loadEntity() {\n\t\ttry {\n\t\t\tImage entityImage = new Image(new FileInputStream(IMAGE_LOCATION));\n\t\t\treturn entityImage;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Image file not found\");\n\t\t\treturn null;\n\t\t}\n\t}",
"private BufferedImage loadImage(String path) {\n try {\n return ImageIO.read(getClass().getClassLoader().getResource(path));\n } catch (IOException e) {\n e.printStackTrace();\n System.exit(1);\n }\n\n return null;\n }",
"public void loadImage() {\n\t\tif (images.containsKey(name)) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tString fullPath = BASE_PATH + this.sprite_sheet;\n\t\t\tFile imageFile = new File(fullPath);\n\t\t\tImage initialImage = ImageIO.read(imageFile);\n\t\t\tImage scaledImage = initialImage.getScaledInstance(\n\t\t\t\t\tMainPanel.TILE_SIZE, MainPanel.TILE_SIZE, 0);\n\n\t\t\tBufferedImage image = new BufferedImage(scaledImage.getWidth(null),\n\t\t\t\t\tscaledImage.getHeight(null), BufferedImage.TYPE_INT_ARGB);\n\t\t\tGraphics2D imageGraphicsContext = image.createGraphics();\n\t\t\timageGraphicsContext.drawImage(scaledImage, 0, 0, null);\n\t\t\timageGraphicsContext.dispose();\n\t\t\timages.put(name, image);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Could not load image for\" + this.name);\n\t\t}\n\t}",
"private void loadImage() {\r\n\t\tthis.background = GraphicsUtil.resize(ImageLoader.getImage(\"resources/img/loginScreen/LoginBackground.jpg\"),\r\n\t\t\t\tFRAME_X, FRAME_Y);\r\n\t}",
"private static ImageResource initImageResource() {\n\t\tImageResource imageResource = new ImageResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\timageResource.addResource(ImageTypeAWMS.VERTICAL_BAR.name(), imagePath + \"blue_vertical_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.HORIZONTAL_BAR.name(), imagePath + \"blue_horizontal_bar.png\");\n\t\timageResource.addResource(ImageTypeAWMS.WELCOME.name(), imagePath + \"welcome.png\");\n\t\t\n\t\t\n\t\treturn imageResource;\n\t}",
"public static Image loadImageFromResourceFile(String filename) {\n try {\n ClassLoader classloader = Thread.currentThread().getContextClassLoader();\n InputStream is = classloader.getResourceAsStream(filename);\n return new Image(is);\n } catch (Exception e) {\n return null;\n }\n \n }",
"private void loadImage() {\n try {\n background = ImageIO.read(new File(\"src/main/resources/background.jpg\"));\n } catch (IOException e) {\n System.out.println(\"Cannot load background image!\");\n }\n }",
"@Override\n \n \n public void initialize(URL url, ResourceBundle rb) {\n retornararImg();\n\n }",
"public static Image loadImage(String name) {\r\n Image result = null;\r\n try {\r\n result = ImageIO.read(IO.class.getClassLoader().getResourceAsStream(\"data/\" + name));\r\n } catch (Exception ex) {\r\n } \r\n return result;\r\n }",
"public BufferedImage loadImage(String path){\n\t\ttry {\n\t\t\timage = ImageIO.read(getClass().getResource(path));\n\t\t\tSystem.out.println(\"Sprite Sheet Loaded\");\n\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Image file not found\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn image;\n\t}",
"static BufferedImage loadImage(String filename){\r\n\t\t\r\n\t\tBufferedImage image = null;\r\n\t\ttry{\r\n\t\t\timage = ImageIO.read(View.class.getResource(filename));\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace(System.err);\r\n\t\t}\r\n\t\t\r\n\t\treturn image;\r\n\t}",
"public void loadResources();",
"@Override\r\n public void setImageResource(int resourceId)\r\n {\r\n new LoadResourceTask().execute(resourceId);\r\n }",
"private Image loadImage (String path) {\n\t\tImageIcon imageicon = new ImageIcon (path);\r\n\t\tImage newImage = imageicon.getImage();\r\n\t\treturn newImage;\r\n\t}",
"private void loadBitmap() {\n\n BitmapDrawable bitmapDrawable = (BitmapDrawable) this.getDrawable();\n\n if (bitmapDrawable != null)\n image = bitmapDrawable.getBitmap();\n }",
"private static ImageIcon load(String resourceFile) {\n logger.warn(\"Loading resource \" + resourceFile);\n ImageIcon icon = new ImageIcon(ImageResources.class.getResource(resourceFile));\n icon.setImageObserver(new ImageObserver() {\n @Override\n public boolean imageUpdate(Image image, int infoFlags, int x, int y, int width, int height) {\n logger.warn(\"Image observer \");\n return false;\n }\n });\n return icon;\n }",
"private Image getImage(String name) {\n InputStream in =\n getClass().getResourceAsStream(\"/canfield/resources/\" + name);\n try {\n return ImageIO.read(in);\n } catch (IOException excp) {\n return null;\n }\n }",
"protected BufferedImage loadImage(String nameOfFile)\n {\n BufferedImage img;\n try{\n img= ImageIO.read(new File(\"\"+nameOfFile));\n return img;\n }\n catch(IOException e)\n {\n System.out.println(e);\n }\n return null;\n }",
"void setImageResource(String imageResource) throws IOException;",
"@Override\n\tpublic void loadImages() {\n\t\tsuper.setImage((new ImageIcon(\"pacpix/QuestionCandy.png\")).getImage());\t\n\t}",
"private synchronized static native int nativeLoadImageFromResource( int intResource ) \n throws UnsatisfiedLinkError;",
"public void resourceLoaded(\n String resourcePath,\n InputStream resourceStream) {\n\n try {\n \n // clear the failure count if necessary\n if (loadFailureCounts.containsKey(resourcePath)) {\n loadFailureCounts.remove(resourcePath);\n }\n \n //now process the raw data into a buffer\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n byte[] buf = new byte[1024];\n for (int readNum; (readNum = resourceStream.read(buf)) != -1;) {\n bos.write(buf, 0, readNum); \n }\n byte[] bytes = bos.toByteArray();\n \n InputStream in = new ByteArrayInputStream(bytes);\n BufferedImage image = javax.imageio.ImageIO.read(in); \n \n // try to retrieve from the classpath\n JToolButton button = urlToButtonMap.get(resourcePath);\n\n // create the necessary icons for button state\n generateButtonIcons(button, image); \n \n // make sure the filters are correctly applied\n catalogFilter.refreshCurrentToolGroup();\n\n // allow selection\n button.setLoaded(true);\n button.addItemListener(this);\n button.revalidate();\n\n } catch (IOException ioe) {\n \n ioe.printStackTrace();\n \n }\n\n }",
"private void loadImages() {\n\t\ttry {\n\t\t\timage = ImageIO.read(Pillar.class.getResource(\"/Items/Pillar.png\"));\n\t\t\tscaledImage = image;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Failed to read Pillar image file: \" + e.getMessage());\n\t\t}\n\t}",
"public void loadImage() {\r\n // creates a new image icon with the characters array and the count as a file path\r\n ImageIcon ii = new ImageIcon(game.characters[count]);\r\n // load the image\r\n image = ii.getImage(); \r\n \r\n // sets width\r\n w = image.getWidth(null);\r\n // sets height\r\n h = image.getHeight(null);\r\n }",
"public String getImageResource() {\n \t\t// if (isWindows)\n \t\t// return \"/\" + new File(imageResource).getPath();\n \t\t// else\n \t\treturn imageResource;\n \t}",
"public void load(String path) {\n try {\n texId = new TextureId(path);\n BufferedImage image = ImageIO.read(new FileInputStream(\"resources\" + texId.getPath()));\n createImage(image);\n } catch (Exception e) {\n e.printStackTrace();\n unload();\n }\n }",
"public static void loadFruitPic() {\n //images are from the public domain website: https://www.clipartmax.com/\n Toolkit toolkit = Toolkit.getDefaultToolkit();\n Banana.fruitPic = toolkit.getImage(\"Images/banana.png\");\n Banana.fruitSlice = toolkit.getImage(\"Images/bananaSlice.png\");\n }",
"public static Image getImage(String filename) \r\n \t{\r\n \r\n \t\tInputStream is = cl.getResourceAsStream(AA_RESOURCE_FILE_PATH + filename);\r\n \t\t\r\n \t\tif(is == null){\r\n \t\t\tSystem.out.println(\"Input stream is null\");\r\n \t\t}\r\n \t\t\r\n \t\ttry {\r\n \t\t\treturn (ImageIO.read(is));\r\n \t\t} catch (Exception e) {\r\n \t\t\tlog.error(\"An exception occurred while reading the file: \"+filename);\r\n \t\t\tlog.error(e.getMessage());\r\n \t\t\te.printStackTrace();\r\n \t\t\treturn null;\r\n \t\t}\r\n \t}",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n// Image image = new Image(\"/Icons/communication.jpg\");\r\n// ImageView iv = new ImageView();\r\n// imgA.setImage(image);\r\n }",
"public Image loadImage(String name) {\n String filename = \"images/\" + name;\n return new ImageIcon(filename).getImage();\n }",
"@Override\n public void loadTexture() {\n\n }",
"@Override\n\tpublic void init() {\n\t\tthis.image = Helper.getImageFromAssets(AssetConstants.IMG_ROAD_NORMAL);\n\t}",
"private BufferedImage getImage(String filename) {\n\t\ttry {\n\t\t\t// Grab the InputStream for the image.\n\t\t\tInputStream in = getClass().getResourceAsStream(filename);\n\t\t\t\n\t\t\t// Then read it in.\n\t\t\treturn ImageIO.read(in);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"The image was not loaded.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\treturn null;\n\t}",
"public static BufferedImage loadImage(String ref) {\n BufferedImage b1 = null;\n try {\n b1 = ImageIO.read(new File(ref));\n } catch (IOException e) {\n System.out.println(\"error loading the image: \" + ref + \" : \" + e);\n }\n return b1;\n }",
"private BufferedImage loadPic(String name) {\n\t\tBufferedImage pic=null;\n\t\ttry {\n\t\t\tpic = ImageIO.read(new File(\"store/\"+name));\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn pic;\n\t}",
"private void loadImage(User user) throws IOException {\n byte [] bytes = ByteArrayUtils.bytesFromUrl(user.getImageUrl());\n user.setImageBytes(bytes);\n }",
"private void loadShipImage() {\r\n\t\tshipImageView = Ship.getImage();\r\n\t\tshipImageView.setX(ship.getCurrentLocation().x * scalingFactor);\r\n\t\tshipImageView.setY(ship.getCurrentLocation().y * scalingFactor);\r\n\r\n\t\troot.getChildren().add(shipImageView);\r\n\r\n\t}",
"public void loadImages() {\n\t\tpigsty = new ImageIcon(\"images/property/pigsty.png\");\n\t}",
"private void loadAndSetIcon()\n\t{\t\t\n\t\ttry\n\t\t{\n\t\t\twindowIcon = ImageIO.read (getClass().getResource (\"calculator.png\"));\n\t\t\tsetIconImage(windowIcon);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\t\t\n\t}",
"public void loadBackground() {\n try {\n File file = new File(\"src/resources/fondo.png\");\n this.background = ImageIO.read(file);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n public void loadResources() {\n\r\n }",
"@Override\n\tpublic String getResource() {\n\t\ttry {\n\t\t\treturn (new File(\"./resources/images/mageTowerCard.png\")).getCanonicalPath();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public BufferedImage getImage(String fileName){\r\n\t\tClassLoader classLoader = Thread.currentThread().getContextClassLoader();\r\n\t\tInputStream input = classLoader.getResourceAsStream(fileName);\r\n\t\tBufferedImage image = null;\r\n\t\ttry {\r\n\t\t\timage = ImageIO.read(input);\r\n\t\t} catch (IOException e1) {\r\n\t\t\tSystem.out.println(\"invalid image file name\");\r\n\t\t}\r\n\t\t//System.out.println(image);\r\n\t\treturn image;\r\n\t}",
"public static Render loadBitmap(String location) {\n try {\n BufferedImage texture = ImageIO.read(new File(location));\n int width = texture.getWidth();\n int height = texture.getHeight();\n Render result = new Render(width, height);\n texture.getRGB(0, 0, width, height, result.pixels, 0, width);\n return result;\n } catch (Exception e) {\n System.out.println(\"Cannot load texture \" + location);\n throw new RuntimeException(e);\n }\n }",
"public interface Images extends ClientBundle {\n\n\t\t@Source(\"gr/grnet/pithos/resources/mimetypes/document.png\")\n\t\tImageResource fileContextMenu();\n\n\t\t@Source(\"gr/grnet/pithos/resources/doc_versions.png\")\n\t\tImageResource versions();\n\n\t\t@Source(\"gr/grnet/pithos/resources/groups22.png\")\n\t\tImageResource sharing();\n\n\t\t@Source(\"gr/grnet/pithos/resources/border_remove.png\")\n\t\tImageResource unselectAll();\n\n\t\t@Source(\"gr/grnet/pithos/resources/demo.png\")\n\t\tImageResource viewImage();\n\n @Source(\"gr/grnet/pithos/resources/folder_new.png\")\n ImageResource folderNew();\n\n @Source(\"gr/grnet/pithos/resources/folder_outbox.png\")\n ImageResource fileUpdate();\n\n @Source(\"gr/grnet/pithos/resources/view_text.png\")\n ImageResource viewText();\n\n @Source(\"gr/grnet/pithos/resources/folder_inbox.png\")\n ImageResource download();\n\n @Source(\"gr/grnet/pithos/resources/trash.png\")\n ImageResource emptyTrash();\n\n @Source(\"gr/grnet/pithos/resources/refresh.png\")\n ImageResource refresh();\n\n /**\n * Will bundle the file 'editcut.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editcut.png\")\n ImageResource cut();\n\n /**\n * Will bundle the file 'editcopy.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editcopy.png\")\n ImageResource copy();\n\n /**\n * Will bundle the file 'editpaste.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editpaste.png\")\n ImageResource paste();\n\n /**\n * Will bundle the file 'editdelete.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/editdelete.png\")\n ImageResource delete();\n\n /**\n * Will bundle the file 'translate.png' residing in the package\n * 'gr.grnet.pithos.web.resources'.\n *\n * @return the image prototype\n */\n @Source(\"gr/grnet/pithos/resources/translate.png\")\n ImageResource selectAll();\n \n @Source(\"gr/grnet/pithos/resources/internet.png\")\n ImageResource internet();\n }",
"public static Image getBundledImage(final String classpathRelativeResource, final ClassLoader loader)\n throws IllegalArgumentException {\n\n // Check sanity\n Validate.notEmpty(classpathRelativeResource, \"Cannot handle null or empty classpathRelativeResource.\");\n Validate.notNull(loader, \"Cannot handle null loader argument.\");\n\n // Peel off any beginning \"/\".\n final String resourcePath = (classpathRelativeResource.charAt(0) == '/'\n ? classpathRelativeResource.substring(1)\n : classpathRelativeResource);\n\n final URL imgURL = loader.getResource(resourcePath);\n log.debug(\"Loading image (ResourcePath: \" + resourcePath + \") from URL [\" + imgURL + \"] \");\n\n // No point in trying to load a nonexistent resource.\n if (imgURL == null) {\n return null;\n }\n\n try {\n return getToolkit().getImage(imgURL);\n } catch (Exception e) {\n throw new IllegalArgumentException(\"Could not load image from classpathRelativeResource [\"\n + classpathRelativeResource + \"]\", e);\n }\n }",
"public static ImageIcon loadImage(String name) throws FileNotFoundException {\n ImageIcon image = null;\n URL url = StitchingGuiUtils.getFigureResource(name);\n if (url != null) {\n java.awt.Image img = java.awt.Toolkit.getDefaultToolkit().createImage(url);\n if (img != null) {\n image = new ImageIcon(img);\n }\n }\n\n if (image == null)\n throw new FileNotFoundException(\"ERROR: Loading image \" + name + \" not found.\");\n\n return image;\n }",
"private void initialize() {\n setImageResource(R.drawable.content);\n }",
"public static BufferedImage load(String name) {\r\n\t\ttry {\r\n\t\t\tfinal BufferedImage org = ImageIO.read(Art.class.getResource(name));\r\n\t\t\tfinal BufferedImage res = new BufferedImage(org.getWidth(),\r\n\t\t\t\t\torg.getHeight(), BufferedImage.TYPE_INT_ARGB);\r\n\t\t\tfinal Graphics g = res.getGraphics();\r\n\t\t\tg.drawImage(org, 0, 0, null, null);\r\n\t\t\tg.dispose();\r\n\t\t\treturn res;\r\n\t\t} catch (final Exception e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t}\r\n\t}",
"public void preload() {\n\t\ttry {\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\",\n\t\t\t\t\tResourceLoader.getResourceAsStream(file));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tloaded = true;\n\t}",
"private BufferedImage readImage(String fileName) {\n BufferedImage image = null;\n\n try {\n InputStream inputFile = getClass().getResourceAsStream(fileName);\n image = ImageIO.read(inputFile);\n } catch (IIOException fnfexc) {\n System.err.println(\"Bitmap file '\" + fileName + \"' cannot be found\");\n } catch (IOException ioexp) {\n System.err.println(\"No contact with outside world\");\n }\n\n return image;\n }",
"public static void load(){\r\n\t \ttry {\r\n\t \t\t// load and set all sprites\r\n\t\t\t\tsetBlueGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/blueGarbage.png\")));\r\n\t\t\t\tsetRank(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/rank.png\")));\r\n\t\t\t\tsetRedGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/redGarbage.png\")));\r\n\t\t\t\tsetYellowGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowGarbage.png\")));\r\n\t\t\t\tsetGreenGarbage(ImageIO.read(classPath.getResourceAsStream(\"/images/greenGarbage.png\")));\r\n\t\t\t\tsetBlueSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/blueSnakeBodyPart.png\")));\r\n\t\t\t\tsetRedSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/redSnakeBodyPart.png\")));\r\n\t\t\t\tsetYellowSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/yellowSnakeBodyPart.png\")));\r\n\t\t\t\tsetGreenSnakeBodyPart(ImageIO.read(classPath.getResourceAsStream(\"/images/greenSnakeBodyPart.png\")));\r\n\t\t\t\tsetHeart(ImageIO.read(classPath.getResourceAsStream(\"/images/heart.png\")));\r\n\t\t\t\tsetGameScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenBackground.png\")));\r\n\t\t\t\tsetGameScreenHeader(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameScreenHeader.png\")));\r\n\t\t\t\tsetGameOver(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/gameOver.png\")));\r\n\t\t\t\tsetHitsOwnBody(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsOwnBody.png\")));\r\n\t\t\t\tsetHitsWall(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/hitsWall.png\")));\r\n\t\t\t\tsetWrongColor(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/wrongColor.png\")));\r\n\t\t\t\tsetHelpScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpScreenBackground.png\")));\r\n\t\t\t \tsetWarningScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/warningScreenBackground.png\")));\r\n\t\t\t \tsetOkButton(ImageIO.read(classPath.getClass().getResource(\"/images/okButton.png\")));\r\n\t\t\t \tsetMenuScreenBackground(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/menuScreenBackground.png\")));\r\n\t\t\t\tsetStartButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/startButton.png\")));\r\n\t\t\t\tsetExitButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/exitButton.png\")));\r\n\t\t\t\tsetHelpButton(ImageIO.read(classPath.getClass().getResourceAsStream(\"/images/helpButton.png\")));\r\n\t\t\t\t\r\n\t \t} \r\n\t \tcatch (Exception e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getStackTrace(), \"Erro ao carregar imagens\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t\r\n\t\t\t}\t\r\n \t\r\n \t}",
"protected Image loadIcon() {\n /*\n * Icon by http://www.artua.com/, retrieved here:\n * http://www.iconarchive.com/show/star-wars-icons-by-artua.html\n */\n return new ImageLoader().loadIcon(\"moon.png\");\n }",
"private Bitmap loadImage(int id) {\n Bitmap bitmap = BitmapFactory.decodeResource(\n context.getResources(), id);\n Bitmap scaled = Bitmap.createScaledBitmap(bitmap, IMAGE_WIDTH,\n IMAGE_HEIGHT, true);\n bitmap.recycle();\n return scaled;\n }",
"public IPluginResource load( URI path ) throws LoaderException;",
"private void setImage() throws FileNotFoundException {\n\t\timage = new Image(new FileInputStream(path));\n\t}",
"Bitmap load(String id);",
"interface Resources extends ClientBundle {\n @Source(\"gwtia.jpg\") public ImageResource logo();\n }",
"@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}",
"public static Image loadImage(String filename) {\n\t\t// using the URL means the image loads when stored\n\t\t// in a jar or expanded into individual files.\n\t\tjava.net.URL imageURL = SpriteMap.class.getResource(IMAGE_PATH + filename);\n\t\ttry {\n\t\t\tImage img = ImageIO.read(imageURL);\n\t\t\treturn img;\n\t\t} catch (IOException e) {\n\t\t\t// we've encountered an error loading the image. There's not much we\n\t\t\t// can actually do at this point, except to abort the game.\n\t\t\tthrow new RuntimeException(\"Unable to load image: \" + filename);\n\t\t}\n\t}",
"public static BufferedImage loadImage(String imageName) {\n try {\n InputStream inputStream = TextureRegistry.class.getClassLoader().getResourceAsStream(\"images/\" + imageName);\n if (inputStream == null) {\n System.err.println(\"Image file '\" + imageName + \"' could not be found.\");\n System.exit(1);\n }\n\n return ImageIO.read(inputStream);\n } catch (IOException ex) {\n System.err.println(\"Failed to load image '\" + imageName + \"'.\");\n ex.printStackTrace();\n System.exit(1);\n return null;\n }\n }",
"private ImageLoader() {}",
"public static BufferedImage loadImage(String path) {\r\n try {\r\n return ImageIO.read(ImageLoader.class.getResource(path));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n System.exit(1);\r\n }\r\n return null;\r\n }",
"private void initResources()\n {\n try\n {\n searchBackgroundImage = ImageIO.read(new File(IMAGES_DIR + \"logo.jpg\"));\n searchIcon = ImageIO.read(new File(IMAGES_DIR + \"search_icon.png\"));\n miniMenuAddImage = ImageIO.read(new File(IMAGES_DIR + \"addSmallIcon.png\"));\n miniMenuRemoveImage = ImageIO.read(new File(IMAGES_DIR + \"removeSmallIcon.png\"));\n updateMiniImage = ImageIO.read(new File(IMAGES_DIR + \"up.png\"));\n playButtonImage = ImageIO.read(new File(IMAGES_DIR + \"play_arrow.png\"));\n stopButtonImage = ImageIO.read(new File(IMAGES_DIR + \"stop_square.png\"));\n openFileImage = ImageIO.read(new File(IMAGES_DIR + \"open_icon.png\"));\n newFileImage = ImageIO.read(new File(IMAGES_DIR + \"new_file.png\"));\n settingsImage = ImageIO.read(new File(IMAGES_DIR + \"settings.png\"));\n spiderImage = ImageIO.read(new File(IMAGES_DIR + \"spider_icon.png\"));\n searchIconDark = ImageIO.read(new File(IMAGES_DIR + \"search_icon_dark.png\"));\n webIconImage = ImageIO.read(new File(IMAGES_DIR + \"web_icon.png\"));\n clipboardImage = ImageIO.read(new File(IMAGES_DIR + \"clipboard.png\"));\n colorIconImage = ImageIO.read(new File(IMAGES_DIR + \"color_icon.png\"));\n transitionSpinnerImage = IMAGES_DIR + \"loading.gif\";\n processingImage = IMAGES_DIR + \"processing.gif\";\n processingMiniImage = IMAGES_DIR + \"spinner.gif\";\n }\n \n catch(IOException e)\n {\n JOptionPane.showMessageDialog(null, \"[Error] Failed to load resource(s)\");\n }\n }",
"public static Image loadImage(String path) {\n File file = new File(path);\n String imagePath = file.getAbsolutePath();\n //Modify based on OS\n if (File.separatorChar == '\\\\') {\n // From Windows to Linux/Mac\n imagePath=imagePath.replace('/', File.separatorChar);\n imagePath = imagePath.replace(\"\\\\\", \"\\\\\\\\\");\n } else {\n // From Linux/Mac to Windows\n imagePath=imagePath.replace('\\\\', File.separatorChar);\n\n }\n \n //Add file: to work with JavaFX\n imagePath=\"file:\"+imagePath;\n\n return new Image(imagePath);\n }",
"@Override\n\tpublic void initialize(URL location, ResourceBundle resources) {\n\t\tImage imgcontact = new Image(\"/images/Contact.png\");\n\t\tthis.contactUs.setImage(imgcontact);\n\t}",
"@Override\n public void onLoadResources() {\n }",
"private void loadImage(String imagePath) {\n //Loading image from below url into imageView\n imageFile = new File(imagePath);\n Glide.with(getApplicationContext())\n .load(imagePath)\n .transition(DrawableTransitionOptions.withCrossFade(300))\n .into(imageView);\n }",
"public void openImage() {\n InputStream f = Controller.class.getResourceAsStream(\"route.png\");\n img = new Image(f, mapImage.getFitWidth(), mapImage.getFitHeight(), false, true);\n h = (int) img.getHeight();\n w = (int) img.getWidth();\n pathNodes = new GraphNodeAL[h * w];\n mapImage.setImage(img);\n //makeGrayscale();\n }",
"public static void loadImages() {\n PonySprite.loadImages(imgKey, \"graphics/ponies/GrannySmith.png\");\n }",
"public ImageView loadTheMan()\n {\n try \n {\n Image theMan = new Image(new FileInputStream(\"theMan.jpg\"), 800, 800, true, true);\n ImageView theManView = new ImageView(theMan);\n theManView.setTranslateX(0);\n theManView.setTranslateY(-210);\n theManView.setScaleX(0.3);\n theManView.setScaleY(0.3);\n return theManView;\n } \n catch (FileNotFoundException ex) \n {\n Logger.getLogger(TycoonGUI.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n }",
"Resource getResource();",
"public static URL loadImage(String path) {\r\n Utilities tmp = new Utilities();\r\n ClassLoader classLoader = tmp.getClass().getClassLoader();\r\n return classLoader.getResource(path);\r\n }",
"private void loadImage(){\n Log.d(getString(R.string.app_name), \"photoURL: \" + photoURL);\n String hash = photoURL.substring(0, photoURL.lastIndexOf(\".\"));\n try {\n MessageDigest md = MessageDigest.getInstance(\"MD5\");\n md.update(hash.getBytes());\n hash = bytesToHex(md.digest());\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n// File cachedFile = new File(getCacheDir(), photoURL.substring(0, photoURL.lastIndexOf(\".\")));\n File cachedFile = new File(getCacheDir(), hash);\n if(cachedFile.exists()) {\n //load image from cache\n Glide.with(getApplicationContext())\n .load(cachedFile)\n .diskCacheStrategy(DiskCacheStrategy.NONE)\n// .crossFade()\n .into(picture);\n// TileBitmapDrawable.attachTileBitmapDrawable(picture, getCacheDir() + \"/\" + photoURL.split(\"\\\\.\")[0], null, null);\n setupPictureClickListener();\n\n postImageLoaded();\n } else {\n //download image\n setupReloadButtonListener();\n initImageLoader();\n }\n }",
"@Override\n\tpublic void onLoadResources() {\n\t\tBitmapTextureAtlasTextureRegionFactory.setAssetBasePath(\"gfx/\");\t\t\n\t\tmBitmapParralaxTextureAtlas=new BitmapTextureAtlas(1024,1024);\n\t\tmBitmapTextureAtlas=new BitmapTextureAtlas(512, 512);\n\t\tmTextureRegion=BitmapTextureAtlasTextureRegionFactory.createFromAsset(mBitmapParralaxTextureAtlas, this, \"parallax_background_layer_back.png\", 0, 0);\n\t\tbananaRegion=BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(mBitmapTextureAtlas, this, \"banana_tiled.png\", 0, 0, 4,2);\n\t\tmEngine.getTextureManager().loadTextures(mBitmapParralaxTextureAtlas,mBitmapTextureAtlas);\n\t}",
"java.lang.String getImage();",
"public Bitmap LoadFromFile(String _fullFilename) {\n\t //if (bmp != null) { bmp.recycle(); }\n\t BitmapFactory.Options bo = new BitmapFactory.Options();\t\t\n\t\t\n\t if( bo == null ) return null;\n\t \n\t if( controls.GetDensityAssets() > 0 )\n\t bo.inDensity = controls.GetDensityAssets();\n\t \n\t return BitmapFactory.decodeFile(_fullFilename, bo);\n }",
"public Resource load(IFile f);",
"private void loadImage(final String path) {\n ivContent.setImageURI(Uri.fromFile(new File(path)));\n\n /*Glide.with(getActivity())\n .load(path)\n .apply(RequestOptions.diskCacheStrategyOf(DiskCacheStrategy.AUTOMATIC))\n .into(ivContent);*/\n\n\n }",
"public void loadImage() {\n\t\ttry {\n\t\t\tcurrImage = ImageIO.read(new File(INPUT_DIR,fileNames.get(fileCounter)));\n\t\t\tcurrImageOrigDim = new Dimension(currImage.getWidth(), currImage.getHeight());\n\t\t\tlabel4.setText(\"Processing: \" + fileNames.get(fileCounter));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Resize to Frame\n\t\tdouble imgHt = currImage.getHeight();\n\t\tdouble imgWt = currImage.getWidth();\n\t\tdouble wRatio = FRAME_SIZE/imgWt;\n\t\tdouble hRatio = FRAME_SIZE/imgHt;\n\t\taspectR = Math.min(wRatio,hRatio);\n\t\tcurrImage = getScaledInstance(currImage, (int)(aspectR*imgWt), (int)(aspectR*imgHt));\n\t\tcurrImageBounds = new Rectangle(0, 0, currImage.getWidth(), currImage.getHeight());\n\t\trepaint();\n\t}",
"public Resource load(String filename) throws MalformedURLException;",
"@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Icono.png\"));\n return retValue;\n}",
"public abstract T loadResource(AssetManager assetManager, String str);",
"void loadPhoto(String filename) throws IOException;",
"private ImageIcon loadImage(String filename) {\r\n\t\tImageIcon MyImage = new ImageIcon (filename);\r\n\t\tImage img = MyImage.getImage();\r\n\r\n\t\tImage newImg = img.getScaledInstance(800,800, Image.SCALE_SMOOTH);\r\n\t\tImageIcon image = new ImageIcon(newImg);\r\n\t\treturn image;\r\n\r\n }",
"public static Bitmap loadImage(NgApp ngApp, String imagePath) {\n Bitmap image;\n try {\n InputStream istr = ngApp.activity.getAssets().open(ngApp.appManager.getImagePath() + imagePath);\n image = BitmapFactory.decodeStream(istr);\n } catch(IOException ex) {\n return null;\n }\n return image;\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n homeScreen = HomeScreenController.getInstance();\n User u = homeScreen.getCurrentUser();\n CRUDUser cr = new CRUDUser();\n this.username.setText(u.getUserInfoIdId().getUserFirstName());\nBufferedImage image = null;\n\n if(u.getUserInfoIdId().getUserImage()!=null){\n try {\n image = ImageIO.read(new URL(\"http://127.0.0.1:8000/Files/podcastFiles/\" + u.getUserInfoIdId().getUserImage()));\n } catch (MalformedURLException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n try {\n image = ImageIO.read(new URL(\"http://127.0.0.1:8000/Files/podcastFiles/avatar.jpg\"));\n } catch (MalformedURLException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(GestionUsersController.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n }\n WritableImage img = SwingFXUtils.toFXImage(image, null);\n this.imageUser.setFill(new ImagePattern(img));\n \n this.showUsers();\n }",
"public Image getIconImage(){\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"Reportes/logoAlk.jpg\"));\n return retValue;\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n // TODO\n Image img = new Image(\"/circle/my_image.jpg\");\n circle.setFill(new ImagePattern(img));\n }",
"private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }",
"interface Resources extends ClientBundle {\n\t\t@Source(\"gwtia.jpg\")\n\t\tpublic ImageResource logo();\n\t}",
"@Override\n\tpublic String getResource() {\n\t\tif (this.getUpgraded()) {\n\t\t\ttry {\n\t\t\t\treturn (new File(\"./resources/images/ArcherTower_Upgrade.png\")).getCanonicalPath();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\treturn (new File(\"./resources/images/ArcherTower_Default.png\")).getCanonicalPath();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public synchronized ImageResource get(\n final String uri, final int width, final int height ) {\n assert uri != null;\n assert width >= 0;\n assert height >= 0;\n\n try {\n final var protocol = getProtocol( uri );\n final ImageResource imageResource;\n\n if( protocol.isFile() ) {\n if( exists( Paths.get( new URI( uri ) ) ) ) {\n imageResource = super.get( uri, width, height );\n }\n else {\n throw new MissingFileException( uri );\n }\n }\n else if( protocol.isHttp() ) {\n // FlyingSaucer will silently swallow any images that fail to load.\n // Consequently, the following lines load the resource over HTTP and\n // translate errors into a broken image icon.\n final var url = new URL( uri );\n final var image = ImageIO.read( url );\n imageResource = new ImageResource( uri, createImage( image ) );\n }\n else {\n // Caught below to return a broken image; exception is swallowed.\n throw new UnsupportedOperationException( valueOf( protocol ) );\n }\n\n return scale( imageResource );\n } catch( final Exception e ) {\n clue( e );\n return new ImageResource( uri, getBrokenImage() );\n }\n }",
"@Source(\"create.gif\")\n\tpublic DataResource createIconResource();",
"public Object loadResource(CameraRecord record);",
"@FXML\n private void initialize() {\n logo.setImage(new Image(\n FileLoader.class.getResourceAsStream(\"panama_express_logo_big.jpg\")));\n\n }",
"static BufferedImage getImage(String directory) {\n\t\tClassLoader loader = DrawingUtility.class.getClassLoader();\n\t\tBufferedImage image;\n\t\ttry {\n\n\t\t\timage = ImageIO.read(loader.getResource(directory));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"Fail load image from \" + directory);\n\t\t\timage = null;\n\t\t}\n\t\treturn image;\n\n\t}"
] | [
"0.7534034",
"0.744833",
"0.7082534",
"0.7061615",
"0.6961501",
"0.6895301",
"0.68604857",
"0.68518645",
"0.68239003",
"0.6770411",
"0.67388046",
"0.6711957",
"0.66901815",
"0.66865885",
"0.66653055",
"0.66317457",
"0.66298836",
"0.6617795",
"0.65945816",
"0.6588992",
"0.65309966",
"0.6522371",
"0.6512915",
"0.6487409",
"0.6389473",
"0.636638",
"0.63527894",
"0.63317066",
"0.6326442",
"0.6324189",
"0.6288946",
"0.62819415",
"0.6245871",
"0.6229876",
"0.62168044",
"0.6213239",
"0.6201987",
"0.6180503",
"0.615819",
"0.61567074",
"0.6150462",
"0.61493504",
"0.61388814",
"0.6120949",
"0.6101041",
"0.6098083",
"0.6078488",
"0.6073441",
"0.60688454",
"0.6065751",
"0.60613173",
"0.60612255",
"0.6051611",
"0.6049397",
"0.60460633",
"0.60346895",
"0.60148877",
"0.5991724",
"0.5991681",
"0.59909236",
"0.59891325",
"0.59867644",
"0.59829015",
"0.5977588",
"0.5976445",
"0.5975116",
"0.5961497",
"0.59565115",
"0.5954788",
"0.5951389",
"0.5950326",
"0.59491867",
"0.5944153",
"0.5941208",
"0.59395224",
"0.592824",
"0.5926149",
"0.5924959",
"0.5919741",
"0.5915333",
"0.5909279",
"0.5909252",
"0.58903354",
"0.5884172",
"0.5868939",
"0.5862969",
"0.5857554",
"0.5847466",
"0.58460426",
"0.5844415",
"0.58387774",
"0.5838486",
"0.58351606",
"0.58280843",
"0.5821056",
"0.5819308",
"0.5817715",
"0.5817377",
"0.5815204",
"0.58052903"
] | 0.61804694 | 38 |
Scales the image to the given size | public static BufferedImage scale(BufferedImage src, int w, int h)
{
BufferedImage img =
new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);
int x, y;
int ww = src.getWidth();
int hh = src.getHeight();
int[] ys = new int[h];
for (y = 0; y < h; y++)
ys[y] = y * hh / h;
for (x = 0; x < w; x++) {
int newX = x * ww / w;
for (y = 0; y < h; y++) {
int col = src.getRGB(newX, ys[y]);
img.setRGB(x, y, col);
}
}
return img;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract BufferedImage scale(Dimension destinationSize);",
"private void ScaleImage(){\n\t\tBufferedImage resizedImage = new BufferedImage(this.getWidth(), this.getHeight(), BufferedImage.TYPE_INT_RGB);\n\t\tGraphics2D g2 = resizedImage.createGraphics();\n\t\tg2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\t\tg2.drawImage(image, 0, 0, this.getWidth(), this.getHeight(), null);\n\t\tg2.dispose();\n\t\tthis.image = resizedImage;\n\t}",
"private Image scaleImage(Image image) { \n\t\treturn image.getScaledInstance(700, 500, Image.SCALE_SMOOTH); //Going to Scale the Image to the Size and Width Specified with the Highest Smoothness Possible \n\t}",
"private static AppImage scale(AppImage image) {\n\t\treturn scale(image, GraphicsConfig.getScaleWidth(), GraphicsConfig.getScaleHeight());\n\t}",
"private void updateImageSize(float scale) {\n int w = (int) (mImageWidth * scale);\n int h = (int) (mImageHeight * scale);\n mCanvas.setCoordinateSpaceWidth(w);\n mCanvas.setCoordinateSpaceHeight(h);\n mCanvas.getContext2d().drawImage(ImageElement.as(image.getElement()), 0, 0, w, h);\n }",
"public void scale(int size) {\n chart.resetDimensions(size);\n repaint();\n }",
"@Override\n\tfinal public void scale(double x, double y)\n\t{\n\t\twidth *= x;\n\t\theight *= y;\n\t}",
"private BufferedImage scale(BufferedImage sourceImage) {\n GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();\n GraphicsDevice graphicsDevice = graphicsEnvironment.getDefaultScreenDevice();\n GraphicsConfiguration graphicsConfiguration = graphicsDevice.getDefaultConfiguration();\n BufferedImage scaledImage = graphicsConfiguration.createCompatibleImage(IMAGE_DIMENSION, IMAGE_DIMENSION);\n\n Graphics2D newGraphicsImage = scaledImage.createGraphics();\n newGraphicsImage.setColor(Color.white);\n newGraphicsImage.fillRect(0, 0, IMAGE_DIMENSION, IMAGE_DIMENSION);\n\n double xScale = (double) IMAGE_DIMENSION / sourceImage.getWidth();\n double yScale = (double) IMAGE_DIMENSION / sourceImage.getHeight();\n AffineTransform affineTransform = AffineTransform.getScaleInstance(xScale,yScale);\n newGraphicsImage.drawRenderedImage(sourceImage, affineTransform);\n newGraphicsImage.dispose();\n\n return scaledImage;\n }",
"private BufferedImage scale(final BufferedImage input,\n \t\tfinal int newWidth, final int newHeight)\n \t{\n \t\tfinal int oldWidth = input.getWidth(), oldHeight = input.getHeight();\n \t\tif (oldWidth == newWidth && oldHeight == newHeight) return input;\n \n \t\tfinal BufferedImage output =\n \t\t\tnew BufferedImage(newWidth, newHeight, input.getType());\n \t\tfinal AffineTransform at = new AffineTransform();\n \t\tat.scale((double) newWidth / oldWidth, (double) newHeight / oldHeight);\n \t\tfinal AffineTransformOp scaleOp =\n \t\t\tnew AffineTransformOp(at, AffineTransformOp.TYPE_BILINEAR);\n \t\treturn scaleOp.filter(input, output);\n \t}",
"private void scaleImagePanel(float scale){\n float oldZoom = imagePanel.getScale();\n float newZoom = oldZoom+scale;\n Rectangle oldView = scrollPane.getViewport().getViewRect();\n // resize the panel for the new zoom\n imagePanel.setScale(newZoom);\n // calculate the new view position\n Point newViewPos = new Point();\n newViewPos.x = (int)(Math.max(0, (oldView.x + oldView.width / 2) * newZoom / oldZoom - oldView.width / 2));\n newViewPos.y = (int)(Math.max(0, (oldView.y + oldView.height / 2) * newZoom / oldZoom - oldView.height / 2));\n scrollPane.getViewport().setViewPosition(newViewPos);\n }",
"public BufferedImage getScaledImage ( float scale ) {\n\n int oldW = param.Parameters.IMAGEW;\n int oldH = param.Parameters.IMAGEH;\n\n param.Parameters.SCALE = scale;\n param.Parameters.IMAGEW = (int)((float)param.Parameters.IMAGEW * param.Parameters.SCALE);\n param.Parameters.IMAGEH = (int)((float)param.Parameters.IMAGEH * param.Parameters.SCALE);\n\n BufferedImage img =\n param.Parameters.PROBLEM.getData(param.Parameters.STATE, program, 0, 0);\n\n param.Parameters.SCALE = 1.0f;\n param.Parameters.IMAGEW = oldW;\n param.Parameters.IMAGEH = oldH;\n\n System.gc();\n\n return img;\n\n }",
"public static BufferedImage scale(BufferedImage original) {\n return scale(original, false);\n }",
"public void ResizeActionPerformed(ActionEvent evt){\r\n int w = Integer.parseInt(imageWidth.getText());\r\n int h = Integer.parseInt(imageHeight.getText());\r\n drawingPanel.setImageSize(w, h);\r\n }",
"public void rescale()\r\n\t{\n\t}",
"private Image getScaledImage(Image sourceImage)\n {\n //create storage for the new image\n BufferedImage resizedImage = new BufferedImage(50, 50,\n BufferedImage.TYPE_INT_ARGB);\n\n //create a graphic from the image\n Graphics2D g2 = resizedImage.createGraphics();\n\n //sets the rendering options\n g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,\n RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\n //copies the source image into the new image\n g2.drawImage(sourceImage, 0, 0, 50, 50, null);\n\n //clean up\n g2.dispose();\n\n //return 50 x 50 image\n return resizedImage;\n }",
"public ImageIcon scalePicture(ImageIcon image) {\n\t\tImage transImage = image.getImage();\n\t\tImage scaledImage = transImage.getScaledInstance(140, 190, Image.SCALE_SMOOTH);\t\t\n\t\timage = new ImageIcon(scaledImage);\n\t\treturn image;\n\t}",
"public void resize(double scaleFactor) {\r\n erase();\r\n size *= scaleFactor;\r\n moveTo((getXposition())*scaleFactor, (getYposition())*scaleFactor);\r\n draw();\r\n }",
"private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }",
"private void resizeImage() {\r\n\t\tloading = new ImageIcon(background);\r\n\t\tImage newing = background.getScaledInstance(FRAME_X, FRAME_Y, java.awt.Image.SCALE_SMOOTH);\r\n\t\tloading = new ImageIcon(newing);\r\n\t}",
"private void updateImageScale() {\r\n\t\t//Check which dimension is larger and store it in this variable.\r\n\t\tint numHexLargestDimension = this.numHexRow;\r\n\t\tif (this.totalHexWidth > this.totalHexHeight) {\r\n\t\t\tnumHexLargestDimension = this.numHexCol;\r\n\t\t}\r\n\t\t\r\n\t\tif (numHexLargestDimension < 35) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 16.5) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 7){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 70) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 22.2) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() \r\n\t\t\t\t\t* (this.numHexCol / 2) > 14.5){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 105) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 32.6) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 21){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 44.4) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 28){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void scale(float x, float y);",
"public native MagickImage scaleImage(int cols, int rows)\n\t\t\tthrows MagickException;",
"protected final void multiplySize(float size)\n {\n super.setSize(this.bokoblinWidth * size, this.bokoblinHeight * size);\n }",
"public static BufferedImage scale(BufferedImage src, int width, int height) {\n width = width == 0 ? 1 : width;\n height = height == 0 ? 1 : height;\n BufferedImage result = Scalr.resize(src, Scalr.Method.ULTRA_QUALITY, \n width, height,\n Scalr.OP_ANTIALIAS);\n return result;\n }",
"@Method(selector = \"scale:imagePath:width:height:completionBlock:\")\n\tpublic native void scale(String name, String imagePath, int width, int height, @Block App42ResponseBlock completionBlock);",
"public void setSize(RMSize aSize) { setSize(aSize.width, aSize.height); }",
"void scale(double factor);",
"public void scale(Point P, int scaleFactor) {\n\n\n }",
"public void setSize(float width, float height);",
"@Override\n public void scale(double x, double y) {\n graphicsEnvironmentImpl.scale(canvas, x, y);\n }",
"private void resizeBuffer(int size) {\n if (size > m_maxImgBufferSize) {\n if (size > MAX_IMG_SIZE_BYTES) {\n size = MAX_IMG_SIZE_BYTES;\n }\n\n m_maxImgBufferSize = size + 100;\n m_imgBuffer = new byte[m_maxImgBufferSize];\n m_baistream = new ByteArrayInputStream(m_imgBuffer);\n }\n }",
"public void setScale(float scale);",
"private Drawable resize(Drawable image) {\n Bitmap b = ((BitmapDrawable)image).getBitmap();\n Bitmap bitmapResized = Bitmap.createScaledBitmap(b, 100, 100, false);\n return new BitmapDrawable(_act.getResources(), bitmapResized);\n }",
"public PictureScaler() {\r\n try {\r\n URL url = getClass().getResource(\"images/BB.jpg\");\r\n picture = ImageIO.read(url);\r\n scaleW = (int)(SCALE_FACTOR * picture.getWidth());\r\n scaleH = (int)(SCALE_FACTOR * picture.getHeight());\r\n System.out.println(\"w, h = \" + picture.getWidth() + \", \" + picture.getHeight());\r\n setPreferredSize(new Dimension(PADDING + (5 * (scaleW + PADDING)), \r\n scaleH + (4 * PADDING)));\r\n } catch (Exception e) {\r\n System.out.println(\"Problem reading image file: \" + e);\r\n System.exit(0);\r\n }\r\n }",
"public void scaleBitmap(int newWidth, int newHeight) {\n\t\t// Technically since we always keep aspect ratio intact\n\t\t// we should only need to check one dimension.\n\t\t// Need to investigate and fix\n\t\tif ((newWidth > mMaxWidth) || (newHeight > mMaxHeight)) {\n\t\t\tnewWidth = mMaxWidth;\n\t\t\tnewHeight = mMaxHeight;\n\t\t}\n\t\tif ((newWidth < mMinWidth) || (newHeight < mMinHeight)) {\n\t\t\tnewWidth = mMinWidth;\n\t\t\tnewHeight = mMinHeight;\t\t\t\n\t\t}\n\n\t\tif ((newWidth != mExpandWidth) || (newHeight!=mExpandHeight)) {\t\n\t\t\t// NOTE: depending on the image being used, it may be \n\t\t\t// better to keep the original image available and\n\t\t\t// use those bits for resize. Repeated grow/shrink\n\t\t\t// can render some images visually non-appealing\n\t\t\t// see comments at top of file for mScaleFromOriginal\n\t\t\t// try to create a new bitmap\n\t\t\t// If you get a recycled bitmap exception here, check to make sure\n\t\t\t// you are not setting the bitmap both from XML and in code\n\t\t\tBitmap newbits = Bitmap.createScaledBitmap(mScaleFromOriginal ? mOriginal:mImage, newWidth,\n\t\t\t\t\tnewHeight, true);\n\t\t\t// if successful, fix up all the tracking variables\n\t\t\tif (newbits != null) {\n\t\t\t\tif (mImage!=mOriginal) {\n\t\t\t\t\tmImage.recycle();\n\t\t\t\t}\n\t\t\t\tmImage = newbits;\n\t\t\t\tmExpandWidth=newWidth;\n\t\t\t\tmExpandHeight=newHeight;\n\t\t\t\tmResizeFactorX = ((float) newWidth / mImageWidth);\n\t\t\t\tmResizeFactorY = ((float) newHeight / mImageHeight);\n\t\t\t\t\n\t\t\t\tmRightBound = mExpandWidth>mViewWidth ? 0 - (mExpandWidth - mViewWidth) : 0;\n\t\t\t\tmBottomBound = mExpandHeight>mViewHeight ? 0 - (mExpandHeight - mViewHeight) : 0;\n\t\t\t}\t\t\t\t\t\t\t\n\t\t}\n\t}",
"private Image getScaledImage(Image srcImg, int w, int h){\n BufferedImage resizedImg = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2 = resizedImg.createGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n g2.drawImage(srcImg, 0, 0, w, h, null);\n g2.dispose();\n\n return resizedImg;\n }",
"public ImageScale getScale() {\n return this.scale;\n }",
"private Bitmap scaleDownBitmapImage(Bitmap bitmap, int newWidth, int newHeight){\n Bitmap resizedBitmap = Bitmap.createScaledBitmap(bitmap, newWidth, newHeight, true);\n return resizedBitmap;\n }",
"public void scale(double s);",
"private ImageIcon ResizeImage(String imgPath,JLabel label){\n ImageIcon MyImage = new ImageIcon(imgPath);\n Image img = MyImage.getImage();\n Image newImage = img.getScaledInstance(label.getWidth(), label.getHeight(),Image.SCALE_SMOOTH);\n ImageIcon image = new ImageIcon(newImage);\n return image;\n }",
"public void size(final int theWidth, final int theHeight);",
"public ImageIcon changeImageSize(String fileName) throws IOException{ //change the image size to be fitted for the room\n//\t\tImageIcon myIcon = new ImageIcon(fileName);\n//\t\tBufferedImage img = ImageIO.read(getClass().getResource(fileName));\n//\t\tImage img = myIcon.getImage();\n\n\t\t//Using getResource() allows it to run in runnable .jar form\n\t\tURL url = SAR.class.getClassLoader().getResource(fileName);\n\t\tImageIcon icon = new ImageIcon(url);\n\t\tImage img = icon.getImage();\n\t\tImage newImg = img.getScaledInstance(CELL_SIZE/3, CELL_SIZE/3, java.awt.Image.SCALE_SMOOTH);\n\t\tImageIcon newIcon = new ImageIcon(newImg);\n\t\treturn newIcon;\n\t}",
"public ImageProperties setScale(ImageScale scale) {\n this.scale = scale;\n return this;\n }",
"@Method(selector = \"scale:imageData:width:height:completionBlock:\")\n\tpublic native void scale(String name, NSData imageData, int width, int height, @Block App42ResponseBlock completionBlock);",
"public void setSize(double size) \n {\n this.size = size;\n }",
"ResizeResult resize(int desiredSize);",
"public void resize(int width, int height) {\n }",
"public static Bitmap scale(final Bitmap src,\n final int newWidth,\n final int newHeight,\n final boolean recycle) {\n\n Bitmap ret = Bitmap.createScaledBitmap(src, newWidth, newHeight, true);\n if (recycle && !src.isRecycled()) src.recycle();\n return ret;\n }",
"public void sizeBy(float size) {\n internalGroup.sizeBy(size);\n dataTrait.width = internalGroup.getWidth();\n dataTrait.height = internalGroup.getHeight();\n resetSprite();\n }",
"@Override\n public void setScale(float scale) {\n this.scale = scale;\n }",
"public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void scaleBy(float scale) {\n internalGroup.scaleBy(scale);\n dataTrait.scaleX = internalGroup.getScaleX();\n dataTrait.scaleY = internalGroup.getScaleY();\n resetSprite();\n\n }",
"private static Image resize(final Image image, final int width,\r\n final int height) {\r\n final Image scaled = new Image(Display.getDefault(), width, height);\r\n final GC gc = new GC(scaled);\r\n gc.setAntialias(SWT.ON);\r\n gc.setInterpolation(SWT.HIGH);\r\n gc.drawImage(image, 0, 0, image.getBounds().width,\r\n image.getBounds().height, 0, 0, width, height);\r\n gc.dispose();\r\n image.dispose();\r\n return scaled;\r\n }",
"public void setScale(float scale) {\n this.scale = scale;\n }",
"public int scale(int original);",
"void setSize(Dimension size);",
"public static BufferedImage resizeImage(BufferedImage original, int width, int height, Object hint){\n\t\tBufferedImage scaled = new BufferedImage(width, height, original.getType());\n\t\tGraphics2D g = scaled.createGraphics();\n\t\tg.setRenderingHint(RenderingHints.KEY_INTERPOLATION, hint); \n\t\tg.drawImage(original, 0, 0, width, height, null);\n\t\tg.dispose();\n\t\treturn scaled;\n\t}",
"private Drawable resize(Drawable image, int width, int height) {\n Bitmap b = ((BitmapDrawable)image).getBitmap();\n Bitmap bitmapResized = Bitmap.createScaledBitmap(b, width, height, false);\n return new BitmapDrawable(getResources(), bitmapResized);\n }",
"public void increaseSize(int delta){\n\t\tif(scale < scaleMax)\n\t\t\tscale += enlarge * delta;\n\t}",
"public void setScale(Scale scale) {\n this.scale = scale;\n }",
"public static Bitmap scale(final Bitmap src, final float scaleWidth, final float scaleHeight) {\n return scale(src, scaleWidth, scaleHeight, false);\n }",
"public int scaleForPixelHeight(int size) {\r\n\t\tif (!bitmapped && !FreeType.setPixelSizes(face, 0, size))\r\n\t\t\tthrow new GdxRuntimeException(\"Couldn't set size for font\");\r\n\t\tSizeMetrics fontMetrics = face.getSize().getMetrics();\r\n\t\tint ascent = FreeType.toInt(fontMetrics.getAscender());\r\n\t\tint descent = FreeType.toInt(fontMetrics.getDescender());\r\n\t\treturn size * size / (ascent - descent);\r\n\t}",
"public static BufferedImage scaleImage(BufferedImage image, double scale){\n\t\tWritableRaster inRaster = image.getRaster();\n\t\t\n\t\tint w = (int)Math.round(image.getWidth() * scale);\n\t\tint h = (int)Math.round(image.getHeight() * scale);\n\t\tWritableRaster outRaster = inRaster.createCompatibleWritableRaster(w, h);\n\t\t\n\t\tObject outData = null;\n\t\tfor(int j=0; j<h; j++){\n\t\t\tfor(int i=0; i<w; i++){\n\t\t\t\toutData = inRaster.getDataElements((int)(i/scale), (int)(j/scale), outData);\n\t\t\t\toutRaster.setDataElements(i, j, outData);\n\t\t\t}\n\t\t}\n\t\t\n\t\tBufferedImage outImage = new BufferedImage(image.getColorModel(), outRaster, image.isAlphaPremultiplied(), null);\n\t\treturn outImage;\n\t}",
"public void setImagesize(int W, int H)\n {\n \n setImagesize_0(nativeObj, W, H);\n \n return;\n }",
"private Bitmap getScaledBitmap(ImageView imageView) {\n BitmapFactory.Options options = new BitmapFactory.Options();\n options.inJustDecodeBounds = true;\n\n int scaleFactor = Math.min(\n options.outWidth / imageView.getWidth(),\n options.outHeight / imageView.getHeight()\n );\n options.inJustDecodeBounds = false;\n options.inSampleSize = scaleFactor;\n options.inPurgeable = true;\n return BitmapFactory.decodeFile(currentImagePath, options);\n }",
"public void resize(int w, int h) {}",
"public BufferedImage scaleImage(BufferedImage before, double scaleRateW, double scaleRateH) {\n\t\tint w = before.getWidth();\n\t\tint h = before.getHeight();\n\t\tBufferedImage after = new BufferedImage((int)(w*scaleRateW), (int)(h*scaleRateH), BufferedImage.TYPE_INT_ARGB);\n\t\tAffineTransform at = new AffineTransform();\n\t\tat.scale(scaleRateW,scaleRateH);\n\t\tAffineTransformOp scaleOp = new AffineTransformOp(at, AffineTransformOp.TYPE_BILINEAR);\n\t\tafter = scaleOp.filter(before, after);\n\t\treturn after;\n\t}",
"public void setScaleFactor(float scale){\n scaleFactor = scale;\n }",
"public void decreaseSize(int delta){\n\t\tif(scale > scaleMin)\n\t\t\tscale -= enlarge *delta;\n\t}",
"@Override\n\tpublic void resize(float width, float height) {\n\t}",
"private BufferedImage resizeImage(BufferedImage originalImage, int width, int height, int type){\n BufferedImage resizedImage = new BufferedImage(width, height, type);\n Graphics2D g = resizedImage.createGraphics();\n g.drawImage(originalImage, 0, 0, width, height, null);\n g.dispose();\n\n return resizedImage;\n }",
"public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }",
"public Image rescaleTo(int scale) {\n return new LetterAvatar(character, background, scale);\n }",
"public void setSize(Dimension size) {\r\n this.size = size;\r\n }",
"public void scaleImage(int newWidth, int newHeight) {\n\t\t// create a new empty buffered image with the newW and H\n\t\tBufferedImage newIm = new BufferedImage(newWidth, newHeight,\n\t\t\t\tBufferedImage.TYPE_INT_RGB);\n\n\t\t// scale factor between the old and new image sizes\n\t\tdouble scaleX = im.getWidth() / newIm.getWidth();\n\t\tdouble scaleY = im.getHeight() / newIm.getHeight();\n\t\tint rgb = 0;\n\n\t\t// double loop to run through the new image to move pixel colours\n\t\tfor (int i = 0; i < newIm.getWidth(); i++) {\n\t\t\tfor (int j = 0; j < newIm.getHeight(); j++) {\n\t\t\t\t// sets rgb to the colour at the scaled location on the original\n\t\t\t\t// picture\n\t\t\t\trgb = im.getRGB((int) (i * scaleX), (int) (j * scaleY));\n\t\t\t\t// puts the colour into the new image\n\t\t\t\tnewIm.setRGB(i, j, rgb);\n\t\t\t}\n\t\t}\n\t\tim = newIm;\n\t}",
"protected abstract void resize();",
"public void setSize(int size);",
"public void scale( float x, float y )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.setScale( x );\n\t\tmat.mul( opMat );\n\t}",
"public void displayScaled(float scaleFactor) {\n pushMatrix();\n scale(scaleFactor);\n shape(fullCar);\n popMatrix();\n }",
"public static BufferedImage scaleWidth(BufferedImage image, double scaleFactor) {\n int newWidth = (int) (image.getWidth() * scaleFactor);\n if (newWidth == image.getWidth())\n return image; // There would be no change.\n\n BufferedImage scaleImage = new BufferedImage(newWidth, image.getHeight(), image.getType());\n Graphics2D graphics = scaleImage.createGraphics();\n graphics.drawImage(image, 0, 0, newWidth, image.getHeight(), null);\n graphics.dispose();\n return scaleImage;\n }",
"protected void resizeImage( Integer width, Integer height){\n \tiv1.setFitWidth(width);\n \tiv1.setFitHeight(height);\n \tiv1.setSmooth(true);\n \tiv1.setCache(true);\n }",
"@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void resize(int width, int height) {\n\t\t\r\n\t}",
"@Override\n\tpublic void setResolution(Dimension size) {\n\n\t}",
"public static Bitmap scale(final Bitmap src,\n final float scaleWidth,\n final float scaleHeight,\n final boolean recycle) {\n\n Matrix matrix = new Matrix();\n matrix.setScale(scaleWidth, scaleHeight);\n Bitmap ret = Bitmap.createBitmap(src, 0, 0, src.getWidth(), src.getHeight(), matrix, true);\n if (recycle && !src.isRecycled()) src.recycle();\n return ret;\n }",
"public void setSize(int newSize);",
"public void setSize(int newSize);",
"public void scaleAnimetion(SpriteBatch batch){\n }",
"@Override\r\n public void resize(int width, int height) {\r\n\r\n }",
"private void resize() {\n }",
"private void onScaleClick() {\n PropertyValuesHolder scaleXHolder = PropertyValuesHolder.ofFloat(\"scaleX\", 1.5f);\r\n PropertyValuesHolder scaleYHolder = PropertyValuesHolder.ofFloat(\"scaleY\", 1.5f);\r\n Animator scaleAnimator = ObjectAnimator.ofPropertyValuesHolder(\r\n animatedView, scaleXHolder, scaleYHolder);\r\n scaleAnimator.setDuration(animationDuration);\r\n scaleAnimator.setInterpolator(new AccelerateDecelerateInterpolator());\r\n scaleAnimator.start();\r\n }",
"public void scaleBckgrd()\n {\n //Scaling Image for lbl_Bckgrd (Main Background)\n lbl_Bckgrd.setSize(this.getWidth(), this.getHeight());\n ImageIcon ic_Bckgrd = new ImageIcon(getClass().getResource(\"/resources/bckgrd_Student.jpg\"));\n Image img_Bckgrd = ic_Bckgrd.getImage();\n Image imgScaled_Bckgrd = img_Bckgrd.getScaledInstance(lbl_Bckgrd.getWidth(), lbl_Bckgrd.getHeight(), Image.SCALE_SMOOTH);\n ImageIcon scaled_Bckgrd = new ImageIcon(imgScaled_Bckgrd);\n lbl_Bckgrd.setIcon(scaled_Bckgrd);\n }",
"public BufferedImage rescaleImage(BufferedImage image, float scale) {\r\n int[][][] arr = convertToArray(image);\r\n return convertToBimage(rescaleImage(arr, scale));//return array\r\n }",
"@Override\n public void resize(int width, int height) {\n \n }"
] | [
"0.78501046",
"0.7357414",
"0.7051176",
"0.6997221",
"0.69420844",
"0.69277596",
"0.6865321",
"0.6827133",
"0.66988885",
"0.65833676",
"0.65770537",
"0.6551826",
"0.6548466",
"0.6523023",
"0.6516318",
"0.6489689",
"0.64729124",
"0.6437763",
"0.6430478",
"0.63933855",
"0.6375504",
"0.63580495",
"0.6355583",
"0.6353442",
"0.6335472",
"0.6333385",
"0.63310486",
"0.6322485",
"0.6289377",
"0.6273917",
"0.62349683",
"0.62322927",
"0.6226392",
"0.62251556",
"0.621452",
"0.62049335",
"0.6204127",
"0.61858666",
"0.6182514",
"0.6166062",
"0.61368704",
"0.61299074",
"0.61272234",
"0.6123334",
"0.61167383",
"0.61165625",
"0.6082383",
"0.6067888",
"0.6035697",
"0.6026645",
"0.60229766",
"0.6021181",
"0.6018427",
"0.6008931",
"0.6002812",
"0.59873974",
"0.59866434",
"0.59778327",
"0.59711176",
"0.597049",
"0.59693384",
"0.59569496",
"0.59551454",
"0.59447664",
"0.5939779",
"0.59351236",
"0.5926712",
"0.59200114",
"0.5911734",
"0.5909623",
"0.59085655",
"0.5908511",
"0.5903388",
"0.58958477",
"0.58924294",
"0.58876914",
"0.5879019",
"0.58771294",
"0.58757335",
"0.58750427",
"0.58686644",
"0.58653045",
"0.58653045",
"0.58653045",
"0.58653045",
"0.58653045",
"0.58653045",
"0.58653045",
"0.58653045",
"0.58646476",
"0.5857533",
"0.5850362",
"0.5850362",
"0.58497596",
"0.584869",
"0.58446836",
"0.5842257",
"0.5832199",
"0.5822842",
"0.5822093"
] | 0.59628105 | 61 |
This is a callback from the PublisherLink | private void messageRecv(M msg) {
if (LOG.isTraceEnabled()) {
LOG.trace("messageRecv = {}", msg);
} else if (LOG.isDebugEnabled()) {
LOG.debug("messageRecv = {}", msg.getClass().getName());
}
synchronized (_subscribers) {
for (SubscriberImpl subscriber : _subscribers) {
subscriber.message(msg);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void publishStart(Publisher publisher) {\n }",
"public void publishOnFacebook()\n {\n\n }",
"void publishMe();",
"@Override\n public void onSuccess(DocumentReference documentReference) {\n\n\n\n }",
"private void subscribeShortLink() {\n mProductDetailsViewModel.getShortLink().observe(this, shortLink -> {\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.setType(TEXT_PLAIN);\n intent.putExtra(Intent.EXTRA_SUBJECT, getResources().getString(R.string.app_name));\n intent.putExtra(Intent.EXTRA_TEXT, shortLink.toString());\n startActivity(intent);\n });\n }",
"@Override\n public void onSuccess(DocumentReference documentReference) {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"public String getPublicationLink() {\n return publicationLink;\n }",
"public void setPublisher(String publisher) {\n\tthis.publisher = publisher;\n}",
"@Override\n\t\t\t\tpublic void publishStateChanged(LinphoneCore lc, LinphoneEvent ev,\n\t\t\t\t\t\tPublishState state) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void onPlayAnnouncementRequest(PlayAnnouncementRequest arg0) {\n\n }",
"@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}",
"public String getLink();",
"public void notifyPage(Webpage page, Weblink link);",
"@Override\n public void onPourSoupRaised() {\n }",
"void onLinkClicked(@Nullable ContentId itemId);",
"@Override\n\tpublic void onResourceDelivered(ResourceResponse arg0) {\n\t\t\n\t}",
"private void publish() {\n Log.i(TAG, \"Publishing\");\n PublishOptions options = new PublishOptions.Builder()\n .setStrategy(PUB_SUB_STRATEGY)\n .setCallback(new PublishCallback() {\n @Override\n public void onExpired() {\n super.onExpired();\n Log.i(TAG, \"No longer publishing\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mPublishSwitch.setChecked(false);\n }\n });\n }\n }).build();\n\n Nearby.Messages.publish(mGoogleApiClient, mPubMessage, options)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n Log.i(TAG, \"Published successfully.\");\n } else {\n logAndShowSnackbar(\"Could not publish, status = \" + status);\n mPublishSwitch.setChecked(false);\n }\n }\n });\n }",
"@Override\r\n public void publishTransition(Publisher publisher) {\n }",
"public void clickpublish() {\n\tthis.publish.click();\n}",
"public interface WebContentCallBack {\n\tvoid webContentCallBack(Site site, String content) throws Exception;\n}",
"public void onLinkEdit()\n {\n getLinkWizard().start(LinkWizardStep.LINK_REFERENCE_PARSER.toString(), linkConfigFactory.createLinkConfig());\n }",
"@Override\n public void onSuccess(PendingDynamicLinkData pendingDynamicLinkData) {\n Uri deepLink = null;\n if (pendingDynamicLinkData != null) {\n deepLink = pendingDynamicLinkData.getLink();\n }\n\n\n // Handle the deep link. For example, open the linked\n // content, or apply promotional credit to the user's\n // account.\n // ...\n\n // ...\n }",
"void publish();",
"public void Link (Stream rkStream, Stream.Link pkLink)\r\n {\r\n super.Link(rkStream,pkLink);\r\n }",
"public abstract void publishSelf (SubscriberInterface subscriber);",
"public String getPublisher() {\n\treturn publisher;\n}",
"public void setLink(String link)\n {\n this.link = link;\n }",
"@Override\n\t\t\tpublic void onCompletion(RecordMetadata metadata, Exception exception) {\n\t\t\t\tif( exception == null) {\n\t\t\t\t\tlogger.info(\"Received new metadata \\n\"\n\t\t\t\t\t\t\t+\"Topic Name : \"+metadata.topic()+\"\\n\"\n\t\t\t\t\t\t\t+\"Partion Id : \"+metadata.partition()+\"\\n\"\n\t\t\t\t\t\t\t+\"Offset Id : \"+metadata.offset()+\"\\n\"\n\t\t\t\t\t\t\t);\n\t\t\t\t} else {\n\t\t\t\t\tlogger.error(\"Error in Publishing the message\"+exception);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"public void setLink(String link) {\r\n this.link = link;\r\n }",
"public void setPublicationLink(String publicationLink) {\n this.publicationLink = publicationLink;\n }",
"@Override\n\tpublic void callback() {\n\t}",
"public interface OnShareListener {\r\n void onShare(int scene);\r\n}",
"public interface ListenerMusicUrl {\n /**\n * Fonction lance lors de la recuperation de l'url d'un stream de musique\n * @param url : url du stream\n */\n void onResultMusicUrl(String url);\n}",
"public void setLink(String link) {\r\n this.link = link;\r\n }",
"public void eventsPublishedByPub() {\r\n int index = 1;\r\n System.out.println(\"Events published by this publisher: \");\r\n for (Event event : pubEvents) {\r\n System.out.println(index + \"->\" + event + \"\\n\");\r\n index++;\r\n }\r\n }",
"@Override\n\tpublic void publishTopic(Node node) {\n\t\t\n\t}",
"public interface LinkClickHandler { void onLinkClicked(GURL url); }",
"@Override\n\tpublic void onPSubscribe(String arg0, int arg1) {\n\t\t\n\t}",
"private void pubrelHandler(AmqpPubrelMessage pubrel) {\n\n this.mqttEndpoint.publishRelease((int) pubrel.messageId());\n\n LOG.info(\"PUBREL [{}] to MQTT client {}\", pubrel.messageId(), this.mqttEndpoint.clientIdentifier());\n }",
"@Override\r\n\tpublic void onChannelSuccess() {\n\t\t\r\n\t}",
"public void publishEvents() {\n Bundle params = new Bundle();\n params.putString(\"name\", \"Reserva Cancha Finder\");\n params.putString(\"caption\", \"CanchaFinder\");\n params.putString(\"description\", Seleccion);\n params.putString(\"link\", \"http://www.solweb.co/reservas/CanchaFinder/index.php\");\n params.putString(\"picture\",\"http://www.solweb.co/reservas/api_movil/ic_launcher.png\");\n\n WebDialog feedDialog = (new WebDialog.FeedDialogBuilder(this,currentSession, params))\n .setOnCompleteListener(new WebDialog.OnCompleteListener() {\n\n @Override\n public void onComplete(Bundle values,FacebookException error) {\n if (error == null) {\n // When the story is posted, echo the success\n // and the post Id.\n final String postId = values.getString(\"post_id\");\n if (postId != null) {\n // do some stuff\n } else {\n // User clicked the Cancel button\n Toast.makeText(getApplicationContext(),\n \"Publish cancelled\", Toast.LENGTH_SHORT).show();\n }\n } else if (error instanceof FacebookOperationCanceledException) {\n // User clicked the \"x\" button\n Toast.makeText(getApplicationContext(),\n \"Publish cancelled\", Toast.LENGTH_SHORT).show();\n } else {\n // Generic, ex: network error\n Toast.makeText(getApplicationContext(),\n \"Error posting story\", Toast.LENGTH_SHORT).show();\n }\n }\n\n }).setFrom(\"\").build();\n feedDialog.show();\n\n }",
"public String getPublisher() {\n return this.publisher;\n }",
"public void setLink(String link) {\n this.link = link;\n }",
"public void setLink(String link) {\n this.link = link;\n }",
"public void setLink(String link) {\n this.link = link;\n }",
"@Override\r\n\tpublic void onMpnews(HttpRequest request, Mpnews news) {\n\r\n\t}",
"public DoublyLink() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"@Override\n public void definitionListItem(SinkEventAttributes attributes)\n {\n }",
"@Override\n public void onComplete(Platform arg0, int arg1, HashMap<String, Object> arg2) {\n mHandler.post(new Runnable() {\n public void run() {\n Toast.makeText(context, \"分享成功\", Toast.LENGTH_SHORT).show();\n }\n });\n if (mShareCallback!=null) {\n mShareCallback.onSuccess();\n }\n\n }",
"@Override\n\tpublic void onCallback() {\n\t\t\n\t}",
"@Override\r\n\tpublic void onMoviesDownloaded() {\n\r\n\t}",
"public interface OnAuthorClickCallback {\n void onAuthorClick(String author);\n}",
"@Override\n \tpublic URI getSubscriberURI() {\n \t\treturn null;\n \t}",
"@Override\n public void author(SinkEventAttributes attributes)\n {\n }",
"protected interface ILinkCallback extends IClusterable\n\t{\n\t\t/**\n\t\t * Called when the click is executed.\n\t\t *\n\t\t * @param target\n\t\t * The ajax request target\n\t\t */\n\t\tvoid onClick(AjaxRequestTarget target);\n\t}",
"public interface OnBlogsReceived {\n\n void onSuccess(BlogFeed blogFeedList);\n void onFailure();\n}",
"public Link getLink() {\r\n return link;\r\n }",
"@Override\n\t\tpublic void onDirectMessage(DirectMessage arg0) {\n\t\t\t\n\t\t}",
"public void hyperlinkUpdate(HyperlinkEvent e) \n {\n\t\tif (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) \n {\n \tJEditorPane pane = (JEditorPane) e.getSource();\n \tif (e instanceof HTMLFrameHyperlinkEvent) \n \t{\n \t\tHTMLFrameHyperlinkEvent evt = (HTMLFrameHyperlinkEvent)e;\n \t\tHTMLDocument doc = (HTMLDocument)pane.getDocument();\n \t\tdoc.processHTMLFrameHyperlinkEvent(evt);\n \t}\n \telse \n \t{\n \t\ttry \n \t\t{\n \t\t\tpane.setPage(e.getURL());\n \t\t}\n \t\tcatch (Throwable t) \n \t\t{\n \t\t\tt.printStackTrace();\n \t\t}\n \t}\n }\n }",
"@Override\n protected void onNextPageRequested(int page) {\n\n }",
"public String getLink() {\n return link;\n }",
"void storeLinks();",
"@PostLoad\n void albumPostLoad(Album a) {\n eventSubject = a;\n Album.CALLBACK_LOG.add(new CallbackLogEntry(this, PostLoad.class));\n }",
"public abstract String linkText();",
"@Override\r\n\tpublic void getUrl() {\n\r\n\t}",
"public void onShareAdded(ShareEntry shareEntry);",
"public interface OnFeedsLoadedListener {\n void onSuccess(List<FeedItem> feedItems, boolean loadedNewFeeds);\n\n void onFailure(String message);\n}",
"public void hyperlinkUpdate(HyperlinkEvent event) {\r\n\t\t// TODO add open link in default browser\r\n\t\tif (event.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {\r\n\t\t\ttry {\r\n\t\t\t\th.setPage(event.getURL());\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tioe.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public interface OnPopUpFollowingListener {\n\n void onActionStart(long merchantId);\n}",
"@Override\n public void onSuccess() {\n }",
"@UiHandler(\"speakersLink\")\r\n\tprotected void onClickSpeakersLink(ClickEvent event) {\r\n\t\tnavigation.goTo(SpeakerListPage.class, PageStates.empty());\r\n\t}",
"String getLink();",
"public String getPublisher() {\n return publisher;\n }",
"@Override\r\n\tpublic void publish(ISeller seller, IHotelBiding hotelBiding) {\n\t\t\r\n\t}",
"public String getLink() {\r\n return link;\r\n }",
"String publisherIdentifier();",
"public void setLinkName(String linkName);",
"public String getLink()\n {\n return link;\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onFbcompleate() {\n\n\t\t\t\t\t\t\t}",
"public interface FilterResultsCallback {\n void onPublish(int filterResults);\n}",
"@Override\n public void onSuccess(DocumentReference documentReference) {\n Toast.makeText(getApplicationContext(), \"Servicio agregado correctamente\",Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onAdded() {\n }",
"@Override\n\tpublic void onBannerClicked(MoPubView arg0) {\n\t\t\n\t}",
"public void onSubscribe() {\n\n }",
"@Override\n public void onSuccess(PendingDynamicLinkData pendingDynamicLinkData) {\n Uri deepLink = null;\n if (pendingDynamicLinkData != null) {\n deepLink = pendingDynamicLinkData.getLink();\n if (deepLink.toString().contains(URLFactory.EXP_SHARE)) {\n String expId = deepLink.getLastPathSegment();\n\n Bundle bundle = new Bundle();\n bundle.putString(\"expId\", expId);\n openIsloatedFullActivity().setPage(AppNavigator.Pages.EXPDETAILSLOCAL).addBundle(bundle).start();\n } else if (deepLink.toString().contains(URLFactory.LOCAL_SHARE)) {\n\n String localId = deepLink.getLastPathSegment();\n\n Bundle bundle = new Bundle();\n DashboardDetails dashboardDetails = new DashboardDetails();\n dashboardDetails.setId(localId);\n bundle.putString(\"localDetails\", new Gson().toJson(dashboardDetails));\n\n openIsloatedFullActivity().addBundle(bundle).setPage(AppNavigator.Pages.Dashboard).start();\n\n }\n }\n\n\n }",
"public interface WordSearchInterface {\n\n public void OnProcessFinished(String Description, String MobileUrl, String title, ArrayList list, ArrayList<String> links, boolean redirect);\n\n\n}",
"@Override\n\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\n\t\t\t}",
"public void onLinkInsert(LinkConfig.LinkType linkType)\n {\n LinkConfig linkConfig = linkConfigFactory.createLinkConfig();\n linkConfig.setType(linkType);\n getLinkWizard().start(LinkWizardStep.LINK_REFERENCE_PARSER.toString(), linkConfig);\n }",
"@Override\n public void onSuccess(PendingDynamicLinkData pendingDynamicLinkData) {\n Uri deepLink = null;\n if (pendingDynamicLinkData != null) {\n deepLink = pendingDynamicLinkData.getLink();\n }\n //\n // If the user isn't signed in and the pending Dynamic Link is\n // an invitation, sign in the user anonymously, and record the\n // referrer's UID.\n //\n\n if (deepLink != null\n && deepLink.getBooleanQueryParameter(\"invitedby\", false)) {\n String referrerUid = deepLink.getQueryParameter(\"invitedby\");\n RNPruCommonModule.referrerUid = referrerUid;\n }\n\n if (deepLink != null\n && deepLink.getBooleanQueryParameter(\"campaign\", false)) {\n System.out.println(\"@@@@@@@@@@deeplink:campaign:\" + deepLink);\n String campaign = deepLink.getQueryParameter(\"campaign\");\n RNPruCommonModule.campaignId = campaign;\n }\n\n if (deepLink != null\n && deepLink.getBooleanQueryParameter(\"deepLinkID\", false)) {\n String deepLinkID = deepLink.getQueryParameter(\"deepLinkID\");\n RNPruCommonModule.deepLinkID = deepLinkID;\n }\n }",
"@Override\r\n\t\t\tpublic void onRequest() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void feedingHerb() {\n\n }",
"@Override\n public void onSuccess() {\n }",
"void onPagesAdded(List<Integer> pageList);",
"protected void onPart(String channel, String sender, String login, String hostname) {}",
"public interface IdentityLinkEventHandler {\n\n /**\n * Handle an event of the {@link IdentityLink} addition\n *\n * @param identityLink identityLink which was recently added\n */\n void handleIdentityLinkAddition(IdentityLink identityLink);\n\n /**\n * Handle an event of {@link IdentityLink} deletion\n *\n * @param identityLink identityLink which is going to be deleted\n */\n void handleIdentityLinkDeletion(IdentityLink identityLink);\n}",
"void onAddAttachments();",
"@Override\n public void onSetSuccess() {\n }",
"@Override\n public void onSetSuccess() {\n }",
"@Override\n\t\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\t\n\t\t\t\t}",
"public interface LastItemVisibleCallBack {\n void loadNextPage();\n}"
] | [
"0.61287117",
"0.60611457",
"0.59523326",
"0.57896715",
"0.57115245",
"0.5650275",
"0.5584069",
"0.55818176",
"0.5534307",
"0.5487259",
"0.5485604",
"0.54414195",
"0.54178303",
"0.54110765",
"0.54103327",
"0.5410268",
"0.5410013",
"0.54072016",
"0.54038876",
"0.5389947",
"0.5388228",
"0.5383269",
"0.5354425",
"0.53538144",
"0.5343221",
"0.53350556",
"0.5323927",
"0.53168964",
"0.52961934",
"0.5291651",
"0.5289736",
"0.5267394",
"0.52668446",
"0.52463657",
"0.52442044",
"0.5239326",
"0.5238284",
"0.52381563",
"0.5224066",
"0.52180195",
"0.5210549",
"0.5209104",
"0.5203589",
"0.520328",
"0.520328",
"0.520328",
"0.5201563",
"0.5200153",
"0.5199401",
"0.5197904",
"0.51878744",
"0.51774937",
"0.5176134",
"0.51738405",
"0.51720893",
"0.5160599",
"0.5160356",
"0.5155951",
"0.51552963",
"0.5155208",
"0.5155016",
"0.5154837",
"0.51477545",
"0.5143914",
"0.51426655",
"0.51402366",
"0.5140195",
"0.5134762",
"0.5132455",
"0.5131751",
"0.51213294",
"0.51166236",
"0.5116526",
"0.5113278",
"0.5112486",
"0.51093847",
"0.51027983",
"0.5102537",
"0.50961995",
"0.5096016",
"0.5094767",
"0.5089809",
"0.5083129",
"0.50825465",
"0.50808895",
"0.50767463",
"0.50749433",
"0.5071251",
"0.50710326",
"0.50697017",
"0.50634027",
"0.50613546",
"0.5055037",
"0.50523764",
"0.50468415",
"0.50448996",
"0.50401527",
"0.50349617",
"0.50349617",
"0.5034677",
"0.5032811"
] | 0.0 | -1 |
Constructor with reference to game board | public ComputerPlayer(Board board)
{
this.board = board;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private GameBoard() {}",
"public Game() {\n board = new FourBoard();\n }",
"public GameBoard() {\r\n boards = new ArrayList<GameBoard>();\r\n }",
"public AIPlayer(Board board) {\n cells = board.squares;\n }",
"Board() {\n this(INITIAL_PIECES, BLACK);\n _countBlack = 12;\n _countWhite = 12;\n _moveHistory = new ArrayList<Move>();\n _movesMade = 0;\n }",
"public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}",
"public Board() {\n this.board = new byte[][] { new byte[3], new byte[3], new byte[3] };\n }",
"public Board() {\n this.board = new Piece[16];\n }",
"public Board(char[][] board) {\n this.boardWidth = board.length;\n this.boardHeight = board[0].length;\n this.board = board;\n this.numShips = 0;\n boardInit();\n }",
"@Override\r\n\tpublic void init() \r\n\t{\r\n\t\tthis.board = new GameBoard();\r\n\t}",
"public PersonalBoard(){\n this(0);\n }",
"public Board() {\n this.x = 0;\n this.o = 0;\n }",
"public Board() {\n initialize(3, null);\n }",
"private MyGameState(int[][] board, int turn) {\n this.board = board;\n this.turn = turn;\n }",
"public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }",
"public Board(Piece[] board) {\n this.board = copyOf(board);\n }",
"public GameBoard() {\n this.gameStarted = false;\n this.turn = 1; \n this.boardState = new char[3][3];\n this.winner = 0; \n this.isDraw = false; \n\n }",
"public ChessBoard() {\n initComponents();\n createChessBoard();\n\n }",
"public Board(Board a)\n {\n mainBoard=false;\n squares = new Square[Chess.ROWS][Chess.COLUMNS];\n setLayout(new GridLayout(Chess.ROWS,Chess.COLUMNS,0,0));\n if (a.firstSelected==null)\n firstSelected=null;\n else\n firstSelected = new Piece(a.firstSelected);\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n squares[i][j] = new Square(a.squares[i][j]);\n }",
"Board() {\n this.cardFactory = new CardFactory(this);\n }",
"public BoardGame()\n\t{\n\t\tplayerPieces = new LinkedHashMap<String, GamePiece>();\n\t\tplayerLocations = new LinkedHashMap<String, Location>();\n\t\t\n\t}",
"Board() {\n\t\tswitch (Board.boardType) {\n\t\tcase Tiny:\n\t\t\tthis.dimensions = TinyBoard; break;\n\t\tcase Giant:\n\t\t\tthis.dimensions = GiantBoard; break;\n\t\tdefault:\n\t\t\tthis.dimensions = StandardBoard; break;\n\t\t}\n\t\tboard = new Square[dimensions.x][dimensions.y];\n\t\tinit();\n\t}",
"public Board() {\n\t\tboard = new char[9][9];\n\t}",
"public Board()\r\n\t{\r\n\t\treset();\r\n\t}",
"private Board() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// A private board constructor to ensure only one is created\n\t\tsuper();\n\t}",
"public Board()\n\t{\n\t\tcols = DEFAULT_WIDTH;\n\t\trows = DEFAULT_HEIGHT;\n\t\t\n\t\tpieces = new int[rows][cols];\n\t\tif (pieces.length > 0)\n\t\t{\n\t\t\tfor (int i = 0; i < pieces.length; i++)\n\t\t\t\tfor (int j = 0; j < pieces[0].length; j++)\n\t\t\t\t\tpieces[i][j] = -1;\n\t\t}\n\t}",
"public Board(){\n for(int holeIndex = 0; holeIndex<holes.length; holeIndex++)\n holes[holeIndex] = new Hole(holeIndex);\n for(int kazanIndex = 0; kazanIndex<kazans.length; kazanIndex++)\n kazans[kazanIndex] = new Kazan(kazanIndex);\n nextToPlay = Side.WHITE;\n }",
"Board() {\r\n init();\r\n }",
"public GameBoard(){\r\n boardCells = new GameCell[NUMBER_OF_CELLS];\r\n for( int i= 0; i< NUMBER_OF_CELLS; i++ ){\r\n boardCells[i] = new GameCell(i);//\r\n }\r\n }",
"public Board() {\n\t\tdimension = 9;\n\t\tpuzzle = new int[dimension][dimension];\n\t}",
"public JumbleBoard()\n {\n }",
"public Board() {\n\t\tintializeBoard(_RowCountDefault, _ColumnCountDefault, _CountToWinDefault);\n\t}",
"public Board() {\r\n\t\tthis.size = 4;\r\n\t\tthis.gameBoard = createBoard(4);\r\n\t\tthis.openTiles = 16;\r\n\t\tthis.moves = 0;\r\n\t\tthis.xValues = new boolean[4][4];\r\n\t\tthis.yValues = new boolean[4][4];\r\n\t\tthis.complete = false;\r\n\t}",
"public Game() {\n initializeBoard();\n }",
"Board(Board board) {\n copyFrom(board);\n }",
"public Board(int boardHeight, int boardWidth) {\n this.boardWidth = boardHeight+1;\n this.boardHeight = boardWidth+1;\n this.board = new char[this.boardHeight][this.boardWidth];\n this.numShips = 0;\n boardInit();\n }",
"public Board(String lineMap) {\n objectsOnTheBoard = new LinkedList<GameObject>();\n }",
"public Board() {\n\t\tboardState = new Field[DIMENSION][DIMENSION];\n\t\tfor(int i = 0; i < DIMENSION; i++) {\n\t\t\tfor(int j = 0; j < DIMENSION; j++) {\n\t\t\t\tboardState[i][j] = new Field();\n\t\t\t}\n\t\t}\n\t}",
"public TicTacToeBoard() {board = new int[rows][columns];}",
"public TetrisBoard() {\n super();\n\n myBoard = new Board();\n myHeight = myBoard.getHeight() * BLOCK_SIZE;\n myWidth = myBoard.getWidth() * BLOCK_SIZE;\n myGameMode = CLASSIC_MODE;\n myBoardString = myBoard.toString();\n myGameOver = false;\n myWelcome = true;\n myTimer = new Timer(INITIAL_TIMER_DELAY, new TimerListener());\n\n setupBoard();\n }",
"public Board() {\n playerNumber = 2;\n deadBlackCount = 0;\n deadWhiteCount = 0;\n deadRedCount = 0;\n deadBlueCount = 0;\n\n fields = new Field[DIMENSION][DIMENSION];\n // init fields\n for (int i = 0; i < DIMENSION; i++) {\n for (int j = 0; j < DIMENSION; j++) {\n fields[i][j] = new Field();\n fields[i][j].setX(i);\n fields[i][j].setY(j);\n }\n }\n }",
"public WarGame(int rounds, WarBoard board){\n super(rounds, board);\n }",
"public GameBoard (int height, int width)\n {\n mHeight = height;\n mWidth = width;\n }",
"public UIBoard()\r\n\t{\r\n\t\t//Creates a 10x10 \"Board\" object\r\n\t\tsuper(10,10);\r\n\t\tgrid = new int[getLength()][getWidth()];\r\n\t\t\r\n\t\t//Sets all coordinates to the value 0, which corresponds to \"not hit yet\"\r\n\t\tfor(int i=0; i<grid.length; i++)\r\n\t\t\tfor(int j=0; j<grid[i].length; j++)\r\n\t\t\t\tgrid[i][j] = 0;\t\t\r\n\t}",
"public Board() {\n\t\tboard = new int[8][8];\n\t\tbombs = 64 / 3;\n\t\tdifficulty = GlobalModel.BESTSCORE_EASY;\n\t\tfillBoard();\n\t\tsetDefaultScores();\n\t}",
"public GameBoard(){\r\n\t\tboard = new Box[boardSize];\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tboard[i] = Box.EMPTY;\r\n\t\t}\r\n\t}",
"public Gameboard() {\n\n\t\tturn = 0;\n\n\t\tboard = new Cell[4][4][4];\n\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tfor (int j = 0; j < board.length; j++) {\n\t\t\t\tfor (int k = 0; k < board.length; k++) {\n\n\t\t\t\t\tboard[i][j][k] = Cell.E;\n\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public ChessRunner(){\n\t\taddMouseListener(this);\n\t\tfor(int i=0;i<8;i++){\n\t\t\tfor (int j=1;j<7;j++)\n\t\t\t\tif(j==1)\n\t\t\t\t\tboard[i][j] = new BlackPawn();\n\t\t\t\telse if(j==6)\n\t\t\t\t\tboard[i][j] = new WhitePawn();\n\t\t\t\telse\n\t\t\t\t\tboard[i][j]= new BlankPiece();\n\t\t}\n\t\tboard[1][0] = new BlackKnight();\n\t\tboard[6][0] = new BlackKnight();\n\t\tboard[0][0] = new BlackRook();\n\t\tboard[7][0] = new BlackRook();\n\t\tboard[2][0] = new BlackBishop();\n\t\tboard[5][0] = new BlackBishop();\n\t\tboard[4][0] = new BlackKing();\n\t\tboard[3][0] = new BlackQueen();\n\t\t\n\t\tboard[1][7] = new WhiteKnight();\n\t\tboard[6][7] = new WhiteKnight();\n\t\tboard[0][7] = new WhiteRook();\n\t\tboard[7][7] = new WhiteRook();\n\t\tboard[2][7] = new WhiteBishop();\n\t\tboard[5][7] = new WhiteBishop();\n\t\tboard[4][7] = new WhiteKing();\n\t\tboard[3][7] = new WhiteQueen();\n\t\t\n\t}",
"public Board() {\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n this.grid[row][col] = 0;\n }\n }\n }",
"public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}",
"public CheckerBoard(){\n mCheckerBoard = new ArrayList<>(64);\n }",
"public CheckersGame(CheckersData passedBoard) {\n boardData = passedBoard;\n }",
"public Board() {\n //Create all pieces\n board[0][0] = new Rook(\"black\", 0, 0);\n board[0][1] = new Knight(\"black\", 0, 1);\n board[0][2] = new Bishop(\"black\", 0, 2);\n board[0][3] = new Queen(\"black\", 0, 3);\n board[0][4] = new King(\"black\", 0, 4);\n board[0][5] = new Bishop(\"black\", 0, 5);\n board[0][6] = new Knight(\"black\", 0, 6);\n board[0][7] = new Rook(\"black\", 0, 7);\n\n board[7][0] = new Rook(\"white\", 7, 0);\n board[7][1] = new Knight(\"white\", 7, 1);\n board[7][2] = new Bishop(\"white\", 7, 2);\n board[7][3] = new Queen(\"white\", 7, 3);\n board[7][4] = new King(\"white\", 7, 4);\n board[7][5] = new Bishop(\"white\", 7, 5);\n board[7][6] = new Knight(\"white\", 7, 6);\n board[7][7] = new Rook(\"white\", 7, 7);\n\n for (int j = 0; j < 8; j++) {\n board[1][j] = new Pawn(\"black\", 1, j);\n board[6][j] = new Pawn(\"white\", 6, j);\n }\n\n //Printing everything\n for (Piece[] a : board) {\n for (Piece b : a) {\n System.out.printf(\"%-15s\", \"[\" + b + \"]\");\n }\n System.out.println(\"\");\n }\n }",
"public Board() {\n for (int y = 0; y < spaces.length; y++) {\n for (int x = 0; x < spaces[0].length; x++) {\n spaces[y][x] = new SubBoard();\n wonBoards[y][x] = ' ';\n }\n }\n }",
"Board() {\n this.ones = -1; // 1\n this.twos = -1; // 2\n this.threes = -1; // 3\n this.fours = -1; // 4\n this.fives = -1; // 5\n this.sixes = -1; // 6\n this.threeOfAKind = -1; // 7\n this.fourOfAKind = -1; // 8\n this.smallStraight = -1;// 9\n this.longStraight = -1; // 10\n this.fullHouse = -1; // 11\n this.yahtzee = -1; // 12\n }",
"public void setBoard(Board board){this.board = board;}",
"public Game() {\n\t\tthis.board = new Board();\n\t\tthis.pieces = new HashMap<Chess.Color, List<Piece>>();\n\t\tthis.pieces.put(Chess.Color.WHITE, new ArrayList<Piece>());\n\t\tthis.pieces.put(Chess.Color.BLACK, new ArrayList<Piece>());\n\t\tthis.moveStack = new Stack<Move>();\n\t}",
"public Board()\r\n\t{\r\n\t\tthis.grid = new CellState[GRID_SIZE][GRID_SIZE];\r\n\t\tthis.whiteMarblesCount = MARBLES_COUNT;\r\n\t\tthis.blackMarblesCount = MARBLES_COUNT;\r\n\t\t\r\n\t\t/**\r\n\t\t * Initializes the board with empty value\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < GRID_SIZE; indexcol++)\r\n\t\t{\r\n\t\t\tfor (int indexrow = 0; indexrow < GRID_SIZE; indexrow++)\r\n\t\t\t{\r\n\t\t\t\tthis.grid[indexrow][indexcol] = CellState.EMPTY;\t\t\t\t\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Sets marbles on the board with default style\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[0][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[8][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 0; indexcol < 6; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[1][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[7][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 2; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[2][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[6][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tthis.grid[3][8] = CellState.INVALID;\r\n\t\tthis.grid[2][7] = CellState.INVALID;\r\n\t\tthis.grid[1][6] = CellState.INVALID;\r\n\t\tthis.grid[0][5] = CellState.INVALID;\r\n\t\tthis.grid[5][0] = CellState.INVALID;\r\n\t\tthis.grid[6][1] = CellState.INVALID;\r\n\t\tthis.grid[7][2] = CellState.INVALID;\r\n\t\tthis.grid[8][3] = CellState.INVALID;\r\n\t}",
"public Board(int[][] tiles) {\n n = tiles.length;\n this.tiles = deepCopy(tiles);\n }",
"protected Board(){\n\t\tpool = 0;\n\t\tsquares = new Square[3][61];\n\t\tcommunityCards = new LinkedList<CommunityCard>();\n\t\tchanceCards = new LinkedList<ChanceCard>();\n\t\tmap = new HashMap<String, Integer>();\n\t\tcompanyArray = new Company[6];\n\t\tcreateBoard();\n\t\tfillHashMap();\t\t\t\n\t\tfillChanceCards();\n\t\tfillCommunityChestCards();\n\t\tfillCompanyArray();\n\t\tshuffleChanceCards();\n\t\tshuffleCommunityCards();\n\t}",
"public void initializeBoard() {\n\n\t\t/*\n\t\t * How the array coordinates align with the actual chess board\n\t\t * (row,col) \n\t\t * (7,0) ... ... ... \n\t\t * (7,7) ... ... ... \n\t\t * ... ... ... \n\t\t * (2,0) ...\n\t\t * (1,0) ... \n\t\t * (0,0) ... ... ... (0,7)\n\t\t */\n\n\t\tboolean hasMoved = false;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set white piece row\n\t\tboard[0][0] = new Piece('r', white, hasMoved, 0, 0, PieceArray.A_rookId);\n\t\tboard[0][1] = new Piece('n', white, hasMoved, 0, 1, PieceArray.B_knightId);\n\t\tboard[0][2] = new Piece('b', white, hasMoved, 0, 2, PieceArray.C_bishopId);\n\t\tboard[0][3] = new Piece('q', white, hasMoved, 0, 3, PieceArray.D_queenId);\n\t\tboard[0][4] = new Piece('k', white, hasMoved, 0, 4, PieceArray.E_kingId);\n\t\tboard[0][5] = new Piece('b', white, hasMoved, 0, 5, PieceArray.F_bishopId);\n\t\tboard[0][6] = new Piece('n', white, hasMoved, 0, 6, PieceArray.G_knightId);\n\t\tboard[0][7] = new Piece('r', white, hasMoved, 0, 7, PieceArray.H_rookId);\n\n\t\t// Set white pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[1][i] = new Piece('p', white, hasMoved, 1, i, i + 8);\n\t\t}\n\n\t\t// Set empty rows\n\t\tfor (int row = 2; row < 6; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\t// Set black pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[6][i] = new Piece('p', black, hasMoved, 6, i, i+8);\n\t\t}\n\n\t\t// Set black piece row\n\t\tboard[7][0] = new Piece('r', black, hasMoved, 7, 0, PieceArray.A_rookId);\n\t\tboard[7][1] = new Piece('n', black, hasMoved, 7, 1, PieceArray.B_knightId);\n\t\tboard[7][2] = new Piece('b', black, hasMoved, 7, 2, PieceArray.C_bishopId);\n\t\tboard[7][3] = new Piece('q', black, hasMoved, 7, 3, PieceArray.D_queenId);\n\t\tboard[7][4] = new Piece('k', black, hasMoved, 7, 4, PieceArray.E_kingId);\n\t\tboard[7][5] = new Piece('b', black, hasMoved, 7, 5, PieceArray.F_bishopId);\n\t\tboard[7][6] = new Piece('n', black, hasMoved, 7, 6, PieceArray.G_knightId);\n\t\tboard[7][7] = new Piece('r', black, hasMoved, 7, 7, PieceArray.H_rookId);\n\t}",
"public Board(String boardName) {\n\n /*\n * Created according to the specs online.\n */\n if (boardName.equals(\"default\")) {\n Ball ball1 = new Ball(new Vect(0, 0), new Geometry.DoublePair(1.25,\n 1.25));\n Gadget circle = new CircleBumper(1, 10, new Gadget[] {});\n Gadget triangle = new TriangleBumper(12, 15, 180, new Gadget[] {});\n Gadget square1 = new SquareBumper(0, 17, new Gadget[] {});\n Gadget square2 = new SquareBumper(1, 17, new Gadget[] {});\n Gadget square3 = new SquareBumper(2, 17, new Gadget[] {});\n Gadget circle1 = new CircleBumper(7, 18, new Gadget[] {});\n Gadget circle2 = new CircleBumper(8, 18, new Gadget[] {});\n Gadget circle3 = new CircleBumper(9, 18, new Gadget[] {});\n this.balls = new Ball[] { ball1 };\n this.gadgets = new Gadget[] { circle, triangle, square1, square2,\n square3, circle1, circle2, circle3, top, bottom, left,\n right };\n\n } else if (boardName.equals(\"absorber\")) {\n Ball ball1 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 10.25, 15.25));\n Ball ball2 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 19.25, 3.25));\n Ball ball3 = new Ball(new Vect(0, 0), new Geometry.DoublePair(1.25,\n 5.25));\n Gadget absorber = new Absorber(0, 18, 20, 2, new Gadget[] {});\n Gadget triangle = new TriangleBumper(19, 0, 90, new Gadget[] {});\n Gadget circle1 = new CircleBumper(1, 10, new Gadget[] { absorber });\n Gadget circle2 = new CircleBumper(2, 10, new Gadget[] { absorber });\n Gadget circle3 = new CircleBumper(3, 10, new Gadget[] { absorber });\n Gadget circle4 = new CircleBumper(4, 10, new Gadget[] { absorber });\n Gadget circle5 = new CircleBumper(5, 10, new Gadget[] { absorber });\n this.balls = new Ball[] { ball1, ball2, ball3 };\n this.gadgets = new Gadget[] { absorber, triangle, circle1, circle2,\n circle3, circle4, circle5, top, left, right, bottom };\n }\n\n else if (boardName.equals(\"flippers\")) {\n Ball ball1 = new Ball(new Vect(0, 0), new Geometry.DoublePair(.25,\n 3.25));\n Ball ball2 = new Ball(new Vect(0, 0), new Geometry.DoublePair(5.25,\n 3.25));\n Ball ball3 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 10.25, 3.25));\n Ball ball4 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 15.25, 3.25));\n Ball ball5 = new Ball(new Vect(0, 0), new Geometry.DoublePair(\n 19.25, 3.25));\n Gadget left1 = new LeftFlipper(0, 8, 90, new Gadget[] {});\n Gadget left2 = new LeftFlipper(4, 10, 90, new Gadget[] {});\n Gadget left3 = new LeftFlipper(9, 8, 90, new Gadget[] {});\n Gadget left4 = new LeftFlipper(15, 8, 90, new Gadget[] {});\n Gadget circle1 = new CircleBumper(5, 18, new Gadget[] {});\n Gadget circle2 = new CircleBumper(7, 13, new Gadget[] {});\n Gadget circle3 = new CircleBumper(0, 5, new Gadget[] { left1 });\n Gadget circle4 = new CircleBumper(5, 5, new Gadget[] {});\n Gadget circle5 = new CircleBumper(10, 5, new Gadget[] { left3 });\n Gadget circle6 = new CircleBumper(15, 5, new Gadget[] { left4 });\n Gadget triangle1 = new TriangleBumper(19, 0, 90, new Gadget[] {});\n Gadget triangle2 = new TriangleBumper(10, 18, 180, new Gadget[] {});\n Gadget right1 = new RightFlipper(2, 15, 0, new Gadget[] {});\n Gadget right2 = new RightFlipper(17, 15, 0, new Gadget[] {});\n Gadget absorber = new Absorber(0, 19, 20, 1, new Gadget[] { right1,\n right2, new Absorber(0, 19, 20, 1, new Gadget[] {}) });\n this.balls = new Ball[] { ball1, ball2, ball3, ball4, ball5 };\n this.gadgets = new Gadget[] { left1, left2, left3, left4, circle1,\n circle2, circle3, circle4, circle5, circle6, triangle1,\n triangle2, right1, right2, absorber, top, bottom, left,\n right };\n } else {\n this.gadgets = new Gadget[] {};\n this.balls = new Ball[] {};\n }\n\n checkRep();\n }",
"public Board(Player p1, Player p2) {\r\n try {\r\n crownImage = ImageIO.read(new File(\"crown.jpg\"));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n checks = new int[8][8];\r\n currentPlayer = p2;\r\n nextPlayer = p1;\r\n whiteQueens = 0;\r\n whiteChecks = 12;\r\n blackQueens = 0;\r\n blackChecks = 12;\r\n winner = null;\r\n isGame = true;\r\n window(this);\r\n initializeBoard();\r\n swapPlayer();\r\n repaint();\r\n\r\n }",
"public Board() {\n this.actionField = new ActionField();\n this.buyField = new BuyField();\n }",
"public Board() {\n\t\tthis.table = new int[Constants.SIZE][Constants.SIZE];\n\t\tthis.P1Movable = new boolean[Constants.SIZE][Constants.SIZE];\n\t\tthis.P2Movable = new boolean[Constants.SIZE][Constants.SIZE];\n\t\tP1turn = true;\n\t\tnumPieces = 0;\n\t\t\n\t\tfor(int i=0; i<table.length; i++) {\n\t\t\tfor(int j=0; j<table[i].length; j++) {\n\t\t\t\ttable[i][j] = Constants.EMPTY;\n\t\t\t\tP1Movable[i][j] = true;\n\t\t\t\tP2Movable[i][j] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"private void initializeBoard() {\n\t\t\n\t}",
"public Game() {\n board = new TileState[BOARD_SIZE][BOARD_SIZE];\n for(int i=0; i<BOARD_SIZE; i++)\n for(int j=0; j<BOARD_SIZE; j++)\n board[i][j] = TileState.BLANK;\n movesPlayed = 0;\n playerOneTurn = true;\n gameOver = false;\n }",
"public Sudoku(int[][] board){\n setBoard(board);\n }",
"Board(Board model) {\r\n copy(model);\r\n }",
"public Board(int[][] tiles) {\n N = tiles.length; // Store dimension of passed tiles array\n this.tiles = new int[N][N]; // Instantiate instance grid of N x N size\n for (int i = 0; i < N; i++)\n this.tiles[i] = tiles[i].clone(); // Copy passed grid to instance grid\n }",
"public Board(String gameType) {\n propertyFactory = new TileFactory(gameType);\n createBoard();\n }",
"public OthelloBoard (int height, int width){\n super(height, width);\n m_Pieces = new OthelloPiece[WIDTH][HEIGHT];\n m_PieceCount+=4;\n \n }",
"public Board(ArrayList<Piece> pieces)\n {\n squares = new Square[Chess.ROWS][Chess.COLUMNS];\n setLayout(new GridLayout(Chess.ROWS,Chess.COLUMNS,0,0));\n firstSelected = null;\n mainBoard=true;\n turn = 0;\n fiftyMove = 0;\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n {\n squares[i][j] = new Square(i,j,this);\n for (Piece p: pieces)\n if (p.getOrigin().equals(new Location(i,j)))\n squares[i][j].setPiece(p);\n add(squares[i][j]);\n }\n positions = new ArrayList<>();\n positions.add(toString());\n }",
"public Board(int dimensions){\n this.dimensions = dimensions;\n createBoard(dimensions);\n this.status = Status.CREATED;\n this.hitsLeft = 15;\n }",
"public Board(String gameName) {\n\n super(gameName);\n \n gameBoard = this;\n squares = new Square[Chess.CHESS][Chess.CHESS];\n moveListener = new MoveListener(this);\n this.setLayout(new GridLayout(Chess.CHESS, Chess.CHESS));\n \n JMenuBar menuBar = new JMenuBar();\n setJMenuBar(menuBar);\n \n // Define and add menu items.\n JMenu fileMenu = new JMenu(\"File\");\n menuBar.add(fileMenu);\n \n // Add the same and load actions.\n JMenuItem saveAction = new JMenuItem(\"Save Game\");\n JMenuItem loadAction = new JMenuItem(\"Load Game\");\n fileMenu.add(saveAction);\n fileMenu.add(loadAction);\n \n initBoard();\n \n initMenu(gameBoard);\n \n setup();\n \n p1 = new Player(Color.RED, true);\n p2 = new Player(Color.BLACK, false);\n \n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.pack();\n this.centre();\n this.setVisible(true); \n }",
"public static void makeBoardChess() {\r\n \r\n white = new AllPiece(\"White\");\r\n black = new AllPiece(\"Black\");\r\n \r\n }",
"private void initializeBoard() {\n\n squares = new Square[8][8];\n\n // Sets the initial turn to the White Player\n turn = white;\n\n final int maxSquares = 8;\n for(int i = 0; i < maxSquares; i ++) {\n for (int j = 0; j < maxSquares; j ++) {\n\n Square square = new Square(j, i);\n Piece piece;\n Player player;\n\n if (i < 2) {\n player = black;\n } else {\n player = white;\n }\n\n if (i == 0 || i == 7) {\n switch(j) {\n case 3:\n piece = new Queen(player, square);\n break;\n case 4:\n piece = new King(player, square);\n break;\n case 2:\n case 5:\n piece = new Bishop(player, square);\n break;\n case 1:\n case 6:\n piece = new Knight(player, square);\n break;\n default:\n piece = new Rook(player, square);\n }\n square.setPiece(piece);\n } else if (i == 1 || i == 6) {\n piece = new Pawn(player, square);\n square.setPiece(piece);\n }\n squares[j][i] = square;\n }\n }\n }",
"public Board(C4.Canvas gameContext, String player1Colour, String player2Colour) {\r\n game = gameContext;\r\n players = new Player[2];\r\n players[0] = new Player(player1Colour);\r\n players[1] = new Player(player2Colour);\r\n boardArray = new Piece[7][7];\r\n for (int nx = 0; nx < 7; nx++) {\r\n for (int ny = 0; ny < 7; ny++) {\r\n boardArray[nx][ny] = new Piece();\r\n }\r\n }\r\n }",
"public Board(int[][] saved_grid, int turn, int moves)\n {\n current_board = new int[7][6];\n for (int i = 0; i < saved_grid.length; i++)\n current_board[i] = saved_grid[i].clone();\n player_turn = turn;\n total_moves = moves;\n }",
"public Game() {\n playerBlack = new Player(Player.BLACK);\n playerBlack.setIsTurn(true);\n playerWhite = new Player(Player.WHITE);\n playerWhite.setIsTurn(false);\n boardObject = new Board();\n\n // Set invalid parameters to start. This is used in move verification.\n potentialSuccessiveSlot = new Slot(Board.MAX_ROW, Board.MAX_COLUMN, 2);\n slotFrom = boardObject.getSlot(-1, -1);\n slotTo = boardObject.getSlot(-1, -1);\n\n // First click is always true in the starting game state.\n firstClick = true;\n\n successiveMove = false;\n turnColor = Slot.BLACK;\n\n rootValues = new ArrayList<>();\n plyCutoff = 0;\n minimaxMove = null;\n firstClickCompMove = true;\n alphaBetaEnable = false;\n }",
"public Board(int lines, int columns, List<String> board) {\r\n\t\tif (lines == 0 || lines % 2 != 0 || lines < 2 || lines > 98) {\r\n\t\t\tthrow new IllegalArgumentException(\"Error! Line length is invalid.\");\r\n\t\t} else if (columns == 0 || columns % 2 != 0 || columns < 2 || columns > 26) {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Error! Column length is invalid.\");\r\n\t\t} else if (board != null) {\r\n\r\n\t\t\tfor (String s : board) {\r\n\t\t\t\tif (!s.matches(\"[W,B,#,,-]+\")) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\t\t\"Error! Invalid board parameters.\");\r\n\t\t\t\t} else if (s.length() != columns) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\t\t\"Error! Board columns not equal to columns.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (board.size() != lines) {\r\n\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\t\"Error! Board lines not equal to lines.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.playBoard = new char[lines][columns];\r\n\t\tthis.possibleMoves = new ArrayList<PossibleMove>();\r\n\r\n\t\tif (board == null) {\r\n\t\t\tthis.init();\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < playBoard.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < playBoard[0].length; j++) {\r\n\t\t\t\t\tplayBoard[i][j] = board.get(i).charAt(j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Board(int[][] grid, Tetrimino piece) {\n //initComponents();\n this.grid = grid;\n this.piece = piece;\n setLayout(new GridLayout(grid.length-4, grid[0].length));\n init();\n }",
"public Chess() {\n\t\t// TODO Auto-generated constructor stub\n\t\tchessBoard = new int[BOARD_LENGTH][BOARD_LENGTH];\n\t\tpieces = new AbstractPiece[BOARD_NUM_PIECES];\n\t\toldPosition = new Point();\n\t\tokToMove = false;\n\t\tpieceCounter = 0;\n\t\tpieceChosen = 0;\n\t\tnumClicks = 0; \n\t}",
"public ChessBoard(ChessBoard copy) {\r\n\t\tthis.board = new Piece[SIZE][SIZE];\r\n\t\tcopyBoard(copy.getBoard());\r\n\t\tthis.currentTurn = new Player(copy.currentTurn);\r\n\t\tthis.blackPlayer = new Player(copy.blackPlayer);\r\n\t\tthis.whitePlayer = new Player(copy.whitePlayer);\r\n\t}",
"public GameState(Cell[][] board, int difficulty, int mines) {\n\t\tthis.board = board;\n\t\tthis.dimensions = board.length;\n\t\tthis.difficulty = difficulty;\n\t\tthis.mines = mines;\n\t}",
"public BitBoardImpl() {\n\tinitialPosition();\n }",
"public Board(Map<Integer, Space> spaces)\r\n\t{\r\n\t\t_spaces = spaces;\r\n\t}",
"public BoardCandidate(Connect4Cell[][] board, int column, CellStatus player){\n //Deep copy of the board.\n this.board = new Connect4Cell[6][];\n for(int x=0;x<6;x++){\n this.board[x]=new Connect4Cell[7];\n for(int y=0;y<7;y++){\n this.board[x][y]=new Connect4Cell(null,x,board[x][y].getCellStatus());\n if(board[x][y].isPlayed()){\n this.board[x][y].setCellStatusPlayed(board[x][y].getCellStatus());\n } \n }\n } \n\n this.column=column;\n this.player=player;\n \n //simulates the play\n play(column);\n \n //calculates the grade of the current state of the board\n this.grade = this.getStatusGrade(player);\n }",
"public Board() {\n tiles = new int[3][3];\n int[] values = genValues(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 0});\n\n int offset;\n for (int i = 0; i < 3; i++) {\n offset = 2 * i;\n tiles[i] = Arrays.copyOfRange(values, i + offset, i + offset + 3);\n }\n }",
"public Board() {\n\t\tthis.myBoard = new BlockFor2048[4][4];\n\t\tint randomInserted = 0;\n\t\tint colInd = 0;\n\t\tint rowInd = 0;\n\t\twhile (randomInserted != 2){\n\t\t\tcolInd = (int)(Math.random() * 4);\n\t\t\trowInd = (int)(Math.random() * 4);\n\t\t\tif (this.myBoard[colInd][rowInd] == null){\n\t\t\t\tthis.myBoard[colInd][rowInd] = new BlockFor2048(2);\n\t\t\t\trandomInserted++;\n\t\t\t}\n\t\t}\t\t\n\t\tthis.ScoreValue = 0;\n\t}",
"public Board() {\n\n for(int row = 0; row < size; row++) {\n for(int col = 0; col < size; col++) {\n\n grid[row][col] = \"-\";\n\n }\n }\n\n }",
"public Board(int[][] tiles) {\n _N = tiles.length;\n _tiles = new int[_N][_N];\n _goal = new int[_N][_N];\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n _tiles[i][j] = tiles[i][j];\n _goal[i][j] = 1 + j + i * _N;\n }\n }\n _goal[_N-1][_N-1] = 0;\n }",
"public void initBoard() {\n board = new Board();\n\n // initilaisation des groupes\n Group violet = new Group();\n Group bleu = new Group();\n Group orange = new Group();\n Group vert = new Group();\n Group rouge = new Group();\n Group jaune = new Group();\n Group rose = new Group();\n Group marine = new Group();\n Group gare = new Group();\n Group compagnie = new Group();\n\n // ajout des cases\n board.addCaseBoard(new StartCase());\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd Belleville\", 60, 2, 10,30, 90, 160,250, 30,violet, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de caumunauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue lecourbe\", 60, 4,20,60,180,320,450, 30,violet, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Taxes\"));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare Monparnasse\", 200, 2, 100,gare));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de Vaugirard\", 100, 6,30,90,270,400,550, 50, bleu, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Chance\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de Courcelles\", 100, 6,30,90,270,400,550, 50, bleu, 50));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de la Republique\", 120, 8,40,100,300,450,600, 60, bleu, 50));\n board.addCaseBoard(new CaseBoardImpl(\"Prison\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd de la villette\", 140, 10,50,150,450,625,750, 70, orange, 100));\n board.addCaseBoard(new BuyableCaseImpl(\"Compagnie de distribution d'electricité\",150, 0, 75, compagnie));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de Neuilly\", 140, 10,50,150,450,625,750, 70, orange, 100));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de Paradis\", 160, 12,60,180,500,700,900, 80, orange, 100));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare de Lyon\", 200, 2, 100,gare));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de Mozart\", 180, 14,70,200,550,700,900, 90, vert, 100));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de Communauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd Saint Michel\", 180, 14,70,200,550,700,900, 90, vert, 100));\n board.addCaseBoard(new BuildingCaseImpl(\"Place Pigalle\", 200, 16,80,220,600,800,950, 100, vert, 100));\n board.addCaseBoard(new CaseBoardImpl(\"Park Gratuit\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Av Matignon\", 220, 18,90,250,700,875,1050, 110, rouge, 150));\n board.addCaseBoard(new CaseBoardImpl(\"Chance\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd MalesHerbes\", 220, 18,90,250,700,875,1050, 110, rouge, 150));\n board.addCaseBoard(new BuildingCaseImpl(\"Av Henri-Martin\", 240, 20,100,300,750,925,1100, 120, rouge, 150));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare du Nord\", 200, 2, 100,gare));\n board.addCaseBoard(new BuildingCaseImpl(\"Fb Saint Honoré\", 260, 22,110,330,800,975,1150, 130, jaune, 150));\n board.addCaseBoard(new BuildingCaseImpl(\"Place de la Bourse\", 260, 22,110,330,800,975,1150, 130, jaune, 150));\n board.addCaseBoard(new BuyableCaseImpl(\"Compagnie de distribution des eaux\",150, 0, 75, compagnie));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue lafayette\", 280, 24,120,360,850,1025,1200, 140, jaune, 150));\n board.addCaseBoard(new CaseBoardImpl(\"Aller en Prison\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Av de Breteuil\", 300, 26,130,390,900,1100,1275, 150, rose, 200));\n board.addCaseBoard(new BuildingCaseImpl(\"Av Foch\", 300, 26,130,390,900,1100,1275, 150, rose, 200));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de Communauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Bvd des Capucines\", 320, 28,150,450,1000,1200,1400, 160, rose, 200));\n board.addCaseBoard(new BuyableCaseImpl(\"Gare Saint-Lazarre\", 200, 2, 100,gare));\n board.addCaseBoard(new CaseBoardImpl(\"Chance\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Av des Champs Elysées\", 350, 35,175,500,1100,1300,1500, 175, marine, 200));\n board.addCaseBoard(new CaseBoardImpl(\"Caisse de Communauté\"));\n board.addCaseBoard(new BuildingCaseImpl(\"Rue de la Paix\", 400, 50,200,600,1400,1700,2000, 200, marine, 200));\n }",
"GameState(GameState b) {\n //System.out.println( \"Just Copied GameState\\n\" + b.toString() +\"\\n\");\n board = new int[SIZE][];\n for (int i = 0; i < SIZE; i++) {\n this.board[i] = b.board[i].clone();\n }\n this.blankRow = b.blankRow;\n this.blankCol = b.blankCol;\n\n this.prevMoves = b.prevMoves;\n this.rank = setRank();\n }",
"void init() {\r\n\r\n map = new HashMap<Square, Piece>();\r\n for (Square sq: INITIAL_ATTACKERS) {\r\n map.put(sq, BLACK);\r\n }\r\n for (Square sq: INITIAL_DEFENDERS) {\r\n map.put(sq, WHITE);\r\n }\r\n king = sq(4, 4);\r\n map.put(king, KING);\r\n for (int i = 0; i <= 8; i++) {\r\n for (int j = 0; j <= 8; j++) {\r\n if (!map.containsKey(sq(i, j))) {\r\n map.put(sq(i, j), EMPTY);\r\n }\r\n }\r\n }\r\n\r\n board = new Piece[9][9];\r\n\r\n for (Square keys : map.keySet()) {\r\n board[keys.col()][keys.row()] = map.get(keys);\r\n }\r\n }",
"public TicTacToe(){ \r\n\t\tboard = new char[3][3];\r\n\t}",
"public void newBoard(LiteBoard board) {\n }",
"public Board() {\n\t\tfor(int i = 0; i < board.length; i++){\n\t\t\tfor(int j = 0; j < board[i].length; j++){\n\t\t\t\tboard[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}",
"private Board()\r\n {\r\n this.grid = new Box[Config.GRID_SIZE][Config.GRID_SIZE];\r\n \r\n for(int i = 0; i < Config.NB_WALLS; i++)\r\n {\r\n this.initBoxes(Wall.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_CHAIR; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n \r\n for(int i = 0; i < Config.NB_PLAYER; i++)\r\n {\r\n this.initBoxes(Chair.ID);\r\n }\r\n }",
"public Board() {\n\n\n\t\tfruits = new ArrayList<>();\n\n\t\tscore = fruitsEaten = 0;\n\t\tsnake = new Snake();\n\t\trand = new Random();\n\t\thead = snake.getHead();\n\t\tstate = GameState.Started;\n\n\n\t\t\n\t}"
] | [
"0.78297293",
"0.7798302",
"0.7793751",
"0.7776626",
"0.77089703",
"0.7681368",
"0.76437473",
"0.7575837",
"0.7527504",
"0.7514282",
"0.7506632",
"0.7489906",
"0.7480639",
"0.7472544",
"0.7469792",
"0.74689925",
"0.7435688",
"0.7393836",
"0.7387196",
"0.7381956",
"0.73662543",
"0.73278743",
"0.73243976",
"0.7318032",
"0.73096126",
"0.730513",
"0.7296363",
"0.72933614",
"0.72927094",
"0.7286143",
"0.72808534",
"0.72654897",
"0.725018",
"0.7230894",
"0.7226174",
"0.72075486",
"0.7150683",
"0.7149337",
"0.7141433",
"0.7118188",
"0.7091892",
"0.7089725",
"0.70858735",
"0.70844454",
"0.7069743",
"0.705227",
"0.7051966",
"0.7050221",
"0.7044481",
"0.70380414",
"0.7030369",
"0.70237327",
"0.701712",
"0.7014659",
"0.7002661",
"0.6995823",
"0.6995059",
"0.6994863",
"0.6989865",
"0.69825464",
"0.69730276",
"0.6952723",
"0.69498056",
"0.6938673",
"0.69301635",
"0.69167215",
"0.6914817",
"0.69100684",
"0.6905904",
"0.69016737",
"0.68980134",
"0.6885771",
"0.68825334",
"0.68440455",
"0.68335485",
"0.68326545",
"0.6826059",
"0.68146193",
"0.6813818",
"0.6807471",
"0.6803538",
"0.68014014",
"0.6798904",
"0.679428",
"0.6788021",
"0.6785092",
"0.6782676",
"0.67732006",
"0.6765725",
"0.6762079",
"0.6754533",
"0.67501336",
"0.67427254",
"0.6732855",
"0.6714588",
"0.67133176",
"0.67118174",
"0.67111534",
"0.67105883",
"0.66998804"
] | 0.7314828 | 24 |
YOUR CODE GOES HERE: ADD A SETTTER METHOD FOR THE INSTANCE VARIABLE THAT STORES THE GAME SYMBOL ASSIGNED TO THE COMPUTER PLAYER | public void setCPUmark(String CPUmark)
{
CPUmark = "o";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Symbol getCurrentPlayerSymbol();",
"public char getSymbol() {\n switch (player) {\n case 0:\n return 'O';\n case 1:\n return 'X';\n default:\n return '+';\n }\n }",
"Symbol getActiveCard();",
"private String symbol() {\n switch (this.suit) {\n case 1:\n return \"♣\";\n case 2:\n return \"♦\";\n case 3:\n return \"♥\";\n case 4:\n return \"♠\";\n default:\n throw new IllegalArgumentException(\"Invalid Suit\");\n }\n }",
"char getSymbol();",
"protected char getSymbol(){\r\n\t\treturn this.symbol;\r\n\t}",
"public void newGame() {\n gameString = playerPlays = computerPlays = \"\";\n pScore = cScore = 0;\n setLabels();\n }",
"private char playSingleGame() {\n this.resetGame();\n System.out.println(\"\\n---------- NEW GAME ----------\\n\");\n System.out.println(this);\n int turn = (int) (2 * Math.random());\n char res;\n do {\n Move move = this.players[turn].pickMove();\n if (move == null) {\n return 'Q';\n }\n this.executeMove(move, this.players[turn].getSymbol());\n System.out.println(this);\n if (turn == 0) { // changes turns from one player to the other\n turn = 1;\n } else turn = 0;\n res = this.getGameStatus();\n switch (res) {\n case 'O':\n res = 'C';\n break;\n case 'X':\n res = 'H';\n }\n } while (res == '?');\n return res;\n }",
"long getSymbol();",
"public String getSymbol(){\n return this.symbol;\n }",
"public abstract String getSymbol();",
"String getPlayer();",
"void playCurrentStationCard();",
"private void playGame(Board game, Symbols symbol) {\n\n Display board = new Display(); \n Position pos = new Position();\n\n board.setGrid(symbol); \n board.displayGrid();\n\n char turn = Symbols.X.getValue();\n boolean gameOver = false; \n\n while (gameOver != true) {\n game.playerTurn(turn);\n symbol = game.symbolTurn(turn, symbol);\n System.out.println(\" \" + \"(\" + symbol + \")\");\n board.promptInput(game, board, symbol, pos);\n board.executeMove(pos, symbol); \n board.displayGrid(); \n if(game.gameFinished(board, game, turn) == true) {\n gameOver = true; \n }\n\n turn = game.switchTurn(turn); \n }\n }",
"GameCode getGameCode(String gameCode);",
"public interface Constants {\n /*Title of game*/\n String EUKER = \"Euker\";\n\n int FRAME_PADDING = 25;\n\n /*Size of mainFrame*/\n int WIDTH_FRAME = FRAME_PADDING;\n int HEIGHT_FRAME = (FRAME_PADDING * 5);\n\n /*Size of GamePlayChoice*/\n int WIDTH_GAME_PLAY = 100;\n int HEIGHT_GAME_PLAY = 200;\n\n\n /*StatusPanel*/\n String STATUS_PANEL = \"Status Panel\";\n String WINNER = \"Winner: \";\n String CURRENT_TURN = \"Current Turn: \";\n\n /*Button labels for game play popup*/\n String TWO_PLAYER_BUTTON = \"2 H\";\n String FOUR_PLAYER_BUTTON = \"4 H\";\n String THREE_PLAYER_PC_BUTTON = \"3 H 1 PC\";\n String TWO_PLAYER_PC_BUTTON = \"2 H 2 PC\";\n String ONE_PLAYER_PC_BUTTON = \"1 H 3 PC\";\n\n /*Suits*/\n String CLUBS = \"CLUBS\";\n String HEARTS = \"HEARTS\";\n String SPADES = \"SPADES\";\n String DIAMONDS = \"DIAMONDS\";\n\n /*Values of cards*/\n String ACE = \"ACE\";\n String KING = \"KING\";\n String QUEEN = \"QUEEN\";\n String JACK = \"JACK\";\n String TEN = \"TEN\";\n String NINE = \"NINE\";\n String EIGHT = \"EIGHT\";\n String SEVEN = \"SEVEN\";\n String SIX = \"SIX\";\n String FIVE = \"FIVE\";\n String FOUR = \"FOUR\";\n String THREE = \"THREE\";\n String TWO = \"TWO\";\n\n /**Number of iterations to shuffle a deck of cards.*/\n int SHUFFLE_ITERATIONS = 100;\n\n /**Maximum number of cards a player can have at any given time.\n * 5 for normal hand, 6 if you are the dealer.*/\n int MAX_PLAYER_CARD_COUNT = 6;\n\n /**Number of cards in a euker deck.*/\n int EUKER_CARD_COUNT = 24;\n\n /*Orientation of each player.*/\n String LEFT = \"LEFT\";\n String RIGHT = \"RIGHT\";\n String TOP = \"TOP\";\n String BOTTOM = \"BOTTOM\";\n}",
"String getNewPlayerName();",
"String getSymbol();",
"public String callPlayer() {\n\t\treturn \"OVER HERE!!\";\n\t}",
"public static void getBattleChoice() {\n \t\tMainGame.display.disp(\"What do you want to do?:\");\r\n \t\tMainGame.display.Enable(MainGame.display.attack, MainGame.display.defend, MainGame.display.heal);\r\n \t}",
"public String getActiveGame() {\n return myActiveGame;\n }",
"public static String randSym(){\n int n = rand.nextInt(rand.nextInt(83 - 52 + 1) + 52);\n return String.valueOf(KEYBOARD.charAt(n));\n }",
"void createGameCode(GameCode gameCode);",
"public void newGame (){\r\n\t\tcounter = 1;\r\n\t\tcode = \"\";\r\n\t\tscore = 0;\r\n\t\tcodeguess = \"\";\r\n\t\tSystem.out.println(\"counter = \" + counter);\r\n\t\tdelay (1000);\r\n\t\tlevelup.play();\r\n\t\tdelay (1000);\r\n\t\tdisplay = true;\r\n\t\tgenerateCode(10);\r\n\t}",
"public Symbol getWinner();",
"public static void setUserChoice(String playerSymbol, int playerSquare){\r\n\t\t\r\n\t\t//which symbol to put on board\r\n\t\tswitch(playerSquare){\r\n\t\t\tcase 1: userSymbol1 = playerSymbol; break;\t\t\r\n\t\t\tcase 2: userSymbol2 = playerSymbol; break;\r\n\t\t\tcase 3: userSymbol3 = playerSymbol; break;\r\n\t\t\tcase 4: userSymbol4 = playerSymbol; break;\r\n\t\t\tcase 5: userSymbol5 = playerSymbol; break;\r\n\t\t\tcase 6: userSymbol6 = playerSymbol; break;\r\n\t\t\tcase 7: userSymbol7 = playerSymbol; break;\r\n\t\t\tcase 8: userSymbol8 = playerSymbol; break;\r\n\t\t\tcase 9: userSymbol9 = playerSymbol; break;\r\n\t\t}\r\n\t\tTicTacToeHelper.playerSymbolCount++;\t\t\t\t//tells playSymbol() method which symbol to use\r\n\t\t\r\n\t}",
"public static void WorkAtCompany(Player gamer){\r\n gamer.zen = gamer.zen-30;\r\n gamer.money = gamer.money+10;\r\n gamer.turn = gamer.turn+1; \r\n }",
"public char getSymbol() {\n return symbol;\n }",
"public String getTentSymbol(){ return tentSymbol;}",
"public String getSymbol() {\n return this.symbol ;\n }",
"public String advanceGame(){\n return (isAdvantage()) ? \"Advantage \" + getPlayerName() : \"Win for \" + getPlayerName();\n }",
"Game getGameByShortcode(String shortCode);",
"public void newGameRPS() {\n newGame();\n myctr.setLabels();\n }",
"public abstract char play(PlacedBet placedBet, HashMap<Character, Payout> payoutMap, char selected);",
"public void setCurrentPlayerSymbol(Symbol symbol) throws IllegalArgumentException;",
"public void storePlay(int row, int col, char symbol){\n this.gameBoard[row][col] = symbol;\n }",
"public String showGameKey() {\r\n \t\r\n \treturn \"no key defined\";\r\n \t\r\n }",
"java.lang.String getGameName();",
"java.lang.String getGameName();",
"public String toString(){\n return String.valueOf(symbol);\n }",
"public String getSymbol() {\n }",
"@Override\n public String getSymbol() {\n return SYMBOL;\n }",
"public String getSymbol( )\n {\n return symbol;\n }",
"private String symbol(Cardtype c) {\n if (c == Cardtype.HEARTS) {\n return \"\\u2665\";\n } else if (c == Cardtype.DIAMONDS) {\n return \"\\u2666\";\n } else if (c == Cardtype.SPADES) {\n return \"\\u2660\";\n } else if (c == Cardtype.CLUBS) {\n return \"\\u2663\";\n } else {\n return \"\";\n }\n }",
"private static void showPlayerDeckInfo() {\n }",
"public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}",
"public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}",
"private String getPlayerName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String storedName = preferences.getString(\"playerName\",\"none\");\n return storedName;\n }",
"public String getGameString(){\n\treturn printString;\n }",
"public String getSymbol() {\n return symbol;\n }",
"public Character getPromptSymbol();",
"@Override\r\n\t\tpublic void setPromptSymbol(Character symbol) {\n\r\n\t\t}",
"public static void main(String[] args)\n {\n System.out.println(\"Programmer: Clayton Wasenius\");\n System.out.println(\"Java Programming: CS A170-37286\"); \n System.out.println(); \n System.out.println(\"Extra Credit: Gaming 1 Player \"); \n System.out.println(\"May 15th, 2020\");\n System.out.println(\"****************************************\");\n \n final char PLAYER_SYMBOL = 'O'; \n final char COMPUTER_SYMBOL = 'X';\n \n \n final int WIDTH = 3;\n final int HEIGHT = 3;\n \n LetterTracker letter = new LetterTracker(); //introduces the object letter which is an instance of the class LetterTraacker \n \n \n //part 2 \n char[][] ticTacToe = new char[WIDTH][HEIGHT]; \n \n ticTacToe = initializeBoard(ticTacToe); \n \n int letters = 0; //this still has to be initialized, even though we are getting help from \n //another object \n \n printBoard(ticTacToe);\n //part 1 \n int tempTracker = 0; \n System.out.println(\"Welcome to Tic-Tac-Toe!\"); \n \n \n if(askUser()){ //who goes first, true if the user goes first, false if the computer goes first\n \n ticTacToe = ticTacToeBoardPlayer(ticTacToe, PLAYER_SYMBOL); //player's turn\n printBoard(ticTacToe);\n letters = letter.setValueOfLetterTo(1); \n //System.out.println(letters); this is for error checking, seeing if we are counting the letters\n //properly \n tempTracker++; \n }\n else{\n ticTacToe = ticTacToeBoardComputerAlgo(ticTacToe, letters, COMPUTER_SYMBOL, PLAYER_SYMBOL); //computers turn\n letters = letter.setValueOfLetterTo(1);\n //System.out.println(letters); //same goes for here \n printBoard(ticTacToe);\n }\n \n \n \n //this is going to track how many letters there are on the board \n \n \n while((winYet(ticTacToe, COMPUTER_SYMBOL, PLAYER_SYMBOL)) == 0){ //while if won returns false, which !false == true, thus the while look will continue \n //players turn\n if(tempTracker == 0){ //this is only zero at the start if the computer went first\n ticTacToe = ticTacToeBoardPlayer(ticTacToe, PLAYER_SYMBOL); //player's turn\n letters = letter.setValueOfLetterTo(1);\n System.out.println(letters); \n printBoard(ticTacToe); //print the board once the player has made their selection \n tempTracker++; //up to one\n }\n //check to see if anyone won \n if(winYet(ticTacToe, COMPUTER_SYMBOL, PLAYER_SYMBOL) == -1) { //check if someone won\n System.out.printf(\"You lost... :(\"); \n break; \n } else if(winYet(ticTacToe, COMPUTER_SYMBOL, PLAYER_SYMBOL) == 1){\n System.out.printf(\"You won!...\");\n break; \n }\n //check to see if there was a draw \n if(letters == 9 && winYet(ticTacToe, COMPUTER_SYMBOL, PLAYER_SYMBOL) == 0){ //someone could win on the last turn\n System.out.println(\"It's a Draw! Better luck next time!\"); \n break; \n }\n \n System.out.println(\"Computers Turn!\");\n //compluters turn \n if(tempTracker == 1){\n \n \n ticTacToe = ticTacToeBoardComputerAlgo(ticTacToe, letters, COMPUTER_SYMBOL, PLAYER_SYMBOL); //computers turn\n letters = letter.setValueOfLetterTo(1); //increment letters \n System.out.println(letters); \n \n System.out.println(\"Computer has made it's turn.\");\n printBoard(ticTacToe); \n tempTracker--; //back to zero\n }\n \n //check to see if anyone won \n if(winYet(ticTacToe, COMPUTER_SYMBOL, PLAYER_SYMBOL) == -1) { //check if someone won\n System.out.printf(\"Final Board%n...You lost... :( %n\"); \n \n \n break; \n } \n if(winYet(ticTacToe, COMPUTER_SYMBOL, PLAYER_SYMBOL) == 1){\n System.out.printf(\"Final Board%n...You won!...\");\n \n break; \n }\n \n //check to see if there's a draw\n if(letters == 9 && winYet(ticTacToe, COMPUTER_SYMBOL, PLAYER_SYMBOL) == 0){\n System.out.println(\"It's a Draw! Better luck next time!\"); \n break; \n }\n \n \n }\n System.out.println(\"End of Game\"); \n }",
"public char getPlayer() {\n return player;\n }",
"public static void NewChar(){\n\t\tSystem.out.println(\"\\\"What is the name of the powerful soul who wishes to brave the Depths alone?\\\"\");\n\t\tScanner sc = new Scanner(System.in);\n\t\tString Name = sc.nextLine();\n\t\tSystem.out.println(\"\\\"\" + Name + \"? Such an odd name, I cannot tell if this is bravery or foolishness...\\\"\");\n\t\tSystem.out.println(\"\\\"So tell me, \" + Name + \", what do your stats look like?\\\"\");\n\t\tboolean key = true; //To allow the player to re-enter stats if he/she messes up in choosing them.\n\t\twhile (key){\n\t\t\tkey = false;\n\t\t\ttstr = statChoice(\"strength\"); //The string in this method is used as text to let the player in on what stat they are choosing. The method automatically lowers the statPoints.\n\t\t\ttmag = statChoice(\"magic power\");\n\t\t\ttluc = statChoice(\"luck\");\n\t\t\ttacc = statChoice(\"accuracy\");\n\t\t\ttdef = statChoice(\"defense\");\n\t\t\ttspe = statChoice(\"speed\");\n\t\t\ttHP = ((statChoice(\"Health Points\") * 10) + 10); //HP and MP are multiplied by ten, and HP auto starts at 10 so the player doesn't automatically die when they start the game.\n\t\t\ttMP = (statChoice(\"Mystic Energy\") * 10);\n\t\t\ttstatSheet(); //This method just prints out the player's current stats.\n\t\t\tSystem.out.println(\"Are you okay with these stats?(Note - You cannot change them later)\");\n\t\t\tString statConfermation = sc.nextLine();\n\t\t\tif(statConfermation.equalsIgnoreCase(\"yes\")||statConfermation.equalsIgnoreCase(\"ye\")||statConfermation.equalsIgnoreCase(\"y\")){\n\t\t\t\tPlayer player = new Player(Name, tstr, tmag, tluc, tacc, tdef, tspe, tHP, tMP); //This is cementing the stats in the Player class\n\t\t\t\tArrays.fill(player.items, \"\");\n\t\t\t\tArrays.fill(player.spell, \"\");\n\t\t\t\tplayer.statSheet();\n\t\t\t\tChooseGift(player);\n\t\t\t\tSystem.out.println(\"\\\"It appears you have chosen your gift.\\nI believe you have all you need, \" + player.name + \", I hope you are ready for the depths!\\nGood luck.\\\"\");\n\t\t\t\tDepthsIntro.Enter(player);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tReset(); //this method just resets the game for the process to go through again.\n\t\t\t\tkey = true;\n\t\t\t}\n\t\t}\n\t\t}",
"public void createStartingPlayers(CFrame frame) {\r\n\t\tSet<String> passableActions = new HashSet<String>();\r\n\t\tint playerNumber = Integer.parseInt(frame.getSidePanel().getButtons().getButton(\"start\", null));\r\n\t\tString name =\"\", charr;\r\n\t\tMap<String, String> pc = new HashMap<String, String>();\r\n\t\t\r\n\t\tframe.getSidePanel().getText().setText(\"Please select a character\\nand enter your name\\n\");\r\n\t\tfor(int i =0;i<playerNumber;i++){\r\n\t\t\tString test = frame.getSidePanel().getButtons().getButton(\"characterSelect\", passableActions);\r\n\r\n\t\t\tString Playercharacter[] = test.split(\",\");\r\n\t\t\tname= Playercharacter[0];\r\n\t\t\tcharr= Playercharacter[1];\r\n\t\t\tpassableActions.add(charr);\r\n\t\t\t\r\n\t\t\tpc.put(charr, name);\r\n\r\n\t\t\tSystem.out.println(\"Output: \" + name+\" : \"+charr);\r\n\t\t}\r\n\t\t\r\n\t\tfor(BoardObject object: boardObjects){\r\n\t\t\tSystem.out.println(object.getName() +\" \"+passableActions);\r\n\t\t\tif(object instanceof Character && passableActions.contains(object.getName())){\r\n\t\t\t\tSystem.out.println(object.getName());\r\n\t\t\t\t((Character) object).setAsPlayer(true);\r\n\t\t\t\t((Character) object).setPlayerName(pc.get(object.getName()));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tdeck.deal(players(), players().size());\r\n\r\n\t\t//Testing allocation\r\n\t\tfor(Character c: players())\r\n\t\t\tSystem.out.println(c.getName() + \": \" + c.playerName());\r\n\t}",
"public char getSymbol() {\n\t\treturn this.symbol;\n\t}",
"@Override\n\tpublic void onLookUp(PlatformPlayer player) {\n\t\t\n\t}",
"public GamePiece() //constructor\r\n {\r\n type=\"?\"; //initializes type to ?\r\n symbol='?'; //initializes symbol to ?\r\n }",
"String getBbgSymbol();",
"public String getPlayerName() {\n/* 100 */ return this.scorePlayerName;\n/* */ }",
"public String getSymbol() {\n return symbol;\n }",
"public String getGameKey() {\n return gameKey;\n }",
"Player getCurrentPlayer();",
"Player getCurrentPlayer();",
"@Override\r\n\tpublic void playSoldierCard() {\n\t\t\r\n\t}",
"public void presentPlayer( CoinFlipper theHandle, String theName );",
"private GUIGameInfo() {\n this.board = new GUIBoard();\n this.logic = new regLogic();\n this.players = new Player[2];\n this.players[0] = new Player(Symbol.BLACK);\n this.players[1] = new Player(Symbol.WHITE);\n this.guiPlayers = new GUIPlayer[2];\n this.guiPlayers[0] = new GUIPlayer(this.players[0]);\n this.guiPlayers[1] = new GUIPlayer(this.players[1]);\n\n }",
"String randomPlayer1GetName(){\n return randomPlayer1;\n }",
"public String getSymbol() {\n\t\treturn symbol;\n\t}",
"String player2GetName(){\n return player2;\n }",
"public static String symbol() {\n return \"ALT\";\n }",
"@Override\n public String getCurrentPlayer() {\n return godPower.getCurrentPlayer();\n }",
"private void ReplacePlayer()\n {\n String oldPlayer = GetPlayerString(mTeamsComboBox.getSelectedItem().toString(),\n mPositionComboBox.getSelectedItem().toString());\n if( oldPlayer == null )\n return;\n\n String newPlayer = GetPlayerString_UI();\n String team = mTeamsComboBox.getModel().getElementAt(mTeamsComboBox.getSelectedIndex()).toString();\n ReplacePlayer(team, oldPlayer, newPlayer);\n }",
"public void setGame() {\n }",
"String getPlayerName();",
"public static void set_players(){\n\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\tbat1=PlayBrain1.myteam[0];\n\t\t\tbat2=PlayBrain1.myteam[1];\n\t\t\tStriker=bat1;\n\t\t\tNonStriker=bat2;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tbat1=PlayBrain1.oppteam[0];\n\t\t\t\tbat2=PlayBrain1.oppteam[1];\n\t\t\t\tStriker=bat1;\n\t\t\t\tNonStriker=bat2;\n\n\t\t\t\t}\n\t}",
"private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}",
"public void setPromptSymbol(Character symbol);",
"@Override\n protected void init() {\n ChanceCard card = new ChanceCard(\"Advance to Freas Hall (Collect $200)\", 0, 0, 0, \"none\", Card.CardType.MOVE_TO);\n deck.add(card);\n card = new ChanceCard(\"Go back 3 spaces\", 0, -3, 0, \"none\", Card.CardType.MOVE);\n deck.add(card);\n card = new ChanceCard(\"You got hungry at 2am in the morning and decided to buy Dominos. Pay $15\", -15, 0, 0, \"none\", Card.CardType.BANK_TRANSACTION);\n deck.add(card);\n card = new ChanceCard(\"You have won a crossword competition- Collect $100\", 100, 0, 0, \"none\", Card.CardType.BANK_TRANSACTION);\n deck.add(card);\n card = new ChanceCard(\"Make general repairs on all your property-For each house pay $25-For each hotel $100\", 0, 0, 0, \"none\", Card.CardType.STREET_REPAIRS);\n deck.add(card);\n card = new ChanceCard(\"Advance to Dana- If you pass Freas Hall, collect $200\", 0, 0, 24, \"none\", Card.CardType.MOVE_TO);\n deck.add(card);\n card = new ChanceCard(\"Advance to Larison- If you pass Freas Hall, collect $200\", 0, 0, 11, \"none\", Card.CardType.MOVE_TO);\n deck.add(card);\n card = new ChanceCard(\"You forget to do your project and are bailed out by your classmates. Pay each player $50\", 50, 0, 24, \"none\", Card.CardType.PLAYER_TRANSACTION);\n deck.add(card);\n card = new ChanceCard(\"You got first selection in the housing lottery. Advance to the Senior Apartments.\", 0, 0, 39, \"none\", Card.CardType.MOVE_TO);\n deck.add(card);\n card = new ChanceCard(\"Housing ran out of dorms to put you. Advance to Vedder. - If you pass Freas Hall, collect $200\", 0, 0, 1, \"none\", Card.CardType.MOVE_TO);\n deck.add(card);\n card = new ChanceCard(\"You got caught drinking in your dorm by P-Safe. Pay fee of $50\", -50, 0, 24, \"none\", Card.CardType.BANK_TRANSACTION);\n deck.add(card);\n card = new ChanceCard(\"You left your car on Moore Ave overnight and got a ticket. Pay fee of $20\", -20, 0, 24, \"none\", Card.CardType.BANK_TRANSACTION);\n deck.add(card);\n card = new ChanceCard(\"You got caught swiping someone else into the caf. Pay fee of $15\", -15, 0, 24, \"none\", Card.CardType.BANK_TRANSACTION);\n deck.add(card);\n card = new ChanceCard(\"Your mom sent you a care package. Advance 2 spaces.\", 0, 2, 24, \"none\", Card.CardType.MOVE);\n deck.add(card);\n card = new ChanceCard(\"Facilities found mold in your air conditioning unit. Pay fee of $30\", -30, 0, 24, \"none\", Card.CardType.BANK_TRANSACTION);\n deck.add(card);\n card = new ChanceCard(\"You got the internship you applied for! Collect $200.\", 200, 0, 24, \"none\", Card.CardType.BANK_TRANSACTION);\n deck.add(card);\n\n shuffle();\n }",
"private char getSymbolCharacter(String key, String numsys) {\n return getSymbolString(key, numsys).charAt(0);\n }",
"public String getSymbol() {\n return symbol.get();\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n //System.out.print(\"Enter cells: \");\n char[][] symbols = new char[3][3];\n // Ввод данных в игру (для промежуточных этапов)\n /*\n String s = scanner.nextLine();\n int k = 0;\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++, k++) {\n symbols[i][j] = s.charAt(k) == '_' ? ' ' : s.charAt(k);\n }\n }\n */\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n symbols[i][j] = ' ';\n }\n }\n output(symbols);\n int a;\n int b;\n int player = 0;\n do {\n do {\n a = move();\n b = a / 10 - 1;\n a = 4 - a % 10 - 1;\n if (symbols[a][b] == 'X' || symbols[a][b] == 'O') {\n System.out.println(\"This cell is occupied! Choose another one!\");\n }\n } while (symbols[a][b] == 'X' || symbols[a][b] == 'O');\n if (player % 2 == 0) {\n symbols[a][b] = 'X';\n } else {\n symbols[a][b] = 'O';\n }\n player++;\n output(symbols);\n } while (endOfGame(symbols).equals(\"Game not finished\"));\n System.out.println(endOfGame(symbols));\n }",
"public Symbol getSymbol() {\r\n\t\treturn symbol;\r\n\t}",
"private void playGame() {\n \twhile (guessesLeft > 0) {\n \t\twhile (true) {\n \t\t\tstr = readLine(\"Your guess: \");\n \t\t\tif (str.length() != 1) {\n \t\t\t\tprintln(\"You can only enter one symbol!\");\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tboolean bl = false;\n \t\t\t\n \t\t\t// Change string and char to uppercase\n \t\t\tstr = str.toUpperCase();\n \t\t\tchar ch = str.charAt(0);\n \t\t\t\n \t\t\tfor (int i = 0; i < guesses.length(); i++) {\n \t\t\t\tif (ch == guesses.charAt(i)) {\n \t\t\t\t\tprintln(\"This letter has already written. Enter another one!\");\n \t\t\t\t\tbl = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (bl) {\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t\n \t\t\tbreak;\n \t\t}\n \t\t\n \t\t// Change string and char to uppercase\n \t\tstr = str.toUpperCase();\n \t\tletter = str.charAt(0);\n\n \t\tguesses += letter;\n \t\t\n \t\t// Check if word contains entered letter\n \t\tif (checkWord()) {\n \t\t\tprintln(\"That guess is correct.\");\n \t\t}\n \t\telse {\n \t\t\tprintln(\"There are no \" + letter + \"'s in the word.\");\n \t\t\tincorrectLetters += letter;\n \t\t\tcanvas.noteIncorrectGuess(incorrectLetters);\n \t\t\tguessesLeft--;\n \t\t}\n \t\t\n \t\tif (numberOfSymbols < word.length()) {\n \t\t\tprint(\"The word now looks like this: \");\n \t\t\tfor (int i = 0; i < word.length(); i++) {\n \t\t\t\tif (list[i] == true) {\n \t\t\t\t\tprint(word.charAt(i));\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tprint(\"-\");\n \t\t\t\t}\n \t\t\t}\n \t\t\tprintln();\n \t\t\t\n \t\t\tif (guessesLeft == 1) {\n \t\t\t\tprintln(\"You have only one guess left.\");\n \t\t\t}\n \t\t\telse {\n \t\t\t\tprintln(\"You have \" + guessesLeft + \" guesses left.\");\n \t\t\t}\n \t\t}\n \t\telse {\n \t\t\tif (numberOfSymbols == word.length()) {\n \t\t\t\twin = true;\n \t\t\t\tprintln(\"You guessed the word: \" + word);\n \t\t\t\tprintln(\"You win.\");\n \t\t\t\tcanvas.displayWord(word);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n\t\t\t\t\n \t}\n \t\n \tif (win == false) {\n \t\tprintln(\"You're completely hung.\");\n \t\tprintln(\"The word was: \" + word);\n \t\tprintln(\"You loose.\");\n \t\tcanvas.displayWord(word);\n \t}\n \t\n \tstartNext();\n }",
"private PlayingCard chooseCard(HeartsGraphics g){\t\t\n\t\tHearts.setCurrentPlayer(this);\n\t\t\n\t\tif(number != PLAYER_ONE){\n\t\t\t// A.I. code\n\t\t\tint index;\n\t\t\t\n\t\t\tRandom r = new Random();\n\t\t\tindex = r.nextInt(hand.size());\t\t\t\n\t\t\t\n\t\t\treturn hand.get(index);\t\t\t\n\t\t} else {\n\t\t\treturn getCard(g);\n\t\t}\t\t\n\t}",
"String player1GetName(){\n return player1;\n }",
"public void setPlayer(Player myPlayer){\n battlePlayer=myPlayer;\n }",
"String symbol();",
"private void doMatch() {\n // Remember how many games in this session\n mGameCounter++;\n\n PebbleDictionary resultDict = new PebbleDictionary();\n\n switch (mChoice) {\n case Keys.CHOICE_ROCK:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN); // Inform Pebble of opposite result\n break;\n case Keys.CHOICE_SCISSORS:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n }\n break;\n case Keys.CHOICE_PAPER:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_PAPER:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n }\n break;\n case Keys.CHOICE_SCISSORS:\n switch(mP2Choice) {\n case Keys.CHOICE_ROCK:\n mInstructionView.setText(\"You lose!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_WIN);\n break;\n case Keys.CHOICE_PAPER:\n mWinCounter++;\n mInstructionView.setText(\"You win! (\" + mWinCounter + \" of \" + mGameCounter + \")\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_LOSE);\n break;\n case Keys.CHOICE_SCISSORS:\n mInstructionView.setText(\"It's a tie!\");\n resultDict.addInt32(Keys.KEY_RESULT, Keys.RESULT_TIE);\n break;\n }\n break;\n }\n\n // Inform Pebble of result\n PebbleKit.sendDataToPebble(getApplicationContext(), APP_UUID, resultDict);\n\n // Finally reset both\n mChoice = Keys.CHOICE_WAITING;\n mP2Choice = Keys.CHOICE_WAITING;\n\n // Leave announcement for 5 seconds\n mHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n updateUI();\n }\n\n }, 5000);\n }",
"public String getSymbolName() {\n return this.name;\n }",
"@Override\n\tpublic void getLeaderboardGPGS() {\n\t\tstartActivityForResult(gameHelper.getGamesClient()\n\t\t\t\t.getLeaderboardIntent(\"CgkIp-26x7gZEAIQAA\"), 100);\n\n\t}",
"protected String getCommand() {\n\treturn \"GAME\";\n }",
"public static char playerChoice(){\n String str1; //temp string to hold players choice.\n char choice; //return value of players choice after parsing.\n \n str1 = JOptionPane.showInputDialog(\"Choose one of the following: (R)Rock, (P)Paper, (S)Scissors,\"+\n \"\\n(L)Lizard, (X)Spock\");\n while(str1.length() == 0){\n str1 = JOptionPane.showInputDialog(\"Choose one of the following: (R)Rock, (P)Paper, (S)Scissors,\"+\n \"\\n(L)Lizard, (X)Spock\");\n }\n \n choice = str1.charAt(0);\n choice = Character.toLowerCase(choice);\n while( choice != 'r' && choice != 'p' && choice != 's' && choice != 'l' && choice != 'x'){\n str1 = JOptionPane.showInputDialog(\"Choose one of the following: (R)Rock, (P)Paper, (S)Scissors,\"+\n \"\\n(L)Lizard, (X)Spock\"); \n \n while(str1.length() == 0){\n str1 = JOptionPane.showInputDialog(\"Choose one of the following: (R)Rock, (P)Paper, (S)Scissors,\"+\n \"\\n(L)Lizard, (X)Spock\");\n }\n choice = str1.charAt(0);\n choice = Character.toLowerCase(choice); \n }\n\n \n return choice;\n }",
"public String getScoreboardName() {\n/* 1999 */ return getGameProfile().getName();\n/* */ }",
"void useInBattle(PlayerCharacter player, Opponent enemy) {\n\t}",
"public abstract void use(PlayerCharacter character);",
"public void findBestTwoCardHandName() {\n if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(14, 'x', 14) == true) {//aces, any suit\n bestHandFromCardsNickNameString = \"Pocket Rockets\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(13, 'y', 14) == true) {//king, then ace, same suit\n bestHandFromCardsNickNameString = \"Big Slick in a Suit\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(13, 'x', 14) == true) {\n bestHandFromCardsNickNameString = \"Full Auto\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(8, 'x', 14) == true) {\n bestHandFromCardsNickNameString = \"Dead Man's Hand\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(13, 'x', 13) == true) {\n bestHandFromCardsNickNameString = \"Cowboys King Kong\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(9, 'x', 14) == true) {\n bestHandFromCardsNickNameString = \"The Dog\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(12, 'x', 12) == true) {\n bestHandFromCardsNickNameString = \"Ladies\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(3, 'x', 12) == true) {\n bestHandFromCardsNickNameString = \"The Waiter\";\n } else if (handContainsTheseTwoCards_With_AtLeastOneFromPlayerOriginalHand(9, 'x', 9) == true) {\n bestHandFromCardsNickNameString = \"A German Dime\";\n } else if (allCards[0].value == allCards[1].value) {\n bestHandFromCardsNickNameString = \"Pocket Pair\";\n } else if (allCards[0].suit == allCards[1].suit) {\n bestHandFromCardsNickNameString = \"Flush Rush\";\n } else if (allCards[0].value == allCards[1].value + 1 || allCards[0].value + 1 == allCards[1].value || (allCards[0].value == 14 && allCards[1].value == 2) || (allCards[0].value == 2 && allCards[1].value == 14) ) {\n bestHandFromCardsNickNameString = \"Straight Bait\";\n } else if (allCards[0].value == 14 || allCards[1].value == 14) {\n bestHandFromCardsNickNameString = \"A Spike\";\n } else if (allCards[0].value == 13 || allCards[1].value == 13) {\n bestHandFromCardsNickNameString = \"A Dame\";\n } else if (allCards[0].value == 12 || allCards[1].value == 12) {\n bestHandFromCardsNickNameString = \"A Jackal\";\n } else if (allCards[0].value == 11 || allCards[1].value == 11) {\n bestHandFromCardsNickNameString = \"A Fishhook\";\n } else if (allCards[0].value == 10 || allCards[1].value == 10) {\n bestHandFromCardsNickNameString = \"A Sawbuck\";\n } else if (allCards[0].value == 9 || allCards[1].value == 9) {\n bestHandFromCardsNickNameString = \"Nina Ross\";\n } else {\n bestHandFromCardsNickNameString = \"Down on Your Luck\";\n }\n \n System.out.println(\"findBestTwoCardHandName---->>> \" + bestHandFromCardsNickNameString);\n\n }",
"private String GetPlayerString_UI()\n {\n String ret = GetPlayerString_UI(mPositionComboBox.getSelectedItem().toString());\n return ret;\n }",
"public final void mo12625b() {\n if (mo9140c() != null) {\n PkState pkState = (PkState) LinkCrossRoomDataHolder.m13782a().get(\"data_pk_state\");\n if (!this.f13397e && pkState == PkState.PENAL) {\n this.f13396d.f11684v = true;\n this.f13396d.f11680r = 0;\n this.f13397e = true;\n this.f13398f = true;\n ((C3245ad) ((LinkPKApi) C9178j.m27302j().mo22373b().mo10440a(LinkPKApi.class)).battleInvite(this.f13396d.f11665c).mo19297a((C7494t<T, ? extends R>) mo13033u())).mo10183a(new C4708ga(this), new C4709gb(this));\n }\n }\n }",
"private void sendGameCommand(){\n\n }"
] | [
"0.7185782",
"0.62769693",
"0.6108023",
"0.6082387",
"0.5962543",
"0.592405",
"0.58966875",
"0.58842164",
"0.5883007",
"0.5841267",
"0.5836957",
"0.5833296",
"0.5829245",
"0.58238673",
"0.5822721",
"0.58187443",
"0.57961553",
"0.57607543",
"0.5756517",
"0.5736977",
"0.5691644",
"0.565738",
"0.56481034",
"0.56174654",
"0.56167716",
"0.5612662",
"0.5604272",
"0.55876714",
"0.55846226",
"0.5583073",
"0.55799323",
"0.55680096",
"0.55501986",
"0.5543784",
"0.5533326",
"0.55301386",
"0.55104375",
"0.549777",
"0.549777",
"0.54975754",
"0.54970074",
"0.54966235",
"0.5491716",
"0.54881674",
"0.5484522",
"0.5455672",
"0.5455672",
"0.5453883",
"0.5443454",
"0.5441973",
"0.543982",
"0.542955",
"0.54239607",
"0.54220855",
"0.54204637",
"0.5406816",
"0.54004437",
"0.53969896",
"0.5396156",
"0.5392067",
"0.5389899",
"0.5389777",
"0.53885394",
"0.53812957",
"0.53812957",
"0.5369368",
"0.53689104",
"0.5365058",
"0.5358195",
"0.5357633",
"0.5350839",
"0.53464365",
"0.5336598",
"0.5332359",
"0.5329537",
"0.53281975",
"0.5325579",
"0.531866",
"0.5317952",
"0.5311471",
"0.53034675",
"0.5295474",
"0.5291367",
"0.5289408",
"0.5278866",
"0.5270169",
"0.5268811",
"0.5262991",
"0.5259682",
"0.52593094",
"0.5257182",
"0.5256068",
"0.52544224",
"0.5251078",
"0.524901",
"0.52341586",
"0.5233614",
"0.52306956",
"0.52292293",
"0.5228452",
"0.5223437"
] | 0.0 | -1 |
Search for the first empty cell, according to the preferences | public boolean placeComputerMark(int row, int col)
{
if((row >= 0) && (row < 3))
{
if((col >= 0) && (col < 4))
{
if(board[row][col] == '-')
{
board[row][col] = CPUmark;
return true;
}
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract AwtCell getEmpty();",
"private Cell searchEmptySurrounding(){\n List <Cell> blocks = getSurroundingCells(currentWorm.position.x, currentWorm.position.y);\n for (Cell block : blocks){\n if(!isCellOccupied(block)) return block;\n }\n return null;\n }",
"private ArrayList<PredatorPreyCell> getEmptyCells(Grid<Integer> grid) {\n\t\tArrayList<PredatorPreyCell> emptyCells = new ArrayList<PredatorPreyCell>();\n\t\tfor(int i = 0; i < grid.getHeight(); i++) {\n\t\t\tfor(int j = 0; j < grid.getWidth(); j++) {\n\t\t\t\tif(grid.getGridMatrix()[i][j].getValue() == EMPTY &&\n\t\t\t\t (grid.getGridMatrix()[i][j].getNewValue() == null || grid.getGridMatrix()[i][j].getNewValue() == EMPTY)) {\n\t\t\t\t\temptyCells.add((PredatorPreyCell) grid.getGridMatrix()[i][j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn emptyCells;\n\t}",
"public void findBlank () {\n // blank position\n for (int r = 0; r < rows; r++) {\n for (int c = 0; c < columns; c++) {\n if (this.currentState[r][c] == blank) {\n setBlankCoordinates(new int[]{r, c});\n }\n }\n }\n }",
"public Point findEmptyCell(){\n int height = Math.min(labyrinth.getCells().length,LabyrinthFactory.HEIGHT-2);\n int widht = Math.min(labyrinth.getCells()[0].length, LabyrinthFactory.WIDTH);\n while(true) {\n int x = ThreadLocalRandom.current().nextInt(0, widht-2);\n int y = ThreadLocalRandom.current().nextInt(0, height-2);\n if (!labyrinth.getCell(x, y).isSolid()) {\n return new Point(x, y);\n }\n }\n }",
"private Cell scanFirstDiagonal(Figure value) {\n Figure oppositeValue = game.getOppositeFigure(value);\n int emptyString = 0;\n int emptyRow = 0;\n int emptyCnt = 0;\n int row = 0;\n for (int string = 0; string < game.getFieldSize(); string++) {\n Figure fieldValue = game.getFieldValue(string,row);\n if (fieldValue.equals(oppositeValue)) {\n emptyCnt = 0;\n break;\n } else if (fieldValue.equals(EMPTY)) {\n emptyCnt++;\n emptyRow = row;\n emptyString = string;\n }\n row++;\n }\n if (emptyCnt == 1) {\n return new Cell(emptyString, emptyRow);\n }\n return scanSecondDiagonal(value);\n }",
"private boolean isEmpty(){\n return cellSize == 0;\n }",
"public boolean isEmpty() {\n return cell == null;\n }",
"public void find_empty_cells(int j) {\n\n int current_col = j % cols;\n int cell;\n\n if (current_col > 0) {\n cell = j - cols - 1;\n if (cell >= 0)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n\n cell = j - 1;\n if (cell >= 0)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n\n cell = j + cols - 1;\n if (cell < all_cells)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n }\n\n cell = j - cols;\n if (cell >= 0)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n\n cell = j + cols;\n if (cell < all_cells)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n\n if (current_col < (cols - 1)) {\n cell = j - cols + 1;\n if (cell >= 0)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n\n cell = j + cols + 1;\n if (cell < all_cells)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n\n cell = j + 1;\n if (cell < all_cells)\n if (field[cell] > MINE_CELL) {\n field[cell] -= COVER_FOR_CELL;\n if (field[cell] == EMPTY_CELL)\n find_empty_cells(cell);\n }\n }\n\n }",
"public int[] findFirstNonEmpty() {\n\t\tint[] coord = new int[2];\n\t\tfor (int r=0; r<size*size; r++) {\n\t\t\tfor (int c=0; c<size*size; c++) {\n\t\t\t\tif (board[r][c].val==0) {\n\t\t\t\t\tcoord[0]=r;\n\t\t\t\t\tcoord[1]=c;\n\t\t\t\t\treturn coord;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\treturn null;\n\t}",
"public Cell scan(Figure value) {\n Figure oppositeValue = game.getOppositeFigure(value);\n int emptyString = 0;\n int emptyRow = 0;\n int emptyCnt;\n for (int row = 0; row < game.getFieldSize(); row++) {\n emptyCnt = 0;\n for (int string = 0; string < game.getFieldSize(); string++) {\n Figure fieldValue = game.getFieldValue(string,row);\n if (fieldValue.equals(oppositeValue)) {\n emptyCnt = 0;\n break;\n } else if (fieldValue.equals(EMPTY)) {\n emptyCnt++;\n if (emptyCnt < 2) { //too much empty cells\n emptyRow = row;\n emptyString = string;\n } else {\n break;\n }\n }\n }\n if (emptyCnt == 1) {\n return new Cell(emptyString, emptyRow);\n }\n }\n return scanHorizontal(value);\n }",
"private boolean isEmpty(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.BLACK_FLOOR);\r\n }",
"private WebElement chooseFirstRow() {\n return getRowsFromTable().get(0);\n\n }",
"public static Cell findEmptyNest(Chess chess)\n {\n Cell cell;\n String cellId = chess.getColor().toString().toLowerCase() + \"Nest\";\n for(int i = 1; i < 5; i ++)\n {\n cell = getCell(cellId + i);\n if (cell.getChess() == null)\n return cell;\n }\n return null;\n }",
"private Cell scanHorizontal(Figure value) {\n Figure oppositeValue = game.getOppositeFigure(value);\n int emptyString = 0;\n int emptyRow = 0;\n int emptyCnt;\n for (int string = 0; string < game.getFieldSize(); string++) {\n emptyCnt = 0;\n for (int row = 0; row < game.getFieldSize(); row++) {\n Figure fieldValue = game.getFieldValue(string,row);\n if (fieldValue.equals(oppositeValue)) {\n emptyCnt = 0;\n break;\n } else if (fieldValue.equals(EMPTY)) {\n emptyCnt++;\n if (emptyCnt < 2) { //too much empty cells\n emptyRow = row;\n emptyString = string;\n } else {\n break;\n }\n }\n }\n if (emptyCnt == 1) {\n return new Cell(emptyString, emptyRow);\n }\n }\n return scanFirstDiagonal(value);\n }",
"public static CellLocation getEmpty() {\n/* 45 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private int[][] listEmptyCells() {\n int nbEmpty = 0;\n int[][] emptyCells;\n int k = 0;\n\n for (int i = 0; i < sb.size; i++) {\n for (int j = 0; j < sb.size; j++) {\n if (sb.get(i, j) == 0)\n nbEmpty++;\n }\n }\n emptyCells = new int[nbEmpty][2];\n\n for (int i = 0; i < sb.size; i++) {\n for (int j = 0; j < sb.size; j++) {\n if (sb.get(i, j) == 0) {\n emptyCells[k][0] = i;\n emptyCells[k][1] = j;\n k++;\n }\n }\n }\n return emptyCells;\n }",
"public boolean isFirst() throws SQLException {\n/* 208 */ return (this.currentPositionInEntireResult == 0);\n/* */ }",
"public CellType getType()\r\n/* 35: */ {\r\n/* 36: 94 */ return CellType.EMPTY;\r\n/* 37: */ }",
"protected int findNonEmptyPosition() {\n\t\t\twhile (!set.bv[++indice]) {\n\t\t\t}\n\t\t\treturn indice;\n\t\t}",
"public CrosstabCell getWhenNoDataCell()\r\n {\r\n for (int i=0; i<getCrosstabElement().getCells().size(); ++i)\r\n {\r\n CrosstabCell cell = (CrosstabCell)getCrosstabElement().getCells().elementAt(i);\r\n if (cell.getType() == cell.NODATA_CELL)\r\n {\r\n return cell;\r\n }\r\n }\r\n return null;\r\n }",
"R getFirstRowOrThrow();",
"@Test\n\tpublic void assertNoEmptyCell()\n\t{\n\t\terrorMessage = \"The test failed as the table has a empty cell\";\n\t\tList<WebElement> allRows = dashboardPage.getActualRows();\n\t\tfor (WebElement row : allRows) {\n\t\t\t List<WebElement> cells = row.findElements(By.tagName(\"td\"));\n\t\t\t for (WebElement cell : cells) {\n\t\t\t String cellContent = cell.getText();\n\t\t\t boolean emptyCell = cellContent.isEmpty();\n\t\t\t Assert.assertFalse(emptyCell, errorMessage);\n\t\t\t }\n\t\t}\n\t}",
"public boolean isBeforeFirst() throws SQLException {\n/* 151 */ return (this.currentPositionInEntireResult < 0);\n/* */ }",
"private int[] blankFinder(){\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n if(tiles[x][y] == 0){\n return new int[]{x, y};\n }\n }\n }\n return null;\n }",
"public abstract boolean isOneCell();",
"public int findEmpty()\n\t{\n\t\temptyIndices.clear();\n\t\tfor (int i = 0; i < 20; i++)\n\t\t{\n\t\t\tif (river[i] == null)\n\t\t\t\temptyIndices.add(i);\n\t\t}\n\t\t\n\t\tif (emptyIndices.size() != 0){\n\t\t\treturn (int) emptyIndices.get(rng.nextInt(emptyIndices.size()));\n\t\t}\n\t\telse\n\t\t\treturn -1;\n\t}",
"private boolean moveToNextCell() {\r\n positionInArray++;\r\n while (positionInArray < data.length && data[positionInArray] == null) {\r\n positionInArray++;\r\n }\r\n return positionInArray < data.length;\r\n }",
"public boolean isEmpty(int row, int column);",
"public int countEmptyCells() {\n int result = 0;\n for (int[] row : field)\n for (int cell : row)\n if (cell == EMPTY_MARK)\n result++;\n return result;\n }",
"public boolean isSetFirstRow()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FIRSTROW$22) != 0;\n }\n }",
"public int GetFirstPossibleValueInTheCell()\n {\n return this._valuesToPut.get(0);\n }",
"public void firstSearch() {\n\n\t\tif ((workspaceSearchField.getText() == null) || \"\".equals(workspaceSearchField.getText())) {\n\t\t\tworkspaceSearchField.setText(mainGUI.getSearchFieldText());\n\t\t\tsearchInWorkspaceFor(workspaceSearchField.getText());\n\t\t}\n\t}",
"public String fullCellText() {\r\n\t\treturn \"\";\r\n\t}",
"public String fullCellText() {\r\n\t\treturn \"\";\r\n\t}",
"public Cell searchSheet(char col, int row){\n if(!isEmpty()){\n CellNode current = Head;\n while(current != null){\n Cell found = checkColRow(current, col, row);\n if(found != null) return found;\n current = current.getNext();\n }\n }\n return null;\n }",
"@Override\n public boolean hasNext() {\n return itListCell != first;\n }",
"public char FirstAppearingOnce()\n {\n int minPos = Integer.MAX_VALUE;\n char ch = '#';\n for (int i = 0; i < map.length; i++) {\n if (map[i] >= 0) {\n if (map[i] < minPos) {\n minPos = map[i];\n ch = (char)i;\n }\n }\n }\n return ch;\n }",
"public int firstEntryIndex() {\n return isEmpty() ? -1 : 0;\n }",
"public abstract boolean checkIfCellHasValue(int row, int col);",
"private boolean neighborIsBlank(SSheet sheet, int left, int right, int row, int col) {\n\t\tfor (int j = left; j <= right; ++j) {\n\t\t\tif (j == col) continue;\n\t\t\tfinal SCell c = sheet.getCell(row, j);\n\t\t\tif (!c.isNull() && c.getType() != CellType.BLANK) {\n\t\t\t\treturn false;\n\t\t\t} else {\n\t\t\t\tCellRegion merged = sheet.getMergedRegion(row, j);\n\t\t\t\tif (merged != null) {\n\t\t\t\t\tint l = merged.getColumn();\n\t\t\t\t\tint t = merged.getRow();\n\t\t\t\t\tfinal SCell c0 = sheet.getCell(t, l);\n\t\t\t\t\tif (!c0.isNull() && c0.getType() != CellType.BLANK) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isEmpty() {\r\n return lastCursor - firstCursor == 1;\r\n }",
"private boolean endOfGrid(Grid tablero) {\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < 10; j++) {\n if (tablero.getCell(i, j) == 0) {\n return false;\n }\n }\n }\n return true;\n }",
"@Nullable\n public T firstOrNull() {\n return Query.firstOrNull(iterable);\n }",
"public void testGetCell()\n {\n // All cells should be empty to start.\n for (int i = 0; i < 3; i++)\n {\n for (int j = 0; j < 3; j++)\n {\n assertTrue(b1.getCell(i, j) == Cell.EMPTY);\n }\n }\n\n\n }",
"public abstract void setEmpty(AwtCell empty);",
"public String fullCellText();",
"private static String findValueTemp(HSSFSheet sheet, String cellContent){\n\n int colNum = 0; \n String value=\"\";\n for(Row row : sheet) {\n for(Cell cell : row) {\n// boolean bul =cell.getStringCellValue().trim().equalsIgnoreCase(cellContent.trim());\n// System.out.println(bul);\n\n if(cell.getStringCellValue().trim().equalsIgnoreCase(cellContent.trim())){\n\n\n colNum = cell.getColumnIndex();\n HSSFRow nRow= sheet.getRow(1);\n HSSFCell nCell = nRow.getCell(colNum);\n if(nCell.getCellType() == HSSFCell.CELL_TYPE_STRING)\n {\n value = (nCell.getStringCellValue() == null) ? \"\" : nCell.getStringCellValue();\n }\n else if(nCell.getCellType() == HSSFCell.CELL_TYPE_NUMERIC)\n {\n value = (String) (((Double)nCell.getNumericCellValue() == null) ? \"\" : nCell.getNumericCellValue());\n }\n else if(nCell.getCellType() == HSSFCell.CELL_TYPE_BLANK)\n {\n value = \"\";\n }\n// try {\n// \n// value=nCell.getStringCellValue();\n// } catch (NullPointerException e) {\n// // TODO Auto-generated catch block\n// value=\"\";\n// e.printStackTrace();\n// }\n// if(nCell.getStringCellValue()!=null)\n// {\n// System.out.println(value);\n// }\n \n \n }\n \n }\n break;\n } \n return value; \n }",
"public static int getRowFirstNonWhite(BaseDocument doc, int offset)\n throws BadLocationException {\n \n checkOffsetValid(doc, offset);\n\n Element lineElement = doc.getParagraphElement(offset);\n return getFirstNonWhiteFwd(doc,\n lineElement.getStartOffset(),\n lineElement.getEndOffset() - 1\n );\n }",
"private int getStartCell() {\r\n\t\tint extraCells = (getContentHeight() - getViewableHeight()) / CELL_SIZE_Y;\r\n\t\tif (getContentHeight() < getViewableHeight()) {\r\n\t\t\textraCells = 0;\r\n\t\t}\r\n\t\treturn (int) ((float) extraCells * ((float) _curScrollValue / (float) _maxScrollValue));\r\n\t}",
"private boolean isEmpty() {return first == null;}",
"private SimpleHashtable.TableEntry<K, V> findNextNonNullTableRowEntry() {\r\n\t\t\tcurrentRow++;\r\n\r\n\t\t\twhile (currentRow < table.length) {\r\n\t\t\t\tif (table[currentRow] != null) {\r\n\t\t\t\t\treturn table[currentRow];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcurrentRow++;\r\n\t\t\t}\r\n\r\n\t\t\treturn null;\r\n\t\t}",
"private Position<E> firstLeaf(){\n\t\tPosition<E> aux=null;\n\t\tif(tree.isEmpty())\n\t\t\treturn aux;\n\t\telse\n\t\t\taux=tree.root();\n\t\twhile(this.tree.hasLeft(aux)){\n\t\t\taux=tree.left(aux);\n\t\t}\n\t\treturn aux;\n\t}",
"public boolean isEmpty() throws SQLException {\n/* 197 */ return (isBeforeFirst() && isAfterLast());\n/* */ }",
"boolean getSearchValueNull();",
"public boolean isEmpty ()\n {\n return lastIndex == -1;\n }",
"public boolean isEmpty() {\r\n\t\treturn cur_index==0;\r\n\t}",
"public CellEntry findCell(CellFeed feed, int row, int col) {\n for (CellEntry entry : feed.getEntries()) {\n final Cell cell = entry.getCell();\n if (cell.getRow() == row && cell.getCol() == col) {\n return entry;\n }\n if (cell.getRow() > row) {\n return null;\n }\n }\n return null;\n }",
"@Override\n\tpublic Cell getCell(int arg0, MissingCellPolicy arg1) {\n\t\treturn null;\n\t}",
"public synchronized boolean fempty() {\n return table.isEmpty( ); // return if table is empty\n }",
"@Override\r\n\tpublic boolean isEmpty() {\r\n\t\treturn topIndex < 0;\r\n\t}",
"private boolean isSpotBlank(int row, int column){\n\t\t\n\t\tif (getDisc(row, column) == null) {\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t}\n\t\treturn false;\n\t\t\n\t}",
"private boolean isFull() {\n for (int i = 0; i < 6; i++)\n for (int j = 0; j < 7; j++)\n if (cell[i][j] == ' ')\n return false; // At least one cell is not filled\n\n // All cells are filled\n return true;\n }",
"@Override\n\tpublic Cell getNextCell(Grid g, int x, int y) {\n\t\treturn null;\n\t}",
"public int countEmptyCellInOriginalSudoku()\n\t{\n\t\treturn ((BoardIndividual)getBest()).countEmptyCellInOriginalSudoku();\n\t}",
"@Override\r\n public Entry<K, V> firstEntry() {\n return null;\r\n }",
"public abstract boolean isMissing(int columnIndex);",
"private void doFirstRow(){\n\t\twhile (frontIsClear()){\n\t\t\talternateBeeper();\n\t\t}\n\t\tcheckPreviousSquare();\n\t}",
"public char FirstAppearingOnce()\n {\n \n for(int i = 0; i < stringstream.size(); i++){\n char ch = stringstream.get(i);\n\t\t\tif(!rep.contains(ch)){\n return ch;\n }\n }\n return '#';\n }",
"public boolean hasStart(GridCellContentType[][] matrix);",
"public boolean isEmpty(){ return Objects.isNull(this.begin ); }",
"private static float computeEmptyCellScore(GameModel model) {\n\n int numEmptyCells = 0;\n for (byte b : model.getGrid()) {\n if (b < 0) {\n numEmptyCells++;\n }\n }\n return 1 << numEmptyCells;\n }",
"@Override\n public boolean isEmpty(){\n return this.first == null;\n }",
"private void selectLastUsed() {\n // Set the initial selection of the table:\n if (initSelection != null) {\n boolean found = false;\n for (int i = 0; i < table.getRowCount(); i++) {\n if (tableModel.getElementAt(i).getFile().getPath().\n equals(initSelection)) {\n table.setRowSelectionInterval(i, i);\n found = true;\n break;\n }\n }\n if (!found && (table.getRowCount() > 0)) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n else {\n if (table.getRowCount() > 0) {\n table.setRowSelectionInterval(0, 0);\n }\n }\n }",
"@Override\n public Event firstScan() {\n return null;\n }",
"public Point getFirstExpressionCell(Vector<Vector<String>> dataVector) {\r\n\t\tint guessCol = 0, guessRow = 0;\r\n\t\tVector<String> lastRow = dataVector.get(dataVector.size() - 1);\r\n\t\tfor (int j = lastRow.size() - 2; j >= 0; j--) {\r\n\t\t\tString thisEntry = lastRow.get(j);\r\n\t\t\ttry {\r\n\t\t\t\tFloat temp = new Float(thisEntry);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tguessCol = j + 1;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tfor (int i = dataVector.size() - 1; i >= 0; i--) {\r\n\t\t\tVector<String> thisRow = dataVector.get(i);\r\n\t\t\ttry {\r\n\t\t\t\tString thisEntry = thisRow.get(guessCol);\r\n\t\t\t\tFloat temp = new Float(thisEntry);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tguessRow = i + 1;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Point(guessRow, guessCol);\r\n\t}",
"public boolean isFirst() throws SQLException {\n\n try {\n debugCodeCall(\"isFirst\");\n checkClosed();\n int row = result.getRowId();\n return row == 0 && row < result.getRowCount();\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\n\t@TimeComplexity(\"O(1)\")\n\tpublic Entry<K, V> firstEntry() {\n\t/* TCJ\n\t * Continuous operation: O(1)\n\t */\n\t\treturn safeEntry(0);\n\t}",
"@Override\r\n\tpublic boolean isEmtpy() {\r\n\t\tif (this.front == -1) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }",
"public boolean isEmpty(){\n\t\treturn first==null;\r\n\t}",
"public static boolean isSheetEmpty(XSSFSheet xssfSheet){\r\n\t Iterator rows = xssfSheet.rowIterator();\r\n\t while (rows.hasNext()) {\r\n\t Row row = (Row) rows.next();\r\n\t \r\n\t Iterator cells = row.cellIterator();\r\n\t while (cells.hasNext()) {\r\n\t Cell cell = (Cell) cells.next();\r\n\t if(!cell.getStringCellValue().isEmpty()){\r\n\t \r\n\t return true;\r\n\t }\r\n\t }\r\n\t }\r\n\t return false;\r\n\t}",
"public boolean isEmpty() {\r\n\t\tif (currentIndex == 0)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"private DirectionalPanel nextEmpty(int row, int col) {\n\t\tDirectionalPanel[] room = rooms[row][col];\n\t\tfor (int i = 0; i < room.length; i++) {\n\t\t\tif (room[i].getImageName() == null) {\n\t\t\t\treturn room[i];\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Test\n\tpublic void testSearchWholeProgramNoNull() throws Exception {\n\n\t\tdialog = getDialog();\n\t\tContainer container = dialog.getComponent();\n\n\t\t// turn off null Terminate box\n\t\tJCheckBox cb = (JCheckBox) findButton(container, \"Require Null Termination\");\n\t\tcb.setSelected(false);\n\n\t\tStringTableProvider provider = performSearch();\n\t\tStringTableModel model = (StringTableModel) getInstanceField(\"stringModel\", provider);\n\t\tGhidraTable table = (GhidraTable) getInstanceField(\"table\", provider);\n\t\twaitForTableModel(model);\n\t\tsetAutoLabelCheckbox(provider, true);\n\n\t\t// test the results size and the first entry and the last unicode and last string entry\n\t\t// they are in the list in a different order than they are in the dialog the\n\t\t// dialog shows them in address order the array list has all the regular\n\t\t// strings first and then all the unicode - each set in address order first entry\n\t\tassertEquals(\"00401286\", getModelValue(model, 0, addressColumnIndex).toString());\n\t\t// last entry\n\t\tassertEquals(\"00405e02\",\n\t\t\tgetModelValue(model, model.getRowCount() - 1, addressColumnIndex).toString());\n\n\t\t// check the table entries in some of the rows to make sure they are\n\t\t// populated correctly\n\t\tassertEquals(\"00401286\", getModelValue(model, 0, addressColumnIndex).toString());\n\t\tassertEquals(null, getModelValue(model, 0, labelColumnIndex));\n\n\t\tCodeUnitTableCellData data =\n\t\t\t(CodeUnitTableCellData) getModelValue(model, 0, previewColumnIndex);\n\t\tassertEquals(\"?? 59h Y\", data.getDisplayString());\n\n\t\tassertEquals(\"\\\"YYh P@\\\"\", getModelValue(model, 0, asciiColumnIndex));\n\t\tassertEquals(\"string\", getModelValue(model, 0, stringTypeColumnIndex));\n\n\t\tString debug_initial_word_value_at_401286 =\n\t\t\t(String) getModelValue(model, 0, isWordColumnIndex);\n\n\t\tassertEquals(\"004014b8\", getModelValue(model, 1, addressColumnIndex).toString());\n\t\tassertEquals(null, getModelValue(model, 1, labelColumnIndex));\n\n\t\tdata = (CodeUnitTableCellData) getModelValue(model, 1, previewColumnIndex);\n\t\tassertEquals(\"?? 3Fh ?\", data.getDisplayString());\n\t\tassertEquals(\"\\\"?=t\\\\\\\"U\\\"\", getModelValue(model, 1, asciiColumnIndex));\n\n\t\tint row = findRow(model, addr(0x404f41));\n\t\tassertEquals(\"00404f41\", getModelValue(model, row, addressColumnIndex).toString());\n\t\tassertEquals(null, getModelValue(model, row, labelColumnIndex));\n\t\tassertEquals(\"unicode\", getModelValue(model, row, stringTypeColumnIndex));\n\n\t\tdata = (CodeUnitTableCellData) getModelValue(model, row, previewColumnIndex);\n\t\tassertEquals(\"?? 0Ah\", data.getDisplayString());\n\t\tassertEquals(\"u\\\"\\\\n\\\\rString10\\\\n\\\\r\\\"\", getModelValue(model, row, asciiColumnIndex));\n\n\t\trow = findRow(model, addr(0x405423));\n\t\tassertEquals(\"00405423\", getModelValue(model, row, addressColumnIndex).toString());\n\t\tassertEquals(null, getModelValue(model, row, labelColumnIndex));\n\t\tassertEquals(\"unicode32\", getModelValue(model, row, stringTypeColumnIndex));\n\n\t\tdata = (CodeUnitTableCellData) getModelValue(model, row, previewColumnIndex);\n\t\tassertEquals(\"?? 0Ah\", data.getDisplayString());\n\t\tassertEquals(\"U\\\"\\\\n\\\\rString9\\\\n\\\\r\\\"\", getModelValue(model, row, asciiColumnIndex));\n\n\t\tString stringData = (String) getModelValue(model, row, isWordColumnIndex);\n\t\tassertEquals(\"true\", stringData);\n\n\t\t//*******************************************\n\t\t// ********* TEST MAKE STRING ***************\n\t\t//*******************************************\n\t\tselectRow(table, 0);\n\n\t\tDockingAction makeStringAction =\n\t\t\t(DockingAction) getInstanceField(\"makeStringAction\", provider);\n\n\t\tperformAction(makeStringAction, model);\n\n\t\t// test that the string was actually made correctly\n\t\tData d = listing.getDataAt(addr(0x401286));\n\t\tDataType dt = d.getBaseDataType();\n\t\tassertTrue(dt instanceof StringDataType);\n\t\tassertEquals(\"YYh P@\", d.getValue());\n\n\t\t// test that the string len is correct to get the end of chars\n\t\tassertEquals(7, d.getLength());\n\n\t\t// test that the label was made\n\t\tSymbol sym = program.getSymbolTable().getPrimarySymbol(addr(0x401286));\n\t\tassertEquals(\"s_YYh_P@\", sym.getName());\n\n\t\t// test that the table was updated with the label and preview\n\t\tassertEquals(\"s_YYh_P@\", getModelValue(model, 0, labelColumnIndex).toString());\n\n\t\tdata = (CodeUnitTableCellData) getModelValue(model, 0, previewColumnIndex);\n\t\tassertEquals(\"ds \\\"YYh P@\\\"\", data.getDisplayString());\n\n\t\tstringData = (String) getModelValue(model, 0, isWordColumnIndex);\n\n\t\t// TODO this is debug for issue that is timing or real bug\n\t\tif (\"true\".equals(stringData)) {\n\t\t\t// the test is about to fail--diagnose\n\t\t\tSystem.out.println(\"Word value at 0x401286 is not true, but expected false.\\nThe \" +\n\t\t\t\t\"initial value at the start of the test was \" + debug_initial_word_value_at_401286);\n\n\t\t}\n\n\t\t// TODO debug\n\t\tSystem.out.println(\"\\n\\nWord value at 0x401286 is expected false.\\n\\tThe \" +\n\t\t\t\"initial value at the start of the test was \" + debug_initial_word_value_at_401286 +\n\t\t\t\"\\n\\tThe current value is: \" + stringData);\n\t\tFoundStringWithWordStatus foundString =\n\t\t\t(FoundStringWithWordStatus) getModelRowObject(model, 0);\n\n\t\tSystem.out.println(\"Last-loaded model path: \" + NGramUtils.getLastLoadedTrigramModelPath());\n\n\t\tStringAndScores candidateString = new StringAndScores(\n\t\t\tfoundString.getString(program.getMemory()), NGramUtils.isLowerCaseModel());\n\t\tNGramUtils.scoreString(candidateString);\n\t\tboolean isWord = candidateString.isScoreAboveThreshold();\n\t\tdouble score = candidateString.getNgramScore();\n\t\tdouble threshold = candidateString.getScoreThreshold();\n\t\tSystem.out.println(\n\t\t\t\"\\tisWord? \" + isWord + \"\\n\\tscore: \" + score + \"\\n\\tthreshold: \" + threshold + \"\\n\\n\");\n\n\t\tSystem.out.println(\"found string in model: \" + foundString + \"\\n\" + \"StringAndScores: \" +\n\t\t\tcandidateString + \"\\n\\n\");\n\n\t\tassertEquals(\"false\", stringData);\n\n\t\t// check that the selected row in the table moves to the next row\n\t\tint[] selectedRows = table.getSelectedRows();\n\t\tassertEquals(1, selectedRows.length);\n\t\tassertEquals(1, selectedRows[0]);\n\n\t\t//***********************************************************\n\t\t// ********* TEST MAKE ASCII ********************************\n\t\t//***********************************************************\n\n\t\t// select the second row\n\t\tselectRow(table, 1);\n\n\t\tDockingAction makeAsciiAction =\n\t\t\t(DockingAction) getInstanceField(\"makeCharArrayAction\", provider);\n\n\t\tperformAction(makeAsciiAction, model);\n\n\t\t// test that the ascii array was actually made correctly\n\t\td = listing.getDataAt(addr(0x4014b8));\n\t\tdt = d.getBaseDataType();\n\t\tassertEquals(\"char[5]\", dt.getName());\n\n\t\t// test to make sure that 5 ascii chars were created\n\t\tassertEquals(5, d.getLength());\n\n\t\t// test that the label was made\n\t\tsym = program.getSymbolTable().getPrimarySymbol(addr(0x4014b8));\n\t\tassertEquals(\"s_?=t\\\"U\", sym.getName());\n\n\t\t// test that the table was updated with the label and preview\n\t\tassertEquals(\"s_?=t\\\"U\", getModelValue(model, 1, labelColumnIndex).toString());\n\n\t\tdata = (CodeUnitTableCellData) getModelValue(model, 1, previewColumnIndex);\n\t\tassertEquals(\"char[5] \\\"?=t\\\\\\\"U\\\"\", data.getDisplayString());\n\n\t\tstringData = (String) getModelValue(model, 1, isWordColumnIndex);\n\t\tassertEquals(\"false\", stringData);\n\n\t\t// check that the selected row in the table moves to the next row\n\t\tselectedRows = table.getSelectedRows();\n\t\tassertEquals(1, selectedRows.length);\n\t\tassertEquals(2, selectedRows[0]);\n\n\t\t//*************************************************************\n\t\t// ********* TEST MAKE unicode STRING ********************\n\t\t//*************************************************************\n\n\t\trow = findRow(model, addr(0x404f41));\n\t\tselectRow(table, row);\n\n\t\tperformAction(makeStringAction, model);\n\n\t\t// test that the string was actually made correctly\n\t\td = listing.getDataAt(addr(0x404f41));\n\t\tassertEquals(26, d.getLength());\n\n\t\tassertEquals(\"\\n\\rString10\\n\\r\", d.getValue());\n\n\t\tdt = d.getBaseDataType();\n\t\tassertEquals(\"unicode\", dt.getName());\n\n\t\t// test that the label was made correctly\n\t\tsym = program.getSymbolTable().getPrimarySymbol(addr(0x404f41));\n\t\tassertEquals(\"u__String10\", sym.getName());\n\n\t\t// test that the table was updated with the label and preview\n\t\tassertEquals(\"u__String10\", getModelValue(model, row, labelColumnIndex).toString());\n\n\t\tdata = (CodeUnitTableCellData) getModelValue(model, row, previewColumnIndex);\n\t\tassertEquals(\"unicode u\\\"\\\\n\\\\rString10\\\\n\\\\r\\\"\", data.getDisplayString());\n\n\t\tstringData = (String) getModelValue(model, row, isWordColumnIndex);\n\t\tassertEquals(\"true\", stringData);\n\n\t\t//*************************************************************\n\t\t// ********* TEST MAKE UNICODE32 STRING ********************\n\t\t//*************************************************************\n\n\t\trow = findRow(model, addr(0x405423));\n\t\tselectRow(table, row);\n\n\t\tperformAction(makeStringAction, model);\n\n\t\t// test that the string was actually made correctly\n\t\td = listing.getDataAt(addr(0x405423));\n\t\tassertEquals(48, d.getLength());\n\n\t\tassertEquals(\"\\n\\rString9\\n\\r\", d.getValue());\n\n\t\tdt = d.getBaseDataType();\n\t\tassertEquals(\"unicode32\", dt.getName());\n\n\t\t// test that the label was made correctly\n\t\tsym = program.getSymbolTable().getPrimarySymbol(addr(0x405423));\n\t\tassertEquals(\"u__String9\", sym.getName());\n\n\t\t// test that the table was updated with the label and preview\n\t\tassertEquals(\"u__String9\", getModelValue(model, row, labelColumnIndex).toString());\n\n\t\tdata = (CodeUnitTableCellData) getModelValue(model, row, previewColumnIndex);\n\t\tassertEquals(\"unicode32 U\\\"\\\\n\\\\rString9\\\\n\\\\r\\\"\", data.getDisplayString());\n\n\t\tstringData = (String) getModelValue(model, row, isWordColumnIndex);\n\t\tassertEquals(\"true\", stringData);\n\t}",
"public int countEmptyCells()\n\t{\n\t\tint count = 0;\n\t\tfor(int i=0;i<this.numberOfRows;i+=1)\n\t\t{\n\t\t\tfor(int j=0;j<this.numberOfColumns;j+=1)\n\t\t\t{\n\t\t\t\tif(this.board[i][j].value==0)\n\t\t\t\t{\n\t\t\t\t\tcount+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"private static boolean doesFirstRowContainZero(int[][] matrix,MatrixSize matrixSize){\n boolean rowFlag=false;\n for(int i=0;i<matrixSize.numberOfColumns;i++)\n {\n if(matrix[0][i]==0){\n rowFlag=true;\n break;\n }\n }\n return rowFlag;\n }",
"private void checkEmpty() throws NoSuchElementException\n\t{\n\t\tif (isEmpty())\n\t\t{\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t}",
"public static boolean isRowEmpty(BaseDocument doc, int offset)\n throws BadLocationException {\n Element lineElement = doc.getParagraphElement(offset);\n return (lineElement.getStartOffset() + 1 == lineElement.getEndOffset());\n }",
"private Cell searchPowerUp() {\n for (Cell[] row : gameState.map) {\n for (Cell column : row) {\n if (column.powerUp != null)\n return column;\n }\n }\n\n return null;\n }",
"@Override\r\n\tpublic T search(T value) throws StackEmptyException {\n\t\tif(isempty()) throw new StackEmptyException(\"Pila vacia\");\r\n\t\treturn search(value, sentinel);\r\n\t}",
"private MNKCell findOneMoveWin(final MNKGameState winState) {\n for (MNKCell c : board.getFreeCells()) {\n MNKGameState result = board.markCell(c.i, c.j);\n board.unmarkCell();\n if (result == winState) return c;\n }\n return null;\n }",
"public char FirstAppearingOnce()\n {\n if(queue.isEmpty()){\n return '#';\n }else{\n return queue.peek();\n }\n }",
"public boolean isEmpty() {\n return cursor==-1 && lines.isEmpty();\n }",
"public E first() {\n if(isEmpty()){\n return null;\n }else{\n return header.getNext().getElement();\n }\n }",
"public TempTableHeaderCell getDefaultClause() {\r\n\t\t\tif (this.isEmptyNestedClauses()) {\r\n\t\t\t\tif (this.isDefault()) {\r\n\t\t\t\t\treturn this;\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// if this code is reached, this object should have been returned, but its not a default clause...\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// search for a default clause recursively by looking only the last nested if-clause\r\n\t\t\t\t// OBS. the last nested if-clause should be the default else-clause \r\n\t\t\t\treturn this.getNestedClauses().get(this.getNestedClauses().size() - 1).getDefaultClause();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"public char FirstAppearingOnce(){\n int minIndex = Integer.MAX_VALUE;\n char ch = '#';\n for(int i=0;i<256;i++){\n if(occurrence[i]>=0){\n if(occurrence[i]<minIndex){\n minIndex = occurrence[i];\n ch = (char)i;\n }\n }\n }\n if(minIndex==Integer.MAX_VALUE)\n return '#';\n else\n return ch;\n }",
"@Test\n\tpublic void testSearchWholeProgramNullAlligned() throws Exception {\n\t\tdialog = getDialog();\n\n\t\t// check to make sure the search selection button is checked and enabled\n\t\tsetAlignmentFieldValue(dialog, 4);\n\n\t\tStringTableProvider provider = performSearch();\n\t\tStringTableModel model = (StringTableModel) getInstanceField(\"stringModel\", provider);\n\t\ttoggleDefinedStateButtons(provider, false, true, false, false);\n\t\twaitForTableModel(model);\n\n\t\t// test the results size and the first entry and the last unicode and last string entry\n\t\t// they are in the list in a different order than they are in the dialog\n\t\t// the dialog shows them in address order\n\t\t// the array list has all the regular strings first and then all the unicode - each set in address order\n\n\t\t// first entry\n\t\tassertEquals(\"00401888\", getModelValue(model, 0, addressColumnIndex).toString());\n\t\t// last entry\n\t\tassertEquals(\"00405db4\",\n\t\t\tgetModelValue(model, model.getRowCount() - 1, addressColumnIndex).toString());\n\n\t}",
"boolean isEntriesFirst();",
"private static boolean isfirstColumnExclusion(final int currentPosition, final int candidateOffset){\n return BoardUtils.FIRST_COLUMN[currentPosition] && ((candidateOffset == -17) || (candidateOffset == -10) ||\n (candidateOffset == 6) || (candidateOffset == 15));\n }",
"public boolean isSetFirstCol()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FIRSTCOL$14) != 0;\n }\n }"
] | [
"0.6358531",
"0.63079935",
"0.6245879",
"0.61420774",
"0.6110192",
"0.59919",
"0.59622175",
"0.59205514",
"0.59182537",
"0.58314",
"0.5826492",
"0.57405245",
"0.5643728",
"0.5628146",
"0.5563577",
"0.55262893",
"0.5507919",
"0.550761",
"0.54688185",
"0.54542863",
"0.54376805",
"0.54107463",
"0.53914505",
"0.5387128",
"0.53650075",
"0.5352758",
"0.5347162",
"0.5340999",
"0.5326444",
"0.5323184",
"0.53172314",
"0.52862185",
"0.5277042",
"0.526379",
"0.526379",
"0.5263491",
"0.522188",
"0.5215723",
"0.5212168",
"0.52115",
"0.5204934",
"0.51947",
"0.51874197",
"0.5185183",
"0.5179058",
"0.5174459",
"0.5166944",
"0.51668596",
"0.51622266",
"0.51616055",
"0.51574403",
"0.5156728",
"0.5132641",
"0.5122472",
"0.51110613",
"0.51109684",
"0.50912106",
"0.5088569",
"0.5080291",
"0.50774056",
"0.50715405",
"0.5068328",
"0.5066301",
"0.50647587",
"0.5063143",
"0.5057101",
"0.5055084",
"0.5049933",
"0.5044926",
"0.50373787",
"0.5026554",
"0.50261474",
"0.5020904",
"0.50207335",
"0.5010145",
"0.500612",
"0.5005158",
"0.5004825",
"0.50048107",
"0.49967626",
"0.49947402",
"0.49888676",
"0.49888656",
"0.4988215",
"0.49879634",
"0.49828714",
"0.49764445",
"0.49751514",
"0.49719048",
"0.497132",
"0.49712563",
"0.49710625",
"0.49632263",
"0.4961371",
"0.4960388",
"0.49603122",
"0.49527332",
"0.49499446",
"0.494584",
"0.4929217",
"0.49209818"
] | 0.0 | -1 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.