query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
TODO Autogenerated method stub | public void onClick(View v) {
Intent i=new Intent(TimeOutActivity.this,Playlevel9Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Intent i=new Intent(TimeOutActivity.this,Playlevel10Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Intent i=new Intent(TimeOutActivity.this,playlevel11.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
Intent i=new Intent(TimeOutActivity.this,Playlevel12.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Intent i=new Intent(TimeOutActivity.this,Playlevel13.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Intent i=new Intent(TimeOutActivity.this,Playlevel14.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Intent i=new Intent(TimeOutActivity.this,Playlevel2Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
Intent i=new Intent(TimeOutActivity.this,Playlevel16Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Intent i=new Intent(TimeOutActivity.this,Playlevel17Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Intent i=new Intent(TimeOutActivity.this,Playlevel18Activity.class);finish();finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Intent i=new Intent(TimeOutActivity.this,Playlevel19Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
Intent i=new Intent(TimeOutActivity.this,Playlevel20Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click1=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel1Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click2=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel2Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click3=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel3Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
Values.click4=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel4Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click5=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel5Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click6=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel6Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click7=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel7Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
Values.click8=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel8Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click9=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel9Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click10=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel10Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click11=1;
Intent i=new Intent(TimeOutActivity.this,playlevel11.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
Values.click12=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel12.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click13=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel13.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click14=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel14.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click15=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel14.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
Values.click16=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel16Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click17=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel17Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click18=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel18Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public void onClick(View v) {
Values.click19=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel19Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | public void onClick(View v) {
Values.click20=1;
Intent i=new Intent(TimeOutActivity.this,Playlevel20Activity.class);finish();
startActivity(i);
//buttonSound.start();
} | {
"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 | public static void main(String[] args) {
Date d1=new Date();
System.out.println("date is"+d1);
} | {
"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 |
Initializes the controller class. | @Override
public void initialize(URL url, ResourceBundle rb) {
// TODO
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"public abstract void initController();",
"public Controller() {\n super();\n }",
"public Controller() {\n super();\n }",
"public Controller()\n\t{\n\n\t}",
"private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }",
"public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }",
"public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }",
"public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}",
"public Controller() {\n\t\tthis(null);\n\t}",
"public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}",
"private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}",
"public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}",
"protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }",
"public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }",
"protected CityController() {\r\n\t}",
"public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }",
"public ClientController() {\n }",
"public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}",
"public ListaSEController() {\n }",
"boolean InitController();",
"public MenuController() {\r\n\t \r\n\t }",
"@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}",
"public CustomerController() {\n\t\tsuper();\n\n\t}",
"public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}",
"public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}",
"private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}",
"public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}",
"public PlantillaController() {\n }",
"public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}",
"public IfController()\n\t{\n\n\t}",
"public TournamentController()\n\t{\n\t\tinitMap();\n\t}",
"public GeneralListVueController() {\n\n\t}",
"private ClientController() {\n }",
"public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}",
"private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }",
"public LogMessageController() {\n\t}",
"public LoginPageController() {\n\t}",
"public ControllerEnfermaria() {\n }",
"public ProvisioningEngineerController() {\n super();\n }",
"private StoreController(){}",
"public GenericController() {\n }",
"@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}",
"public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}",
"public MapController() {\r\n\t}",
"@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}",
"private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }",
"public WfController()\n {\n }",
"public Controller() {\n\n lastSearches = new SearchHistory();\n\n }",
"private ClientController(){\n\n }",
"public LoginController() {\r\n }",
"public PersonasController() {\r\n }",
"private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }",
"public StoreController() {\n }",
"public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}",
"public LoginController() {\r\n\r\n }",
"public final void init(final MainController mainController) {\n this.mainController = mainController;\n }",
"public SMPFXController() {\n\n }",
"public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }",
"public GUIController() {\n\n }",
"public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }",
"public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }",
"@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }",
"public ControllerTest()\r\n {\r\n }",
"public SearchedRecipeController() {\n }",
"public FilmOverviewController() {\n }",
"public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}",
"private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}",
"public RootLayoutController() {\n }",
"public MehController() {\n updateView(null);\n }",
"public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}",
"public WorkerController(){\r\n\t}",
"public TipoInformazioniController() {\n\n\t}",
"private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }",
"public ProductOverviewController() {\n }",
"public ProduktController() {\r\n }",
"public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}",
"private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }",
"public PersonLoginController() {\n }",
"public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}",
"public TaxiInformationController() {\n }",
"public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }",
"public CreateDocumentController() {\n }",
"public ControllerRol() {\n }",
"Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}",
"public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }",
"public void init() {\n \n }",
"public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}",
"public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}",
"public SessionController() {\n }",
"@Override\n\tprotected void setController() {\n\t\t\n\t}",
"public MainFrameController() {\n }",
"public LicenciaController() {\n }",
"public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }",
"public MotorController() {\n\t\tresetTachometers();\n\t}",
"public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }",
"public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}",
"public HomeController() {\n }",
"public HomeController() {\n }"
] | [
"0.8125658",
"0.78537387",
"0.78320265",
"0.776199",
"0.776199",
"0.76010174",
"0.74497247",
"0.7437837",
"0.7430714",
"0.742303",
"0.74057597",
"0.7341963",
"0.7327749",
"0.72634363",
"0.72230434",
"0.7102504",
"0.70575505",
"0.69873077",
"0.69721675",
"0.6944077",
"0.6912564",
"0.688884",
"0.6881247",
"0.68776786",
"0.68723065",
"0.6868163",
"0.68672407",
"0.6851157",
"0.6846883",
"0.6840198",
"0.68382674",
"0.68338853",
"0.6795918",
"0.67823315",
"0.6766882",
"0.67650586",
"0.6750353",
"0.6749068",
"0.6745654",
"0.6743223",
"0.67401046",
"0.6727867",
"0.6723379",
"0.6695514",
"0.6689967",
"0.66892517",
"0.66791916",
"0.6677345",
"0.66644365",
"0.6664202",
"0.66616154",
"0.66532296",
"0.66481894",
"0.6644939",
"0.6639398",
"0.6633576",
"0.66312426",
"0.662608",
"0.66258574",
"0.66105217",
"0.6606984",
"0.66024727",
"0.6597095",
"0.6580141",
"0.65786153",
"0.65752715",
"0.6574144",
"0.6551536",
"0.655142",
"0.6547574",
"0.6545647",
"0.6541474",
"0.6529243",
"0.65284246",
"0.6525593",
"0.6523344",
"0.6519832",
"0.65134746",
"0.65079254",
"0.6497635",
"0.64952356",
"0.6493943",
"0.6492926",
"0.6483847",
"0.6483173",
"0.648183",
"0.6479119",
"0.64789915",
"0.6476928",
"0.64734083",
"0.6465272",
"0.64616114",
"0.6444024",
"0.64379543",
"0.6431962",
"0.64292705",
"0.6425357",
"0.6417148",
"0.6416786",
"0.64161026",
"0.64161026"
] | 0.0 | -1 |
Return activity start events repository instance. | public ActivityStartEventRepository getActivityStartEventRepository() {
return activityStartEventRepository;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ActivityStartEventFactory getActivityStartEventFactory() {\n return activityStartEventFactory;\n }",
"StartEvent createStartEvent();",
"public abstract Event[] getInitialEvents();",
"public void startProject(ProjectWasStarted evt) throws InvalidProjectCommandException {\n UpdateProperties(evt.getProperties());\n validator.validate(this);\n state = ProjectState.STARTED;\n createdDate = new Date();\n ArrayList<Event> events = new ArrayList<Event>();\n events.add(new ProjectWasStarted(this, evt.getProperties()));\n }",
"@Override\n public StartEventsDetectionJobResult startEventsDetectionJob(StartEventsDetectionJobRequest request) {\n request = beforeClientExecution(request);\n return executeStartEventsDetectionJob(request);\n }",
"ConferenceScheduleBuilderService createEventsFromStartToLunch();",
"public PersistentLogEventListener() {\n\t\tthis(new EventDAO());\n\t}",
"protected fr.inria.phoenix.diasuite.framework.datatype.dailyactivityname.DailyActivityName getStartMonitoring() throws Exception {\n return _startMonitoring;\n }",
"public Observable getEvents(){\n QBRequestGetBuilder requestBuilder = new QBRequestGetBuilder();\n requestBuilder.sortDesc(\"startDate\");\n return makeObservable(requestBuilder);\n }",
"public OrgDay() {\n events = new LinkedList<>();\n }",
"@Provides\n public EventActivityContract.Presenter provideEventActivityPresenter() {\n return new EventActivityPresenter();\n }",
"public MessageRepository<LocalDateTime> getActivityMessagesRepository() {\n return activityMessagesRepository;\n }",
"public interface EventRepositoryService {\n\n EventDeploymentBuilder createDeployment();\n\n void deleteDeployment(String deploymentId);\n\n EventDefinitionQuery createEventDefinitionQuery();\n \n ChannelDefinitionQuery createChannelDefinitionQuery();\n\n /**\n * Changes the category of a deployment.\n * \n * @param deploymentId\n * The id of the deployment of which the category will be changed.\n * @param category\n * The new category.\n */\n void setDeploymentCategory(String deploymentId, String category);\n\n /**\n * Changes the tenant id of a deployment.\n * \n * @param deploymentId\n * The id of the deployment of which the tenant identifier will be changed.\n * @param newTenantId\n * The new tenant identifier.\n */\n void setDeploymentTenantId(String deploymentId, String newTenantId);\n \n /**\n * Changes the parent deployment id of a deployment. This is used to move deployments to a different app deployment parent.\n * \n * @param deploymentId\n * The id of the deployment of which the parent deployment identifier will be changed.\n * @param newParentDeploymentId\n * The new parent deployment identifier.\n */\n void changeDeploymentParentDeploymentId(String deploymentId, String newParentDeploymentId);\n\n List<String> getDeploymentResourceNames(String deploymentId);\n\n InputStream getResourceAsStream(String deploymentId, String resourceName);\n\n EventDeploymentQuery createDeploymentQuery();\n\n EventDefinition getEventDefinition(String eventDefinitionId);\n\n InputStream getEventDefinitionResource(String eventDefinitionId);\n\n void setEventDefinitionCategory(String eventDefinitionId, String category);\n \n ChannelDefinition getChannelDefinition(String channelDefinitionId);\n\n InputStream getChannelDefinitionResource(String channelDefinitionId);\n\n void setChannelDefinitionCategory(String channelDefinitionId, String category);\n \n EventModel getEventModelById(String eventDefinitionId);\n\n EventModel getEventModelByKey(String eventDefinitionKey);\n \n EventModel getEventModelByKey(String eventDefinitionKey, String tenantId);\n\n EventModel getEventModelByKeyAndParentDeploymentId(String eventDefinitionKey, String parentDeploymentId);\n\n EventModel getEventModelByKeyAndParentDeploymentId(String eventDefinitionKey, String parentDeploymentId, String tenantId);\n \n ChannelModel getChannelModelById(String channelDefinitionId);\n\n ChannelModel getChannelModelByKey(String channelDefinitionKey);\n \n ChannelModel getChannelModelByKey(String channelDefinitionKey, String tenantId);\n\n ChannelModel getChannelModelByKeyAndParentDeploymentId(String channelDefinitionKey, String parentDeploymentId);\n\n ChannelModel getChannelModelByKeyAndParentDeploymentId(String channelDefinitionKey, String parentDeploymentId, String tenantId);\n \n /**\n * Programmatically build and register a new {@link EventModel}.\n */\n EventModelBuilder createEventModelBuilder();\n \n InboundChannelModelBuilder createInboundChannelModelBuilder();\n \n OutboundChannelModelBuilder createOutboundChannelModelBuilder();\n}",
"public TimeDateComponents getEventStartDate() {\n return getEventDates().getStartDate();\n }",
"public static AddEventManager init() {\n if (instance == null) {\n instance = new AddEventManager();\n }\n return instance;\n }",
"public IEventCollector getSource();",
"AbstractList<Event> getEventByCreateDate(Date d){\r\n\t\treturn events;\r\n\t}",
"public List<Event> getEvents() {\n List<Event> events = new ArrayList<>();\n\n Query query = new Query(\"Event\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID eventId = UUID.fromString(idString);\n String speaker = (String) entity.getProperty(\"speaker\");\n String organization = (String) entity.getProperty(\"organization\");\n String eventDate = (String) entity.getProperty(\"eventDate\");\n Location location = (Location) entity.getProperty(\"location\");\n List<String> amenities = getAmenities(eventId);\n String externalLink = (String) entity.getProperty(\"externalLink\");\n PublicType publicType = (PublicType) entity.getProperty(\"publicType\");\n long ownerId = (long) entity.getProperty(\"ownerId\");\n List<ThreadComment> thread = getThread(eventId);\n // long timeStamp = (long) entity.getProperty(\"timestamp\");\n\n Event event = new Event(eventId, speaker, organization, eventDate, location, amenities, externalLink,\n publicType, ownerId);\n event.copyThread(thread);\n events.add(event);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading event.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return events;\n }",
"public interface Event extends Serializable {\n\n Long getEventId();\n\n String getEventTitle();\n\n String getEventDescription();\n\n Long getEventAssignerId();\n\n Date getOriginalEventStartDate();\n\n Date getEventStartDate();\n\n /***\n * Sets the new start date for new generating event.\n *\n * @param startEventDate\n */\n void setEventStartDate(Date startEventDate);\n\n Date getEventEndDate();\n\n /***\n * Sets the new end date for new generating event.\n *\n * @param endEventDate\n */\n void setEventEndDate(Date endEventDate);\n//\n// Date getEventRemindDate();\n//\n// /***\n// * Sets the new remind date for new generating event.\n// *\n// * @param endEventDate\n// */\n// void setEventRemindDate(Date endEventDate);\n\n /***\n * Return calendarId field generated with system calendar after sync it\n *\n * @return\n * @see SyncUtils\n */\n Long getCalendarId();\n\n /***\n * Sets calendarId field generated with system calendar after sync it\n *\n * @param calendarId\n * @see SyncUtils\n */\n void setCalendarId(Long calendarId);\n\n /***\n * @return repeat period for current entity instance\n * @see EventProperties.RepeatPeriod\n */\n @EventProperties.RepeatPeriod\n int getEventRepeatPeriod();\n\n /***\n * @return event icon url\n */\n String getEventIconUrl();\n\n /***\n * @return boolean which indicates is event editable\n */\n Boolean isEditable();\n\n /***\n * @return boolean which indicates is event length All day long\n */\n Boolean isAllDayEvent();\n}",
"public void start() {\n \t\tLog.info(\"Starting service of repository requests\");\n \t\ttry {\n \t\t\tresetNameSpace();\n \t\t} catch (Exception e) {\n \t\t\tLog.logStackTrace(Level.WARNING, e);\n \t\t\te.printStackTrace();\n \t\t}\n \t\t\n \t\tbyte[][]markerOmissions = new byte[2][];\n \t\tmarkerOmissions[0] = CommandMarkers.COMMAND_MARKER_REPO_START_WRITE;\n \t\tmarkerOmissions[1] = CommandMarkers.COMMAND_MARKER_BASIC_ENUMERATION;\n \t\t_markerFilter = new Exclude(markerOmissions);\n \t\t\n \t\t_periodicTimer = new Timer(true);\n \t\t_periodicTimer.scheduleAtFixedRate(new InterestTimer(), PERIOD, PERIOD);\n \n \t}",
"@Override\n public Cursor<Event> streamEvents() {\n ensureRatingCache();\n return cache.streamEvents();\n }",
"@Override\r\n public List<Events> findAllEvents() {\r\n return em.createNamedQuery(\"Events.findAll\").getResultList();\r\n }",
"public interface EventRepository\n{\n Event getEventToReplay(ObjectId recordingId, int offset);\n\n long countByRecordingId(ObjectId recordingId);\n\n void save(List<Event> lineEvents);\n\n long getAdded();\n}",
"public Calendar getStartDate() {\n \t\tCalendar cal = Calendar.getInstance();\n \t\tcal.setTimeInMillis(startTime);\n \t\t\n\t\treturn cal;\n\t}",
"public ActivityExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public Session(){\n\t\tdb = ALiteOrmBuilder.getInstance().openWritableDatabase();\n\t\texternalsCallbacks = new ArrayList<EntityListener>();\n\t}",
"EventChannelSource source();",
"private ArrayList<Item> getEvents() {\n\t\tArrayList<Item> events = Magical.getStorage().getList(\n\t\t\t\tStorage.EVENTS_INDEX);\n\t\treturn events;\n\t}",
"public XMLRunnable__Atom_Site__Start createXMLRunnable__Atom_Site__Start() {\n \t\treturn new XMLRunnable__Atom_Site__Start();\n \t}",
"@NotNull\n\tpublic Set<EventCreateRequest> getEvents() {\n\t\treturn events;\n\t}",
"public EventEntry getEventEntry();",
"public IEventLog getEventLog();",
"public List<Event> getEventsList() {\n List<Event> eventDetails = eventRepository.findAll();\n return eventDetails;\n }",
"static Map<Integer, Event> getEvents() {\n\t\treturn events;\n\t}",
"public DraggableBehavior setStartEvent(JsScopeUiEvent start)\n\t{\n\t\tthis.options.put(\"start\", start);\n\t\treturn this;\n\t}",
"public ArrayList<CampusEvent> fetchEvents() {\n SQLiteDatabase dbObj = getReadableDatabase();\n ArrayList<CampusEvent> entryList = new ArrayList<CampusEvent>();\n\n Cursor cursor = dbObj.query(TABLE_EVENT_ENTRIES, mColumnList, null,\n null, null, null, null);\n\n while (cursor.moveToNext()) {\n CampusEvent event = cursorToEvent(cursor);\n entryList.add(event);\n }\n\n cursor.close();\n dbObj.close();\n\n return entryList;\n }",
"ScheduledEvents getScheduledEvents();",
"public static void start(){\n int size = 1024;\n int max = 32;\n GenericObjectPoolConfig genericObjectPoolConfig = new GenericObjectPoolConfig();\n genericObjectPoolConfig.setMaxTotal(size * max);\n genericObjectPoolConfig.setMaxIdle(size * max);\n genericObjectPoolConfig.setMinIdle(size);\n long time = 1000 * 30;\n genericObjectPoolConfig.setMaxWaitMillis(time);\n genericObjectPoolConfig.setSoftMinEvictableIdleTimeMillis(time);\n\n updateEventCacheFactory = new UpdateEventCacheFactory(new UpdateEventPoolFactory(), genericObjectPoolConfig);\n }",
"EventUses createEventUses();",
"UncommittedEvents events() {\n var events = get().stream()\n .flatMap(segment -> segment.getEventList()\n .stream())\n .collect(toList());\n return UncommittedEvents.ofNone()\n .append(events);\n }",
"@Override\n\tpublic Set<Event> getEvents() {\n return events;\n }",
"public static FieldOfActivityAnnotationsFactory init() {\n\t\ttry {\n\t\t\tFieldOfActivityAnnotationsFactory theFieldOfActivityAnnotationsFactory = (FieldOfActivityAnnotationsFactory)EPackage.Registry.INSTANCE.getEFactory(FieldOfActivityAnnotationsPackage.eNS_URI);\n\t\t\tif (theFieldOfActivityAnnotationsFactory != null) {\n\t\t\t\treturn theFieldOfActivityAnnotationsFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new FieldOfActivityAnnotationsFactoryImpl();\n\t}",
"private void createEvents() {\n\t}",
"public List<Event> getCreatedEvents() {\n return createdEvents;\n }",
"public static Event startEvent(String accessToken, Integer eventId) {\n JsonObject jsonObject = new JsonObject();\n\n jsonObject.add(\"event\", new JsonObject());\n Log.i(Constants.TAG, \"jsonObject:\" + jsonObject.toString());\n\n try {\n JsonElement element = NetworkUtil.postWebService(jsonObject, NetworkUtil.EVENTS_URI + \"/\" + eventId + EVENTS_START_URI, accessToken);\n Log.i(Constants.TAG, \"result:\" + element.toString());\n if (element != null) {\n GsonBuilder jsonBuilder = new GsonBuilder();\n jsonBuilder.registerTypeAdapter(Event.class, new Event.EventDeserializer());\n Gson gson = jsonBuilder.create();\n\n Log.i(Constants.TAG, \"RETURNED : jsonObject:\" + element.getAsJsonObject().get(\"event\").toString());\n Event event = gson.fromJson(\n element.getAsJsonObject().get(\"event\"),\n Event.class\n );\n return event;\n } else {\n return null;\n }\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when starting event - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when starting event\", e);\n return null;\n } // end try-catch\n }",
"ConferenceScheduleBuilderService startEvent();",
"private List<Request> getStartRequest () {\n String startUrl = \"http://www.yidianzixun.com/home/q/news_list_for_channel?channel_id=sc4&cstart=20&cend=30&infinite=true&refresh=1&__from__=pc&multi=5&appid=web_yidian\";\n List<Request> list = new ArrayList<>();\n list.add(new Request(startUrl).putExtra(RequestExtraKey.KEY_BEGIN_DATE, getStartTime()));\n return list;\n }",
"@Override\n public List<Event> searchByTitleStartWith(String filter) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.title LIKE :filter \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"filter\", filter + \"%\");\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }",
"EventUse createEventUse();",
"ActivityLifecycleTracker getActivityLifecycleTracker() {\n return activityLifecycleTracker;\n }",
"public static RecordingRepository getInstance() {\r\n if (_instance == null) {\r\n _instance = new RecordingRepository();\r\n }\r\n return _instance;\r\n }",
"public LiveData<Event> getEvent() {\n return event;\n }",
"public static MainPersistence getMainPersistence(\n Activity activity, Bundle savedInstanceState, ListEventListener<ListMetadata> listener)\n throws VException, SyncbaseServer.StartException {\n return new SyncbaseMain(activity, savedInstanceState, listener);\n }",
"public interface FirstRunActivityObserver {\n /** See {@link #createPostNativeAndPoliciesPageSequence}. */\n void onCreatePostNativeAndPoliciesPageSequence(FirstRunActivity caller);\n\n /** See {@link #acceptTermsOfService}. */\n void onAcceptTermsOfService(FirstRunActivity caller);\n\n /** See {@link #setCurrentItemForPager}. */\n void onJumpToPage(FirstRunActivity caller, int position);\n\n /** Called when First Run is completed. */\n void onUpdateCachedEngineName(FirstRunActivity caller);\n\n /** See {@link #abortFirstRunExperience}. */\n void onAbortFirstRunExperience(FirstRunActivity caller);\n\n /** See {@link #exitFirstRun()}. */\n void onExitFirstRun(FirstRunActivity caller);\n }",
"public static EventHook getInstance() {\n\n if (instance == null) {\n instance = new EventHook();\n }\n\n return instance;\n\n }",
"private void initEvents(){\n ArrayList<Event> en = new ArrayList();\n en.add(new Event_MessangerOfGods(this.village));\n en.add(new Event_PaganPriest(this.village));\n this.events = en;\n }",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface EventEntryRepository extends JpaRepository<EventEditionEntry,Long> {\n\n\t@EntityGraph(value=\"EventEntryPartial\", type=EntityGraphType.LOAD)\n\t@Transactional(readOnly=true)\n\tStream<EventEditionEntry> streamAllByIdNotNull();\n\n\tList<EventEditionEntry> findByEventEditionIdAndRaceNumber(Long eventEditionId, String raceNumber);\n\n\t@Query(\"SELECT e FROM EventEditionEntry e WHERE e.eventEdition.id = ?1 ORDER BY cast(e.raceNumber as integer) ASC, e.entryName ASC\")\n\tList<EventEditionEntry> findEventEditionEntries(Long eventEditionId);\n\n\t@Query(\"SELECT e FROM EventEditionEntry e WHERE e.id IN ?1 ORDER BY e.eventEdition.eventDate ASC\")\n\tList<EventEditionEntry> findEntriesInList(List<Long> ids);\n\n\tvoid deleteByEventEdition(EventEdition eventEdition);\n\n}",
"private Menu getStartMenuItem() {\r\n\t\tif (startMenuItem == null) {\r\n\t\t\tstartMenuItem = new Menu(\"Start DB\");\r\n\t\t\tfor (final String name : selectDB()) {\r\n\t\t\t\tMenuItem item =\r\n\t\t\t\t\t\tnew MenuItem(name.substring(0, name.lastIndexOf(\".properties\")));\r\n\t\t\t\titem.addActionListener(new ActionListener() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\t\t\tstopDB();\r\n\t\t\t\t\t\tstartDB(name.substring(0, name.lastIndexOf(\".properties\")));\r\n\t\t\t\t\t\tgetStopMenuItem().setEnabled(true);\r\n\t\t\t\t\t\tgetNewMenuItem().setEnabled(false);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\tstartMenuItem.add(item);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn startMenuItem;\r\n\t}",
"EventChannel create();",
"public interface EventService {\n\n /**\n * Retrieves event by id\n *\n * @param id identifier of event\n * @return founded event\n */\n Optional<Event> getEventById(Long id);\n\n /**\n * Retrieves all events\n *\n * @return all founded events\n */\n List<Event> getAllEvents();\n\n /**\n * Retrieves event by title\n *\n * @param title title of event\n * @return All events found by specified title\n */\n List<Event> getAllEventsByTitle(String title);\n\n /**\n * Creates event\n *\n * @param event event for creating\n * @return created event\n */\n Event createEvent(Event event);\n\n /**\n * Updates event\n *\n * @param event event for updating\n * @return updated event\n */\n Event updateEvent(Event event);\n\n /**\n * Removes event by specified id\n *\n * @param id identifier of event\n */\n void deleteEvent(Long id);\n\n}",
"java.util.Calendar getSearchWindowStart();",
"public interface ActivityService {\n //分页展示首页的活动列表的接口\n PageInfo<HomeActivity> getHomeActivityPageInfo(\n Integer page, Integer rows, double coordLong, double coordLat);\n\n //搜索活动列表\n //分页返回搜索结果\n PageInfo<HomeActivity> getHomeActivityPageInfo(\n Integer page, Integer rows, double coordLong, double coordLat,\n String activityName);\n\n //根据活动类别返回对应活动列表\n //分页返回结果\n PageInfo<HomeActivity> getHomeActivityPageInfo(\n Integer page, Integer rows, double coordLong, double coordLat,\n String category, Integer collation, String district);\n\n //根据活动id和经纬度返回包装有志愿者等信息的活动详情\n ActivityDetails getActivityById(\n Integer id, double coordLong, double coordLat);\n\n //创建活动\n boolean createActivity(Activity activity);\n\n //根据志愿者id返回该志愿者参与的活动列表\n PageInfo<ActivityDetails> getActivityPageInfoByVolunteerId(\n Integer page, Integer rows, Integer id);\n\n //根据志愿者id返回该志愿者的服务历史\n PageInfo<ActivityDetails> getHistoricalActivityPageInfo(\n Integer page, Integer rows, Integer id);\n\n //根据组织id返回该组织的所有活动\n PageInfo<ActivityDetails> getActivityPageInfoByOrganizationId(\n Integer page, Integer rows, Integer id);\n\n //根据活动id和状态id更新活动\n String updateActivityStatusById(\n Integer id, Integer activityStatusId);\n}",
"public Set<EventTO> getEvents() {\n\n Iterable<Event> events = eventRepository.findAll();\n LOGGER.info(\"Returning all events\");\n return mapperService.convertToEventTO(events);\n\n }",
"WithCreate withSource(EventChannelSource source);",
"public ActionMeta getStartActionMeta() {\n return startActionMeta;\n }",
"protected abstract void startMonitoring(fr.inria.phoenix.diasuite.framework.datatype.dailyactivityname.DailyActivityName activity) throws Exception;",
"@Profile(\"actuators-extended\")\n @Bean\n public AuditEventRepository auditEventRepository() {\n return new InMemoryAuditEventRepository();\n }",
"public LogEvent newInstance()\n {\n return new LogEvent();\n }",
"public static ApproxsimEvent getSelected(Object source) {\n return new ApproxsimEvent(source, SELECTED);\n }",
"@Inject\n public EventService(BackgroundTaskRunnerService taskRunner) {\n this.taskRunner = taskRunner;\n final ConcurrentMap<EventType, List<EventListener<? extends Event>>> tmp = new ConcurrentHashMap<>();\n for (EventType eventType : EventType.values()) {\n tmp.put(eventType, new CopyOnWriteArrayList<>());\n }\n this.eventListeners = tmp;\n }",
"public static LoginActivity getInstance() {\n\t\t\treturn instance;\n\t\t}",
"public JpaAdminEventEntity() {\n this.metadata = new JpaAdminEventMetadata();\n }",
"@Override\n public <E extends Event> Cursor<E> streamEvents(Class<E> type) {\n ensureRatingCache();\n return cache.streamEvents(type);\n }",
"protected ActivityModule getActivityModule() {\n return new ActivityModule(this);\n }",
"public VotingStartEvent(Arena arena) {\n this.arena = arena;\n }",
"public static synchronized ChoseActivity getInstance() {\n return mInstance;\n }",
"@Bean\n @RequestScope\n public PersonRepository create(final IESJCEventStore eventStore) {\n return new PersonRepository(eventStore);\n }",
"public LiveData<List<DatabaseObject<Event>>> getAttendingEvents() {\n return mCachedEventsLiveData;\n }",
"public ArrayList<Event> getEvents(){return new ArrayList<Event>(events);}",
"synchronized public CommitLog start()\n {\n if (started)\n return this;\n\n try\n {\n segmentManager.start();\n executor.start();\n started = true;\n } catch (Throwable t)\n {\n started = false;\n throw t;\n }\n return this;\n }",
"public State getStart() {\n \t\treturn start;\n \t}",
"protected ScllActivity iGetActivity() {\n\t\treturn (ScllActivity) getActivity();\n\t}",
"public Date getStart() {\n return start;\n }",
"public Repo() {\n //this.app = Init.application;\n }",
"SyncStart createSyncStart();",
"MinmaxEntity getStart();",
"IEvent[] getEvents();",
"@Provides @PerActivity Activity activity() {\n return this.activity;\n }",
"public void start() {\n LOG.entering(CLASS_NAME, \"start\");\n if (state.compareAndSet(STOPPING, STARTED)) {\n // Keep same thread running if STOPPING\n }\n else if (state.compareAndSet(STOPPED, STARTED)) {\n new Thread(this, \"XoaEventProcessor\").start();\n }\n }",
"public Eventd() {\n }",
"public ScheduleEvent()\n\t{\n\n\t}",
"public interface Events {\n\n /**\n * Archive has stored the entities within a SIP.\n * <p>\n * Indicates that a SIP has been sent to the archive. May represent an add,\n * or an update.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Number of entities archived</dd>\n * <dt>eventTarget</dt>\n * <dd>every archived entity</dd>\n * </dl>\n * </p>\n */\n public static final String ARCHIVE = \"archive\";\n\n /**\n * Signifies that an entity has been identified as a member of a specific\n * batch load process.\n * <p>\n * There may be an arbitrary number of independent events signifying the\n * same batch (same outcome, date, but different sets of targets). A unique\n * combination of date and outcome (batch label) identify a batch.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>Batch label/identifier</dd>\n * <dt>eventTarget</dt>\n * <dd>Entities in a batch</dd>\n * </dl>\n * </p>\n */\n public static final String BATCH = \"batch\";\n\n /**\n * File format characterization.\n * <p>\n * Indicates that a format has been verifiably characterized. Format\n * characterizations not accompanied by a corresponding characterization\n * event can be considered to be unverified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>format, in the form \"scheme formatId\" (whitespace separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of characterized file</dd>\n * </dl>\n * </p>\n */\n public static final String CHARACTERIZATION_FORMAT =\n \"characterization.format\";\n\n /**\n * Advanced file characterization and/or metadata extraction.\n * <p>\n * Indicates that some sort of characterization or extraction has produced a\n * document containing file metadata.\n * </p>\n * *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>id of File containing metadata</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File the metadata describes</dd>\n * </dl>\n */\n public static final String CHARACTERIZATION_METADATA =\n \"characterization.metadata\";\n\n /**\n * Initial deposit/transfer of an item into the DCS, preceding ingest.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>SIP identifier uid</dd>\n * <dt>eventTarget</dt>\n * <dd>id of deposited entity</dd>\n * </dl>\n * </p>\n */\n public static final String DEPOSIT = \"deposit\";\n\n /**\n * Content retrieved by dcs.\n * <p>\n * Represents the fact that content has been downloaded/retrieved by the\n * dcs.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstances\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been downloaded</dd>\n * </dl>\n */\n public static final String FILE_DOWNLOAD = \"file.download\";\n\n /**\n * uploaaded/downloaded file content resolution.\n * <p>\n * Indicates that the reference URI to a unit of uploaded or downloaded file\n * content has been resolved and replaced with the DCS file access URI.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>reference_URI</code> 'to' <code>dcs_URI</code></dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been resolved</dd>\n * </dl>\n */\n public static final String FILE_RESOLUTION_STAGED = \"file.resolution\";\n\n /**\n * Indicates the uploading of file content.\n * <p>\n * Represents the physical receipt of bytes from a client.\n * </p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>http header-like key/value pairs representing circumstanced\n * surrounding upload</dd>\n * <dt>eventTarget</dt>\n * <dd>id of File whose staged content has been uploaded</dd>\n * </dl>\n */\n public static final String FILE_UPLOAD = \"file.upload\";\n\n /**\n * Fixity computation/validation for a particular File.\n * <p>\n * Indicates that a particular digest has been computed for given file\n * content. Digest values not accompanied by a corresponding event may be\n * considered to be un-verified.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd>computed digest value of the form \"alorithm value\" (whitepsace\n * separated)</dd>\n * <dt>eventTarget</dt>\n * <dd>id of digested file</dd>\n * </dl>\n * </p>\n */\n public static final String FIXITY_DIGEST = \"fixity.digest\";\n\n /**\n * Assignment of an identifier to the given entity, replacing an\n * existing/temporary id. *\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventOutcome</dt>\n * <dd><code>old_identifier</code> 'to' <code>new_identifier</code></dd>\n * <dt>eventTarget</dt>\n * <dd>new id of object</dd>\n * </dl>\n */\n public static final String ID_ASSIGNMENT = \"identifier.assignment\";\n\n /**\n * Marks the start of an ingest process.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_START = \"ingest.start\";\n\n /**\n * Signifies a successful ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_SUCCESS = \"ingest.complete\";\n\n /**\n * Signifies a failed ingest outcome.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of all entities an ingest SIP</dd>\n * </dl>\n * </p>\n */\n public static final String INGEST_FAIL = \"ingest.fail\";\n\n /**\n * Signifies that a feature extraction or transform has successfully\n * occurred.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM = \"transform\";\n\n /**\n * Signifies that a feature extraction or transform failed.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of a DeliverableUnit or Collection</dd>\n * </dl>\n * </p>\n */\n public static final String TRANSFORM_FAIL = \"transform.fail\";\n\n /**\n * Signifies a file has been scanned by the virus scanner.\n * <p>\n * Indicates that a file has been scanned by a virus scanner. There could be\n * more than one event for a file.\n * </p>\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of file whose content was scanned</dd>\n * </dl>\n * </p>\n */\n public static final String VIRUS_SCAN = \"virus.scan\";\n\n /**\n * Signifies an new deliverable unit is being ingested as an update to the target deliverable unit.\n * <p>\n * <dl>\n * <dt>eventType</dt>\n * <dd>{@value}</dd>\n * <dt>eventTarget</dt>\n * <dd>id of the deliverable unit being updated</dd>\n * </dl>\n * </p>\n */\n public static final String DU_UPDATE = \"du.update\";\n\n}",
"public AccessRequestEventsHistory accessRequestEventsHistory() {\n return this.accessRequestEventsHistory;\n }",
"public nl.webservices.www.soap.InsolvencyPublications getEvents() {\n return events;\n }",
"public Screen getStartScreen() {\r\n \t\r\n \tString screen = getIntent().getStringExtra(\"screen\");\r\n \tif (screen == null) {\r\n \t\r\n \t\treturn new MenuScreen(this);\r\n \t\t\r\n \t} else if (screen.equals(\"demo\")) {\r\n \t\t\r\n \t\treturn new LoadingScreen(this, null, getIntent().getStringExtra(\"demo\"));\r\n \t}\r\n \t\r\n \treturn null;\r\n }",
"private EventController()\n {\n events = new ArrayList<>();\n currentCalendar = Calendar.getInstance();\n }",
"Optional<EventActivityDTO> findOne(Long id);",
"public DateTime getStart() {\r\n return new DateTime(getStartMillis(), getChronology());\r\n }",
"public int startEvent() {\n ++eventCount;\n return barrierToken;\n }",
"public static LogType EVENT()\n {\n if (g_oEvent == null)\n {\n try\n {\n g_oEvent = new LogType(\"EVENT\", 30);\n }\n catch (Goliath.Exceptions.InvalidParameterException ex)\n {}\n }\n return g_oEvent;\n }"
] | [
"0.68615526",
"0.50662154",
"0.49558493",
"0.48693997",
"0.48576912",
"0.4831208",
"0.4808396",
"0.47937444",
"0.47882086",
"0.4749428",
"0.47376162",
"0.47301835",
"0.47160316",
"0.469749",
"0.46857622",
"0.466579",
"0.46418673",
"0.46209803",
"0.45763308",
"0.45663744",
"0.4551493",
"0.45357767",
"0.45275685",
"0.45154628",
"0.45057902",
"0.45036152",
"0.4489925",
"0.4488848",
"0.4483526",
"0.44698063",
"0.44591463",
"0.44334728",
"0.4432993",
"0.44233707",
"0.44179258",
"0.44140792",
"0.4411031",
"0.439988",
"0.43931434",
"0.43896514",
"0.438963",
"0.43846083",
"0.43730816",
"0.43718442",
"0.43657035",
"0.4365332",
"0.43624303",
"0.435227",
"0.43514556",
"0.4343658",
"0.43429822",
"0.4334826",
"0.43332297",
"0.4332708",
"0.43324795",
"0.43311659",
"0.43264914",
"0.4320701",
"0.4314241",
"0.43075663",
"0.43050238",
"0.4286328",
"0.42790172",
"0.42757964",
"0.42747238",
"0.42682812",
"0.4267139",
"0.42641047",
"0.42604294",
"0.42576778",
"0.42559087",
"0.42484692",
"0.42477372",
"0.42429197",
"0.42427823",
"0.42418778",
"0.42402187",
"0.42363232",
"0.42359287",
"0.4235862",
"0.42353413",
"0.4233657",
"0.4231402",
"0.42303732",
"0.42297325",
"0.42279124",
"0.42277396",
"0.4226247",
"0.422614",
"0.42126337",
"0.4202849",
"0.42025128",
"0.42010164",
"0.4191629",
"0.41915032",
"0.41914615",
"0.41907495",
"0.4189855",
"0.41838652",
"0.41810155"
] | 0.80857223 | 0 |
Return activity start events factory instance. | public ActivityStartEventFactory getActivityStartEventFactory() {
return activityStartEventFactory;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"StartEvent createStartEvent();",
"ConferenceScheduleBuilderService createEventsFromStartToLunch();",
"public static FieldOfActivityAnnotationsFactory init() {\n\t\ttry {\n\t\t\tFieldOfActivityAnnotationsFactory theFieldOfActivityAnnotationsFactory = (FieldOfActivityAnnotationsFactory)EPackage.Registry.INSTANCE.getEFactory(FieldOfActivityAnnotationsPackage.eNS_URI);\n\t\t\tif (theFieldOfActivityAnnotationsFactory != null) {\n\t\t\t\treturn theFieldOfActivityAnnotationsFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new FieldOfActivityAnnotationsFactoryImpl();\n\t}",
"EventUse createEventUse();",
"public ActivityStartEventRepository getActivityStartEventRepository() {\n return activityStartEventRepository;\n }",
"EventUses createEventUses();",
"public LogEvent newInstance()\n {\n return new LogEvent();\n }",
"public static ToUseTimeLineFactory init() {\n\t\ttry {\n\t\t\tToUseTimeLineFactory theToUseTimeLineFactory = (ToUseTimeLineFactory)EPackage.Registry.INSTANCE.getEFactory(ToUseTimeLinePackage.eNS_URI);\n\t\t\tif (theToUseTimeLineFactory != null) {\n\t\t\t\treturn theToUseTimeLineFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ToUseTimeLineFactoryImpl();\n\t}",
"protected abstract StartViewFactory getStartViewFactory();",
"public static AddEventManager init() {\n if (instance == null) {\n instance = new AddEventManager();\n }\n return instance;\n }",
"ConferenceScheduleBuilderService createEventsFromLunchToNetwork();",
"Event createEvent();",
"Event createEvent();",
"public static Event startEvent(String accessToken, Integer eventId) {\n JsonObject jsonObject = new JsonObject();\n\n jsonObject.add(\"event\", new JsonObject());\n Log.i(Constants.TAG, \"jsonObject:\" + jsonObject.toString());\n\n try {\n JsonElement element = NetworkUtil.postWebService(jsonObject, NetworkUtil.EVENTS_URI + \"/\" + eventId + EVENTS_START_URI, accessToken);\n Log.i(Constants.TAG, \"result:\" + element.toString());\n if (element != null) {\n GsonBuilder jsonBuilder = new GsonBuilder();\n jsonBuilder.registerTypeAdapter(Event.class, new Event.EventDeserializer());\n Gson gson = jsonBuilder.create();\n\n Log.i(Constants.TAG, \"RETURNED : jsonObject:\" + element.getAsJsonObject().get(\"event\").toString());\n Event event = gson.fromJson(\n element.getAsJsonObject().get(\"event\"),\n Event.class\n );\n return event;\n } else {\n return null;\n }\n } catch (APICallException e) {\n Log.e(Constants.TAG, \"HTTP ERROR when starting event - STATUS:\" + e.getMessage(), e);\n return null;\n } catch (IOException e) {\n Log.e(Constants.TAG, \"IOException when starting event\", e);\n return null;\n } // end try-catch\n }",
"private void createEvents() {\n\t}",
"EventChannel create();",
"CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }",
"public static EventsEventsFragment newInstance() {\n EventsEventsFragment fragment = new EventsEventsFragment();\n return fragment;\n }",
"ConferenceScheduleBuilderService startEvent();",
"public static EnergySchedulingFactory init() {\n\t\ttry {\n\t\t\tEnergySchedulingFactory theEnergySchedulingFactory = (EnergySchedulingFactory)EPackage.Registry.INSTANCE.getEFactory(EnergySchedulingPackage.eNS_URI);\n\t\t\tif (theEnergySchedulingFactory != null) {\n\t\t\t\treturn theEnergySchedulingFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new EnergySchedulingFactoryImpl();\n\t}",
"public XMLRunnable__Atom_Site__Start createXMLRunnable__Atom_Site__Start() {\n \t\treturn new XMLRunnable__Atom_Site__Start();\n \t}",
"public FieldOfActivityAnnotationsFactoryImpl() {\n\t\tsuper();\n\t}",
"public static Factory factory() {\n return ext_accdt::new;\n }",
"public static InputFewStepsFactory init() {\n\t\ttry {\n\t\t\tInputFewStepsFactory theInputFewStepsFactory = (InputFewStepsFactory)EPackage.Registry.INSTANCE.getEFactory(InputFewStepsPackage.eNS_URI);\n\t\t\tif (theInputFewStepsFactory != null) {\n\t\t\t\treturn theInputFewStepsFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new InputFewStepsFactoryImpl();\n\t}",
"public ActivityDurationFactory getActivityDurationFactory() {\n return activityDurationFactory;\n }",
"public static AndroidFactory init() {\n\t\ttry {\n\t\t\tAndroidFactory theAndroidFactory = (AndroidFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.eyal.fr/android\"); \n\t\t\tif (theAndroidFactory != null) {\n\t\t\t\treturn theAndroidFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new AndroidFactoryImpl();\n\t}",
"EventChannel create(Context context);",
"public static ExecutionFactory init() {\n\t\ttry {\n\t\t\tExecutionFactory theExecutionFactory = (ExecutionFactory)EPackage.Registry.INSTANCE.getEFactory(ExecutionPackage.eNS_URI);\n\t\t\tif (theExecutionFactory != null) {\n\t\t\t\treturn theExecutionFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ExecutionFactoryImpl();\n\t}",
"public abstract Event[] getInitialEvents();",
"public static CommandsFactoryImpl init() {\r\n\t\ttry {\r\n\t\t\tCommandsFactoryImpl theCommandsFactory = (CommandsFactoryImpl) EPackage.Registry.INSTANCE\r\n\t\t\t\t\t.getEFactory(CommandsPackageImpl.eNS_URI);\r\n\t\t\tif (theCommandsFactory != null) {\r\n\t\t\t\treturn theCommandsFactory;\r\n\t\t\t}\r\n\t\t} catch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new CommandsFactoryImpl();\r\n\t}",
"BasicEvents createBasicEvents();",
"public static EWorkflowFactory init() {\n\t\ttry {\n\t\t\tEWorkflowFactory theEWorkflowFactory = (EWorkflowFactory)EPackage.Registry.INSTANCE.getEFactory(EWorkflowPackage.eNS_URI);\n\t\t\tif (theEWorkflowFactory != null) {\n\t\t\t\treturn theEWorkflowFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new EWorkflowFactoryImpl();\n\t}",
"public void startFactory() {\n if (!isStarted) {\n logger.info(\"Starting SessionListenerFactory.\");\n APIEventBus.getInstance().subscribe(this);\n isStarted = true;\n }\n }",
"static Event init(final String propertyName)\n {\n final LTProperties properties = Context.configuration().properties;\n final String defaultLogLevel = properties.getProperty(\"events.logging.default.level\", \"debug\");\n final String logLevel = properties.getProperty(\"events.logging.\" + propertyName + \".level\", defaultLogLevel).toLowerCase();\n\n final Event event;\n switch (logLevel) {\n case \"error\":\n event = new ERROR();\n break;\n\n case \"warn\":\n event = new WARN();\n break;\n\n case \"info\":\n event = new INFO();\n break;\n\n case \"debug\":\n event = new DEBUG();\n break;\n\n default:\n throw new IllegalArgumentException(\"Log level '\" + logLevel + \"' not supported.\");\n }\n\n return event;\n }",
"public ScheduleEvent()\n\t{\n\n\t}",
"public\n CreateEvent()\n {}",
"AndroidFactory getAndroidFactory();",
"WithCreate withSource(EventChannelSource source);",
"public Map<EventKey, EventMethod> createEventMap() {\n\t\tfinal Map<EventKey, EventMethod> eventMap = new EnumMap<>(EventKey.class);\n\t\tfinal Pair<Map<String, Object>, Set<Class<?>>> eventPair = prepareEventPair();\n\n\t\tfor (Class<?> eventClass : eventPair.getSecond()) {\n\t\t\tfor (Method eventMethod : prepareEventMethods(eventClass)) {\n\t\t\t\teventMap.put(eventMethod.getAnnotation(EventMapping.class).key(),\n\t\t\t\t\t\tnew EventMethod(eventPair.getFirst().get(eventClass.getName()), eventMethod));\n\t\t\t}\n\t\t}\n\t\treturn eventMap;\n\t}",
"public static <T extends UnixTime> StartOfDay definedBy(ChronoFunction<CalendarDate, T> event) {\n\n return new FunctionalStartOfDay<T>(event);\n\n }",
"public static TimedStateMachineFactory init() {\n\t\ttry {\n\t\t\tTimedStateMachineFactory theTimedStateMachineFactory = (TimedStateMachineFactory) EPackage.Registry.INSTANCE\n\t\t\t\t\t.getEFactory(TimedStateMachinePackage.eNS_URI);\n\t\t\tif (theTimedStateMachineFactory != null) {\n\t\t\t\treturn theTimedStateMachineFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new TimedStateMachineFactoryImpl();\n\t}",
"public static AugmentedfsmFactory init() {\n\t\ttry {\n\t\t\tAugmentedfsmFactory theAugmentedfsmFactory = (AugmentedfsmFactory)EPackage.Registry.INSTANCE.getEFactory(AugmentedfsmPackage.eNS_URI);\n\t\t\tif (theAugmentedfsmFactory != null) {\n\t\t\t\treturn theAugmentedfsmFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new AugmentedfsmFactoryImpl();\n\t}",
"Start createStart();",
"public CoreBreakpoint.Event getNewInstance () {\n return new LineBreakpoint ();\n }",
"public static EventHook getInstance() {\n\n if (instance == null) {\n instance = new EventHook();\n }\n\n return instance;\n\n }",
"public static GseqFactory init() {\n\t\ttry {\n\t\t\tGseqFactory theGseqFactory = (GseqFactory)EPackage.Registry.INSTANCE.getEFactory(GseqPackage.eNS_URI);\n\t\t\tif (theGseqFactory != null) {\n\t\t\t\treturn theGseqFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new GseqFactoryImpl();\n\t}",
"private PSStartServerFactory() {\n if(instance == null)\n instance = new PSStartServerFactory();\n }",
"ConferenceScheduleBuilderService createEventsFromNetworkToEnd();",
"public static Intent makeIntent(Context context) {\n return new Intent(context, AddEvent.class);\n }",
"public static LogEvent createEmptyEvent()\n\t{\n\t\treturn new LogEvent();\n\t}",
"MakeflowFactory getMakeflowFactory();",
"public static FailureLogEvent create(final long pStartTime)\n {\n return new FailureLogEvent(pStartTime); \n }",
"public EventTimeline() {\n this(0, 0, 91, 9);\n }",
"public Eventd() {\n }",
"public static LogType EVENT()\n {\n if (g_oEvent == null)\n {\n try\n {\n g_oEvent = new LogType(\"EVENT\", 30);\n }\n catch (Goliath.Exceptions.InvalidParameterException ex)\n {}\n }\n return g_oEvent;\n }",
"public static GoogleanalyticsFactory init() {\n\t\ttry {\n\t\t\tGoogleanalyticsFactory theGoogleanalyticsFactory = (GoogleanalyticsFactory)EPackage.Registry.INSTANCE.getEFactory(GoogleanalyticsPackage.eNS_URI);\n\t\t\tif (theGoogleanalyticsFactory != null) {\n\t\t\t\treturn theGoogleanalyticsFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new GoogleanalyticsFactoryImpl();\n\t}",
"public static AnnotatedActionFactory getActionFactory() {\n/* 84 */ return actionFactory;\n/* */ }",
"ScheduledEvents getScheduledEvents();",
"public static UseCaseDslFactory init()\n {\n try\n {\n UseCaseDslFactory theUseCaseDslFactory = (UseCaseDslFactory)EPackage.Registry.INSTANCE.getEFactory(UseCaseDslPackage.eNS_URI);\n if (theUseCaseDslFactory != null)\n {\n return theUseCaseDslFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new UseCaseDslFactoryImpl();\n }",
"@Override\n public StartEventsDetectionJobResult startEventsDetectionJob(StartEventsDetectionJobRequest request) {\n request = beforeClientExecution(request);\n return executeStartEventsDetectionJob(request);\n }",
"public static final PSAAClientActionFactory getInstance()\n {\n if(ms_instance == null)\n ms_instance = new PSAAClientActionFactory();\n return ms_instance;\n }",
"public static IPCGCallDetailCreator instance()\r\n {\r\n if (instance == null)\r\n {\r\n instance = new IPCGCallDetailCreator();\r\n }\r\n return instance;\r\n }",
"@Override\n public void onActivityPreCreated(@NonNull Activity activity, @Nullable Bundle savedInstanceState) {\n Log.d(TAG, \"onActivityPreCreated\");\n if(activity instanceof NfcCompatActivity) {\n if(activity instanceof AppCompatActivity) {\n\n NfcCompatActivity nfcActivity = (NfcCompatActivity) activity;\n\n NfcFactory factory = new NfcFactory(nfcAdapter, () -> activity, transitionFlag);\n\n nfcActivity.onPreCreated(factory);\n\n AppCompatActivity appCompatActivity = (AppCompatActivity)activity;\n\n appCompatActivity.getLifecycle().addObserver(new NfcLifecycleEventObserver(nfcActivity, factory));\n } else {\n throw new IllegalArgumentException(\"Expected \" + activity.getClass().getName() + \" instanceof of \" + AppCompatActivity.class.getName());\n }\n }\n }",
"public static BehaviourFactory init() {\n\t\ttry {\n\t\t\tBehaviourFactory theBehaviourFactory = (BehaviourFactory)EPackage.Registry.INSTANCE.getEFactory(BehaviourPackage.eNS_URI);\n\t\t\tif (theBehaviourFactory != null) {\n\t\t\t\treturn theBehaviourFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new BehaviourFactoryImpl();\n\t}",
"public static EventController getInstance()\n {\n if(controller == null)\n {\n controller = new EventController();\n }\n return controller;\n }",
"public Activator() {\r\n\t}",
"private synchronized void startEventThread() {\n if (eventThread == null) {\n eventThread = new EventHandlingThread(context);\n eventThread.setDaemon(true);\n eventThread.start();\n }\n }",
"public static ServiceFactory init() {\n\t\ttry {\n\t\t\tServiceFactory theServiceFactory = (ServiceFactory)EPackage.Registry.INSTANCE.getEFactory(ServicePackage.eNS_URI);\n\t\t\tif (theServiceFactory != null) {\n\t\t\t\treturn theServiceFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ServiceFactoryImpl();\n\t}",
"@Override\n protected ReactActivityDelegate createReactActivityDelegate() {\n return new ReactActivityDelegate(this, getMainComponentName()) {\n @Override\n protected @Nullable Bundle getLaunchOptions() {\n Bundle initialProperties = new Bundle();\n initialProperties.putBoolean(\"startingDayOfWeekSunday\", AppConstants.StartingDayOfWeekSunday);\n return initialProperties;\n }\n };\n }",
"public DescribeEventsRequest() {}",
"public CompletableFuture<ServerScheduledEvent> create() {\n return delegate.create();\n }",
"private List<Event> generateEvents() {\n\t\tList<Event> events = new ArrayList<Event>();\n\t\tint numEvents = random.nextInt(2) + 1;\n\t\tfor (int i = 0; i < numEvents; i++) {\n\t\t\tEvent newEvent = null;\n\t\t\tdo {\n\t\t\t\tnewEvent = new Event(db);\n\t\t\t} while (events.contains(newEvent)); // make sure only one instance of an event occurs per turn\n\t\t\tevents.add(newEvent);\t\t\t\n\t\t}\n\t\treturn events;\n\t}",
"@Provides\n public EventActivityContract.Presenter provideEventActivityPresenter() {\n return new EventActivityPresenter();\n }",
"@Override\n public void onCreate() {\n HandlerThread thread = new HandlerThread(\"ServiceStartArguments\", THREAD_PRIORITY_BACKGROUND);\n thread.start();\n Log.d(\"LOG19\", \"DiscoveryService onCreate\");\n\n this.mLocalBroadCastManager = LocalBroadcastManager.getInstance(this);\n // Get the HandlerThread's Looper and use it for our Handler\n mServiceLooper = thread.getLooper();\n\n mServiceHandler = new ServiceHandler(mServiceLooper);\n }",
"public ServiceEvent() {\n // eventSenderID and eventSenderClass are initialized by the OperatingSystem! \n }",
"public EventHandle createStartDetect(){\n\n startDetectEventName = name+\"_startDetectEventName\";\n\n startDetectEvent = ECAAgent.getDefaultECAAgent().createPrimitiveEvent(\n startDetectEventName, // Event name\n \"MAKEFITS.Track\", // class Name\n EventModifier.END, // Event Modifier\n \"void startDetect()\", // Method signature\n this); // Instance (track1, track2,...,or trackN)\n return (PrimitiveEventHandle) startDetectEvent;\n }",
"public Event getEvent(int id) {\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor res = db.query(TABLE_NAME,\n new String[]{COL_1, COL_2, COL_3, COL_4, COLOR},\n ID + \" = '\" + id + \"'\",\n null, null, null, null);\n if (res.moveToNext()) {\n Calendar start = Calendar.getInstance();\n Calendar end = Calendar.getInstance();\n start.setTimeInMillis(res.getLong(0));\n end.setTimeInMillis(res.getLong(1));\n return new Event(start, end, res.getString(2), res.getString(3), id, res.getInt(4));\n } else {\n return null;\n }\n }",
"@Override\n public void onActivityCreated(Activity activity, Bundle savedInstanceState) {\n eventManager.fire(Event.ACTIVITY_ON_CREATE, activity);\n }",
"ASPMFactory getASPMFactory();",
"public Event() {\r\n\r\n\t}",
"public static AutomatizacionrevisionFactory init() {\r\n\t\ttry {\r\n\t\t\tAutomatizacionrevisionFactory theAutomatizacionrevisionFactory = (AutomatizacionrevisionFactory)EPackage.Registry.INSTANCE.getEFactory(AutomatizacionrevisionPackage.eNS_URI);\r\n\t\t\tif (theAutomatizacionrevisionFactory != null) {\r\n\t\t\t\treturn theAutomatizacionrevisionFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new AutomatizacionrevisionFactoryImpl();\r\n\t}",
"ActivityConcept createActivityConcept();",
"private List<Request> getStartRequest () {\n String startUrl = \"http://www.yidianzixun.com/home/q/news_list_for_channel?channel_id=sc4&cstart=20&cend=30&infinite=true&refresh=1&__from__=pc&multi=5&appid=web_yidian\";\n List<Request> list = new ArrayList<>();\n list.add(new Request(startUrl).putExtra(RequestExtraKey.KEY_BEGIN_DATE, getStartTime()));\n return list;\n }",
"public static MainActivity instance() {\n Log.d(TAG, \" instance(): called\");\n return inst;\n }",
"@NonNull\n public Trigger build() {\n if (UAStringUtil.isEmpty(eventName)) {\n return new Trigger(type, goal, null);\n }\n\n JsonPredicate predicate = JsonPredicate.newBuilder()\n .setPredicateType(JsonPredicate.AND_PREDICATE_TYPE)\n .addMatcher(JsonMatcher.newBuilder()\n .setKey(CustomEvent.EVENT_NAME)\n .setValueMatcher(ValueMatcher.newValueMatcher(JsonValue.wrap(eventName)))\n .build())\n .build();\n return new Trigger(type, goal, predicate);\n }",
"@Override\n public void onCreate() {\n HandlerThread thread = new HandlerThread(\"ServiceStartArguments\");\n thread.start();\n\n // Get the HandlerThread's Looper and use it for our Handler\n mLooper = thread.getLooper();\n mServiceHandle = new ServiceHandle(mLooper);\n }",
"public IGenScheduleHandler create() throws CreateException, RemoteException;",
"@Override\n\tpublic void onCreate() {\n\t\t\n\t\tHandlerThread thread = new HandlerThread(\"ServiceStartArguments\",\n\t\t\t\tProcess.THREAD_PRIORITY_BACKGROUND);\n\t\tthread.start();\n\t\t// Get the HandlerThread's Looper and use it for our Handler\n\t\tmServiceLooper = thread.getLooper();\n\t\tmServiceHandler = new ServiceHandler(mServiceLooper);\n\t}",
"AbstractList<Event> getEventByCreateDate(Date d){\r\n\t\treturn events;\r\n\t}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public Event() {\n\t}",
"public EventBus build() {\n return new EventBus(this);\n }",
"public synchronized void startInstance() {\n if (this.computationScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.computationScheduler).start();\n }\n if (this.ioScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.ioScheduler).start();\n }\n if (this.newThreadScheduler instanceof SchedulerLifecycle) {\n ((SchedulerLifecycle) this.newThreadScheduler).start();\n }\n }",
"UsageEvents.Event buildEvent(String packageName, String className) {\n UsageEvents.Event event = new UsageEvents.Event();\n event.mPackage = getCachedStringRef(packageName);\n if (className != null) {\n event.mClass = getCachedStringRef(className);\n }\n return event;\n }",
"void firstStartEvents(boolean startedFromService, boolean useHandler)\n {\n PPApplicationStatic.logE(\"DataWrapper.firstStartEvents\", \"startedFromService=\"+startedFromService);\n\n //if (startedFromService)\n //invalidateEventList(); // force load form db\n\n if (!startedFromService) {\n EventStatic.setEventsBlocked(context, false);\n synchronized (eventList) {\n //noinspection ForLoopReplaceableByForEach\n for (Iterator<Event> it = eventList.iterator(); it.hasNext(); ) {\n Event event = it.next();\n if (event != null)\n event._blocked = false;\n }\n }\n DatabaseHandler.getInstance(context).unblockAllEvents();\n EventStatic.setForceRunEventRunning(context, false);\n }\n\n synchronized (eventList) {\n //noinspection ForLoopReplaceableByForEach\n for (Iterator<Event> it = eventList.iterator(); it.hasNext(); ) {\n Event event = it.next();\n if (event != null) {\n event.setSensorsWaiting();\n DatabaseHandler.getInstance(context).updateAllEventSensorsPassed(event);\n }\n }\n }\n\n resetAllEventsInDelayStart(true);\n resetAllEventsInDelayEnd(true);\n\n if (!DataWrapperStatic.getIsManualProfileActivation(false, context)) {\n PPApplicationStatic.logE(\"DataWrapper.firstStartEvents\", \"no manual profile activation, restart events\");\n }\n else\n {\n PPApplicationStatic.logE(\"DataWrapper.firstStartEvents\", \"manual profile activation, activate profile\");\n\n activateProfileAtFirstStart();\n }\n startEventsAtFirstStart(startedFromService, useHandler);\n }",
"@Override\n public TimerEvent createActivity(TBoundaryEvent src, Hashtable keyedContext){\n\n return new TimerEvent();\n\n }",
"public Activity() {\n }",
"@Override\r\n public void onCreate() {\n HandlerThread thread = new HandlerThread(\"ServiceStartArguments\",\r\n 10);\r\n thread.start();\r\n\r\n // Get the HandlerThread's Looper and use it for our Handler\r\n serviceLooper = thread.getLooper();\r\n serviceHandler = new ServiceHandler(serviceLooper);\r\n }",
"public AutoEvents() {\n super();\n _autoEventList = new ArrayList();\n }",
"public void createServiceRequest() {\n getMainActivity().startService(new Intent(getMainActivity(), RequestService.class));\n }"
] | [
"0.63732904",
"0.6063291",
"0.58732134",
"0.55942816",
"0.5553568",
"0.5496348",
"0.5488782",
"0.54568774",
"0.5376588",
"0.53258234",
"0.5293014",
"0.52916354",
"0.52916354",
"0.5250642",
"0.52463496",
"0.5209997",
"0.5184589",
"0.5171486",
"0.516924",
"0.51086515",
"0.5095156",
"0.5070498",
"0.50450516",
"0.50078404",
"0.49802154",
"0.49775127",
"0.49770087",
"0.49648547",
"0.4956744",
"0.49495038",
"0.49297047",
"0.49223498",
"0.49197933",
"0.49061823",
"0.4868573",
"0.48637486",
"0.4859197",
"0.4807744",
"0.48066214",
"0.48028195",
"0.47899517",
"0.47848514",
"0.47818416",
"0.4779299",
"0.47659907",
"0.4751532",
"0.47467393",
"0.4745179",
"0.47319964",
"0.47271934",
"0.47228155",
"0.47197512",
"0.47074357",
"0.47070375",
"0.47009405",
"0.46990544",
"0.46931377",
"0.4682068",
"0.4676167",
"0.4674479",
"0.4670456",
"0.4665471",
"0.46595868",
"0.46553734",
"0.4654725",
"0.46380338",
"0.4631441",
"0.4624694",
"0.46237338",
"0.4616362",
"0.4613212",
"0.4608801",
"0.46060953",
"0.45975256",
"0.4595058",
"0.45896125",
"0.45733",
"0.4573051",
"0.4569172",
"0.45562294",
"0.45526865",
"0.45500925",
"0.45473713",
"0.45381626",
"0.45350054",
"0.45345333",
"0.45317256",
"0.45296514",
"0.4528179",
"0.45215178",
"0.45201063",
"0.45186904",
"0.4506434",
"0.45051396",
"0.4487206",
"0.44859126",
"0.44836745",
"0.4481429",
"0.44752097",
"0.4472712"
] | 0.78959876 | 0 |
Return activity duration factory instance. | public ActivityDurationFactory getActivityDurationFactory() {
return activityDurationFactory;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ActivityDurationCalculator getActivityDurationCalculator() {\n return activityDurationCalculator;\n }",
"public com.vodafone.global.er.decoupling.binding.request.DurationType createDurationType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.DurationTypeImpl();\n }",
"Duration getDuration();",
"public Duration() {\n this(0, 0, 0, 0, 0, 0.0);\n }",
"public Duration()\n\t{\n\t}",
"long getDuration();",
"public int getDuration();",
"@NoProxy\n public BwDuration makeDurationBean() {\n return BwDuration.makeDuration(getDuration());\n }",
"int getDuration();",
"int getDuration();",
"public static TimeTakenLogEntry create() {\n return builder().build();\n }",
"public TimeEntry duration(Integer duration) {\n this.duration = duration;\n return this;\n }",
"public interface Duration {\n /*\n * Constants used to avoid creating objects for common durations\n */\n public static final RealDuration INSTANT = RealDuration.milliseconds(0);\n public static final RealDuration ONE_MILLISECOND = RealDuration.milliseconds(1);\n public static final RealDuration ONE_SECOND = RealDuration.seconds(1);\n public static final RealDuration ONE_MINUTE = RealDuration.minutes(1);\n public static final RealDuration ONE_HOUR = RealDuration.hours(1);\n public static final RealDuration ONE_DAY = RealDuration.days(1);\n public static final RealDuration ONE_WEEK = RealDuration.weeks(1);\n public static final RealDuration ONE_MONTH = RealDuration.months(1);\n public static final RealDuration ONE_YEAR = RealDuration.years(1);\n\n /*\n * Actual interface methods\n */\n\n RealDuration asRealDuration();\n\n TickDuration asTickDuration();\n\n /*\n * Inner classes to allow grammar such as new Duration.Minutes(12)\n */\n\n public static class Milliseconds extends RealDuration {\n public Milliseconds(long millis) {\n super(millis);\n }\n }\n\n public static class Seconds extends RealDuration {\n public Seconds(long num) {\n super((long) (num * SECONDS_TO_MILLIS));\n }\n }\n\n public static class Minutes extends RealDuration {\n public Minutes(long num) {\n super((long) (num * MINUTES_TO_MILLIS));\n }\n }\n\n public static class Hours extends RealDuration {\n public Hours(long num) {\n super((long) (num * HOURS_TO_MILLIS));\n }\n }\n\n public static class Days extends RealDuration {\n public Days(long num) {\n super((long) (num * DAYS_TO_MILLIS));\n }\n }\n\n public static class Weeks extends RealDuration {\n public Weeks(long num) {\n super((long) (num * WEEKS_TO_MILLIS));\n }\n }\n\n public static class Months extends RealDuration {\n public Months(long num) {\n super((long) (num * MONTHS_TO_MILLIS));\n }\n }\n\n public static class Years extends RealDuration {\n public Years(long num) {\n super((long) (num * YEARS_TO_MILLIS));\n }\n }\n\n public static class Decades extends RealDuration {\n public Decades(long num) {\n super((long) (num * DECADES_TO_MILLIS));\n }\n }\n\n public static class Centuries extends RealDuration {\n public Centuries(long num) {\n super((long) (num * CENTURIES_TO_MILLIS));\n }\n }\n\n public static class Ticks extends TickDuration {\n public Ticks(long num) {\n super(num);\n }\n }\n}",
"Double getScheduleDuration();",
"public int getDuration() { return duration; }",
"Duration(Integer duration){\n\t\t_minimum = duration;\n\t\t_maximum = duration;\n\t\t_range = new Range(_minimum, _maximum);\n\t}",
"public static AbsTime factory(long t)\n {\n // The value to return.\n AbsTime result;\n\n // Check for ASAP and NEVER.\n if (t == ASAP_CODE) {\n // No need to make a new object.\n result = ASAP;\n } else if (t == NEVER_CODE) {\n // No need to make a new object.\n result = NEVER;\n } else {\n // Not a special case. Make a new object.\n result = new AbsTime(t);\n }\n\n return result;\n }",
"DurationTypeEnum getDurationType();",
"public static AbsTime factory() throws Time.Ex_TimeNotAvailable\n {\n return new AbsTime();\n }",
"public Duration getDurationFrom(Date startDate);",
"TimeResource maxDuration();",
"public static Factory factory() {\n return ext_accdt::new;\n }",
"Posn getDuration();",
"public DurationBean getEventDuration() {\n// return getEventDates().getDuration();\n DurationBean db = getEventDates().getDuration();\n if (debug()) {\n debug(\"Event duration=\" + db);\n }\n\n return db;\n }",
"TimerType createTimerType();",
"int getRunningDuration();",
"public ActivityStartEventFactory getActivityStartEventFactory() {\n return activityStartEventFactory;\n }",
"public long getDuration() { throw new RuntimeException(\"Stub!\"); }",
"long duration();",
"public Rational getDuration ()\r\n {\r\n if (this.isWholeDuration()) {\r\n return null;\r\n } else {\r\n Rational raw = getRawDuration();\r\n\r\n if (tupletFactor == null) {\r\n return raw;\r\n } else {\r\n return raw.times(tupletFactor);\r\n }\r\n }\r\n }",
"public static void duration(){\n Instant instant1 = Instant.ofEpochSecond(3);\n Instant instant2 = Instant.ofEpochSecond(3, 0);\n\n// Duration d1 = Duration.between(time1, time2);\n// Duration d2 = Duration.between(dateTime1, dateTime2);\n Duration d3 = Duration.between(instant1, instant2);\n }",
"public int getDuration() {return this.duration;}",
"public int getDuration() {\n return duration;\n }",
"public int getDuration() {\n return duration;\n }",
"public int getDuration() {\n return duration;\n }",
"public int getDuration() {\n return duration_;\n }",
"public long getDuration()\n {\n return duration;\n }",
"public static ActivityMetric createEntity(EntityManager em) {\n ActivityMetric activityMetric = new ActivityMetric();\n return activityMetric;\n }",
"public int getDuration() {\n return duration_;\n }",
"public Long getDuration()\r\n {\r\n return duration;\r\n }",
"private Tasks createDurationTaskForFullInputCommand(Tasks task, String descriptionOfTask, String startDate,\n String startTime, String endDate, String endTime) {\n if (checkValidDate(startDate) && checkValidDate(endDate) && checkValidTime(startTime) && checkValidTime(endTime)) {\n if (startDate.equals(endDate)) { //creates a Duration object using createDurationTaskForSameDayEvent\n task = createDurationTaskForSameDayEvent(task, descriptionOfTask, startDate, startTime, endTime);\n } else if (checkStartDateBeforeEndDate(startDate, endDate)) { //creates a Duration object for (start,start,end,end) if checkStartDateBeforeEndDate true\n Duration durationPeriod = new Duration(startDate, startTime, endDate, endTime);\n task = new DurationTask(descriptionOfTask, durationPeriod);\n } else { //creates a Duration object for (end,end,start,start) if checkStartDateBeforeEndDate false\n Duration durationPeriod = new Duration(endDate, endTime, startDate, startTime);\n task = new DurationTask(descriptionOfTask, durationPeriod);\n }\n }\n return task;\n }",
"private Tasks createDurationTaskForSameDayEvent(Tasks task, String descriptionOfTask, String date, String startTime, String endTime) {\n if (checkValidDate(date) && checkValidTime(startTime) && checkValidTime(endTime)) {\n if (checkStartTimeBeforeEndTime(startTime, endTime)) {\n Duration durationPeriod = new Duration(date, startTime, date, endTime);\n task = new DurationTask(descriptionOfTask, durationPeriod);\n } else {\n Duration durationPeriod = new Duration(date, endTime, date, startTime);\n task = new DurationTask(descriptionOfTask, durationPeriod);\n }\n }\n return task;\n }",
"public Duration getDuration(Rule rule) throws DatatypeConfigurationException {\n Constraint constraint = rule.getConstraint().get(0);\n if (constraint.getRightOperand().getType().equals(\"xsd:duration\")) {\n String duration = constraint.getRightOperand().getValue();\n return DatatypeFactory.newInstance().newDuration(duration);\n } else {\n return null;\n }\n }",
"protected int getDuration() {\n try {\n return Utils.viewToInt(this.durationInput);\n }\n catch (NumberFormatException ex) {\n return Integer.parseInt(durationInput.getHint().toString());\n }\n }",
"public long getDuration() {\n return duration;\n }",
"public long getDuration() {\n return duration;\n }",
"public Builder setDuration(int value) {\n bitField0_ |= 0x00000008;\n duration_ = value;\n onChanged();\n return this;\n }",
"public static AbsTime factory(AbsTime t)\n {\n // The value to return.\n AbsTime result;\n\n if (t.isASAP() || t.isNEVER()) {\n // No need to make a new object.\n result = t;\n } else {\n // Not a special case. Make a new object.\n result = new AbsTime(t);\n }\n\n return result;\n }",
"public Integer getDuration() {\n return duration;\n }",
"public static AbsTime factory(RelTime dt) throws Time.Ex_TimeNotAvailable, IllegalArgumentException\n {\n return new AbsTime(dt);\n }",
"@Override\n public TimerEvent createActivity(TBoundaryEvent src, Hashtable keyedContext){\n\n return new TimerEvent();\n\n }",
"public void setDuration( Long duration );",
"public int getDuration() {\n return this.duration;\n }",
"public static Activity createEntity(EntityManager em) {\n Activity activity = new Activity().name(DEFAULT_NAME).logo(DEFAULT_LOGO).logoContentType(DEFAULT_LOGO_CONTENT_TYPE).description(DEFAULT_DESCRIPTION).price(DEFAULT_PRICE)\n .durationMinutes(DEFAULT_DURATION_MINUTES).preDurationMinutes(DEFAULT_PRE_DURATION_MINUTES).postDurationMinutes(DEFAULT_POST_DURATION_MINUTES).isPrivate(DEFAULT_IS_PRIVATE)\n .colorCode(DEFAULT_COLOR_CODE).cancellationTime(DEFAULT_CANCELLATION_TIME);\n return activity;\n }",
"Double getActualDuration();",
"public int getDuration() {\n\t\treturn duration;\n\t}",
"private static int getDuration() {\n\t\tStack<Object> stack = b.getCurrentWorkFrame();\n\t\tObject obj = stack.peek();\n\t\tif (Simulator.DEBUG)\n\t\t\tSystem.out.println(b.printStack() + \"...\");\n\t\tif (obj instanceof WorkFrame)\n\t\t\tthrow new RuntimeException(\"***ERROR: the next obj on stack should\"\n\t\t\t\t\t+ \"be an activity! WF_Sim.getDuration\" + obj.toString());\n\t\tActivityInstance ai = (ActivityInstance) stack.peek();\n\t\tif (ai.getActivity() instanceof CompositeActivity) {\n\t\t\tCompositeActivity comp = (CompositeActivity) ai.getActivity();\n\t\t\tif (frameInImpassed(comp))\n\t\t\t\treturn -1;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"***ERROR: push shouldn't have ended \" +\n\t\t\t\t\t\"with a composite on top\");\n\t\t}\n\t\treturn ai.getDuration();\n\t}",
"private Tasks createDurationTask(Tasks task, String descriptionOfTask, ArrayList<String> timeArray) {\n if (timeArray.size() == 3) {\n String date = timeArray.get(0);\n String startTime = timeArray.get(1);\n String endTime = timeArray.get(2);\n task = createDurationTaskForSameDayEvent(task, descriptionOfTask, date, startTime, endTime);\n } else {\n String startDate = timeArray.get(0);\n String startTime = timeArray.get(1);\n String endDate = timeArray.get(2);\n String endTime = timeArray.get(3);\n task = createDurationTaskForFullInputCommand(task, descriptionOfTask, startDate, startTime, endDate, endTime);\n }\n return task;\n }",
"protected abstract T create(final double idealStartTime);",
"private static void testDuration() {\n LocalTime time1 = LocalTime.of(15, 20, 38);\n LocalTime time2 = LocalTime.of(21, 8, 49);\n\n LocalDateTime dateTime1 = time1.atDate(LocalDate.of(2014, 5, 27));\n LocalDateTime dateTime2 = time2.atDate(LocalDate.of(2015, 9, 15));\n\n Instant i1 = Instant.ofEpochSecond(1_000_000_000);\n Instant i2 = Instant.now();\n\n // create duration between two points\n Duration d1 = Duration.between(time1, time2);\n Duration d2 = Duration.between(dateTime1, dateTime2);\n Duration d3 = Duration.between(i1, i2);\n Duration d4 = Duration.between(time1, dateTime2);\n\n // create duration from some random value\n Duration threeMinutes;\n threeMinutes = Duration.ofMinutes(3);\n threeMinutes = Duration.of(3, ChronoUnit.MINUTES);\n }",
"private Simulator(final int duration) {\n this(duration, duration);\n }",
"public static Simulator createSimulator(final int duration) {\n return new Simulator(duration);\n }",
"public TimeSpan getDuration() throws ServiceLocalException {\n\t\treturn (TimeSpan) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(AppointmentSchema.Duration);\n\t}",
"java.lang.String getDuration();",
"private AlertDuration(String argument, String description) {\n super(argument, description);\n if (parameterLookUp == null) {\n parameterLookUp = new HashMap<>();\n }\n parameterLookUp.put(argument, this);\n }",
"public double getDuration () {\n return duration;\n }",
"public Activity() {\n title = \"\";\n comment = \"\";\n startTime = (new GregorianCalendar()).getTime();\n endTime = (new GregorianCalendar()).getTime();\n }",
"public Call(String id, int duration) {\n\t\tif(duration < MIN_DURATION_TIME || duration > MAX_DURATION_TIME) \n\t\t\tthrow new IllegalArgumentException();\n\t\tthis.id = id;\n\t\tthis.duration = duration;\n\t}",
"public GeneralizedEpisodeCounterWithExpiry()\n {\n }",
"RealDuration asRealDuration();",
"public int getDuration( ) {\nreturn numberOfPayments / MONTHS;\n}",
"MetricsFactory getMetricsFactory();",
"public static int getDurationByTf(int tf, int exp)\n {\n switch (tf)\n {\n case 1:\n case 5:\n case 15:\n return tf*exp;\n case 30:\n case 60:\n case 240:\n return (tf/60)*exp;\n case 1440:\n return (tf/1440)*exp;\n }\n\n return 0;\n }",
"public void setDuration(int duration){\n this.duration = duration;\n }",
"public SimpleSandTimer(final TemporalAmount duration, final Supplier<Instant> now) {\n this(now.get().plus(duration), now);\n }",
"public PeriodFactoryImpl() {\n\t\tsuper();\n\t}",
"TimeSpent createTimeSpent();",
"public void setDuration(int val){this.duration = val;}",
"public int getDuration() {\n\t\treturn this.Duration;\n\t}",
"public void duration() {\n\t\tDuration daily = Duration.of(1, ChronoUnit.DAYS);\n\t\tDuration hourly = Duration.of(1, ChronoUnit.HOURS);\n\t\tDuration everyMinute = Duration.of(1, ChronoUnit.MINUTES);\n\t\tDuration everyTenSeconds = Duration.of(10, ChronoUnit.SECONDS);\n\t\tDuration everyMilli = Duration.of(1, ChronoUnit.MILLIS);\n\t\tDuration everyNano = Duration.of(1, ChronoUnit.NANOS);\n\n\t\tLocalDate date = LocalDate.of(2015, 5, 25);\n\t\tPeriod period = Period.ofDays(1);\n\t\tDuration days = Duration.ofDays(1);\n\t\tSystem.out.println(date.plus(period)); // 2015–05–26\n\t\t// System.out.println(date.plus(days)); // Unsupported unit: Seconds\n\t}",
"public long getDuration() {\n return mDuration;\n }",
"public Service(String name, int duration) {\n setName(name);\n setDuration(duration);\n }",
"public FreeTime(String description, LocalDateTime startDT, long duration) {\n super(description, startDT, duration);\n }",
"public static TimedActiveTeams getInstance()\r\n {\r\n if(uniqueInstance == null)\r\n {\r\n uniqueInstance = new TimedActiveTeams();\r\n }\r\n return uniqueInstance;\r\n }",
"public TimedStateMachineFactoryImpl() {\n\t\tsuper();\n\t}",
"public static ToUseTimeLineFactory init() {\n\t\ttry {\n\t\t\tToUseTimeLineFactory theToUseTimeLineFactory = (ToUseTimeLineFactory)EPackage.Registry.INSTANCE.getEFactory(ToUseTimeLinePackage.eNS_URI);\n\t\t\tif (theToUseTimeLineFactory != null) {\n\t\t\t\treturn theToUseTimeLineFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ToUseTimeLineFactoryImpl();\n\t}",
"public FreeTime(String name, String description, LocalDateTime startDT, long duration) {\n super(name, description, startDT, duration);\n }",
"void setDuration(int duration);",
"public Rectangle getDurationBounds(int callIndex, int context, long duration) {\n if (duration <= 0) {\n duration = 1;\n } else if (duration > mMaxDuration) {\n duration = mMaxDuration;\n }\n\n int x = LEFT_MARGIN + ((mMaxDurationLength + CONTEXT_PADDING) * context);\n int y = (callIndex/mNumCallsPerPixel) + TOP_MARGIN + mHeaderMargin;\n int w = (int) (duration * mScale);\n int h = 1;\n\n return new Rectangle(x, y, w, h);\n }",
"public static Metrics createDetached() {\n return new Metrics();\n }",
"public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }",
"public void setDuration(int duration) {\n this.duration = duration;\n }",
"public void setDuration(int duration) {\n this.duration = duration;\n }",
"public Long getDurationMs();",
"public DayPeriod() {\n\t}",
"public DescribeEventsRequest withDuration(Integer duration) {\n this.duration = duration;\n return this;\n }",
"private Duration getDurationFromTimeView() {\n String text = timeView.getText().toString();\n String[] values = text.split(\":\");\n\n int hours = Integer.parseInt(values[0]);\n int minutes = Integer.parseInt(values[1]);\n int seconds = Integer.parseInt(values[2]);\n\n return Utils.hoursMinutesSecondsToDuration(hours, minutes, seconds);\n }",
"void create(SportActivity activity);",
"public DeltaSeconds getDuration() { \n return duration ;\n }",
"public static Wait duration(Duration duration)\r\n\t{\r\n\t\treturn new Wait(WaitTarget.withDuration(duration));\r\n\t}"
] | [
"0.6322303",
"0.57749414",
"0.5507211",
"0.54982847",
"0.54854405",
"0.5414738",
"0.54089755",
"0.53638643",
"0.5349265",
"0.5349265",
"0.5312338",
"0.53023195",
"0.51423454",
"0.5108513",
"0.5104011",
"0.5102647",
"0.509568",
"0.5093194",
"0.5082281",
"0.5069681",
"0.50374496",
"0.5029101",
"0.5023769",
"0.50075376",
"0.49996156",
"0.49845576",
"0.49833348",
"0.49769893",
"0.49227145",
"0.49153307",
"0.48959643",
"0.48912847",
"0.48839086",
"0.48839086",
"0.48839086",
"0.48593184",
"0.4857322",
"0.48524204",
"0.48521557",
"0.4842169",
"0.48249123",
"0.48240077",
"0.48202598",
"0.48139733",
"0.48035097",
"0.48031077",
"0.47974527",
"0.47972664",
"0.4781735",
"0.4756622",
"0.4756182",
"0.4741804",
"0.47390002",
"0.47354156",
"0.472624",
"0.47246438",
"0.47233254",
"0.4719873",
"0.46824616",
"0.46808207",
"0.46727365",
"0.4657763",
"0.4656694",
"0.46461818",
"0.46453235",
"0.4645151",
"0.46444952",
"0.4642112",
"0.46399167",
"0.46365848",
"0.4628228",
"0.46170205",
"0.4614933",
"0.46132463",
"0.46076372",
"0.4596544",
"0.45934764",
"0.45928183",
"0.45847037",
"0.45739162",
"0.45682043",
"0.45670074",
"0.45622122",
"0.4555471",
"0.45524135",
"0.4548833",
"0.45468742",
"0.454352",
"0.45414728",
"0.45412087",
"0.45307657",
"0.45301306",
"0.45301306",
"0.45203462",
"0.45195183",
"0.45142826",
"0.45131975",
"0.45068008",
"0.44999558",
"0.44962084"
] | 0.80135417 | 0 |
Return activity duration calculator instance. | public ActivityDurationCalculator getActivityDurationCalculator() {
return activityDurationCalculator;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ActivityDurationFactory getActivityDurationFactory() {\n return activityDurationFactory;\n }",
"Duration getDuration();",
"long getDuration();",
"int getDuration();",
"int getDuration();",
"public int getDuration();",
"private static int getDuration() {\n\t\tStack<Object> stack = b.getCurrentWorkFrame();\n\t\tObject obj = stack.peek();\n\t\tif (Simulator.DEBUG)\n\t\t\tSystem.out.println(b.printStack() + \"...\");\n\t\tif (obj instanceof WorkFrame)\n\t\t\tthrow new RuntimeException(\"***ERROR: the next obj on stack should\"\n\t\t\t\t\t+ \"be an activity! WF_Sim.getDuration\" + obj.toString());\n\t\tActivityInstance ai = (ActivityInstance) stack.peek();\n\t\tif (ai.getActivity() instanceof CompositeActivity) {\n\t\t\tCompositeActivity comp = (CompositeActivity) ai.getActivity();\n\t\t\tif (frameInImpassed(comp))\n\t\t\t\treturn -1;\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"***ERROR: push shouldn't have ended \" +\n\t\t\t\t\t\"with a composite on top\");\n\t\t}\n\t\treturn ai.getDuration();\n\t}",
"protected int getDuration() {\n try {\n return Utils.viewToInt(this.durationInput);\n }\n catch (NumberFormatException ex) {\n return Integer.parseInt(durationInput.getHint().toString());\n }\n }",
"Posn getDuration();",
"private Duration getDurationFromTimeView() {\n String text = timeView.getText().toString();\n String[] values = text.split(\":\");\n\n int hours = Integer.parseInt(values[0]);\n int minutes = Integer.parseInt(values[1]);\n int seconds = Integer.parseInt(values[2]);\n\n return Utils.hoursMinutesSecondsToDuration(hours, minutes, seconds);\n }",
"int getRunningDuration();",
"public int getDuration( ) {\nreturn numberOfPayments / MONTHS;\n}",
"Double getActualDuration();",
"public int getDuration() { return duration; }",
"long duration();",
"public Rational getDuration ()\r\n {\r\n if (this.isWholeDuration()) {\r\n return null;\r\n } else {\r\n Rational raw = getRawDuration();\r\n\r\n if (tupletFactor == null) {\r\n return raw;\r\n } else {\r\n return raw.times(tupletFactor);\r\n }\r\n }\r\n }",
"public int getDuration() {\n return duration;\n }",
"public int getDuration() {\n return duration;\n }",
"public int getDuration() {\n return duration;\n }",
"public long getDuration()\n {\n return duration;\n }",
"public double getDuration () {\n return duration;\n }",
"public Integer getDuration() {\n return duration;\n }",
"org.apache.xmlbeans.GDuration getDuration();",
"Double duration() {\n return execute(\"player.duration\");\n }",
"public Long getDuration()\r\n {\r\n return duration;\r\n }",
"public int getDuration() {return this.duration;}",
"public long getDuration() {\n return duration;\n }",
"public DeltaSeconds getDuration() { \n return duration ;\n }",
"public long getDuration() {\n return duration;\n }",
"public int getDuration() {\n return duration_;\n }",
"Double getScheduleDuration();",
"public int getDuration() {\n return duration_;\n }",
"public void duration() {\n\t\tDuration daily = Duration.of(1, ChronoUnit.DAYS);\n\t\tDuration hourly = Duration.of(1, ChronoUnit.HOURS);\n\t\tDuration everyMinute = Duration.of(1, ChronoUnit.MINUTES);\n\t\tDuration everyTenSeconds = Duration.of(10, ChronoUnit.SECONDS);\n\t\tDuration everyMilli = Duration.of(1, ChronoUnit.MILLIS);\n\t\tDuration everyNano = Duration.of(1, ChronoUnit.NANOS);\n\n\t\tLocalDate date = LocalDate.of(2015, 5, 25);\n\t\tPeriod period = Period.ofDays(1);\n\t\tDuration days = Duration.ofDays(1);\n\t\tSystem.out.println(date.plus(period)); // 2015–05–26\n\t\t// System.out.println(date.plus(days)); // Unsupported unit: Seconds\n\t}",
"public int getDuration() {\n return this.duration;\n }",
"public TimeEntry duration(Integer duration) {\n this.duration = duration;\n return this;\n }",
"java.lang.String getDuration();",
"public double getTime() { return duration; }",
"public double getDuration() {\n\t\treturn duration;\n\t}",
"public int getDuration() {\n\t\treturn duration;\n\t}",
"public float getDuration()\n\t{\n\t\treturn duration;\n\t}",
"public int getduration() {\n\t\tDuration duration = Duration.between(initial_time, current_time);\n\t\treturn (int)duration.getSeconds();\n\t}",
"public int getmDuration() {\n return mDuration;\n }",
"public long getDuration() {\n return mDuration;\n }",
"public HashMap<String,Double> getAverageActivityDuration(Population population) {\r\n\t\tHashMap<String,Double>actDurations=new HashMap<>();\r\n\t\tHashMap<String,Tuple<Double,Integer>> activities=new HashMap<>();\r\n\t\tfor(Person p:population.getPersons().values()) {\r\n\t\t\tfor(PlanElement pe:p.getSelectedPlan().getPlanElements()) {\r\n\t\t\t\tif(pe instanceof Activity) {\r\n\t\t\t\t\tActivity a=(Activity)pe;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(a.getStartTime()!=Double.NEGATIVE_INFINITY && a.getEndTime()!=Double.NEGATIVE_INFINITY) {\r\n//\t\t\t\t\t\tif(a.getStartTime()>a.getEndTime()) {\r\n//\t\t\t\t\t\t\ta.setEndTime(24*3600);\r\n//\t\t\t\t\t\t}\r\n\t\t\t\t\t\tdouble duration=a.getEndTime()-a.getStartTime();\r\n\t\t\t\t\t\tif(duration<0) {\r\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"duration can not be negative\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(activities.containsKey(a.getType())) {\r\n\t\t\t\t\t\t\tTuple<Double,Integer> oldActDetails=activities.get(a.getType());\r\n\t\t\t\t\t\t\tTuple<Double,Integer> newActDetails=new Tuple<>((oldActDetails.getFirst()*oldActDetails.getSecond()+duration)/(oldActDetails.getSecond()+1)\r\n\t\t\t\t\t\t\t\t\t,oldActDetails.getSecond()+1);\r\n\t\t\t\t\t\t\tactivities.put(a.getType(), newActDetails);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tTuple<Double,Integer> newActDetails=new Tuple<>(duration,1);\r\n\t\t\t\t\t\t\tactivities.put(a.getType(), newActDetails);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(String s:activities.keySet()) {\r\n\t\t\tactDurations.put(s,activities.get(s).getFirst());\r\n\t\t}\r\n\t\tthis.activityDuration=actDurations;\r\n\t\treturn actDurations;\r\n\t}",
"public interface Duration {\n /*\n * Constants used to avoid creating objects for common durations\n */\n public static final RealDuration INSTANT = RealDuration.milliseconds(0);\n public static final RealDuration ONE_MILLISECOND = RealDuration.milliseconds(1);\n public static final RealDuration ONE_SECOND = RealDuration.seconds(1);\n public static final RealDuration ONE_MINUTE = RealDuration.minutes(1);\n public static final RealDuration ONE_HOUR = RealDuration.hours(1);\n public static final RealDuration ONE_DAY = RealDuration.days(1);\n public static final RealDuration ONE_WEEK = RealDuration.weeks(1);\n public static final RealDuration ONE_MONTH = RealDuration.months(1);\n public static final RealDuration ONE_YEAR = RealDuration.years(1);\n\n /*\n * Actual interface methods\n */\n\n RealDuration asRealDuration();\n\n TickDuration asTickDuration();\n\n /*\n * Inner classes to allow grammar such as new Duration.Minutes(12)\n */\n\n public static class Milliseconds extends RealDuration {\n public Milliseconds(long millis) {\n super(millis);\n }\n }\n\n public static class Seconds extends RealDuration {\n public Seconds(long num) {\n super((long) (num * SECONDS_TO_MILLIS));\n }\n }\n\n public static class Minutes extends RealDuration {\n public Minutes(long num) {\n super((long) (num * MINUTES_TO_MILLIS));\n }\n }\n\n public static class Hours extends RealDuration {\n public Hours(long num) {\n super((long) (num * HOURS_TO_MILLIS));\n }\n }\n\n public static class Days extends RealDuration {\n public Days(long num) {\n super((long) (num * DAYS_TO_MILLIS));\n }\n }\n\n public static class Weeks extends RealDuration {\n public Weeks(long num) {\n super((long) (num * WEEKS_TO_MILLIS));\n }\n }\n\n public static class Months extends RealDuration {\n public Months(long num) {\n super((long) (num * MONTHS_TO_MILLIS));\n }\n }\n\n public static class Years extends RealDuration {\n public Years(long num) {\n super((long) (num * YEARS_TO_MILLIS));\n }\n }\n\n public static class Decades extends RealDuration {\n public Decades(long num) {\n super((long) (num * DECADES_TO_MILLIS));\n }\n }\n\n public static class Centuries extends RealDuration {\n public Centuries(long num) {\n super((long) (num * CENTURIES_TO_MILLIS));\n }\n }\n\n public static class Ticks extends TickDuration {\n public Ticks(long num) {\n super(num);\n }\n }\n}",
"public Duration getDuration()\r\n {\r\n return (m_duration);\r\n }",
"int getRecurrenceDuration();",
"public Duration getDurationFrom(Date startDate);",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getDuration() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(DURATION_PROP.get());\n }",
"public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }",
"public int getDuration() {\n\t\treturn this.Duration;\n\t}",
"@Transient\n \tpublic int getDuration() {\n \t\tint duration = (int) (this.endTime.getTime() - this.startTime.getTime());\n \t\treturn duration / 1000;\n \t}",
"public float getDuration() {\n\t\treturn duration;\n\t}",
"public DurationBean getEventDuration() {\n// return getEventDates().getDuration();\n DurationBean db = getEventDates().getDuration();\n if (debug()) {\n debug(\"Event duration=\" + db);\n }\n\n return db;\n }",
"long getDuration(TimeUnit timeUnit);",
"RealDuration asRealDuration();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getDuration() {\n return (java.math.BigDecimal)__getInternalInterface().getFieldValue(DURATION_PROP.get());\n }",
"public Duration()\n\t{\n\t}",
"Duration(Integer duration){\n\t\t_minimum = duration;\n\t\t_maximum = duration;\n\t\t_range = new Range(_minimum, _maximum);\n\t}",
"public Duration getDuration() {\n return localDuration;\n }",
"public long duration() {\n\t\treturn end - start;\n\t}",
"public String duration(){\n long duration =beginTime.getTime()-endTime.getTime();\n long diffMinutes = duration / (60 * 1000) % 60;\n long diffHours = duration / (60 * 60 * 1000);\n if(diffHours ==0)\n return -1*diffMinutes + \" minutes\";\n else\n return \" \"+-1*diffHours+\":\"+ -1*diffMinutes +\"min\";\n }",
"public double getDuration() {\n if (null == firstTime) {\n return 0.0;\n }\n return lastTime.timeDiff_ns(firstTime);\n }",
"private long getDuration() throws Exception {\n\treturn dtEnd.getTime() - dtStart.getTime();\n }",
"public TimeSpan getDuration() throws ServiceLocalException {\n\t\treturn (TimeSpan) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(AppointmentSchema.Duration);\n\t}",
"public static void duration(){\n Instant instant1 = Instant.ofEpochSecond(3);\n Instant instant2 = Instant.ofEpochSecond(3, 0);\n\n// Duration d1 = Duration.between(time1, time2);\n// Duration d2 = Duration.between(dateTime1, dateTime2);\n Duration d3 = Duration.between(instant1, instant2);\n }",
"@ApiModelProperty(value = \"The duration of logged minutes.\")\n /**\n * The duration of logged minutes.\n *\n * @return duration Integer\n */\n public Integer getDuration() {\n return duration;\n }",
"public String getDuration() {\n return duration;\n }",
"public Duration() {\n this(0, 0, 0, 0, 0, 0.0);\n }",
"@Generated\n @Selector(\"duration\")\n public native double duration();",
"@NoProxy\n public BwDuration makeDurationBean() {\n return BwDuration.makeDuration(getDuration());\n }",
"public int computeDuration() {\n return (int) Duration.between(getStart_time(), getEnd_time()).toSeconds();\n }",
"public long getDuration() { throw new RuntimeException(\"Stub!\"); }",
"public String getDuration() {\n return this.duration;\n }",
"public int getDuration() {\n\t\treturn (int) ((endTime.getTime()-startTime.getTime())/1000) + 1;\n\t}",
"public String durationInMinutesAndSeconds( ){\n\t\t\n\t\tString time = \"\";\n\t\t\n\t\tint duration = totalTime();\n\n\t\tint minutes = 0;\n\n\t\tint seconds = 0;\n\n\t\tminutes = (int) (duration/60);\n\n\t\tseconds = (int) (duration- (minutes*60));\n\n\t\ttime = minutes + \":\" + seconds +\"\";\n\t\treturn time;\n\t\t\n\t}",
"public Long getDurationMs();",
"public long getSessionDuration(){\n return (currentTime-startTime)/1000;\n }",
"private static void testDuration() {\n LocalTime time1 = LocalTime.of(15, 20, 38);\n LocalTime time2 = LocalTime.of(21, 8, 49);\n\n LocalDateTime dateTime1 = time1.atDate(LocalDate.of(2014, 5, 27));\n LocalDateTime dateTime2 = time2.atDate(LocalDate.of(2015, 9, 15));\n\n Instant i1 = Instant.ofEpochSecond(1_000_000_000);\n Instant i2 = Instant.now();\n\n // create duration between two points\n Duration d1 = Duration.between(time1, time2);\n Duration d2 = Duration.between(dateTime1, dateTime2);\n Duration d3 = Duration.between(i1, i2);\n Duration d4 = Duration.between(time1, dateTime2);\n\n // create duration from some random value\n Duration threeMinutes;\n threeMinutes = Duration.ofMinutes(3);\n threeMinutes = Duration.of(3, ChronoUnit.MINUTES);\n }",
"public Duration toDuration() {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[23]++;\r\n long durMillis = toDurationMillis();\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.statements[24]++;\nint CodeCoverConditionCoverageHelper_C9;\r\n if ((((((CodeCoverConditionCoverageHelper_C9 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C9 |= (2)) == 0 || true) &&\n ((durMillis == 0) && \n ((CodeCoverConditionCoverageHelper_C9 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.conditionCounters[9].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C9, 1) || true)) || (CodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.conditionCounters[9].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C9, 1) && false)) {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.branches[17]++;\r\n return Duration.ZERO;\n\r\n } else {\nCodeCoverCoverageCounter$1ib8k6g9t1mz1yofrpsdr7xlpbrhwxq3l.branches[18]++;\r\n return new Duration(durMillis);\r\n }\r\n }",
"public int getRunDuration() {\n return runDuration;\n }",
"public abstract long toSeconds(long duration);",
"public com.vodafone.global.er.decoupling.binding.request.DurationType createDurationType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.DurationTypeImpl();\n }",
"public Duration getActualDuration()\r\n {\r\n return (m_actualDuration);\r\n }",
"public long getAnimDuration() {\n return (long) (Settings.Global.getFloat(this.mContext.getContentResolver(), \"transition_animation_scale\", this.mContext.getResources().getFloat(17105053)) * 336.0f);\n }",
"public final int getDuration() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.getDuration():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.getDuration():int\");\n }",
"public org.apache.axis2.databinding.types.Duration getDuration() {\n return localDuration;\n }",
"public Duration getDuration(Rule rule) throws DatatypeConfigurationException {\n Constraint constraint = rule.getConstraint().get(0);\n if (constraint.getRightOperand().getType().equals(\"xsd:duration\")) {\n String duration = constraint.getRightOperand().getValue();\n return DatatypeFactory.newInstance().newDuration(duration);\n } else {\n return null;\n }\n }",
"public int getDuration(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn 0;\r\n \t\treturn mediaplayer.getDuration();\r\n \t}",
"public Duration update(Integer duration){\n\t\t_minimum = duration;\n\t\t_maximum = duration;\n\t\t_range = new Range(_minimum, _maximum);\n\t\treturn this;\n\t}",
"private Tasks createDurationTaskForFullInputCommand(Tasks task, String descriptionOfTask, String startDate,\n String startTime, String endDate, String endTime) {\n if (checkValidDate(startDate) && checkValidDate(endDate) && checkValidTime(startTime) && checkValidTime(endTime)) {\n if (startDate.equals(endDate)) { //creates a Duration object using createDurationTaskForSameDayEvent\n task = createDurationTaskForSameDayEvent(task, descriptionOfTask, startDate, startTime, endTime);\n } else if (checkStartDateBeforeEndDate(startDate, endDate)) { //creates a Duration object for (start,start,end,end) if checkStartDateBeforeEndDate true\n Duration durationPeriod = new Duration(startDate, startTime, endDate, endTime);\n task = new DurationTask(descriptionOfTask, durationPeriod);\n } else { //creates a Duration object for (end,end,start,start) if checkStartDateBeforeEndDate false\n Duration durationPeriod = new Duration(endDate, endTime, startDate, startTime);\n task = new DurationTask(descriptionOfTask, durationPeriod);\n }\n }\n return task;\n }",
"com.google.protobuf.Duration getDowntimeJailDuration();",
"TimeResource maxDuration();",
"private AlertDuration(String argument, String description) {\n super(argument, description);\n if (parameterLookUp == null) {\n parameterLookUp = new HashMap<>();\n }\n parameterLookUp.put(argument, this);\n }",
"@Nullable\n public Long getDuration() {\n return mDuration;\n }",
"public long computeDurationHint() {\n return (getStartOffset() + getDuration()) * (getRepeatCount() + 1);\n }",
"DurationTypeEnum getDurationType();",
"int getEmploymentDurationInMonths();",
"public int getDurationMinutes() {\n return durationMinutes;\n }",
"public long getDuration()\n\t{ return (long)0;\n\t}"
] | [
"0.6657411",
"0.63500804",
"0.6188595",
"0.617506",
"0.617506",
"0.6174608",
"0.6077149",
"0.60141087",
"0.59804523",
"0.59404206",
"0.59315014",
"0.58861196",
"0.587268",
"0.5808697",
"0.5789127",
"0.57782257",
"0.568088",
"0.568088",
"0.568088",
"0.5676363",
"0.56728333",
"0.5668794",
"0.5663502",
"0.56631446",
"0.5633424",
"0.5625293",
"0.5621135",
"0.55984646",
"0.559162",
"0.55753183",
"0.5572395",
"0.5550669",
"0.5529155",
"0.55229485",
"0.5468886",
"0.54677135",
"0.5466799",
"0.5465511",
"0.5456965",
"0.5452298",
"0.54429847",
"0.54408824",
"0.5432728",
"0.5427885",
"0.5422781",
"0.54215086",
"0.5418158",
"0.53968275",
"0.53957134",
"0.53915685",
"0.53861886",
"0.5385323",
"0.53775597",
"0.53765",
"0.53634953",
"0.53585297",
"0.5355889",
"0.535038",
"0.5335064",
"0.5311324",
"0.53038454",
"0.53013384",
"0.53002995",
"0.5299134",
"0.5291007",
"0.5275081",
"0.5271094",
"0.5266323",
"0.52653265",
"0.52415174",
"0.522356",
"0.52061343",
"0.5193443",
"0.51930237",
"0.51908386",
"0.5187544",
"0.5178697",
"0.51743466",
"0.5158572",
"0.51430047",
"0.5137039",
"0.5129639",
"0.50634784",
"0.5061012",
"0.5060941",
"0.5058475",
"0.50571394",
"0.50427884",
"0.50388044",
"0.5027271",
"0.50259954",
"0.50054306",
"0.50040907",
"0.49953216",
"0.49913794",
"0.49551877",
"0.49536827",
"0.49397296",
"0.49310046",
"0.49298564"
] | 0.80734926 | 0 |
Return executor service of the application. | public ExecutorService getExecutorService() {
return executorService;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ExecutorService getMainExecutorService() {\n return executorService;\n }",
"public ExecutorService getEventExecutor() {\n return executor;\n }",
"public Executor getExecutor() {\n return executor;\n }",
"public Executor getExecutor() {\n return execution.getExecutor();\n }",
"protected synchronized ExecutorService getService() {\r\n if(service == null) {\r\n //System.out.println(\"creating an executor service with a threadpool of size \" + threadPoolSize);\r\n service = Executors.newFixedThreadPool(threadPoolSize, new ThreadFactory() {\r\n private int count = 0;\r\n \r\n public Thread newThread(Runnable r) {\r\n Thread t = new Thread(r, \"tile-pool-\" + count++);\r\n t.setPriority(Thread.MIN_PRIORITY);\r\n t.setDaemon(true);\r\n return t;\r\n }\r\n });\r\n }\r\n return service;\r\n }",
"ScheduledExecutorService getExecutorService();",
"public ExecutorService createExecutor() {\n return getCamelContext().getExecutorServiceManager().newThreadPool(this, endpointName,\n 1, 5);\n }",
"@NonNull\n public Executor getExecutor() {\n return mExecutor;\n }",
"public static Executor buildExecutor() {\n GrpcRegisterConfig config = Singleton.INST.get(GrpcRegisterConfig.class);\n if (null == config) {\n return null;\n }\n final String threadpool = Optional.ofNullable(config.getThreadpool()).orElse(Constants.CACHED);\n switch (threadpool) {\n case Constants.SHARED:\n try {\n return SpringBeanUtils.getInstance().getBean(ShenyuThreadPoolExecutor.class);\n } catch (NoSuchBeanDefinitionException t) {\n throw new ShenyuException(\"shared thread pool is not enable, config ${shenyu.sharedPool.enable} in your xml/yml !\", t);\n }\n case Constants.FIXED:\n case Constants.EAGER:\n case Constants.LIMITED:\n throw new UnsupportedOperationException();\n case Constants.CACHED:\n default:\n return null;\n }\n }",
"public static Executor currentExecutor() {\n return (Executor)Thread.currentThread();\n }",
"@Override\n public ScheduledExecutorService getSchedExecService() {\n return channelExecutor;\n }",
"public Executor getExecutor() {\n\t\t\t\treturn null;\n\t\t\t}",
"Executor getWorkerpool() {\n\t return pool.getWorkerpool();\n\t}",
"public abstract ScheduledExecutorService getWorkExecutor();",
"@Singleton\n\t@Provides\n\tExecutorService provideExecutorService() {\n\t\tThreadFactory threadFactory = new ThreadFactory() {\n\t\t\tprivate final AtomicInteger threadNumber = new AtomicInteger(1);\n\n\t\t\t@Override\n\t\t\tpublic Thread newThread(final Runnable r) {\n\t\t\t\t// Two-digit counter, used in load test.\n\t\t\t\tint id = threadNumber.getAndIncrement();\n\t\t\t\tString threadName = leftPad(String.valueOf(id), 2, \"0\");\n\t\t\t\tThread th = new Thread(r);\n\t\t\t\tth.setName(threadName);\n\t\t\t\tth.setDaemon(false);\n\t\t\t\treturn th;\n\t\t\t}\n\t\t};\n\t\treturn threadCount >= 0\n\t\t\t\t? Executors.newFixedThreadPool(threadCount, threadFactory)\n\t\t\t\t: Executors.newCachedThreadPool(threadFactory);\n\t}",
"@Override\n public ExecutorService getWrapped() {\n return es;\n }",
"public Executor getExecutor() {\n Object o = getReference(\"ant.executor\");\n if (o == null) {\n String classname = getProperty(\"ant.executor.class\");\n if (classname == null) {\n classname = DefaultExecutor.class.getName();\n }\n log(\"Attempting to create object of type \" + classname, MSG_DEBUG);\n try {\n o = Class.forName(classname, true, coreLoader).newInstance();\n } catch (ClassNotFoundException seaEnEfEx) {\n //try the current classloader\n try {\n o = Class.forName(classname).newInstance();\n } catch (Exception ex) {\n log(ex.toString(), MSG_ERR);\n }\n } catch (Exception ex) {\n log(ex.toString(), MSG_ERR);\n }\n if (o == null) {\n throw new BuildException(\n \"Unable to obtain a Target Executor instance.\");\n }\n setExecutor((Executor) o);\n }\n return (Executor) o;\n }",
"protected EventExecutorFactory getExecutorFactory() {\n\t\treturn executorFactory;\n\t}",
"void setExecutorService(ExecutorService executorService);",
"@Override\n protected ExecutorService createDefaultExecutorService() {\n return null;\n }",
"private static synchronized Executor getDefaultExecutor() {\n return sDefaultExecutor == null ? sDefaultExecutor = new Executor(1)\n : sDefaultExecutor;\n }",
"private static Executor getExecutor(final Message message) {\n Endpoint endpoint = message.getExchange().get(Endpoint.class);\n Executor executor = endpoint.getService().getExecutor();\n \n if (executor == null || SynchronousExecutor.isA(executor)) {\n // need true asynchrony\n Bus bus = message.getExchange().get(Bus.class);\n if (bus != null) {\n WorkQueueManager workQueueManager =\n bus.getExtension(WorkQueueManager.class);\n Executor autoWorkQueue =\n workQueueManager.getNamedWorkQueue(\"ws-addressing\");\n executor = autoWorkQueue != null\n ? autoWorkQueue\n : workQueueManager.getAutomaticWorkQueue();\n } else {\n executor = OneShotAsyncExecutor.getInstance();\n }\n }\n message.getExchange().put(Executor.class, executor);\n return executor;\n }",
"@Override\n\tpublic Executor getExecutor() {\n\t\treturn null;\n\t}",
"public int getExecutors() {\r\n return executors;\r\n }",
"ScheduledExecutorService getScheduledExecutorService();",
"protected org.apache.ant.common.service.ExecService getExecService() {\n return execService;\n }",
"@Override\r\n\tpublic Executor getAsyncExecutor() {\n\t\treturn null;\r\n\t}",
"public String getExecutorName() {\n return executorName;\n }",
"public ExecutorService m33643a() {\n return (ExecutorService) C15521i.a(this.f28354a.m25442b(), \"Cannot return null from a non-@Nullable @Provides method\");\n }",
"@NonNull\n public static Executor directExecutor() {\n return DirectExecutor.getInstance();\n }",
"public NetconfServerConfigurationBuilder setExecutorService(ExecutorService executorService) {// NOSONAR\n this.m_executorService = executorService;\n return this;\n }",
"public Executor getMainThreadExecutor() {\n return mMainThreadExecutor;\n }",
"private void initExecService() {\n try {\n executorService = Executors.newFixedThreadPool(NO_OF_THREADS);\n } catch (Exception e) {\n log.error(e.getMessage(), e);\n }\n }",
"public Builder executorService(final ExecutorService executorService) {\n this.executorService = executorService;\n return this;\n }",
"protected EventExecutor executor()\r\n/* 27: */ {\r\n/* 28: 58 */ EventExecutor e = super.executor();\r\n/* 29: 59 */ if (e == null) {\r\n/* 30: 60 */ return channel().eventLoop();\r\n/* 31: */ }\r\n/* 32: 62 */ return e;\r\n/* 33: */ }",
"protected EventExecutor executor()\r\n/* 49: */ {\r\n/* 50: 87 */ return this.executor;\r\n/* 51: */ }",
"@Bean(APPLICATION_TASK_EXECUTOR_BEAN_NAME)\n @ConditionalOnMissingBean\n public AsyncTaskExecutor asyncTaskExecutor() {\n return new TaskExecutorAdapter(Executors\n .newVirtualThreadPerTaskExecutor());\n }",
"ActionExecutor get(SimpleTypeName name) {\n // Check the action name to determine if it belongs to Lumen.\n String ns = name.getNamespace();\n String sparkNs = LumenProcedureExecutor.getNamespace();\n if (sparkNs.equals(ns)) {\n LumenProcedureExecutor sparkExec = (LumenProcedureExecutor) bridge\n .getPALExecutor();\n return sparkExec;\n }\n\n synchronized (this) {\n return executors.get(name);\n }\n }",
"public static Executor getInstance() {\n Object object = sDirectExecutor;\n if (object != null) {\n return sDirectExecutor;\n }\n object = DirectExecutor.class;\n synchronized (object) {\n DirectExecutor directExecutor = sDirectExecutor;\n if (directExecutor == null) {\n sDirectExecutor = directExecutor = new DirectExecutor();\n }\n return sDirectExecutor;\n }\n }",
"public ExecutorService asyncEventExecutor() {\n\t\treturn asyncListenersExecutor.get(rand.nextInt(asyncListenersExecutor.size()));\n\t}",
"int getExecutorCorePoolSize();",
"public static CacheManagerExecutorServiceFactory getInstance() {\n return SINGLETON;\n }",
"ScheduledExecutorService getScheduler() {\n return scheduler;\n }",
"private ExecutorService getDroneThreads() {\n\t\treturn droneThreads;\n\t}",
"public Map<UUID, IExecutorDescriptor> getConnectedExecutors() throws RemoteException;",
"public static ExecutorService m22732e() {\n if (f20304e == null) {\n synchronized (C7258h.class) {\n if (f20304e == null) {\n f20304e = C7268n.m22763a().mo18997a(C7265m.m22758a(ThreadPoolType.BACKGROUND).mo18996a(), true);\n }\n }\n }\n return f20304e;\n }",
"public static Executor m13822l() {\n synchronized (f12483o) {\n if (f12471c == null) {\n f12471c = AsyncTask.THREAD_POOL_EXECUTOR;\n }\n }\n return f12471c;\n }",
"@Bean(name = \"process-response\")\n\tpublic Executor threadPoolTaskExecutor() {\n\t\tThreadPoolTaskExecutor x = new ThreadPoolTaskExecutor();\n\t\tx.setCorePoolSize(poolProcessResponseCorePoolSize);\n\t\tx.setMaxPoolSize(poolProcessResponseMaxPoolSize);\n\t\treturn x;\n\t}",
"public abstract T executor(@Nullable Executor executor);",
"public Long getExecutorId() {\n return executorId;\n }",
"public Long getExecutorId() {\n return executorId;\n }",
"private void ejecutorDeServicio(){\r\n dbExeccutor = Executors.newFixedThreadPool(\r\n 1, \r\n new databaseThreadFactory()\r\n ); \r\n }",
"public HttpInvokerRequestExecutor getHttpInvokerRequestExecutor() {\n\t\tif (this.httpInvokerRequestExecutor == null) {\n\t\t\tif(isHttpClientAvaiable) {\n\t\t\t\tlogger.info(\"RPC:found org.apache.commons.httpclient.HttpClient avaiable for RPC HttpInvokerRequestExecutor,use 'CommonsHttpInvokerRequestExecutor'\");\n\t\t\t\tCommonsHttpInvokerRequestExecutor executor = new CommonsHttpInvokerRequestExecutor();\n\t\t\t\texecutor.setBeanClassLoader(getBeanClassLoader());\n\t\t\t\texecutor.afterPropertiesSet();\n\t\t\t\tthis.httpInvokerRequestExecutor = executor;\n\t\t\t}else {\n\t\t\t\tlogger.info(\"RPC:not found org.apache.commons.httpclient.HttpClient for RPC HttpInvokerRequestExecutor,use 'SimpleHttpInvokerRequestExecutor',please import commons-httpclient.jar in classpath for better performance\");\n\t\t\t\tSimpleHttpInvokerRequestExecutor executor = new SimpleHttpInvokerRequestExecutor();\n\t\t\t\texecutor.setBeanClassLoader(getBeanClassLoader());\n\t\t\t\texecutor.afterPropertiesSet();\n\t\t\t\tthis.httpInvokerRequestExecutor = executor;\n\t\t\t}\n\t\t}\n\t\treturn this.httpInvokerRequestExecutor;\n\t}",
"int getExecutorPoolSize();",
"public ThreadPoolExecutor getForBackgroundTasks() {\n return mForBackgroundTasks;\n }",
"public static ExecutorService m22730c() {\n if (f20302c == null) {\n synchronized (C7258h.class) {\n if (f20302c == null) {\n f20302c = C7268n.m22763a().mo18997a(C7265m.m22758a(ThreadPoolType.IO).mo18996a(), true);\n }\n }\n }\n return f20302c;\n }",
"public static ScheduledExecutorService createNewScheduler() {\n return Executors.newScheduledThreadPool(Runtime.getRuntime().availableProcessors() * 2);\n }",
"public Consumer<T> getExec() {\r\n\t\treturn exec;\r\n\t}",
"public CommandExecutorInterface getCommandExecutor() {\n\t\treturn commandExecutor;\n\t}",
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return InstantiatingExecutorProvider.newBuilder();\n }",
"public Object getNumExecutors() {\n return this.numExecutors;\n }",
"public MainThreadExecutor getHandler() {\n return handler;\n }",
"public static ExecutorService m22734g() {\n if (f20306g == null) {\n synchronized (C7258h.class) {\n if (f20306g == null) {\n f20306g = C7268n.m22763a().mo18997a(C7265m.m22758a(ThreadPoolType.SERIAL).mo18996a(), true);\n }\n }\n }\n return f20306g;\n }",
"public static synchronized SparkServer getInstance() {\n return getInstance(instance == null ? Runtime.LOCAL_CONTEXT : instance.getRuntime());\n }",
"public RecipeExecutor build() {\n if (testServerEndpoint != null) {\n try {\n return buildRemote(testServerEndpoint);\n } catch (Exception e) {\n LOG.error(\"Failed to build remote RecipeExecutor for\", e);\n }\n }\n\n Map<String, String> env = System.getenv();\n String endpoint = env.getOrDefault(TESTSERVER_ENDPOINT_PROPERTY, System.getProperty(TESTSERVER_ENDPOINT_PROPERTY));\n if (endpoint != null) {\n try {\n return buildRemote(endpoint);\n } catch (Exception e) {\n LOG.error(\"Failed to build remote RecipeExecutor\", e);\n }\n }\n\n return buildLocal();\n }",
"public ExecutorService shutdown() {\n\t\tpool.shutdown();\n\t\treturn pool;\n\t}",
"@Bean\n @ConditionalOnMissingBean(Executor.class)\n @ConditionalOnProperty(name = \"async\", prefix = \"slack\", havingValue = \"true\")\n public Executor threadPool() {\n ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();\n executor.setCorePoolSize(5);\n executor.setMaxPoolSize(30);\n executor.setQueueCapacity(20);\n executor.setThreadNamePrefix(\"slack-thread\");\n return executor;\n }",
"public ExecutionContext getContext();",
"public interface ExecutorService {\n\n\n /**\n * beat 心跳\n * @return\n */\n public ReturnT<String> beat();\n\n\n public ReturnT<String> idleBeat(int jobId);\n\n\n /**\n * kill 掉某个job\n * @param jobId\n * @return\n */\n public ReturnT<String> kill(int jobId);\n\n\n /**\n * 记录掉某个日志\n * @param logDateTim\n * @param logId\n * @param fromLineNum\n * @return\n */\n public ReturnT<LogResult> log(long logDateTim, int logId, int fromLineNum);\n\n\n /**\n * 执行某个任务\n * @param triggerParam\n * @return\n */\n public ReturnT<String> run(TriggerParam triggerParam);\n\n}",
"ActorThreadPool getThreadPool();",
"public ExecutorProxy(final ExecutorService executor) {\n\t\tthis.executor = executor;\n\t}",
"public static ExecutorService m22731d() {\n if (f20303d == null) {\n synchronized (C7258h.class) {\n if (f20303d == null) {\n f20303d = C7268n.m22763a().mo18997a(C7265m.m22758a(ThreadPoolType.DEFAULT).mo18996a(), true);\n }\n }\n }\n return f20303d;\n }",
"public interface Executor {\n void setTask(Task task);\n Task getTask();\n void startTask();\n}",
"public ContainerExec exec() {\n return this.exec;\n }",
"private spark.Service configureSparkService () {\n LOG.info(\"Analysis server will listen for HTTP connections on port {}.\", config.serverPort());\n spark.Service sparkService = spark.Service.ignite();\n sparkService.port(config.serverPort());\n\n // Specify actions to take before the main logic of handling each HTTP request.\n sparkService.before((req, res) -> {\n // Record when the request started, so we can measure elapsed response time.\n req.attribute(REQUEST_START_TIME_ATTRIBUTE, Instant.now());\n\n // Set CORS headers to allow requests to this API server from a frontend hosted on a different domain.\n // This used to be hardwired to Access-Control-Allow-Origin: * but that leaves the server open to XSRF\n // attacks when authentication is disabled (e.g. when running locally).\n res.header(\"Access-Control-Allow-Origin\", config.allowOrigin());\n // For caching, signal to the browser that responses may be different based on origin.\n // TODO clarify why this is important, considering that normally all requests come from the same origin.\n res.header(\"Vary\", \"Origin\");\n\n // The default MIME type is JSON. This will be overridden by the few controllers that do not return JSON.\n res.type(\"application/json\");\n\n // Do not require authentication for internal API endpoints contacted by workers or for OPTIONS requests.\n // FIXME those internal endpoints should be hidden from the outside world by the reverse proxy.\n // Or now with non-static Spark we can run two HTTP servers on different ports.\n String method = req.requestMethod();\n String pathInfo = req.pathInfo();\n boolean authorize = pathInfo.startsWith(\"/api\") && !\"OPTIONS\".equalsIgnoreCase(method);\n if (authorize) {\n // Determine which user is sending the request, and which permissions that user has.\n // This method throws an exception if the user cannot be authenticated.\n UserPermissions userPermissions = authentication.authenticate(req);\n // Store the resulting permissions object in the request so it can be examined by any handler.\n req.attribute(USER_PERMISSIONS_ATTRIBUTE, userPermissions);\n }\n });\n\n sparkService.after((req, res) -> {\n // Firing an event after the request allows us to report the response time,\n // but may fail to record requests experiencing authentication problems.\n Instant requestStartTime = req.attribute(REQUEST_START_TIME_ATTRIBUTE);\n Duration elapsed = Duration.between(requestStartTime, Instant.now());\n eventBus.send(new HttpApiEvent(req.requestMethod(), res.status(), req.pathInfo(), elapsed.toMillis())\n .forUser(UserPermissions.from(req)));\n });\n\n // Handle CORS preflight requests (which are OPTIONS requests).\n // See comment above about Access-Control-Allow-Origin\n sparkService.options(\"/*\", (req, res) -> {\n // Cache the preflight response for up to one day (the maximum allowed by browsers)\n res.header(\"Access-Control-Max-Age\", \"86400\");\n res.header(\"Access-Control-Allow-Methods\", \"GET,PUT,POST,DELETE,OPTIONS\");\n // Allowing credentials is necessary to send an Authorization header\n res.header(\"Access-Control-Allow-Credentials\", \"true\");\n res.header(\"Access-Control-Allow-Headers\", \"Accept,Authorization,Content-Type,Origin,\" +\n \"X-Requested-With,Content-Length,X-Conveyal-Access-Group\"\n );\n return \"OK\";\n });\n\n // Allow client to fetch information about the backend build version.\n sparkService.get(\n \"/version\",\n (Request req, Response res) -> SoftwareVersion.instance,\n JsonUtil.objectMapper::writeValueAsString\n );\n\n // Can we consolidate all these exception handlers and get rid of the hard-wired \"BAD_REQUEST\" parameters?\n\n sparkService.exception(AnalysisServerException.class, (e, request, response) -> {\n respondToException(e, request, response, e.type, e.message, e.httpCode);\n });\n\n sparkService.exception(IOException.class, (e, request, response) -> {\n respondToException(e, request, response, BAD_REQUEST, e.toString(), 400);\n });\n\n sparkService.exception(FileUploadException.class, (e, request, response) -> {\n respondToException(e, request, response, BAD_REQUEST, e.toString(), 400);\n });\n\n sparkService.exception(NullPointerException.class, (e, request, response) -> {\n respondToException(e, request, response, UNKNOWN, e.toString(), 400);\n });\n\n sparkService.exception(RuntimeException.class, (e, request, response) -> {\n respondToException(e, request, response, RUNTIME, e.toString(), 400);\n });\n\n return sparkService;\n }",
"public static Executor getExecutor(EvaluatorComponent component) {\n\t\tEvaluatorData data = component.getData();\n\t\tString language = data.getLanguage();\n\t\tExecutor executor = null;\n\t\t// cache here if necessary\n\t\tfor (EvaluatorProvider provider : registry) {\n\t\t\tif (provider.getLanguage().equals(language)) {\n\t\t\t\texecutor = provider.compile(data.getCode());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn executor;\n\t}",
"public final /* bridge */ /* synthetic */ Object mo6445a() {\n ScheduledThreadPoolExecutor scheduledThreadPoolExecutor = new ScheduledThreadPoolExecutor(1, (ThreadFactory) this.f9355a.mo6445a());\n cazf.m127593a(scheduledThreadPoolExecutor, \"Cannot return null from a non-@Nullable @Provides method\");\n return scheduledThreadPoolExecutor;\n }",
"public ThreadPoolExecutor getForLightWeightBackgroundTasks() {\n return mForLightWeightBackgroundTasks;\n }",
"public static SchedulerService get() {\n return SINGLETON;\n }",
"public Object getExecutorSize() {\n return this.executorSize;\n }",
"@Override\n public int getProcessorType() {\n return OperationExecutors.HIGH_PRIORITY_EXECUTOR;\n }",
"public interface IExecutor {\n void execute(Runnable runnable);\n void shutdown();\n void shutdownNow();\n}",
"static <E extends ExecutorService> E registerExecutorService(Supplier<E> supplier, E executorService) {\n SupplierInfo supplierInfo = SUPPLIERS.get(supplier);\n if (supplierInfo == null) {\n throw new IllegalStateException(\"Attempt to register an executor service to an unregistered supplier\");\n }\n supplierInfo.registerExecutorService(executorService);\n return executorService;\n }",
"public interface RecipeExecutor {\n\n /**\n * Submit a Test recipe for asynchronous execution.\n *\n * @param recipe Test recipe to be executed.\n * @return an instance of <code>Execution</code> containing the current state of execution\n */\n Execution submitRecipe(TestRecipe recipe);\n\n /**\n * Submit a Test recipe for synchronous execution.\n *\n * @param recipe Test recipe to be executed.\n * @return an instance of <code>Execution</code> containing the execution result\n */\n Execution executeRecipe(TestRecipe recipe);\n\n /**\n * @return List of all the execution stored on server\n */\n// List<Execution> getExecutions();\n\n /**\n * Adds an execution listener, used when a recipe is submitted for asynchronous execution.\n *\n * @param listener listener to be added\n */\n void addExecutionListener(ExecutionListener listener);\n\n /**\n * Removes the provided listener\n *\n * @param listener listener to be removed\n */\n void removeExecutionListener(ExecutionListener listener);\n\n /**\n * Adds a recipe filter for preprocessing generated recipes\n *\n * @param recipeFilter\n */\n\n void addRecipeFilter(RecipeFilter recipeFilter);\n\n /**\n * Removes an existing recipe filter\n *\n * @param recipeFilter\n */\n\n void removeRecipeFilter(RecipeFilter recipeFilter);\n\n /**\n * @return executionMode <code>ExecutionMode.LOCAL</code> if running locally, <code>ExecutionMode.LOCAL</code> otherwise (when running on TestEngine)\n */\n ExecutionMode getExecutionMode();\n}",
"public interface RegistryExecutor extends Executor {\n ExecutionContext getExecutionContext();\n\n void setRunner(RegistryDelegate<? extends RegistryTask> delegate);\n\n void start();\n\n void stop();\n}",
"public static PriorityExecutorSupplier getInstance() {\n return SingletonHolder.INSTANCE;\n }",
"public interface ServiceExecutor {\n\n\t/**\n\t * Executes a service-process which in described by a ServiceRegistration\n\t * with the given parameters.\n\t * \n\t * @param correlationId\n\t * The identifier to match the result.\n\t * @param sr\n\t * The ServiceRegistration.\n\t * @param input\n\t * The ServiceInput obejct which represents the parameters for\n\t * the service-process.\n\t */\n\tpublic abstract void execute(String correlationId, ServiceRegistration sr, ServiceInput input);\n\n}",
"public static ExecutorService m21543a() {\n return f19854a;\n }",
"@Override\n public synchronized ListenableSet getExecutorSet(EngineManagementProtos.EngineId engineId,\n EngineManagementProtos.SubEngineId subEngineId) {\n if (executorSet == null) {\n ServiceSet serviceSet = coordinator.get().getServiceSet(Role.EXECUTOR);\n if (serviceSet != null) {\n // Read dremio check option at first call to this method.\n // If dremio check option is changed, coordinator needs to be restarted.\n isVersionCheckEnabled = optionManagerProvider.get().getOption(ExecutorSetService.DREMIO_VERSION_CHECK);\n executorSet = isVersionCheckEnabled ? filterCompatibleExecutors(serviceSet) : serviceSet;\n }\n }\n return executorSet;\n }",
"public ResteasyServiceBuilder withExecutor(Executor executor) {\n this.executor = executor;\n return this;\n }",
"static ScheduledExecutorService m52657a() {\n return (ScheduledExecutorService) C7258h.m22724a(C7265m.m22758a(ThreadPoolType.SCHEDULED).mo18993a(1).mo18996a());\n }",
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return WorkflowsStubSettings.defaultExecutorProviderBuilder();\n }",
"public BlockingExecutorService getBackgroundLoader() {\n\t\treturn backgroundLoader;\n\t}",
"public ExecutionManager getManager() {\n return manager;\n }",
"int getExecutorActiveCount();",
"public interface IApplicationInjector {\r\n\t\r\n\tpublic Runnable getServerListener(int port, int poolSize) throws ApplicationException;\r\n\t\r\n\tpublic Runnable getWorker(Socket socket) throws ApplicationException;\r\n\t\r\n\tpublic IFileUtil getFileUtil() throws ApplicationException;\r\n\r\n}",
"public static ServerServiceAsync getService() {\n\n return GWT.create(ServerService.class);\n }"
] | [
"0.7912028",
"0.72164196",
"0.71491057",
"0.6916206",
"0.6880337",
"0.67778057",
"0.6755226",
"0.6684263",
"0.6561881",
"0.64777887",
"0.6452393",
"0.6359911",
"0.6279121",
"0.6247613",
"0.6241873",
"0.6235052",
"0.62171394",
"0.62150466",
"0.61615413",
"0.6155853",
"0.6124909",
"0.61006176",
"0.6092689",
"0.6084613",
"0.6021525",
"0.59503585",
"0.58996475",
"0.5886355",
"0.58730406",
"0.58660924",
"0.5834347",
"0.5828619",
"0.58250034",
"0.5820187",
"0.57969004",
"0.5773924",
"0.57597905",
"0.5673308",
"0.56567484",
"0.56406695",
"0.56385756",
"0.56241786",
"0.5592724",
"0.55876327",
"0.5566952",
"0.5483676",
"0.5443824",
"0.54391336",
"0.5430788",
"0.54269356",
"0.54269356",
"0.5414356",
"0.5399027",
"0.5370404",
"0.5346568",
"0.53293806",
"0.53275764",
"0.53240323",
"0.5317684",
"0.53060085",
"0.5297658",
"0.52323854",
"0.52312845",
"0.52121234",
"0.520677",
"0.52001554",
"0.51931566",
"0.51855093",
"0.51816016",
"0.51774126",
"0.51770175",
"0.51744616",
"0.5171548",
"0.5161177",
"0.51588774",
"0.5154446",
"0.5151813",
"0.5147965",
"0.5143838",
"0.5137377",
"0.51126647",
"0.51000386",
"0.50983924",
"0.50849247",
"0.5076626",
"0.5051065",
"0.503301",
"0.5026056",
"0.5022577",
"0.5006644",
"0.5002676",
"0.49934906",
"0.49909437",
"0.49866045",
"0.49773684",
"0.49730584",
"0.496254"
] | 0.7934884 | 3 |
Return repository of messages to display in the activity durations view. | public MessageRepository<List<ActivityDuration>> getDurationMessagesRepository() {
return durationMessagesRepository;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public MessageRepository<LocalDateTime> getActivityMessagesRepository() {\n return activityMessagesRepository;\n }",
"public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }",
"public static Map<Long,Message> getMessages(){\r\n\t\treturn messages;\r\n\t\t\r\n\t}",
"@Override\n public List<Message> getMessages() {\n return (List<Message>) messageRepository.findAll();\n }",
"public ArrayList<String> getMessages() {return messages;}",
"public List<String> getMessages() {\n return messages;\n }",
"final protected Messages getMessages() {\r\n return messages;\r\n }",
"public List<String> getMessages() {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n logger.debug(\"Getting All Messages -> \"+messages);\n return messages;\n }",
"public List<Message> getMessages() {\n return messages;\n }",
"public String[] getMessages()\n\t{\n\t\treturn messages;\n\t}",
"public List<Message> listMessages(Integer tid);",
"public ImmutableList<String> getInfoMessages() {\n return Lists.immutable.ofAll(infoMessages);\n }",
"public List<String> getChatMessages() {\n return chatMessages;\n }",
"@GetMapping(\"/chat-messages\")\n @Timed\n public List<ChatMessage> getAllChatMessages() {\n log.debug(\"REST request to get all ChatMessages\");\n return chatMessageRepository.findAll();\n }",
"public List<Message> getAllMessages()\n {\n return new ArrayList<>(messages.values());\n }",
"public List<Messages> getAll(){\n\treturn messageRepository.getAll();\n }",
"@GetMapping(\"/admin/allMessages\")\n public Map<String, Object> allMessages() {\n Map<String, Object> responseMap = new HashMap<String, Object>();\n responseMap.put(\"messages\", messagesService.allMessages());\n\n return responseMap;\n }",
"public ArrayList<Message> getMessages(){\n return messages;\n }",
"public String getMessages() {\n\t\treturn message;\n\t}",
"public List<Message> getMessageAll(){\n return repo.findAll();\n \n }",
"@RequestMapping(value=\"api/messages\", method=RequestMethod.GET)\n\tpublic List<Recording> getAllMessages() {\n\t\treturn this.service.getAllMessages();\n\t}",
"public List<Mensaje> getCurrentMessages() {\n\t\tif (currentContact != null && currentUser != null)\n\t\t\ttry {\n\t\t\t\tcurrentContact = contactDAO.getContact(currentContact.getId());\n\t\t\t\treturn currentContact.getMessages();\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\t// Can't stop the view's access while switching users,\n\t\t\t\t// App will just try again after loading.\n\t\t\t\treturn null;\n\t\t\t}\n\t\treturn null;\n\t}",
"public List<Message> getAllMessages() {\n Query query = new Query(\"Message\").addSort(\"timestamp\", SortDirection.DESCENDING);\n\n return returnMessages(query, null);\n }",
"public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.getInstance().getBusiness().getCurrentChat().getMessages();\n if(response != null){\n messages.addAll(response);\n }\n }\n }",
"private void loadConversationList()\n\t{\n\t\tParseQuery<ParseObject> q = ParseQuery.getQuery(discussionTableName);\n\t\tif (messagesList.size() != 0)\n\t\t{\n//\t\t\t// load all messages...\n//\t\t\tArrayList<String> al = new ArrayList<String>();\n//\t\t\tal.add(discussionTopic);\n//\t\t\tal.add(MainActivity.user.getParseID());\n//\t\t\tq.whereContainedIn(\"sender\", al);\n//\t\t}\n//\t\telse {\n\t\t\t// load only newly received message..\n\t\t\tif (lastMsgDate != null)\n\t\t\t\t// Load only new messages, that weren't send by me\n\t\t\t\tq.whereGreaterThan(Const.COL_MESSAGE_CREATED_AT, lastMsgDate);\n\t\t\t\tq.whereNotEqualTo(Const.COL_MESSAGE_SENDER_ID, MainActivity.user.getParseID());\n\t\t}\n\t\tq.orderByDescending(Const.COL_MESSAGE_CREATED_AT);\n\t\tq.setLimit(100);\n\t\tq.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t@Override\n\t\t\tpublic void done(List<ParseObject> li, ParseException e) {\n\t\t\t\tif (li != null && li.size() > 0) {\n\t\t\t\t\tfor (int i = li.size() - 1; i >= 0; i--) {\n\t\t\t\t\t\tParseObject po = li.get(i);\n\n\t\t\t\t\t\tMessage message = new Message(po.getString(\n\t\t\t\t\t\t\t\tConst.COL_MESSAGE_CONTENT),\n\t\t\t\t\t\t\t\tpo.getCreatedAt(),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_ID),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_NAME));\n\n\t\t\t\t\t\tmessage.setStatus(MessageStatus.STATUS_SENT);\n\t\t\t\t\t\tmessagesList.add(message);\n\n\t\t\t\t\t\tif (lastMsgDate == null || lastMsgDate.before(message.getDate())) {\n\t\t\t\t\t\t\tlastMsgDate = message.getDate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchatAdapter.notifyDataSetChanged();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thandler.postDelayed(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (isRunning)\n\t\t\t\t\t\t\tloadConversationList();\n\t\t\t\t\t}\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t});\n\n\t}",
"@Override\n public List<Object> readMessages(TDialog target) {\n try {\n List<Object> msgs = new LinkedList<>();\n this.setTarget(MSG_DIAL_PREF + target.getId());\n FindIterable<Document> docs = collection.find().sort(descending(\"_id\"));\n for (Document doc : docs) {\n msgs.add(doc);\n }\n return msgs;\n } catch (MongoException e) {\n System.err.println(e.getCode() + \" \" + e.getMessage());\n return null;\n }\n }",
"public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}",
"java.lang.String listMessageCounter() throws java.lang.Exception;",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"@Override\n public String[] getAllMessages() {\n return messages.toArray(new String[0]);\n }",
"@JsonProperty(\"messages\")\n\t@DsonOutput(Output.API)\n\tMap<String, Object> getJsonMessages() {\n\t\tMap<String, Object> outbound = mapOf(\n\t\t\t\t\"sent\", SystemMetaData.getInstance().get(\"messages.outbound.sent\", 0),\n\t\t\t\t\"processed\", SystemMetaData.getInstance().get(\"messages.outbound.processed\", 0),\n\t\t\t\t\"pending\", SystemMetaData.getInstance().get(\"messages.outbound.pending\", 0),\n\t\t\t\t\"aborted\", SystemMetaData.getInstance().get(\"messages.outbound.aborted\", 0));\n\t\tMap<String, Object> inbound = mapOf(\n\t\t\t\t\"processed\", SystemMetaData.getInstance().get(\"messages.inbound.processed\", 0),\n\t\t\t\t\"received\", SystemMetaData.getInstance().get(\"messages.inbound.received\", 0),\n\t\t\t\t\"pending\", SystemMetaData.getInstance().get(\"messages.inbound.pending\", 0),\n\t\t\t\t\"discarded\", SystemMetaData.getInstance().get(\"messages.inbound.discarded\", 0));\n\t\treturn mapOf(\n\t\t\t\t\"inbound\", inbound,\n\t\t\t\t\"outbound\", outbound);\n\t}",
"public ArrayList<Message> getMessages() {\n\t\treturn messages;\n\t}",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }",
"TrackerNotificationMessages getTrackerNotificationMessages(final Integer id);",
"public java.util.List<if4031.common.Message> getMessagesList() {\n if (messagesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(messages_);\n } else {\n return messagesBuilder_.getMessageList();\n }\n }",
"List<String> showNewsAndMessages();",
"public List<Message> getMessages(Long id){\n return messagesParser.getMessages(id);\n }",
"public List<MessageKey> listMessages(String status);",
"public java.util.List<if4031.common.Message> getMessagesList() {\n return messages_;\n }",
"List<ChatMessage> getMessages(int roomId, int count) throws IOException;",
"public static long getMessagesIn() {\n return messagesIn;\n }",
"@Override\r\n\tpublic List<ChatMessageModel> getMessages(int messageIndex) {\n\t\treturn null;\r\n\t}",
"public ListView getMessageListView() {\n return mMessageListView;\n }",
"@Override\n\tpublic List<MessageEntity> getMessages(MessageEntity message) {\n\t\t\tList<MessageEntity> list = messageDAO.selectMessageList(message);\n\t\t\treturn list;\n\t}",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }",
"public Map<Integer, List<Message>> getMessagesMap() {\n return messagesMap;\n }",
"public Message[] showMessages(String dBID) {\n\t\treturn new Contract().getAllMessages(Long.parseLong(dBID));\n\t\t\n\t}",
"public List<Pair<String, Integer>> getDurationPerInstruction() {\n List<Pair<String, Integer>> durations = new ArrayList<>();\n var query = jooq.selectFrom(GAME_LOGS)\n .where(GAME_LOGS.GAMEID.equal(gameId))\n .orderBy(GAME_LOGS.ID.asc());\n String oldInstruction = null;\n LocalDateTime oldTimestamp = null;\n for (GameLogsRecord record: query) {\n if (record.getDirection().equals(GameLogsDirection.PassToClient)\n && record.getMessageType().equals(\"TextMessage\")) {\n JsonObject messageJson = JsonParser.parseString(record.getMessage()).getAsJsonObject();\n if (! messageJson.has(\"text\")) {\n continue;\n }\n\n if (\"SuccessfullyFinished\".equals(messageJson.get(\"newGameState\").getAsString())) {\n // we are done, record last timing and get out\n int duration = (int) oldTimestamp.until(record.getTimestamp(), MILLIS);\n durations.add(new Pair<>(oldInstruction, duration));\n break;\n }\n\n String newInstruction = messageJson.get(\"text\").getAsString();\n \n if (! newInstruction.startsWith(\"{\")) {\n // ignore messages that have no structured information\n // those are e.g. welcome messages etc.\n continue;\n }\n\n JsonObject instructionJson = JsonParser.parseString(newInstruction).getAsJsonObject();\n \n // also contains the \"message\" field but we do not need that here\n boolean isNew = instructionJson.get(\"new\").getAsBoolean();\n String tree = instructionJson.get(\"tree\").getAsString();\n\n if (isNew) {\n if (oldInstruction == null) {\n // first instruction, just save and continue\n oldInstruction = tree;\n oldTimestamp = record.getTimestamp();\n continue;\n }\n int duration = (int) oldTimestamp.until(record.getTimestamp(), MILLIS);\n durations.add(new Pair<>(oldInstruction, duration));\n oldInstruction = tree;\n oldTimestamp = record.getTimestamp();\n }\n }\n }\n return durations;\n }",
"public Map<Action, String> transitionMessages() {\n return transitionMessages;\n }",
"@Override\n public List<Object> readMessages(TDialog target, int dateFrom, int dateTo) {\n if (((dateFrom == 0) && (dateTo == 0)) || (dateFrom > dateTo))\n return readMessages(target);\n else\n try {\n List<Object> msgs = new LinkedList<>();\n this.setTarget(MSG_DIAL_PREF + target.getId());\n FindIterable<Document> docs = collection\n .find(and(gte(\"date\", dateFrom), lte(\"date\", dateTo)))\n .sort(descending(\"_id\"));\n for (Document doc : docs) {\n msgs.add(doc);\n }\n return msgs;\n } catch (MongoException e) {\n System.err.println(e.getCode() + \" \" + e.getMessage());\n return null;\n }\n }",
"public long[] getDurations() {\n return durations;\n }",
"private List<Message> returnMessages(Query query, String recipient) {\n List<Message> messages = new ArrayList<>();\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID id = UUID.fromString(idString);\n String text = (String) entity.getProperty(\"text\");\n long timestamp = (long) entity.getProperty(\"timestamp\");\n String user = (String) entity.getProperty(\"user\");\n recipient = recipient != null ? recipient : (String) entity.getProperty(\"recipient\");\n\n Message message = new Message(id, user, text, timestamp, recipient);\n messages.add(message);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading message.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return messages;\n }",
"public List<String> activityDuration(List<MonitoredData> timeline) {\n return timeline\n .stream()\n .collect(\n Collectors\n .groupingBy(\n MonitoredData::getActivity_label,\n Collectors\n .mapping(\n MonitoredData::computeDuration,\n Collectors\n .averagingDouble(duration -> (duration / 60) < 5 ? 1 : 0))))\n .entrySet()\n .stream()\n .filter(md -> md.getValue() > 0.9)\n .collect(\n Collectors\n .toMap(\n md -> md.getKey(),\n md -> md.getValue()))\n .keySet()\n .stream()\n .collect(\n Collectors\n .toList());\n }",
"public List<message> getList() {\n return chats;\n }",
"@Override\n public List<Object> getDialogs() {\n try {\n List<Object> chats = new ArrayList<>();\n // DIALOGS contain only active dialogs\n this.setTarget(\"DIALOGS\");\n FindIterable<Document> dials = collection.find();\n // CHATS contain all found chats and additional info\n this.setTarget(\"CHATS\");\n for (Document dial : dials) {\n FindIterable<Document> chat = collection.find(eq(\"_id\", dial.get(\"_id\")));\n chats.add(chat.first());\n }\n return chats;\n } catch (MongoException e) {\n System.err.println(e.getCode() + \" \" + e.getMessage());\n return null;\n }\n }",
"public String getNewLogMessages() {\n streamHandler.flush();\n String text = baos.toString();\n baos.reset();\n return text;\n }",
"@Override\n public int getCount() {\n return messages.size();\n }",
"public Iterator getMessages() {\r\n\t\treturn messages == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(messages.values());\r\n\t}",
"@Override\n\tpublic List<Message> findAll() {\n\t\treturn msgdao.findAll();\n\t}",
"public java.util.List<java.lang.Long>\n getMessageIdList() {\n return java.util.Collections.unmodifiableList(\n instance.getMessageIdList());\n }",
"protected static ResourceBundle getMessages() {\n return _messages;\n }",
"@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)\n public List<Message> getMessages() {\n return messages;\n }",
"java.util.List<com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage> \n getMessagesList();",
"public int getMessagesCount() {\n return messages_.size();\n }",
"public void listMessages() {\n\t\tSystem.out.println(\"== The wall of \" + name + \" ==\");\n\t\tfor(String msg : messages)\n\t\t{\n\t\t\tSystem.out.println(msg);\n\t\t}\n\t}",
"public String getTimeline(String screenName);",
"public java.util.List<MateriliazedView> getViewsList() {\n if (viewsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(views_);\n } else {\n return viewsBuilder_.getMessageList();\n }\n }",
"public List<UserMessage> getTimeline(String username) throws UserNotFoundException {\r\n User user = userRepository.getUser(username);\r\n List<User> users = new ArrayList<>(user.getFollowingUsers());\r\n users.add(user);\r\n return messageService.getMessages(users);\r\n }",
"AnalyticsMessages getAnalyticsMessages() {\n return AnalyticsMessages.getInstance(mContext);\n }",
"Optional<List<Message>> findAllMessagesOfUser(int id) throws DaoException;",
"public List<ChatMsg> getListRoomChatMsg() {\n //TODO add room Filter... processing, currently only one list \n //is updated by EventBus\n this.roomMsg = mobileCtrl.getListChatMsg(this.room);\n return this.roomMsg;\n }",
"public List<QlikMessageDto> getMessagesFromDatabase() {\r\n\t\tArrayList<QlikMessageDto> qlikMessages = new ArrayList<QlikMessageDto>();\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\tConnection conn = DriverManager.getConnection(url, user, password);\r\n\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql_getMessagesFromDatabase, Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tint id = rs.getInt(\"id\");\r\n\t\t\t\tString messagetext = rs.getString(\"messagetext\");\r\n\t\t\t\tboolean ispalindrome = rs.getBoolean(\"ispalindrome\");\r\n\t\t\t\tString createddatetime = rs.getString(\"createddatetime\");\r\n\r\n\t\t\t\tqlikMessages.add(new QlikMessageDto(id, messagetext, ispalindrome, createddatetime));\r\n\t\t\t}\r\n\t\t\tconn.close();\r\n\t\t} catch (ClassNotFoundException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn qlikMessages;\r\n\t}",
"public ArrayList<Message> getMessages() {\n\t\t\n\t\t//Return messages currently in network\n\t\treturn this.messages;\n\t\t\n\t}",
"public if4031.common.Message getMessages(int index) {\n return messages_.get(index);\n }",
"public int getMessagesCount() {\n return messages_.size();\n }",
"public List<org.nazymko.th.parser.autodao.tables.pojos.ConnectorSyncPageLog> fetchByMessage(String... values) {\n\t\treturn fetch(ConnectorSyncPageLog.CONNECTOR_SYNC_PAGE_LOG.MESSAGE, values);\n\t}",
"public List<Message> loadMessages() throws PersistentDataStoreException {\n\n List<Message> messages = new ArrayList<>();\n\n // Retrieve all messages from the datastore.\n Query query = new Query(\"chat-messages\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n UUID uuid = UUID.fromString((String) entity.getProperty(\"uuid\"));\n UUID conversationUuid = UUID.fromString((String) entity.getProperty(\"conv_uuid\"));\n UUID authorUuid = UUID.fromString((String) entity.getProperty(\"author_uuid\"));\n Instant creationTime = Instant.parse((String) entity.getProperty(\"creation_time\"));\n String content = (String) entity.getProperty(\"content\");\n Message message = new Message(uuid, conversationUuid, authorUuid, content, creationTime);\n messages.add(message);\n } catch (Exception e) {\n // In a production environment, errors should be very rare.\n // Errors which may\n // occur include network errors, Datastore service errors,\n // authorization errors,\n // database entity definition mismatches, or service mismatches.\n throw new PersistentDataStoreException(e);\n }\n }\n\n return messages;\n }",
"public List<Message> getAll() {\n return messageRepository.getAll();\n }",
"@Override\n\tpublic List<Message> getMessagesForUser(String username) {\n\t\treturn null;\n\t}",
"public List<Integer> getBlockPlacedDurations() {\n Result<Record1<LocalDateTime>> result = jooq.select(GAME_LOGS.TIMESTAMP)\n .from(GAME_LOGS)\n .where(GAME_LOGS.GAMEID.equal(gameId))\n .and(GAME_LOGS.MESSAGE_TYPE.equal(\"BlockPlacedMessage\"))\n .orderBy(GAME_LOGS.ID.asc())\n .fetch();\n\n List<Integer> durations = new ArrayList<>();\n if (result.isNotEmpty()) {\n // add duration until first block placed\n durations.add((int) getStartTime().until(result.getValue(0, GAME_LOGS.TIMESTAMP), MILLIS));\n for (int i = 1; i < result.size(); i++) {\n durations.add((int) result.getValue(i - 1, GAME_LOGS.TIMESTAMP)\n .until(result.getValue(i, GAME_LOGS.TIMESTAMP), MILLIS));\n }\n }\n return durations;\n }",
"public Map<Language,String> getAllMessageFired()\r\n\t{\r\n\t\treturn getAllMessageFired( getSession().getSessionContext() );\r\n\t}",
"public ActionMessages getMessages(HttpServletRequest request) {\n ActionMessages messages = null;\n HttpSession session = request.getSession();\n\n if (request.getAttribute(Globals.MESSAGE_KEY) != null) {\n messages = (ActionMessages) request.getAttribute(Globals.MESSAGE_KEY);\n saveMessages(request, messages);\n } else if (session.getAttribute(Globals.MESSAGE_KEY) != null) {\n messages = (ActionMessages) session.getAttribute(Globals.MESSAGE_KEY);\n saveMessages(request, messages);\n session.removeAttribute(Globals.MESSAGE_KEY);\n } else {\n messages = new ActionMessages();\n }\n\n return messages;\n }",
"public List<Message> getMessages(String user) {\n List<Message> messages = new ArrayList<Message>();\n\n Query query =\n new Query(\"Message\")\n //The setFilter line was here originally but not in the Step 3 provided code\n .setFilter(new Query.FilterPredicate(\"user\", FilterOperator.EQUAL, user))\n .addSort(\"timestamp\", SortDirection.DESCENDING);\n PreparedQuery results = datastore.prepare(query);\n\n return messageHelper(user, messages, query, results);\n }",
"@RequestMapping(value = \"/messages\", method = RequestMethod.GET)\n @ResponseBody\n public List<ChatDTO> getAllMessages(HttpSession session) throws IOException, SecurityException {\n if (!MethodsForControllers.isLogedIn(session)) throw new SecurityException();\n chatArrayList.clear();\n for (Chat chat : chatDao.getAllComments()) {\n String userLogin = (String) session.getAttribute(ModelConstants.LOGED_AS);\n String nameWorker = chat.getWorker().getNameWorker();\n byte[] photo = chat.getWorker().getProfile().getPhoto();\n if (photo == null) {\n InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream(\"photo/me-flat.png\");\n photo = MethodsForControllers.returnDefaultPhotoBytes(inputStream);\n }\n chatArrayList.add(new ChatDTO(nameWorker, chat.getComment(), photo, userLogin.equals(chat.getWorker().getLogin())));\n }\n return chatArrayList;\n }",
"public int getCount()\r\n {\r\n return mensagens.size();\r\n }",
"public int getLogMessages() {\n\t\treturn this.iLogMessages;\n\t}",
"Cursor getUndeliveredOneToOneChatMessages();",
"public static long getMessagesOut() {\n return messagesOut;\n }"
] | [
"0.6596479",
"0.59604937",
"0.5940887",
"0.5913761",
"0.5890101",
"0.5837356",
"0.58275104",
"0.57613415",
"0.5746214",
"0.56154466",
"0.5591501",
"0.557958",
"0.55699176",
"0.5567202",
"0.5540745",
"0.55227333",
"0.5491186",
"0.54878527",
"0.5482679",
"0.54739726",
"0.5455339",
"0.5442587",
"0.5434186",
"0.5424373",
"0.5422899",
"0.54108226",
"0.54097307",
"0.5398524",
"0.5398309",
"0.5398309",
"0.5398309",
"0.5398309",
"0.5398309",
"0.53870153",
"0.53858757",
"0.5366136",
"0.5346509",
"0.5346509",
"0.5346509",
"0.5346509",
"0.5346509",
"0.5329103",
"0.5315766",
"0.5309665",
"0.5301172",
"0.52989334",
"0.5291445",
"0.5283782",
"0.527223",
"0.5262216",
"0.52606976",
"0.5251486",
"0.5223157",
"0.5223157",
"0.5223157",
"0.5223157",
"0.5223157",
"0.52154016",
"0.5202134",
"0.5201661",
"0.5188236",
"0.51879805",
"0.5186447",
"0.5180564",
"0.5178391",
"0.5171321",
"0.51587653",
"0.5158757",
"0.5152296",
"0.5150796",
"0.515047",
"0.51335883",
"0.51334107",
"0.51272726",
"0.51246786",
"0.5121226",
"0.511871",
"0.511345",
"0.5110478",
"0.5109087",
"0.5098703",
"0.5089644",
"0.50815356",
"0.5081434",
"0.507703",
"0.50769836",
"0.5074087",
"0.50737995",
"0.507148",
"0.50659996",
"0.5065764",
"0.5060333",
"0.50561005",
"0.50545126",
"0.5053148",
"0.50330657",
"0.50313365",
"0.50308704",
"0.50213504",
"0.50209486"
] | 0.7224234 | 0 |
Return repository of messages to display in the activity start events view. | public MessageRepository<LocalDateTime> getActivityMessagesRepository() {
return activityMessagesRepository;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<ChatMessage> getChatMessages() {\n logger.info(\"**START** getChatMessages \");\n return messagesMapper.findAllMessages();\n }",
"public void getMessages(){\n if(GUI.getInstance().getBusiness().getCurrentChat() != null) {\n Set<? extends IMessageIn> response = GUI.getInstance().getBusiness().getCurrentChat().getMessages();\n if(response != null){\n messages.addAll(response);\n }\n }\n }",
"@Override\n public List<Message> getMessages() {\n return (List<Message>) messageRepository.findAll();\n }",
"public List<Messages> getAll(){\n\treturn messageRepository.getAll();\n }",
"@objid (\"d089f797-963a-472b-9102-e08e9087b6cd\")\n EList<CommunicationMessage> getStartToEndMessage();",
"public ArrayList<String> getMessages() {return messages;}",
"@Override\r\n\tpublic IMessageEvents getMessageEvents() {\r\n\t\treturn replay.messageEvents;\r\n\t}",
"public List<Mensaje> getCurrentMessages() {\n\t\tif (currentContact != null && currentUser != null)\n\t\t\ttry {\n\t\t\t\tcurrentContact = contactDAO.getContact(currentContact.getId());\n\t\t\t\treturn currentContact.getMessages();\n\t\t\t} catch (NullPointerException e) {\n\t\t\t\t// Can't stop the view's access while switching users,\n\t\t\t\t// App will just try again after loading.\n\t\t\t\treturn null;\n\t\t\t}\n\t\treturn null;\n\t}",
"List<String> showNewsAndMessages();",
"@Override\n public String[] getAllMessages() {\n return messages.toArray(new String[0]);\n }",
"public List<String> getMessages() {\n logger.info(Thread.currentThread().getStackTrace()[1].getMethodName());\n logger.debug(\"Getting All Messages -> \"+messages);\n return messages;\n }",
"public ListView getMessageListView() {\n return mMessageListView;\n }",
"public Map<Language,String> getAllMessageFired()\r\n\t{\r\n\t\treturn getAllMessageFired( getSession().getSessionContext() );\r\n\t}",
"public List<Message> getMessages() {\n return messages;\n }",
"@Override\n\tpublic List<Message> findAll() {\n\t\treturn msgdao.findAll();\n\t}",
"public List<String> getChatMessages() {\n return chatMessages;\n }",
"public List<String> getMessages() {\n return messages;\n }",
"public List<Message> getMessageAll(){\n return repo.findAll();\n \n }",
"public static Map<Long,Message> getMessages(){\r\n\t\treturn messages;\r\n\t\t\r\n\t}",
"public String[] getMessages()\n\t{\n\t\treturn messages;\n\t}",
"final protected Messages getMessages() {\r\n return messages;\r\n }",
"@GetMapping(\"/chat-messages\")\n @Timed\n public List<ChatMessage> getAllChatMessages() {\n log.debug(\"REST request to get all ChatMessages\");\n return chatMessageRepository.findAll();\n }",
"public ActionMessages getMessages(HttpServletRequest request) {\n ActionMessages messages = null;\n HttpSession session = request.getSession();\n\n if (request.getAttribute(Globals.MESSAGE_KEY) != null) {\n messages = (ActionMessages) request.getAttribute(Globals.MESSAGE_KEY);\n saveMessages(request, messages);\n } else if (session.getAttribute(Globals.MESSAGE_KEY) != null) {\n messages = (ActionMessages) session.getAttribute(Globals.MESSAGE_KEY);\n saveMessages(request, messages);\n session.removeAttribute(Globals.MESSAGE_KEY);\n } else {\n messages = new ActionMessages();\n }\n\n return messages;\n }",
"private void loadConversationList()\n\t{\n\t\tParseQuery<ParseObject> q = ParseQuery.getQuery(discussionTableName);\n\t\tif (messagesList.size() != 0)\n\t\t{\n//\t\t\t// load all messages...\n//\t\t\tArrayList<String> al = new ArrayList<String>();\n//\t\t\tal.add(discussionTopic);\n//\t\t\tal.add(MainActivity.user.getParseID());\n//\t\t\tq.whereContainedIn(\"sender\", al);\n//\t\t}\n//\t\telse {\n\t\t\t// load only newly received message..\n\t\t\tif (lastMsgDate != null)\n\t\t\t\t// Load only new messages, that weren't send by me\n\t\t\t\tq.whereGreaterThan(Const.COL_MESSAGE_CREATED_AT, lastMsgDate);\n\t\t\t\tq.whereNotEqualTo(Const.COL_MESSAGE_SENDER_ID, MainActivity.user.getParseID());\n\t\t}\n\t\tq.orderByDescending(Const.COL_MESSAGE_CREATED_AT);\n\t\tq.setLimit(100);\n\t\tq.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t@Override\n\t\t\tpublic void done(List<ParseObject> li, ParseException e) {\n\t\t\t\tif (li != null && li.size() > 0) {\n\t\t\t\t\tfor (int i = li.size() - 1; i >= 0; i--) {\n\t\t\t\t\t\tParseObject po = li.get(i);\n\n\t\t\t\t\t\tMessage message = new Message(po.getString(\n\t\t\t\t\t\t\t\tConst.COL_MESSAGE_CONTENT),\n\t\t\t\t\t\t\t\tpo.getCreatedAt(),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_ID),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_NAME));\n\n\t\t\t\t\t\tmessage.setStatus(MessageStatus.STATUS_SENT);\n\t\t\t\t\t\tmessagesList.add(message);\n\n\t\t\t\t\t\tif (lastMsgDate == null || lastMsgDate.before(message.getDate())) {\n\t\t\t\t\t\t\tlastMsgDate = message.getDate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchatAdapter.notifyDataSetChanged();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thandler.postDelayed(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (isRunning)\n\t\t\t\t\t\t\tloadConversationList();\n\t\t\t\t\t}\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t});\n\n\t}",
"public void listMessages() {\n\t\tSystem.out.println(\"== The wall of \" + name + \" ==\");\n\t\tfor(String msg : messages)\n\t\t{\n\t\t\tSystem.out.println(msg);\n\t\t}\n\t}",
"@Override\r\n\tpublic List<ChatMessageModel> getMessages(int messageIndex) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic List<Message> displayListOfMessageBetweenDate(long fromDate) {\n\n\t\tList<Message> messages = new ArrayList<Message>(); \n\n\t\ttry {\n\t\t\tmessages = messageReader.getMessageBetween(fromDate);\n\n\t\t} catch (MessageException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn messages;\n\t}",
"@Override\n public List<EventNotification> getList() throws EwpException {\n String sql = \"SELECT * From PFEventNotification\";\n return executeSqlAndGetEntityList(sql);\n }",
"public ActionMessages getMessages(HttpServletRequest request) {\r\n\t\tActionMessages messages = null;\r\n\t\tHttpSession session = request.getSession();\r\n\r\n\t\tif (request.getAttribute(Globals.MESSAGE_KEY) != null) {\r\n\t\t\tmessages = (ActionMessages) request\r\n\t\t\t\t\t.getAttribute(Globals.MESSAGE_KEY);\r\n\t\t\tsaveMessages(request, messages);\r\n\t\t} else if (session.getAttribute(Globals.MESSAGE_KEY) != null) {\r\n\t\t\tmessages = (ActionMessages) session\r\n\t\t\t\t\t.getAttribute(Globals.MESSAGE_KEY);\r\n\t\t\tsaveMessages(request, messages);\r\n\t\t\tsession.removeAttribute(Globals.MESSAGE_KEY);\r\n\t\t} else {\r\n\t\t\tmessages = new ActionMessages();\r\n\t\t}\r\n\r\n\t\treturn messages;\r\n\t}",
"@GetMapping(\"/admin/allMessages\")\n public Map<String, Object> allMessages() {\n Map<String, Object> responseMap = new HashMap<String, Object>();\n responseMap.put(\"messages\", messagesService.allMessages());\n\n return responseMap;\n }",
"public List<Message> getAll() {\n return messageRepository.getAll();\n }",
"public ArrayList<Message> getMessages(){\n return messages;\n }",
"@RequestMapping(value=\"api/messages\", method=RequestMethod.GET)\n\tpublic List<Recording> getAllMessages() {\n\t\treturn this.service.getAllMessages();\n\t}",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n if (messageBuilder_ == null) {\n return java.util.Collections.unmodifiableList(message_);\n } else {\n return messageBuilder_.getMessageList();\n }\n }",
"public List<Object> getMessageList()\r\n\t{\r\n\t\treturn messageList;\r\n\t}",
"public Iterator getMessages() {\r\n\t\treturn messages == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(messages.values());\r\n\t}",
"public List<Message> getAllMessages()\n {\n return new ArrayList<>(messages.values());\n }",
"public Collection getReceivedNotifications();",
"public List<LogEvent> getEvents() {\n return publicEvents;\n }",
"@Override\n\tpublic List<Message> displayListMessageByDate(String date) {\n\n\t\tList<Message> messages = new ArrayList<Message>();\n\n\t\ttry {\n\t\t\tmessages = messageReader.getMessageByDate(date);\n\n\t\t} catch (MessageException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn messages;\n\t}",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }",
"public java.util.List<io.dstore.engine.Message> getMessageList() {\n return message_;\n }",
"private ArrayList<Item> getEvents() {\n\t\tArrayList<Item> events = Magical.getStorage().getList(\n\t\t\t\tStorage.EVENTS_INDEX);\n\t\treturn events;\n\t}",
"public Iterable<Console> getAllNotifications(){\n return consoleRepository.findAll();\n }",
"public java.util.List<if4031.common.Message> getMessagesList() {\n return messages_;\n }",
"@Override\n\tpublic List<MessageEntity> getMessages(MessageEntity message) {\n\t\t\tList<MessageEntity> list = messageDAO.selectMessageList(message);\n\t\t\treturn list;\n\t}",
"Cursor getUndeliveredOneToOneChatMessages();",
"public List<ChatMsg> getListRoomChatMsg() {\n //TODO add room Filter... processing, currently only one list \n //is updated by EventBus\n this.roomMsg = mobileCtrl.getListChatMsg(this.room);\n return this.roomMsg;\n }",
"public ArrayList<Message> getMessages() {\n\t\treturn messages;\n\t}",
"public String getNewLogMessages() {\n streamHandler.flush();\n String text = baos.toString();\n baos.reset();\n return text;\n }",
"@Override\n\tpublic List<Message> findAll() {\n\t\tSystem.err.println(\"Vao dây\" + url);\n\t\tfor (Message massage : messRepository.findAll()) {\n\t\t\tSystem.err.println(\"massage ==>\" + massage.getUsername());\n\t\t}\n\t\treturn (List<Message>) messRepository.findAll();\n\t}",
"@objid (\"20dbaa0c-b05b-4a47-a12e-306a021a47aa\")\n EList<CommunicationMessage> getEndToStartMessage();",
"public java.lang.String[] getMessageContexts(){\n return localMessageContexts;\n }",
"public ListeMessage() {\n\t\tmessagesEntrant = new ArrayList<Message>();\n\t\tmessagesSortant = new ArrayList<Message>();\n\t\tmessages = new ArrayList<Message>();\n\t}",
"@Override\n\tpublic List<Message> getMessagesForUser(String username) {\n\t\treturn null;\n\t}",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"java.util.List<io.dstore.engine.Message> \n getMessageList();",
"public PublishingFlow getMessageFlowLogs() {\n\n\t\treturn TracingDataCollectionHelper.createPublishingFlow(this.messageFlowLogs);\n\t}",
"protected void listEvents(Activity activity) {\n List<Event> events = activity.getEvents();\n List<String> list = new ArrayList<>();\n\n for (Event event : events) {\n list.add(event.getName());\n }\n\n listItem(list);\n }",
"public List<Message> loadMessages() throws PersistentDataStoreException {\n\n List<Message> messages = new ArrayList<>();\n\n // Retrieve all messages from the datastore.\n Query query = new Query(\"chat-messages\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n UUID uuid = UUID.fromString((String) entity.getProperty(\"uuid\"));\n UUID conversationUuid = UUID.fromString((String) entity.getProperty(\"conv_uuid\"));\n UUID authorUuid = UUID.fromString((String) entity.getProperty(\"author_uuid\"));\n Instant creationTime = Instant.parse((String) entity.getProperty(\"creation_time\"));\n String content = (String) entity.getProperty(\"content\");\n Message message = new Message(uuid, conversationUuid, authorUuid, content, creationTime);\n messages.add(message);\n } catch (Exception e) {\n // In a production environment, errors should be very rare.\n // Errors which may\n // occur include network errors, Datastore service errors,\n // authorization errors,\n // database entity definition mismatches, or service mismatches.\n throw new PersistentDataStoreException(e);\n }\n }\n\n return messages;\n }",
"public String getMessages() {\n\t\treturn message;\n\t}",
"public ImmutableList<String> getInfoMessages() {\n return Lists.immutable.ofAll(infoMessages);\n }",
"public String showAllEvents() {\n String allEvents = \"\";\n for (Event e: events)\n {\n allEvents = allEvents + e.getName() + \"\\n\";\n }\n return allEvents;\n }",
"private Collection<String> searchMessagesIntoViewFile(String folderName, String viewName){\r\n\t\tCollection<String> res = new HashSet<String>();\r\n\t\tFileManager fileMngr = new FileManager(viewsFoldersPath+\"/\"+folderName+\"/\"+viewName);\r\n\t\tString content;\r\n\t\tint codeBeginIndex, codeEndIndex; //i18n&l10n start and end indexes\r\n\t\t\r\n\t\t//code=codigoi18n&l10n\r\n\t\tcontent = fileMngr.readFile();\r\n\t\tcodeBeginIndex = content.indexOf(\"code=\")+6;\r\n\t\twhile(true){\r\n\t\t\tcodeEndIndex = content.indexOf(\"\\\"\", codeBeginIndex);\r\n\t\t\tres.add(content.substring(codeBeginIndex, codeEndIndex));\r\n\t\t\tcodeBeginIndex = content.indexOf(\"code=\", codeEndIndex)+6;\r\n\t\t\t\r\n\t\t\tif(codeBeginIndex<codeEndIndex) break;\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t}",
"public MessagesPanel() {\n initComponents();\n \n proxyLookup = new ModifiableProxyLookup(createLookup(outlineViewPanel.getExplorerManager(), getActionMap()));\n\n // See org.sleuthkit.autopsy.timeline.TimeLineTopComponent for a detailed\n // explaination of focusPropertyListener\n focusPropertyListener = (final PropertyChangeEvent focusEvent) -> {\n if (focusEvent.getPropertyName().equalsIgnoreCase(\"focusOwner\")) {\n final Component newFocusOwner = (Component) focusEvent.getNewValue();\n\n if (newFocusOwner == null) {\n return;\n }\n if (isDescendingFrom(newFocusOwner, messageContentViewer)) {\n //if the focus owner is within the MessageContentViewer (the attachments table)\n proxyLookup.setNewLookups(createLookup(((MessageDataContent) messageContentViewer).getExplorerManager(), getActionMap()));\n } else if (isDescendingFrom(newFocusOwner, MessagesPanel.this)) {\n //... or if it is within the Results table.\n proxyLookup.setNewLookups(createLookup(outlineViewPanel.getExplorerManager(), getActionMap()));\n\n }\n }\n };\n\n outline = outlineViewPanel.getOutlineView().getOutline();\n outlineViewPanel.getOutlineView().setPropertyColumns(\n \"From\", Bundle.MessageViewer_columnHeader_From(),\n \"To\", Bundle.MessageViewer_columnHeader_To(),\n \"Date\", Bundle.MessageViewer_columnHeader_Date(),\n \"Subject\", Bundle.MessageViewer_columnHeader_Subject(),\n \"Attms\", Bundle.MessageViewer_columnHeader_Attms()\n );\n outline.setRootVisible(false);\n ((DefaultOutlineModel) outline.getOutlineModel()).setNodesColumnLabel(\"Type\");\n\n outlineViewPanel.getExplorerManager().addPropertyChangeListener((PropertyChangeEvent evt) -> {\n if (evt.getPropertyName().equals(ExplorerManager.PROP_SELECTED_NODES)) {\n final Node[] nodes = outlineViewPanel.getExplorerManager().getSelectedNodes();\n\n if (nodes != null && nodes.length == 1) {\n messageContentViewer.setNode(nodes[0]);\n }\n else {\n messageContentViewer.setNode(null);\n }\n }\n });\n \n splitPane.setResizeWeight(0.5);\n splitPane.setDividerLocation(0.5);\n outlineViewPanel.setTableColumnsWidth(5,10,10,15,50,10);\n }",
"public ArrayList<String> getEvents() {\n // TODO\n return res;\n }",
"public ArrayList<VicinityMessage> viewAllMessages()\n\n {\n\n try\n {\n database=dbH.getReadableDatabase();\n dbH.openDataBase();\n String query=\"SELECT * FROM Message\";\n Cursor c = database.rawQuery(query,null);\n\n VicinityMessage msg = null;\n if (c.moveToFirst()) {\n\n do {\n\n msg = new VicinityMessage();\n msg.setMessageBody(c.getString(3));\n msg.setFriendName(c.getString(2));\n msg.setIsMyMsg(c.getInt(c.getColumnIndex(\"isMyMsg\"))>0);\n msg.setFrom(c.getString(c.getColumnIndex(\"fromIP\")));\n msg.setImageString(c.getString(c.getColumnIndex(\"image\")));\n msg.setDate(c.getString(1));\n\n // Adding message to allMessages\n allMessages.add(msg);\n } while (c.moveToNext());\n }else{\n Log.i(TAG, \"There are no messages in the DB.\");\n }\n dbH.close();\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n\n return allMessages;\n }",
"@GetMapping(value = \"/messages\")\n public List<Greeting> messages() {\n return greetingService.messages();\n }",
"private Collection<Message> fetchMessages(Folder folder, Date minDate, Matcher matcher)\n\t\tthrows MessagingException {\n\t\t// Search term not fully implemented on mail servers, but can prevent fetching all email\n\t\tSearchTerm searchTerm = new SentDateTerm(ComparisonTerm.GT, minDate);\n\t\tMessage[] messages = folder.search(searchTerm);\n\t\tlogger.info(\"{} email(s) returned\", messages.length);\n\t\tbulkFetchMessageEnvelopes(folder, messages);\n\t\tList<Message> filteredMessages = new ArrayList<>();\n\t\tfor (Message message : messages) {\n\t\t\tDate sentDate = message.getSentDate();\n\t\t\tif (minDate.after(sentDate)) continue;\n\t\t\tif (!matcher.matches(message)) continue;\n\t\t\tfilteredMessages.add(message);\n\t\t}\n\t\treturn filteredMessages;\n\t}",
"@Override\n\tpublic EventMessage initLocalEventMessage() {\n\t\treturn getEventMessage();\n\t}",
"public java.util.List<if4031.common.Message> getMessagesList() {\n if (messagesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(messages_);\n } else {\n return messagesBuilder_.getMessageList();\n }\n }",
"List<Message> findAll();",
"public List<Event> getEvents() {\n List<Event> events = new ArrayList<>();\n\n Query query = new Query(\"Event\");\n PreparedQuery results = datastore.prepare(query);\n\n for (Entity entity : results.asIterable()) {\n try {\n String idString = entity.getKey().getName();\n UUID eventId = UUID.fromString(idString);\n String speaker = (String) entity.getProperty(\"speaker\");\n String organization = (String) entity.getProperty(\"organization\");\n String eventDate = (String) entity.getProperty(\"eventDate\");\n Location location = (Location) entity.getProperty(\"location\");\n List<String> amenities = getAmenities(eventId);\n String externalLink = (String) entity.getProperty(\"externalLink\");\n PublicType publicType = (PublicType) entity.getProperty(\"publicType\");\n long ownerId = (long) entity.getProperty(\"ownerId\");\n List<ThreadComment> thread = getThread(eventId);\n // long timeStamp = (long) entity.getProperty(\"timestamp\");\n\n Event event = new Event(eventId, speaker, organization, eventDate, location, amenities, externalLink,\n publicType, ownerId);\n event.copyThread(thread);\n events.add(event);\n // An exception can occur here for multiple reasons (Type casting error, any\n // property not existing, key error, etc...)\n } catch (Exception e) {\n System.err.println(\"Error reading event.\");\n System.err.println(entity.toString());\n e.printStackTrace();\n }\n }\n\n return events;\n }",
"TrackerNotificationMessages getTrackerNotificationMessages(final Integer id);",
"public Cursor getAllItems() {\n\t\treturn db.query(TABLE_EVENTS, new String[] { ROW_ID, ROW_TITLE,ROW_INFO, ROW_DATE, ROW_TIME, ROW_DATETIME,\n\t\t\tROW_REPEAT,ROW_REPEAT_TEXT, ROW_REPEAT_CNT,ROW_REPEAT_TYPE_ID,ROW_REPEAT_TYPE_TEXT,\n\t\t\tROW_BEFORE,ROW_BEFORE_TEXT, ROW_BEFORE_CNT,ROW_BEFORE_TYPE_ID,ROW_BEFORE_TYPE_TEXT,\n\t\t\t\t\t\t\tROW_ACTIVE }, null, null, null, null, ROW_DATETIME+\" asc\");\n\t}",
"public List<MessageKey> listMessages(String status);",
"public List<Message> listMessages(Integer tid);",
"public ArrayList<Message> getAllmessage(){return allmessage;}",
"protected void messageList() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tmessageStore.print();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}",
"public java.util.List<com.google.devtools.kythe.proto.Analysis.FileInfo> getEntryList() {\n if (entryBuilder_ == null) {\n return java.util.Collections.unmodifiableList(entry_);\n } else {\n return entryBuilder_.getMessageList();\n }\n }",
"@Override\r\n public List<Events> findAllEvents() {\r\n return em.createNamedQuery(\"Events.findAll\").getResultList();\r\n }",
"public List<Message> getAllMessages() {\n Query query = new Query(\"Message\").addSort(\"timestamp\", SortDirection.DESCENDING);\n\n return returnMessages(query, null);\n }",
"public void addGetMessagesListener(XMPPConnection connection){\n\t PacketFilter filter = new MessageTypeFilter(Message.Type.chat);\n connection.addPacketListener(new PacketListener() {\n @Override\n public void processPacket(Packet packet) {\n Message message = (Message) packet;\n if (message.getBody() != null) {\n String fromName = StringUtils.parseBareAddress(message.getFrom());\n Log.i(\"XMPPChatDemoActivity \", \" Text Recieved \" + message.getBody() + \" from \" + fromName);\n messages.add(fromName + \":\");\n messages.add(message.getBody());\n // Add the incoming message to the list view\n mHandler.post(new Runnable() {\n public void run() {\n setListAdapter();\n }\n });\n }\n }\n }, filter);\n }",
"Cursor getQueuedOneToOneChatMessages(ContactId contact);",
"public List<message> getList() {\n return chats;\n }",
"public Table getMessagesTable(){\n\t\treturn m_messages;\n\t}",
"private void getMessage(MessageEvent messageEvent) {\n if(GUI.getInstance().getBusiness().getCurrentChat() != null && messageEvent.getMessageIn().getChatId() == GUI.getInstance().getBusiness().getCurrentChat().getId()) {\n Platform.runLater(() -> {\n IMessageIn message = messageEvent.getMessageIn();\n messages.add(message);\n });\n }\n }",
"public List<Event> getCreatedEvents() {\n return createdEvents;\n }",
"void getAllMessages(final String channel, Long start, final int count, final CallbackSkeleton callback) {\n pubnub.history()\n .channel(channel)\n .count(count)\n .start(start)\n .includeTimetoken(true)\n .async(new PNCallback<PNHistoryResult>() {\n @Override\n public void onResponse(PNHistoryResult result, PNStatus status) {\n if (!status.isError() && !result.getMessages().isEmpty()) {\n callback.handleResponse(result);\n getAllMessages(channel, result.getMessages().get(0).getTimetoken(), count, callback);\n if(result.getMessages().size() < 100)\n finished = true;\n }\n }\n });\n }",
"public abstract Event[] getInitialEvents();"
] | [
"0.62712204",
"0.6135985",
"0.6008366",
"0.5853442",
"0.5801943",
"0.5788843",
"0.57318914",
"0.56897086",
"0.5685535",
"0.56632996",
"0.56606305",
"0.5647242",
"0.56406766",
"0.563419",
"0.56166124",
"0.5605429",
"0.55896175",
"0.5574655",
"0.5560528",
"0.5553427",
"0.554749",
"0.55471265",
"0.552946",
"0.5508492",
"0.55053896",
"0.5499311",
"0.54971874",
"0.5492307",
"0.54865324",
"0.5480688",
"0.5465843",
"0.5462757",
"0.5434563",
"0.54340714",
"0.54340714",
"0.54340714",
"0.54340714",
"0.54340714",
"0.5397979",
"0.53972656",
"0.5383425",
"0.53744787",
"0.5374448",
"0.53553075",
"0.53507686",
"0.53507686",
"0.53507686",
"0.53507686",
"0.53507686",
"0.53419447",
"0.53141",
"0.5313152",
"0.5306094",
"0.5301723",
"0.5300795",
"0.5289644",
"0.52818745",
"0.5281463",
"0.5278926",
"0.52774525",
"0.5273832",
"0.5273239",
"0.52718025",
"0.52718025",
"0.52718025",
"0.52718025",
"0.52718025",
"0.5265475",
"0.5257693",
"0.52450514",
"0.5242509",
"0.5237378",
"0.5237137",
"0.52256685",
"0.52156216",
"0.5209793",
"0.519913",
"0.51953286",
"0.51951754",
"0.51889324",
"0.5176233",
"0.5172715",
"0.5170578",
"0.5164282",
"0.5156234",
"0.5156006",
"0.51496273",
"0.5141141",
"0.51286834",
"0.51277447",
"0.512714",
"0.5123592",
"0.51233834",
"0.5105058",
"0.5097389",
"0.5094696",
"0.50881994",
"0.50863546",
"0.50853586",
"0.50820595"
] | 0.6281117 | 0 |
[SSLv2Hello, TLSv1, TLSv1.1, TLSv1.2] | public static SSLEngine createSSLEngine(String host, int port) {
SSLEngine result = context.createSSLEngine(host, port);
result.setEnabledCipherSuites(filterCipherSuits(result));
result.setEnabledProtocols(protocols);
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void m1388b(SSLSocket sSLSocket) {\n sSLSocket.setEnabledProtocols(new String[]{\"TLSv1.2\"});\n }",
"private static boolean installJettyTLSProtocolSelection(final SSLEngine engine,\n final SettableFuture<Void> protocolNegotiated) {\n for (String protocolNegoClassName : JETTY_TLS_NEGOTIATION_IMPL) {\n try {\n Class<?> negoClass;\n try {\n negoClass = Class.forName(protocolNegoClassName);\n } catch (ClassNotFoundException ignored) {\n // Not on the classpath.\n log.warningfmt(\"Jetty extension %s not found\", protocolNegoClassName);\n continue;\n }\n Class<?> providerClass = Class.forName(protocolNegoClassName + \"$Provider\");\n Class<?> clientProviderClass = Class.forName(protocolNegoClassName + \"$ClientProvider\");\n Method putMethod = negoClass.getMethod(\"put\", SSLEngine.class, providerClass);\n final Method removeMethod = negoClass.getMethod(\"remove\", SSLEngine.class);\n putMethod.invoke(null, engine, Proxy.newProxyInstance(\n Http2Client.class.getClassLoader(),\n new Class[]{clientProviderClass},\n new InvocationHandler() {\n @Override\n public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n String methodName = method.getName();\n switch (methodName) {\n case \"supports\":\n // both\n return true;\n case \"unsupported\":\n // both\n removeMethod.invoke(null, engine);\n protocolNegotiated.setException(\n new IllegalStateException(\"ALPN/NPN not supported by server\"));\n return null;\n case \"protocols\":\n // ALPN only\n return ImmutableList.of(HTTP_VERSION_NAME);\n case \"selected\":\n // ALPN only\n // Only 'supports' one protocol so we know what was 'selected.\n removeMethod.invoke(null, engine);\n protocolNegotiated.set(null);\n return null;\n case \"selectProtocol\":\n // NPN only\n @SuppressWarnings(\"unchecked\")\n List<String> names = (List<String>) args[0];\n for (String name : names) {\n if (name.startsWith(HTTP_VERSION_NAME)) {\n protocolNegotiated.set(null);\n return name;\n }\n }\n protocolNegotiated.setException(\n new IllegalStateException(\"Protocol not available via ALPN/NPN: \" + names));\n removeMethod.invoke(null, engine);\n return null;\n }\n throw new IllegalStateException(\"Unknown method \" + methodName);\n }\n }));\n return true;\n } catch (Exception e) {\n log.severefmt(e, \"Unable to initialize protocol negotation for %s\",\n protocolNegoClassName);\n }\n }\n return false;\n }",
"int getProtocolVersion();",
"private static Socket m39192a(Socket socket) {\n if (socket instanceof SSLSocket) {\n SSLSocket sSLSocket = (SSLSocket) socket;\n ArrayList arrayList = new ArrayList(Arrays.asList(sSLSocket.getSupportedProtocols()));\n arrayList.retainAll(Arrays.asList(new String[]{\"TLSv1.2\", \"TLSv1.1\", \"TLSv1\"}));\n sSLSocket.setEnabledProtocols((String[]) arrayList.toArray(new String[arrayList.size()]));\n }\n return socket;\n }",
"@Nullable\n @Generated\n @Selector(\"negotiatedTLSProtocolVersion\")\n public native NSNumber negotiatedTLSProtocolVersion();",
"public void testSSLSocketStringint() throws Exception {\n ServerSocket ss = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(\"localhost\", ss.getLocalPort());\n ss.close();\n soc.close();\n }",
"protected String getDefaultProtocols() {\r\n\t\tString sp = System.getProperty(\"transport.client.protocol\");\r\n\t\tif (isEmpty(sp))\r\n\t\t\tsp = \"SSL_TLS,TLS,SSL\";\r\n\t\treturn sp;\r\n\t}",
"@Override\r\n public SSLImplementation getSslImplementation() {\n return null;\r\n }",
"public void setSslProtocol(String strUrl) throws Exception {\r\n \r\n URL url = new URL(strUrl);\r\n String host = url.getHost();\r\n int port = url.getPort();\r\n\r\n if (port <= 0) {\r\n port = SSL_PORT;\r\n }\r\n setSslHostPort(host, port);\r\n\r\n }",
"@Test\n public void testWildflyOpenSSL() throws Throwable {\n assumeThat(hasWildfly).isTrue();\n assertThat(bindSocketFactory(Default))\n .describedAs(\"Sockets from mode \" + Default)\n .isIn(OpenSSL, Default_JSSE);\n }",
"public TrustingSSLSocketFactory() throws SSLException {\n\t\tSecurity.addProvider(new com.sun.net.ssl.internal.ssl.Provider());\n\t\tSystem.setProperty(\"java.protocol.handler.pkgs\", \"com.sun.net.ssl.internal.www.protocol\");\n\t\ttry {\n\t\t\tSSLContext sslContext;\n\t\t\tsslContext = SSLContext.getInstance(\"SSLv3\");\n\t\t\tsslContext.init(null, new TrustManager[]{new UtilSSLSocketFactory.TrustingX509TrustManager()}, null);\n\t\t\tfactory = sslContext.getSocketFactory();\n\t\t} catch (NoSuchAlgorithmException nsae) {\n\t\t\tthrow new SSLException(\"Unable to initialize the SSL context: \", nsae);\n\t\t} catch (KeyManagementException kme) {\n\t\t\tthrow new SSLException(\"Unable to register a trust manager: \", kme);\n\t\t}\n\t\tciphers = factory.getDefaultCipherSuites();\n\t}",
"@Override\npublic SSL_MODES getSSLMode() {\n\treturn null;\n}",
"public void test() throws IOException {\n SocketChannel socketChannel = SocketChannel.open();\n socketChannel.configureBlocking(false);\n socketChannel.connect(new InetSocketAddress(BuildConfig.API_URL, ServerIP.PORT));\n\n// Complete connection\n while (!socketChannel.finishConnect()) {\n // do something until connect completed\n }\n\n// Create byte buffers to use for holding application and encoded data\n SSLSession session = sslEngine.getSession();\n ByteBuffer myAppData = ByteBuffer.allocate(session.getApplicationBufferSize());\n ByteBuffer myNetData = ByteBuffer.allocate(session.getPacketBufferSize());\n ByteBuffer peerAppData = ByteBuffer.allocate(session.getApplicationBufferSize());\n ByteBuffer peerNetData = ByteBuffer.allocate(session.getPacketBufferSize());\n\n// Do initial handshake\n// doHandshake(socketChannel, sslEngine, myNetData, peerNetData);\n\n myAppData.put(\"hello\".getBytes());\n myAppData.flip();\n\n while (myAppData.hasRemaining()) {\n // Generate SSL/TLS encoded data (handshake or application data)\n SSLEngineResult res = sslEngine.wrap(myAppData, myNetData);\n\n // Process status of call\n if (res.getStatus() == SSLEngineResult.Status.OK) {\n myAppData.compact();\n\n // Send SSL/TLS encoded data to peer\n while(myNetData.hasRemaining()) {\n int num = socketChannel.write(myNetData);\n if (num == 0) {\n // no bytes written; try again later\n }\n }\n }\n\n // Handle other status: BUFFER_OVERFLOW, CLOSED\n }\n\n // Read SSL/TLS encoded data from peer\n int num = socketChannel.read(peerNetData);\n if (num == -1) {\n // The channel has reached end-of-stream\n } else if (num == 0) {\n // No bytes read; try again ...\n } else {\n // Process incoming data\n peerNetData.flip();\n SSLEngineResult res = sslEngine.unwrap(peerNetData, peerAppData);\n\n if (res.getStatus() == SSLEngineResult.Status.OK) {\n peerNetData.compact();\n\n if (peerAppData.hasRemaining()) {\n // Use peerAppData\n }\n }\n // Handle other status: BUFFER_OVERFLOW, BUFFER_UNDERFLOW, CLOSED\n }\n }",
"public String name () {\n return \"tls\";\n }",
"public boolean isTls() {\n return tls;\n }",
"@Test\n public void testHttps_simplepem() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n KeyStore ks = KeyStore.getInstance(\"simplepem\");\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/certchain.pem\")\n .add(\"src/test/resources/key.pem\")\n .build(),\n new char[0]\n );\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n ks.load(new MultiFileConcatSource()\n .alias(\"server\")\n .add(\"src/test/resources/selfcert.pem\")\n .add(\"src/test/resources/selfkey.pem\")\n .build(),\n new char[0]\n );\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }",
"public boolean isSsl() {\n return ssl;\n }",
"private void verifyServerHandshake(InputStream inputStream, String secWebSocketKey) throws IOException {\n try {\n SessionInputBufferImpl sessionInputBuffer = new SessionInputBufferImpl(new HttpTransportMetricsImpl(),\n 8192);\n sessionInputBuffer.bind(inputStream);\n HttpMessageParser<HttpResponse> parser = new DefaultHttpResponseParser(sessionInputBuffer);\n HttpResponse response = parser.parse();\n\n StatusLine statusLine = response.getStatusLine();\n if (statusLine == null) {\n throw new InvalidServerHandshakeException(\"There is no status line\");\n }\n\n int statusCode = statusLine.getStatusCode();\n if (statusCode != 101) {\n throw new InvalidServerHandshakeException(\n \"Invalid status code. Expected 101, received: \" + statusCode);\n }\n\n Header[] upgradeHeader = response.getHeaders(\"Upgrade\");\n if (upgradeHeader.length == 0) {\n throw new InvalidServerHandshakeException(\"There is no header named Upgrade\");\n }\n String upgradeValue = upgradeHeader[0].getValue();\n if (upgradeValue == null) {\n throw new InvalidServerHandshakeException(\"There is no value for header Upgrade\");\n }\n upgradeValue = upgradeValue.toLowerCase();\n if (!upgradeValue.equals(\"websocket\")) {\n throw new InvalidServerHandshakeException(\n \"Invalid value for header Upgrade. Expected: websocket, received: \" + upgradeValue);\n }\n\n Header[] connectionHeader = response.getHeaders(\"Connection\");\n if (connectionHeader.length == 0) {\n throw new InvalidServerHandshakeException(\"There is no header named Connection\");\n }\n String connectionValue = connectionHeader[0].getValue();\n if (connectionValue == null) {\n throw new InvalidServerHandshakeException(\"There is no value for header Connection\");\n }\n connectionValue = connectionValue.toLowerCase();\n if (!connectionValue.equals(\"upgrade\")) {\n throw new InvalidServerHandshakeException(\n \"Invalid value for header Connection. Expected: upgrade, received: \" + connectionValue);\n }\n\n// Header[] secWebSocketAcceptHeader = response.getHeaders(\"Sec-WebSocket-Accept\");\n// if (secWebSocketAcceptHeader.length == 0) {\n// throw new InvalidServerHandshakeException(\"There is no header named Sec-WebSocket-Accept\");\n// }\n// String secWebSocketAcceptValue = secWebSocketAcceptHeader[0].getValue();\n// if (secWebSocketAcceptValue == null) {\n// throw new InvalidServerHandshakeException(\"There is no value for header Sec-WebSocket-Accept\");\n// }\n\n// String keyConcatenation = secWebSocketKey + GUID;\n// byte[] sha1 = DigestUtils.sha1(keyConcatenation);\n// String secWebSocketAccept = Base64.encodeBase64String(sha1);\n// if (!secWebSocketAcceptValue.equals(secWebSocketAccept)) {\n// throw new InvalidServerHandshakeException(\n// \"Invalid value for header Sec-WebSocket-Accept. Expected: \" + secWebSocketAccept\n// + \", received: \" + secWebSocketAcceptValue);\n// }\n } catch (HttpException e) {\n throw new InvalidServerHandshakeException(e.getMessage());\n }\n }",
"private static void setupSSL() {\n\t\ttry {\n\t\t\tTrustManager[] trustAllCerts = createTrustAllCertsManager();\n\t\t\tSSLContext sslContext = SSLContext.getInstance(SSL_CONTEXT_PROTOCOL);\n\t\t\tSecureRandom random = new java.security.SecureRandom();\n\t\t\tsslContext.init(null, trustAllCerts, random);\n\t\t\tHttpsURLConnection.setDefaultSSLSocketFactory(sslContext.getSocketFactory());\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\tLOGGER.error(INVALID_PROTOCOL_ERROR_MESSAGE, e);\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t} catch (GeneralSecurityException e) {\n\t\t\tthrow new ExceptionInInitializerError(e);\n\t\t}\n\n\t}",
"private static String sslContextAlgorithm(List<String> supportedProtocols) {\n if (supportedProtocols.isEmpty()) {\n throw new IllegalArgumentException(\"no SSL/TLS protocols have been configured\");\n }\n for (Entry<String, String> entry : ORDERED_PROTOCOL_ALGORITHM_MAP.entrySet()) {\n if (supportedProtocols.contains(entry.getKey())) {\n return entry.getValue();\n }\n }\n throw new IllegalArgumentException(\"no supported SSL/TLS protocol was found in the configured supported protocols: \"\n + supportedProtocols);\n }",
"public void testSSLSocket() {\n SSLSocket soc = new MySSLSocket();\n try {\n soc.close();\n } catch (IOException e) {\n }\n }",
"private void handshakeRes(ClientMessageUnpacker unpacker, ProtocolVersion proposedVer)\n throws IgniteClientConnectionException, IgniteClientAuthenticationException {\n try (unpacker) {\n ProtocolVersion srvVer = new ProtocolVersion(unpacker.unpackShort(), unpacker.unpackShort(),\n unpacker.unpackShort());\n\n var errCode = unpacker.unpackInt();\n\n if (errCode != ClientErrorCode.SUCCESS) {\n var msg = unpacker.unpackString();\n\n if (errCode == ClientErrorCode.AUTH_FAILED)\n throw new IgniteClientAuthenticationException(msg);\n else if (proposedVer.equals(srvVer))\n throw new IgniteClientException(\"Client protocol error: unexpected server response.\");\n else if (!supportedVers.contains(srvVer))\n throw new IgniteClientException(String.format(\n \"Protocol version mismatch: client %s / server %s. Server details: %s\",\n proposedVer,\n srvVer,\n msg\n ));\n else { // Retry with server version.\n handshake(srvVer);\n }\n\n throw new IgniteClientConnectionException(msg);\n }\n\n var featuresLen = unpacker.unpackBinaryHeader();\n unpacker.skipValue(featuresLen);\n\n var extensionsLen = unpacker.unpackMapHeader();\n unpacker.skipValue(extensionsLen);\n\n protocolCtx = protocolContextFromVersion(srvVer);\n }\n }",
"@Override // javax.net.ssl.SSLSocket\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void startHandshake() {\n /*\n // Method dump skipped, instructions count: 634\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C58602mC.startHandshake():void\");\n }",
"private void checkResponseHeader(HttpResponse p_checkResponseHeader_1_) {\n/* 277 */ String s = p_checkResponseHeader_1_.getHeader(\"Connection\");\n/* */ \n/* 279 */ if (s != null && !s.toLowerCase().equals(\"keep-alive\"))\n/* */ {\n/* 281 */ terminate(new EOFException(\"Connection not keep-alive\"));\n/* */ }\n/* */ \n/* 284 */ String s1 = p_checkResponseHeader_1_.getHeader(\"Keep-Alive\");\n/* */ \n/* 286 */ if (s1 != null) {\n/* */ \n/* 288 */ String[] astring = Config.tokenize(s1, \",;\");\n/* */ \n/* 290 */ for (int i = 0; i < astring.length; i++) {\n/* */ \n/* 292 */ String s2 = astring[i];\n/* 293 */ String[] astring1 = split(s2, '=');\n/* */ \n/* 295 */ if (astring1.length >= 2) {\n/* */ \n/* 297 */ if (astring1[0].equals(\"timeout\")) {\n/* */ \n/* 299 */ int j = Config.parseInt(astring1[1], -1);\n/* */ \n/* 301 */ if (j > 0)\n/* */ {\n/* 303 */ this.keepaliveTimeoutMs = (j * 1000);\n/* */ }\n/* */ } \n/* */ \n/* 307 */ if (astring1[0].equals(\"max\")) {\n/* */ \n/* 309 */ int k = Config.parseInt(astring1[1], -1);\n/* */ \n/* 311 */ if (k > 0)\n/* */ {\n/* 313 */ this.keepaliveMaxCount = k;\n/* */ }\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ }",
"private static SslContextBuilder sslContextBuilder(final boolean nativeTlsEnabled) {\n SslProvider provider = nativeTlsEnabled && InitOnDemandHolder.OPENSSL_AVAILABLE ? SslProvider.OPENSSL : SslProvider.JDK;\n return SslContextBuilder.forClient().sslProvider(provider);\n }",
"boolean hasSocketProtocol();",
"private void startPlaintextUpgrade(final Http2Codec http2Codec) {\n // Register the plaintext upgrader\n Http2ClientUpgradeCodec upgradeCodec = new Http2ClientUpgradeCodec(http2Codec);\n HttpClientCodec httpClientCodec = new HttpClientCodec();\n final HttpClientUpgradeHandler upgrader = new HttpClientUpgradeHandler(httpClientCodec,\n upgradeCodec, 1000);\n final UpgradeCompletionHandler completionHandler = new UpgradeCompletionHandler();\n\n Channel channel = connect(new ChannelInitializer<SocketChannel>() {\n @Override\n public void initChannel(SocketChannel ch) throws Exception {\n ch.pipeline().addLast(upgrader);\n ch.pipeline().addLast(completionHandler);\n }\n });\n\n try {\n // Trigger the HTTP/1.1 plaintext upgrade protocol by issuing an HTTP request\n // which causes the upgrade headers to be added\n Promise<Void> upgradePromise = completionHandler.getUpgradePromise();\n DefaultHttpRequest upgradeTrigger =\n new DefaultHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, \"/\");\n channel.writeAndFlush(upgradeTrigger);\n // Wait for the upgrade to complete\n upgradePromise.get(5, TimeUnit.SECONDS);\n } catch (Exception e) {\n // Attempt to close the channel before propagating the error\n channel.close();\n throw new IllegalStateException(\"Error waiting for plaintext protocol upgrade\", e);\n }\n }",
"public String getSslProtocolsProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_SSL_PROTOCOLS);\n }",
"@Deprecated\n public List<V1IngressTLS> getTls();",
"public SSLEngine openSSLEngine()\n {\n SSLSocketProvider.Dependencies deps = getSocketProvider().getDependencies();\n SSLEngine engine = deps.getSSLContext().createSSLEngine();\n String[] asCiphers = deps.getEnabledCipherSuites();\n String[] asProtocols = deps.getEnabledProtocolVersions();\n if (asCiphers != null)\n {\n engine.setEnabledCipherSuites(asCiphers);\n }\n\n if (asProtocols != null)\n {\n engine.setEnabledProtocols(asProtocols);\n }\n\n switch (deps.getClientAuth())\n {\n case wanted:\n engine.setNeedClientAuth(false);\n engine.setWantClientAuth(true);\n break;\n case required:\n engine.setWantClientAuth(true);\n engine.setNeedClientAuth(true);\n break;\n case none:\n default:\n engine.setWantClientAuth(false);\n engine.setNeedClientAuth(false);\n break;\n }\n\n return engine;\n }",
"public boolean isSslOffloaded() {\n return this.sslOffloaded;\n }",
"public final SSLParameters getSupportedSSLParameters() {\n return spiImpl.engineGetSupportedSSLParameters();\n }",
"public void ShowSSLDialog(java.lang.String r23, byte[] r24, android.net.http.SslCertificate r25, boolean r26) {\n /*\n r22 = this;\n r3 = com.adobe.air.AndroidActivityWrapper.GetAndroidActivityWrapper();\n r10 = r3.getActivity();\n if (r10 != 0) goto L_0x000e;\n L_0x000a:\n r10 = r3.WaitForNewActivity();\n L_0x000e:\n r7 = new com.adobe.air.AndroidAlertDialog;\n r7.<init>(r10);\n r16 = r7.GetAlertDialogBuilder();\n r9 = r10.getLayoutInflater();\n r14 = r10.getResources();\n r19 = \"ssl_certificate_warning\";\n r0 = r19;\n r17 = com.adobe.air.utils.Utils.GetLayoutView(r0, r14, r9);\n if (r17 == 0) goto L_0x0178;\n L_0x0029:\n r18 = r17.getResources();\n r19 = \"ServerName\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r15 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r15 = (android.widget.TextView) r15;\n r19 = new java.lang.StringBuilder;\n r19.<init>();\n r20 = r15.getText();\n r19 = r19.append(r20);\n r20 = \" \";\n r19 = r19.append(r20);\n r0 = r19;\n r1 = r23;\n r19 = r0.append(r1);\n r19 = r19.toString();\n r0 = r19;\n r15.setText(r0);\n r5 = 0;\n if (r24 == 0) goto L_0x0179;\n L_0x0062:\n r5 = new com.adobe.air.Certificate;\n r5.<init>();\n r0 = r24;\n r5.setCertificate(r0);\n L_0x006c:\n r19 = \"IDA_CERTIFICATE_DETAILS\";\n r0 = r19;\n r6 = com.adobe.air.utils.Utils.GetResourceString(r0, r14);\n r19 = 8;\n r0 = r19;\n r0 = new java.lang.Object[r0];\n r19 = r0;\n r20 = 0;\n r21 = r5.getIssuedToCommonName();\n r19[r20] = r21;\n r20 = 1;\n r21 = r5.getIssuedToOrganization();\n r19[r20] = r21;\n r20 = 2;\n r21 = r5.getIssuedToOrganizationalUnit();\n r19[r20] = r21;\n r20 = 3;\n r21 = r5.getIssuedByCommonName();\n r19[r20] = r21;\n r20 = 4;\n r21 = r5.getIssuedByOrganization();\n r19[r20] = r21;\n r20 = 5;\n r21 = r5.getIssuedByOrganizationalUnit();\n r19[r20] = r21;\n r20 = 6;\n r21 = r5.getIssuedOn();\n r19[r20] = r21;\n r20 = 7;\n r21 = r5.getExpiresOn();\n r19[r20] = r21;\n r0 = r19;\n r8 = java.lang.String.format(r6, r0);\n r19 = \"CertificateDetails\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r4 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r4 = (android.widget.TextView) r4;\n r19 = android.widget.TextView.BufferType.SPANNABLE;\n r0 = r19;\n r4.setText(r8, r0);\n r19 = \"NeutralButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r12 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r12 = (android.widget.Button) r12;\n r19 = new com.adobe.air.SSLSecurityDialog$1;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r12.setOnClickListener(r0);\n r19 = \"PositiveButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r13 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r13 = (android.widget.Button) r13;\n if (r26 == 0) goto L_0x0182;\n L_0x0103:\n r19 = new com.adobe.air.SSLSecurityDialog$2;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r13.setOnClickListener(r0);\n r19 = 0;\n r0 = r19;\n r13.setVisibility(r0);\n L_0x0118:\n r19 = \"NegativeButton\";\n r0 = r19;\n r1 = r18;\n r2 = r17;\n r11 = com.adobe.air.utils.Utils.GetWidgetInViewByNameFromPackage(r0, r1, r2);\n r11 = (android.widget.Button) r11;\n r19 = new com.adobe.air.SSLSecurityDialog$3;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r11.setOnClickListener(r0);\n r16.setView(r17);\n r19 = new com.adobe.air.SSLSecurityDialog$4;\n r0 = r19;\n r1 = r22;\n r0.<init>();\n r0 = r16;\n r1 = r19;\n r0.setOnKeyListener(r1);\n r19 = new com.adobe.air.SSLSecurityDialog$5;\n r0 = r19;\n r1 = r22;\n r0.<init>(r7);\n r0 = r19;\n r10.runOnUiThread(r0);\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.lock();\n r0 = r22;\n r0 = r0.m_useraction;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n if (r19 != 0) goto L_0x016f;\n L_0x0166:\n r0 = r22;\n r0 = r0.m_condition;\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n r19 = r0;\n r19.await();\t Catch:{ InterruptedException -> 0x018a, all -> 0x0195 }\n L_0x016f:\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n L_0x0178:\n return;\n L_0x0179:\n r5 = new com.adobe.air.Certificate;\n r0 = r25;\n r5.<init>(r0);\n goto L_0x006c;\n L_0x0182:\n r19 = 8;\n r0 = r19;\n r13.setVisibility(r0);\n goto L_0x0118;\n L_0x018a:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r19 = r0;\n r19.unlock();\n goto L_0x0178;\n L_0x0195:\n r19 = move-exception;\n r0 = r22;\n r0 = r0.m_lock;\n r20 = r0;\n r20.unlock();\n throw r19;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.adobe.air.SSLSecurityDialog.ShowSSLDialog(java.lang.String, byte[], android.net.http.SslCertificate, boolean):void\");\n }",
"public boolean useSSL() {\n\t\treturn ssl;\n\t}",
"@Test(timeout=300000)\n public void test2() throws Throwable {\n AuthenticatedServerSocketFactory authenticatedServerSocketFactory0 = new AuthenticatedServerSocketFactory((SSLServerSocketFactory) null);\n // Undeclared exception!\n try { \n authenticatedServerSocketFactory0.getSupportedCipherSuites();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.objectweb.cjdbc.common.net.AuthenticatedServerSocketFactory\", e);\n }\n }",
"public interface SSLSessionInitializer {\n\n /**\n * Triggered when the SSL connection is being initialized. Custom handlers\n * can use this callback to customize properties of the {@link javax.net.ssl.SSLEngine}\n * used to establish the SSL session.\n *\n * @param endpoint the endpoint name for a client side session or {@code null}\n * for a server side session.\n * @param sslEngine the SSL engine.\n */\n void initialize(NamedEndpoint endpoint, SSLEngine sslEngine);\n\n}",
"@Test\n public void testHttps_simplepemreload() throws Exception {\n if (\"true\".equals(System.getProperty(\"io.r2.skipLongTests\"))) throw new SkipException(\"Long test skipped\");\n\n copyCertKey(\"certchain.pem\", \"key.pem\");\n\n KeyStore ks = getKeyStore();\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(\"simplepemreload\");\n kmf.init( ExpiringCacheKeyManagerParameters.forKeyStore(ks).withRevalidation(5) );\n\n KeyManager[] km = kmf.getKeyManagers();\n assertThat(km).hasSize(1);\n\n SSLContext ctx = SSLContext.getInstance(\"TLSv1.2\");\n ctx.init(km, null, null);\n\n HttpsServer server = startHttpsServer(ctx);\n\n try {\n HttpsURLConnection conn = createClientConnection();\n\n assertThat(conn.getPeerPrincipal().getName()).isEqualTo(\"CN=anna.apn2.com\");\n\n Thread.sleep(1000); // avoid very quick overwriting of file in case of quick test run\n\n copyCertKey(\"selfcert.pem\", \"selfkey.pem\");\n\n Thread.sleep(10000); // wait for picking up the change in 5 seconds (+extra)\n\n HttpsURLConnection conn2 = createClientConnection();\n\n assertThat(conn2.getPeerPrincipal().getName()).isEqualTo(\"CN=self.signed.cert,O=Radical Research,ST=NA,C=IO\");\n\n }\n finally {\n // stop server\n server.stop(0);\n }\n }",
"public boolean sslEnabled(){\n\t\treturn sslEnabled;\n\t}",
"ProtocolVersion getRestliProtocolVersion();",
"public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {\n/* 195 */ return this.delegate.getServerCertificates();\n/* */ }",
"void onSSLCertificateError(UnrecognizedCertificateException exception);",
"boolean onHandshakeResponse(\n HttpMessage httpMessage,\n Socket inSocket,\n @SuppressWarnings(\"deprecation\") ZapGetMethod method);",
"public final boolean getIsSocketSSLConnection(){\r\n return isSocketSSL;\r\n }",
"@PostConstruct\n\t\tprivate void configureSSL() {\n\t\t\tSystem.setProperty(\"https.protocols\", \"TLSv1.2\");\n\n\t\t\t//load the 'javax.net.ssl.trustStore' and\n\t\t\t//'javax.net.ssl.trustStorePassword' from application.properties\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStore\", env.getProperty(\"server.ssl.trust-store\"));\n\t\t\tSystem.setProperty(\"javax.net.ssl.trustStorePassword\",env.getProperty(\"server.ssl.trust-store-password\"));\n\t\t}",
"Future<ListProtocolsResponse> listProtocols(\n ListProtocolsRequest request,\n AsyncHandler<ListProtocolsRequest, ListProtocolsResponse> handler);",
"private SSLEngineResult.HandshakeStatus doTasks() {\r\n\r\n Runnable runnable;\r\n\r\n /*\r\n * We could run this in a separate thread, but do in the current for now.\r\n */\r\n while ((runnable = tlsEngine.getDelegatedTask()) != null) {\r\n runnable.run();\r\n }\r\n return tlsEngine.getHandshakeStatus();\r\n }",
"public void setTls(boolean tls) {\n this.tls = tls;\n }",
"public void testSSLSocketStringintInetAddressint() throws Exception {\n try {\n ServerSocket ss1 = new ServerSocket(0);\n ServerSocket ss2 = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(\"localhost\", ss1.getLocalPort(),\n InetAddress.getLocalHost(), ss2.getLocalPort());\n ss1.close();\n ss2.close();\n soc.close();\n } catch (IOException e) {\n }\n }",
"void doClientSide() throws Exception {\n\n\t\tSSLSocketFactory sslsf = (SSLSocketFactory) SSLSocketFactory\n\t\t\t\t.getDefault();\n\t\tSSLSocket sslSocket = (SSLSocket) sslsf.createSocket(theServerName,\n\t\t\t\t12345);\n\t\t\n\t\tOutputStream sslOS = sslSocket.getOutputStream();\n\t\tsslOS.write(\"Hello SSL Server\".getBytes()); // Write to the Server\n\t\tsslOS.flush();\n\t\tsslSocket.close();\n\t}",
"private static int getEncryptedPacketLength(ByteBuffer buffer) {\n packetLength = 0;\n pos = buffer.position();\n switch (SslUtils.unsignedByte((byte)buffer.get((int)pos))) {\n case 20: \n case 21: \n case 22: \n case 23: \n case 24: {\n tls = true;\n ** break;\n }\n }\n tls = false;\nlbl8: // 2 sources:\n if (tls) {\n majorVersion = SslUtils.unsignedByte((byte)buffer.get((int)(pos + 1)));\n if (majorVersion == 3) {\n packetLength = SslUtils.unsignedShortBE((ByteBuffer)buffer, (int)(pos + 3)) + 5;\n if (packetLength <= 5) {\n tls = false;\n }\n } else {\n tls = false;\n }\n }\n if (tls != false) return packetLength;\n headerLength = (SslUtils.unsignedByte((byte)buffer.get((int)pos)) & 128) != 0 ? 2 : 3;\n majorVersion = SslUtils.unsignedByte((byte)buffer.get((int)(pos + headerLength + 1)));\n if (majorVersion != 2) {\n if (majorVersion != 3) return -2;\n }\n packetLength = headerLength == 2 ? (SslUtils.shortBE((ByteBuffer)buffer, (int)pos) & 32767) + 2 : (SslUtils.shortBE((ByteBuffer)buffer, (int)pos) & 16383) + 3;\n if (packetLength > headerLength) return packetLength;\n return -1;\n }",
"public int configTLS( String url ) {\n if (tlsIsConfigured) {\n log.debug(\"Already configured! Omit call of HttpCfgService!\");\n return CFG_RSP_ALREADY;\n }\n try {\n int rsp = ((Integer) server.invoke(xdsHttpCfgServiceName,\n \"configTLS\",\n new Object[] { url },\n new String[] { String.class.getName() } ) ).intValue();\n if ( rsp == CFG_RSP_OK || rsp == CFG_RSP_ALREADY ) {\n tlsIsConfigured = true;\n }\n log.debug(\"configTLS of HttpCfgService return (1..OK, 2..already configured, 0..ignored, -1..error):\"+rsp);\n return rsp;\n } catch ( Exception x ) {\n log.error( \"Exception occured in configTLS: \"+x.getMessage(), x );\n return CFG_RSP_ERROR;\n }\n }",
"public static List<CertKeyPair> exampleTlsCerts() {\n final Path root = getFlightTestDataRoot();\n return Arrays.asList(new CertKeyPair(root.resolve(\"cert0.pem\")\n .toFile(), root.resolve(\"cert0.pkcs1\").toFile()),\n new CertKeyPair(root.resolve(\"cert1.pem\")\n .toFile(), root.resolve(\"cert1.pkcs1\").toFile()));\n }",
"public String protocolInitializationString(){\n //subclass should implement\n return \"HTTP/\"+major+\".\"+minor+ \" \"+ code + \" \" +reason();\n }",
"public String getSslPort() {\r\n\t\treturn sslPort;\r\n\t}",
"public boolean isSslEnabled() {\n\t\treturn sslEnabled;\n\t}",
"@Override\n public void setSSLParameters(SSLParameters sslP) {\n\n }",
"public final void isSocketSSLConnection(boolean isSecure){\r\n isSocketSSL = isSecure;\r\n }",
"public static int getProtocol() {\n\t\treturn 0;\n\t}",
"public String getSslCipherSuitesProperty() {\n\n return unmaskProperty(EmailConnectionConstants.PROPERTY_SSL_CIPHER_SUITES);\n }",
"public interface TlsPolicy {\n \n boolean providesConfidentiality();\n \n boolean providesAuthentication();\n \n boolean providesIntegrity();\n \n\n X509ExtendedTrustManager getTrustManager();\n\n /**\n * NOTE: when using HttpsURLConnection, the hostname verifier is only \n * called if the server certificate does not match the address used to\n * connect. \n * When using Apache's StrictHostnameVerifier, the failure\n * message looks like \"HTTPS hostname wrong: should be <192.168.1.100>\"\n * When using our DenyAllHostnameVerifier, the failure message\n * looks like \"DENY-ALL\"\n * \n * \n * @return \n */\n X509HostnameVerifier getHostnameVerifier();\n \n /**\n * Due to the architecture of the Java SSLContext and the workaround for\n * connection pooling with TlsPolicyManager, the protocol selector must\n * be known prior to using the TlsPolicyManager. The TlsConnection \n * class provides a convenience function for creating the SSLContext \n * using the protocol selector.\n * be known \n * @return \n */\n ProtocolSelector getProtocolSelector();\n}",
"public final HandshakeStatus getHandshakeStatus() {\n/* 209 */ return this.handshakeStatus;\n/* */ }",
"public static void m1386a(SSLSocket sSLSocket) {\n String[] enabledCipherSuites = sSLSocket.getEnabledCipherSuites();\n if (!(enabledCipherSuites == null || enabledCipherSuites.length == 0)) {\n ArrayList arrayList = new ArrayList();\n for (String str : enabledCipherSuites) {\n if (!m1387a(str)) {\n arrayList.add(str);\n }\n }\n sSLSocket.setEnabledCipherSuites((String[]) arrayList.toArray(new String[arrayList.size()]));\n }\n }",
"public void testSSLSocketInetAddressint() throws Exception {\n ServerSocket ss = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss\n .getLocalPort());\n ss.close();\n soc.close();\n }",
"public WarpSSLData getSSL()\r\n throws IOException {\r\n \r\n if (closed) throw new IOException(\"Stream closed\");\r\n this.packet.reset();\r\n this.packet.setType(Constants.TYPE_ASK_SSL);\r\n this.request.getConnection().send(packet);\r\n packet.reset();\r\n\r\n this.request.getConnection().recv(packet);\r\n if (closed) throw new IOException(\"Stream closed\");\r\n if (packet.getType()==Constants.TYPE_REP_SSL_NO) return(null);\r\n if (packet.getType()!=Constants.TYPE_REP_SSL)\r\n throw new IOException(\"Invalid WARP packet type for SSL data\");\r\n WarpSSLData ssldata = new WarpSSLData();\r\n ssldata.ciph = this.packet.readString();\r\n ssldata.sess = this.packet.readString();\r\n ssldata.size = this.packet.readInteger();\r\n return(ssldata);\r\n }",
"@Override\n protected void prepareHandshakeMessageContents() {\n }",
"public static void main(String[] args) {\n\t\t//DEFINE SETTINGS HERE\n\t\tString host = \"smtp.gmail.com\";\n\t\tint port = 587;\n\t\t\n BufferedReader sysIn = new BufferedReader(new InputStreamReader(System.in)); //Read from console\n PrintStream sysOut = System.out; //Print to console\n\t\t\n SSLSocketFactory mainFactory = (SSLSocketFactory) SSLSocketFactory.getDefault(); //Get default SSL socket factory\n try {\n\t\t\t//Regular connection\n\t\t\tSocket plainSocket = new Socket(host, port);\n\t\t\tSSLSocket clientSocket = null;\n\t\t\tBufferedWriter serverWriter = new BufferedWriter(new OutputStreamWriter(plainSocket.getOutputStream())); //Write to unsec server\n BufferedReader serverReader = new BufferedReader(new InputStreamReader(plainSocket.getInputStream())); //Read from unsec server\n\t\t\t\n\t\t\tString serverInput = null; //Stores latest line from server\n String userInput = \"\"; //Stores lastest input line from user\n\t\t\tboolean connSuccess = true; //Stores connection attempt state\n\t\t\t\n\t\t\t//Check for good greeting\n\t\t\tif ((serverInput = serverReader.readLine()) == null || ! serverInput.substring(0,3).equals(\"220\")) {\n\t\t\t\t//Check if server gave 220 code\n\t\t\t\tsysOut.println(\"Secure connection to server failed. Server did not greet.\");\n\t\t\t\tconnSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Send helo to server\n\t\t\tif (connSuccess) {\n\t\t\t\tuserInput = \"HELO \" + host;\n\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\tserverWriter.newLine();\n\t\t\t\tserverWriter.flush();\n\t\t\t}\n\t\t\t\n\t\t\t//Check for good helo response\n\t\t\tif (connSuccess && ((serverInput = serverReader.readLine()) == null || ! serverInput.substring(0,3).equals(\"250\"))) {\n\t\t\t\t//If HELO failed\n\t\t\t\tsysOut.println(\"Secure connection to server failed. Bad HELO response.\");\n\t\t\t\tconnSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Send starttls to server\n\t\t\tif (connSuccess) {\n\t\t\t\tuserInput = \"STARTTLS\";\n\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\tserverWriter.newLine();\n\t\t\t\tserverWriter.flush();\n\t\t\t}\n\t\t\t\n\t\t\t//Check for good starttls response\n\t\t\tif (connSuccess && ((serverInput = serverReader.readLine()) == null || ! serverInput.substring(0,3).equals(\"220\"))) {\n\t\t\t\t//If STARTTLS failed\n\t\t\t\tsysOut.println(\"Secure connection to server failed. Bad STARTTLS response.\");\n\t\t\t\tconnSuccess = false;\n\t\t\t}\n\t\t\t\n\t\t\t//Upgrade if good starttls response\n\t\t\tif (connSuccess) {\n\t\t\t\t//create, connect, start handshake\n\t\t\t\tclientSocket = (SSLSocket) mainFactory.createSocket(plainSocket, plainSocket.getInetAddress().getHostAddress(), plainSocket.getPort(), true); \n\t\t\t\tprintSocketInfo(clientSocket); //Print connection info\n\t\t\t\t\n\t\t\t\tserverWriter = new BufferedWriter(new OutputStreamWriter(clientSocket.getOutputStream())); //Write to server\n\t\t\t\tserverReader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream())); //Read from server\n\t\t\t\t\n\t\t\t\tboolean tryRead = true; //Whether to read next line from serverReader (prevents blocking on multiline SMTP responses)\n\n\t\t\t\t//The below booleans, used to successully close the connection, might be unnecessary\n\t\t\t\tboolean quitUser = false; //Whether the user has entered quit, might be unnecessary\n\t\t\t\tboolean openRead = true; //Whether serverReader is still open (serverInput != null)\n\t\t\t\tboolean openSocket = true; //Whether clientSocket is still open (clientSocket != null)\n\n\t\t\t\t//SMTP input variables\n\t\t\t\tboolean sendingData = false;\n\t\t\t\tString cmdMode = \"regular\";\n\n\t\t\t\t//Main connection loop\n\t\t\t\twhile (openSocket && openRead && !quitUser) {\n\t\t\t\t\tif (clientSocket == null) { //Break if socket is closed\n\t\t\t\t\t\topenSocket = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//Display server response/message\n\t\t\t\t\twhile (tryRead) {\n\t\t\t\t\t\tserverInput = serverReader.readLine();\n\t\t\t\t\t\tif (serverInput == null) { //If serverReader gets closed/connection broken\n\t\t\t\t\t\t\topenRead = false;\n\t\t\t\t\t\t\ttryRead = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsysOut.println(serverInput);\n\t\t\t\t\t\tif (serverInput.substring(3, 4).equals(\"-\")) { //Check if multiline response\n\t\t\t\t\t\t\ttryRead = true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttryRead = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//Exit client if 221 stream close msg received\n\t\t\t\t\tif (serverInput != null && serverInput.substring(0, 3).equals(\"221\")) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//Exit client if connection lost/closed prematurely\n\t\t\t\t\tif (openSocket == false || openRead == false) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t//Enter data mode if data command sent and 354 confirmation received\n\t\t\t\t\tif (userInput.equalsIgnoreCase(\"data\") && serverInput.substring(0, 3).equals(\"354\")) {\n\t\t\t\t\t\tsendingData = true;\n\t\t\t\t\t\tcmdMode = \"data\";\n\t\t\t\t\t}\n\t\t\t\t\t//In data mode (multi-line) and sending data (. not entered)\n\t\t\t\t\twhile (sendingData && cmdMode.equals(\"data\")) {\n\t\t\t\t\t\tuserInput = sysIn.readLine();\n\t\t\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\t\t\tserverWriter.newLine();\n\t\t\t\t\t\tserverWriter.flush();\n\t\t\t\t\t\tif (userInput.equals(\".\")) { //End of message\n\t\t\t\t\t\t\tsendingData = false;\n\t\t\t\t\t\t\ttryRead = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//In regular command mode (single-line)\n\t\t\t\t\tif (cmdMode.equals(\"regular\")) {\n\t\t\t\t\t\tuserInput = \"\"; //Reset userInput to show prompt\n\t\t\t\t\t\t//Read user input, display prompt if blank enter, otherwise send to server\n\t\t\t\t\t\twhile (userInput.equals(\"\")) {\n\t\t\t\t\t\t\tsysOut.print(\"C: \");\n\t\t\t\t\t\t\tuserInput = sysIn.readLine();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tserverWriter.write(userInput, 0, userInput.length()); //Writing to server\n\t\t\t\t\t\tserverWriter.newLine();\n\t\t\t\t\t\tserverWriter.flush();\n\t\t\t\t\t\ttryRead = true;\n\t\t\t\t\t}\n\t\t\t\t\tcmdMode = \"regular\"; //Force reset to regular mode after response-command cycle ends\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n //Clean up all connection objects\n serverWriter.close();\n serverReader.close();\n\t\t\tplainSocket.close();\n\t\t\tif (connSuccess) {\n\t\t\t\t\tclientSocket.close();\n\t\t\t}\n sysIn.close();\n sysOut.close();\n } catch (IOException e) {\n System.err.println(e.toString());\n }\n }",
"public TLSStatus getStatus() {\r\n TLSStatus status = null;\r\n if (tlsEngineResult != null && tlsEngineResult.getStatus() == Status.BUFFER_UNDERFLOW) {\r\n status = TLSStatus.UNDERFLOW;\r\n } else {\r\n if (tlsEngineResult != null && tlsEngineResult.getStatus() == Status.CLOSED) {\r\n status = TLSStatus.CLOSED;\r\n } else {\r\n switch (tlsEngine.getHandshakeStatus()) {\r\n case NEED_WRAP:\r\n status = TLSStatus.NEED_WRITE;\r\n break;\r\n case NEED_UNWRAP:\r\n status = TLSStatus.NEED_READ;\r\n break;\r\n default:\r\n status = TLSStatus.OK;\r\n break;\r\n }\r\n }\r\n }\r\n return status;\r\n }",
"@Override\n public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) {\n\n handler.proceed();\n\n Log.d(TAG, \"SSL Error \" + handler.toString());\n Log.d(TAG, \"SSL Error \" + error.toString());\n }",
"public SslState sslState() {\n return this.sslState;\n }",
"protected boolean checkSsl(ActionMapping mapping,\r\n\t\t\tHttpServletRequest request, HttpServletResponse response) {\r\n\t\tString redirectString = SslUtil.getRedirectString(request, getServlet()\r\n\t\t\t\t.getServletContext(), SECURE.equals(mapping.getParameter()));\r\n\r\n\t\tif (redirectString != null) {\r\n\t\t\tlog.debug(\"protocol switch needed, redirecting...\");\r\n\r\n\t\t\ttry {\r\n\t\t\t\t// Redirect the page to the desired URL\r\n\t\t\t\tresponse.sendRedirect(response\r\n\t\t\t\t\t\t.encodeRedirectURL(redirectString));\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t} catch (Exception ioe) {\r\n\t\t\t\tlog.error(\"redirect to new protocol failed...\");\r\n\r\n\t\t\t\t// Handle appropriately\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}",
"@Stability.Internal\n public static List<String> defaultCiphers(final boolean nativeTlsEnabled) {\n if (nativeTlsEnabled && !InitOnDemandHolder.OPENSSL_AVAILABLE) {\n throw InvalidArgumentException.fromMessage(\"nativeTlsEnabled, but it is not available on this platform!\");\n }\n\n try {\n SslContextBuilder builder = SslHandlerFactory.sslContextBuilder(nativeTlsEnabled);\n return builder.build().cipherSuites();\n } catch (Exception ex) {\n throw new CouchbaseException(\"Could not get list of default ciphers\", ex);\n }\n }",
"SASL getSASL();",
"private String requestGet(URL url) throws CheckPasswordException {\n \n \tSSLContext ctx = null;\n \t\n \t// Try TLS algorithms until we find something we understand.\n \t// Should try from newest to oldest so that we use the most secure\n \t// TLS algorithm we can.\n \tfor(String algo : modernTls) { \n\t \ttry {\n\t \tctx = SSLContext.getInstance(algo);\n\t \tbreak;\n\t }catch(NoSuchAlgorithmException e) {\n\t \t// Move on to the next one\n\t }\n \t}\n \t\n \tif(ctx == null) {\n \t\tthrow new CheckPasswordException(\"Unable to find a supported, secure TLS version\", CheckPasswordErrorCode.BadConfiguration);\n \t}\n\n \t// The initial attempt should not count as a retry, so +1 \t\n \tfor(int attempts = getNumRetries() + 1; attempts >0; attempts--){\n\t \ttry {\n\t \t\t// Use default security controls, including certificate checks\n\t \t\tctx.init(null, null, null);\n\t \t} catch(KeyManagementException e){\n\t \t\tthrow new CheckPasswordException(\"Connection failed: could not read keystore\", e, CheckPasswordErrorCode.BadConfiguration);\n\t \t}\n\t SSLContext.setDefault(ctx);\n\t\n\t HttpsURLConnection connection;\n\t try {\n\t \tconnection = (HttpsURLConnection) url.openConnection();\n\t } catch (IOException e) {\n\t \tthrow new CheckPasswordException(\"Connection failed: HTTPS connection could not be created\", e, CheckPasswordErrorCode.BadConfiguration);\n\t }\n\t \n\t try {\n\t \tconnection.setRequestMethod(\"GET\");\n\t \tconnection.setRequestProperty(\"User-Agent\", userAgent);\n\t \tif(getApiKey() != null) {\n\t \t\tconnection.setRequestProperty(\"hibp-api-key\", getApiKey());\n\t \t}\n\t } catch (ProtocolException e) {\n\t \tthrow new CheckPasswordException(\"Connection failed: protocol exception\", e, CheckPasswordErrorCode.APICallFailure);\n\t }\n\t\n\t \n\t try {\n\t \t\n\t \t// Handle non-200 results. We can only \"fix\" a 429 Too Many Requests though.\n\t \tint status = connection.getResponseCode();\n\t \tif(status != 200) {\n\t \t\tif(status == 429) {\n\t \t\t\tString s_delay = connection.getHeaderField(\"retry-after\");\n\t \t\t\ttry {\n\t \t\t\t\tint delay = Integer.parseInt(s_delay);\n\t \t\t\t\tif(delay > getMaxWait()) {\n\t \t\t\t\t\tthrow new CheckPasswordException(\"API retry-after delay longer than maxWait\", CheckPasswordErrorCode.APICallFailure);\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t\t// sleep expects milliseconds\n\t \t\t\t\ttry {\n\t \t\t\t\t\tThread.sleep(delay * 1000);\n\t \t\t\t\t\tcontinue;\n\t \t\t\t\t}catch(InterruptedException ex) {\n\t \t\t\t\t\tthrow new CheckPasswordException(\"Interrupted while waiting to retry request\", ex, CheckPasswordErrorCode.BadConfiguration);\n\t \t\t\t\t}\n\t \t\t\t\t\n\t \t\t\t}catch(NumberFormatException ex) {\n\t \t\t\t\tthrow new CheckPasswordException(\"Unparsable retry-after value from API\", ex,CheckPasswordErrorCode.APICallFailure);\n\t \t\t\t}\n\t \t\t}\n\t \t\telse {\n\t \t\t\tthrow new CheckPasswordException(String.format(\"Received status code {0} from API\", status), CheckPasswordErrorCode.APICallFailure);\n\t \t\t}\n\t \t}\n\t \t\n\t \t// Read the response into a String because it's easier to work with.\n\t \tInputStream responseIS = (InputStream) connection.getInputStream();\n\t \tStringBuilder textBuilder = new StringBuilder();\n\t \tint c;\n\t \twhile( (c = responseIS.read()) != -1 ){\n\t \t\ttextBuilder.append((char) c);\n\t \t}\n\t \tString response = textBuilder.toString();\n\t\n\t \treturn response;\n\t } catch (IOException e) {\n\t \tthrow new CheckPasswordException(\"Could not read API response\", e, CheckPasswordErrorCode.APICallFailure);\n\t }\n \t}\n \t\n \t// If we were successful, we returned from inside the for loop. Only wait to get here\n \t// was to exhaust our retries on a 429 Too Many Requests\n \tthrow new CheckPasswordException(\"Exhausted retries and failed to get a successful response from API\", CheckPasswordErrorCode.APICallFailure);\n \n }",
"@Override\n\tpublic void handshakeCompleted(HandshakeCompletedEvent evt) {\n\t\t\n\t}",
"@Override\n public SSLParameters getSSLParameters() {\n return null;\n }",
"public static void setProtocol(int protocolVersion) {\n\t\t\n\t}",
"SslContext buildSslContext()\n throws SSLException\n {\n if (isClient) {\n return buildClientSslContext();\n } else {\n return buildServerSslContext();\n }\n }",
"protected SSLContext() {}",
"private void doHandshake()throws Exception {\n\t\tHttpClient httpClient = new HttpClient();\n\t\t// Here set up Jetty's HttpClient, for example:\n\t\t// httpClient.setMaxConnectionsPerDestination(2);\n\t\thttpClient.start();\n\n\t\t// Prepare the transport\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\tClientTransport transport = new LongPollingTransport(options, httpClient);\n\n\t\t// Create the BayeuxClient\n\t\tClientSession client = new BayeuxClient(\"http://localhost:8080/childrenguard-server/cometd\", transport);\n\n\t\tclient.handshake(null,new ClientSessionChannel.MessageListener()\n\t\t{\n\t\t public void onMessage(ClientSessionChannel channel, Message message)\n\t\t {\n\t\t \tSystem.out.println(\"fail to connect to server.\");\n\t\t if (message.isSuccessful())\n\t\t {\n\t\t \tSystem.out.println(message);\n\t\t // Here handshake is successful\n\t\t }\n\t\t }\n\t\t});\n\t\t\n\t\t// Here set up the BayeuxClient, for example:\n\t\t//client.getChannel(Channel.META_CONNECT).addListener(new ClientSessionChannel.MessageListener() { });\n\n\t\t\n\t}",
"@Override\n public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error){\n handler.proceed();\n }",
"String getProtocol();",
"void onOk(SSLKeyStore store);",
"private void handshake() {\n JsonNode helloResponse = this.readNextResponse();\n\n if (!helloResponse.has(\"hello\")) {\n throw new JsiiError(\"Expecting 'hello' message from jsii-runtime\");\n }\n\n String runtimeVersion = helloResponse.get(\"hello\").asText();\n assertVersionCompatible(JSII_RUNTIME_VERSION, runtimeVersion);\n }",
"private void handshake() {\n JsonNode helloResponse = this.readNextResponse();\n\n if (!helloResponse.has(\"hello\")) {\n throw new JsiiException(\"Expecting 'hello' message from jsii-runtime\");\n }\n\n String runtimeVersion = helloResponse.get(\"hello\").asText();\n assertVersionCompatible(JSII_RUNTIME_VERSION, runtimeVersion);\n }",
"public void testSSLSocketInetAddressintInetAddressint() throws Exception {\n try {\n ServerSocket ss1 = new ServerSocket(0);\n ServerSocket ss2 = new ServerSocket(0);\n SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss1\n .getLocalPort(), InetAddress.getLocalHost(), ss2\n .getLocalPort());\n ss1.close();\n ss2.close();\n soc.close();\n } catch (IOException e) {\n }\n }",
"private static SSLContext createSSLContext() {\n\t try {\n\t SSLContext context = SSLContext.getInstance(\"SSL\");\n\t if (devMode) {\n\t \t context.init( null, new TrustManager[] {new RESTX509TrustManager(null)}, null); \n\t } else {\n\t TrustManager[] trustManagers = tmf.getTrustManagers();\n\t if ( kmf!=null) {\n\t KeyManager[] keyManagers = kmf.getKeyManagers();\n\t \n\t // key manager and trust manager\n\t context.init(keyManagers,trustManagers,null);\n\t }\n\t else\n\t \t// no key managers\n\t \tcontext.init(null,trustManagers,null);\n\t }\n\t return context;\n\t } \n\t catch (Exception e) {\n\t \t logger.error(e.toString());\n\t throw new HttpClientError(e.toString());\n\t \t }\n }",
"@Test\n\tpublic void testHandshakesExecuted() throws KeyManagementException, NoSuchAlgorithmException, IOException {\n\t\tExperimentalTrustManager handler = new ExperimentalTrustManager();\n\t\tinitContext(handler);\n\t\tURL fbUrl = new URL(\"https://www.facebook.com\");\n\t\tHttpsURLConnection con = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Firstime handshake should occur\", 1, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tcon = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Second handshake didn't occur because of shared ssl session\", 1, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tURL ytUrl = new URL(\"https://www.youtube.com/\");\n\t\tcon = createConnection(ytUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Connection to other location is in other ssl session so handshage occurs\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\tcon = createConnection(ytUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"Seccond session is also shared - no handshake\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t\t\n\t\t// once again try first connection if session was forgotten or not\n\t\tcon = createConnection(fbUrl);\n\t\tcon.connect();\n\t\tassertEquals(\"First session is still valid - no handshage\", 2, handler.getHandshakeCount());\n\t\tcon.disconnect();\n\t}",
"public String getProtocolVersion() {\r\n return protocolVersion;\r\n }",
"boolean hasProtocol();",
"@Test(timeout=300000)\n public void test3() throws Throwable {\n AuthenticatedServerSocketFactory authenticatedServerSocketFactory0 = new AuthenticatedServerSocketFactory((SSLServerSocketFactory) null);\n // Undeclared exception!\n try { \n authenticatedServerSocketFactory0.getDefaultCipherSuites();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n assertThrownBy(\"org.objectweb.cjdbc.common.net.AuthenticatedServerSocketFactory\", e);\n }\n }",
"public SSLState getSSLState() {\n return new SSLState(_sslContext);\n }",
"private SSLSocket prepare(SSLSocket baseSocket) {\n\t\tbaseSocket.setEnabledCipherSuites(ciphers);\n\t\treturn baseSocket;\n\t}",
"void handshake() throws SyncConnectionException;",
"public static javax.net.ssl.HttpsURLConnection m20154a(android.content.Context r7, java.lang.String r8, java.lang.String r9, boolean r10, boolean r11) {\n /*\n r0 = 0;\n if (r11 == 0) goto L_0x0007;\n L_0x0003:\n r8 = com.huawei.android.pushagent.p018c.p027c.C4116f.m20151a(r7, r9, r11);\n L_0x0007:\n if (r8 != 0) goto L_0x0011;\n L_0x0009:\n r1 = \"PushLogAC2712\";\n r2 = \"TRSUrl is null, cannot create connection.\";\n com.huawei.android.pushagent.c.a.e.a(r1, r2);\n L_0x0010:\n return r0;\n L_0x0011:\n r1 = \"PushLogAC2712\";\n r2 = new java.lang.StringBuilder;\n r2.<init>();\n r3 = \"TRS httpUrl = \";\n r2 = r2.append(r3);\n r2 = r2.append(r8);\n r3 = \",useDefaultPort = \";\n r2 = r2.append(r3);\n r2 = r2.append(r11);\n r2 = r2.toString();\n com.huawei.android.pushagent.c.a.e.a(r1, r2);\n r1 = com.huawei.android.pushagent.p018c.p027c.C4116f.m20156b(r7, r8, r10);\t Catch:{ IOException -> 0x00ee, Exception -> 0x00eb }\n r2 = \"PushLogAC2712\";\n r3 = \"get connection success.\";\n com.huawei.android.pushagent.c.a.e.a(r2, r3);\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n r1.connect();\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n r3 = r1.getOutputStream();\t Catch:{ Exception -> 0x0095, all -> 0x00d8 }\n r2 = com.huawei.android.pushagent.p018c.p027c.C4116f.m20155b(r7, r9);\t Catch:{ Exception -> 0x00f3 }\n r4 = \"UTF-8\";\n r2 = r2.getBytes(r4);\t Catch:{ Exception -> 0x00f3 }\n r3.write(r2);\t Catch:{ Exception -> 0x00f3 }\n r3.flush();\t Catch:{ Exception -> 0x00f3 }\n if (r3 == 0) goto L_0x005a;\n L_0x0057:\n r3.close();\t Catch:{ Exception -> 0x0063, IOException -> 0x006e }\n L_0x005a:\n r2 = \"PushLogAC2712\";\n r3 = \"call conn.connect() success\";\n com.huawei.android.pushagent.c.a.e.a(r2, r3);\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n r0 = r1;\n goto L_0x0010;\n L_0x0063:\n r2 = move-exception;\n r3 = \"PushLogAC2712\";\n r4 = r2.toString();\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n com.huawei.android.pushagent.c.a.e.c(r3, r4, r2);\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n goto L_0x005a;\n L_0x006e:\n r2 = move-exception;\n r6 = r2;\n r2 = r1;\n r1 = r6;\n L_0x0072:\n r3 = \"PushLogAC2712\";\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"connect to TRS cause IOException:\";\n r4 = r4.append(r5);\n r1 = r1.toString();\n r1 = r4.append(r1);\n r1 = r1.toString();\n com.huawei.android.pushagent.c.a.e.d(r3, r1);\n if (r2 == 0) goto L_0x0010;\n L_0x0090:\n r2.disconnect();\n goto L_0x0010;\n L_0x0095:\n r2 = move-exception;\n r3 = r0;\n L_0x0097:\n r4 = \"PushLogAC2712\";\n r5 = r2.toString();\t Catch:{ all -> 0x00f1 }\n com.huawei.android.pushagent.c.a.e.c(r4, r5, r2);\t Catch:{ all -> 0x00f1 }\n if (r3 == 0) goto L_0x005a;\n L_0x00a2:\n r3.close();\t Catch:{ Exception -> 0x00a6, IOException -> 0x006e }\n goto L_0x005a;\n L_0x00a6:\n r2 = move-exception;\n r3 = \"PushLogAC2712\";\n r4 = r2.toString();\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n com.huawei.android.pushagent.c.a.e.c(r3, r4, r2);\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n goto L_0x005a;\n L_0x00b1:\n r2 = move-exception;\n r6 = r2;\n r2 = r1;\n r1 = r6;\n L_0x00b5:\n r3 = \"PushLogAC2712\";\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"connect to TRS cause Exception:\";\n r4 = r4.append(r5);\n r5 = r1.toString();\n r4 = r4.append(r5);\n r4 = r4.toString();\n com.huawei.android.pushagent.c.a.e.c(r3, r4, r1);\n if (r2 == 0) goto L_0x0010;\n L_0x00d3:\n r2.disconnect();\n goto L_0x0010;\n L_0x00d8:\n r2 = move-exception;\n r3 = r0;\n L_0x00da:\n if (r3 == 0) goto L_0x00df;\n L_0x00dc:\n r3.close();\t Catch:{ Exception -> 0x00e0, IOException -> 0x006e }\n L_0x00df:\n throw r2;\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n L_0x00e0:\n r3 = move-exception;\n r4 = \"PushLogAC2712\";\n r5 = r3.toString();\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n com.huawei.android.pushagent.c.a.e.c(r4, r5, r3);\t Catch:{ IOException -> 0x006e, Exception -> 0x00b1 }\n goto L_0x00df;\n L_0x00eb:\n r1 = move-exception;\n r2 = r0;\n goto L_0x00b5;\n L_0x00ee:\n r1 = move-exception;\n r2 = r0;\n goto L_0x0072;\n L_0x00f1:\n r2 = move-exception;\n goto L_0x00da;\n L_0x00f3:\n r2 = move-exception;\n goto L_0x0097;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.huawei.android.pushagent.c.c.f.a(android.content.Context, java.lang.String, java.lang.String, boolean, boolean):javax.net.ssl.HttpsURLConnection\");\n }",
"@Test\n public void skipSslTest() {\n // TODO: test skipSsl\n }",
"public String getTlsKey();",
"public List<String> supportedProtocols()\r\n/* 69: */ {\r\n/* 70:162 */ return this.supportedProtocols;\r\n/* 71: */ }",
"public void testSecureConnectionException() {\n IOException exception = IosHttpURLConnection.secureConnectionException(\"Test\");\n assertTrue(exception instanceof SSLException);\n }",
"Map<SSLConfiguration, SSLContextHolder> loadSSLConfigurations() {\n final Map<SSLConfiguration, SSLContextHolder> sslContextHolders = new HashMap<>();\n\n final Map<String, Settings> sslSettingsMap = new HashMap<>();\n sslSettingsMap.put(XPackSettings.HTTP_SSL_PREFIX, getHttpTransportSSLSettings(settings));\n sslSettingsMap.put(\"xpack.http.ssl\", settings.getByPrefix(\"xpack.http.ssl.\"));\n sslSettingsMap.putAll(getRealmsSSLSettings(settings));\n sslSettingsMap.putAll(getMonitoringExporterSettings(settings));\n sslSettingsMap.put(WatcherField.EMAIL_NOTIFICATION_SSL_PREFIX, settings.getByPrefix(WatcherField.EMAIL_NOTIFICATION_SSL_PREFIX));\n\n sslSettingsMap.forEach((key, sslSettings) -> loadConfiguration(key, sslSettings, sslContextHolders));\n\n final Settings transportSSLSettings = settings.getByPrefix(XPackSettings.TRANSPORT_SSL_PREFIX);\n final SSLConfiguration transportSSLConfiguration =\n loadConfiguration(XPackSettings.TRANSPORT_SSL_PREFIX, transportSSLSettings, sslContextHolders);\n this.transportSSLConfiguration.set(transportSSLConfiguration);\n Map<String, Settings> profileSettings = getTransportProfileSSLSettings(settings);\n profileSettings.forEach((key, profileSetting) -> loadConfiguration(key, profileSetting, sslContextHolders));\n\n for (String context : List.of(\"xpack.security.transport.ssl\", \"xpack.security.http.ssl\")) {\n validateServerConfiguration(context);\n }\n\n return Collections.unmodifiableMap(sslContextHolders);\n }",
"public int isSSLEnabled() {\n\t\tint enabled = 0;\n\t\tif (Boolean.parseBoolean(config.getProperty(ssl_yml_key)) == true || config.getProperty(ssl_yml_key).equals(ssl_yml_key)) {\n\t\t\tenabled = 1;\n\t\t}\n\t\t\n\t\treturn enabled;\n\t}",
"public interface ServerSocketFactory {\n\n\n // --------------------------------------------------------- Public Methods\n\n\n /**\n * Returns a server socket which uses all network interfaces on\n * the host, and is bound to a the specified port. The socket is\n * configured with the socket options (such as accept timeout)\n * given to this factory.\n *\n * @param port the port to listen to\n *\n * @exception IOException input/output or network error\n * @exception KeyStoreException error instantiating the\n * KeyStore from file (SSL only)\n * @exception NoSuchAlgorithmException KeyStore algorithm unsupported\n * by current provider (SSL only)\n * @exception CertificateException general certificate error (SSL only)\n * @exception UnrecoverableKeyException internal KeyStore problem with\n * the certificate (SSL only)\n * @exception KeyManagementException problem in the key management\n * layer (SSL only)\n */\n public ServerSocket createSocket (int port)\n throws IOException, KeyStoreException, NoSuchAlgorithmException,\n CertificateException, UnrecoverableKeyException,\n KeyManagementException;\n\n\n /**\n * Returns a server socket which uses all network interfaces on\n * the host, is bound to a the specified port, and uses the\n * specified connection backlog. The socket is configured with\n * the socket options (such as accept timeout) given to this factory.\n *\n * @param port the port to listen to\n * @param backlog how many connections are queued\n *\n * @exception IOException input/output or network error\n * @exception KeyStoreException error instantiating the\n * KeyStore from file (SSL only)\n * @exception NoSuchAlgorithmException KeyStore algorithm unsupported\n * by current provider (SSL only)\n * @exception CertificateException general certificate error (SSL only)\n * @exception UnrecoverableKeyException internal KeyStore problem with\n * the certificate (SSL only)\n * @exception KeyManagementException problem in the key management\n * layer (SSL only)\n */\n public ServerSocket createSocket (int port, int backlog)\n throws IOException, KeyStoreException, NoSuchAlgorithmException,\n CertificateException, UnrecoverableKeyException,\n KeyManagementException;\n\n\n /**\n * Returns a server socket which uses only the specified network\n * interface on the local host, is bound to a the specified port,\n * and uses the specified connection backlog. The socket is configured\n * with the socket options (such as accept timeout) given to this factory.\n *\n * @param port the port to listen to\n * @param backlog how many connections are queued\n * @param ifAddress the network interface address to use\n *\n * @exception IOException input/output or network error\n * @exception KeyStoreException error instantiating the\n * KeyStore from file (SSL only)\n * @exception NoSuchAlgorithmException KeyStore algorithm unsupported\n * by current provider (SSL only)\n * @exception CertificateException general certificate error (SSL only)\n * @exception UnrecoverableKeyException internal KeyStore problem with\n * the certificate (SSL only)\n * @exception KeyManagementException problem in the key management\n * layer (SSL only)\n */\n public ServerSocket createSocket (int port, int backlog,\n InetAddress ifAddress)\n throws IOException, KeyStoreException, NoSuchAlgorithmException,\n CertificateException, UnrecoverableKeyException,\n KeyManagementException;\n\n\n}"
] | [
"0.63464004",
"0.61694837",
"0.6016377",
"0.59630436",
"0.5858044",
"0.5761048",
"0.57363904",
"0.5683368",
"0.56830275",
"0.5595131",
"0.5587411",
"0.55849624",
"0.55775464",
"0.55287874",
"0.5488432",
"0.5464465",
"0.54423475",
"0.5423649",
"0.53961116",
"0.539064",
"0.5385255",
"0.5378708",
"0.53586644",
"0.53564596",
"0.53427035",
"0.5338354",
"0.532158",
"0.5292938",
"0.5288501",
"0.5287975",
"0.52701414",
"0.5255163",
"0.52504635",
"0.523698",
"0.52298015",
"0.52057034",
"0.5205073",
"0.5198706",
"0.518537",
"0.51825666",
"0.51434106",
"0.5130786",
"0.5104514",
"0.50832695",
"0.50733715",
"0.5072111",
"0.5057623",
"0.5053797",
"0.50333786",
"0.5028052",
"0.5025394",
"0.50248104",
"0.5014706",
"0.50005144",
"0.49973238",
"0.49639925",
"0.49298367",
"0.4928447",
"0.49231252",
"0.4914871",
"0.4910783",
"0.49033582",
"0.49022976",
"0.48993212",
"0.48813343",
"0.48805878",
"0.48714408",
"0.48668426",
"0.48637274",
"0.48601565",
"0.4855733",
"0.4853641",
"0.48472646",
"0.48395976",
"0.4837405",
"0.48364145",
"0.48284993",
"0.48040834",
"0.4800077",
"0.4793",
"0.47884187",
"0.47881937",
"0.47867864",
"0.47817773",
"0.47765392",
"0.47616464",
"0.47600448",
"0.4742114",
"0.4738777",
"0.4737925",
"0.47376236",
"0.47358322",
"0.47354022",
"0.47326574",
"0.47287968",
"0.47245684",
"0.47238836",
"0.47222853",
"0.4713384",
"0.47041282",
"0.46968713"
] | 0.0 | -1 |
Tests to make sure we can assign variables and' get accurate information back | @Test
public static void testConstructorAndGetters() {
MetalDTO m = new MetalDTO(1, 2, 3, 4.0, "Name", 3.7, 8.4);
assertEquals(m.getAtomicMass(), 4.0, 0.01);
assertEquals(m.getAtomicNumber(), 2);
assertEquals(m.getDissolvedBy(), 3);
assertEquals(m.getID(), 1);
assertEquals(m.getName(), "Name");
assertEquals(m.getMoles(), 3.7, 0.01);
assertEquals(m.getMolesOfAcidToDissolve(), 8.4, 0.01);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void assignment() {\n\n\t\t\t}",
"protected void initVars() {}",
"@Test\n public void shouldThrowExceptionIfSetVariablesRespondsInError() throws IOException {\n\n final PDU sendPdu = new PDU();\n sendPdu.setType(PDU.SET);\n expect(configuration.createPDU(PDU.SET)).andReturn(sendPdu);\n\n final Capture<PDU> pduCapture = new Capture<>();\n expect(snmpInterface.send(capture(pduCapture), same(target))).andReturn(createErrorResponseEvent());\n\n replayAll();\n\n try {\n\n session.setVariables(getVariableBindings(\"1.2.3\", \"Value1\", \"4.5.6\", \"Value2\"));\n } catch (SnmpIoException sioEx) {\n\n\n Assert.assertThat(sioEx.getMessage(),\n allOf(\n containsString(NE_IP),\n containsString(PROBLEM_DESCRIPTION)\n ));\n }\n verifyAll();\n\n assertEquals(PDU.SET, pduCapture.getValue().getType());\n assertEquals(2, pduCapture.getValue().getVariableBindings().size());\n }",
"private void updateVars()\n {\n\n }",
"public void testing() {\n\t\tprotectedInstanceVariable = \"\";\n\t}",
"public void resetTestVars() {\n\t\tuser1 = new User();\n\t\tuser2 = new User();\n\t\tuser3 = new User();\n\t\tsn = new SocialNetwork();\n\t\tstatus = SocialNetworkStatus.DEFAULT;\n\t\tearly = new Date(25L);\n\t\tmid = new Date(50L);\n\t\tlate = new Date(75L);\n\t}",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"public void testSingleVar() { assertValid(\"int a;\"); }",
"private void performSanityCheck()\n\t{\n\t\tif (variableNames != null && domainSizes != null\n\t\t\t\t&& propositionNames != null)\n\t\t{\n\t\t\tcheckStateSizes();\n\t\t\tcheckDomainSizes();\n\t\t}\n\t}",
"@Test\n public void didYouEnterAnObject(){\n //arrange\n Prompter prompter = Prompter.readOnly(expectedValue);\n String result = Localization.fromPrompter(prompter);\n //act\n //assess\n assertNotNull(result);\n }",
"@Test\n public void testAssignment() {\n try {\n Lexer lexer = new Lexer(new StringReader(\"n = 0;\"));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getClass() == AssignNode.class);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }",
"private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }",
"@Test\n void animalVariablesTest() {\n assertEquals(50, pens[0].getHealth());\n assertEquals(100, pens[1].getHealth());\n assertEquals(80, pens[2].getHealth());\n assertEquals(70, pens[3].getHealth());\n for (int i = 0; i < pens.length; i++) {\n assertEquals(100, pens[i].getHappiness());\n }\n assertEquals(50, pens[0].getValue());\n assertEquals(100, pens[1].getValue());\n assertEquals(80, pens[2].getValue());\n assertEquals(70, pens[3].getValue());\n }",
"@Test\n public void shouldThrowExceptionIfSetVariablesTimesOut() throws IOException {\n\n final PDU sendPdu = new PDU();\n sendPdu.setType(PDU.SET);\n expect(configuration.createPDU(PDU.SET)).andReturn(sendPdu);\n\n final Capture<PDU> pduCapture = new Capture<>();\n expect(snmpInterface.send(capture(pduCapture), same(target))).andReturn(createResponseEvent(null));\n\n replayAll();\n\n try {\n session.setVariables(getVariableBindings(\"1.2.3\", \"Value1\",\n \"4.5.6\", \"Value2\"));\n } catch (SnmpIoException sioEx) {\n Assert.assertThat(sioEx.getMessage(),\n allOf(\n containsString(NE_IP),\n containsString(\"Timed out\")\n ));\n }\n verifyAll();\n\n assertEquals(PDU.SET, pduCapture.getValue().getType());\n assertEquals(2, pduCapture.getValue().getVariableBindings().size());\n }",
"@Test\n\tpublic void testMakeSureVarVariablesCanShadowLetVariables()\n\t{\n\t\tString[] code = {\n\t\t\t\"let a = 1;\",\n\t\t \"let b = 2;\",\n\t\t \"var c = 3;\",\n\n\t\t \"function sup(a) {\",\n\t\t \"var b = 4;\",\n\t\t \"let c = 5;\",\n\t\t \"let d = 6;\",\n\t\t \"if (false) {\",\n\t\t \"var d = 7;\",\n\t\t \"}\",\n\t\t \"return b + c + a + d;\",\n\t\t \"}\",\n\n\t\t \"sup();\"\n\t\t};\n\t\t\n\t\tth.addError(1, 5, \"'a' is defined but never used.\");\n\t th.addError(2, 5, \"'b' is defined but never used.\");\n\t th.addError(3, 5, \"'c' is defined but never used.\");\n\t th.addError(9, 5, \"'d' has already been declared.\");\n\t\tth.test(code, new LinterOptions().set(\"esnext\", true).set(\"unused\", true).set(\"undef\", true).set(\"funcscope\", true));\n\t}",
"private void setUpVariable(boolean success) {\n\t\tstateMachine.getExtendedState().getVariables().put(\"success\", success); // only for test\n\t\tstateMachine.getExtendedState().getVariables().put(\"instance\", this.setUpInstance());\n\t\tstateMachine.getExtendedState().getVariables().put(\"user\", this.setUpUser());\n\t}",
"@Test\n public void testActualPropertiesValues() { // wipe everything other\n testEnv = null;\n resolver = null;\n // use the default ctor to grab discoveryenvironment.properties\n // resolver = new DefaultServiceCallResolver();\n resolver = new ServiceCallResolver();\n resolver.setAppProperties(createFromExpected());\n // ensure it was set\n assertNotNull(resolver);\n verifyExpectedValues(EXPECTED);\n\n }",
"@Test(timeout = 4000)\n public void test22() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setAllLevelsVisible(true);\n homeEnvironment0.getSkyColor();\n homeEnvironment0.getSubpartSizeUnderLight();\n HomeEnvironment homeEnvironment1 = homeEnvironment0.clone();\n homeEnvironment0.setAllLevelsVisible(true);\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n homeEnvironment1.setVideoCameraPath((List<Camera>) null);\n AspectRatio aspectRatio0 = AspectRatio.RATIO_4_3;\n homeEnvironment0.setVideoAspectRatio(aspectRatio0);\n homeEnvironment1.setSkyColor(13427964);\n HomeEnvironment.Property.values();\n homeEnvironment0.setAllLevelsVisible(true);\n homeEnvironment0.setAllLevelsVisible(true);\n // Undeclared exception!\n try { \n HomeEnvironment.Property.valueOf((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // Name is null\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }",
"@Test\n public void testSetHealthPoint() throws Exception {\n n1=10;\n n2=20;\n playerHuman.setHealthPoint(n1);\n playerIA.setHealthPoint(n2);\n org.junit.Assert.assertEquals(n1, playerHuman.getHealthPoint());\n org.junit.Assert.assertEquals(n2, playerIA.getHealthPoint());\n }",
"@Test\n public void testAssignReinforcements() {\n IssueOrderPhase l_issueOrder = new IssueOrderPhase(d_gameEngine);\n l_issueOrder.d_gameData = d_gameData;\n l_issueOrder.assignReinforcements();\n d_gameData = l_issueOrder.d_gameData;\n int l_actualNoOfArmies = d_gameData.getD_playerList().get(0).getD_noOfArmies();\n int l_expectedNoOfArmies = 8;\n assertEquals(l_expectedNoOfArmies, l_actualNoOfArmies);\n }",
"@Test\n\tpublic void testAddAssignment() {\n\t}",
"@BeforeClass\n public static void initializeTestValues() throws IllegalValueException {\n greaterAmount = Amount.getSum(ParserUtil.parseAmount(DECIMAL_STRING), DECIMAL_OFFSET);\n lesserAmount = Amount.getDiff(ParserUtil.parseAmount(DECIMAL_STRING), DECIMAL_OFFSET);\n greaterPrice = new Price();\n greaterPrice.setCurrent(Amount.getSum(ParserUtil.parseAmount(DECIMAL_STRING), DECIMAL_OFFSET));\n lesserPrice = new Price();\n lesserPrice.setCurrent(Amount.getDiff(ParserUtil.parseAmount(DECIMAL_STRING), DECIMAL_OFFSET));\n ZERO_PRICE.setCurrent(new Amount(\"0\"));\n NEW_PRICE.setCurrent(new Amount(\"2.0\"));\n }",
"@Override\n public Boolean visitVariableAttribution(FormScriptGrammarParser.VariableAttributionContext ctx) {\n if (!declaredVariables.containsKey(ctx.VARIABLE().getText())) {\n // this is validated in UI/controlled by flow in the UI so should never happen, but it remains here just in case\n throw new IllegalArgumentException(\"Semantic error at line: \" + ctx.getStart().getLine() + \": variable \" + ctx.VARIABLE().getText() + \" wasn't declared!\");\n// return false; //if we wanted to return the NOTOK/false result recursively, this would be here instead of the throw\n }\n DataType dataType = declaredVariables.get(ctx.VARIABLE().getText());\n boolean correctType = dataType.lexerValue().equals(ctx.value().start.getType());\n /*will verify if the attribution is actually semantically valid, e.g if\n the variable was defined as an INTEGER, it can't be assigned a DATE*/\n if (!correctType) {\n throw new IllegalArgumentException(\"Semantic error at line: \" + ctx.getStart().getLine() + \":\" + ctx.getStart().getCharPositionInLine()\n + \": Invalid attribution type!\" + \" variable \" + ctx.VARIABLE().getText() + \" can't be assigned the value \" + ctx.value().getText());\n// return false; //if we wanted to return the NOTOK/false result recursively, this would be here instead of the throw\n }\n //verify if operators are valid in the context of the datatype\n String operator = ctx.COMPARISON_OPERATORS().getText();\n if (operator.equals(\"<\") || operator.equals(\">\")) {\n if (dataType.equals(DataType.BOOLEAN) || dataType.equals(DataType.DATE) || dataType.equals(DataType.FILE)) {\n throw new IllegalArgumentException(\"Semantic error at line: \" + ctx.getStart().getLine() + \":\" + ctx.getStart().getCharPositionInLine()\n + \": Invalid comparison type!\" + \" variable \" + ctx.VARIABLE().getText() + \" can't be compared with operator '\" + operator + \"'\");\n }\n }\n return true;\n }",
"public void assignValueToVariable(HashMap<String, String> assignment) throws\r\n\t\t\tIllegalOperationException,TypeNotSupportedException, IncompatibleTypeException{\r\n\t\tMap.Entry<String, String> data = assignment.entrySet().iterator().next();\r\n\t\tString variableName = data.getKey();\r\n\t\tString valueName = data.getValue();\r\n\t\tVariable lastAppearanceOfVar = findVariable(variableName);//we'll search a variable named variableName\r\n\t\tif(lastAppearanceOfVar==null||lastAppearanceOfVar.isFinal()){//did'nt find variableName\\ found final\r\n\t\t\tthrow new IllegalOperationException();\r\n\t\t}else {\r\n\t\t\t//if we did find a declared variable named variableName:\r\n\t\t\tif (lastAppearanceOfVar.compatibleWith(valueName)) {//if value's type's illegal -> exception\r\n\t\t\t\t//if we're trying, in a scope other than globalScope, to declare a variable by assigning it\r\n\t\t\t\t// with an uninitialised global variable:\r\n\t\t\t\tif((lastAppearanceOfVar.isGlobal()&&!lastAppearanceOfVar.isInitialized())&&!scopeType\r\n\t\t\t\t\t\t.equals(\"global\")){\r\n\t\t\t\t\t//we'll check if lastAppearanceOfVar was initialised in this scope (else it's illegal):\r\n\t\t\t\t\tassignUninitialisedGlobalVar(lastAppearanceOfVar, valueName);\r\n\t\t\t\t}else{ //else, the assignment's legal and we'll mark lastAppearanceOfVar as initialised:\r\n\t\t\t\t\tlastAppearanceOfVar.initialize();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tassignWithReference(valueName, lastAppearanceOfVar);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\n public void testSetLostValues() {\n System.out.println(\"setLostValues\");\n }",
"@Before\n public void initValidString()\n {\n eventName = \"Espresso Test Event Name\";\n eventLocation = \"Espresso Test Event Location\";\n eventNotes = \"Espresso Test Event Description\";\n }",
"@Test\n public void testInfoCopyTest() {\n assertTestInfoSpecies(PokemonNamesies.BULBASAUR, PokemonNamesies.CHARMANDER, new TestInfo());\n\n // Changing information other than species will not affect the copy\n testInfoCopyTest(false, new TestInfo());\n testInfoCopyTest(false, new TestInfo().attacking(AbilityNamesies.OVERGROW));\n testInfoCopyTest(false, new TestInfo().defending(AbilityNamesies.BLAZE));\n\n // Even if the default Pokemon are explicitly set, it will override the setting in the copy\n testInfoCopyTest(true, new TestInfo(PokemonNamesies.BULBASAUR, PokemonNamesies.CHARMANDER));\n testInfoCopyTest(true, new TestInfo().attacking(PokemonNamesies.BULBASAUR));\n testInfoCopyTest(true, new TestInfo().defending(PokemonNamesies.CHARMANDER));\n }",
"@Before\n\tpublic void setUp() throws Exception\n\t{\n\t\tsuper.setUp();\n\t\ttest_assignment = new AssignmentMsg(\"Super Ultra Hard Assignment\",true);\n\t\tassign_hand = new AssignmentHandler();\n\t}",
"public void _checkVariables(int width, int height) {\r\n\t\tSystem.out.println(\"Hoehe: \" + height);\r\n\t\tSystem.out.println(\"Breite: \" + width);\r\n\t\tchar fruit = Fruit.getSymbol();\r\n\t\tchar wall = Wall.getSymbol();\r\n\t\tchar snake = Snake.getSymbol();\r\n\t\tSystem.out.println(\"fruit: \" + fruit);\r\n\t\tSystem.out.println(\"wall: \" + wall);\r\n\t\tSystem.out.println(\"snake: \" + snake);\r\n\t}",
"@Test\n\tpublic void testAssignment(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tassertEquals(assign.textRepresentation(), \"x = 1 + 2;\");\n\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tassign.accept(v);\n\t\tassertEquals(\"assignment test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"assignment test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"assignment test3 fail\", v.assignCount, 1);\n\t}",
"Variables createVariables();",
"void setupVariables(IVariableFactory factory);",
"@Test\n\tpublic void testPublicInstanceVars() {\n\t\tip = new ImagePlus();\n\t\tassertFalse(ip.changes);\n\t\t/* OBSOLETE\n\t\tassertEquals(1.0,ip.pixelHeight,0.0);\n\t\tassertEquals(1.0,ip.pixelWidth,0.0);\n\t\tassertEquals(\"pixel\",ip.unit);\n\t\tassertEquals(\"pixel\",ip.units);\n\t\tassertFalse(ip.sCalibrated);\n\t\t*/\n\t}",
"private void setVars(String orgName, String commName, String serialNum, String reason, String insertedBy) {\n organizationName = orgName;\n commonName = commName;\n serialNumber = serialNum;\n this.reason = reason;\n this.insertedBy = insertedBy;\n }",
"@Test\n public void testInitialValues() {\n ocean.placeAllShipsRandomly();\n assertFalse(\"Is game over\", ocean.isGameOver());\n assertEquals(0, ocean.getHitCount());\n assertEquals(0, ocean.getShipsSunk());\n assertEquals(0, ocean.getShotsFired());\n ocean.print();\n }",
"@Test\n public void theUserIsPromptedForAnInput() {\n //arrange\n //act\n String returnedValue = Localization.fromPrompter(Prompter.readOnly(expectedValue));\n //assess\n assertEquals(expectedValue, returnedValue);\n }",
"private void migrateVariables() {\n final var blockchainUpdater = updater();\n final var variablesUpdater = variablesStorage.updater();\n\n get(VARIABLES_PREFIX, CHAIN_HEAD_HASH.getBytes())\n .map(this::bytesToHash)\n .ifPresent(\n bch ->\n variablesStorage\n .getChainHead()\n .ifPresentOrElse(\n vch -> {\n if (!vch.equals(bch)) {\n logInconsistencyAndFail(CHAIN_HEAD_HASH, bch, vch);\n }\n },\n () -> {\n variablesUpdater.setChainHead(bch);\n LOG.info(\"Migrated key {} to variables storage\", CHAIN_HEAD_HASH);\n }));\n\n get(VARIABLES_PREFIX, FINALIZED_BLOCK_HASH.getBytes())\n .map(this::bytesToHash)\n .ifPresent(\n bfh -> {\n variablesStorage\n .getFinalized()\n .ifPresentOrElse(\n vfh -> {\n if (!vfh.equals(bfh)) {\n logInconsistencyAndFail(FINALIZED_BLOCK_HASH, bfh, vfh);\n }\n },\n () -> {\n variablesUpdater.setFinalized(bfh);\n LOG.info(\"Migrated key {} to variables storage\", FINALIZED_BLOCK_HASH);\n });\n });\n\n get(VARIABLES_PREFIX, SAFE_BLOCK_HASH.getBytes())\n .map(this::bytesToHash)\n .ifPresent(\n bsh -> {\n variablesStorage\n .getSafeBlock()\n .ifPresentOrElse(\n vsh -> {\n if (!vsh.equals(bsh)) {\n logInconsistencyAndFail(SAFE_BLOCK_HASH, bsh, vsh);\n }\n },\n () -> {\n variablesUpdater.setSafeBlock(bsh);\n LOG.info(\"Migrated key {} to variables storage\", SAFE_BLOCK_HASH);\n });\n });\n\n get(VARIABLES_PREFIX, FORK_HEADS.getBytes())\n .map(bytes -> RLP.input(bytes).readList(in -> this.bytesToHash(in.readBytes32())))\n .ifPresent(\n bfh -> {\n final var vfh = variablesStorage.getForkHeads();\n if (vfh.isEmpty()) {\n variablesUpdater.setForkHeads(bfh);\n LOG.info(\"Migrated key {} to variables storage\", FORK_HEADS);\n } else if (!List.copyOf(vfh).equals(bfh)) {\n logInconsistencyAndFail(FORK_HEADS, bfh, vfh);\n }\n });\n\n get(Bytes.EMPTY, SEQ_NO_STORE.getBytes())\n .ifPresent(\n bsns -> {\n variablesStorage\n .getLocalEnrSeqno()\n .ifPresentOrElse(\n vsns -> {\n if (!vsns.equals(bsns)) {\n logInconsistencyAndFail(SEQ_NO_STORE, bsns, vsns);\n }\n },\n () -> {\n variablesUpdater.setLocalEnrSeqno(bsns);\n LOG.info(\"Migrated key {} to variables storage\", SEQ_NO_STORE);\n });\n });\n\n blockchainUpdater.removeVariables();\n\n variablesUpdater.commit();\n blockchainUpdater.commit();\n }",
"@Test\n public void test1() {\n String expectedTitle = \"Sun\";\n String expectedArtist = \"Ciwei\";\n int expectedPrice = 5;\n\n String actualTitle = firstMusicTitle.getTitle();\n String actualArtist = firstMusicTitle.getArtist();\n int actualPrice = firstMusicTitle.getPrice();\n\n assertEquals(expectedTitle, actualTitle);\n assertEquals(expectedArtist, actualArtist);\n assertEquals(expectedPrice, actualPrice);\n }",
"@Before\n public void initValidString() {\n topHint = \"Top Baseline\";\n botHint = \"Bottom Baseline\";\n spinHint = \"Stock Refresh Rate\";\n s1 = \"5 minutes\";\n s2 = \"10 minutes\";\n s3 = \"30 minutes\";\n s4 = \"1 hour\";\n s5 = \"2 hours\";\n s6 = \"1 day\";\n s7 = \"1 week\";\n }",
"public void reassignIfNeeded() {\n\t}",
"VarAssignment createVarAssignment();",
"private void m146984b(C47008ac acVar) {\n if (this.f120643a == null) {\n this.f120643a = acVar;\n }\n if (this.f120644b == null) {\n this.f120644b = acVar;\n }\n }",
"@Test\n public void testClaimPracLocState() {\n new ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissClaim.Builder::setPracLocState,\n RdaFissClaim::getPracLocState,\n RdaFissClaim.Fields.pracLocState,\n 2);\n }",
"private synchronized void updateVariables() throws DebugException {\n\t\tif (lastUpdated == target.getSuspendCount()\n\t\t\t\t|| (variables != null && oldLineNumber == lineNumber))\n\t\t\treturn;\n\t\t\n\t\tSynchronizer frontend = target.getFrontend();\n\t\tif (frontend != null) {\n\t\t\t// get local variables\n\t\t\tString localsSausage = frontend.GetLocals(thread.getID(),frameNumber);\n\t\t\tString[] locals;\n\t\t\tif (localsSausage == null || localsSausage.equals(\"--\")\n\t\t\t\t\t|| localsSausage.equals(\"\"))\n\t\t\t\tlocals = new String[0];\n\t\t\telse\n\t\t\t\tlocals = localsSausage.split(\" \");\n\t\t\t// get parameters\n\t\t\tString paramsSausage = frontend.GetParameters(thread.getID(),frameNumber);\n\t\t\tString[] params;\n\t\t\tif (paramsSausage == null || paramsSausage.equals(\"--\")\n\t\t\t\t\t|| paramsSausage.equals(\"\"))\n\t\t\t\tparams = new String[0];\n\t\t\telse\n\t\t\t\tparams = paramsSausage.split(\" \");\n\t\t\t// get static fields of the current class\n\t\t\tString className;\n\t\t\ttry {\n\t\t\t\tclassName = methodName.substring(0, methodName.lastIndexOf('.'));\n\t\t\t} catch (StringIndexOutOfBoundsException e) {\n\t\t\t\tclassName = \"\";\n\t\t\t}\n\t\t\tString staticsSausage = frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\n\t\t\t\t\tclassName,true);\n\t\t\tString[] statics;\n\t\t\tif (staticsSausage == null || staticsSausage.equals(\"--\")\n\t\t\t\t\t|| staticsSausage.equals(\"\"))\n\t\t\t\tstatics = new String[0];\n\t\t\telse\n\t\t\t\tstatics = staticsSausage.split(\" \");\n\t\t\t// determine if \"this\" is valid\n\t\t\tboolean _this = true;\n\t\t\tif (frontend.PtypeFieldsOnly(thread.getID(),frameNumber,\"this\",false).equals(\"--\"))\n\t\t\t\t_this = false;\n\t\t\t\n\t\t\t// create variable objects\n\t\t\tIVariable[] tempVariables = new EmonicVariable[locals.length + params.length\n\t\t\t + statics.length + (_this ? 1 : 0)];\n\n\t\t\tif (variables == null || variables.length != tempVariables.length) {\n\t\t\t\t// something changed\n\t\t\t\tint index = 0;\n\t\t\t\tif (_this) {\n\t\t\t\t\ttempVariables[0] = new EmonicVariable(this,\"this\",null);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t\tArrays.sort(locals);\n\t\t\t\tfor (int i=0; i<locals.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,locals[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=locals.length;\n\t\t\t\tArrays.sort(params);\n\t\t\t\tfor (int i=0; i<params.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,params[i],null);\n\t\t\t\t}\n\t\t\t\tindex+=params.length;\n\t\t\t\tArrays.sort(statics);\n\t\t\t\tfor (int i=0; i<statics.length; i++) {\n\t\t\t\t\ttempVariables[i+index] = new EmonicVariable(this,statics[i],null);\n\t\t\t\t}\n\t\t\t\tvariables = tempVariables;\n\t\t\t} \n\t\t}\n\t\tlastUpdated = target.getSuspendCount();\n//\t\toldLineNumber = lineNumber;\n\t}",
"private void checkValue(Variable toBeVariable) throws MethodCallWithNonexistentParameter {\n if (!toBeVariable.hasValue()) {\n throw new MethodCallWithNonexistentParameter();\n }\n }",
"@Test\n public void testIsValidFullName() {\n System.out.println(\"isValidFullName\");\n String fullName = \"Aliki Manou\";\n boolean expResult = true;\n boolean result = ValidVariables.isValidFullName(fullName);\n assertEquals(expResult, result);\n }",
"@Before\n public void createString(){\n s1 = \"casa\";\n\ts2 = \"cassa\";\n\ts3 = \"\";\n\ts4 = \"casa\";\n }",
"@Test\n public void validSetFlightInformation() {\n testUser.setUsername(\"username\");\n testUser.setLastName(\"lastname\");\n testUser.setPassword(\"password\");\n testUser.setFirstName(\"firstname\");\n\n Assertions.assertEquals(\"username\", testUser.getUsername());\n Assertions.assertEquals(\"lastname\", testUser.getLastName());\n Assertions.assertEquals(\"password\", testUser.getPassword());\n Assertions.assertEquals(\"firstname\", testUser.getFirstName());\n }",
"public void testSmartVarResolver()\r\n {\n System.setProperty( \"A\", \"Setski\" );\r\n assertEquals( 1,\r\n SmartVarResolver.INSTANCE.resolveVar( VarContext.of( \"A\", 1 ), \"A\" ) );\r\n\r\n //verify we can get System Properties\r\n System.setProperty( \"A\", \"Setski\" );\r\n assertEquals( \"Setski\",\r\n SmartVarResolver.INSTANCE.resolveVar( VarContext.of(), \"A\" ) );\r\n\r\n //we can get values that are set in expressions\r\n Template d = BindML.compile( \"{+A+}\" );\r\n assertEquals( \"Setski\", Author.toString( d ) ); //verify I can resolve a variable that is set as expression\r\n\r\n d = BindML.compile( \"{+A+}\" );\r\n TreeSet<Integer> ts = new TreeSet<Integer>();\r\n ts.add( 1 );\r\n ts.add( 2 );\r\n ts.add( 3 );\r\n ts.add( 4 );\r\n assertEquals( \"1, 2, 3, 4\", Author.toString( d, \"A\", ts ) );\r\n\r\n /*\r\n //I need a Better way of printing Maps \r\n // right now = {A=1, B=2, C=3}\r\n // should be A=1; B=2; C=3;\r\n Map<String, Integer> m = new HashMap<String, Integer>();\r\n m.put( \"A\", 1 );\r\n m.put( \"B\", 2 );\r\n m.put( \"C\", 3 );\r\n System.out.println( Author.toString( d, \"A\", m ) );\r\n\r\n d = BindML.compile( \"{+A+}\" );\r\n assertEquals( \"1, 2, 3, 4\", Author.toString( d ) ); //verify I can resolve a variable that is set as expression\r\n*/\r\n\r\n }",
"@Before\n public void setUp()\n {\n summary = \"\";\n allPassed = true;\n firstFailExpected = null;\n firstFailRun = null;\n captureSummary = \"\";\n captureRun = null;\n }",
"@Test\n\tpublic void Account_test() { Using HamCrest \t\t\n\t\t// Exercise code to run and test\n\t\t//\n\t\tmiCuenta.setHolder(this.arg1);\n\t\tString resHolder = miCuenta.getHolder(); \n\t\t//\n\t\tmiCuenta.setBalance(this.arg2);\n\t\tint resBalance = miCuenta.getBalance(); \n\t\t//\n\t\tmiCuenta.setZone(this.arg3);\n\t\tint resZone = miCuenta.getZone(); \n\t\t\t\t\t\t\n\t\t// Verify\n\t\tassertThat(this.arg1, is(resHolder));\n\t\tassertThat(this.arg2, is(resBalance)); \n\t\tassertThat(this.arg3, is(resZone)); \n\t}",
"public void MIPSme()\n\t{\n\t\t\n\t\tTEMP varAddress = null;\n\t\t//v := v - this is the right side of the assignment - we want to load the value of v from memory\n\t\tif (isRight){\n\t\t\tif(isParamFromStack){\n\t\t\t\t// we want value from stack\n\t\t\t\tsir_MIPS_a_lot.getInstance().loadFromFrame(dst,(this.localVarOffset+1)*4);\n\t\t\t}\n\t\t\t//need to be modified\n\t\t\telse{\n\t\t\t\tsir_MIPS_a_lot.getInstance().loadFromFrame(dst,-(this.localVarOffset+1)*4);\n\t\t\t}\n\t\t}\n\t\t//left side - we want to get variable address into temp t \n\t\telse{\n\t\t\t//variable is a parameter of a function\n\t\t\tif (isParamFromStack){\n\t\t\t\tvarAddress = sir_MIPS_a_lot.getInstance().addressParamVar(this.localVarOffset);\n\t\t\t}\n\t\t\t//for now it represents local variable but need to be changed.... (data members, globals...) \n\t\t\telse{\n\t\t\t\tvarAddress = sir_MIPS_a_lot.getInstance().addressLocalVar(this.localVarOffset);\n\t\t\t}\n\t\t\tsir_MIPS_a_lot.getInstance().move(dst,varAddress);\n\t\t}\n\t}",
"@Test\n public void testIsStringOnlyAlphabetAndNumbers() {\n System.out.println(\"isStringOnlyAlphabetAndNumbers\");\n String fullName = \"Ali8\";\n boolean expResult = true;\n boolean result = ValidVariables.isStringOnlyAlphabetAndNumbers(fullName);\n assertEquals(expResult, result);\n }",
"@Test\n public void testDAM30103001() {\n // settings as done for testDAM30102001 are identical\n testDAM30102001();\n }",
"public boolean assignVariable(Scanner scan){\n\t\tif (scan.hasNext(\"\\\\=\")){\n\t\t\tif (!Parser.gobble(\"\\\\=\", scan)){ Parser.fail(\"Should have = for variables.\", scan); }\n\t\t\texpr = new Expression();\n\t\t\texpr.parse(scan);\t\t\t\t\t\t//Assignment\n\t\t\tif (!Parser.gobble(\"\\\\;\", scan)){ Parser.fail(\"Should have ; for variables.\", scan); }\n\t\t\t//Add to map\n\t\t\tParser.variables.put(name, this);\n\t\t\treturn true;\n\t\t} else if (scan.hasNext(\"\\\\;\")){\t//DECLARED NOT ASSIGNMENT\n\t\t\tif (!Parser.gobble(\"\\\\;\", scan)){ Parser.fail(\"Should have ; for variables.\", scan); }\n\t\t\t/*\t\t\tNum number = new Num();\n\t\t\tnumber.numberNodeZero();\n\t\t\texpr = number;\t\t\t\t\t//sets expr to 0. \n\t\t\t */\t\t\treturn true; \t\t\t\t\t//Shouldnt set it to 0 if there is already variable in map\n\t\t}\n\t\treturn false;\n\t}",
"public abstract void assign(Object value) throws IllegalStateException, InterruptedException;",
"private void processAssignment(String line) {\n\t\t//TODO: fill\n\t}",
"@Test\n public void variableNaming(){\n String $aString=\"bob\";\n float $owed=10f;\n int aMount=4;\n long Amount=5;\n String A0123456789bCd$f=\"ugh\";\n\n\n assertEquals(4,aMount);\n assertEquals(5,Amount);\n assertEquals(10.0F,$owed,0);\n assertEquals(\"bob\",$aString);\n assertEquals(\"ugh\",A0123456789bCd$f);\n }",
"private void checkValid() {\n getSimType();\n getInitialConfig();\n getIsOutlined();\n getEdgePolicy();\n getNeighborPolicy();\n getCellShape();\n }",
"@Test\n\tpublic void testGetters() {\n\t\tEngine engine = new Engine(20);\n\t\tCoordinate point = new Coordinate(5,5);\n\t\tCoordinate playerLocation = engine.getMoveableObject(0).getLocation();\n\t\tint playerX = playerLocation.getX();\n\t\tint playerY = playerLocation.getY();\n\t\tassertEquals(\"failure - didn't create coordinate x-val\", 5, point.getX(), 0.0);\n\t\tassertEquals(\"failure - didn't create coordinate y-val\", 5, point.getY(), 0.0);\n\t\tassertEquals(\"failure - didn't get player's x coordinate correctly\", 3, playerX, 0.0);\n\t\tassertEquals(\"failure - didn't get player's y coordinate correctly\", 3, playerY, 0.0);\n\t\t}",
"public VariableNotSetException() {\n }",
"@Override\n public void visit(VariableAssignNode variableAssignNode) {\n }",
"private void assignUninitialisedGlobalVar(Variable lastAppearanceOfVar,String valueName)throws\r\n\t\t\tTypeNotSupportedException{\r\n\t\t\tVariable variablesCopy = vFactory.createVariable(true, false, lastAppearanceOfVar.isArgument(),\r\n\t\t\t\t\tlastAppearanceOfVar.getType(), true);\r\n\t\t\tuninitialisedGlobalVariables.put(valueName, variablesCopy);\r\n\t}",
"@Test\r\n public void test4(){\n\t E1.setSocialSecurityNumber(\"SSN1\");\r\n\t\tE2.setSocialSecurityNumber(\"SSN2\");\r\n String actual = E1.getSocialSecurityNumber();\r\n String expected = \"SSN1\";\r\n assertEquals(actual,expected);\r\n }",
"@Test\r\n public void testGetMaterial() {\r\n String expResult = \"Materialprueba\";\r\n articuloPrueba.setMaterial(expResult);\r\n String result = articuloPrueba.getMaterial();\r\n assertEquals(expResult, result);\r\n }",
"@Test\r\n\tpublic void test3(){\n\t \tE1.setLastName(\"LN1\");\r\n\t\tE2.setLastName(\"LN2\");\r\n\t String actual = E1.getLastName();\r\n String expected = \"LN1\";\r\n assertEquals(actual,expected);\r\n }",
"private void verifyVariablesModified(PybaseDebugVariable[] newFrameVariables, PybaseDebugStackFrame oldFrame )\n{\n PybaseDebugVariable newVariable = null;\n\n Map<String, PybaseDebugVariable> variablesAsMap = oldFrame.getVariablesAsMap();\n\n //we have to check for each new variable\n for( int i=0; i<newFrameVariables.length; i++ ) {\n newVariable = newFrameVariables[i];\n\n PybaseDebugVariable oldVariable = variablesAsMap.get(newVariable.getName());\n\n if( oldVariable != null) {\n\t boolean equals = newVariable.getValueString().equals( oldVariable.getValueString() );\n\n\t //if it is not equal, it was modified\n\t newVariable.setModified( !equals );\n\n }\n else{ //it didn't exist before...\n\t newVariable.setModified( true );\n }\n }\n\n\n}",
"static boolean VarDetails(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"VarDetails\")) return false;\n if (!nextTokenIs(b, \"\", OP_ASSIGN, K_EXTERNAL)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = VarValueAssignment(b, l + 1);\n if (!r) r = ExternalVarPart(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }",
"private void checkRep(){\n assert !this.username.equals(\"\");\n assert !this.password.equals(\"\");\n assert accessLevel != null;\n }",
"@Test\n public void testSetName() {\n final String newName1 = \"Karate Kid 2\";\n final String newName2 = \"Seven Day\";\n movie1.setName(newName1);\n movie3.setName(newName2);\n assertEquals(newName1, movie1.getName());\n assertEquals(gloryMovie, movie2.getName());\n assertEquals(newName2, movie3.getName());\n assertEquals(theShawshankRedemtionMovie, movie4.getName());\n }",
"@Before\n public void setUp() throws IllegalAccessException {\n FieldUtils.writeDeclaredField(dtoConverter,\n \"defaultUsername\", \"testinguser\", true);\n FieldUtils.writeDeclaredField(dtoConverter,\n \"defaultLatitude\", 52.31, true);\n FieldUtils.writeDeclaredField(dtoConverter,\n \"defaultLongitude\", 85.10, true);\n\n when(user.username()).thenReturn(\"tester\");\n when(user.id()).thenReturn(0);\n\n when(location.latitude()).thenReturn(51.28f);\n when(location.longitude()).thenReturn(0.0f);\n }",
"public void testValueOfString()\n {\n // test a null string case\n try\n {\n /*EthernetAddress ethernet_address =*/\n EthernetAddress.valueOf((String)null);\n fail(\"Expected exception not caught\");\n }\n catch (NullPointerException ex)\n {\n // this is the success case so do nothing\n }\n catch (Exception ex)\n {\n fail(\"Caught unexpected exception: \" + ex);\n } \n \n // test some failure cases for the string constructor\n badStringValueOfHelper(IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_1);\n badStringValueOfHelper(IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_2);\n badStringValueOfHelper(IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_3);\n badStringValueOfHelper(IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_4);\n badStringValueOfHelper(IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_5);\n badStringValueOfHelper(IMPROPER_NUM_COLONS_ETHERNET_ADDRESS_STRING_6);\n badStringValueOfHelper(NON_HEX_ETHERNET_ADDRESS_STRING);\n badStringValueOfHelper(RANDOM_PROPER_LENGTH_STRING);\n \n // some valid strings for the various dropped digit cases\n goodStringValueOfHelper(FIRST_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n FIRST_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FIRST_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n FIRST_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FIRST_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n FIRST_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(SECOND_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n SECOND_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(SECOND_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n SECOND_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(SECOND_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n SECOND_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(THIRD_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n THIRD_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(THIRD_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n THIRD_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(THIRD_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n THIRD_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FOURTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n FOURTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FOURTH_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n FOURTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FOURTH_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n FOURTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FIFTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n FIFTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FIFTH_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n FIFTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(FIFTH_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n FIFTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(SIXTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n SIXTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(SIXTH_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n SIXTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(SIXTH_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n SIXTH_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(MIXED_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING,\n MIXED_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(MIXED_GROUP_ONE_NUM_ETHERNET_ADDRESS_STRING,\n MIXED_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(MIXED_GROUP_NO_NUM_ETHERNET_ADDRESS_STRING,\n MIXED_GROUP_ALL_NUM_ETHERNET_ADDRESS_STRING);\n \n // test the other good cases\n goodStringValueOfHelper(NULL_ETHERNET_ADDRESS_STRING,\n NULL_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(UPPER_CASE_VALID_ETHERNET_ADDRESS_STRING,\n UPPER_CASE_VALID_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(LOWER_CASE_VALID_ETHERNET_ADDRESS_STRING,\n LOWER_CASE_VALID_ETHERNET_ADDRESS_STRING);\n goodStringValueOfHelper(MIXED_CASE_VALID_ETHERNET_ADDRESS_STRING,\n MIXED_CASE_VALID_ETHERNET_ADDRESS_STRING);\n }",
"@Test\n void whatVarAllowed() {\n var subject = new Object() {\n int count = 0;\n };\n\n // when: maybe useful for testing?\n subject.count++;\n\n // then:\n assertThat(subject.count)\n .isEqualTo(1);\n }",
"@Test\n public void testGetNom() {\n Beneficiaire instance = ben1;\n String expResult = \"Tomson\";\n String result = instance.getNom();\n assertEquals(expResult, result);\n\n instance = ben3;\n expResult = \"Kao\";\n result = instance.getNom();\n assertEquals(expResult, result);\n\n expResult = \"Tomson\";\n assertFalse(expResult.equals(result));\n }",
"@Test\n public void testGetPrenom() {\n Beneficiaire instance = ben1;\n String expResult = \"Peter\";\n String result = instance.getPrenom();\n assertEquals(expResult, result);\n\n instance = ben3;\n expResult = \"Tai-Chin\";\n result = instance.getPrenom();\n assertEquals(expResult, result);\n\n expResult = \"Didou\";\n assertFalse(expResult.equals(result));\n }",
"private void assertIsVar(SymObject object) {\n assertIsOfKind(object, SymObject.KIND_VAR,\n object.name + \" can't be resolved to a variable\");\n }",
"@Test\n public void test_getUsername() {\n String value = \"new_value\";\n instance.setUsername(value);\n\n assertEquals(\"'getUsername' should be correct.\",\n value, instance.getUsername());\n }",
"@Test\n\t\tpublic void canGiveTheseusLocation() {\n\t\t\tPoint whereTheseus = new Pointer(3,3);\n\t\t\tgameLoader.addTheseus(whereTheseus);\n\t\t\tPoint expected = whereTheseus;\n\t\t\tPoint actual = gameSaver.wheresTheseus();\n\t\t\t\n\t\t\tassertEquals(expected.across(), actual.across());\n\t\t\tassertEquals(expected.down(), actual.down());\n\t\t}",
"@Test\n void _correctIfCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableReceiver(), \"=\", assingablePair.getIndexAssignable());\n }\n }\n }",
"public void testManyVariablesAcrossCallsOk() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), (f(X, Y, Z) :- g(X), g(Y), g(Z))], (?- f(X, X, X)), [[X <-- x]]]\");\n }",
"protected IExpressionValue assignment(List<Entity> declaredStates, List<Entity> possibleStates) \r\n\t\t\t\t\tthrows InvalidProbabilityRangeException, \r\n\t\t\t\t\t\t TableFunctionMalformedException,\r\n\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\t\r\n\t\t// prepare a representation of a cell inside the temporary table\r\n\t\tTempTableProbabilityCell currentCell = new TempTableProbabilityCell(null, null);\r\n\t\t\r\n\t\t// SCAN FOR IDENTIFIER\r\n\t\tscan();\r\n\t\tString userDefinedVariableName = null;\t// this will become non-null if there is an unknown state declared (unknown states will become user-defined variables)\r\n\t\tif (token == 'x') {\r\n\t\t\tif (this.node != null) {\r\n\t\t\t\t// Consistency check C09\r\n\t\t\t\t// Remember declared states, so we can check later if all states was declared\r\n\t\t\t\tEntity possibleValue = null;\r\n\t\t\t\tint index = this.node.getPossibleValueIndex(this.noCaseChangeValue);\r\n\t\t\t\tif (index < 0) {\r\n\t\t\t\t\t// unknown states will be considered as a new variable that user has declared\r\n\t\t\t\t\tuserDefinedVariableName = this.noCaseChangeValue;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpossibleValue = possibleStates.get(index);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t//throw new TableFunctionMalformedException(e.getMessage());\r\n\t\t\t\t\t\tthrow new TableFunctionMalformedException(this.node.toString(), e);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (possibleValue == null) {\r\n\t\t\t\t\t\tthrow new TableFunctionMalformedException(getNode().toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdeclaredStates.add(possibleValue);\r\n\t\t\t\t\tcurrentCell.setPossibleValue(possibleValue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\texpected(\"Identifier\");\r\n\t\t}\r\n\r\n\t\t// LOOK FOR = OPERATOR\r\n\t\tmatch('=');\r\n\r\n\t\t// consistency check C09\r\n\t\t// ret verifies the sum of all declared states' probability (must be 1)\r\n\t\t// boolean hasUnknownValue shows if some ret was negative or NaN.\r\n\t\tIExpressionValue ret = expression();\t\r\n\t\tif (ret == null) {\r\n\t\t\tthrow new TableFunctionMalformedException(getResource().getString(\"NonDeclaredVarStateAssignment\"));\r\n\t\t}\r\n\t\tfloat retValue = 0;\t// initialize with a value which will not impact consistency check (the one that checks if sum is 1)\r\n\t\tif (userDefinedVariableName == null) {\r\n\t\t\t// this is a state of current node, so store the probability in order to calculate consistency later\r\n\t\t\tif (!ret.isNumeric()) {\r\n\t\t\t\t// state of nodes must be probabilities (numbers)\r\n\t\t\t\tthrow new TableFunctionMalformedException(getResource().getString(\"NonNumericProbAssignment\"));\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tretValue = Float.parseFloat(ret.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\tretValue = Float.NaN;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// this is a user-defined value\r\n\t\t\t// store it in the scope of current if-clause\r\n\t\t\tthis.currentHeader.addUserDefinedVariable(userDefinedVariableName, ret);\r\n\t\t}\r\n\t\tboolean hasUnknownValue = Float.isNaN(retValue);\r\n\t\t\r\n\t\t// add cell to header\r\n\t\tcurrentCell.setProbability(ret);\r\n\t\tif (currentCell.getPossibleValue() != null && currentCell.getPossibleValue() != null) {\r\n\t\t\tthis.currentHeader.addCell(currentCell);\r\n\t\t}\r\n\t\t// Debug.println(\"Adding cell: \" + currentCell.getPossibleValue().getName() + \" = \" + ret.toString());\r\n\r\n\t\t// consistency check C09\r\n\t\t// a single state shall never have negative prob \r\n\t\tif ( isToNormalize()\r\n\t\t\t\t&& ((retValue < 0.0) \r\n//\t\t\t\t\t\t|| (1.0 < retValue)\r\n\t\t\t\t\t\t)) {\r\n\t\t\tthrow new InvalidProbabilityRangeException(getNode().toString());\r\n\t\t}\r\n\t\t\r\n\t\t// LOOK FOR , (OPTIONAL)\r\n\t\tif (look == ',') {\r\n\t\t\tmatch(',');\r\n\t\t\tif (look != this.kwcode[this.lookup(\"IF\")]) {\r\n\t\t\t\tIExpressionValue temp = assignment(declaredStates, possibleStates);\r\n\t\t\t\tfloat tempValue = Float.NaN;\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttempValue = Float.parseFloat(temp.getValue());\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\ttempValue = Float.NaN;\r\n\t\t\t\t}\r\n\t\t\t\thasUnknownValue = hasUnknownValue || (Float.isNaN(tempValue));\r\n\t\t\t\tif (hasUnknownValue) {\r\n\t\t\t\t\tretValue = Float.NaN;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tretValue += tempValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// this is an if-clause after assignment.\r\n\t\t\t\t// we should finish assignment (assignments in same block of if-clauses must be always before the if clause)\r\n\t\t\t\t// if assignment and if-clause happens in same block, assingments must be only for user-defined variables\r\n\t\t\t\tif (!currentHeader.getCellList().isEmpty()) {\r\n\t\t\t\t\t// user-defined variables are not added to cellList. Assignments to states of variables are added to cell list.\r\n\t\t\t\t\t// if this is not empty, then there were assignments to states of variables, so this is invalid.\r\n\t\t\t\t\tthrow new SomeStateUndeclaredException(getResource().getString(\"NonUserDefinedVariablesFoundBeforeIfClause\"));\r\n\t\t\t\t}\r\n\t\t\t\t// let the upper clause actually handle the if=clause\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Debug.println(\"Returned expression value = \" + retValue);\r\n\t\tif (isToNormalize() && (retValue < 0)) {\r\n\t\t\tthrow new InvalidProbabilityRangeException(getNode().toString());\r\n\t\t}\r\n\t\treturn new SimpleProbabilityValue(retValue);\r\n\t}",
"public void initializeScoringVariables(){\n\t\tgame.setMovement(moveDistance);\n\t\tgame.setRight(correctGuess);\n\t\tgame.setWrong(incorrectGuesses);\n\t\tgame.setTime(duration(startTime,endTime));\n\t}",
"public void testExecute2() throws Exception {\n target = new DefineVariableCommand(null, new ArrayList<CommandExecutionCondition>(), \"abc\", \" \");\n DistributionScriptExecutionContext context = new DistributionScriptExecutionContext();\n context.setVariable(\"xyz\", \"123\");\n target.execute(context);\n\n assertEquals(\"variable\", \" \", context.getVariable(\"abc\"));\n }",
"@Test\n public void test() {\n\t \n String obj1 = \"EMP201\"; \n String obj3 = \"Jackson\";\n String obj5 = \"Bond\";\n String obj7 = \"01/21/1989\";\n String obj9 = \"Male\";\n String obj11= \"[email protected]\";\n String obj13 = \"Male\";\n String obj16= \"0172345658\";\n String obj17= \"H.N0 34,Jack Street,Malaysia\";\n String obj19= \"Developer\";\n String obj21= \"ICT\";\n String obj23= \"6000\";\n String obj25=\"02/21/2004\";\n\n /* Error When User enter some other form of value or \n * submit page without any parameter*/\n\n String obj2 = \"EMP201\";\n String obj4 = \"Jackson\";\n String obj6 = \"Bond\";\n String obj8 = \"01/21/1989\";\n String obj10 = \"Male\";\n String obj12= \"[email protected]\";\n /*String obj12= \"jackso.com\";*/\n String obj14 = \"Male\";\n String obj15= \"0172345658\";\n /* String obj15= \"\";*/\n String obj18 = \"H.N0 34,Jack Street,Malaysia\";\n String obj20= \"Developer\";\n String obj22 = \"ICT\";\n /*int obj22 = 22;*/\n String obj24= \"6000\";\n String obj26=\"02/21/2004\";\n \n /*Testing paramter when entering values are in correct form*/\n /*assertEquals(obj1, obj2);*/\n assertEquals(obj3, obj4);\n assertEquals(obj5, obj6);\n assertEquals(obj7, obj8);\n assertEquals(obj9, obj10);\n assertEquals(obj11, obj12);\n assertEquals(obj13, obj14);\n assertEquals(obj15, obj16);\n assertEquals(obj17, obj18);\n assertEquals(obj19, obj20);\n assertEquals(obj21, obj22);\n assertEquals(obj23, obj24);\n assertEquals(obj25, obj26); \n \n /*assertNull(obj15);*/\n \n \n \n\n }",
"private void assignWithReference(String valueName, Variable lastAppearanceOfVar) throws\r\n\t\t\tIllegalOperationException,IncompatibleTypeException,TypeNotSupportedException {\r\n\t\t//we'll check if the assignment is made with a reference to another variable:\r\n\t\tVariable reference = findVariable(valueName);\r\n\t\tif(reference==null){//if not, valueName variable was ever declared and it's type isn't legal.\r\n\t\t\tthrow new IllegalOperationException();\r\n\t\t}else if(reference.isGlobal()&&!reference.isInitialized()){//reference's an uninitialised global var\r\n\t\t\treference = uninitialisedGlobalVariables.get(valueName);//see if it was assigned in this scope\r\n\t\t\tif(reference==null){//if not:\r\n\t\t\t\tthrow new IllegalOperationException();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!reference.isInitialized()) {//if the referenced variable was never initialised:\r\n\t\t\tthrow new IllegalOperationException();\r\n\t\t}\r\n\t\tlastAppearanceOfVar.compatibleWith(reference);//val's type's illegal-> exception\r\n\t\tif(lastAppearanceOfVar.isGlobal()&&!lastAppearanceOfVar.isInitialized()&&!scopeType.equals//\r\n\t\t\t\t(\"global\")){//we're trying, in a scope other than globalScope, to assign a value to an\r\n\t\t\t // uninitialised global variable\r\n\t\t\tassignUninitialisedGlobalVar(lastAppearanceOfVar,valueName);//see methods's documentation.\r\n\t\t}else{\r\n\t\t\tlastAppearanceOfVar.initialize();\r\n\t\t}\r\n\t}",
"@Test\n public void tc__VerifyValueWCM_EnviromentVar() throws Exception\n {\n\n EN.BeginTest( TestName );\n\n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n\n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n // Wert in \"All_MethodsObj\" setzen.\n EN.SetValue( \"All_MethodsObj\", \"${TCN}\" );\n // Umgebungsvariable eingeben\n EN.VerifyValueREGX( \"All_MethodsObj\", \"${TCN}\" );\n\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( TestName, myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n\n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifyValue()\", myClipBoard.getMethod() );\n }",
"@Test\r\n public void testAssignWeight() {\r\n System.out.println(\"assignWeight\");\r\n double notExpResult = 0.0;\r\n double result = weightAssignment.assignWeight();\r\n assertNotEquals(result, notExpResult, 0.0);\r\n }",
"@Test\n public void tc_VerifyPlaceholder_MemorizedValue() throws Exception\n {\n EN.BeginTest( TestName );\n\n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n\n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n // Set Value in \"Memory\"\n OKW_Memorize_Sngltn.getInstance().set( \"Key1\", \"The one and only Placeholder\" );\n\n EN.SetValue( \"All_MethodsObj\", \"The one and only Placeholder\" );\n // Kommen auch mehrere Sollwerte im Objekt ab?\n EN.VerifyPlaceholder( \"All_MethodsObj\", \"${Key1}\" );\n\n // Check the Name, Called Method and Value of Actuel object\n //assertEquals( \"Wert 1\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n\n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifyPlaceholder()\", myClipBoard.getMethod() );\n }",
"@Test\n public void testClaimPracLocCity() {\n new ClaimFieldTester()\n .verifyStringFieldCopiedCorrectly(\n FissClaim.Builder::setPracLocCity,\n RdaFissClaim::getPracLocCity,\n RdaFissClaim.Fields.pracLocCity,\n 2147483647);\n }",
"@Test\n public void testSetName() {\n System.out.println(\"setName\");\n\n Setting instance = Setting.factory();\n String oldName = instance.getName();\n assertFalse(Setting.isNotUsed(oldName));\n String name = \"newName\";\n instance.setName(name);\n assertEquals(name, instance.getName());\n assertTrue(Setting.isNotUsed(oldName));\n assertFalse(Setting.isNotUsed(name));\n\n }",
"@Test\n\tpublic void testHw1_1000000LOC31method13_4()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tString var0 = \"\";\n\t\tdouble var1 = 1.0;\n\t\tString var2 = \"\";\n\t\tfloat var3 = 1.0f;\n\t\tbyte var4 = (byte) 1;\n\t\thw1_1000000LOC25 var5 = new hw1_1000000LOC25();\n\t\tint var6 = 1;\n\t\tfloat var7 = 1.0f;\n\n\t\tint result = fixture.hw1_1000000LOC31method13(var0, var1, var2, var3, var4, var5, var6, var7);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0, result);\n\t}",
"public void testGetStateName() {\r\n test1 = state2;\r\n assertEquals(test1.getStateName(), \"Virginia\");\r\n }",
"@Test\r\n public void deriveFromAndAssignmentExpressionWithSIUnits() throws IOException {\n check(\"varI_M&=9\", \"(int,m)\");\r\n //example with long m &= int\r\n check(\"varL_KMe2perH&=9\", \"(long,km^2/h)\");\r\n }",
"public void fixupVariables(List<QName> vars, int globalsSize)\n {\n // no-op\n }",
"@Test\r\n public void testImmutable() { \r\n try_scorers = new Try_Scorers(\"Sharief\",\"Roman\",3,9);\r\n \r\n //Test the object was created\r\n Assert.assertEquals(try_scorers.getName(),\"Sharief\",\"Error names weren't the same\"); \r\n }",
"@Test\n public void test_getFirstName() {\n String value = \"new_value\";\n instance.setFirstName(value);\n\n assertEquals(\"'getFirstName' should be correct.\",\n value, instance.getFirstName());\n }",
"@Test\r\n public void dummyCanGiveXP() {\n\r\n dummy.giveExperience();\r\n\r\n assertEquals(DUMMY_EXPERIENCE, dummy.giveExperience());\r\n }",
"int realnVars();",
"public void testNormalValues()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkValues(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }",
"@Test(timeout = 4000)\n public void test35() throws Throwable {\n Object object0 = new Object();\n Object object1 = new Object();\n Object object2 = new Object();\n Object object3 = new Object();\n Object object4 = new Object();\n Object object5 = new Object();\n Object object6 = new Object();\n Object object7 = new Object();\n Object object8 = new Object();\n Object object9 = new Object();\n Object object10 = new Object();\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.getOutputParam((-5941));\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n try { \n fBProcedureParam0.setValue(fBProcedureCall1);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // You cannot set value of an non-existing parameter.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall$NullParam\", e);\n }\n }",
"@Test\n public void tc_VerifyValue_MemorizedValue() throws Exception\n {\n EN.BeginTest( TestName );\n\n // Testscript in Schlüsselwort-Notation\n EN.SelectWindow( \"Rechner\" );\n\n // Soll/Ist-Vergleich: Ist das Richtige Fenster gesetzt?\n // Check the Name, Called Method and Value of Actuel object\n assertEquals( \"NO VALUE\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n assertEquals( \"Rechner\", myClipBoard.getObjectName() );\n assertEquals( \"SelectWindow()\", myClipBoard.getMethod() );\n\n // Set Value in \"Memory\"\n OKW_Memorize_Sngltn.getInstance().set( \"Key1\", \"The one and only Value\" );\n\n // Wert in \"All_MethodsObj\" setzen.\n EN.SetValue( \"All_MethodsObj\", \"The one and only Value\" );\n // Prüfung des Schlüsselwortes?\n EN.VerifyValue( \"All_MethodsObj\", \"${Key1}\" );\n\n // Check the Name, Called Method and Value of Actuel object\n //assertEquals( \"Wert 1\", myClipBoard.getValue().get( 0 ) );\n assertEquals( 1, myClipBoard.getValue().size() );\n\n assertEquals( \"Rechner.All_MethodsObj\", myClipBoard.getObjectName() );\n assertEquals( \"VerifyValue()\", myClipBoard.getMethod() );\n }"
] | [
"0.6552835",
"0.62089145",
"0.600244",
"0.59926796",
"0.5979205",
"0.59424573",
"0.5916021",
"0.58794844",
"0.58125246",
"0.57534295",
"0.5696077",
"0.5686249",
"0.5659059",
"0.56227285",
"0.55879885",
"0.5585219",
"0.5570289",
"0.55456203",
"0.551872",
"0.5518491",
"0.5506636",
"0.54850507",
"0.54834527",
"0.547743",
"0.5473313",
"0.5472384",
"0.54659206",
"0.54468024",
"0.54439396",
"0.54416984",
"0.5432912",
"0.54325265",
"0.5427634",
"0.5425843",
"0.5425649",
"0.5399646",
"0.5391667",
"0.5376208",
"0.53665066",
"0.536376",
"0.53633106",
"0.53596354",
"0.5351511",
"0.53486687",
"0.533317",
"0.5322045",
"0.53158784",
"0.5309818",
"0.5304548",
"0.53029525",
"0.5286582",
"0.52779204",
"0.5276089",
"0.527513",
"0.52740633",
"0.5264759",
"0.52591175",
"0.52455807",
"0.5245565",
"0.5239112",
"0.5238384",
"0.52371526",
"0.52192914",
"0.5214501",
"0.52099967",
"0.5207354",
"0.52048755",
"0.52045023",
"0.52013177",
"0.5200756",
"0.52000386",
"0.51951146",
"0.5190036",
"0.51895654",
"0.5187918",
"0.51867473",
"0.5185163",
"0.51821375",
"0.51749074",
"0.5174111",
"0.5172565",
"0.51684827",
"0.5163823",
"0.5161305",
"0.51593447",
"0.5158098",
"0.5156103",
"0.515472",
"0.5153506",
"0.5152702",
"0.51510775",
"0.51467824",
"0.5144859",
"0.5143318",
"0.5143163",
"0.51403195",
"0.51333493",
"0.5133249",
"0.51326865",
"0.5128527",
"0.5128034"
] | 0.0 | -1 |
Runs all the tests to be efficient | public static void runAllTheTests() {
testConstructorAndGetters();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }",
"private void runAllTests(){\n System.out.println(\"------ RUNNING TESTS ------\\n\");\n testAdd(); // call tests for add(int element)\n testGet(); // tests if the values were inserted correctly\n testSize(); // call tests for size()\n testRemove(); // call tests for remove(int index)\n testAddAtIndex(); // call tests for add(int index, int element)\n\n // This code below will test that the program can read the file\n // and store the values into an array. This array will then be sorted\n // by the insertionSort and it should write the sorted data back into the file\n\n testReadFile(); // call tests for readFile(String filename)\n testInsertionSort(); // call tests for insertionSort()\n testSaveFile(); // call tests for saveFile(String filename)\n System.out.println(\"\\n----- TESTING COMPLETE ----- \");\n }",
"protected void runTest() {\n\t\trunTest(getIterations());\n\t}",
"public void runTests() throws Exception {\n\t\tArrayList<KaidaComposer> als = getCrossOverPermutationTest();\r\n//\t\tArrayList<KaidaComposer> als = getMutationProbabilityTests();\r\n\t\t\r\n\t\tsynchronized (results) {\r\n\t\t\tresults.clear();\r\n\t\t\tfor (KaidaComposer al : als) {\r\n\t\t\t\tresults.add(new TestRunGenerationStatistics(nrOfContests,nrOfGenerations,al.getLabel(),al));\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsetProgress(0f);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (int runs = 0; runs < nrOfContests; runs++) {\r\n\t\t\t//run the test n times\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"\\nContest Nr. \" + runs + \" started\");\r\n\t\t\t\tTimer t = new Timer(\"Contest Nr. \" + runs);\r\n\t\t\t\tt.start();\r\n\t\t\t\t\r\n\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\talgorithm.restartOrTakeOver();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor (int g = 0; g < nrOfGenerations; g++) {\r\n\t\t\t\t\t//do one evolution step\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\t\tif (algorithm.isCycleCompleted()) {\r\n\t\t\t\t\t\t\talgorithm.startNextCycle();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\talgorithm.doOneEvolutionCycle();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Adding to results\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).addTestRun(als.get(z).getGenerations().getRange(0,nrOfGenerations));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Calculating statistics\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\t\r\n\t\t\t\tsetProgress((double)runs/(double)(nrOfContests-1));\r\n\t\t\t\t\r\n\t\t\t\tif (pause!=0) {\r\n\t\t\t\t\tsleep(pause);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (isPleasePause()) break;\r\n\t\t\t}\r\n\t\t\tsynchronized (results) {\r\n\t\t\t\tfor (int z=0; z < als.size(); z++) { //als.size()\r\n\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetProgress(1.0f);\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t//fail(\"al threw some Exception\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}",
"public static void runTests() {\n\t\tResult result = JUnitCore.runClasses(TestCalculator.class);\n\n\t}",
"private void doTests()\n {\n doDeleteTest(); // doSelectTest();\n }",
"public void soaktest() {\n\t\ttry {\n\t\t\tint errCount = 0;\n\n\t\t\tfor (int i = 1; i <= 100; i++) {\n\t\t\t\tRegression test = new Regression();\n\t\t\t\ttest0();\n\t\t\t\ttest.test1(m1);\n\t\t\t\ttest.test2(m1);\n\t\t\t\ttest.test3(m1);\n\t\t\t\ttest.test4(m1);\n\t\t\t\ttest.test5(m1);\n\t\t\t\ttest.test6(m1);\n\t\t\t\ttest.test7(m1, m2);\n\t\t\t\ttest.test8(m1);\n\t\t\t\ttest.test9(m2);\n\t\t\t\ttest.test10(m3);\n\t\t\t\ttest.test11(m1, m2);\n\t\t\t\ttest.test12(m1);\n\t\t\t\ttest.test13(m1);\n\t\t\t\ttest.test14(m1);\n\t\t\t\ttest.test15(m1);\n\t\t\t\ttest.test16(m1);\n\t\t\t\ttest.test17(m1);\n\t\t\t\ttest.test18(m4);\n\t\t\t\ttest.test19(m2, m3);\n\t\t\t\ttest.test97(m1);\n\t\t\t\tif (test.getErrors())\n\t\t\t\t\terrCount++;\n\t\t\t\tif ((i % 10) == 0) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"error count = \" + errCount + \" rounds = \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\tassertTrue(false);\n\t\t}\n\t}",
"public static void main(String[] args) {\n long startTime = System.currentTimeMillis();\n// final File folder = new File(\"tests/speedTestExamples\");\n final File folder = new File(\"tests/speedTestExamples/hard\");\n iterateExamples(folder);\n long ms = System.currentTimeMillis() - startTime;\n System.out.println(\"All tests have been finished in \" + ((double) ms) / (1000 * 60 * 60) + \" hours.\");\n }",
"private static void runTests() {\r\n\t\tfor (int i = 0; i < testFiles.length; i++) {\r\n\t\t\tConverter file = new Converter(testFiles[i]);\r\n\t\t\tfile.convert();\r\n\t\t\tSystem.out.println(\"---------\");\r\n\t\t}\r\n\t}",
"public static void runAllTests() {\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL());\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL(new String [] {\"100\"}));\n\t}",
"@Test\n\tpublic static void runAllTheTests() {\n\t\ttestGetters();\n\t}",
"public void runIndividualSpreadsheetTests() {\r\n\r\n\t\t// Make a list of files to be analyzed\r\n\t\tString[] inputFiles = new String[] {\r\n//\t\t\t\t\"salesforecast_TC_IBB.xml\",\r\n//\t\t\t\t\"salesforecast_TC_2Faults.xml\",\r\n//\t\t\t\t\t\t\t\"salesforecast_TC_2FaultsHeavy.xml\",\r\n\t\t\t\t\"SemUnitEx1_DJ.xml\",\r\n\t\t\t\t\"SemUnitEx2_1fault.xml\",\r\n\t\t\t\t\"SemUnitEx2_2fault.xml\",\r\n//\t\t\t\t\"VDEPPreserve_1fault.xml\",\r\n//\t\t\t\t\"VDEPPreserve_2fault.xml\",\r\n//\t\t\t\t\t\t\t\"VDEPPreserve_3fault.xml\",\r\n//\t\t\t\t\"AZA4.xml\",\r\n//\t\t\t\t\"Consultant_form.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation_v2.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation_C3.xml\",\r\n//\t\t\t\t\"11_or_12_diagnoses.xml\",\r\n//\t\t\t\t\"choco_loop.xml\",\r\n//\t\t\t\t\"Paper2.xml\",\r\n//\t\t\t\t\"Test_If.xml\",\r\n//\t\t\t\t\"Test_If2.xml\",\r\n\r\n\t\t};\r\n\r\n\t\tscenarios.add(new Scenario(executionMode.singlethreaded, pruningMode.on, PARALLEL_THREADS, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.levelparallel, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, PARALLEL_THREADS, true));\r\n//\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.levelparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic,pruningMode.on,PARALLEL_THREADS*2));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic,pruningMode.on,0));\r\n\r\n//\t\tinputFiles = new String[]{\"VDEPPreserve_3fault.xml\"};\r\n\r\n\r\n\t\t// Go through the files and run them in different scenarios\r\n\t\tfor (String inputfilename : inputFiles) {\r\n\t\t\trunScenarios(inputFileDirectory, inputfilename, logFileDirectory, scenarios);\r\n\t\t}\r\n\t}",
"public void testPerformance() {\n \t}",
"public void run() {\n long millis;\n TestCaseImpl tc = _testCase;\n \n // Force GC and record current memory usage\n _memoryBean.gc();\n _heapBytes = _memoryBean.getHeapMemoryUsage().getUsed();\n \n // Get number of threads to adjust iterations\n int nOfThreads = tc.getIntParam(Constants.NUMBER_OF_THREADS);\n \n int runIterations = 0;\n String runTime = tc.getParam(Constants.RUN_TIME);\n if (runTime != null) {\n // Calculate end time\n long startTime = Util.currentTimeMillis();\n long endTime = startTime + Util.parseDuration(runTime);\n \n // Run phase\n do {\n run(tc); // Call run\n runIterations++;\n millis = Util.currentTimeMillis();\n } while (endTime >= millis);\n }\n else {\n // Adjust runIterations based on number of threads\n runIterations = tc.getIntParam(Constants.RUN_ITERATIONS) / nOfThreads;\n \n // Run phase\n for (int i = 0; i < runIterations; i++) {\n run(tc); // Call run\n }\n }\n \n // Accumulate actual number of iterations\n synchronized (tc) {\n int actualRunIterations = \n tc.hasParam(Constants.ACTUAL_RUN_ITERATIONS) ? \n tc.getIntParam(Constants.ACTUAL_RUN_ITERATIONS) : 0;\n tc.setIntParam(Constants.ACTUAL_RUN_ITERATIONS, \n actualRunIterations + runIterations);\n }\n }",
"@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }",
"public static boolean runAllTests() {\r\n\r\n return testLinkedCart() && testAlphabetListConstructorIsEmpty()\r\n && testAlphabetListConstructorBadInput() && testAlphabetListAddBadInput1()&&\r\n testAlphabetListAddBadInput2()&&testAlphabetListAddBadInput2()&&\r\n testAlphabetListAdd() && testAlphabetListRemove();\r\n }",
"public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result1.wasSuccessful());\n\n\t Result result2 = JUnitCore.runClasses(TestUnitForReadByCalimNumber.class);\n\t for (Failure failure : result2.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result2.wasSuccessful());\n\t \n\t Result result3 = JUnitCore.runClasses(TestUnitForReadByLossDate.class);\n\t for (Failure failure : result3.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result3.wasSuccessful());\n\t \n\t\tResult result4 = JUnitCore.runClasses(TestUnitForUpdate.class);\n\t\tfor (Failure failure : result4.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t\tSystem.out.println(result4.wasSuccessful());\n\t \n\t Result result5 = JUnitCore.runClasses(TestUnitForReadVehicle.class);\n\t for (Failure failure : result5.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result5.wasSuccessful());\n \n\t Result result6 = JUnitCore.runClasses(TestUnitForDelete.class);\n\t for (Failure failure : result6.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result6.wasSuccessful());\n\t \n\t}",
"@Test\n public void testObject()\n throws Exception\n {\n initialize();\n genericTests();\n for (int i = 0; i < 10; i++)\n {\n permutateObjects();\n genericTests();\n } // for\n }",
"public void run() throws Exception {\n for (int i = 0; i < testCases.length; ++i) {\n runCase(testCases[i]);\n }\n }",
"public static void main(String[] args) { \n\t\tint[] try1 = new int[1000000000];\n\t\tRandom rand = new Random();\n\t\tfor(int i = 0; i < try1.length; i++) {\n\t\t\ttry1[i] = rand.nextInt();\n\t\t}\n // System.out.println(toString1(try1));\n\t\tLong startTime = new Long(System.currentTimeMillis());\n\t\tquickSortIn(try1, 0, try1.length - 1, 20);\n\t\tLong endTime = new Long(System.currentTimeMillis());\n\t\tSystem.out.println(endTime.intValue() - startTime.intValue());\n // System.out.println(toString1(try1));\n\n\n // Which test to run?\n\t // test();\n\t // test2();\n\t // test3();\n\t // test4();\n\t\n\t}",
"public static void main( String args[] ) {\n\n for ( int j = 0; j < TEST_COUNT; ++j ) {\n testSuite[j].execute();\n }\n }",
"void run() {\n\t\trunC();\n\t\trunPLMISL();\n\t\trunTolerance();\n\t\trunMatrix();\n\t}",
"@Test\n public void testAll() throws ParseException {\n testCreate();\n testExists(true);\n testGetInfo(false);\n testUpdate();\n testGetInfo(true);\n testDelete();\n testExists(false);\n }",
"public static void main (String[] args){\n\t\tincPieceCountTest();\n\t\tdecPieceCountTest();\n\t\tsetPieceTest();\n\t\tmoveTest();\n\t\tanyMoveTest();\n\t\tgetPiecesTest();\n\t\tsetPieceTest2();\n\t}",
"public static void UnitTests() {\n System.out.println(\"---\");\n\n int input = 0;\n boolean running = true;\n\n while(running) {\n System.out.println(\"1. Test Layer Class\\n2. Test NeuralNetwork Class\\n3. Go Back\\n\");\n input = getInput();\n switch (input) {\n case 1:\n UnitTests.testLayers();\n break;\n case 2:\n UnitTests.testNeuralNetwork();\n break;\n case 3:\n running = false;\n break;\n default:\n System.out.println(\"That's not an option.\");\n }\n }\n\n System.out.println(\"---\\n\");\n }",
"@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }",
"public static void main(String[] args) {\n\n\n for (int i = 0; i < 3; i++) {\n System.out.println(\"\\n********* TEST \" + (i+1) + \" *********\");\n experimentOne(false);\n experimentOne(true);\n\n experimentTwo(false);\n experimentTwo(true);\n\n experimentThree(false);\n experimentThree(true);\n }\n }",
"public static void main(String args[]){\n\t\tTestingUtils.runTests();\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tglobalTest();\n//\t\ttimeTest();\n//\t\ttestPrefixSearch();\n//\t\ttestSearch();\n//\t\ttestPrediction();\n//\t\ttestTrieSearch();\n//\t\ttestRebuid();\n//\t\ttest13();\n//\t\ttest14();\n\t}",
"protected void runTest(int iterations) {\n\t\tsteps = 0;\n\t\trunBeforeIterations();\n\t\tfor (iteration = 0; iteration < iterations; iteration++) {\n\t\t\trunBeforeIteration();\n\t\t\tstep = 0;\n\t\t\twhile (hasNextStep()) {\n\t\t\t\trunBeforeStep();\n\t\t\t\tresult = runStep();\n\t\t\t\trunAfterStep();\n\t\t\t\tstep++;\n\t\t\t\tsteps++;\n\t\t\t}\n\t\t\trunAfterIteration();\n\t\t}\n\t\trunAfterIterations();\n\t}",
"@Ignore\r\n @Test\r\n public void speedTest() throws InterruptedException {\n for (int i = 0; i < 10; i++) {\r\n singleSpeedTest();\r\n }\r\n }",
"void runTestSuites() throws InterruptedException {\n // all test suites are located under this directory\n String testSuiteDirectory = config.getTestSuiteDirectoryPathString();\n if (!testSuiteDirectory.endsWith(Constants.FILE_SEPARATOR)) {\n testSuiteDirectory += Constants.FILE_SEPARATOR;\n }\n\n String programNames = options.getValueFor(Constants.PROGRAMS_OPTION);\n String[] programNamesSeparated = programNames.split(Constants.COLON);\n\n // Find test subdirectories that match program names\n List<String> matchingDirectories;\n for (String programName : programNamesSeparated) {\n Path path = Paths.get(programName);\n String fname = path.getFileName().toString();\n programName = fname;\n DirectoryNameMatcher directoryFinder = new DirectoryNameMatcher(programName);\n try {\n Files.walkFileTree(Paths.get(testSuiteDirectory), directoryFinder);\n matchingDirectories = directoryFinder.getMatchingDirectories();\n if (matchingDirectories.isEmpty()) {\n Log.warn(messages.get(\"WRN001\", programName, testSuiteDirectory));\n }\n } catch (IOException ioException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR019\", programName));\n }\n\n for (String matchingDirectory : matchingDirectories) {\n TestSuiteConcatenator concatenator =\n new TestSuiteConcatenator(config, options);\n testSuite = concatenator.concatenateTestSuites(matchingDirectory);\n\n // Create READER for the Cobol source program to be tested\n StringBuilder cobolSourceInPath = new StringBuilder();\n cobolSourceInPath.append(System.getProperty(\"user.dir\"));\n cobolSourceInPath.append(Constants.FILE_SEPARATOR);\n cobolSourceInPath.append(config.getApplicationSourceDirectoryPathString());\n if (!cobolSourceInPath.toString().endsWith(Constants.FILE_SEPARATOR)) {\n cobolSourceInPath.append(Constants.FILE_SEPARATOR);\n }\n cobolSourceInPath.append(programName);\n\n List<String> applicationFilenameSuffixes = config.getApplicationFilenameSuffixes();\n for (String suffix : applicationFilenameSuffixes) {\n Log.debug(\"Driver looking for source file <\" + cobolSourceInPath.toString() + suffix + \">\");\n if (Files.isRegularFile(Paths.get(cobolSourceInPath.toString() + suffix))) {\n cobolSourceInPath.append(suffix);\n Log.debug(\"Driver recognized this file as a regular file: <\" + cobolSourceInPath.toString() + \">\");\n break;\n }\n }\n String cobolSourceInPathString = adjustPathString(cobolSourceInPath.toString());\n\n try {\n cobolSourceIn = new FileReader(cobolSourceInPathString);\n } catch (IOException cobolSourceInException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR018\", programName));\n }\n\n // Create WRITER for the test source program (copy of program to be tested plus test code)\n StringBuilder testSourceOutPath = new StringBuilder();\n testSourceOutPath.append(new File(Constants.EMPTY_STRING).getAbsolutePath());\n testSourceOutPath.append(Constants.FILE_SEPARATOR);\n testSourceOutPath.append(\n config.getString(Constants.TEST_PROGRAM_NAME_CONFIG_KEY,\n Constants.DEFAULT_TEST_PROGRAM_NAME));\n\n Log.debug(\"Driver.runTestSuites() testSourceOutPath: <\" + testSourceOutPath.toString() + \">\");\n\n try {\n testSourceOut = new FileWriter(testSourceOutPath.toString());\n } catch (IOException testSourceOutException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR016\", programName));\n }\n\n mergeTestSuitesIntoTheTestProgram();\n try {\n testSourceOut.close();\n } catch (IOException closeTestSourceOutException) {\n throw new PossibleInternalLogicErrorException(\n messages.get(\"ERR017\", programName));\n }\n\n // Compile and run the test program\n String processConfigKeyPrefix;\n ProcessLauncher launcher = null;\n switch (PlatformLookup.get()) {\n case LINUX :\n Log.debug(\"Driver launching Linux process\");\n processConfigKeyPrefix = \"linux\";\n launcher = new LinuxProcessLauncher(config);\n break;\n case WINDOWS :\n Log.debug(\"Driver launching Windows process\");\n processConfigKeyPrefix = \"windows\";\n launcher = new WindowsProcessLauncher(config);\n break;\n case OSX :\n Log.debug(\"Driver launching OS X process\");\n processConfigKeyPrefix = \"osx\";\n //launcher = new OSXProcessLauncher(config);\n break;\n case ZOS :\n Log.debug(\"Driver launching z/OS process\");\n processConfigKeyPrefix = \"zos\";\n //launcher = new ZOSProcessLauncher(config);\n break;\n default :\n Log.debug(\"Driver launching default process\");\n processConfigKeyPrefix = \"unix\";\n launcher = new LinuxProcessLauncher(config);\n break;\n }\n String processConfigKey = processConfigKeyPrefix + Constants.PROCESS_CONFIG_KEY;\n String processName = config.getString(processConfigKey);\n if (isBlank(processName)) {\n String errorMessage = messages.get(\"ERR021\", processConfigKey);\n Log.error(errorMessage);\n throw new PossibleInternalLogicErrorException(errorMessage);\n }\n if (launcher != null){\n Process process = launcher.run(testSourceOutPath.toString());\n int exitCode = 1;\n// try {\n exitCode = process.waitFor();\n// } catch (InterruptedException interruptedException) {\n// exitCode = 1;\n// }\n Log.info(messages.get(\"INF009\", processName, String.valueOf(exitCode)));\n }\n }\n }\n }",
"public final void doTest() {\n\n constructTestPlan();\n calculator.start();\n resultViewer.start();\n\n // Run Test Plan\n getJmeter().configure(testPlanTree);\n ((StandardJMeterEngine)jmeter).run();\n }",
"private void printResults() {\n\t\tfor (Test test : tests) {\n\t\t\ttest.printResults();\n\t\t}\n\t}",
"public static void main(String[] args) {\r\n System.out.println(runAllTests());\r\n }",
"public void runTest() throws InterruptedException {\n //Run Tests using Threads\n List<Thread> threads= new LinkedList<>();\n\n for (int i=0;i<calculatorList.size();i++){\n Thread t= new MyThread(i) {\n @Override\n public void run() {\n testMethodList.get(getK()).runTest();\n }\n };\n threads.add(t);\n }\n\n for (Thread t: threads){\n t.run();\n }\n for (Thread t: threads){\n t.join();\n }\n //Calculate Accuracy\n // - String Calculator Name,\n // - accuracy rate\n //- tests print\n List<Object[]> info=new ArrayList<>();\n for (int i=0;i<calculatorList.size();i++){\n Object[] calculatorInfo=new Object[3];\n calculatorInfo[0]=calculatorList.get(i).getName();\n TestMethod testMethod= testMethodList.get(i);\n calculatorInfo[1]=formula.evaluate(testMethod.getSuccess(),testMethod.getFails());\n calculatorInfo[2]=testMethod.getTestsPrint().toString();\n info.add(calculatorInfo);\n }\n printer.printByFormat(info);\n }",
"public void tests() {\n this.testStartBaseLocationsDraw();\n }",
"@Override\n public void runTest() {\n }",
"private void runTest(final Node me) {\n if (!initialized) {\n initStressTest();\n }\n\n List<Row> runs = engine.getSqlTemplate().query(selectControlSql);\n\n for (Row run : runs) {\n int runId = run.getInt(\"RUN_ID\");\n int payloadColumns = run.getInt(\"PAYLOAD_COLUMNS\");\n int initialSeedSize = run.getInt(\"INITIAL_SEED_SIZE\");\n long duration = run.getLong(\"DURATION_MINUTES\");\n\n String status = engine.getSqlTemplate().queryForString(selectStatusSql, runId, me.getNodeId());\n\n if (isMasterNode(me) && StringUtils.isBlank(status)) {\n initStressTestRowOutgoing(payloadColumns, runId, initialSeedSize);\n initStressTestRowIncoming(payloadColumns);\n long commitRows = run.getLong(\"SERVER_COMMIT_ROWS\");\n long sleepMs = run.getLong(\"SERVER_COMMIT_SLEEP_MS\");\n\n engine.getSqlTemplate().update(insertStatusSql, runId, me.getNodeId(), \"RUNNING\");\n for (Node client : engine.getNodeService().findTargetNodesFor(NodeGroupLinkAction.W)) {\n engine.getSqlTemplate().update(insertStatusSql, runId, client.getNodeId(), \"RUNNING\");\n }\n\n fillOutgoing(runId, duration, commitRows, sleepMs, payloadColumns);\n\n engine.getSqlTemplate().update(updateStatusSql, \"COMPLETE\", runId, me.getNodeId());\n\n } else if (!isMasterNode(me) && !StringUtils.isBlank(status) && status.equals(\"RUNNING\")) {\n long commitRows = run.getLong(\"CLIENT_COMMIT_ROWS\");\n long sleepMs = run.getLong(\"CLIENT_COMMIT_SLEEP_MS\");\n\n fillIncoming(runId, duration, commitRows, sleepMs, payloadColumns);\n\n engine.getSqlTemplate().update(updateStatusSql, \"COMPLETE\", runId, me.getNodeId());\n }\n }\n }",
"public void startTests() {\n if(testSettings.accessibleProperties || testSettings.accessibleInterface)\n testProperties();\n if(testSettings.tabTraversal)\n testTraversal();\n }",
"public static void main(String args[]){\n\t\tString indexLocation = \"H:\\\\ukbench\\\\training2\\\\\";\r\n\t\tString searchLocation = \"H:\\\\ukbench\\\\query\\\\\";\r\n\t\t\r\n//\t\tint[] testSizes = {2000};\r\n//\t\tint[] numTreesTests = {3,4,5,6,7,8,9,10};\r\n//\t\tint[] examineTopNResultsTests = {5,10,20};\r\n\t\tint[] testSizes = {10200};\r\n\t\tint[] numTreesTests = {1};//3,4,5,10};\r\n\t\tint[] examineTopNResultsTests = {5,20};\r\n\t\tfor ( int testSize : testSizes ){\r\n\t\t\tfor ( int numTrees : numTreesTests ){\r\n\t\t\t\tfor ( int numResults : examineTopNResultsTests ){\r\n\t\t\t\t\tSystem.out.println(testSize + \", \" + numTrees + \", \" + numResults);\r\n\t\t\t\t\tMultiIndexFinder finder = new MultiIndexFinder(indexLocation,numTrees,testSize/4);\r\n\t\t\t\t\t\r\n\t\t\t\t\tList<FileFilter> filters = new ArrayList<FileFilter>();\r\n\t\t\t\t\tfilters.add(new FileFilter(\".*\\\\.jpg\"));\r\n\t\t\t\t\tFileFinder ffinder = new FileFinder(searchLocation,filters);\r\n\t\t\t\t\tList<File> files = ffinder.getFiles();\r\n\t\t\t\t\tint numRight = 0;\r\n\t\t\t\t\tint numWrong = 0;\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor ( File file : files ){\r\n\t\t\t\t\t\tString foundFile = finder.findBestMatch(file.getAbsolutePath(),numResults);\r\n\t\t\t\t\t\t//System.out.println(\"for \" + file.getAbsolutePath() + \", found \" + foundFile);\r\n\t\t\t\t\t\tif ( !\"\".equals(foundFile) && IndexFinder.isCorrectFile(file.getAbsolutePath(),foundFile) ){\r\n\t\t\t\t\t\t\tnumRight++;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnumWrong++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\tif ( count >= (testSize *3)/4 ) break;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(numRight/(float)(numRight+numWrong));\r\n\t\t\t\t\tSystem.gc();\r\n\t\t\t\t}\r\n\t\t\t\tSystem.gc();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected abstract void executeTests() throws BuilderException;",
"public void selfTest() {\n \n \n \n /**\n * TESTING CONFIGURATION RIGHT HERE:\n */\n int total = 1; //How many tests should we run\n int start = 0; //The first test to run\n //TestStubs.storePrints(); //store prints until the end\n TestStubs.displayDebugWhileTesting(false); //shows all the debug prints (with context switches) if set to true\n \n \n //MemoryMap.selfTest();\n //Swap.selfTest();\n \n UserProcess.testing = true;\n TestStubs.debugPrint(\"SELF TESTING VMKERNEL!\");\n \n int passed = 0;\n \n for (int i = 0; i < total; i++) {\n if (runTest(i+start))\n passed += 1;\n }\n \n if (passed != total) {\n TestStubs.debugPrint(\"SOME TESTS FAILED! \" + passed + \"/\" + total + \" passed.\");\n } else {\n TestStubs.debugPrint(\"ALL TESTS PASSED! \" + passed + \"/\" + total + \" passed.\");\n }\n \n UserProcess.testing = false;\n \n\n \n //System.out.println(TestStubs.getStoredPrints());\n //TestStubs.clearAndDontStorePrints();\n \n if (passed != total) {\n System.out.flush();\n /// kernel.terminate();\n }\n \n TestStubs.disable();\n \n }",
"@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }",
"@Test\r\n\tpublic void test() {\r\n\t\tfor(int i=0;i<100;i++) {\r\n\t\t\tinsert();\r\n\t\t}\r\n\t\tselectAll();\r\n\t}",
"public void run() {\n\t\t// Child threads start here to begin testing-- tests are below\n\t\n\t\t// We suggest writing a series of zero-sum tests,\n\t\t// i.e. lists should be empty between tests. \n\t\t// The interimBarr enforces this.\n\t\ttry {\n\t\t\tcontainsOnEmptyListTest();\n\t\t\tinterimBarr.await();\n\t\t\tsentinelsInEmptyListTest();\n\t\t\tprintResBarr.await();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"private boolean isAllTestsRun() {\n Collection<TestPackage> pkgs = getTestPackages();\n for (TestPackage pkg : pkgs) {\n if (!pkg.isAllTestsRun()) {\n return false;\n }\n }\n return true;\n }",
"@Override\r\n public void runTests() {\r\n getTemperature();\r\n }",
"private static List<TestSetup> getTests() {\n PivotPicker middlePiv = Quick::alwaysPickMiddle;\n\n // Pivot Pickers\n PivotPicker leftPiv = Quick::alwaysPickLeftmost;\n PivotPicker rightPiv = Quick::alwaysPickRightmost;\n PivotPicker motPiv = Quick::medianOfThree;\n PivotPicker[] pivots = {leftPiv, middlePiv, rightPiv, motPiv};\n String[] pivotNames = {\"Always Pick Leftmost\", \"Always Pick Middle\", \"Always Pick Rightmost\", \"Median Of Three\"};\n\n // Partitioning methods\n Partitioner jonPart = (array, left, right, pivot) -> partition_Jon(array, left, right, pivot);\n Partitioner lomutoPart = Quick::partition_Lomuto;\n Partitioner hoarePart = Quick::partition_Hoare;\n Partitioner[] partitioners = {lomutoPart, hoarePart};\n String[] partNames = {\"lomuto\", \"hoare\"};\n\n // Subsort methods and sizes\n Subsort insertionSub = Quick::insertionSort;\n Subsort[] subsorts = {insertionSub};\n String[] subsortNames = {\"insertion\"};\n List<Integer> sizes = new ArrayList<>();\n for (int i = 3; i < 128; i = 1 + (int) (i * 1.45)) {\n sizes.add(i);\n }\n Integer[] subsortSizes = sizes.toArray(new Integer[sizes.size()]);\n\n // Data generators\n Generator randomGen = (size) -> {\n return generateArray(100, 999, size);\n };\n Generator sortedGen = (size) -> {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = i;\n }\n return arr;\n };\n Generator reversedGen = (size) -> {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = arr.length - i;\n }\n return arr;\n };\n Generator[] generators = {\n randomGen,\n //sortedGen, reversedGen,\n //(size) -> { return generateArray(10000, 99999, size, 0xDEADBEEF); },\n //(size) -> { return generateArray(10000, 99999, size, 0xCAFEBABE); },\n //(size) -> { return generateArray(10000, 99999, size, 0xBAADF00D); },\n\n };\n String[] generatorNames = {\n \"Random\",\n //\"sorted\", \"reversed\",\n //\"Sequence:0xDEADBEEF\",\n //\"Sequence:0xCAFEBABE\",\n //\"Sequence:0xBAADF00D\",\n };\n\n // Default test data\n TestSetup defaultTest = new TestSetup(\"Default\", null, null, 0, null, null);\n\n List<TestSetup> tests = new ArrayList<>();\n tests.add(defaultTest);\n List<TestSetup> temp = new ArrayList<>();\n { // Block for creating partition method variants\n\n\n // Create variations of the test with different partitioning methods\n for (TestSetup setup : tests) {\n\n for (int i = 0; i < partitioners.length; i++) {\n TestSetup variant = new TestSetup(setup, partNames[i]);\n variant.part = partitioners[i];\n temp.add(variant);\n }\n }\n }\n\n // Swap arrays (don't want to add to a collection we're iterating)\n tests = temp;\n temp = new ArrayList<>();\n // Create variations of the test with different pivot picking methods\n for (TestSetup setup : tests) {\n //temp.add(setup);\n\n for (int i = 0; i < pivots.length; i++) {\n TestSetup variant = new TestSetup(setup, setup.name + \" + \" + pivotNames[i]);\n variant.pivp = pivots[i];\n temp.add(variant);\n }\n }\n\n { // Block for creating generator (dataset) variants\n // Swap arrays (don't want to add to a collection we're iterating)\n tests = temp;\n temp = new ArrayList<>();\n\n // Create variations of the test with different data generation methods\n for (TestSetup setup : tests) {\n //temp.add(setup);\n\n for (int i = 0; i < generators.length; i++) {\n TestSetup variant = new TestSetup(setup, setup.name + \" on \" + generatorNames[i] + \" data\");\n variant.gen = generators[i];\n temp.add(variant);\n }\n }\n }\n\n\n { // Block for creating subsort variants\n // Swap arrays (don't want to add to a collection we're iterating)\n tests = temp;\n temp = new ArrayList<>();\n\n // Create variations of the test with different subsort methods and thresholds\n for (TestSetup setup : tests) {\n temp.add(setup);\n\n for (int i = 0; i < subsorts.length; i++) {\n // And also one version for each size!\n for (int k = 0; k < subsortSizes.length; k++) {\n TestSetup variant = new TestSetup(setup, setup.name + \"+\" + subsortNames[i] + \" below \" + subsortSizes[k]);\n variant.sst = subsortSizes[k];\n variant.ssort = subsorts[i];\n //temp.add(variant);\n\n TestSetup variant_finalSort = new TestSetup(variant, variant.name + \" once at end\");\n variant_finalSort.sortFinal = true;\n temp.add(variant_finalSort);\n }\n }\n }\n }\n\n\n // Return completed variation list\n return temp;\n }",
"public void startTesting() {\n\n\t\t//The following loop will be done nstest.MAX_ITERATIONS times after which we exit the thread\n\t\t// Note that the connection is frequently opened & closed. Autocommit is left on, so\n\t\t// per connection, we make MAX_OPERATIONS_PER_CONN number of transaction batches\n\t\t// Each transaction batch works over MAX_LOW_STRESS_ROWS number of rows, with each row working\n\t\t// as one transaction (since autocommit is on)\n\t\tfor (int i = 0; i < NsTest.MAX_ITERATIONS; i++) {\n\n\t\t\t//the connection will now open. It closes at the end of the loop\n\t\t\tconnex = getConnection();\n\t\t\tif (connex == null) {\n\t\t\t\tNsTest.logger.println(\"FAIL: \" + getThread_id()\n\t\t\t\t\t\t+ \" could not get database connection\");\n\t\t\t\treturn; //quit\n\t\t\t}\n\n\t\t\t//set autocommit to false to keep transaction control in your hand\n\t\t\t//Too many deadlocks amd locking issues if this is not commented out\n\t\t\ttry {\n\t\t\t\tconnex.setAutoCommit(false);\n\t\t\t} catch (Exception e) {\n\t\t\t\tNsTest.logger.println(\"FAIL: \" + getThread_id()\n\t\t\t\t\t\t+ \"'s setAutoCommit() failed:\");\n\t\t\t\tprintException(\"setting AutoCommit in Tester2\", e);\n \n // if you can't change the autocommit state, the connection is unusable.\n // get out of here.\n return;\n\t\t\t}\n\n\t\t\t//also set isolation level to Connection.TRANSACTION_READ_UNCOMMITTED to reduce number of\n\t\t\t// deadlocks\n\t\t\tsetIsolationLevel(Connection.TRANSACTION_READ_UNCOMMITTED);\n\n\t\t\t//Now do MAX_OPERATIONS_PER_CONN transaction batches within this connection\n\t\t\tfor (int numOp = 1; numOp < NsTest.MAX_OPERATIONS_PER_CONN; numOp++) {\n\n\t\t\t\t//Now loop through nstest.MAX_LOW_STRESS_ROWS number of times/rows\n\t\t\t\t// Here, we do randomly do either insert/update/delete operations or one select\n\t\t\t\tint rnum = (int) (Math.random() * 100) % 4; //returns 0, 1, 2, 3\n\n\t\t\t\tswitch (rnum) {\n\t\t\t\tcase 0: //do a select operation\n\t\t\t\t\ttry {\n\t\t\t\t\t\tint numSelected = doSelectOperation(NsTest.MAX_LOW_STRESS_ROWS);\n\t\t\t\t\t\tNsTest.logger.println(getThread_id() + \" selected \"\n\t\t\t\t\t\t\t\t+ numSelected + \" rows\");\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tNsTest.logger.println(\"doSelect in thread \" + getThread_id()\n\t\t\t\t\t\t\t\t+ \" threw \");\n\t\t\t\t\t\tprintException(\"doSelectOperation() in Tester2\", e);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase 1: //do Insert/Update/Delete operations\n\t\t\t\tcase 2: //do Insert/Update/Delete operations\n\t\t\t\tcase 3: //do Insert/Update/Delete operations\n\t\t\t\t\tfor (int j = 0; j < NsTest.MAX_LOW_STRESS_ROWS; j++) {\n\t\t\t\t\t\tdoIUDOperation();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//Letting this be even though autocommit is on so that if later on if we decide to turn\n\t\t\t\t// autocommit off, this automatically takes effect.\n\t\t\t\t//commit\n\t\t\t\ttry {\n\t\t\t\t\tconnex.commit();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tNsTest.logger.println(\"FAIL: \" + getThread_id()\n\t\t\t\t\t\t\t+ \"'s commit() failed:\");\n\t\t\t\t\tprintException(\"committing Xn in Tester2\", e);\n \n // if you can't commit, the connection is unusable.\n // get out of here.\n return;\n\t\t\t\t}\n\t\t\t}//end of for(int numOp=1...)\n\n\t\t\t//close the connection for the next iteration\n\t\t\tcloseConnection();\n\n\t\t}//end of for (int i=0;...)\n\n\t\tNsTest.logger.println(\"Thread \" + getThread_id() + \" is now terminating\");\n\n\t}",
"private void runBest() {\n }",
"public static void main(String[] args) {\n\t\ttest4();\n//\t\ttest7();\n//\t\ttest8();\n//\t\ttest9();\n//\t\ttest10();\n//\t\ttest11();\n//\t\t test13() ;\n\t}",
"private void execHsqlTest(Configuration config) throws Exception\n {\n Evaluator eval = new Evaluator(config);\n long startTime = System.currentTimeMillis();\n eval.run();\n long runTime = System.currentTimeMillis() - startTime;\n assertTrue(runTime > 10000);\n conn = eval.getConnection();\n checkCount(\"tbl1\", 100);\n checkCount(\"tbl2\", 100);\n checkCount(\"tbl3\", 10000);\n int count = 0;\n for (Iterator i = eval.getThreads().iterator(); i.hasNext();)\n {\n count++;\n EvaluatorThread t = (EvaluatorThread)i.next();\n assertFalse(t.isAlive());\n }\n assertEquals(15, count);\n count = 0;\n for (Iterator i = eval.getStats(); i.hasNext(); )\n {\n Statistics s = (Statistics)i.next();\n count++;\n assertEquals(0, s.getDeletes());\n assertEquals(0, s.getUpdates());\n assertEquals(0, s.getInserts());\n if (count < 6)\n {\n assertEquals(1, (int)s.getInterval());\n }\n }\n assertEquals(6, count);\n }",
"@Override\r\n\tpublic ITestResult[] runAllTests(TestInput ti) {\r\n\t\tint[] tids = getTestCaseIds();\r\n\t\tITestResult[] all = new ITestResult[0];\r\n\t\tfor (int t : tids) {\r\n\t\t\tITestResult[] tr = runTestCase(t, ti);\r\n\t\t\tif (tr != null)\r\n\t\t\t\tall = concat(all, tr);\r\n\t\t}\r\n\r\n\t\treturn all;\r\n\t}",
"public static void main(String args[]) {\n\t\ttestFindStop();\n\t\ttestFindGene() ;\n\t\ttestAllGenes();\n\t}",
"public static void main(String[] args) {\n final int t = SYS_IN.nextInt(); // total test cases\n SYS_IN.nextLine();\n for (int ti = 0; ti < t; ti++) {\n evaluateCase();\n }\n SYS_IN.close();\n }",
"public void run() {\n // Print runner description\n System.out.println(this.description);\n \n // Create a list of integers\n List <Integer> myList = makeList(30000);\n \n // Record starting time, for benchmarking\n long startTime = System.currentTimeMillis();\n \n // Execute 1000 solve syscles, to accumlate some time\n int result = 0;\n for (int i = 1; i <= 1000; i++) {\n result = runOnce(myList);\n }\n // Record ending time \n long endTime = System.currentTimeMillis();\n \n // Show the result and the execution time \n System.out.format(\"The result is %d.\\n\", result);\n System.out.println(\"Total execution time: \" + \n (endTime-startTime) + \"ms\\n\");\n }",
"@Test\n public void testArray()\n throws Exception\n {\n initialize();\n genericTests();\n for (int i = 0; i < 10; i++)\n {\n permutateArrays();\n genericTests();\n }\n }",
"public static void run()\n {\n String[] testInput = FileIO.readAsStrings(\"2020/src/day17/Day17TestInput.txt\");\n String[] realInput = FileIO.readAsStrings(\"2020/src/day17/Day17Input.txt\");\n\n Test.assertEqual(\"Day 17 - Part A - Test input\", partA(testInput), 112);\n Test.assertEqual(\"Day 17 - Part A - Challenge input\", partA(realInput), 384);\n Test.assertEqual(\"Day 17 - Part B - Test input\", partB(testInput), 848);\n Test.assertEqual(\"Day 17 - Part B - Challenge input\", partB(realInput), 2012);\n }",
"public void run(){\n ArrayList<ArrayList<Furniture>> all = getSubsets(getFoundFurniture());\n ArrayList<ArrayList<Furniture>> valid = getValid(all);\n ArrayList<ArrayList<Furniture>> ordered = comparePrice(valid);\n ArrayList<ArrayList<Furniture>> orders = produceOrder();\n checkOrder(orders, false);\n }",
"@Test\n public void testSubsequentRuns() {\n System.out.println(\" - test subsequent runs (maximizing)\");\n // create and add listeners\n AcceptedMovesListener l1 = new AcceptedMovesListener();\n AcceptedMovesListener l2 = new AcceptedMovesListener();\n AcceptedMovesListener l3 = new AcceptedMovesListener();\n searchLowTemp.addSearchListener(l1);\n searchMedTemp.addSearchListener(l2);\n searchHighTemp.addSearchListener(l3);\n // perform multiple runs (maximizing objective)\n System.out.format(\" - low temperature (T = %.7f)\\n\", LOW_TEMP);\n multiRunWithMaximumRuntime(searchLowTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l1.getTotalAcceptedMoves(), l1.getTotalRejectedMoves());\n System.out.format(\" - medium temperature (T = %.7f)\\n\", MED_TEMP);\n multiRunWithMaximumRuntime(searchMedTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l2.getTotalAcceptedMoves(), l2.getTotalRejectedMoves());\n System.out.format(\" - high temperature (T = %.7f)\\n\", HIGH_TEMP);\n multiRunWithMaximumRuntime(searchHighTemp, MULTI_RUN_RUNTIME, MAX_RUNTIME_TIME_UNIT, NUM_RUNS, true, true);\n System.out.format(\" >>> accepted/rejected moves: %d/%d\\n\", l3.getTotalAcceptedMoves(), l3.getTotalRejectedMoves());\n }",
"static public void main(String[] args) throws Throwable {\n /*\n Stream.of(mOneShotInputStrings)\n .parallel()\n .forEach(arrayOfStrings -> \n Stream.of(arrayOfStrings)\n .parallel()\n .forEach(string -> \n Stream.of(mWordList)\n .parallel()\n .map(word -> WordMatcher.search(word, string))\n .forEach(results -> results.print())));\n } */\n \n printDebugging(\"Starting SearchStreamGangTest\");\n \n // Create/run appropriate type of StreamGang to search for words.\n Stream.of(TestsToRun.values())\n .forEach(test -> {\n printDebugging(\"Starting \" + test); \n makeStreamGang(mWordList, test).run(); \n printDebugging(\"Ending \" + test);\n });\n \n printDebugging(\"Ending SearchStreamGangTest\"); \n\t}",
"public static void main(String[] args){\n new Testing().runTests();\r\n \r\n }",
"private static void runCalculations()\n {\n // TODO Create two different empty concurrent histograms\n\n // Create a sleep time simulator, it will sleep for 10 milliseconds in each call\n BaseSyncOpSimulator syncOpSimulator = new SyncOpSimulSleep(10);\n\n // List of threads\n List<Runner> runners = new LinkedList<>();\n\n // Create the threads and start them\n for (int i = 0; i < NUM_THREADS; i ++)\n {\n // TODO Pass the proper histograms\n final Runner runner = new Runner(syncOpSimulator, null, null);\n runners.add(runner);\n new Thread(runner).start();\n }\n\n // Wait for runners to finish\n runners.forEach(Runner::waitToFinish);\n\n // TODO Show the percentile distribution of the latency calculation of each executeOp call for all threads\n }",
"protected void runBeforeIterations() {}",
"public static void main(String[] args) {\n\ttest(tests);\n }",
"private JumbleResult runInitialTests(List testClassNames) {\n mMutationCount = countMutationPoints();\n if (mMutationCount == -1) {\n return new InterfaceResult(mClassName);\n }\n \n Class[] testClasses = new Class[testClassNames.size()];\n for (int i = 0; i < testClasses.length; i++) {\n try {\n testClasses[i] = Class.forName((String) testClassNames.get(i));\n } catch (ClassNotFoundException e) {\n // test class did not exist\n return new MissingTestsTestResult(mClassName, testClassNames, mMutationCount);\n }\n }\n \n try {\n // RED ALERT - heinous reflective execution of the initial tests in\n // another classloader\n assert Debug.println(\"Parent. Starting initial run without mutating\");\n MutatingClassLoader jumbler = new MutatingClassLoader(mClassName, createMutater(-1));\n Class suiteClazz = jumbler.loadClass(\"jumble.fast.TimingTestSuite\");\n Object suiteObj = suiteClazz.getDeclaredConstructor(new Class[] {List.class }).newInstance(new Object[] {testClassNames });\n Class trClazz = jumbler.loadClass(TestResult.class.getName());\n Class jtrClazz = jumbler.loadClass(JUnitTestResult.class.getName());\n Object trObj = jtrClazz.newInstance();\n suiteClazz.getMethod(\"run\", new Class[] {trClazz }).invoke(suiteObj, new Object[] {trObj });\n boolean successful = ((Boolean) trClazz.getMethod(\"wasSuccessful\", new Class[] {}).invoke(trObj, new Object[] {})).booleanValue();\n assert Debug.println(\"Parent. Finished\");\n \n // Now, if the tests failed, can return straight away\n if (!successful) {\n if (mVerbose) {\n System.err.println(trObj);\n }\n return new BrokenTestsTestResult(mClassName, testClassNames, mMutationCount);\n }\n \n // Set the test runtime so we can calculate timeouts when running the\n // mutated tests\n mTotalRuntime = ((Long) suiteClazz.getMethod(\"getTotalRuntime\", new Class[] {}).invoke(suiteObj, new Object[] {})).longValue();\n \n // Store the test suite information serialized in a temporary file so\n // FastJumbler can load it.\n Object order = suiteClazz.getMethod(\"getOrder\", new Class[] {Boolean.TYPE }).invoke(suiteObj, new Object[] {Boolean.valueOf(mOrdered) });\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(mTestSuiteFile));\n oos.writeObject(order);\n oos.close();\n \n } catch (RuntimeException e) {\n throw e;\n } catch (Exception e) {\n RuntimeException r = new IllegalStateException(\"Problem using reflection to set up run under another classloader\");\n r.initCause(e);\n throw r;\n }\n \n return null;\n }",
"public TestResults run() {\n\t\treturn run(getConfiguredDuration());\n\t}",
"protected void test(TestRunnable r) throws Exception {\n generateCorrectClassFiles();\n\n runTest(r);\n }",
"private void test() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\tBpmnModelInstance modelInstance = Bpmn.readModelFromFile(loadedFile);\n\t\tJsonEncoder jsonEncoder = new JsonEncoder(loadedFile.getName());\n\t\tBpmnBasicMetricsExtractor basicExtractor = new BpmnBasicMetricsExtractor(modelInstance, jsonEncoder);\n\t\tBpmnAdvancedMetricsExtractor advExtractor = new BpmnAdvancedMetricsExtractor(basicExtractor, jsonEncoder);\n\t\tlong loadTime = System.currentTimeMillis() - startTime;\n//\t\tSystem.out.println(\"Tempo load del file: \" + loadTime + \"ms\");\n\t\tbasicExtractor.runMetrics();\n\t\tlong basicTime = System.currentTimeMillis() - loadTime - startTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche di base: \" + basicTime + \"ms\");\n\t\tadvExtractor.runMetrics();\n\t\tlong advTime = System.currentTimeMillis() - basicTime - startTime - loadTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche avanzate: \" + advTime + \"ms\");\n\t\tjsonEncoder.exportJson();\n\t\tMySqlInterface db = new MySqlInterface();\n\t\tdb.connect();\n//\t\tdb.createTables(jsonEncoder);\n//\t\tdb.createAndInsertMetricsInfosTable();\n//\t\tdb.saveMetrics(jsonEncoder);\n//\t\tdb.closeConnection();\n\t}",
"public static boolean performTests()\n\t{\n\t\treturn basicBinaryStrTests() && advancedBinaryStrTests() && basicBinaryTests() && advancedBinaryTests();\n\t}",
"public static void main(String args[]) {\n\t\tSystem.out.println(\"\\r\\ngetGameSituationTest()\");\n\t\tgetGameSituationTest();\n\n\t\tSystem.out.println(\"\\r\\nstateCheckerboardConvertionTest()\");\n\t\tstateCheckerboardConvertionTest();\n\n\t\tSystem.out.println(\"\\r\\ngetValidActionsTest()\");\n\t\tgetValidActionsTest();\n\t}",
"public static void main (String args[]) {\n\t\tteste01();\n\t\tteste02();\n\t\tteste03();\n\t\t//teste04();\n\t}",
"@Test\n void execute_testingLotsOfBoundaryValues () {\n ihd2.initialize(sensor);\n ihd1.initialize(sensor);\n iad.initialize(ihd1, ihd2);\n\n\n// here i create array with data that i send in to test\n int testData[] = {0, -23, 45, 290, 50, -123, 200, 199, 201, -200, 5, 1, -1, 29};\n\n // in this test the output is two booleans, the output might change for each loop, so i must create an array of arrays that i\n // store the expected results in. so here for example when value zero which is the first value in the testData array is sent\n // to the for loop, once it passed the system and analyze has given it two booleans,\n // it will be compared to the test0 array in the array of arrays called expectedResults.\n boolean test0[] = {false, false};\n boolean test1[] = {false, false};\n boolean test2[] = {true, true};\n boolean test3[] = {true, true};\n boolean test4[] = {true, true};\n boolean test5[] = {false, false};\n boolean test6[] = {true, true};\n boolean test7[] = {true, true};\n boolean test8[] = {true, true};\n boolean test9[] = {false, false};\n boolean test10[] = {false, false};\n boolean test11[] = {false, false};\n boolean test12[] = {false, false};\n boolean test13[] = {true, true};\n\n\n boolean[] expectedResult[] = {test0,test1, test2, test3, test4, test5, test6, test7, test8, test9, test10, test11, test12, test13};\n\n\n\n\n\n // after initialize inputs are set to zero, here inputs is changed with array content at index t\n for (int t = 0; t < testData.length; t++) {\n sensor.safetyOutput = testData[t];\n sensor.originalOutput = testData[t];\n\n // then i must run both ihd so that the safety and original output is transferred to read1 and read2 which is used in\n // iad execute that does the analyze\n ihd1.execute();\n ihd2.execute();\n\n // then i run the execute which analyze the data\n iad.execute();\n\n\n\n // then i take the result and store it in an array.\n boolean[] booleansProducedByAnalyzeMethod = iad.getData();\n// here i store the expectedResultvalue on position t in the testet array\n boolean testet[] = expectedResult[t];\n// and last but not the least i compare both arrays and print out result.\n\n if (Arrays.equals(testet, booleansProducedByAnalyzeMethod))\n System.out.println(\"Pass boundaryvaluestest\"+ t);\n else\n System.out.println(\"Fail boundaryvaluestest\"+ t);\n\n\n }\n }",
"public static void runUsual() throws Exception {\r\n\t\ttestRun(0);\r\n\t}",
"private void runEm() {\n renameOriginalDomainConfig();\n\n testV3_0_1Domain();\n\n // after all the tests have run, move back the old domain\n restoreOriginalDomainConfig();\n\n // print results\n stat.printSummary();\n }",
"public static void start() {\n\t\t\n\t\ttestEmptyConstructors();\n\t\ttestConstructors();\n\n\t}",
"public void TestMain(){\n SampleStatements();\n TestMyPow();\n }",
"@Test\n public void test9MLog_Siebel_SingleRun() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IOException, IllegalAccessException {\n String logPath_base = \"/home/xiaohe/workspace/DATA/FakeData4TestingPerf/Pub_fake.log\";\n// Common.testLog_multiTimes(logPath_base, 5, true); //eager eval\n\n// Common.testLog_multiTimes(logPath_base, 1, false); //lazy eval\n\n// String logPath_base = \"/home/xiaohe/workspace/DATA/ldccComplete_MonpolyStyle\";\n\n String[] args = new String[]{\"./test/count/insert.sig\", \"./test/count/insert.fl\", logPath_base};\n Main.main(args);\n\n }",
"public static void main(String[] args) {\n\t\trun();\n\t\t//runTest();\n\n\t}",
"@Test\n @Order(8)\n void taillardTestMoreIterations() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n int output;\n float sumTabu = 0;\n int minTabu = Integer.MAX_VALUE;\n float sumRecuit = 0;\n int minRecuit = Integer.MAX_VALUE;\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n for (int j = 0; j < 10; j++) {\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n\n System.out.println(\"\\n \\t Test#\"+j);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumTabu += output;\n if (output < minTabu) minTabu = output;\n\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n output = assignementProblem.getF().apply(assignementProblem.getOutCombination());\n sumRecuit += output;\n if (output < minRecuit) minRecuit = output;\n }\n\n\n System.out.println(\"\\tAverage tabu \" + sumTabu / 10);\n System.out.println(\"\\tMinimum found \" + minTabu);\n\n System.out.println(\"\\tAverage recuit \" + sumRecuit / 10);\n System.out.println(\"\\tMinimum found \" + minRecuit);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n testFactorial();\n testFibonacci();\n testMissing();\n testPrime();\n\n\n }",
"public UnitTestData() throws Exception {\n String[] runsData = {\n \"1,1,A,1,No,No,4\", // 0 (a No before first yes Security Violation)\n \"2,1,A,1,No,No,2\", // 0 (a No before first yes Compilation Error)\n \"3,1,A,1,No,No,1\", // 20 (a No before first yes)\n \"4,1,A,3,Yes,No,0\", // 3 (first yes counts Minute points but never Run Penalty points)\n \"5,1,A,5,No,No,1\", // zero -- after Yes\n \"6,1,A,7,Yes,No,0\", // zero -- after Yes\n \"7,1,A,9,No,No,1\", // zero -- after Yes\n \"8,1,B,11,No,No,1\", // zero -- not solved\n \"9,2,A,48,No,No,4\", // 0 (a No before first yes Security Violation)\n \"10,2,A,50,Yes,No,0\", // 50 (minute points; no Run points on first Yes)\n \"11,2,B,35,No,No,1\", // zero -- not solved\n \"12,2,B,40,No,No,1\", // zero -- not solved\n };\n\n // Assign half eams random team member names\n addTeamMembers(contest, getTeamAccounts(contest).length / 2, 5);\n\n assertEquals(\"Expectig team member names\", 5, getFirstAccount(contest, Type.TEAM).getMemberNames().length);\n\n assertEquals(\"team count\", 120, contest.getAccounts(Type.TEAM).size());\n\n for (String runInfoLine : runsData) {\n SampleContest.addRunFromInfo(contest, runInfoLine);\n }\n\n Problem problem = contest.getProblems()[0];\n Account judge = getFirstAccount(contest, Type.JUDGE);\n generateClarifications(contest, 20, problem, judge.getClientId(), false, false);\n generateClarifications(contest, 20, problem, judge.getClientId(), true, false);\n generateClarifications(contest, 20, problem, judge.getClientId(), true, true);\n\n sampleContest.assignSampleGroups(contest, \"North Group\", \"South Group\");\n\n assertEquals(\"Runs\", 12, contest.getRuns().length);\n\n }",
"public void test25() throws Exception {\n runTestInDirectory(\"regression\");\n }",
"public boolean testCase5()\n {\n String flavor = null;\n final String DESC = \"Simple performance measurement \";\n reporter.testCaseInit(DESC);\n // Reset the counting for outputNames for this testcase\n outNames = new OutputNameManager(baseOutName + \"Perf\", \".out\");\n try\n {\n long[] times = null;\n Vector streamTimes = new Vector();\n Vector domTimes = new Vector();\n TransformWrapper transformWrapper = null;\n\n flavor = \"trax.stream\";\n transformWrapper = TransformWrapperFactory.newWrapper(flavor);\n transformWrapper.newProcessor(testProps);\n reporter.logHashtable(Logger.TRACEMSG, transformWrapper.getProcessorInfo(), \"wrapper.getProcessorInfo() for next transforms\");\n\n // Repeat a few times with streams\n for (int i = 1; i <= 5; i++)\n {\n perfFileInfo.outputName = outNames.nextName();\n reporter.logInfoMsg(\"perf-stream transform into \" + perfFileInfo.outputName);\n times = transformWrapper.transform(perfFileInfo.xmlName, perfFileInfo.inputName, perfFileInfo.outputName);\n logPerfElem(times, perfFileInfo, flavor);\n streamTimes.addElement(new Long(times[TransformWrapper.IDX_OVERALL]));\n }\n // Only bother checking the *last* iteration of perfs\n fileChecker.check(reporter, \n new File(perfFileInfo.outputName), \n new File(perfFileInfo.goldName), \n DESC + flavor + \" into: \" + perfFileInfo.outputName);\n \n flavor = \"trax.dom\";\n transformWrapper = TransformWrapperFactory.newWrapper(flavor);\n transformWrapper.newProcessor(testProps);\n reporter.logHashtable(Logger.TRACEMSG, transformWrapper.getProcessorInfo(), \"wrapper.getProcessorInfo() for next transforms\");\n\n // Repeat a few times with DOMs\n for (int i = 1; i <= 5; i++)\n {\n perfFileInfo.outputName = outNames.nextName();\n reporter.logInfoMsg(\"perf-dom transform into \" + perfFileInfo.outputName);\n times = transformWrapper.transform(perfFileInfo.xmlName, perfFileInfo.inputName, perfFileInfo.outputName);\n logPerfElem(times, perfFileInfo, flavor);\n domTimes.addElement(new Long(times[TransformWrapper.IDX_OVERALL]));\n }\n // Only bother checking the *last* iteration of perfs\n fileChecker.check(reporter, \n new File(perfFileInfo.outputName), \n new File(perfFileInfo.goldName), \n DESC + flavor + \" into: \" + perfFileInfo.outputName);\n\n // Log a big message at the very end to make it easier to see\n StringBuffer buf = new StringBuffer(\"Minitest.testCase5 PERFORMANCE NUMBERS\\n\");\n buf.append(\" STREAM OVERALL TIMES: \");\n for (Enumeration elements = streamTimes.elements();\n elements.hasMoreElements(); /* no increment portion */ )\n {\n buf.append(elements.nextElement());\n buf.append(\", \");\n }\n buf.append(\"\\n\");\n buf.append(\" DOM OVERALL TIMES: \");\n for (Enumeration elements = domTimes.elements();\n elements.hasMoreElements(); /* no increment portion */ )\n {\n buf.append(elements.nextElement());\n buf.append(\", \");\n }\n buf.append(\"\\n\");\n reporter.logArbitrary(Logger.CRITICALMSG, buf.toString());\n } \n catch (Throwable t)\n {\n reporter.logThrowable(reporter.ERRORMSG, t, DESC + flavor + \" threw: \");\n reporter.checkErr(DESC + flavor + \" threw: \" + t.toString());\n }\n reporter.testCaseClose();\n return true;\n }",
"public static void main(String[] args) throws Exception {\n\n\t\t testDistance();\n\n\t\t //functionFitting();\n\t\t //testFunction();\n\t}",
"public static void main(String[] args){\n\t\t\n\t\tdouble selectionTime, mergeTime, quickTime; \n\t\t\n\t\tSystem.out.println(\"Running All Sorting Algorithms on smaller arrays...\\n\");\n\t\tSystem.out.printf(\"Size\\tSelection\\t Merge\\t Quick\\n\");\n\t\t\n\t\t// sort arrays with lengths from *sizes* array (selection, merge & quick)\n\t\tfor (int num = 0; num < sizes.length; num++){\n\t\t\t// make random array\n\t\t\tInteger[] list = makeRandomArray(sizes[num],0,Integer.MAX_VALUE-1);\n\t\t\t\n\t\t\t// sort array copies with each algo TEST_RUN times\n\t\t\tselectionTime \t = testSelectionSort(list);\n\t\t\tmergeTime \t = testMergeSort(list);\n\t quickTime \t = testQuickSort(list);\n\t \n\t // generate output (average time for each algo)\n\t System.out.printf(\"%s\\t%.2f\\t\\t %.2f\\t %.2f\\n\",sizes[num],selectionTime,mergeTime,quickTime);\n\t\t}\n\t\t\n\t\t\n\t\tSystem.out.println(\"\\nRunning Merge & Quick Sort Algorithms on big arrays...\\n\");\n\t\tSystem.out.printf(\"Size\\tMergeSort\\tQuickSort\\n\");\n\t\t\n\t\t// sort arrays with lengths from *bigger* array (merge & quick)\n\t\tfor (int num = 0; num < bigger.length; num++){\n\t\t\t// make random array\n\t\t\tInteger[] list = makeRandomArray(bigger[num],0, Integer.MAX_VALUE - 1);\n\t\t\t\n\t\t\t// sort array copies with each algo TEST_RUN times\n\t\t\tmergeTime \t\t = testMergeSort(list);\n\t\t\tquickTime \t\t = testQuickSort(list);\n\t\t\t\n\t\t\t// generate output (average time for each algo)\n\t\t\tSystem.out.printf(\"%s\\t%.2f\\t\\t%.2f\\n\",bigger[num],mergeTime,quickTime);\n\t\t}\n\t}",
"public void testRunning()\n\t\t{\n\t\t\tInvestigate._invData.clearStores();\n\n\t\t\tfinal WorldLocation topLeft = SupportTesting.createLocation(0, 10000);\n\t\t\ttopLeft.setDepth(-1000);\n\t\t\tfinal WorldLocation bottomRight = SupportTesting.createLocation(10000, 0);\n\t\t\tbottomRight.setDepth(1000);\n\t\t\tfinal WorldArea theArea = new WorldArea(topLeft, bottomRight);\n\t\t\tfinal RectangleWander heloWander = new RectangleWander(theArea,\n\t\t\t\t\t\"rect wander\");\n\t\t\theloWander.setSpeed(new WorldSpeed(20, WorldSpeed.Kts));\n\t\t\tfinal RectangleWander fishWander = new RectangleWander(theArea,\n\t\t\t\t\t\"rect wander 2\");\n\n\t\t\tRandomGenerator.seed(12);\n\n\t\t\tWaterfall searchPattern = new Waterfall();\n\t\t\tsearchPattern.setName(\"Searching\");\n\n\t\t\tTargetType theTarget = new TargetType(Category.Force.RED);\n\t\t\tInvestigate investigate = new Investigate(\"investigating red targets\",\n\t\t\t\t\ttheTarget, DetectionEvent.IDENTIFIED, null);\n\t\t\tsearchPattern.insertAtHead(investigate);\n\t\t\tsearchPattern.insertAtFoot(heloWander);\n\n\t\t\tfinal Status heloStat = new Status(1, 0);\n\t\t\theloStat.setLocation(SupportTesting.createLocation(2000, 4000));\n\t\t\theloStat.getLocation().setDepth(-200);\n\t\t\theloStat.setCourse(270);\n\t\t\theloStat.setSpeed(new WorldSpeed(100, WorldSpeed.Kts));\n\n\t\t\tfinal Status fisherStat = new Status(1, 0);\n\t\t\tfisherStat.setLocation(SupportTesting.createLocation(4000, 2000));\n\t\t\tfisherStat.setCourse(155);\n\t\t\tfisherStat.setSpeed(new WorldSpeed(12, WorldSpeed.Kts));\n\n\t\t\tfinal DemandedStatus dem = null;\n\n\t\t\tfinal SimpleDemandedStatus ds = (SimpleDemandedStatus) heloWander.decide(\n\t\t\t\t\theloStat, null, dem, null, null, 100);\n\n\t\t\tassertNotNull(\"dem returned\", ds);\n\n\t\t\t// ok. the radar first\n\t\t\tASSET.Models.Sensor.Lookup.RadarLookupSensor radar = new RadarLookupSensor(\n\t\t\t\t\t12, \"radar\", 0.04, 11000, 1.2, 0, new Duration(0, Duration.SECONDS),\n\t\t\t\t\t0, new Duration(0, Duration.SECONDS), 9200);\n\n\t\t\tASSET.Models.Sensor.Lookup.OpticLookupSensor optic = new OpticLookupSensor(\n\t\t\t\t\t333, \"optic\", 0.05, 10000, 1.05, 0.8, new Duration(20,\n\t\t\t\t\t\t\tDuration.SECONDS), 0.2, new Duration(30, Duration.SECONDS));\n\n\t\t\tHelo helo = new Helo(23);\n\t\t\thelo.setName(\"Merlin\");\n\t\t\thelo.setCategory(new Category(Category.Force.BLUE,\n\t\t\t\t\tCategory.Environment.AIRBORNE, Category.Type.HELO));\n\t\t\thelo.setStatus(heloStat);\n\t\t\thelo.setDecisionModel(searchPattern);\n\t\t\thelo.setMovementChars(HeloMovementCharacteristics.getSampleChars());\n\t\t\thelo.getSensorFit().add(radar);\n\t\t\thelo.getSensorFit().add(optic);\n\n\t\t\tSurface fisher2 = new Surface(25);\n\t\t\tfisher2.setName(\"Fisher2\");\n\t\t\tfisher2.setCategory(new Category(Category.Force.RED,\n\t\t\t\t\tCategory.Environment.SURFACE, Category.Type.FISHING_VESSEL));\n\t\t\tfisher2.setStatus(fisherStat);\n\t\t\tfisher2.setDecisionModel(fishWander);\n\t\t\tfisher2.setMovementChars(SurfaceMovementCharacteristics.getSampleChars());\n\n\t\t\tCoreScenario cs = new CoreScenario();\n\t\t\tcs.setScenarioStepTime(5000);\n\t\t\tcs.addParticipant(helo.getId(), helo);\n\t\t\tcs.addParticipant(fisher2.getId(), fisher2);\n\n\t\t\t// ok. just do a couple of steps, to check how things pan out.\n\t\t\tcs.step();\n\n\t\t\tSystem.out.println(\"started at:\" + cs.getTime());\n\n\t\t\tDebriefReplayObserver dro = new DebriefReplayObserver(\"./test_reports/\",\n\t\t\t\t\t\"investigate_search.rep\", false, true, true, null, \"plotter\", true);\n\t\t\tTrackPlotObserver tpo = new TrackPlotObserver(\"./test_reports/\", 300,\n\t\t\t\t\t300, \"investigate_search.png\", null, false, true, false, \"tester\",\n\t\t\t\t\ttrue);\n\t\t\tdro.setup(cs);\n\t\t\ttpo.setup(cs);\n\t\t\t//\n\t\t\tdro.outputThisArea(theArea);\n\n\t\t\tInvestigateStore theStore = Investigate._invData.firstStore();\n\n\t\t\t// now run through to completion\n\t\t\tint counter = 0;\n\t\t\twhile ((cs.getTime() < 12000000)\n\t\t\t\t\t&& (theStore.getCurrentTarget(23) == null))\n\t\t\t{\n\t\t\t\tcs.step();\n\t\t\t\tcounter++;\n\t\t\t}\n\n\t\t\t// so, we should have found our tartget\n\t\t\tassertNotNull(\"found target\", theStore.getCurrentTarget(23));\n\n\t\t\t// ok. we've found it. check that we do transition to detected\n\t\t\tcounter = 0;\n\t\t\twhile ((counter++ < 100) && (theStore.getCurrentTarget(23) != null))\n\t\t\t{\n\t\t\t\tcs.step();\n\t\t\t}\n\n\t\t\tdro.tearDown(cs);\n\t\t\ttpo.tearDown(cs);\n\n\t\t\t// so, we should have cleared our tartget\n\t\t\tassertNull(\"found target\", theStore.getCurrentTarget(23));\n\t\t\tassertEquals(\"remembered contact\", 1, theStore.countDoneTargets());\n\n\t\t}",
"public boolean runTests(CadseTest... cadseTest) {\n\t\tthis.cadseTests = cadseTest;\n\n\t\tthis.testCount = cadseTest.length;\n\t\tfor (CadseTest ct : cadseTest) {\n\t\t\tct.setCadseTestPlatform(this);\n\t\t}\n\t\tfor (CadseTest ct : cadseTest) {\n\t\t\tct.init();\n\t\t}\n\t\tif (compileAll()) {\n\t\t\tmessageTestSuiteResults();\n\t\t\treturn true;\n\t\t}\n\t\tfor (CadseTest ct : cadseTest) {\n\t\t\ttry {\n\t\t\t\tif (!ct.runTest()) {\n\t\t\t\t\tthis.testPassed++;\n\t\t\t\t\tct.status = 0;\n\t\t\t\t} else {\n\t\t\t\t\tthis.testFailed++;\n\t\t\t\t\tct.status = 1;\n\t\t\t\t}\n\t\t\t} catch (Throwable e) {\n\t\t\t\tSystem.out.println(\"TEST Exception \" + ct.getName());\n\t\t\t\te.printStackTrace();\n\t\t\t\tthis.testFailed++;\n\t\t\t\tct.status = 1;\n\t\t\t}\n\t\t\tmessageTestSuiteResults();\n\t\t}\n\t\tfinishTest();\n\n\t\treturn testPassed != testCount;\n\t}",
"public static void main(String[] args) throws IOException, InterruptedException {\r\n\t\r\n TournamentTest();\r\n //humanPlayersTest();\r\n }",
"public void testGet() {\n\t//int i = 5;\n\ttitle();\n\tfor (int i = 1; i <= TestEnv.parallelism; i++) {\n\t this.parallelism = i;\n\t super.testGet();\n\t}\n }",
"@Test\n public void baseCommandTests_part1() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part1.xlsx\");\n assertPassFail(executionSummary, \"base_showcase\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_projectfile\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_array\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_count\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_date\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"actual_in_output\", TestOutcomeStats.allPassed());\n }",
"protected void TestProcess() {\n\t\tchangeCPUWDStatus(false);\n\t\twhile (testIsNotDoneStatus) {\n\t\t\tresetParams();\n\t\t\ttry {\n\t\t\t\tif (!startTrafficAndSample()) {\n\t\t\t\t\ttestIsNotDoneStatus = false;\n\t\t\t\t\tresetTestBol = false;\n\t\t\t\t\texceptionThrown = true;\n\t\t\t\t\tGeneralUtils.stopAllLevels();\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\treport.report(\"Stopping Parallel Commands From Java Exception\" + e.getMessage());\t\t\t\t\n\t\t\t\ttestIsNotDoneStatus = false;\n\t\t\t\tresetTestBol = false;\n\t\t\t\texceptionThrown = true;\n\t\t\t\treason = \"network connection Error\";\n\t\t\t\treport.report(e.getMessage() + \" caused Test to stop\", Reporter.FAIL);\n\t\t\t\te.printStackTrace();\n\t\t\t\tGeneralUtils.stopAllLevels();\n\t\t\t}\n\t\t\tif (resetTestBol) {\n\t\t\t\tnumberOfResets++;\n\t\t\t\tif (syncCommands != null) {\n\t\t\t\t\treport.report(\"Stopping Parallel Commands\");\n\t\t\t\t\tsyncCommands.stopCommands();\n\t\t\t\t}\n\t\t\t\tmakeThreadObjectFinish();\n\t\t\t\tif (syncCommands != null) {\n\t\t\t\t\treport.report(\"Commands File Path: \" + syncCommands.getFile());\n\t\t\t\t}\n\t\t\t\ttestIsNotDoneStatus = true;\n\t\t\t\t// stop level\n\t\t\t\ttry {\n\t\t\t\t\tif (syncCommands != null) {\n\t\t\t\t\t\tsyncCommands.moveFileToReporterAndAddLink();\n\t\t\t\t\t}\n\t\t\t\t\treport.report(\"Stopping Traffic\");\n\t\t\t\t\ttrafficSTC.stopTraffic();\n\t\t\t\t\ttrafficSTC.addResultFilesToReport(String.valueOf(numberOfResets));\n\t\t\t\t\treport.report(\"Resetting test\", Reporter.WARNING);\n\t\t\t\t\treason = \"reset Test because of stream halt\";\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (numberOfResets >= 3) {\n\t\t\t// using this flag in order to NOT print results.\n\t\t\ttestIsNotDoneStatus = false;\n\t\t\tprintResultsForTest = false;\n\t\t\treport.report(\"Test Was Reseted Too many times because of more then \" + PRECENT_OF_UE_RESET + \"%\"\n\t\t\t\t\t+ \" Of the Streams are in Halt - check Setup\", Reporter.FAIL);\n\t\t\treason = \"Test Was Restarted Too many Times due to Traffic halt\";\n\t\t}\n\t\ttry {\n\t\t\tif (syncCommands != null) {\n\t\t\t\tsyncCommands.stopCommands();\n\t\t\t}\n\t\t} catch (Exception e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tmakeThreadObjectFinish();\n\t\ttry {\n\t\t\tif (syncCommands != null) {\n\t\t\t\tsyncCommands.moveFileToReporterAndAddLink();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\treport.report(\"Exception in ReporterHelper.copyFileToReporterAndAddLink could not attach Command File\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tchangeCPUWDStatus(true);\n\t}",
"public void ExecuteTests() throws IOException{\r\n\t\t\r\n\t\tAutomationSuiteRunnerImpl testcaseinfo = new AutomationSuiteRunnerImpl();\r\n\t\ttestcaseinfo.GetTestCaseInformation();\r\n\t\tTestsBrowserList = testcaseinfo.getTestsBrowserList();\r\n\t\tTestsClassesList = testcaseinfo.getTestsClassesList();\r\n\t\tClassesMethodList = testcaseinfo.getClassesMethodList();\r\n\t\tTestsParamList = testcaseinfo.getTestsParamList();\r\n\t\tTestNGConfig = testcaseinfo.getTestNGConfig();\r\n\t\tList<XmlSuite> suites = new ArrayList<XmlSuite>();\r\n\t\t\r\n\t\tlogger.info(\"Generating TestNG.xml file\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code creates testNG xmlSuite and sets the configuration\r\n\t\t */\r\n\t\tXmlSuite suite = new XmlSuite();\r\n\t\tsuite.setName(TestNGConfig.get(\"AutomationSuiteName\"));\r\n\t\t\r\n\t\tif(TestNGConfig.get(\"ParallelMode\").toString().equalsIgnoreCase(\"True\")) {\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.TESTS);\r\n\t\t\tsuite.setThreadCount(Integer.parseInt(TestNGConfig.get(\"ThreadCount\")));\r\n\t\t}\r\n\t\telse {\r\n\r\n\t\t\tsuite.setParallel(XmlSuite.ParallelMode.NONE);\r\n\t\t}\r\n\t\t\r\n\t\tsuite.setVerbose(Integer.parseInt(TestNGConfig.get(\"Verbose\")));\r\n\t\tif(TestNGConfig.get(\"PreserveOrder\").toString().equalsIgnoreCase(\"True\"))\r\n\t\t\tsuite.setPreserveOrder(Boolean.TRUE);\r\n\t\telse \r\n\t\t\tsuite.setPreserveOrder(Boolean.FALSE);\r\n\t\t\r\n\t\t\r\n\t\t//suite.addListener(\"frameworkcore.ReportingClass.ListenersImpl\");\r\n\t\t\r\n\t\t/**\r\n\t\t * The below code assigns the Test classes/mathods/parameters to the TestNG Suite\r\n\t\t */\r\n\t\tfor (String key : TestsBrowserList.keySet()){\r\n\t\t\tArrayList<XmlClass> classes = new ArrayList<XmlClass>();\r\n\t\t\tXmlTest test = new XmlTest(suite);\r\n\t\t\ttest.setName(key.toString());\r\n\t\t\tHashMap<String,String> browserinfo = new HashMap<String,String>();\r\n\t\t\tbrowserinfo.put(\"BrowserName\", TestsBrowserList.get(key).toString());\r\n\t\t\ttest.setParameters(browserinfo);\r\n\t\t\tSetParameters(test);\r\n\t\t\tCollection<String> classvalues = TestsClassesList.get(key);\r\n\t\t\tfor(String testclass : classvalues){\r\n\t\t\t\tXmlClass testClass = new XmlClass();\r\n\t\t testClass.setName(testclass);\r\n\t\t Collection<String> methodvalues = ClassesMethodList.get(testclass);\r\n\t\t ArrayList<XmlInclude> methodsToRun = new ArrayList<XmlInclude>();\r\n\t\t for(String method: methodvalues){\r\n\t\t \tif(method.toLowerCase().contains(\"tag\")||method.toLowerCase().contains(\"ignore\"))\r\n\t\t \t\tlogger.info(\"Method \" + method + \" will not run\" );\r\n\t\t \telse\r\n\t\t \t\tmethodsToRun.add(new XmlInclude(method));\r\n\t\t }\r\n\t\t testClass.setIncludedMethods(methodsToRun);\r\n\t\t \r\n\t\t classes.add(testClass);\r\n\t\t\t}\r\n\t\t\ttest.setXmlClasses(classes);\r\n\t\t}\r\n\t\t\r\n\t\tsuites.add(suite);\r\n\t\t\r\n\t\t/**\r\n\t\t * Writing the TestNG.xml information to a file\r\n\t\t */\r\n\t\t FileWriter writer;\r\n\t\t File TestNGFile = new File(\"TestNG.xml\");\r\n\t\t if(TestNGFile.exists())\t\t\t\t\t\t// Delete TestNG if exists\r\n\t\t\t TestNGFile.delete();\r\n\t\t \r\n\t\t\twriter = new FileWriter(TestNGFile);\r\n\t\t\t writer.write(suite.toXml());\r\n\t\t writer.flush();\r\n\t\t writer.close();\r\n\t\t logger.info(\"TestNG file Generated Successfully\");\r\n\t\t\r\n\t\tTestNG tng = new TestNG();\r\n\t\ttng.setXmlSuites(suites);\r\n\t\ttng.run(); \r\n\t\t\r\n\t}",
"@Test\n\tpublic void testInit() {\n\t\t/*\n\t\t * This test is just use to initialize everything and ensure a better\n\t\t * performance measure for all the other tests.\n\t\t */\n\t}",
"public void run() {\n RandomizedContext current = RandomizedContext.current();\n try {\n current.push(c.randomness);\n runSingleTest(notifier, c);\n } catch (Throwable t) {\n Rethrow.rethrow(augmentStackTrace(t)); \n } finally {\n current.pop();\n }\n }",
"public void runAllUnits(String path){\n\t\t\n\t\tint tabCount = tabbedPane.getTabCount();\n\t\tfor (int i =0; i < tabCount; i++){\n\t\t\tString keyString = tabbedPane.getTitleAt(i);\n\t\t\tif(i == LOCAL_UNIT){\n\t\t\t\trunTest(path,i);\n\t\t\t}else{\n\t\t\t\tint key = Integer.parseInt(keyString.split(\" \")[2]);\n\t\t\t\trunTest(path,key);\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint size = 600_000_000;\n\t\tint[] mas = new int[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tmas[i] = i;\n\t\t}\n\n\t\t// positive test\n\t\tint target = size - 1;\n\n\t\tlong start = System.currentTimeMillis();\n\t\tlinearSearchTestPositive(mas, target, target);\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(end - start);\n\n\n\t\tlong start1 = System.currentTimeMillis();\n\t\tbinarySearchTestPositive(mas, target, target);\n\t\tlong end1 = System.currentTimeMillis();\n\t\tSystem.out.println(end1 - start1);\n\t}"
] | [
"0.8229652",
"0.7771012",
"0.7766003",
"0.7642776",
"0.7556224",
"0.75371814",
"0.7442942",
"0.71725714",
"0.7075512",
"0.70100886",
"0.69963914",
"0.6985636",
"0.69184",
"0.6900757",
"0.6898774",
"0.68489796",
"0.6814039",
"0.6790337",
"0.6760932",
"0.67316103",
"0.67163944",
"0.6682134",
"0.6680233",
"0.6676908",
"0.66550064",
"0.66358835",
"0.65879667",
"0.65762764",
"0.65688854",
"0.6562153",
"0.6522599",
"0.6518968",
"0.6516673",
"0.6511269",
"0.6509001",
"0.6507708",
"0.6507359",
"0.6482819",
"0.648074",
"0.64728326",
"0.6470007",
"0.64371705",
"0.64351386",
"0.6434233",
"0.6422761",
"0.64216286",
"0.64065003",
"0.64054567",
"0.6389225",
"0.63834053",
"0.6381271",
"0.6374302",
"0.63581055",
"0.6355252",
"0.63442194",
"0.6343332",
"0.6335762",
"0.6329555",
"0.63271946",
"0.631184",
"0.6311086",
"0.63109523",
"0.62999684",
"0.6296778",
"0.62961227",
"0.6272918",
"0.6272237",
"0.62558335",
"0.62553823",
"0.6255198",
"0.62539726",
"0.6253722",
"0.62534153",
"0.62443084",
"0.62415445",
"0.62278444",
"0.62228143",
"0.62088966",
"0.6203741",
"0.6198965",
"0.6195448",
"0.6191858",
"0.61879605",
"0.6175684",
"0.6166486",
"0.6165442",
"0.61613166",
"0.6140703",
"0.6140466",
"0.6133504",
"0.61270297",
"0.611879",
"0.61079526",
"0.60991365",
"0.60970336",
"0.60966134",
"0.60950667",
"0.60798246",
"0.607211"
] | 0.76320297 | 5 |
Bind the specified form property, which must be a backed by a java.util.List to a ListModel. What this does is ensure when items are added or removed to/from the list model, the property's list is also updated. Validation also occurs against the property when it changes, etc. Changes to the list managed by the list model are buffered before being committed to the underlying bean property. This prevents the domain object from having to worry about returning a nonnull List instance. | public ListModel createBoundListModel(String formProperty) {
ValueModel valueModel = formModel.getValueModel(formProperty);
if (valueModel == null) {
AspectAdapter adapter = new AspectAdapter(formModel
.getAspectAccessStrategy(), formProperty);
valueModel = new BufferedListValueModel(adapter);
formModel.add(formProperty, valueModel);
}
return (ListModel)valueModel.get();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\r\n public void testListValuedObjectPropertyBoundTo() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ListProperty listProperty = new SimpleListProperty();\r\n listProperty.bind(property);\r\n \r\n ChangeReport report = new ChangeReport(listProperty);\r\n property.set(createObservableList(true));\r\n assertEquals(\"supported: listProperty bound to listValued property fires change event\", \r\n 1, report.getEventCount());\r\n ListChangeReport lr = new ListChangeReport(listProperty);\r\n property.get().remove(0);\r\n assertEquals(1, lr.getEventCount());\r\n }",
"@Test\r\n public void testListPropertyBindingToListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> p1 = new SimpleListProperty<>(list);\r\n ListProperty<String> p2 = new SimpleListProperty<>(list);\r\n p2.bind(p1);\r\n assertSame(\"sanity, same list bidi-bound\", list, p2.get());\r\n ObservableList<String> other = createObservableList(true);\r\n ChangeReport report = new ChangeReport(p2);\r\n p1.set(other);\r\n assertEquals(\"RT-38770 - bind 2 ListProperties\", 1, report.getEventCount());\r\n }",
"@Test\r\n public void testListValuedObjectPropertyInvalidation() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n InvalidationReport report = new InvalidationReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"supported: list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }",
"public void bind(PropertyList pList) throws FOPException {\n }",
"@Test\r\n public void testListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> property = new SimpleListProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"listProperty must fire on not-same list\", 1, report.getEventCount());\r\n }",
"void setListProperty(Object name, List<Object> list) throws JMSException;",
"@Test\r\n public void testListPropertyBidiBindingToListProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> p1 = new SimpleListProperty<>(list);\r\n ListProperty<String> p2 = new SimpleListProperty<>(list);\r\n p2.bindBidirectional(p1);\r\n assertSame(\"sanity, same list bidi-bound\", list, p2.get());\r\n ObservableList<String> other = createObservableList(true);\r\n ChangeReport report = new ChangeReport(p2);\r\n p1.set(other);\r\n assertEquals(\"RT-38770 - bidi-binding between two ListProperties\", 1, report.getEventCount());\r\n }",
"@Test\r\n public void testListPropertyAdapterSetListOnObjectProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListProperty<String> listProperty = listProperty(objectProperty);\r\n ObservableList<String> otherList = createObservableList(true);\r\n otherList.remove(0);\r\n ChangeReport objectReport = new ChangeReport(objectProperty);\r\n ChangeReport report = new ChangeReport(listProperty);\r\n objectProperty.set(otherList);\r\n assertEquals(\"sanity: change event from objectProperty\", 1, objectReport.getEventCount());\r\n assertEquals(\"must fire change on setting list to objectProperty\", 1, report.getEventCount());\r\n }",
"public void addListProperty(final ConfigListDTO property) {\n \t\tlistProperties.put(property.getPropertyName(), property);\n \t}",
"@Test\r\n @ConditionalIgnore(condition = IgnoreEqualsNotFire.class)\r\n public void testListPropertySetEqualListListChangeEventAfter() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListProperty<String> listProperty = new SimpleListProperty<>();\r\n listProperty.bindBidirectional(objectProperty);\r\n ObservableList<String> otherList = createObservableList(true);\r\n objectProperty.set(otherList);\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n otherList.remove(0);\r\n assertEquals(\"Culprit is bidi-bound ObjectProperty \\n listProperty must fire list change after modification on new list\", \r\n 1, report.getEventCount());\r\n }",
"public Component buidListForm() throws BeanDAOException {\n\t\treturn new ListForm<BEAN, KEY>(this);\n\t}",
"@Test\r\n public void testListPropertyAdapterSetEqualListOnObjectProperty() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListProperty<String> listProperty = listProperty(objectProperty);\r\n ObservableList<String> otherList = createObservableList(true);\r\n ChangeReport report = new ChangeReport(listProperty);\r\n objectProperty.set(otherList);\r\n assertEquals(\"must fire change on setting list to objectProperty\", 1, report.getEventCount());\r\n }",
"public List toList() throws TemplateModelException {\n if (unwrappedList == null) {\n Class listClass = list.getClass();\n List result = null;\n try {\n result = (List) listClass.newInstance();\n } catch (Exception e) {\n throw new TemplateModelException(\"Error instantiating an object of type \" + listClass.getName() + \"\\n\" + e.getMessage());\n }\n BeansWrapper bw = BeansWrapper.getDefaultInstance();\n for (int i=0; i<list.size(); i++) {\n Object elem = list.get(i);\n if (elem instanceof TemplateModel) {\n elem = bw.unwrap((TemplateModel) elem);\n }\n result.add(elem);\n }\n unwrappedList = result;\n }\n return unwrappedList;\n }",
"public Builder setIsList(boolean value) {\n\n isList_ = value;\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }",
"public Builder setIsList(boolean value) {\n\n isList_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic <T> void setModelData(List<T> data) {\n\t\t\tmProperties = (List<PropertyItem>) data;\n\t\t\n\t}",
"private static BiFunction<String, Value<?>, PropertyFilter> requireList(final BiFunction<String, ListValue, PropertyFilter> target) {\n\t\treturn (property, value) -> {\n\t\t\tif (value instanceof ListValue) {\n\t\t\t\treturn target.apply(property, (ListValue)value);\n\t\t\t} else {\n\t\t\t\tthrow new IllegalArgumentException(\"Filter operation on '\" + property + \"' expected a list-type property\");\n\t\t\t\t// Alternatively, convert it?\n\t\t\t\t//return target.apply(property, ListValue.of(value));\n\t\t\t}\n\t\t};\n\t}",
"@Test\r\n public void testListPropertyAdapterSetEqualListListChangeEventAfter() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> objectProperty = new SimpleObjectProperty<>(list);\r\n ListProperty<String> listProperty = listProperty(objectProperty);\r\n ObservableList<String> otherList = createObservableList(true);\r\n objectProperty.set(otherList);\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n otherList.remove(0);\r\n assertEquals(\"must fire list change after modification on new list\", 1, report.getEventCount());\r\n }",
"public void setListProperty(List<Integer> t) {\n\n\t\t}",
"public Builder setList(edu.usfca.cs.dfs.StorageMessages.List value) {\n if (listBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n msg_ = value;\n onChanged();\n } else {\n listBuilder_.setMessage(value);\n }\n msgCase_ = 5;\n return this;\n }",
"public interface ListModel {\n\n /** \n * Returns the length of the list.\n * @return the length of the list\n */\n int getSize();\n\n /**\n * Returns the value at the specified index. \n * @param index the requested index\n * @return the value at <code>index</code>\n */\n Object getElementAt(int index);\n\n /**\n * Adds a listener to the list that's notified each time a change\n * to the data model occurs.\n * @param listener the <code>ListDataListener</code> to be added\n */ \n void addListDataListener(ListDataListener listener);\n\n /**\n * Removes a listener from the list that's notified each time a \n * change to the data model occurs.\n * @param listener the <code>ListDataListener</code> to be removed\n */ \n void removeListDataListener(ListDataListener listener);\n}",
"public Builder clearIsList() {\n bitField0_ = (bitField0_ & ~0x00000008);\n isList_ = false;\n onChanged();\n return this;\n }",
"public Builder clearIsList() {\n bitField0_ = (bitField0_ & ~0x00000004);\n isList_ = false;\n onChanged();\n return this;\n }",
"public boolean isList() {\n return m_item.getSchemaComponent().type() == SchemaBase.LIST_TYPE;\n }",
"public void setEditList(List<StepModel> stepList){\n //Guardamos el tamaña de la lista a modificar\n int prevSize = this.stepModelList.size();\n //Limpiamos la lista\n this.stepModelList.clear();\n //Si la lista que me pasan por parámtro es nula, la inicializo a vacia\n if(stepList == null) stepList = new ArrayList<>();\n //Añado la lista que me pasan por parámetro a la lista vaciada\n this.stepModelList.addAll(stepList);\n //Notifico al adaptador que el rango de item se ha eliminado\n notifyItemRangeRemoved(0, prevSize);\n //Notifico que se ha insertado un nuevo rango de items\n notifyItemRangeInserted(0, stepList.size());\n }",
"private static boolean isListProperty(String prop) {\n prop = prop.intern();\n for (int i = 0; i < listProperties.length; i++) {\n if (prop == listProperties[i]) {\n return true;\n }\n }\n return false;\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"public DefinedListField addDefinedListField(final String key) {\n String label = key;\n DefinedListField listField = new DefinedListField(getComposite(), _form, key, label, false);\n listField.adapt(_formToolkit);\n _form.mapField(key, listField);\n return listField;\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"@java.lang.Override\n public boolean getIsList() {\n return isList_;\n }",
"public void setBeanListarParametro(BeanListarParametro beanListarParametro);",
"@Test\r\n @ConditionalIgnore(condition = IgnoreEqualsNotFire.class)\r\n public void testListValuedObjectPropertyChange() {\r\n ObservableList<String> list = createObservableList(true);\r\n ObjectProperty<ObservableList<String>> property = new SimpleObjectProperty<>(list);\r\n ChangeReport report = new ChangeReport(property);\r\n property.set(createObservableList(true));\r\n assertEquals(\"not supported: \\n list-valued objectProperty must fire on not-same list\", \r\n 1, report.getEventCount());\r\n }",
"@Override\n\t\tprotected void revalidate() {\n\t\t\tif (valid) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvalid = true;\n\t\t\tmissing = false;\n\t\t\tmalformed = false;\n\n\t\t\tString s = getValueAsString();\n\t\t\tif (s == null) {\n\t\t\t\tmissing = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tListBuilder builder = new ListBuilder(this);\n\n\t\t\t\tdoParse(s, builder);\n\n\t\t\t\tif (builder.getList() != null) {\n\t\t\t\t\tclear(itemList);\n\t\t\t\t}\n\t\t\t\titemList = builder.getList();\n\t\t\t} catch (ParseException e) {\n\t\t\t\titemList = new ArrayList<>(1);\n\t\t\t\tmalformed = true;\n\t\t\t}\n\t\t}",
"public static void updateList(Patient p) {\r\n \t\tpatientArray.add(p);\r\n \t\tlistModel.addElement(p.getFirstName());\r\n \t}",
"@Test\n public void testSetListItems() {\n System.out.println(\"setListItems\");\n List listItems = null;\n DataModel instance = new DataModel();\n instance.setListItems(listItems);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"protected abstract void setValue(JList<?> list, T value, int index, boolean isSelected, boolean cellHasFocus);",
"public void setList(DOCKSList param) {\r\n localListTracker = param != null;\r\n\r\n this.localList = param;\r\n }",
"private void fillList(JList aListComponent,ArrayList<String> theList) {\n DefaultListModel itsModel = new DefaultListModel();\n aListComponent.setModel(itsModel);\n for(String anItem : theList){\n itsModel.addElement(anItem);\n }\n aListComponent.setModel(itsModel);\n }",
"private void syncListFormPage() {\n\t\tif (_listForm != null && _listForm.getDataTable() != null) {\r\n\t\t\tDataStoreBuffer listFormDs = _listForm.getDataStore();\r\n\t\t\tJspDataTable listFormDataTable = _listForm.getDataTable();\r\n\t\t\tif (listFormDs != null && listFormDataTable != null) {\r\n\t\t\t\tif (listFormDs.getRow() != -1) {\r\n\t\t\t\t\tif (!listFormDataTable.isRowOnPage(listFormDs.getRow())) {\r\n\t\t\t\t\t\tlistFormDataTable.setPage(listFormDataTable.getPage(listFormDs.getRow()));\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 Builder addList(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListIsMutable();\n list_.add(value);\n onChanged();\n return this;\n }",
"public Builder setList(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureListIsMutable();\n list_.set(index, value);\n onChanged();\n return this;\n }",
"public void setList(DefaultListModel listModel) {\n // setting the model returns an NullPointerException that can be ignored\n try {\n recipeList.setModel(listModel);\n } catch (NullPointerException e) {\n // Do nothing\n }\n recipeList.setSelectedIndex(0);\n showSelectedRecipe();\n }",
"public DList2 list(){\r\n return this.list;\r\n }",
"public void setCommentsList(EList newValue);",
"public void setCommentsList(EList newValue);",
"public static boolean ObjectPropertyList(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"ObjectPropertyList\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, OBJECT_PROPERTY_LIST, \"<object property list>\");\n r = ObjectProperty(b, l + 1);\n r = r && ObjectPropertyList_1(b, l + 1);\n r = r && ObjectPropertyList_2(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"public final void entryRuleListValue() throws RecognitionException {\n try {\n // InternalBrowser.g:529:1: ( ruleListValue EOF )\n // InternalBrowser.g:530:1: ruleListValue EOF\n {\n before(grammarAccess.getListValueRule()); \n pushFollow(FOLLOW_1);\n ruleListValue();\n\n state._fsp--;\n\n after(grammarAccess.getListValueRule()); \n match(input,EOF,FOLLOW_2); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }",
"public com.google.protobuf.ProtocolStringList\n getListList() {\n return list_.getUnmodifiableView();\n }",
"public void setListItems(List<String> lit) { mItems = lit; }",
"protected PropertyList createPropertyList(PropertyList parent, \n FOEventHandler foEventHandler) throws FOPException {\n return foEventHandler.getPropertyListMaker().make(this, parent);\n }",
"@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToNull() {\r\n ListProperty listProperty = new SimpleListProperty();\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }",
"public DefaultListModel getListModel() {\n\t\treturn this.listModel;\r\n\t}",
"Rule ListType() {\n // Push 1 ListTypeNode onto the value stack\n return Sequence(\n \"list \",\n \"<\",\n FieldType(),\n \"> \",\n Optional(CppType()),\n actions.pushListTypeNode());\n }",
"final List internalGetChildListProperty(ChildListPropertyDescriptor property) {\n if (property == TYPE_ARGUMENTS_PROPERTY) {\n return typeArguments();\n }\n // allow default implementation to flag the error\n return super.internalGetChildListProperty(property);\n }",
"public void updateJList() {\n list.setModel(toListModel(auctionItemList));\n }",
"public MutiList() {\n\t\tsuper();\n\t\tthis.myList = new ArrayList<>();\n\t}",
"public void setPropertyValidValues(List<PropertyValidValue> propertyValidValues)\r\n\t{\r\n\t\tthis.propertyValidValues = propertyValidValues;\r\n\t}",
"protected void assertListPropertyBidiBinding(boolean withData) {\r\n ObservableList<String> initialValue = createObservableList(withData);\r\n ListProperty<String> target = new SimpleListProperty<>(initialValue);\r\n ObservableList<String> sourceValue = createObservableList(withData);\r\n ListProperty<String> source = new SimpleListProperty<>(sourceValue);\r\n ChangeReport targetReport = new ChangeReport(target);\r\n\r\n target.bindBidirectional(source);\r\n \r\n assertSame(\"bidi binding updates\", target.get(), source.get());\r\n assertSame(\"property is target of bidi\", sourceValue, target.get());\r\n assertSame(\"other is unchanged\", sourceValue, source.get());\r\n // this passes: listeners on target are notified installing the bidibinding\r\n assertEquals(\"change listener on property must be notified\", 1, targetReport.getEventCount());\r\n \r\n targetReport.clear();\r\n ChangeReport sourceReport = new ChangeReport(source);\r\n ObservableList<String> thirdValue = createObservableList(withData);\r\n source.set(thirdValue);\r\n assertSame(\"source value taken\", thirdValue, source.get());\r\n // was meant as sanity testing .. but the bidibinding prevents\r\n // the notification that is just fine if unbound ... see test above\r\n // assertEquals(\"sanity: source listener notified\", 1, sourceReport.getEventCount());\r\n assertSame(\"property must be updated to new value of other\", thirdValue, target.get());\r\n // this fails: listeners on target are not notified after updating the source of the bidibinding \r\n assertEquals(\"change listener on property must be notified\", 1, targetReport.getEventCount());\r\n }",
"public void setNameValueProperty(List<NameValueProperty> nameValueProperty) {\n\t\tthis.nameValuePropertyList = nameValueProperty;\n\t}",
"private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}",
"ProductPropertyExecution addProductPropertyList(List<PropertyValue> propertyValueList,PPManage ppManage);",
"public PropertyListManager(TLPropertyOwner owner) {\n super( owner, ModelEventType.PROPERTY_ADDED, ModelEventType.PROPERTY_REMOVED );\n }",
"public void setListFormName(String name) {\r\n\t\t_listFormName = name;\r\n\t}",
"@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeOnSetEmptyToEmpty() {\r\n ListProperty listProperty = new SimpleListProperty(createObservableList(false));\r\n ListChangeReport report = new ListChangeReport(listProperty);\r\n listProperty.set(createObservableList(false));\r\n Change c = report.getLastChange();\r\n while(c.next()) {\r\n boolean type = c.wasAdded() || c.wasRemoved() || c.wasPermutated() || c.wasUpdated();\r\n assertTrue(\"at least one of the change types must be true\", type);\r\n }\r\n }",
"DefaultListModel<E> getListModel();",
"final List internalGetChildListProperty(ChildListPropertyDescriptor property) {\r\n\t\tif (property == NEW_ARGUMENTS_PROPERTY) {\r\n\t\t\treturn newArguments();\r\n\t\t}\r\n\t\tif (property == CONSTRUCTOR_ARGUMENTS_PROPERTY) {\r\n\t\t\treturn constructorArguments();\r\n\t\t}\r\n\t\tif (property == BASE_CLASSES_PROPERTY) {\r\n\t\t\treturn baseClasses();\r\n\t\t}\r\n\t\tif (property == DECLARATIONS_PROPERTY) {\r\n\t\t\treturn declarations();\r\n\t\t}\r\n\t\t// allow default implementation to flag the error\r\n\t\treturn super.internalGetChildListProperty(property);\r\n\t}",
"@Test\r\n @ConditionalIgnore(condition = IgnoreReported.class)\r\n public void testListPropertyChangeNotificationOnRemoveItem() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> listProperty = new SimpleListProperty<>(list);\r\n ChangeReport report = new ChangeReport(listProperty);\r\n list.remove(0);\r\n assertSame(\"sanity: value didn't change\", list, listProperty.get());\r\n assertEquals(\"RT-38828: listProperty must not fire changeEvent on removing item\", \r\n 0, report.getEventCount());\r\n }",
"@Override\r\n\tpublic void updateShoppingList(ShoppingList sl) throws IllegalArgumentException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tshoppingListMapper.update(sl);\r\n\t}",
"private com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.List, edu.usfca.cs.dfs.StorageMessages.List.Builder, edu.usfca.cs.dfs.StorageMessages.ListOrBuilder> \n getListFieldBuilder() {\n if (listBuilder_ == null) {\n if (!(msgCase_ == 5)) {\n msg_ = edu.usfca.cs.dfs.StorageMessages.List.getDefaultInstance();\n }\n listBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n edu.usfca.cs.dfs.StorageMessages.List, edu.usfca.cs.dfs.StorageMessages.List.Builder, edu.usfca.cs.dfs.StorageMessages.ListOrBuilder>(\n (edu.usfca.cs.dfs.StorageMessages.List) msg_,\n getParentForChildren(),\n isClean());\n msg_ = null;\n }\n msgCase_ = 5;\n onChanged();;\n return listBuilder_;\n }",
"public static <T, U> List<?> copyListOfProperties(List<T> list, U u) {\n\t\tType listType = new TypeToken<List<U>>() {\n\t\t}.getType();\n\t\treturn modelMapper.map(list, listType);\n\t}",
"@Test @Ignore\r\n public void testListPropertyNotificationDetails() {\r\n ObservableList<String> list = createObservableList(true);\r\n ListProperty<String> lp = new SimpleListProperty<>(list);\r\n ListChangeListener l = c -> FXUtils.prettyPrint(c);\r\n LOG.info(\"change from listProperty: modifying list\");\r\n lp.addListener(l);\r\n LOG.info(\"set same element\");\r\n list.set(0, list.get(0));\r\n LOG.info(\"set same list\");\r\n list.setAll(createObservableList(true));\r\n // fires one event with two changes\r\n LOG.info(\"remove two not subsequent\");\r\n list.removeAll(list.get(1), list.get(5)); \r\n LOG.info(\"retain all with complete list\");\r\n // fires nothing \r\n list.retainAll(createObservableList(true));\r\n LOG.info(\"setAll to initial\");\r\n list.setAll(createObservableList(true));\r\n // fires one event with 3 changes of type remove\r\n list.retainAll(list.get(0), list.get(3), list.get(7));\r\n LOG.info(\"setall with new list\");\r\n list.setAll(\"one\", \"twoorwhat\");\r\n // fires one replaced event for each element \r\n UnaryOperator<String> op = p -> {\r\n if (p.length() > 3) return p;\r\n return p + 3;\r\n }; \r\n list.replaceAll(op); \r\n // fires setAll\r\n FXCollections.replaceAll(list, \"one\", \"other\");\r\n list.removeAll(\"one\", \"two\");\r\n LOG.info(\"reset ListProperty to initial list\");\r\n lp.set(createObservableList(true));\r\n }",
"public void setListName(java.lang.String listName) {\r\n this.listName = listName;\r\n }",
"public void add(List list) throws PropException {\n if (!contains(list.obtainTitle())) lists.put(list.obtainTitle(), list);\n else throw new PropException(ErrorString.EXISTING_LIST);\n }",
"public Builder mergeList(edu.usfca.cs.dfs.StorageMessages.List value) {\n if (listBuilder_ == null) {\n if (msgCase_ == 5 &&\n msg_ != edu.usfca.cs.dfs.StorageMessages.List.getDefaultInstance()) {\n msg_ = edu.usfca.cs.dfs.StorageMessages.List.newBuilder((edu.usfca.cs.dfs.StorageMessages.List) msg_)\n .mergeFrom(value).buildPartial();\n } else {\n msg_ = value;\n }\n onChanged();\n } else {\n if (msgCase_ == 5) {\n listBuilder_.mergeFrom(value);\n }\n listBuilder_.setMessage(value);\n }\n msgCase_ = 5;\n return this;\n }",
"protected static ParameterDef createListParameter(final String param) {\n return new ParameterDef(new Variable(param), ParameterType.LIST);\n }",
"ObservableList<T> getReadOnlyList();",
"PropertyArray put(Object value) {\n PropertyObject.testValidity(value);\n this.myArrayList.add(value);\n return this;\n }",
"public static MemberListBinding listBind(Member member, ElementInit[] elementInits) { throw Extensions.todo(); }",
"public void updateList(List<T> ListObject) throws DaoException;",
"public void setRoomList(ArrayList<RoomList> RoomList) {\r\n this.RoomList = RoomList;\r\n }",
"@Test\r\n public void testListPropertyNotificationSingleListener() {\r\n ObservableList<String> initialValue = createObservableList(false);\r\n ListProperty<String> property = new SimpleListProperty<>(initialValue);\r\n ChangeReport report = new ChangeReport(property);\r\n ObservableList<String> otherValue = createObservableList(false);\r\n assertTrue(\"sanity: FXCollections returns a new instance\", otherValue != initialValue);\r\n property.set(otherValue);\r\n assertEquals(1, report.getEventCount());\r\n assertSame(initialValue, report.getLastOldValue());\r\n assertSame(otherValue, report.getLastNewValue());\r\n }",
"public void setList(ArrayList<CounterModel> list) {\n\t\tthis.list = list;\n\t}",
"private PropertyValues handleListType(String path,MutablePropertyValues values,Object data,Method method,int level){\n\t\t\n\t\tClass<?> eleType=GenericCollectionTypeResolver.getCollectionReturnType(method,level);\n\t\tif(null==eleType){\n\t\t\treturn values;\n\t\t}\n\t\tif(data instanceof List<?>){\n\t\t\tList<?> dataList=(List<?>) data;\n\t\t\tfor(int i=0;i<dataList.size();i++){\n\t\t\t Object element=dataList.get(i);\n\t\t\t String subPath=path+PropertyAccessor.PROPERTY_KEY_PREFIX+i+PropertyAccessor.PROPERTY_KEY_SUFFIX;\n\t\t\t values.addPropertyValues(resolve(subPath,element,eleType,method,level+1));\n\t\t\t}\n\t\t}\n\t\treturn values;\n\t}",
"private void updateViewModelValidatorSupports()\n {\n if (myValidator == null)\n {\n return;\n }\n Conditional cond = myOperator.get();\n if (cond == Conditional.IN_LIST || cond == Conditional.NOT_IN_LIST || cond == Conditional.LIKE_LIST\n || cond == Conditional.NOT_LIKE_LIST)\n {\n myCriterionValue.setValidatorSupport(new TextModelListValidatorSupport(myCriterionValue, myValidator));\n myCriterionMaxValue.setValidatorSupport(new TextModelListValidatorSupport(myCriterionMaxValue, myValidator));\n }\n else\n {\n myCriterionValue.setValidatorSupport(new ObservableValueValidatorSupport<>(myCriterionValue, myValidator));\n myCriterionMaxValue.setValidatorSupport(new ObservableValueValidatorSupport<>(myCriterionMaxValue, myValidator));\n }\n }",
"@Override\n\tpublic void updateDataListVO(List<StudentDTO> dataList) {\n\t\t\n\t}",
"public void setListData(List<MessageListItem> listData) {\n if (DEBUG) Timber.v(\"setListData, Size: %s\", listData == null ? \"null\" : listData.size());\n this.listData = listData;\n notifyDataSetChanged();\n }",
"public com.google.protobuf.ProtocolStringList\n getListList() {\n return list_;\n }",
"Form setElementValue(String elementId, List<String> value);",
"@Test\r\n public void testAPIChange() {\r\n WithListValue<String> p = new WithListValue<>();\r\n Property<ObservableList<String>> property = p.itemsProperty();\r\n ChangeListener<? super ObservableList<String>> listener = new ChangeListener<ObservableList<String>>() {\r\n\r\n @Override\r\n public void changed(\r\n ObservableValue<? extends ObservableList<String>> observable,\r\n ObservableList<String> oldValue,\r\n ObservableList<String> newValue) {\r\n LOG.info(\"dummy dooo!\");\r\n \r\n }\r\n } ;\r\n \r\n property.addListener(listener);\r\n// ListProperty items = table.itemsProperty();\r\n }",
"private ArrayList<String> createList(JList aListComponent) {\n ArrayList<String> aList = new ArrayList<>();\n if (aListComponent.getModel().getSize() > 0) {\n for (int i=0; i < aListComponent.getModel().getSize();i++) {\n aList.add(aListComponent.getModel().getElementAt(i).toString());\n }\n }\n return aList;\n }",
"public void setBinding(final DCPList value) {\n this.binding = value;\n }",
"public void doAdd() {\r\n\t\tif (_mode == MODE_LIST_ON_PAGE && _listForm != null) {\r\n\t\t\tDataStoreBuffer listDs = _listForm.getDataStore();\r\n\t\t\tDataStoreBuffer ds = getDataStore();\r\n\t\t\tif (listDs == ds && ds != null) {\r\n\t\t\t\t//same datastore on list and detail\r\n\t\t\t\tif (ds.getRowCount() > 0 && (ds.getRowStatus() == DataStoreBuffer.STATUS_NEW))\r\n\t\t\t\t\treturn;\r\n\r\n if (ds.getRowStatus() == DataStoreBuffer.STATUS_NEW_MODIFIED) ds.deleteRow();\r\n if (isDataModified()) undoChanges();\r\n\r\n\t\t\t\tds.insertRow();\r\n\t\t\t\tif (_listForm.getDataTable() != null) {\r\n\t\t\t\t\tJspDataTable tab = _listForm.getDataTable();\r\n\t\t\t\t\tif (!tab.isRowOnPage(ds.getRowCount() - 1))\r\n\t\t\t\t\t\ttab.setPage(tab.getPage(ds.getRowCount() - 1));\r\n\t\t\t\t}\r\n\t\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\t\tif (comp != null)\r\n\t\t\t\t\tcomp.setFocus();\r\n\t\t\t\tscrollToMe();\r\n\r\n\t\t\t} else if (_ds != null) {\r\n\t\t\t\t//different datastores on list and detail\r\n\t\t\t\tif (listDs != null)\r\n\t\t\t\t\tlistDs.clearSelectedRow();\r\n\t\t\t\t_listSelectedRow = null;\r\n\t\t\t\t_ds.reset();\r\n\t\t\t\t_ds.insertRow();\r\n\t\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\t\tif (comp != null)\r\n\t\t\t\t\tcomp.setFocus();\r\n\t\t\t\tscrollToMe();\r\n\t\t\t}\r\n\t\t\tsetVisible(true);\r\n\t\t} else {\r\n\t\t\t_listSelectedRow = null;\r\n\t\t\t_ds.reset();\r\n\t\t\t_ds.insertRow();\r\n\t\t\tHtmlFormComponent comp = findFirstFormComponent(this);\r\n\t\t\tif (comp != null)\r\n\t\t\t\tcomp.setFocus();\r\n\t\t\tscrollToMe();\r\n\t\t}\r\n\t}",
"public boolean isList();",
"public boolean isList();",
"public OrderedListField addOrderedListField(final Property property, final Object[] options) {\n return addOrderedListField(property.getKey(), options);\n }",
"private Collection getFieldsValidationList ()\n\t{\n\t\tArrayList list = new ArrayList();\n\t\tModel model = getModel();\n\t\tString className = getClassName();\n\t\tPersistenceClassElement persistenceClass = \n\t\t\tgetPersistenceClass(className);\n\n\t\tif (persistenceClass != null)\n\t\t{\n\t\t\tPersistenceFieldElement[] fields = persistenceClass.getFields();\n\t\t\tint i, count = ((fields != null) ? fields.length : 0);\n\t\t\tIterator iterator = \n\t\t\t\tgetMappingClass(className).getFields().iterator();\n\n\t\t\tfor (i = 0; i < count; i++)\n\t\t\t{\n\t\t\t\tPersistenceFieldElement field = fields[i];\n\n\t\t\t\tlist.add(createFieldExistenceComponent(field));\n\n\t\t\t\t// even though this is really the validation step, we \n\t\t\t\t// only want to add the others if the field exists\n\t\t\t\tif (model.hasField(className, field.getName()))\n\t\t\t\t{\n\t\t\t\t\tlist.add(createFieldPersistenceComponent(field));\n\t\t\t\t\tlist.add(createFieldPersistenceTypeComponent(field));\n\t\t\t\t\tlist.add(createFieldConsistencyComponent(field));\n\n\t\t\t\t\tif (isLegalRelationship(field))\n\t\t\t\t\t{\n\t\t\t\t\t\tRelationshipElement rel = (RelationshipElement)field;\n\n\t\t\t\t\t\t/* user modifiable collection class not yet supported\n\t\t\t\t\t\tlist.add(createCollectionClassComponent(rel));*/\n\t\t\t\t\t\tlist.add(createElementClassComponent(rel));\n\t\t\t\t\t\tlist.add(createRelatedClassMatchesComponent(rel));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\twhile (iterator.hasNext())\n\t\t\t{\n\t\t\t\tMappingFieldElement field = \n\t\t\t\t\t(MappingFieldElement)iterator.next();\n\t\t\t\tString fieldName = field.getName();\n\n\t\t\t\t// only check this if it is not in the jdo model\n\t\t\t\tif (persistenceClass.getField(fieldName) == null)\n\t\t\t\t{\n\t\t\t\t\tlist.add(createFieldExistenceComponent(field));\n\n\t\t\t\t\t// even though this is really the validation step, we \n\t\t\t\t\t// only want to add the others if the field exists\n\t\t\t\t\tif (model.hasField(className, fieldName))\n\t\t\t\t\t\tlist.add(createFieldConsistencyComponent(field));\n\t\t\t\t}\n\n\t\t\t\tif (!isRelationship(field))\n\t\t\t\t\tlist.add(createColumnOverlapComponent(field));\n\n\t\t\t\t// preliminary fix for CR6239630\n\t\t\t\tif (Boolean.getBoolean(\"AllowManagedFieldsInDefaultFetchGroup\")) // NOI18N\n\t\t \t\t{\n // Do nothing - AllowManagedFieldsInDefaultFetchGroup: \n // disabled single model validation test; \n // may use checked read/write access to managed fields\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tlist.add(createFieldDefaultFetchGroupComponent(field));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn list;\n\t}",
"protected abstract IList _listValue(IScope scope, IType contentsType, boolean cast);",
"public Builder addFriendList(People value) {\n copyOnWrite();\n instance.addFriendList(value);\n return this;\n }",
"public void setItems(List<T> value) {\n getElement().setItems(SerDes.mirror(value).cast());\n }"
] | [
"0.66086304",
"0.64999974",
"0.5907586",
"0.5847482",
"0.5795278",
"0.57348895",
"0.5679898",
"0.5608013",
"0.55701494",
"0.53492683",
"0.5264794",
"0.52398175",
"0.5239051",
"0.5192799",
"0.5181253",
"0.51530254",
"0.5146897",
"0.5140442",
"0.5121049",
"0.51029164",
"0.506695",
"0.5054116",
"0.50470495",
"0.50128657",
"0.49814352",
"0.4978398",
"0.49629742",
"0.49629742",
"0.49562833",
"0.49529132",
"0.49529132",
"0.49494424",
"0.4940795",
"0.49334136",
"0.49285728",
"0.49259266",
"0.49099928",
"0.49036857",
"0.48685086",
"0.48638812",
"0.48594496",
"0.48488057",
"0.48366454",
"0.48018676",
"0.47966677",
"0.47966677",
"0.47935876",
"0.47610107",
"0.47538722",
"0.47505355",
"0.47431755",
"0.47411162",
"0.47333077",
"0.470725",
"0.47024637",
"0.46953714",
"0.46870974",
"0.466677",
"0.46621934",
"0.46617234",
"0.46599534",
"0.46451735",
"0.46319675",
"0.46272853",
"0.4621765",
"0.46179974",
"0.45970824",
"0.45961815",
"0.45737064",
"0.4573321",
"0.45694408",
"0.45612773",
"0.45580447",
"0.45577732",
"0.45525184",
"0.45490304",
"0.45445585",
"0.45315605",
"0.45285273",
"0.45111263",
"0.45107326",
"0.4502958",
"0.4501687",
"0.45016474",
"0.4497766",
"0.44971883",
"0.44968197",
"0.44895023",
"0.44698378",
"0.44696212",
"0.44680706",
"0.44673553",
"0.4461488",
"0.44554308",
"0.44554308",
"0.44521877",
"0.4451518",
"0.44480786",
"0.4435866",
"0.4433545"
] | 0.7650674 | 0 |
The Factory for the model. It provides a create method for each nonabstract class of the model. | public interface ReactNativeFactory extends EFactory {
/**
* The singleton instance of the factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
ReactNativeFactory eINSTANCE = reactNative.impl.ReactNativeFactoryImpl.init();
/**
* Returns a new object of class '<em>View</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>View</em>'.
* @generated
*/
View createView();
/**
* Returns a new object of class '<em>Text</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Text</em>'.
* @generated
*/
Text createText();
/**
* Returns a new object of class '<em>Flat List</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Flat List</em>'.
* @generated
*/
FlatList createFlatList();
/**
* Returns a new object of class '<em>Component</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Component</em>'.
* @generated
*/
Component createComponent();
/**
* Returns a new object of class '<em>Projeto RN</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Projeto RN</em>'.
* @generated
*/
ProjetoRN createProjetoRN();
/**
* Returns a new object of class '<em>Image</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Image</em>'.
* @generated
*/
Image createImage();
/**
* Returns a new object of class '<em>Touchable Opacity</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Touchable Opacity</em>'.
* @generated
*/
TouchableOpacity createTouchableOpacity();
/**
* Returns a new object of class '<em>Icon</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Icon</em>'.
* @generated
*/
Icon createIcon();
/**
* Returns a new object of class '<em>Button</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Button</em>'.
* @generated
*/
Button createButton();
/**
* Returns a new object of class '<em>Style Sheet</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Style Sheet</em>'.
* @generated
*/
StyleSheet createStyleSheet();
/**
* Returns a new object of class '<em>Flex Box</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Flex Box</em>'.
* @generated
*/
FlexBox createFlexBox();
/**
* Returns a new object of class '<em>Font</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Font</em>'.
* @generated
*/
Font createFont();
/**
* Returns a new object of class '<em>Section List</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Section List</em>'.
* @generated
*/
SectionList createSectionList();
/**
* Returns a new object of class '<em>Margin</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Margin</em>'.
* @generated
*/
Margin createMargin();
/**
* Returns a new object of class '<em>Array</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Array</em>'.
* @generated
*/
Array createArray();
/**
* Returns a new object of class '<em>Element Text</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Element Text</em>'.
* @generated
*/
ElementText createElementText();
/**
* Returns a new object of class '<em>Element Image</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Element Image</em>'.
* @generated
*/
ElementImage createElementImage();
/**
* Returns a new object of class '<em>Object Element</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Object Element</em>'.
* @generated
*/
ObjectElement createObjectElement();
/**
* Returns a new object of class '<em>Border</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Border</em>'.
* @generated
*/
Border createBorder();
/**
* Returns a new object of class '<em>Padding</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return a new object of class '<em>Padding</em>'.
* @generated
*/
Padding createPadding();
/**
* Returns the package supported by this factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
ReactNativePackage getReactNativePackage();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"TestModelFactory getTestModelFactory();",
"public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public SqliteModelFactoryImpl()\n {\n super();\n }",
"public PetrinetmodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"ModelsFactory getModelsFactory();",
"public ParsedmodelFactoryImpl() {\n\t\tsuper();\n\t}",
"protected abstract IModel<T> createModel(T object);",
"public interface ConfigModelFactory\n{\n\t/**\n\t * Create an instance of the <code>ConfigModel</code>\n\t *\n\t * @return an instance of the configuration model\n\t */\n\tConfigModel createInstanceOfConfigModel();\n\n\t/**\n\t * Create an instance of the <code>InstanceModel</code>\n\t *\n\t * @return an instance of the instance model\n\t */\n\tInstanceModel createInstanceOfInstanceModel();\n\n\t/**\n\t * Create an instance of the <code>CsticModel</code>\n\t *\n\t * @return an instance of the characteristic model\n\t */\n\tCsticModel createInstanceOfCsticModel();\n\n\t/**\n\t * Create an instance of the <code>CsticValueModel</code>\n\t *\n\t * @param valueType\n\t * The containing Cstic value type\n\t * @return an instance of the characteristic value model\n\t */\n\tCsticValueModel createInstanceOfCsticValueModel(int valueType);\n\n\t/**\n\t * Create an instance of the <code>CsticGroupModel</code>\n\t *\n\t * @return an instance of the characteristic group model\n\t */\n\tCsticGroupModel createInstanceOfCsticGroupModel();\n\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel createInstanceOfPriceModel();\n\n\t/**\n\t * Create an instance of the <code>SolvableConflictModel</code>\n\t *\n\t * @return an instance of the Solvable Conflict Model\n\t */\n\tSolvableConflictModel createInstanceOfSolvableConflictModel();\n\n\t/**\n\t * Create an instance of the <code>ConflictingAssumptionModel</code>\n\t *\n\t * @return an instance of the Conflicting Assumption Model\n\t */\n\tConflictingAssumptionModel createInstanceOfConflictingAssumptionModel();\n\n\t/**\n\t * Create an instance of the <code>PriceModel</code>\n\t *\n\t * @return an instance of the price model\n\t */\n\tPriceModel getZeroPriceModel();\n\n\t/**\n\t * Create an instance of the <code>PriceSummaryModel</code>\n\t *\n\t * @return an instance of the price summary model\n\t */\n\tPriceSummaryModel createInstanceOfPriceSummaryModel();\n\n\t/**\n\t * @return a builder to construct {@link ProductConfigMessage} objects\n\t */\n\tdefault ProductConfigMessageBuilder createProductConfigMessageBuilder()\n\t{\n\t\treturn new ProductConfigMessageBuilder();\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t * uses the <code>DEFAULT</code> ProductConfigMessageSourceSubType\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tdefault ProductConfigMessage createInstanceOfProductConfigMessage(final String message, final String key,\n\t\t\tfinal ProductConfigMessageSeverity severity, final ProductConfigMessageSource source)\n\t{\n\t\treturn createInstanceOfProductConfigMessage(message, key, severity, source, ProductConfigMessageSourceSubType.DEFAULT);\n\t}\n\n\t/**\n\t * Create an instance of the <code>ProductConfigMessage</code><br>\n\t *\n\t * @param message\n\t * localized message\n\t * @param key\n\t * message key, should be unique together with message source\n\t * @param severity\n\t * message severity\n\t * @param source\n\t * message source, should be unique together with message key\n\t * @param subType\n\t * optional sub type of the message source\n\t * @return a message instance\n\t * @deprecated since 18.08.0 - use {@link ProductConfigMessageBuilder} instead\n\t */\n\t@Deprecated(since = \"1808\", forRemoval=true)\n\tProductConfigMessage createInstanceOfProductConfigMessage(String message, String key, ProductConfigMessageSeverity severity,\n\t\t\tProductConfigMessageSource source, ProductConfigMessageSourceSubType subType);\n\n\n\t/**\n\t * Create an instance of the <code>VariantConditionModel</code>\n\t *\n\t * @return an instance of the variant condition model\n\t */\n\tVariantConditionModel createInstanceOfVariantConditionModel();\n\n\t/**\n\t * @return class name of the {@link PriceSummaryModel} implementation\n\t */\n\tString getTargetClassNamePriceSummaryModel();\n\n\n\t/**\n\t * @return class name of the {@link PriceModel} implementation\n\t */\n\tString getTargetClassNamePriceModel();\n\n\t/**\n\t * @return class name of the {@link CsticGroupModel} implementation\n\t */\n\tString getTargetClassNameCsticGroupModel();\n\n\t/**\n\t * @return class name of the {@link CsticValueModel} implementation\n\t */\n\tString getTargetClassNameCsticValueModel();\n\n\t/**\n\t * @return class name of the {@link CsticModel} implementation\n\t */\n\tString getTargetClassNameCsticModel();\n\n\t/**\n\t * @return class name of the {@link InstanceModel} implementation\n\t */\n\tString getTargetClassNameInstanceModel();\n\n\t/**\n\t * @return class name of the {@link ConfigModel} implementation\n\t */\n\tString getTargetClassNameConfigModel();\n\n\t/**\n\t * @return class name of the {@link SolvableConflictModel} implementation\n\t */\n\tString getTargetClassNameSolvableConflictModel();\n\n\t/**\n\t * @return class name of the {@link ConflictingAssumptionModel} implementation\n\t */\n\tString getTargetClassNameConflictingAssumptionModel();\n\n\t/**\n\t * @return class name of the {@link VariantConditionModel} implementation\n\t */\n\tString getTargetClassNameVariantConditionModel();\n}",
"@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}",
"public Factory() {\n\t\tsuper();\n\t}",
"public interface ModelFactory <ModelObject> {\n public void createElement(ModelObject object);\n}",
"EisModel createEisModel();",
"BehaviouralModelFactory getBehaviouralModelFactory();",
"CsticModel createInstanceOfCsticModel();",
"public abstract void create();",
"InstanceModel createInstanceOfInstanceModel();",
"public M create(P model);",
"void create(Model model) throws Exception;",
"public void create(){}",
"public static MusicModel createModel() {\n return new MusicModelImpl();\n }",
"public interface AbstractFactory {\n /**\n * Create cpu cpu.\n *\n * @return the cpu\n */\n Cpu createCpu();\n\n /**\n * Create main board main board.\n *\n * @return the main board\n */\n MainBoard createMainBoard();\n}",
"public Model createBaseModel() {\n return ModelFactory.createDefaultModel();\n }",
"public interface AbstractFactory<T> {\n /**\n * Create a new Object of type T\n * @return the created object\n */\n T create();\n}",
"private ConcreteFactory() {}",
"DataModel createDataModel();",
"public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"public interface Factory<T> {\n T create();\n}",
"T create();",
"T create();",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"public static SqliteModelFactory init()\n {\n try\n {\n SqliteModelFactory theSqliteModelFactory = (SqliteModelFactory)EPackage.Registry.INSTANCE.getEFactory(SqliteModelPackage.eNS_URI);\n if (theSqliteModelFactory != null)\n {\n return theSqliteModelFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new SqliteModelFactoryImpl();\n }",
"interface Factory {\r\n /**\r\n * Create an instance of an agenda view model with the given saved\r\n * instance state.\r\n *\r\n * @param savedInstanceState previously saved state of the view model\r\n * @return the created agenda view model\r\n */\r\n AgendaViewModel create(Bundle savedInstanceState);\r\n }",
"private EntityFactory() {}",
"Klassenstufe createKlassenstufe();",
"public interface Factory {\n Product create();\n}",
"public <T> T createModel(Class<T> clazz) throws CreateModelException {\n return createModel(clazz, true);\n }",
"@Override\n\tpublic void create() {\n\n\t}",
"public abstract void create(T t);",
"For createFor();",
"CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }",
"public static Factory factory() {\n return ext_dbf::new;\n }",
"public interface Factory {\r\n}",
"PriceModel createInstanceOfPriceModel();",
"ZenModel createZenModel();",
"public ObjectifyFactory factory() {\n return ofy().factory();\n }",
"@Override\n\tpublic void create() {\n\t\t\n\t}",
"public interface Creator<T> {\n\t\tpublic T create() throws APIException;\n\n\t\tpublic void destroy(T t);\n\n\t\tpublic boolean isValid(T t);\n\n\t\tpublic void reuse(T t);\n\t}",
"public EntityFactoryImpl() {\n\t\tsuper();\n\t}",
"DomainModel createDomainModel();",
"@Override\n\tpublic void create () {\n\n\t}",
"public interface Factory {\n LeiFeng createLeiFeng();\n}",
"public void create() {\n\t\t\n\t}",
"public static QuinzicalModel createInstance() throws Exception {\n\t\tif (instance == null) {\n\t\t\tinstance = new QuinzicalModel();\n\t\t}\n\t\treturn instance;\n\t}",
"@Override\r\n\tpublic void create() {\n\r\n\t}",
"@Override\r\n\tpublic T createInstance() {\r\n\t\ttry {\r\n\t\t\treturn getClassType().newInstance();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogger.getLogger(AbstractCRUDBean.class.getSimpleName()).log(Level.ALL, e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static PetrinetmodelFactory init() {\r\n\t\ttry {\r\n\t\t\tPetrinetmodelFactory thePetrinetmodelFactory = (PetrinetmodelFactory)EPackage.Registry.INSTANCE.getEFactory(PetrinetmodelPackage.eNS_URI);\r\n\t\t\tif (thePetrinetmodelFactory != null) {\r\n\t\t\t\treturn thePetrinetmodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new PetrinetmodelFactoryImpl();\r\n\t}",
"protected abstract ENTITY createEntity();",
"public static UsermodelFactory init() {\r\n\t\ttry {\r\n\t\t\tUsermodelFactory theUsermodelFactory = (UsermodelFactory)EPackage.Registry.INSTANCE.getEFactory(UsermodelPackage.eNS_URI);\r\n\t\t\tif (theUsermodelFactory != null) {\r\n\t\t\t\treturn theUsermodelFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new UsermodelFactoryImpl();\r\n\t}",
"ConfigModel createInstanceOfConfigModel();",
"public abstract T create(T obj);",
"public static Factory factory() {\n return ext_h::new;\n }",
"public interface DebuggerModelFactory\n\t\textends ExtensionPoint, ConfigurableFactory<DebuggerObjectModel> {\n\n\t/**\n\t * Get the priority for selecting this factory by default for the given program\n\t * \n\t * <p>\n\t * A default factory is selected when the current factory and the last successful factory are\n\t * incompatible with the current program, or if this is the very first time connecting. Of those\n\t * factories compatible with the current program, the one with the highest priority (larger\n\t * numerical value) is selected. If none are compatible, then the current selection is left as\n\t * is.\n\t * \n\t * <p>\n\t * Note that negative priorities imply the factory is not compatible with the given program or\n\t * local system.\n\t * \n\t * @param program the current program, or null\n\t * @return the priority, higher values mean higher priority\n\t */\n\tdefault int getPriority(Program program) {\n\t\treturn 0;\n\t}\n\n\t/**\n\t * Check if this factory is compatible with the local system and given program.\n\t * \n\t * <p>\n\t * <b>WARNING:</b> Implementations should not likely override this method. If one does, it must\n\t * behave in the same manner as given in this default implementation: If\n\t * {@link #getPriority(Program)} would return a non-negative result for the program, then this\n\t * factory is compatible with that program. If negative, this factory is not compatible.\n\t * \n\t * @param program the current program, or null\n\t * @return true if compatible\n\t */\n\tdefault boolean isCompatible(Program program) {\n\t\treturn getPriority(program) >= 0;\n\t}\n}",
"public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }",
"public interface IFactory {\n IUser createUser();\n IDepartment createDepartment();\n}",
"public static ParsedmodelFactory init() {\n\t\ttry {\n\t\t\tParsedmodelFactory theParsedmodelFactory = (ParsedmodelFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://parsedmetadata/1.0\"); \n\t\t\tif (theParsedmodelFactory != null) {\n\t\t\t\treturn theParsedmodelFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ParsedmodelFactoryImpl();\n\t}",
"public interface SerializerFactory<T> {\n\t\n\t/** the method creates a new MessageSerializer.\n\t * \n\t * @return new object that implements the MessageSerializer interface. \n\t */\n MessageSerializer<T> create();\n}",
"public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"Factory<? extends T> buildPersonFactory(String type);",
"public PedidoFactoryImpl() {\n\t\tsuper();\n\t}",
"public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public interface Creator {\n public abstract Item factoryMethod();\n public abstract Item factoryMethod(String name);\n public abstract Item factoryMethod(String name, List<Flower> flowerList);\n}",
"public abstract ProductFactory getFactory();",
"public Model() {\n\t}",
"public Model() {\n\t}",
"public LanterneFactoryImpl() {\n\t\tsuper();\n\t}",
"public interface Factory {\n Animal createAnimal();\n}",
"public interface AbstractFactory {\n Bmw produceBmw();\n Benz produceBenz();\n}",
"public MystFactoryImpl()\r\n {\r\n super();\r\n }",
"public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }",
"public interface IFactory<T extends MaterialCastingRecipe> {\n T create(ResourceLocation id, String group, @Nullable Ingredient cast, int itemCost, IMaterialItem result,\n boolean consumed, boolean switchSlots);\n }",
"private VegetableFactory() {\n }",
"protected MoneyFactory() {\n\t}",
"public EnotationFactoryImpl() {\n\t\tsuper();\n\t}",
"public Model() {\n this(DSL.name(\"model\"), null);\n }",
"public EcoreFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public TypeAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = TypePackage.eINSTANCE;\n\t\t}\n\t}",
"interface Create {}",
"public GameDomainFactory() {\r\n\t\t\r\n\t\tCreateGameDomain = new HashMap<String, GameDomainFactory.gameDomainCreator>();\r\n\t\tCreateGameDomain.put(\"TicTacToe\" , new ticTacToeCreator());\r\n\t\tCreateGameDomain.put(\"Reversi\", new CreatorReversi());\r\n\t}",
"public abstract <T> T create(Object object, Class<T> clazz);",
"public EcoreFactoryImpl() {\n super();\n }",
"public static Factory factory() {\n return text::new;\n }",
"public FvFactoryImpl() {\n\t\tsuper();\n\t}",
"public abstract Product productFactory(String type);"
] | [
"0.71565163",
"0.71565163",
"0.71565163",
"0.71565163",
"0.71565163",
"0.71565163",
"0.71565163",
"0.70742077",
"0.7051943",
"0.6983852",
"0.69748455",
"0.6965496",
"0.69568366",
"0.69481784",
"0.6860293",
"0.6811446",
"0.6807123",
"0.6756206",
"0.6694741",
"0.6656823",
"0.6654312",
"0.6640736",
"0.6595195",
"0.6580549",
"0.65715563",
"0.6555794",
"0.6534009",
"0.648342",
"0.64748156",
"0.6450784",
"0.6445946",
"0.64300567",
"0.6421489",
"0.64043415",
"0.6400982",
"0.63907266",
"0.63907266",
"0.6368747",
"0.6349325",
"0.63468486",
"0.6345672",
"0.63069546",
"0.6302681",
"0.6292132",
"0.6289528",
"0.6275873",
"0.6264616",
"0.6250081",
"0.623463",
"0.62291795",
"0.62248415",
"0.6222761",
"0.6219561",
"0.62143695",
"0.62126905",
"0.62034976",
"0.61920136",
"0.61674654",
"0.61650974",
"0.6154887",
"0.61427796",
"0.61426824",
"0.6140671",
"0.61348015",
"0.6117416",
"0.6079516",
"0.6065549",
"0.60619617",
"0.60616994",
"0.6044366",
"0.60355604",
"0.60280776",
"0.6026859",
"0.6021375",
"0.60200113",
"0.60140157",
"0.60013527",
"0.5987638",
"0.5981197",
"0.59794974",
"0.59472996",
"0.59472996",
"0.59399843",
"0.5938128",
"0.59361154",
"0.59327817",
"0.59254813",
"0.59222776",
"0.5919654",
"0.59025806",
"0.5900669",
"0.5895235",
"0.5894421",
"0.5892311",
"0.5877348",
"0.58726925",
"0.5863833",
"0.58636236",
"0.5861607",
"0.585989",
"0.58558"
] | 0.0 | -1 |
Returns a new object of class 'View'. | View createView(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private View() {}",
"private ViewFactory() {}",
"public View() {\n // (this constructor is here just for the javadoc tag)\n }",
"ViewElement createViewElement();",
"View mo73990a(View view);",
"public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}",
"private Views() {\n }",
"ViewComponent createViewComponent();",
"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 }",
"public ViewFactory getViewFactory()\n {\n return this;\n }",
"public BwView getView() {\n if (view == null) {\n view = new BwView();\n }\n\n return view;\n }",
"public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}",
"public View create(Element elem) {\n return null;\n }",
"@SuppressWarnings (\"unchecked\")\r\n\t@Override\r\n\tpublic <T> T create ()\r\n\t{\r\n\t\tFxCharmView fxView = new FxCharmView ();\r\n\t\tfxView.registerSpecialType (IntValueView.class, new FxIntDisplayFactory ());\r\n\t\tfxView.registerSpecialType (BooleanView.class, new FxBooleanDisplayFactory ());\r\n\t\tnew Stylesheet (\"skin/platform/tooltip.css\").applyToParent (fxView.getNode ());\r\n\t\treturn (T) fxView;\r\n\t}",
"StableView view();",
"ViewCreator get(String userName);",
"public static IView createView(String viewName, Readable file) throws IllegalArgumentException {\r\n IView<IReadOnlyModel<IMusicNote, IMusicPiece>> outputView = null;\r\n MusicalOperations<IMusicNote, IMusicPiece> mutableModel = MusicReader.parseFile(file, new\r\n MusicModel.ModelBuilder());\r\n IReadOnlyModel<IMusicNote, IMusicPiece> inputModel = new ReadOnlyModel(mutableModel);\r\n\r\n switch (viewName.toLowerCase()) {\r\n case \"midi\":\r\n try {\r\n outputView = new MidiViewer(inputModel, MidiSystem.getSequencer());\r\n } catch (MidiUnavailableException e) {\r\n e.getMessage();\r\n }\r\n break;\r\n\r\n case \"visual\":\r\n outputView = new GUIView(inputModel);\r\n break;\r\n\r\n case \"console\":\r\n outputView = new ConsoleViewer(inputModel);\r\n break;\r\n\r\n case \"composite\":\r\n try {\r\n outputView = new CompositeView(inputModel, MidiSystem.getSequencer());\r\n } catch (MidiUnavailableException e) {\r\n e.getMessage();\r\n }\r\n break;\r\n\r\n default:\r\n throw new IllegalArgumentException(\"Invalid type of view specified!\");\r\n }\r\n\r\n return outputView;\r\n }",
"ViewContainer createViewContainer();",
"public static ViewFactory getInstance() {\r\n\t\tif(instance==null) {\r\n\t\t\tinstance = new ViewFactory();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public abstract ArchECoreView newView(ArchECoreArchitecture architecture) throws ArchEException;",
"protected Scene createView() {\n\t\treturn null;\n\t}",
"protected ReliedOnView() {}",
"public static ViewMaintenanceList newInstance() {\n ViewMaintenanceList fragment = new ViewMaintenanceList();\n return fragment;\n }",
"public Object clone() {\n View v2;\n try {\n v2 = (View) super.clone();\n } catch (CloneNotSupportedException cnse) {\n v2 = new View();\n }\n v2.center = (Location) center.clone();\n v2.zoom = zoom;\n v2.size = (Dimension) size.clone();\n return v2;\n }",
"public View createView(String viewName,String query,List<String> attributeNames,\n\t\t\tList<String> summaries, List<String> summaryNames, DBConnector connectionType) throws Exception {\n\t\tif(this.viewMap.containsKey(viewName)) throw new Exception(\"view name '\"+viewName+\"' already exists!\");\n\t\tView v = new View(viewName,query, attributeNames, summaries, summaryNames,connectionType);\n\t\tthis.viewMap.put(viewName, v);\n\t\treturn v;\n\t}",
"private View getView() {\n try {\n return (View) this.webView.getClass().getMethod(\"getView\", new Class[0]).invoke(this.webView, new Object[0]);\n } catch (Exception unused) {\n return (View) this.webView;\n }\n }",
"public View getView() {\n // Create view lazily only once it's needed\n if (this.furnitureView == null) {\n this.furnitureView = this.viewFactory.createFurnitureView(this.home, this.preferences, this);\n }\n return this.furnitureView;\n }",
"public View() {\n initComponents();\n }",
"public Get setView(java.lang.String view) {\n this.view = view;\n return this;\n }",
"public ViewFactory(DataManager dm) {\n this.dm = dm;\n }",
"public View create(Element elem)\n {\n if(isTextEval) {\n return new bluej.debugmgr.texteval.TextEvalSyntaxView(elem);\n }\n else {\n return new MoeSyntaxView(elem, errorMgr);\n }\n }",
"@Override\n public View createView(final String name, final String description) {\n final CView newView = m_module.getContent().getViewContainer().createView(name, description);\n\n return ObjectFinders.getObject(newView, m_views);\n }",
"public interface ViewFactory {\n\n View provideView(int position);\n\n void release();\n}",
"public View(UI ui) {\n this.ui = ui;\n }",
"interface ViewCreator {\n /**\n * Creates a view\n * @param path\n * @param sql\n * @param sqlContext\n */\n void createView(List<String> path, String sql, List<String> sqlContext, NamespaceAttribute... attributes);\n\n /**\n * Updates a view\n * @param path\n * @param sql\n * @param sqlContext\n * @param attributes\n */\n void updateView(List<String> path, String sql, List<String> sqlContext, NamespaceAttribute... attributes);\n\n /**\n * Drops a view\n * @param path\n */\n void dropView(List<String> path);\n }",
"public interface View {\n void setupViews();\n void onClickMonth();\n void onClickYear();\n void onSuccess(RevenueModel body);\n void onSuccessWithdrawl(BaseResponse body);\n void onFailure();\n void onFailureWithdrawl();\n }",
"public View create(Element elem, int p0, int p1) {\n return null;\n }",
"public interface View {\n}",
"public interface View {\n}",
"public static IView makeView(String type, int tempo) throws IllegalArgumentException {\n switch (type) {\n case \"text\":\n return new TextView();\n case \"visual\":\n return new VisualView(tempo);\n case \"svg\":\n return new SVGView(tempo);\n case \"edit\":\n return new EditorView(new VisualView(tempo));\n default:\n throw new IllegalArgumentException(\"Not a valid view\");\n }\n }",
"public View emitAsView() {\n return view;\n }",
"public View getView() {\n\t\treturn view;\n\t}",
"public static ViewFactory getInstance() {\n if (instance == null) {\n synchronized (ViewFactory.class) {\n if (instance == null) {\n instance = new ViewFactory();\n }\n }\n }\n return instance;\n }",
"public View getView() { return view; }",
"ViewComponentPart createViewComponentPart();",
"public BaseView() {\r\n\t\tsuper();\r\n\t\tthis.modelView = new BaseModelView();\r\n\t\tthis.buildLayout();\r\n\t\tthis.setVisible(true);\r\n\t}",
"public abstract View a(Object obj);",
"Viewpoint createViewpoint();",
"@Override\n public void Create() {\n\n initView();\n }",
"protected StandardDrawingView createDrawingView() {\n return new StandardDrawingView(this, 410, 370);\n }",
"public View getView() {\n return view;\n }",
"public PgViews() {\n this(\"pg_views\", null);\n }",
"Views getViews();",
"public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}",
"private Node getExampleView() {\n Node base = new Node();\n base.setRenderable(exampleLayoutRenderable);\n Context c = this;\n // Add listeners etc here\n View eView = exampleLayoutRenderable.getView();\n eView.setOnTouchListener((v, event) -> {\n Toast.makeText(\n c, \"Location marker touched.\", Toast.LENGTH_LONG)\n .show();\n return false;\n });\n\n return base;\n }",
"private Node getExampleView2() {\n Node base = new Node();\n\n return base;\n }",
"public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}",
"public View() {\n this.view = new ViewPanel();\n //this.view.setGraph(this.graph);\n initComponents();\n this.m_algoritmos.setEnabled(false);\n this.mi_maze.setEnabled(false);\n this.mi_salvarImagem.setEnabled(false);\n }",
"void view();",
"public ViewObject(ActivityInstance instance)\n {\n // Populate fields\n this.templateId = instance.getTemplate().getId();\n this.name = instance.getName();\n this.description = instance.getDescription();\n this.paramValues = instance.getParameterValues();\n }",
"public ViewMain()\n\t{\n\t\tview = new View();\n\t\t\n\t\tcolors = new Color[20][10];\n\t\tfor(int i=0; i < 20; ++i)\n\t\t\tfor(int j=0; j < 10; ++j)\n\t\t\t\tcolors[i][j] = Color.DARK_GRAY;\n\t\t\n\t\tpanel = new BoardGamePanel(colors);\n\t\tpanel.setVisible(true);\n\t\t\n\t\tgameInfo = new GameInfo();\n\t\t\n\t\tactionListenner();\n\t\t\n\t}",
"public View(Controller contr) {\n this.contr = contr;\n }",
"public BlogPostView() {\n this.blogPost = new BlogPost();\n }",
"public interface IViewGetter<T,V extends View> {\n V createView(Context context);\n void initView(V view, T bean);\n}",
"View getActiveView();",
"public MainView() {\r\n\t\tinitialize();\r\n\t}",
"public void initView(){}",
"public View getView(ViewEnum viewEnum) {\n View view = null;\n switch (viewEnum) {\n case START:\n view = new StartView(new StartPresenter());\n break;\n case REGISTRATION:\n view = new RegistrationView(new RegistrationController(dm), new RegistrationPresenter());\n break;\n case LOGIN:\n view = new LoginView(new LoginController(dm), new LoginPresenter());\n break;\n case ORGANIZER:\n view = new AccountView(new AccountController(dm), new OrganizerPresenter());\n break;\n case SPEAKER:\n view = new AccountView(new AccountController(dm), new SpeakerPresenter());\n break;\n case ATTENDEE:\n view = new AccountView(new AccountController(dm), new AttendeePresenter());\n break;\n case VIP_ATTENDEE:\n view = new AccountView(new AccountController(dm), new VipAttendeePresenter());\n break;\n\n // Account\n case ADD_CONTACT:\n view = new ContactAddView(new ContactController(dm), new ContactPresenter());\n break;\n case REMOVE_CONTACT:\n view = new ContactRemoveView(new ContactController(dm), new ContactPresenter());\n break;\n case VIEW_CONTACTS:\n view = new ContactListView(new ContactController(dm), new ContactPresenter());\n break;\n case MESSAGE:\n view = new MessageView(new MessageController(dm), new MessagePresenter());\n break;\n case VIEW_CONVERSATION:\n view = new ConversationView(new ConversationController(dm), new ConversationPresenter());\n break;\n case VIEW_EVENT_SCHEDULE:\n view = new EventScheduleView(new EventController(dm), new EventPresenter());\n break;\n case DOWNLOAD_SCHEDULE:\n view = new DownloadScheduleView(new DownloadScheduleController(dm), new DownloadSchedulePresenter());\n break;\n\n // Organizer\n case CREATE_ACCOUNT:\n view = new AccountCreationView(new RegistrationController(dm), new RegistrationPresenter());\n break;\n case MESSAGE_ALL_SPEAKERS:\n view = new MessageAllSpeakersView(new MessageController(dm), new MessagePresenter());\n break;\n case MESSAGE_ALL_ATTENDEES:\n view = new MessageAllAttendeesView(new MessageController(dm), new MessagePresenter());\n break;\n case VIEW_LOCATIONS:\n view = new LocationListView(new LocationController(dm), new LocationPresenter());\n break;\n case ADD_LOCATION:\n view = new LocationAddView(new LocationController(dm), new LocationPresenter());\n break;\n case CREATE_EVENT:\n view = new EventCreationView(new EventController(dm), new EventCreationPresenter());\n break;\n case CANCEL_EVENT:\n view = new EventCancelView(new EventController(dm), new EventCancelPresenter());\n break;\n case RESCHEDULE_EVENT:\n view = new EventRescheduleView(new EventController(dm), new EventReschedulePresenter());\n break;\n case VIEW_UNRESOLVED_REQUEST:\n view = new PendingRequestsListView(new RequestController(dm), new PendingRequestsPresenter());\n break;\n case VIEW_RESOLVED_REQUEST:\n view = new ResolvedRequestsListView(new RequestController(dm), new ResolvedRequestsPresenter());\n break;\n case RESOLVE_REQUEST:\n view = new RequestResolveView(new RequestController(dm), new RequestResolvePresenter());\n break;\n\n // Speaker\n case MESSAGE_TALK_ATTENDEES:\n view = new MessageEventAttendeesView(new MessageController(dm), new MessagePresenter());\n break;\n case VIEW_SPEAKER_SCHEDULE:\n view = new SpeakerScheduleView(new EventController(dm), new EventPresenter());\n break;\n\n // Attendee\n case VIEW_SIGNUP_SCHEDULE:\n view = new AttendeeScheduleView(new EventController(dm), new EventPresenter());\n break;\n case SIGNUP_EVENT:\n view = new SignupView(new EventController(dm), new SignupPresenter());\n break;\n case LEAVE_EVENT:\n view = new SignupCancelView(new EventController(dm), new SignupCancelPresenter());\n break;\n case SEND_REQUEST:\n view = new RequestSendView(new RequestController(dm), new RequestSendPresenter());\n break;\n }\n return view;\n }",
"public static IView create(String s, int tempo) {\n if (s == null) {\n throw new IllegalArgumentException(\"Found Null Value\");\n }\n switch (s) {\n case \"text\":\n return new TextualView(tempo);\n case \"svg\":\n return new SVGView(tempo);\n case \"visual\":\n return new AnimationView(tempo);\n case \"interactive\":\n return new HybridView(tempo);\n default:\n throw new IllegalArgumentException(\"Can't Found This View\");\n }\n }",
"@Override\n\tpublic View getView(Context context, ViewGroup parent) {\n\t\ttv = new TextView(context);\n\t\treturn tv;\n\t}",
"public interface View {\n\t\n\tpublic DifferenceOperators getOperator();\n\tpublic double getUtility(DistanceMetric distanceMetric);\n\tpublic double getUtility(DistanceMetric distanceMetric,\n\t\t\tboolean normalizeDistributions);\n //Added by Himos\n public double getUtilitywithfunc(DistanceMetric distanceMetric, Constants.AggregateFunctions AGF,\n\t\t\tboolean normalizeDistributions);\n\tpublic List<View> constituentViews();\n \n // public String getHighFunction(); \n\t//public View getTopDifferent();\n\n}",
"public ViewSinFaltante() {\n initComponents();\n }",
"public PartsViewImpl() {\n }",
"public ManipularView() {\n initComponents();\n }",
"public CustomView(Context context) {\n this(context, null);\n init();\n }",
"private HistoryViewPanel getViewPanel() {\n if (viewPanel == null) {\n viewPanel = new HistoryViewPanel();\n viewPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"\",\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));\n }\n\n return viewPanel;\n }",
"public abstract void initView();",
"public interface View {\n\n public void Update();\n public void Clear(String scopeName);\n\n public ViewScope getMainView();\n public ViewScope getCanvasView();\n public ViewScope getToolbarView();\n public ViewScope getTopMenuView();\n\n public void drawRectangle(String viewName, Rectangle rectangle, int pos_x, int pos_y, double scale);\n public void drawRectangle(String viewName, Rectangle rectangle, int pos_x, int pos_y);\n public void drawRectangle(String viewName, Rectangle rectangle, double scale);\n public void drawRectangle(String viewName, Rectangle rectangle);\n public void drawPolygon(String viewName, Polygon polygon, int pos_x, int pos_y, double scale);\n public void drawImage(String viewName, String path, int pos_x, int pos_y, int width, int height);\n public void drawText(String viewName, String text, int x, int y, int size);\n\n}",
"public interface BaseNewView<T> {\n\n /**\n * 设置presenter对象\n *\n * @param presenter\n */\n void setPresenter(T presenter);\n\n /**\n * 初始化views\n *\n * @param view\n */\n void initViews(View view);\n}",
"public View getSavedView(String viewName) {\n\t\tView v = null;\n\t\tObjectInputStream in;\n\t\tString filename = getViewFilename(viewName);\n\t\tFile dir = new File(viewFolder);\n\t\tdir.mkdirs();\n\t\tFile file = new File(dir,filename);\n\t\ttry {\n\t\t\tin = new ObjectInputStream(new BufferedInputStream(new FileInputStream(file)));\n\t v = (View) in.readObject();\n\t if(v != null) this.viewMap.put(viewName, v);\n\t in.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"could not find file: \"+filename);\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"could not read file from disk: \"+filename);\n\t\t\t//e.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\tSystem.out.println(\"could not find class definition for class: \"+View.class);\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn v;\n\t}",
"public View createView(ExaminationDataSet dataSet) {\n return new TableView(dataSet);\n }",
"public ViewIdentificator getView() {\r\n return view;\r\n }",
"public ViewProperty() {\n initComponents();\n }",
"void initView();",
"public interface View {\n // If needed, Specify methods here that will be called on the view in response to model updates\n void register(android.view.View v);\n }",
"public String getView();",
"public String getView();",
"public void initView() {\n\t\t view.initView(model);\t \n\t }",
"@Override\r\n\tpublic View getView() {\n\t\treturn this.view;\r\n\t}",
"public myView() {\n initComponents();\n CreatMenu();\n }",
"public MenuBar.MenuItem addView(Class<? extends View> viewClass) {\n String label = viewClass.getSimpleName();\n return addView(viewClass, true, label, null);\n }",
"protected abstract StartViewFactory getStartViewFactory();",
"public List setView(java.lang.String view) {\n this.view = view;\n return this;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n \n return this.view;\n }",
"@Override\n public View getView() {\n return mView;\n }",
"public abstract View mo2155b();",
"private void initView() {\n\n }",
"@Override\r\n\tpublic View getView() {\n\t\treturn super.getView();\r\n\t}",
"public interface View {\n\n void show();\n\n void hide();\n\n Stage getStage();\n\n GlueObject getGlueObject();\n\n void setPerson(Person person);\n\n}",
"@Override\r\n\tpublic View makeView() {\n\t\tImageView image = new ImageView(this);\r\n\t\t// cente会让居中显示并缩放\r\n\t\timage.setScaleType(ScaleType.FIT_CENTER);\r\n\t\treturn image;\r\n\t}"
] | [
"0.7484748",
"0.7294108",
"0.7126311",
"0.7049419",
"0.7003135",
"0.6995133",
"0.69814265",
"0.6951357",
"0.6942241",
"0.68580204",
"0.6737821",
"0.66654766",
"0.65939546",
"0.65606225",
"0.65270436",
"0.64997894",
"0.649956",
"0.64490354",
"0.64155024",
"0.63934296",
"0.6370811",
"0.63668424",
"0.6366173",
"0.63643354",
"0.6361957",
"0.634205",
"0.6321876",
"0.6304817",
"0.6297345",
"0.6257909",
"0.6244014",
"0.6234016",
"0.62266266",
"0.62069213",
"0.6183167",
"0.61656916",
"0.61506796",
"0.61316675",
"0.61316675",
"0.6130609",
"0.61239505",
"0.61166054",
"0.61099064",
"0.6093985",
"0.60880727",
"0.6078945",
"0.60459334",
"0.6038725",
"0.60142833",
"0.6013176",
"0.6002188",
"0.5999611",
"0.59674054",
"0.59616244",
"0.59464455",
"0.5934188",
"0.59307694",
"0.5899084",
"0.58874565",
"0.5884732",
"0.5882389",
"0.58743626",
"0.5857989",
"0.5854516",
"0.584008",
"0.5829395",
"0.5800849",
"0.5790387",
"0.5789156",
"0.57717264",
"0.57709897",
"0.5761863",
"0.57583576",
"0.57579374",
"0.575783",
"0.5751371",
"0.5750683",
"0.57506037",
"0.5750418",
"0.5738487",
"0.5737955",
"0.57356066",
"0.57338136",
"0.5732336",
"0.5729256",
"0.57207525",
"0.57207525",
"0.5718651",
"0.57184726",
"0.57134545",
"0.5713337",
"0.5708704",
"0.5705759",
"0.5700531",
"0.5696428",
"0.5694304",
"0.56844723",
"0.5679348",
"0.56777817",
"0.56769174"
] | 0.80726194 | 0 |
Returns a new object of class 'Text'. | Text createText(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Text(String text)\n {\n super(text);\n initialize();\n }",
"public Text()\n {\n super();\n initialize();\n }",
"public TextTester(){}",
"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 TextConstruct(String name)\n\t{\n super(name);\n this.type = ContentType.TEXT;\n\t}",
"public TextBuffer constructTextBuffer()\n/* */ {\n/* 137 */ return new TextBuffer(this._bufferRecycler);\n/* */ }",
"public Text(String text, TextStyle style)\n {\n super(text);\n this.style = style;\n initialize();\n }",
"static ITextData make(final String text) {\r\n\t\treturn new ITextData() {\r\n\r\n\t\t\t/**\r\n\t\t\t * Version number for serialization.\r\n\t\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 2116930322237925265L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String toString() {\r\n\t\t\t\treturn text;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String getText() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn text;\r\n\t\t\t}\t\t\t\r\n\t\t};\r\n\t}",
"private Painter newPlainText() {\r\n\t\treturn p.textOutline(text, surface, fontSize, bold, italic, \r\n\t\t\t\tshade, null);\r\n\t}",
"private ModelInstance newText(String text)\n {\n BufferedImage onePixelImage = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);\n Graphics2D awtGraphics2D = onePixelImage.createGraphics();\n awtGraphics2D.setFont(awtFont != null ? awtFont : DEFAULT_FONT);\n FontMetrics awtFontMetrics = awtGraphics2D.getFontMetrics();\n int textWidthPixels = text.isEmpty() ? 1 : awtFontMetrics.stringWidth(text);\n int textHeightPixels = awtFontMetrics.getHeight();\n awtGraphics2D.dispose();\n\n // Create image for use in texture\n BufferedImage bufferedImageRGBA8 = new BufferedImage(textWidthPixels, textHeightPixels, BufferedImage.TYPE_INT_ARGB);\n awtGraphics2D = bufferedImageRGBA8.createGraphics();\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);\n awtGraphics2D.setFont(awtFont != null ? awtFont : DEFAULT_FONT);\n awtFontMetrics = awtGraphics2D.getFontMetrics();\n awtGraphics2D.setColor(awtColor);\n int x = 0;\n int y = awtFontMetrics.getAscent();\n if (!text.isEmpty())\n awtGraphics2D.drawString(text, x, y);\n awtGraphics2D.dispose();\n\n Pixmap pixmap = new Pixmap(textWidthPixels, textHeightPixels, Pixmap.Format.RGBA8888);\n BytePointer rgba8888BytePointer = new BytePointer(pixmap.getPixels());\n DataBuffer dataBuffer = bufferedImageRGBA8.getRaster().getDataBuffer();\n for (int i = 0; i < dataBuffer.getSize(); i++)\n {\n rgba8888BytePointer.putInt(i * Integer.BYTES, dataBuffer.getElem(i));\n }\n\n Texture libGDXTexture = new Texture(new PixmapTextureData(pixmap, null, false, false));\n Material material = new Material(TextureAttribute.createDiffuse(libGDXTexture),\n ColorAttribute.createSpecular(1, 1, 1, 1),\n new BlendingAttribute(GL41.GL_SRC_ALPHA, GL41.GL_ONE_MINUS_SRC_ALPHA));\n long attributes = VertexAttributes.Usage.Position | VertexAttributes.Usage.Normal | VertexAttributes.Usage.TextureCoordinates;\n\n float textWidthMeters = textHeightMeters * (float) textWidthPixels / (float) textHeightPixels;\n\n float x00 = 0.0f;\n float y00 = 0.0f;\n float z00 = 0.0f;\n float x10 = textWidthMeters;\n float y10 = 0.0f;\n float z10 = 0.0f;\n float x11 = textWidthMeters;\n float y11 = textHeightMeters;\n float z11 = 0.0f;\n float x01 = 0.0f;\n float y01 = textHeightMeters;\n float z01 = 0.0f;\n float normalX = 0.0f;\n float normalY = 0.0f;\n float normalZ = 1.0f;\n Model model = modelBuilder.createRect(x00, y00, z00, x10, y10, z10, x11, y11, z11, x01, y01, z01, normalX, normalY, normalZ, material, attributes);\n return new ModelInstance(model);\n }",
"protected Text getText()\r\n\t{\r\n\t\treturn text;\r\n\t}",
"public TextController createText(ControllerCore genCode) {\n\t\ttextTXT = new TextController(\"text\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(text$1LBL);\n\t\t\t\tsetProperty(\"text\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn textTXT;\n\t}",
"public com.vodafone.global.er.decoupling.binding.request.TextType createTextType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.TextTypeImpl();\n }",
"protected TextGuiTestObject edittext() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"edittext\"));\n\t}",
"ElementText createElementText();",
"protected IControlCreator getTextControlCreator() {\r\n\t\treturn new IControlCreator() {\r\n\r\n\t\t\tpublic Control createControl(Composite parent, int style) {\r\n\t\t\t\tText retVal = getWidgetFactory().createText(parent, \"\", style/* |mutabilityStyle */); //$NON-NLS-1$\r\n\t\t\t\t//\t\t\t\t\tretVal.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n\t\t\t\treturn retVal;\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public TextNode(String text) {\n\t\tthis.text = text;\n\t}",
"protected Text getText() {\n \t\treturn text;\n \t}",
"public static Factory factory() {\n return text::new;\n }",
"public TextFlow() {\n this(new String());\n }",
"public Text(double x, double y, String text)\n {\n super(x, y, text);\n initialize();\n }",
"public Word(String text) {\n\t\tsuper();\n\t\tthis.text = text;\n\t}",
"public TextLine(String text) {\n\t\tthis.text = text.toString();\n\t}",
"@Override\n public abstract String asText();",
"private TextUtil()\r\n {\r\n }",
"public Text(String text, TextStyle style, Accent accent)\n {\n super(text);\n this.style = style;\n this.accent = accent;\n initialize();\n }",
"private Text createText(String text, int offset) {\n\t\tText res = new Text(text);\n\t\tres.setFont(new Font(\"Minecraftia\", 60));\n\t\tres.setFill(Color.YELLOW);\n\t\tres.getTransforms().add(new Rotate(-50, 300, 200, 20, Rotate.X_AXIS));\n\t\tres.setX(canvas.getWidth() / 2);\n\t\tres.setY(canvas.getHeight() / 2 + offset);\n\t\tres.setId(\"handCursor\");\n\t\tres.setOnMouseEntered(e -> {\n\t\t\tres.setText(\"> \" + res.getText() + \" <\");\n\t\t});\n\t\tres.setOnMouseExited(e -> {\n\t\t\tres.setText(res.getText().replaceAll(\"[<> ]\", \"\"));\n\t\t});\n\t\treturn res;\n\t}",
"public final TText addText(final String text, final int x, final int y,\n final int width, final int height) {\n\n return new TText(this, text, x, y, width, height, \"ttext\");\n }",
"static Source newTextSource(String text) {\n return newStringSource(text, \"<input>\");\n }",
"public Text(int x, int y, String text, int size) {\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n this.font = Font.SANS_SERIF;\r\n this.size = size;\r\n \r\n }",
"public Object clone() {\n // java.lang.String implements inherently copy-on-write.\n return new PseudoText(this.m_content);\n }",
"public FrameBodyTPOS(byte textEncoding, String text)\n {\n setObjectValue(DataTypes.OBJ_TEXT_ENCODING, textEncoding);\n setObjectValue(DataTypes.OBJ_TEXT, new PartOfSet.PartOfSetValue(text));\n }",
"public TextBook() {\n\t\tsuper();\n\t\ttype = \"TEXTBOOK\";\n\t}",
"public TextBlock() {\n writer = new StringMaker();\n writer.openForOutput();\n // blockOut = new StringBuilder();\n labels = new ArrayList();\n // writer.close();\n }",
"public Text(double x, double y, String text, TextStyle style)\n {\n super(x, y, text);\n this.style = style;\n initialize();\n }",
"protected Text text(String content){\n\t\treturn doc.createTextNode(content);\n\t}",
"public TextExpression(String text) {\n this.text = text;\n }",
"public TextButton (String text)\n { \n this(text, 20); \n }",
"public GenericTextHelper() {\n\t\tcontentList = new ArrayList<GenericTextModel>();\n\n\t}",
"public String text() { return text; }",
"public Content(String text) {\n setContent(text);\n }",
"public TextlineModel() {\n\t\tobox = new OrientedBox(0,0,0,0,0);\n\t\tocclusions = new ArrayList();\n\t\twordOffsets = new ArrayList();\n\t\tsetText(\"\");\n\t\ttextPointer = null;\n\t}",
"public Text(double x, double y, VDMColor c, int thickness,\n String text, boolean bold, String font) {\n super(x, y, c, thickness);\n\n _b = bold;\n _t = text;\n _f = font;\n }",
"private void createText() {\n Texture texture = new Texture(Gdx.files.internal(\"Text/item.png\"));\n texture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n TextureRegion region = new TextureRegion(texture);\n display = new BitmapFont(Gdx.files.internal(\"Text/item.fnt\"), region, false);\n display.setUseIntegerPositions(false);\n display.setColor(Color.BLACK);\n }",
"public static TextField createTextField() {\t\t\n\t\tTextField text = new TextField();\n\t\ttext.setPrefWidth(200);\n\t\ttext.setPrefHeight(30);\n\t\treturn text;\n\t}",
"private AppText() {\n\n }",
"protected TextGuiTestObject edittext(TestObject anchor, long flags) \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"edittext\"), anchor, flags);\n\t}",
"@SuppressWarnings(value = \"LeakingThisInConstructor\")\n TextWidget(TextLayer layer, Widget parent, Text text) {\n super(parent.getScene());\n this.layer = layer;\n this.text = text;\n text.addPropertyChangeListener(WeakListeners.propertyChange(this, text));\n setPreferredLocation(text.getLocation());\n setFont(text.getFont());\n activeLayerResult.addLookupListener(this);\n }",
"public TextFragment()\n\t{\n\t}",
"@Test\n\tpublic void testTextToXml()\n\t{\n\t\tDocument doc = XMLUtil.createEmpty();\n\t\tText text = new Text(\"Steve Unger Smells\");\n\t\tElement element = this.parser.toXML(doc, text);\n\t\tText text2 = this.parser.fromXML(element);\n\t\t\n\t\tassertEquals(\"Steve Unger Smells\", text2.getText());\t\t\n\t}",
"public CanvasText(String text, CanvasFont font, TextStyle textAlign) {\n super();\n this.text = (text == null)? null: text.trim();\n this.textFont = (font == null)? new CanvasFont(): font;\n this.textStyle = (textAlign == null)? new TextStyle(): textAlign;\n this.bounds = new Rectangle();\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn text.toString();\r\n\t}",
"public TextFile(String text, String name, String nameForReporting, String parent, String mimeType, long lastModified)\n\t{\n init(text, name, nameForReporting, parent, mimeType, lastModified);\n\t}",
"public TextFlow(String s) {\n text = s;\n }",
"public abstract String text();",
"public abstract String text();",
"public StringBuffer creat(String text)\r\n {\r\n StringBuffer sbuff= new StringBuffer( text);\r\n return sbuff;\r\n }",
"public Text(double x, double y, String text, TextStyle style, Accent accent)\n {\n super(x, y, text);\n this.style = style;\n this.accent = accent;\n initialize();\n }",
"Text getT();",
"public String text();",
"public java.lang.String getText() {\n return text_;\n }",
"public java.lang.String getText() {\n \t\treturn text;\n \t}",
"@java.lang.Override\n public com.google.protobuf.ByteString getTextBytes() {\n java.lang.Object ref = text_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n text_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public TextBuilder addStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n return lastText;\n }",
"Font createFont();",
"public GuiText(String text, String fontName, Vector2f pos)\n\t{\n\t\tthis(text, fontName, pos, new TextAttributes());\n\n\t}",
"public LeanTextGeometry() {}",
"public GraphicsText(String text, float x, float y){\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n textColor = Color.BLACK;\r\n font = new Font(\"SanSerif\", Font.PLAIN, 14);\r\n }",
"protected abstract void beginTextObject();",
"public abstract String getText();",
"public abstract String getText();",
"public abstract String getText();",
"public abstract String getText();",
"@java.lang.Override\n public com.google.protobuf.ByteString getTextBytes() {\n java.lang.Object ref = text_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n text_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getTextBytes() {\n java.lang.Object ref = text_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n text_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString getTextBytes() {\n java.lang.Object ref = text_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n text_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public interface TextModel\n{\n /**\n * Returns the line at the specified line number.\n * @param line the specified line number.\n * @return a line at the specified line number.\n */\n String getLine (int line);\n\n /**\n * Sets the specified text data. As rule the method should perform parsing process.\n * The process decides how the text data have to be divided into lines.\n * @param text the specified text data.\n */\n void setText (String text);\n\n /**\n * Returns the original text data that have been set with <code>setText</code> method.\n * @return an original text data.\n */\n String getText ();\n\n /**\n * Returns the number of lines for the text model.\n * @return a number of lines.\n */\n int getSize ();\n\n /**\n * Inserts the specified text at the given offset. The offset has to be less than the text\n * length. Actually the method performs re-parsing of the text.\n * @param s the text to be inserted.\n * @param offset the offset where the text will be inserted.\n */\n void write (String s, int offset);\n\n /**\n * Inserts the specified character at the given offset. The offset has to be less than the text\n * length. Actually the method performs re-parsing of the text.\n * @param ch the character to be inserted.\n * @param offset the offset where the character will be inserted.\n */\n void write (char ch, int offset);\n\n /**\n * Removes a text at the specified offset with the size. The offset and the offset plus the\n * size have to be less than the text length.\n * @param offset the offset where the text will be removed.\n * @param size the size of the part that is going to be removed.\n */\n void remove (int offset, int size);\n\n /**\n * Returns the text length (number of the text characters).\n * @return a text length.\n */\n int getTextLength();\n\n /**\n * Adds the specified text listener to receive text events.\n * @param l the text listener.\n * @see org.zaval.data.event.TextListener\n * @see org.zaval.data.event.TextEvent\n */\n void addTextListener(TextListener l);\n\n /**\n * Removes the specified text listener.\n * @param l the text listener.\n * @see org.zaval.data.event.TextListener\n * @see org.zaval.data.event.TextEvent\n */\n void removeTextListener(TextListener l);\n\n\n /**\n * Gets special extra char that is used to store extra information by the specified index.\n * The method is deprecated to be used, because it will be probably re-designed in the future.\n * @param i the specified extra char index.\n * @return an extra char value.\n */\n int getExtraChar (int i);\n\n /**\n * Sets special extra char that is used to store extra information by the specified index.\n * The method is deprecated, since probably it will be re-designed in the future.\n * @param i the specified extra char index.\n * @param val the specified extra char value.\n */\n void setExtraChar (int i, int val);\n}",
"@Override\n\tpublic String type() {\n\t\treturn \"TEXT\";\n\t}",
"TextDecoder getTextDecoder();",
"public T caseText(Text object)\n {\n return null;\n }",
"public ABLTextLCD TextLCD() {\r\n\t\treturn new ABLTextLCD(BrickFinder.getDefault().getTextLCD());\t \r\n\t}",
"public FontFactory(String font, int size, String text) {\n this.font = new Font(font, Font.BOLD, size);\n ttf = new TrueTypeFont(this.font, true);\n this.text = text;\n }",
"public TextField(String text){\n super(text);\n this.defaultText = text;\n }",
"@java.lang.Override\n public com.google.protobuf.ByteString\n getTextBytes() {\n java.lang.Object ref = text_;\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 text_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"protected TextUtilities getTextUtilities() {\n return TextUtilities.INSTANCE;\n }",
"public Builder clearText() {\n bitField0_ = (bitField0_ & ~0x00000004);\n text_ = getDefaultInstance().getText();\n onChanged();\n return this;\n }",
"public Builder clearText() {\n bitField0_ = (bitField0_ & ~0x00000004);\n text_ = getDefaultInstance().getText();\n onChanged();\n return this;\n }",
"public Builder clearText() {\n bitField0_ = (bitField0_ & ~0x00000004);\n text_ = getDefaultInstance().getText();\n onChanged();\n return this;\n }",
"public String getText(){\r\n return text;\r\n }",
"public Text(String text, Color color, String font)\n {\n this.text = text;\n this.color = color;\n this.font = font;\n \n /*\n GreenfootImage textImg=new GreenfootImage(\" \"+text+\" \", 24, Color.RED, new Color(0, 0, 0, 0));\n GreenfootImage image=new GreenfootImage(textImg.getWidth()+8, textImg.getHeight()+8);\n image.setColor(Color.BLACK);\n image.fill();\n image.setColor(Color.WHITE);\n image.fillRect(3, 3, image.getWidth()-6, image.getHeight()-6);\n image.setColor(Color.YELLOW);\n image.drawImage(textImg, (image.getWidth()-textImg.getWidth())/2, (image.getHeight()-textImg.getHeight())/2);\n setImage(image);\n */\n }",
"public MyText(String text, double x1, double y2, Color color, int fontSize) {\n\t\tthis.x1 = x1;\n\t\tthis.y2 = y2;\n\t\tthis.text = text;\n\t\tthis.color = color;\n\t\tthis.fontSize = fontSize;\n\t}",
"public final TText addText(final String text, final int x,\n final int y, final int width, final int height, final String colorKey) {\n\n return new TText(this, text, x, y, width, height, colorKey);\n }",
"public Text createTextNode(String data, Element parent);",
"String getFromText();",
"public T caseText(Text object) {\n\t\treturn null;\n\t}",
"public FrameBodyTBPM(final byte textEncoding, final String text) {\r\n super(textEncoding, text);\r\n }",
"public Word(String text, String postag) {\n\t\tsuper();\n\t\tthis.text = text;\n\t\tthis.postag = postag;\n\t}",
"public TextArea()\n {\n super(AreaId.TEXT, new AsciiByteFormatter());\n }",
"public PseudoText(String content) {\n super();\n this.m_content = content;\n }",
"@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}"
] | [
"0.76272196",
"0.7496798",
"0.722882",
"0.7191132",
"0.68952495",
"0.6869319",
"0.68620646",
"0.6838696",
"0.6759342",
"0.6751463",
"0.6710219",
"0.6625129",
"0.6616648",
"0.6615211",
"0.66106254",
"0.65972376",
"0.6590204",
"0.6588819",
"0.6583908",
"0.650948",
"0.65045184",
"0.6482639",
"0.64635336",
"0.6418714",
"0.64062214",
"0.6379574",
"0.6362344",
"0.634903",
"0.63164556",
"0.63135284",
"0.6307418",
"0.6290579",
"0.62693083",
"0.6262972",
"0.6254003",
"0.6248109",
"0.62275904",
"0.62153465",
"0.62119776",
"0.619021",
"0.6181022",
"0.6146506",
"0.6117634",
"0.611453",
"0.610733",
"0.6103546",
"0.60731596",
"0.60614514",
"0.60493606",
"0.6044098",
"0.6025267",
"0.6023284",
"0.60230166",
"0.6021553",
"0.6020096",
"0.6020096",
"0.60198104",
"0.6019551",
"0.6016235",
"0.60094166",
"0.5991868",
"0.5991588",
"0.598959",
"0.59884804",
"0.59770125",
"0.59738463",
"0.5958641",
"0.5958022",
"0.59487224",
"0.59439766",
"0.59439766",
"0.59439766",
"0.59439766",
"0.5943201",
"0.5943201",
"0.5943201",
"0.5935129",
"0.5924302",
"0.59242815",
"0.59238625",
"0.592172",
"0.5915566",
"0.5910083",
"0.5900041",
"0.5899772",
"0.5877731",
"0.5877731",
"0.5877731",
"0.58690697",
"0.5867152",
"0.586512",
"0.58596283",
"0.5855208",
"0.58489233",
"0.5847496",
"0.5847485",
"0.5844669",
"0.5840251",
"0.5839628",
"0.58384585"
] | 0.81732446 | 0 |
Returns a new object of class 'Flat List'. | FlatList createFlatList(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ListType createListType();",
"public FlatData flatten() {\n\t\t\treturn new Text(description).flatten();\n\t\t}",
"public StuList() {\r\n\t\t// todo\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n \tpublic List() {\r\n \t\titems = (T[]) new Object[INIT_LEN];\r\n \t\tnumItems = 0;\r\n \t\tcurrentObject = 0;\r\n \t}",
"public FlatRecord newFlatRecord(Catalog catalog)\r\n {\r\n FlatRecord newObj = (FlatRecord)SAP_FlatRecord.newObj((com.informatica.adapter.sdkadapter.patternblocks.catalog.semantic.auto.SAP_Catalog)catalog);\r\n SEMTableRecordExtensions newExtnObj = newSEMTableRecordExtensions(catalog);\r\n newObj.setExtensions(newExtnObj);\r\n return newObj;\r\n }",
"public MultiList(){}",
"public FlatData flatten() {\n\t\tString data;\n\t\tdouble[] coords = coordinateTools.localToCoordinates(this);\n\t\tdata = this.getClass().getName() + \":\";\n\t\tdata += coords[0] + \"#\" + coords[1];\n\t\treturn new FlatData(data);\n\t}",
"public ArrayList<T> constructTree() {\n\t\treturn constructTree(r);\n\t}",
"public List<New> list();",
"public static MutableLinearList start () {\r\n\t\t\r\n\t\tMutableLinearList list = new MutableLinearList();\r\n\t\tMutableLinearList item2 = new MutableLinearList();\r\n\t\tMutableLinearList item3 = new MutableLinearList();\r\n\t\t\r\n\t\tlist.head = 42;\r\n\t\tlist.tail = item2;\r\n\t\t\r\n\t\titem2.head = 8;\r\n\t\titem2.tail = item3;\r\n\t\t\r\n\t\titem3.head = 15;\r\n\t\titem3.tail = null;\r\n\t\t\r\n\t\t\r\n/*\t\t// alternative Implementierung:\r\n\t\tMutableLinearList list = new MutableLinearList();\r\n\t\tlist.head = 15;\r\n\t\tlist.addInFront(8);\r\n\t\tlist.addInFront(42);\r\n*/\t\t\r\n\t\t\r\n\t\treturn list;\r\n\t}",
"public static GroupList newInstance() {\n\t\tGroupList f = new GroupList();\n\t\tBundle b = new Bundle();\n\t\tf.setArguments(b);\n\t\treturn f;\n\t}",
"public TreeList()\n {\n\t this.lst = new AVLTree();\n\t this.length = 0;\n }",
"public List()\n\t{\n\t\tthis(null, null);\n\t}",
"abstract void makeList();",
"public MutiList() {\n\t\tsuper();\n\t\tthis.myList = new ArrayList<>();\n\t}",
"default C cloneFlat() {\n\t\treturn clone(FieldGraph.of(getFields()));\n\t}",
"private Lists() { }",
"abstract protected Object newList( int capacity );",
"@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }",
"public PartialTreeList() {\r\n \trear = null;\r\n \tsize = 0;\r\n }",
"SectionList createSectionList();",
"public MyList() {\n this(\"List\");\n }",
"public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }",
"public AList() {\n size = 0;\n items = (Item[]) new Object[100];\n }",
"public RDFList createRDFList(List<Expression> list, int arobase) {\r\n RDFList rlist = new RDFList(newBlankNode(), list); \r\n if (arobase == L_DEFAULT){\r\n arobase = listType;\r\n }\r\n switch (arobase){\r\n \r\n case L_LIST: \r\n rlist = complete(rlist);\r\n break;\r\n \r\n case L_PATH:\r\n rlist = path(rlist);\r\n break;\r\n }\r\n return rlist;\r\n }",
"ListValue createListValue();",
"public FlatAdapter(List<Flat> myDataset, Context context, RecyclerView recyclerView) {\n mFlatList = myDataset;\n mFlatListFiltered=myDataset;\n mRecyclerV = recyclerView;\n mContext=context;\n setHasStableIds(true);\n }",
"public AList() {\n items = (TypeHere[]) new Object[100];\n size = 0;\n }",
"@Override\r\n public ListADT<T> toMutable() {\r\n return new ListADTImpl<T>(this.head);\r\n }",
"public StudentList() {\r\n\t\t\r\n\t\tlist = new Student[GROW_SIZE];\r\n\t}",
"public static GraphFlatCollection<IGraphFlat> findAllFlats(BaseGraph<AbstractGraphPoint> graph) {\r\n //NB a 'FLAT' must be at least 2 seconds long\r\n GraphFlatCollection<IGraphFlat> result = DTUtil.findAllFlatsOfAtLeastLength(2, graph);\r\n return result;\r\n }",
"OpFList createOpFList();",
"public TempList() {\n list = new ArrayList<T>();\n }",
"public NetworkFold(final FlatNetwork flat) {\r\n\t\tthis.weights = EngineArray.arrayCopy(flat.getWeights());\r\n\t\tthis.output = EngineArray.arrayCopy(flat.getLayerOutput());\r\n\t}",
"private ArrayList<Read> makeReadList() {\r\n\t\tArrayList<Read> rlist=makeReadList2();\r\n\t\tif(mateStream!=null){\r\n\t\t\tListNum<Read> matesln=mateStream.nextList();\r\n\t\t\tArrayList<Read> mates=matesln.list;\r\n\t\t\tif(rlist!=null && mates!=null){\r\n\t\t\t\tint max=Tools.min(rlist.size(), mates.size());\r\n\t\t\t\tfor(int i=0; i<max; i++){\r\n\t\t\t\t\tRead a=rlist.get(i);\r\n\t\t\t\t\tRead b=mates.get(i);\r\n\t\t\t\t\ta.mate=b;\r\n\t\t\t\t\tb.mate=a;\r\n\t\t\t\t\tb.setPairnum(1);\r\n\t\t\t\t}\r\n\t\t\t\tmates.clear();\r\n\t\t\t\tmateStream.returnList(matesln, false);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn rlist;\r\n\t}",
"DataList createDataList();",
"public Lista listar() {\n Lista listaAux = new Lista();\r\n if (this.raiz != null) {\r\n listaAux = listarAux(this.raiz, listaAux);\r\n }\r\n return listaAux;\r\n }",
"private FplList() {\n\t\tshape = new FplValue[0][];\n\t}",
"protected GuiTestObject flatMaisonette() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"flatMaisonette\"));\n\t}",
"ListString createListString();",
"public List() {\n this.list = new Object[MIN_CAPACITY];\n this.n = 0;\n }",
"LI createLI();",
"public SmartList() {\n size = 0;\n storage = null;\n }",
"public ListItems() {\n itemList = new ArrayList();\n }",
"public FoodList() {\n this.foodEntries = new ArrayList<>();\n }",
"public ArrayList makeStudentList() {\r\n ArrayList<String> studenter = new ArrayList();\r\n Student student = new Student();\r\n \r\n \r\n \r\n return studenter;\r\n}",
"public static MyListItem fromCursor(Cursor cursor) {\n MyListItem m = new MyListItem();\n return m;\n }",
"private static List<Student> createEmptyList(DataStructureChoice dsChoice) {\r\n\r\n\t\tList<Student> foo = null; /** declared using an Interface declaration */\r\n\t\t\r\n\t\tswitch ( dsChoice ) {\r\n\t\tcase JAVA_ARRAY_LIST:\r\n\t\t\tfoo = new ArrayList<Student>();\r\n\t\t\tbreak;\r\n\t\tcase JAVA_LINKED_LIST:\r\n\t\t\tfoo = new LinkedList<Student>();\r\n\t\t\tbreak;\r\n\t\tcase CSC205_LINKED_LIST:\r\n\t\t\tfoo = new CSC205_Project_1_Linked_List<Student>();\r\n\r\n\t\t\tCSC205_Project_1_Linked_List<Student> fooAlias = \r\n\t\t\t\t\t(CSC205_Project_1_Linked_List<Student>) foo;\r\n\r\n\t\t\tbridges.setDataStructure( fooAlias.getDummyHeader() ); \r\n\r\n\t\t\t/** highlight the dummy header node in red */\r\n\t\t\tfooAlias.getDummyHeader().getVisualizer().setColor( \"RED\" );\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println ( \"Illegal choice of data structure\");\r\n\t\t\tSystem.exit(1); // abort the program\r\n\t\t}\r\n\t\treturn foo;\r\n\t}",
"public list() {\r\n }",
"ListItem createListItem();",
"private FundList() {\n initFields();\n }",
"public Flat(DBAdapter adapter) {\n\t\tsuper(adapter, NAME, CREATE, DB);\n\t}",
"public FpLista() {\r\n\t\t\r\n\t}",
"public UserList list();",
"public List(){\n\t\tthis(\"list\", new DefaultComparator());\n\t}",
"public static <C> LIST<C> RED(LIST<C> L) {\n if ( isNull( L ) ) {\n return L;\n }\n LIST<C> LP = L;\n // ok: LP = new LIST<C>( L.list.subList(1,L.list.size()) );\n if ( L.iter == null ) {\n LP = new LIST<C>( L.list );\n LP.iter = LP.list.iterator();\n C x = LP.iter.next();\n //System.out.println(\"x = \" + x);\n } // else noop\n return LP;\n }",
"public FriendList createFriendList();",
"public abstract List<Node> expand();",
"public List(String name) {\n super(name);\n children = new ArrayList<>();\n }",
"public Flat(double width, double length, double height, double weight, double basePrice)\r\n {\r\n this.widthCapacity = width;\r\n this.lengthCapacity = length;\r\n this.heightCapacity = height;\r\n this.weightCapacity = weight;\r\n this.price = basePrice;\r\n\r\n }",
"public Lista()\n {\n empty=true;\n next = null;\n }",
"public VectorLinearList()\n {// use default capacity of 10\n this(10);\n }",
"public void genLists() {\n\t}",
"Object getTolist();",
"public static <T> List<T> createList(T item1) {\n\t\tList<T> list = new ArrayList<T>();\n\t\tlist.add(item1);\n\t\treturn list;\n\t}",
"public UserList(){\n\t\tthis.head = new User();\n\t\tthis.tail = this.head;\n\n\t}",
"@Before\n public void createSimpleList() {\n testList = new SimpleList();\n }",
"public SmartGatewayExpandableAdapter(List<MultiItemEntity> data) {\n super(data);\n addItemType(TYPE_LEVEL_0, R.layout.item_smart_gateway_lv0);\n addItemType(VERSION_INFO, R.layout.item_version_layout);\n addItemType(MEMORY_INFO, R.layout.item_memory_status_layout);\n addItemType(HARD_DISK_INFO,R.layout.item_hard_disk_status_layout);\n addItemType(STATIC_ROUTER_INFO,R.layout.item_static_router_layout);\n addItemType(FIRE_WALL_INFO,R.layout.item_fire_wall_layout);\n addItemType(SYSTEM_LOG_INFO,R.layout.item_system_log_layout);\n }",
"public static <T> List<T> createList() {\n\t\treturn Collections.emptyList();\n\t}",
"@Override\n public boolean isListFactory() {\n return true;\n }",
"public ListBuild pretty(String pretty) {\n put(\"pretty\", pretty);\n return this;\n }",
"private View createList( SyndFeed feed, Activity activity ) {\n\n LinearLayout mainPanel = new LinearLayout( activity );\n ListView listView = new ListView( activity );\n final FeedListAdapter feedListAdapter = new FeedListAdapter(activity, feed);\n listView.setOnItemClickListener( new AdapterView.OnItemClickListener()\n {\n public void onItemClick( AdapterView<?> parentView, View childView, int position, long id )\n {\n feedListAdapter.click( position );\n }\n } );\n listView.setAdapter(feedListAdapter);\n listView.setBackgroundColor(0xFFffeaab);\n mainPanel.addView(listView);\n return mainPanel;\n }",
"public ArrayList() {\n\t\tthis(10, 75);\n\t}",
"public ListStack() {\n\t\tlist = new ArrayList<>();\n\t}",
"public static <C> LIST<C> LIST1(C a) {\n LIST<C> L = new LIST<C>();\n L.list.addFirst( a );\n return L;\n }",
"abstract List<T> getReuslt();",
"public List()\n {\n list = new Object [10];\n }",
"default void flatten() {\n\t\tFieldGraph<F> flatGraph = FieldGraph.of(getFields());\n\t\tC flatClone = cloneFlat();\t// have to clone, because pull doesn't change value if pulling from self\n\t\tfor (F field : getFields())\n\t\t\tpull(field, flatClone, flatGraph);\n\t}",
"public MyArrayList() {\n\t\tthis(EXTRA_SPACE);\n\t}",
"@Nonnull\n public static UBL23WriterBuilder <PackingListType> packingList ()\n {\n return UBL23WriterBuilder.create (PackingListType.class);\n }",
"public TiraList() {\n this.list = new Object[8];\n this.nextindex = 0;\n this.startIndex = 0;\n }",
"public DLList() {\r\n init();\r\n }",
"public WeatherNewListData() {\n\t}",
"List() {\n this.length = 0;\n }",
"@Override\n public View newView(Context context, Cursor cursor, ViewGroup parent)\n {\n final LayoutInflater inflater = LayoutInflater.from(context);\n final View view = inflater.inflate(android.R.layout.simple_expandable_list_item_1, parent, false);\n\n return view;\n }",
"private ServiceListingList() {\n //This Exists to defeat instantiation\n super();\n }",
"UL createUL();",
"public static MyListItem fromCursor(Cursor cursor) {\n MyListItem myListItem=new MyListItem();\n myListItem._id=cursor.getInt(0);\n myListItem.amount=cursor.getString(1);\n myListItem.dateTime=cursor.getString(2);\n myListItem.type=cursor.getShort(3);\n return myListItem;\n }",
"public void flatten()\n\t{\n\t}",
"public void flatten();",
"public BaselineList(ArrayList<float[]> list) {\n\t\tthis.listNum = list.size();\n\t\tthis.capacity = listNum * 2;\n\t\tthis.list = new ArrayList<float[]>(list);\n\t}",
"private static <T> ListTypeAdapter<T> newListTypeAdapter(Type type) {\n return new ListTypeAdapter<T>(type);\n }",
"public static <T> ArrayList<T> createArrayList() {\n \t\treturn new ArrayList<T>();\n \t}",
"@Override\n public Iterator<Item> iterator(){return new ListIterator();}",
"public DoubledList() {\r\n front = null;\r\n size = 0;\r\n }",
"protected <V> List<V> newObject(Collection<V> initialValues) {\n return new ArrayList<>(initialValues);\n }",
"public static ElementInsertionList create()\n {\n return new ElementInsertionList();\n }",
"public ListIterator listIterator() {\n\t\treturn new ItrListaDE();\n\t}",
"LList2(int size) {\r\n\t\tthis();\r\n\t}",
"StringList createStringList();"
] | [
"0.61296463",
"0.5680127",
"0.5545351",
"0.5532455",
"0.5525874",
"0.55231124",
"0.5519174",
"0.5460614",
"0.5457168",
"0.54082054",
"0.5399268",
"0.53579485",
"0.5301586",
"0.5296863",
"0.52908856",
"0.5270654",
"0.5266332",
"0.52593523",
"0.52433497",
"0.5231526",
"0.5221155",
"0.52089787",
"0.5190561",
"0.5190561",
"0.5181347",
"0.51774096",
"0.5175077",
"0.51642853",
"0.51562047",
"0.51329523",
"0.51298004",
"0.51207334",
"0.5109196",
"0.51036125",
"0.5079254",
"0.50680405",
"0.50652164",
"0.504746",
"0.5046155",
"0.5037028",
"0.503396",
"0.5029252",
"0.50244117",
"0.50160694",
"0.5013367",
"0.50044936",
"0.49929008",
"0.49601296",
"0.49539608",
"0.4949072",
"0.49428937",
"0.49391624",
"0.4939012",
"0.49389103",
"0.49363202",
"0.49343255",
"0.49276033",
"0.4922791",
"0.49179006",
"0.49039188",
"0.48847622",
"0.48810393",
"0.4879837",
"0.4877002",
"0.48755166",
"0.4870926",
"0.4869017",
"0.48654875",
"0.48596093",
"0.48595688",
"0.48539233",
"0.48515818",
"0.48489878",
"0.48433048",
"0.48407835",
"0.48398778",
"0.4839454",
"0.4839448",
"0.4835133",
"0.483464",
"0.4833049",
"0.48305357",
"0.48284033",
"0.48261592",
"0.48237437",
"0.4814033",
"0.48080075",
"0.47995546",
"0.47876856",
"0.47832313",
"0.47818175",
"0.477721",
"0.47621414",
"0.4760871",
"0.47600263",
"0.47598374",
"0.47579485",
"0.47508675",
"0.47500896",
"0.4747288"
] | 0.72471046 | 0 |
Returns a new object of class 'Component'. | Component createComponent(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ComponentType createComponentType();",
"public Component() {\n }",
"public Component() {\n\t\tlocation = new Point(0, 0);\n\t\tsize = new Dimension(100, 80);\n\t\tproperties = new LinkedHashMap<>();\n\t\tsubJobContainer= new LinkedHashMap<>();\n\t\tleftPortCount = 0;\n\t\trightPortCount = 0;\n\t\tbottomPortCount = 0;\n\t\tinputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\n\t\tinputLinks = new ArrayList<Link>();\n\t\toutputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\t\toutputLinks = new ArrayList<Link>();\n\t\tinputportTerminals = new ArrayList<String>();\n\t\toutputPortTerminals = new ArrayList<String>();\n\t\twatcherTerminals = new HashMap();\n\t\tnewInstance = true;\n\t\tvalidityStatus = ValidityStatus.WARN.name();\n\t\tcomponentName = DynamicClassProcessor.INSTANCE.getClazzName(this\n\t\t\t\t.getClass());\n\n\t\tcomponentLabel = new ComponentLabel(componentName);\n\t\tcomponentLabelMargin = 16;\n\n\t\tprefix = XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\t\n\t\tdefaultPrefix=XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\tinitPortSettings();\n\t\ttoolTipErrorMessages = new LinkedHashMap<>();\n\t\tstatus = ComponentExecutionStatus.BLANK;\n\t}",
"public Memory.Component<SharedMemory> newComponent() {\r\n return this._newComponent(new Memory.Requires<SharedMemory>() {}, true);\r\n }",
"public Component getComponent() {\n return component;\n }",
"public Component getComponent() {\n\treturn component;\n}",
"public <S> ComponentInstance<S> getComponentInstance();",
"protected abstract C newComponent(String id, IModel<M> model);",
"public Component createComponent(String ComponentClass, String id) throws InstantiationException, IllegalAccessException, ClassNotFoundException {\n\t\t\n\t\tComponent c = (Component)Class.forName(ComponentClass).newInstance();\n\t\tc.setId(id);\n\t\t\n\t\treturn c;\n\t}",
"protected final Component getComponent()\n\t{\n\t\treturn component;\n\t}",
"Component getComponent() {\n/* 224 */ return this.component;\n/* */ }",
"public Component getComponent(String path)\r\n {\r\n Class<? extends Component> componentClass = components.get(path);\r\n if (componentClass == null)\r\n {\r\n return null;\r\n }\r\n Constructor<?>[] constructors = componentClass.getConstructors();\r\n for (Constructor<?> constructor : constructors)\r\n {\r\n if ((constructor.getParameterTypes().length == 1) \r\n && (constructor.getParameterTypes()[0] == Component.class))\r\n {\r\n Component instance;\r\n try\r\n {\r\n instance = (Component) constructor.newInstance(new Object[] {null});\r\n } catch (InstantiationException | IllegalAccessException\r\n | IllegalArgumentException | InvocationTargetException e)\r\n {\r\n throw new RuntimeException(e);\r\n }\r\n postConstruct(instance);\r\n return instance;\r\n }\r\n }\r\n throw new IllegalStateException(\"Component of class \" + componentClass.getName() \r\n + \" has no constructor with a single Component parameter\");\r\n }",
"ComponentsType createComponentsType();",
"ComponentRefType createComponentRefType();",
"@Override\n\tpublic Component getComponent() {\n\t\treturn this;\n\t}",
"public Component load(){\n\t\treturn this;\n\t}",
"public interface Datum {\n\n Component createComponent(ComponentContext c);\n}",
"ComponentParameterInstance createComponentParameterInstance();",
"public AppComponent component(){\n return mComponent;\n }",
"public ComponentsFactory() {\n\t\tsuper();\n\t}",
"public ComponentMover() {\n\t}",
"DsmlComponent createDsmlComponent();",
"ViewComponent createViewComponent();",
"@Override\n public Component getComponent() {\n if (component == null) {\n component = new PubMLSTVisualPanel2();\n }\n component.setPreferredSize(new java.awt.Dimension(480,340));\n return component;\n }",
"public Entity getComponent() {\n return component;\n }",
"public interface DomainBuilderComponent extends PropertyChangeListener {\n\t/**\n\t * get name of the component\n\t * @return\n\t */\n\tpublic String getName();\n\t\n\t/**\n\t * get icon for the component\n\t * @return\n\t */\n\tpublic Icon getIcon();\n\t\n\t\n\t/**\n\t * get component\n\t * @return\n\t */\n\tpublic Component getComponent();\n\t\n\t\n\t/**\n\t * get menu bar\n\t * @return\n\t */\n\tpublic JMenuBar getMenuBar();\n\t\n\t\n\t/**\n\t * load whatever resources one needs to get this piece working \n\t */\n\tpublic void load();\n\t\n\t/**\n\t * dispose of this component\n\t */\n\tpublic void dispose();\n}",
"public synchronized StoreComp.Component _newComponent(final StoreComp.Requires b, final boolean start) {\n if (this.init) {\n \tthrow new RuntimeException(\"This instance of StoreComp has already been used to create a component, use another one.\");\n }\n this.init = true;\n StoreComp.ComponentImpl _comp = new StoreComp.ComponentImpl(this, b, true);\n if (start) {\n \t_comp.start();\n }\n return _comp;\n }",
"protected ComponentModel getComponentModel()\n {\n return componentModel;\n }",
"ISModifyComponent createISModifyComponent();",
"public InjectingComponentType() {\n }",
"Builder setComponent(String component);",
"protected void setComponent(Component newComponent) {\n\tcomponent = newComponent;\n}",
"public static Component getCopy(Component component) {\n\t\tComponent componentcopy = interFactory.createComponent();\n\t\tcomponentcopy = (Component) EcoreUtil.copy(component);\t\n\t\treturn componentcopy;\n\t}",
"protected XComponent(J component) {\n if (component == null)\n throw new IllegalArgumentException(\"Component to be decorated cannot be null.\");\n this.component = component;\n }",
"protected Node getComponentNode() {\n return componentNode;\n }",
"public static ComponentUI createUI(JComponent pComponent)\r\n {\r\n return new OSDarkLAFComboBoxUI();\r\n }",
"private JComponent initComponent(Class compClass, String label) {\r\n\t\tJComponent comp = null;\r\n\t\tif (compClass == JLabel.class) {\r\n\t\t\tcomp = new JLabel(label);\t\t\t\r\n\t\t}\r\n\t\telse if (compClass == JTextField.class) {\r\n\t\t\tcomp = new JTextField();\t\t\t\r\n\t\t}\r\n\t\telse if (compClass == JComboBox.class) {\r\n\t\t\tcomp = new JComboBox();\r\n\t\t\t((JComboBox) comp).addActionListener(this);\r\n\t\t}\r\n\t\telse if (compClass == JButton.class) {\r\n\t\t\tcomp = new JButton(label);\r\n\t\t\t((JButton) comp).addActionListener(this);\r\n\t\t}\r\n\t\telse if (compClass == JRadioButton.class) {\r\n\t\t\tcomp = new JRadioButton(label);\r\n\t\t\t((JRadioButton) comp).addActionListener(this);\r\n\t\t}\r\n\t\telse if (compClass == JMenuItem.class) {\r\n\t\t\tcomp = new JMenuItem(label);\r\n\t\t\t((JMenuItem) comp).addActionListener(this);\r\n\t\t}\r\n\t\telse if (compClass == JCheckBox.class) {\r\n\t\t\tcomp = new JCheckBox(label);\r\n\t\t\t((JCheckBox) comp).addActionListener(this);\r\n\t\t}\r\n\t\tcomp.setFont(tahoma);\r\n\t\treturn comp;\r\n\t}",
"public abstract Component getComponentByName(String name);",
"public Object createComponent( final String implementationKey )\n throws Exception\n {\n final Class clazz = getClassLoader().loadClass( implementationKey );\n return clazz.newInstance();\n }",
"public void add(Component c){}",
"public OpenEcompComponentEntity toEntity() {\n OpenEcompComponentEntity destination = new OpenEcompComponentEntity();\n destination.setId(this.getId());\n destination.setName(this.getName());\n return destination;\n }",
"public String getComponent() {\r\n\t\treturn component;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public <T extends Component> T getComponent() {\n try {\n return (T) component;\n } catch (ClassCastException ex) {\n getLogger().log(Level.SEVERE,\n \"Component code/design type mismatch\", ex);\n }\n return null;\n }",
"public Component getOrCreateComponent(String componentName, Callable<Component> factory) {\n synchronized (components) {\n Component component = components.get(componentName);\n if (component == null) {\n try {\n component = factory.call();\n if (component == null) {\n throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n + \" component, it returned null.\");\n }\n components.put(componentName, component);\n component.setCamelContext(this);\n } catch (Exception e) {\n throw new RuntimeCamelException(\"Factory failed to create the \" + componentName\n + \" component\", e);\n }\n }\n return component;\n }\n }",
"public ExampleComponent(Component parent) {\n super(parent);\n }",
"public synchronized RemoteFactory.Agent.Component<Msg, Ref> _newComponent(final RemoteFactory.Agent.Requires<Msg, Ref> b, final boolean start) {\n if (this.init) {\n \tthrow new RuntimeException(\"This instance of Agent has already been used to create a component, use another one.\");\n }\n this.init = true;\n RemoteFactory.Agent.ComponentImpl<Msg, Ref> _comp = new RemoteFactory.Agent.ComponentImpl<Msg, Ref>(this, b, true);\n if (start) {\n \t_comp.start();\n }\n return _comp;\n }",
"public void addComponent(Component c);",
"public String getComponent() {\n return this.component;\n }",
"protected RemoteFactory.Agent.Component<Msg, Ref> newAgent() {\n RemoteFactory.Agent<Msg, Ref> _implem = _createImplementationOfAgent();\n return _implem._newComponent(new RemoteFactory.Agent.Requires<Msg, Ref>() {},true);\n }",
"public ComponentTypeMock(){\n\t\tattributes = \"component\";\n\t}",
"public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.util.collections.WrapperMap();\n }",
"public Component getComponent() {\n if (getUserObject() instanceof Component)\n return (Component)getUserObject();\n return null;\n }",
"public static ApplicationComponent component() {\n return instance().applicationComponent;\n }",
"private Component createComponent(XmlNode node, String id) {\n\n Component comp = null;\n String tag = node.getTag();\n\n if (tag.equals(TAG_PANEL)) {\n comp = layoutContainer(new JPanel(), node, node.getChildren());\n } else if (tag.equals(TAG_BORDER)) {\n comp = layoutBorder(node, node.getChildren());\n } else if (tag.equals(TAG_TEXTINPUT)) {\n int cols = node.getAttribute(ATTR_COLS, -1);\n int rows = node.getAttribute(ATTR_ROWS, -1);\n String value = node.getAttribute(ATTR_VALUE, \"\");\n\n JTextComponent textComp;\n if (rows > 1) {\n if (cols < 0) {\n cols = 30;\n }\n textComp = new JTextArea(value, rows, cols);\n } else {\n if (cols == -1) {\n textComp = new JTextField(value);\n } else {\n textComp = new JTextField(value, cols);\n }\n ((JTextField) textComp).addActionListener(this);\n }\n comp = textComp;\n String action = node.getAttribute(ATTR_ACTION, (String) null);\n if (action != null) {\n componentToAction.put(textComp, action);\n }\n } else if (tag.equals(TAG_MENUITEM) || tag.equals(TAG_CBMENUITEM)) {\n String actionTemplate = null;\n JMenuItem mi;\n String label = node.getAttribute(ATTR_LABEL, \"\");\n String action = node.getAttribute(ATTR_ACTION);\n String value = node.getAttribute(ATTR_VALUE);\n String key = node.getAttribute(ATTR_KEY);\n if ((action == null) && (actionTemplate != null)\n && (value != null)) {\n action = GuiUtils.replace(actionTemplate, \"%value%\", value);\n }\n if ((key != null) && !key.startsWith(\"group:\")) {\n label = label + \" \" + key;\n }\n\n if (node.getTag().equals(TAG_CBMENUITEM)) {\n boolean initValue = node.getAttribute(ATTR_VALUE, true);\n JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem(label,\n initValue);\n String group = node.getAttribute(ATTR_GROUP, (String) null);\n addToGroup(group, cbmi);\n mi = cbmi;\n if (action != null) {\n Hashtable actions = new Hashtable();\n actions.put(ATTR_ACTION, action);\n actions.put(ATTR_VALUE, new Boolean(initValue));\n componentToAction.put(cbmi, actions);\n cbmi.addItemListener(this);\n if ((group == null) || initValue) {\n itemStateChanged(new ItemEvent(cbmi, 0, cbmi,\n ItemEvent.ITEM_STATE_CHANGED));\n }\n }\n\n if (key != null) {\n if (key.startsWith(\"group:\")) {\n if (group != null) {\n key = key.substring(6);\n keyToComponent.put(key.toLowerCase(), group);\n }\n } else {\n keyToComponent.put(key.toLowerCase(), mi);\n }\n }\n } else {\n mi = new JMenuItem(label);\n if (action != null) {\n mi.setActionCommand(action);\n mi.addActionListener(this);\n if (key != null) {\n keyToComponent.put(key.toLowerCase(), mi);\n }\n }\n }\n if (id != null) {\n idToMenuItem.put(id, mi);\n }\n comp = mi;\n } else if (tag.equals(TAG_MENU)) {\n Vector children = node.getChildren();\n JMenu menu = new JMenu(node.getAttribute(ATTR_LABEL, \"\"));\n comp = menu;\n for (int i = 0; i < children.size(); i++) {\n XmlNode childElement = (XmlNode) children.get(i);\n if (childElement.getTag().equals(TAG_SEPARATOR)) {\n menu.addSeparator();\n\n continue;\n }\n Component childComponent = xmlToUi(childElement);\n if (childComponent == null) {\n continue;\n }\n menu.add(childComponent);\n }\n } else if (tag.equals(TAG_MENUBAR)) {\n Vector children = node.getChildren();\n JMenuBar menuBar = new JMenuBar();\n comp = menuBar;\n for (int i = 0; i < children.size(); i++) {\n XmlNode childElement = (XmlNode) children.get(i);\n Component childComponent = xmlToUi(childElement);\n if (childComponent == null) {\n continue;\n }\n menuBar.add(childComponent);\n }\n } else if (tag.equals(TAG_SPLITPANE)) {\n Vector xmlChildren = node.getChildren();\n if (xmlChildren.size() != 2) {\n throw new IllegalArgumentException(\n \"splitpane tag needs to have 2 children \" + node);\n }\n XmlNode leftNode = getReffedNode((XmlNode) xmlChildren.get(0));\n XmlNode rightNode = getReffedNode((XmlNode) xmlChildren.get(1));\n Component leftComponent = xmlToUi(leftNode);\n Component rightComponent = xmlToUi(rightNode);\n boolean continuous = node.getAttribute(ATTR_CONTINUOUS, true);\n int orientation = findValue(node.getAttribute(ATTR_ORIENTATION,\n (String) null), SPLITPANE_NAMES,\n SPLITPANE_VALUES);\n\n JSplitPane split = new JSplitPane(orientation, continuous,\n leftComponent, rightComponent);\n int divider = node.getAttribute(ATTR_DIVIDER, -1);\n if (divider != -1) {\n split.setDividerLocation(divider);\n }\n split.setOneTouchExpandable(\n node.getAttribute(ATTR_ONETOUCHEXPANDABLE, true));\n double resizeweight = node.getAttribute(ATTR_RESIZEWEIGHT, -1.0);\n if (resizeweight != -1.0) {\n split.setResizeWeight(resizeweight);\n }\n comp = split;\n } else if (tag.equals(TAG_LABEL)) {\n String label = node.getAttribute(ATTR_LABEL, \"\");\n comp = new JLabel(label, getAlign(node));\n } else if (tag.equals(TAG_IMAGE)) {\n comp = makeImageButton(node, null, null);\n } else if (tag.equals(TAG_SHAPEPANEL)) {\n comp = new ShapePanel(this, node);\n } else if (tag.equals(TAG_BUTTON)) {\n JButton b = new JButton(node.getAttribute(ATTR_LABEL, \"\"));\n b.setActionCommand(node.getAttribute(ATTR_ACTION, \"No action\"));\n b.addActionListener(this);\n comp = b;\n } else if (tag.equals(TAG_CHOICE)) {\n Choice b = new java.awt.Choice();\n String action = node.getAttribute(ATTR_ACTION,\n (String) null);\n int selected = node.getAttribute(ATTR_SELECTED, 0);\n Hashtable actions = new Hashtable();\n for (int i = 0; i < node.size(); i++) {\n XmlNode child = getReffedNode(node.get(i));\n if ( !child.getTag().equals(TAG_ITEM)) {\n throw new IllegalArgumentException(\"Bad choice item:\"\n + child);\n }\n b.add(child.getAttribute(ATTR_LABEL, \"\"));\n String value = child.getAttribute(ATTR_VALUE, (String) null);\n if (value != null) {\n actions.put(ATTR_VALUE + i, value);\n }\n String subAction = child.getAttribute(ATTR_ACTION,\n (String) null);\n if (subAction != null) {\n actions.put(ATTR_ACTION + i, subAction);\n }\n }\n comp = b;\n if (action != null) {\n actions.put(ATTR_ACTION, action);\n componentToAction.put(b, actions);\n b.select(selected);\n b.addItemListener(this);\n itemStateChanged(new ItemEvent(b, 0, b,\n ItemEvent.ITEM_STATE_CHANGED));\n }\n } else if (tag.equals(TAG_CHECKBOX)) {\n JCheckBox b = new JCheckBox(node.getAttribute(ATTR_LABEL, \"\"),\n node.getAttribute(ATTR_VALUE, false));\n String action = node.getAttribute(ATTR_ACTION, (String) null);\n comp = b;\n if (action != null) {\n componentToAction.put(comp, action);\n b.addItemListener(this);\n itemStateChanged(new ItemEvent(b, 0, b,\n ItemEvent.ITEM_STATE_CHANGED));\n }\n } else {\n comp = new JLabel(\"Unknown tag:\" + tag);\n System.err.println(\"Unknown tag:\" + node);\n }\n\n return comp;\n\n }",
"public GuiComponent(String componentName) {\n\t\tsuper(componentName);\n\t}",
"public static ComponentVO getComponent(final int componentId) {\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tComponentEntity comp = session.get(ComponentEntity.class, componentId);\n\t\ttxn.commit();\n\t\t\n\t\tComponentVO cVO = new ComponentVO();\n\t\tcVO.setComponentId(comp.getComponentId());\n\t\tcVO.setComponentName(comp.getComponentName());\n\t\tcVO.setComponentDesc(comp.getComponentDesc());\n\t\tif(comp.getParentComponent() != null){\n\t\t\tcVO.setParentComponentId(comp.getParentComponent().getComponentId());\n\t\t\tcVO.setParentComponentName(comp.getParentComponent().getComponentName());\n\t\t}\n\t\tcVO.setComponentTypeId(comp.getComponentType().getComponentTypeId());\n\t\tcVO.setDelInd(comp.getDelInd());\n\t\t\n\t\treturn cVO;\n\t}",
"public void addComponent(String name, Component newComp);",
"public Object load(String compName) {\n\t\tif (this.preLoaded) {\n\t\t\treturn this.cachedOnes.get(compName);\n\t\t}\n\t\tString fileName = componentFolder + this.folder\n\t\t\t\t+ compName.replace(DELIMITER, FOLDER_CHAR) + EXTN;\n\t\tException exp = null;\n\t\tObject obj = null;\n\t\ttry {\n\t\t\tobj = this.cls.newInstance();\n\t\t\tif (XmlUtil.xmlToObject(fileName, obj) == false) {\n\t\t\t\t/*\n\t\t\t\t * load failed. obj is not valid any more.\n\t\t\t\t */\n\t\t\t\tobj = null;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\texp = e;\n\t\t}\n\n\t\tif (exp != null) {\n\t\t\tTracer.trace(exp, \"error while loading component \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\tif (obj == null) {\n\t\t\tTracer.trace(\"error while loading component \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\t/*\n\t\t * we insist that components be stored with the right naming convention\n\t\t */\n\t\tComponent comp = (Component) obj;\n\t\tString fullName = comp.getQualifiedName();\n\n\t\tif (compName.equalsIgnoreCase(fullName) == false) {\n\t\t\tTracer.trace(\"Component has a qualified name of \" + fullName\n\t\t\t\t\t+ \" that is different from its storage name \" + compName);\n\t\t\treturn null;\n\t\t}\n\t\treturn comp;\n\t}",
"public HtmlComponent createComponent()\r\n\t{\r\n\t\tJspLink link = new JspLink(getName(), _href, getHelper().getController());\r\n\t\tif (_target != null)\r\n\t\t\tlink.setTarget(_target);\r\n\t\tif (_onClick != null)\r\n\t\t\tlink.setOnClick(_onClick);\r\n\t\tif (_onMouseOver != null)\r\n\t\t\tlink.setOnMouseOver(_onMouseOver);\r\n\t\tif (_onMouseOut != null)\r\n\t\t\tlink.setOnMouseOut(_onMouseOut);\r\n\t\tif (getClassname() != null)\r\n\t\t\tlink.setStyle(getClassname());\r\n\t\tif (_dataSource != null)\r\n\t\t\tlink.setDataSource(_dataSource);\r\n\t\tif (_bracket != null)\r\n\t\t {\r\n\t\t link.setBracket(BaseTagHelper.stringToBoolean(getBracket(),false));\r\n\t\t if (_bracketFont != null)\r\n\t\t\tlink.setBracketFont(_bracketFont);\r\n\t\t }\r\n\t\treturn link;\r\n\t}",
"public C startComponent() {\n return startComponent(null);\n }",
"public Component getComponent(long id) {\n\t\treturn (Component)sessionFactory.getCurrentSession().get(Component.class, id);\n\t}",
"protected StateMachinesHelper getComponent() {\r\n return impl;\r\n }",
"public ConverterComponent() {\n\t}",
"@Override\n public CreateComponentResult createComponent(CreateComponentRequest request) {\n request = beforeClientExecution(request);\n return executeCreateComponent(request);\n }",
"public synchronized Memory.Component<SharedMemory> _newComponent(final Memory.Requires<SharedMemory> b, final boolean start) {\r\n if (this.init) {\r\n \tthrow new RuntimeException(\"This instance of Memory has already been used to create a component, use another one.\");\r\n }\r\n this.init = true;\r\n Memory.ComponentImpl<SharedMemory> _comp = new Memory.ComponentImpl<SharedMemory>(this, b, true);\r\n if (start) {\r\n \t_comp.start();\r\n }\r\n return _comp;\r\n }",
"public Component prepare(){\n\t\treturn this;\n\t}",
"public static ComponentUI createUI(JComponent x) {\n return new BasicMenuUI(); }",
"@Override\n\tpublic Component getComponent() {\n\t\treturn p;\n\t}",
"public synchronized RemoteFactory.Component<Msg, Ref> _newComponent(final RemoteFactory.Requires<Msg, Ref> b, final boolean start) {\n if (this.init) {\n \tthrow new RuntimeException(\"This instance of RemoteFactory has already been used to create a component, use another one.\");\n }\n this.init = true;\n RemoteFactory.ComponentImpl<Msg, Ref> _comp = new RemoteFactory.ComponentImpl<Msg, Ref>(this, b, true);\n if (start) {\n \t_comp.start();\n }\n return _comp;\n }",
"public Component(String myName, String myType, double myWeight, double myPrice, String myDescription, boolean myObsolete, boolean myApproved)\n {\n this.name = myName;\n this.partNumber = numberOfParts++;\n this.type = myType;\n this.weight = myWeight;\n this.price = myPrice;\n this.description = myDescription;\n this.isObsolete = myObsolete;\n this.isApproved = myApproved;\n }",
"public abstract JComponent getComponent();",
"void addComponent(Component component);",
"public void setComponent(String newComponent) {\r\n\t\tcomponent = newComponent;\r\n\t}",
"ComponentAllocationFactory getComponentAllocationFactory();",
"@Override\n public JComponent getComponent () {\n return this;\n }",
"public Class<?> getComponentType();",
"public JComponent getComponent();",
"@Override\n\tpublic ModIndexedInstance createNewInstance() {\n\t\tModIndexedInstance newInst = new ModIndexedInstance(); // create the new instance\n\t\tnewInst.setRegComp(this); // set component type of new instance\n\t\taddInstanceOf(newInst); // add instance to list for this comp\n\t\treturn newInst;\n\t}",
"void instantiateComponents();",
"Component duplicateComponentFound(Component component, String name, String type, String description, String technology);",
"Compleja createCompleja();",
"public ComponentDescriptor() {\r\n\t\t// initialize empty collections\r\n\t\tconstructorParametersTypes = new LinkedList<List<Class<?>>>();\r\n//\t\trequiredProperties = new HashMap<String, MetaProperty>();\r\n//\t\toptionalProperties = new HashMap<String, MetaProperty>();\r\n\t}",
"@Override\n\tpublic Component clone() {\n\t\treturn null;\n\t}",
"public static com.tangosol.coherence.Component get_Instance()\n {\n return new com.tangosol.coherence.component.util.collections.WrapperMap.Values();\n }",
"public interface Component {\n\n /** Property name for the 'cost' property. */\n public static final String PROP_COST = \"cost\";\n /** Property name for the 'label' property. */\n public static final String PROP_LABEL = \"label\";\n\n /**\n * Add a PropertyChangeListener to the listener list.\n *\n * @param listener the PropertyChangeListener to be added.\n */\n void addPropertyChangeListener(PropertyChangeListener listener);\n\n /**\n * Returns the value of the property with the specified key. Only\n * properties added with <code>putClientProperty</code> will return\n * a non-null value.\n *\n * @param key the key being queried.\n * @return the value of this property or <code>null</code>.\n */\n Object getClientProperty(Object key);\n\n /**\n * Returns the cost of the edge.\n *\n * @return distance between the two endpoints.\n */\n double getCost();\n\n /**\n * Returns the string label for this edge. This will never return a\n * null reference, as it will create an empty string if there is not\n * a label already set.\n *\n * @return label for this edge.\n */\n String getLabel();\n\n /**\n * Returns the component model this component belongs to.\n *\n * @return component model for this component.\n */\n Model getModel();\n\n /**\n * Adds an arbitrary key/value \"client property\" to this component.\n *\n * <p>The <code>get/putClientProperty</code> methods provide access\n * to a small per-instance hashtable. Callers can use\n * get/putClientProperty to annotate components that were created\n * by another module.</p>\n *\n * <p>If value is <code>null</code> this method will remove the\n * property. Changes to client properties are reported with\n * <code>PropertyChange</code> events. The name of the property\n * (for the sake of PropertyChange events) is\n * <code>key.toString()</code>.</p>\n *\n * @param key the new client property key.\n * @param value the new client property value; if\n * <code>null</code> the property will be removed.\n */\n void putClientProperty(Object key, Object value);\n\n /**\n * Remove a PropertyChangeListener from the listener list.\n *\n * @param listener the PropertyChangeListener to be removed.\n */\n void removePropertyChangeListener(PropertyChangeListener listener);\n\n /**\n * Sets the cost of the edge. Once the cost is set it will not be\n * modified until subsequent calls to this method.\n *\n * @param cost new cost for this edge.\n */\n void setCost(double cost);\n\n /**\n * Sets the string label of this edge.\n *\n * @param label new label for this edge.\n */\n void setLabel(String label);\n}",
"@Override\n\tpublic Component getComponent() {\n\t\tComponent component = button.getComponent();\n\t\tcomponent.setBackground(color);\n\t\treturn component;\n\t}",
"@Override\n public SelectCurriculumVisualPanel getComponent() {\n if (component == null) {\n component = new SelectCurriculumVisualPanel();\n component.manager.addPropertyChangeListener(this);\n }\n return component;\n }",
"@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}",
"public Component select( Object hint )\n throws ComponentException\n {\n final Component component = (Component)m_components.get( hint );\n\n if( null != component )\n {\n return component;\n }\n else\n {\n throw new ComponentException( hint.toString(), \"Unable to provide implementation.\" );\n }\n }",
"@Override\n\tpublic Component getComponent() {\n\t\treturn toolbox;\n\t}",
"public Component getComponent()\n {\n if(null == _sqlPanel)\n {\n _sqlPanel = createSqlPanel();\n }\n return _sqlPanel;\n }",
"public X add(Component component) {\n this.component.add(component);\n return (X) this;\n }",
"public C startComponentWithoutMarkup(final IModel<M> model) {\n specifiedComponent = newComponent(\"component\", model);\n wicket.startComponent(specifiedComponent);\n return specifiedComponent;\n }",
"public void testGetComponent() {\n System.out.println(\"getComponent\"); // NOI18N\n \n document.getTransactionManager().writeAccess(new Runnable() {\n public void run() {\n DesignComponent comp = document.createComponent(FirstCD.TYPEID_CLASS);\n DesignComponent result = PropertyValue.createComponentReference(comp).getComponent();\n DesignComponent expResult = comp;\n \n assertEquals(expResult,result);\n }\n });\n \n }",
"JComponent getImpl();",
"public JComponent getComponent() {\n return itsComp;\n }",
"public Component build(){\n\t\tif(children!=null)\n\t\t\tnew CollectionHelper.Iterator.Adapter.Default<Component>(children.getElements()){\n\t\t\t\tprivate static final long serialVersionUID = 1L;\n\t\t\t\t@Override\n\t\t\t\tprotected void __executeForEach__(Component component) {\n\t\t\t\t\tcomponent.build();\n\t\t\t\t}\n\t\t\t}.execute();\n\t\t//built = ListenerHelper.getInstance()\n\t\t//\t\t.listenObject(Listener.COLLECTION, Listener.METHOD_NAME_BUILD, MethodHelper.Method.Parameter.buildArray(Component.class,this));\n\t\tbuilt = ClassHelper.getInstance().instanciateOne(Listener.class).build(this);\n\t\thasBeenBuilt = Boolean.TRUE;\n\t\treturn this;\n\t}",
"public PackageComponent() {\r\n this(\"UntitledPackage\");\r\n }",
"@GET\n\t@Path(\"/component/{componentName}/new\")\n\t@Produces( MediaType.APPLICATION_JSON )\n\tInstance createInstanceFromComponent( @PathParam(\"name\") String applicationName, @PathParam(\"componentName\") String componentName );"
] | [
"0.72021186",
"0.7062269",
"0.67909646",
"0.6709123",
"0.6699051",
"0.6644619",
"0.66390914",
"0.66340303",
"0.65974283",
"0.6582596",
"0.65624875",
"0.64991826",
"0.6492991",
"0.6453156",
"0.6400001",
"0.63918823",
"0.63732374",
"0.63058114",
"0.6280168",
"0.6278394",
"0.61918604",
"0.6179705",
"0.6170426",
"0.6160209",
"0.61086774",
"0.6106877",
"0.6103575",
"0.6102955",
"0.60953444",
"0.6033045",
"0.5990385",
"0.5979692",
"0.59782964",
"0.5976774",
"0.5975119",
"0.5963781",
"0.5938318",
"0.593151",
"0.59271646",
"0.5912449",
"0.5908151",
"0.58886844",
"0.58840394",
"0.5878902",
"0.58754",
"0.5870543",
"0.58698493",
"0.58545905",
"0.58492535",
"0.5831356",
"0.5814724",
"0.58047724",
"0.5798513",
"0.5794684",
"0.5787418",
"0.57848996",
"0.5781366",
"0.57745063",
"0.5773007",
"0.576894",
"0.57689106",
"0.5763767",
"0.5760585",
"0.5759845",
"0.574493",
"0.57295567",
"0.571674",
"0.5688523",
"0.5680305",
"0.5672348",
"0.5666267",
"0.56652737",
"0.5657211",
"0.5647142",
"0.56287086",
"0.56194174",
"0.5618893",
"0.5601072",
"0.55988955",
"0.55817336",
"0.55788517",
"0.5574239",
"0.5564935",
"0.55550385",
"0.55425113",
"0.5538854",
"0.5533917",
"0.5522196",
"0.55178356",
"0.55166227",
"0.5502208",
"0.54908746",
"0.5486361",
"0.5486213",
"0.5483698",
"0.5481013",
"0.54788536",
"0.54670364",
"0.5466905"
] | 0.8138743 | 0 |
Returns a new object of class 'Projeto RN'. | ProjetoRN createProjetoRN(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Prova() {}",
"Compleja createCompleja();",
"public ProductoCreable newInstance(int codigo, String nombre){\r\n \r\n }",
"Compuesta createCompuesta();",
"public TypeProjet getTypeProjet (String nomProjet) throws RemoteException {\r\n\t\t\t\t \t\t \r\n\t\t return new TypeProjetImpl(nomProjet,database);\t\t\r\n\t\t}",
"private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}",
"public Produto() {}",
"public TypeProjet getTypeProjetByID (int TypeProjet) throws RemoteException {\r\n\t\t\t\t\t \t\t \r\n\t\t return new TypeProjetImpl(TypeProjet,database);\t\t\r\n\t\t}",
"public static Livro criarLivro() {\n\n\t\tLivro livro = new Livro();\n\n\t\tString codigo = Console.recuperaTexto(\"Informe o código:\");\n\t\tlivro.setCodigo(codigo);\n\t\tString titulo = Console.recuperaTexto(\"Informe o título:\");\n\t\tlivro.setTitulo(titulo);\n\n\t\tArrayList<String> autores = new ArrayList<>();\n\t\tInteger quantidade = Console.recuperaInteiro(\"Quantos autores?\");\n\t\tfor (int i = 0; i < quantidade; i++) {\n\t\t\tString autor = Console.recuperaTexto(\"Informe o autor \" + (i + 1) + \":\");\n\t\t\tautores.add(autor);\n\t\t}\n\t\tlivro.setAutores(autores);\n\n\t\tString isbn = Console.recuperaTexto(\"Informe o ISBN:\");\n\t\tlivro.setIsbn(isbn);\n\t\tInteger ano = Console.recuperaInteiro(\"Informe o ano:\");\n\t\tlivro.setAno(ano);\n\n\t\treturn livro;\n\n\t}",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"public Project createProjectFromPRJ() {\n\n\t\tSystem.out.println(\"Trying to load prj file with : \" + data_path + \" \" + projectName + \" \" + conceptName + \" \");\n\n\t\tProject project = null;\n\n\t\ttry {\n\n\t\t\tproject = new Project(data_path + projectName);\n\n\t\t\t// Sehr wichtig hier das Warten einzubauen, sonst gibts leere\n\t\t\t// Retrieval Results, weil die Faelle noch nicht geladen sind wenn\n\t\t\t// das\n\t\t\t// Erste Retrieval laueft\n\t\t\twhile (project.isImporting()) {\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\"); // console pretty print\n\t\t} catch (Exception ex) {\n\n\t\t\tSystem.out.println(\"Error when loading the project\");\n\t\t}\n\t\treturn project;\n\t}",
"Parcelle createParcelle();",
"public Projet getProjetByID (int idProjet) throws RemoteException {\r\n\t\t\r\n\t\t \r\n\t\t return new ProjetImpl(idProjet,database);\r\n\t\t}",
"public ProductoNoElaborado() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public ControllerProtagonista() {\n\t}",
"Oracion createOracion();",
"public Propiedad(){\n\t}",
"public PanelNewProject getNewProject(){\n return nuevoProyecto;\n }",
"private Nota criarNota(){\n\n Nota nota = new Nota();\n nota.setTitulo(edtTituloNota.getText().toString());\n nota.setValor(Float.parseFloat(edtNotaAluno.getText().toString()));\n\n return nota;\n }",
"private PeriodoAcademicos Crear(ResultSet rs) {\n PeriodoAcademicos obj;\n try {\n obj = new PeriodoAcademicos();\n obj.setCodigo(rs.getLong(\"codigo_paca\"));\n obj.setCodioPadre(rs.getLong(\"codigopadre_paca\"));\n obj.setNombre(rs.getString(\"nombre_paca\"));\n obj.setDescripcion(rs.getString(\"descripcion_paca\"));\n obj.setEstado(rs.getString(\"estado_paca\").charAt(0));\n\n return obj;\n } catch (Exception ex) {\n throw new RuntimeException(\"Error al Crear Objeto\");\n }\n }",
"public TipoPrestamo() {\n\t\tsuper();\n\t}",
"public Libro(String codigo, String titulo, String autor, int editorial, String ISBN, String anioEdicion, int numEdicion, int pais, int idioma, String materia, int paginas, String ubicacion, String descripcion, String tipo, String estado) {\r\n this.codigo = codigo;\r\n this.titulo = titulo;\r\n this.autor = autor;\r\n this.editorial = editorial;\r\n this.ISBN = ISBN;\r\n this.anioEdicion = anioEdicion;\r\n this.numEdicion = numEdicion;\r\n this.pais = pais;\r\n this.idioma = idioma;\r\n this.materia = materia;\r\n this.paginas = paginas;\r\n this.ubicacion = ubicacion;\r\n this.descripcion = descripcion;\r\n this.tipo = tipo;\r\n this.estado = estado;\r\n }",
"public Plato(){\n\t\t\n\t}",
"public Candidatura (){\n \n }",
"public Producto (){\n\n }",
"public CMObject newInstance();",
"public prueba()\r\n {\r\n }",
"public Respuesta() {\n }",
"public Pila () {\n raiz=null; //Instanciar un objeto tipo nodo;\n }",
"private prestarComputador obtenerComputador() {\n String d = dFormat.format(TXTFechaDeEntrega.getDate());\n prestarComputador elcomputador = new prestarComputador();\n elcomputador.setFechaDeEntrega(dFormat.format(TXTFechaDeEntrega.getDate()));\n elcomputador.setSerialComputadorDoy(TXTSerialEquipo.getText());\n elcomputador.setIdBibliotecario(TXTIdBibliotecario.getText());\n elcomputador.setIdUsuario(TXTIdUsuario.getText());\n elcomputador.setFechaDePrestamo(TXTFechaDePrestamo.getText());\n return elcomputador;\n }",
"public RubyObject createObject() {\n\t\treturn (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(\"return RPG::Troop::Page.new\");\n\t}",
"public Producto() {\r\n }",
"public ConstrutorDeLeilao para(String produto) {\n\t\t\r\n\t\t this.leilao = new Leilao(produto);\r\n\t\treturn this;\r\n\t}",
"Concierto createConcierto();",
"public Persona(){\n \n }",
"public Persona(){\n \n }",
"@Override\n public void crearReloj() {\n Manecilla seg;\n seg = new Manecilla(40,60,0,1,null);\n cronometro = new Reloj(seg);\n }",
"public TelaCadastrarProduto() {\n initComponents();\n entidade = new Produto();\n setRepositorio(RepositorioBuilder.getProdutoRepositorio());\n grupo.add(jRadioButton1);\n grupo.add(jRadioButton2);\n }",
"Persoana createPersoana(String nume, int varsta) {\n return new Persoana(nume, varsta);\n }",
"public TipoDocumentoMB() {\n tipoDoc = new TipoDocPersona();\n }",
"public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }",
"public Propuestas() {}",
"private Project compileProject() {\n\t\t\tProject p = null;\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new OngoingProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pDeadline.getText()), Double.parseDouble(pBudget.getText()), Integer.parseInt(pCompletion.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\ttry {\n\t\t\t\t\tp = new FinishedProject(pCode.getText(), pName.getText(), dateFormat.parse(pSDate.getText()),pClient.getText(), dateFormat.parse(pEndDate.getText()), Double.parseDouble(pTotalCost.getText()));\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\n\t\t\treturn p;\n\t\t}",
"public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }",
"public Troco() {\n }",
"public Recursos() {\n }",
"public CompositePersonne() {\n\t\tthis.nomGroupe = \" \";\n\t\tthis.personnel = new ArrayList<InterfacePersonne>();\n\n\t}",
"public Persona() {\n \t\n }",
"public CadastroProdutoNew() {\n initComponents();\n }",
"public ArrayList <Projet> getProjet (String nomTypeProjet) throws RemoteException {\r\n\t\t\tArrayList <Projet> list = new ArrayList <Projet>();\r\n\t\t\t\r\n\t\t String requete = \"select * from projet where p_idType in (select t_id from typeprojet where t_nom = '\" \r\n\t\t \t\t\t\t + nomTypeProjet + \"' )\"; \r\n\t\t System.out.println(\"\\nrequete getProjet : \" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t\r\n\t\t Projet p = null;\r\n\t\t String[] line = null;\r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tline = data.nextElement();\r\n\t\t \tp = new ProjetImpl (Integer.parseInt(line[1]), line[2], line[3], Integer.parseInt(line[4]),\r\n\t\t \t\t\tInteger.parseInt(line[5]), Integer.parseInt(line[6]), Integer.parseInt(line[7]),\r\n\t\t \t\t\tInteger.parseInt(line[8]));\r\n\t\t \tlist.add(p);\r\n\t\t }\r\n\t\t \r\n\t\t return list;\r\n\t\t}",
"public ProyectoSocial crearProyectoSocial(Proponente p,String nombre, String descrL, String descC , double cost ,String gSocial, Boolean nac){\r\n\t\t\r\n\t\tProyectoSocial proyecto;\r\n\t\t\r\n\t\tif(p.getClass().getSimpleName().equals(\"Colectivo\")) {\r\n\t\t\tColectivo c = (Colectivo) p;\r\n\t\t\tproyecto = new ProyectoSocial(p,c.getUsuarioRepresentanteDeColectivo() ,nombre,descrL, descC, cost,gSocial, nac);\r\n\t\t\t\r\n\t\t}else {//Usuario\r\n\t\t\tUsuario u = (Usuario) p;\r\n\t\t\tproyecto = new ProyectoSocial(u,u,nombre,descrL, descC, cost,gSocial, nac);\r\n\t\t\t\r\n\t\t}\r\n\t\tp.proponerProyecto(proyecto);\r\n\t\t\r\n\t\tthis.proyectos.add(proyecto);\r\n\t\tthis.lastProjectUniqueID++;\r\n\t\treturn proyecto;\r\n\t\t\r\n\t}",
"public ControladorPrueba() {\r\n }",
"public Libro recupera(String nombre);",
"public static GestorPersonas instanciar(){\n \n if(gestor == null){\n gestor = new GestorPersonas();\n }\n return gestor;\n }",
"public Laboratorio() {}",
"public Persona() {\n\t}",
"public ordenProduccion() {\r\n initComponents();\r\n }",
"public TelaCadasroProjeto() {\n initComponents();\n }",
"@Override\n\tpublic DAOProveedor crearDAOProveedor() {\n\t\treturn new DAOProveedor();\n\t}",
"public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public PersonaFisica() {}",
"public Partie charger() {\n Partie partie = new Partie(0,\"pseudo\");\n try {\n FileInputStream fileStream = new FileInputStream(\"savePartie\");\n ObjectInputStream objectStream = new ObjectInputStream(fileStream);\n partie.setPseudo((String)objectStream.readObject());\n partie.niveau = (int)objectStream.readObject();\n objectStream.close();\n fileStream.close();\n } catch ( IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n return partie;\n }",
"public Corso() {\n\n }",
"public Producto() {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tnombre = \"\";\r\n\t\tvendedor = \"\";\r\n\t\tprecio = 0;\r\n\t\tcantidad = 0;\r\n\t\tenVenta = false;\r\n\t\tdescripcion = \"\";\r\n\t\tcategorias = new Categoria();\r\n\t\tcaracteristicas = null;//TODO CORREGIR\r\n\t}",
"public CrearQuedadaVista() {\n }",
"private RicercaSinteticaCapitoloEPrev creaUtilityRicercaSinteticaCapitoloEPrev() {\n\t\tRicercaSinteticaCapitoloEPrev utility = new RicercaSinteticaCapitoloEPrev();\n\t\t\n\t\tutility.setAnnoEsercizio(getAnnoEsercizioInt());\n\t\tutility.setAnnoCapitolo(getAnnoCapitoloDaConsultare());\n\t\tutility.setNumeroCapitolo(getNumeroCapitoloDaConsultare());\n\t\tutility.setNumeroArticolo(getNumeroArticoloDaConsultare());\n\t\t\n\t\treturn utility;\n\t}",
"public PresentacionPartido(Object partido) {\n initComponents(partido);\n }",
"public Promo(){\n}",
"public Libro() {\n\t\tsuper();\n\t\tthis.id = -1;\n\t\tthis.isbn = \"\";\n\t\tthis.titulo = \"\";\n\t\tthis.editorial = \"\";\n\t\tthis.prestado = false;\n\t}",
"public Nodo(datos libro)\n {\n this.libro=libro;//LA VARIABLE LIBRO TENDRA LOS DATOS DE LA CLASE LIBRO\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 }",
"private IOferta buildOfertaEjemplo4() {\n\t\tPredicate<Compra> condicion = Predicates.alwaysTrue();\n\t\tFunction<Compra, Float> descuento = new DescuentoLlevaXPagaY(\"11-111-1111\", 3, 2);\n\t\treturn new OfertaDinero(\"Lleva 3 paga 2 en Coca-Cola\", condicion,\n\t\t\t\tdescuento);\n\t}",
"@Override\n\tpublic Jucator creeazaJucator(String nume) {\n\t\treturn new Portar(nume);\n\t}",
"public Productos() {\n super();\n // TODO Auto-generated constructor stub\n }",
"public Produit() {\n }",
"private static void generModeloDePrueba() {\n\t\tCSharpArchIdPackageImpl.init();\n // Retrieve the default factory singleton\n\t\tCSharpArchIdFactory factory = CSharpArchIdFactory.eINSTANCE;\n // create an instance of myWeb\n\t\tModel modelo = factory.createModel();\n\t\tmodelo.setName(\"Prueba\"); \n // create a page\n\t\tCompileUnit cu = factory.createCompileUnit();\n\t\tcu.setName(\"archivo.cs\");\n\t\tClassDeclaration clase = factory.createClassDeclaration();\n\t\t//clase.setName(\"Sumar\");\n\t\t//cu.getTypeDeclaration().add(clase);\n modelo.getCompileUnits().add(cu);\n \n Resource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n Map<String, Object> m = reg.getExtensionToFactoryMap();\n m.put(\"model\", new XMIResourceFactoryImpl());\n\n // Obtain a new resource set\n ResourceSet resSet = new ResourceSetImpl();\n\n // create a resource\n Resource resource = resSet.createResource(URI\n .createURI(\"CSharpArchId.model\"));\n // Get the first model element and cast it to the right type, in my\n // example everything is hierarchical included in this first node\n resource.getContents().add(modelo);\n\n // now save the content.\n try {\n resource.save(Collections.EMPTY_MAP);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\t\t\n // and so on, and so on\n // as you can see the EMF model can be (more or less) used as standard Java\n\t}",
"public Exercicio(){\n \n }",
"private TableModel getTableModelProduto() {\n\t\tString[] columnNames = { \"cod_p\", \"cod_barra\", \"categoria\", \"descricao\", \"unidade\", \"custo\", \"marge_lucro\" };\n\n\t\tObject[][] data = new Object[listaP.size()][7];\n\t\tfor (int i = 0; i < listaP.size(); i++) {\n\t\t\tint j = 0;\n\t\t\tdata[i][j++] = Long.valueOf(listaP.get(i).getCod());\n\t\t\tdata[i][j++] = listaP.get(i).getCodBarra();\n\t\t\tdata[i][j++] = listaP.get(i).getCategoria();\n\t\t\tdata[i][j++] = listaP.get(i).getDescricao();\n\t\t\tdata[i][j++] = listaP.get(i).getUnidade();\n\t\t\tdata[i][j++] = listaP.get(i).getCusto();\n\t\t\tdata[i][j++] = listaP.get(i).getMargenLucro();\n\t\t}\n\t\treturn new DefaultTableModel(data, columnNames);\n\t}",
"public Carrera(){\n }",
"public TelaProduto() {\n initComponents();\n \n carregaProdutos();\n }",
"public Persona() {\n }",
"public Caso_de_uso () {\n }",
"public Alojamiento() {\r\n\t}",
"public Object clone() {\r\n ViewDetallesPagos cloned = new ViewDetallesPagos();\r\n\r\n cloned.setIDCUENTACONTABLE(this.IDCUENTACONTABLE); \r\n if (this.DECOMPARENDO != null)\r\n cloned.setDECOMPARENDO(new String(this.DECOMPARENDO)); \r\n if (this.CODIGOCUENTA != null)\r\n cloned.setCODIGOCUENTA(new String(this.CODIGOCUENTA)); \r\n if (this.NOMBRECUENTA != null)\r\n cloned.setNOMBRECUENTA(new String(this.NOMBRECUENTA)); \r\n cloned.setVIGENCIAINICIAL(this.VIGENCIAINICIAL); \r\n cloned.setVIGENCIAFINAL(this.VIGENCIAFINAL); \r\n if (this.FILTROPORFECHAS != null)\r\n cloned.setFILTROPORFECHAS(new String(this.FILTROPORFECHAS)); \r\n cloned.setIDTARIFA(this.IDTARIFA); \r\n cloned.setIDCONCEPTO(this.IDCONCEPTO); \r\n if (this.NOMBRECONCEPTO != null)\r\n cloned.setNOMBRECONCEPTO(new String(this.NOMBRECONCEPTO)); \r\n cloned.setIDITEM(this.IDITEM); \r\n cloned.setVALORPAGO(this.VALORPAGO); \r\n if (this.FECHAPAGO != null)\r\n cloned.setFECHAPAGO(new String(this.FECHAPAGO)); \r\n cloned.setVIGENCIA(this.VIGENCIA); \r\n return cloned;\r\n }",
"public abstract Pessoa clone();",
"Obligacion createObligacion();",
"OBJECT createOBJECT();",
"public Persona() {\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Produit() {\n\t\tsuper();\n\t}",
"public Livro() {\n\n\t}",
"public Libro() {\r\n }",
"public static <RN extends GenRn, E extends Entity> RN newInstance(Class<E> entity) {\n final StringBuilder classPath = new StringBuilder(\"br.com.rn.\");\r\n classPath.append(entity.getSimpleName());\r\n classPath.append(\"Rn\");\r\n\r\n try {\r\n\r\n // Carrega a classe da Rn especifia da classe passada\r\n final Class rnClass = GenDao.class.getClassLoader().loadClass(classPath.toString());\r\n\r\n // Cria uma instância da Rn\r\n return (RN) rnClass.newInstance();\r\n\r\n } catch (ClassNotFoundException | IllegalAccessException | \r\n IllegalArgumentException | InstantiationException | SecurityException ignore) {\r\n \r\n // Como não foi encontrada uma Rn específica retorna uma genérica\r\n return (RN) new GenRn();\r\n \r\n }\r\n\r\n }",
"public QLNhanVien(){\n \n }",
"private ProcesoDTO registrarProcesoCoactivo() {\n RegistraProcesoDTO registra = new RegistraProcesoDTO();\n registra.setObservacion(EnumTipoProceso.COACTIVO.name());\n registra.setTipoProceso(EnumTipoProceso.COACTIVO);\n registra.setEstado(EnumEstadoProceso.ECUADOR_COACTIVO_RADICACION);\n registra.setConsecutivo(EnumConsecutivo.NUMERO_COACTIVO_ECUADOR);\n return iRFachadaProceso.crearProceso(registra);\n }",
"public AltaProveedor() {\n AparienciaPantalla apa = new AparienciaPantalla();\n apa.cambiarApariencia(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n initComponents();\n this.cargarProvincias();\n setLocationRelativeTo(null);\n }",
"@Override\n public Productor getProductor() {\n return new ProductorImp1();\n }",
"private void populaParteCorpo()\n {\n ParteCorpo p1 = new ParteCorpo(\"Biceps\");\n parteCorpoDAO.insert(p1);\n ParteCorpo p2 = new ParteCorpo(\"Triceps\");\n parteCorpoDAO.insert(p2);\n ParteCorpo p3 = new ParteCorpo(\"Costas\");\n parteCorpoDAO.insert(p3);\n ParteCorpo p4 = new ParteCorpo(\"Lombar\");\n parteCorpoDAO.insert(p4);\n ParteCorpo p5 = new ParteCorpo(\"Peito\");\n parteCorpoDAO.insert(p5);\n ParteCorpo p6 = new ParteCorpo(\"Panturrilha\");\n parteCorpoDAO.insert(p6);\n ParteCorpo p7 = new ParteCorpo(\"Coxas\");\n parteCorpoDAO.insert(p7);\n ParteCorpo p8 = new ParteCorpo(\"Gluteos\");\n parteCorpoDAO.insert(p8);\n ParteCorpo p9 = new ParteCorpo(\"Abdomen\");\n parteCorpoDAO.insert(p9);\n ParteCorpo p10 = new ParteCorpo(\"Antebraço\");\n parteCorpoDAO.insert(p10);\n ParteCorpo p11 = new ParteCorpo(\"Trapezio\");\n parteCorpoDAO.insert(p11);\n ParteCorpo p12 = new ParteCorpo(\"Ombro\");\n parteCorpoDAO.insert(p12);\n }",
"private IOferta buildOfertaEjemplo7() {\n\t\tPredicate<Compra> condicion = Predicates.alwaysTrue();\n\t\tFunction<Compra, Float> descuento = new DescuentoEnSegundoProducto(\"11-111-1111\", \"11-111-1112\", 50);\n\t\treturn new OfertaDinero(\"50% en Sprite, comprando 1 Coca\", condicion,\tdescuento);\n\t}",
"public String limpiar()\r\n/* 103: */ {\r\n/* 104:112 */ this.motivoLlamadoAtencion = new MotivoLlamadoAtencion();\r\n/* 105:113 */ return \"\";\r\n/* 106: */ }",
"Prms createPrms();"
] | [
"0.6724894",
"0.6430814",
"0.6425678",
"0.64017123",
"0.6306871",
"0.6289587",
"0.62790984",
"0.6155637",
"0.6123212",
"0.61060566",
"0.6074947",
"0.6004995",
"0.6004768",
"0.59763294",
"0.5944617",
"0.59354776",
"0.5920487",
"0.5915335",
"0.5914831",
"0.5895313",
"0.5881636",
"0.58736527",
"0.58676744",
"0.5866467",
"0.5866448",
"0.58626884",
"0.5855958",
"0.5834934",
"0.5826841",
"0.581664",
"0.5807853",
"0.5806307",
"0.5802265",
"0.5797263",
"0.5782341",
"0.5782341",
"0.5777261",
"0.57700026",
"0.57681644",
"0.5755283",
"0.5726249",
"0.57215565",
"0.57053226",
"0.5704371",
"0.57035387",
"0.5701532",
"0.57006747",
"0.5685917",
"0.56840825",
"0.56807464",
"0.5678406",
"0.5662896",
"0.5659621",
"0.5656693",
"0.5651034",
"0.5650237",
"0.5642044",
"0.5639264",
"0.56330353",
"0.56302094",
"0.5629654",
"0.56240046",
"0.5623867",
"0.5620085",
"0.56170285",
"0.5613252",
"0.560763",
"0.5605924",
"0.55983317",
"0.55968326",
"0.5593667",
"0.5592797",
"0.55915797",
"0.55908006",
"0.55782956",
"0.5575283",
"0.55696285",
"0.5566832",
"0.5559157",
"0.554676",
"0.552521",
"0.5523995",
"0.55203974",
"0.5513064",
"0.5508572",
"0.5502294",
"0.5500172",
"0.5497556",
"0.5496353",
"0.5490418",
"0.54834706",
"0.5480063",
"0.5475586",
"0.54728234",
"0.54688156",
"0.5463792",
"0.5460125",
"0.5458262",
"0.5451051",
"0.5449697"
] | 0.78995484 | 0 |
Returns a new object of class 'Image'. | Image createImage(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Nonnull\n private BufferedImage createImage() {\n return new BufferedImage(getWidth(), getHeight(), getImageType().getType());\n }",
"public Image createImage() {\n if (source == null) {\n source = new MemoryImageSource(width, height, cModel, pixels, 0, width);\n source.setAnimated(true);\n }\n Image img = Toolkit.getDefaultToolkit().createImage(source);\n return img;\n }",
"public Image() {\n }",
"public Image() {\n \n }",
"public abstract Image getImage();",
"public abstract Image getImage();",
"public ImageView getImage() {\n ImageView and = new ImageView(Image);\n and.setFitWidth(70);\n and.setFitHeight(50);\n return and;\n }",
"private Images() {}",
"IMG createIMG();",
"private Image createImage(String image_file) {\n\t\tImage img = new Image(image_file);\n\t\treturn img;\n\t}",
"public BufferedImage create() {\n checkDimensions();\n final BufferedImage image = createImage();\n getImagePainter().paint(image);\n return image;\n }",
"public abstract Image gen();",
"@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}",
"public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}",
"ElementImage createElementImage();",
"public IImage createImage(IImage source) {\n return null;\r\n }",
"public Image clone() {\r\n\t\treturn new Image(renderer, texture, textureX, textureY, textureWidth, textureHeight, width, height);\r\n\t}",
"public Image getOne();",
"public Image creerImage() {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n\t\ttry {\r\n\t\t\t// Transfert de l image dans le buffer de bytes\r\n\t\t\tImageIO.write(monImage.getImage(), \"png\", baos);\r\n\t\t\t\r\n\t\t\t// Creation d une instance d Image iText\r\n\t\t\tImage image = Image.getInstance(baos.toByteArray());\r\n\t\t\treturn image;\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (BadElementException 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 null;\r\n\t}",
"@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}",
"@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}",
"public static Image returnImage (InputStream in){\n InputStream stream = in;\n return new Image(stream);\n }",
"public PlainImage(Image image) {\r\n\t\tthis.image = image;\r\n\t}",
"public IImage createImage(String name) throws IOException {\n return null;\r\n }",
"public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}",
"public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}",
"public Picture(BufferedImage image)\n {\n super(image);\n }",
"public Picture(BufferedImage image)\n {\n super(image);\n }",
"public Image getImage() {\n if (image == null) {//GEN-END:|34-getter|0|34-preInit\n // write pre-init user code here\n try {//GEN-BEGIN:|34-getter|1|[email protected]\n image = Image.createImage(\"/226px-Wave.svg.png\");\n } catch (java.io.IOException e) {//GEN-END:|34-getter|1|[email protected]\n e.printStackTrace();\n }//GEN-LINE:|34-getter|2|34-postInit\n // write post-init user code here\n }//GEN-BEGIN:|34-getter|3|\n return image;\n }",
"private ImageUtils() {}",
"@Nullable\n @Generated\n @Selector(\"image\")\n public native UIImage image();",
"public Image()\r\n {\r\n super();\r\n setBounds( 0, 0, 10, 10 );\r\n }",
"public Image() {\n\t\t\tthis(Color.white, 0);\n\t\t}",
"public ImageProcessor(Pic a) {\n image = a;\n }",
"public ImageFactoryImpl()\n\t{\n\t\tsuper();\n\t}",
"public Image getImage() {\r\n return image;\r\n }",
"PImage getImage() {\n return _img;\n }",
"public Image getImage() {\n return image;\n }",
"protected abstract Image loadImage();",
"public Image getImage() {\n return image;\n }",
"private ImageLoader() {}",
"public interface IImage {\n public int getWidth();\n public int getHeight();\n public IGraphics.ImageFormat getFormat();\n public void dispose();\n}",
"@Override\r\n\t\tpublic MyImage createMyImage(MyImage myimage) {\r\n\t\t\t\r\n\t\t\treturn myimg.createMyImage(myimage);\r\n\t\t}",
"Imagem getImagem();",
"public ImageContent() {\n }",
"public BufferedImage makeBufferedImage()\r\n {\r\n\treturn makeRGBImage().makeBufferedImage();\r\n }",
"public Picture picture() {\n return new Picture(current);\n }",
"public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return the image ID, or null if not present\n */\n String getParentId();\n\n /**\n * @return Image create timestamp\n */\n long getCreated();\n\n /**\n * @return the image size\n */\n long getSize();\n\n /**\n * @return the image virtual size\n */\n long getVirtualSize();\n\n /**\n * @return the labels assigned to the image\n */\n Map<String, String> getLabels();\n\n /**\n * @return the names associated with the image (formatted as repository:tag)\n */\n List<String> getRepoTags();\n\n /**\n * @return the digests associated with the image (formatted as repository:tag@sha256:digest)\n */\n List<String> getRepoDigests();\n}",
"Builder addImage(ImageObject value);",
"public Image getImage() {\r\n\t\treturn image;\r\n\t}",
"public TiledImage getNewImage() {\n return this.newImage;\n }",
"public javafx.scene.image.Image getImage() {\n return super.getImage();\n }",
"public javafx.scene.image.Image getImage() {\n return super.getImage();\n }",
"public javafx.scene.image.Image getImage() {\n return super.getImage();\n }",
"public Image getInstanceImage() {\r\n return this.image;\r\n }",
"public Image getImage() {\n\t\treturn image;\n\t}",
"public Image getImage() {\n\t\treturn image;\n\t}",
"public Image getImage() {\n\t\treturn image;\r\n\t}",
"public ImageConverter() {\n\t}",
"public IImage createImage(IImage image, int x, int y, int width, int height, int transform) {\n return null;\r\n }",
"BufferedImage getImage();",
"BufferedImage getImage();",
"BufferedImage getImage();",
"public interface Image {\n void display();\n}",
"public Photo() {\n\t\tthis(UUID.randomUUID().toString() + \".jpg\");\n\t}",
"public Image getSharp();",
"public Image getImage()\n {\n return null;\n }",
"public static VkPicture createEntity() {\n VkPicture vkPicture = new VkPicture()\n .pictId(DEFAULT_PICT_ID)\n .ownerId(DEFAULT_OWNER_ID)\n .url(DEFAULT_URL)\n .proc(DEFAULT_PROC)\n .downloaded(DEFAULT_DOWNLOADED)\n .deleterank(DEFAULT_DELETERANK)\n .type(DEFAULT_TYPE)\n .procid(DEFAULT_PROCID)\n .recognized(DEFAULT_RECOGNIZED)\n .timestamp(DEFAULT_TIMESTAMP)\n .picdate(DEFAULT_PICDATE)\n .size(DEFAULT_SIZE)\n .text(DEFAULT_TEXT)\n .likes(DEFAULT_LIKES)\n .ignored(DEFAULT_IGNORED);\n return vkPicture;\n }",
"private Sprite createSprite(Image image)\n\t{\n\t\tSprite sprite = new Sprite(image, image.getWidth(), image.getHeight());\n\t\treturn sprite;\n\t}",
"@Override\n\tpublic final IRenderable load() {\n\t\tImage img = loadImage();\n\t\tassertImageIsValid(img);\n\t\treturn new ImageRenderable(img);\n\t}",
"public Builder withImage(ImageInfo image) {\n assertNotInvalidated(getClass(),object);\n object.image = image;\n return this;\n }",
"public BufferedImage getImage() {\n return image;\n }",
"protected BufferedImage createImage(int width, int height) {\n\t\treturn (new java.awt.image.BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB));\n\t}",
"public Sprite(Texture newImage){\n\t\timages = new Texture[1];\n\t\timages[0] = newImage;\n\t}",
"public Image getImagen() {\n\t\tRectangle rootFigureBounds = this.getBounds();\n\t\tGC figureCanvasGC = new GC(this.canvas);\n\n\t\tImage image = new Image(this.canvas.getDisplay(), rootFigureBounds.width,\n\t\t\t\trootFigureBounds.height);\n\t\tGC imageGC = new GC(image);\n\n\t\timageGC.setBackground(figureCanvasGC.getBackground());\n\t\timageGC.setForeground(figureCanvasGC.getForeground());\n\t\timageGC.setFont(figureCanvasGC.getFont());\n\t\timageGC.setLineStyle(figureCanvasGC.getLineStyle());\n\t\timageGC.setLineWidth(figureCanvasGC.getLineWidth());\n\t\t// imageGC.setXORMode(figureCanvasGC.getXORMode());\n\n\t\tGraphics imgGraphics = new SWTGraphics(imageGC);\n\t\tthis.paint(imgGraphics);\n\n\t\treturn image;\n\t}",
"public ImageIcon getImage();",
"public final ImageProcessor getImage() {\r\n return image;\r\n }",
"public BufferedImage getImage() {\n\t\t return img;\n\t}",
"public HSIImage()\r\n {\r\n }",
"public ImageSection() { // required by the SessionLoader (should not be used elsewhere)\n hasImage = new HasImage();\n }",
"public Bitmap getImage() {\n return image;\n }",
"public Image getImage() {\n return null;\r\n }",
"private Image makeAnImage(String s) throws IOException {\n //String imageName = s.substring(s.indexOf(\"\\\\(\") + 1, s.indexOf(\"\\\\)\"));\n String[] parts = s.split(\"\\\\(\");\n String imageName = parts[1].substring(0, parts[1].length() - 1);\n // load the image data into an java.awt.Image object.\n Image img = null;\n InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream(imageName);\n try {\n img = ImageIO.read(is);\n } catch (IOException e) {\n System.out.println(\"Error: failed to load image\");\n } finally {\n if (is != null) {\n try {\n is.close();\n } catch (IOException e) {\n System.out.println(\"Failing closing the image\");\n }\n }\n }\n return img;\n }",
"WorldImage getImage();",
"public ImageIcon getImage()\n {\n return image;\n }",
"@Override\n public ImageData createFromParcel(Parcel source) {\n return new ImageData(source); // using parcelable constructor\n }",
"public GIFMaker from(ImageComposite collection);",
"private void createImage()\n {\n GreenfootImage image = new GreenfootImage(width, height);\n setImage(\"Player.png\");\n }",
"public WritableImage getImage(){\n\t\tWritableImage image = SwingFXUtils.toFXImage(BfImage, null);\r\n\t\treturn image;\r\n\t}",
"public ObjectImage getObjectImage ()\r\n {\r\n return recoverable_.getObjectImage ();\r\n }",
"public Image getFlat();",
"public String getImage() { return image; }",
"public ImageFile(BufferedImage img) throws ImageException{\r\n\tloadImage(img);\r\n}",
"public Image getImage(String key)\n {\n return imageRegistry.get(key);\n }",
"public Image getTwo();",
"public BufferedImage getImage()\n \t{\n \t\ttry\n \t\t{\n \t\t\tif(bi==null)\n \t\t\t{\n \t\t\t\tint\n \t\t\t\t\tiWidth=(int)(getInteger(PROPERTY_WIDTH)*getQuestion().getZoom()),\n \t\t\t\t\tiHeight=(int)(getInteger(PROPERTY_HEIGHT)*getQuestion().getZoom());\n \n \t\t\t\t// Create image\n \t\t\t\tbi=new BufferedImage(iWidth,iHeight,BufferedImage.TYPE_INT_RGB);\n \n \t\t\t\t// Fill to background\n \t\t\t\tGraphics g=bi.getGraphics();\n \t\t\t\tg.setColor(getBackground());\n \t\t\t\tg.fillRect(0,0,iWidth,iHeight);\n \t\t\t}\n \t\t\treturn bi;\n \t\t}\n \t\tcatch(OmDeveloperException ode)\n \t\t{\n \t\t\tthrow new OmUnexpectedException(ode);\n \t\t}\n \t}",
"public Image(Renderer renderer, Image img) {\r\n\t\tthis(renderer, img.getTexture(), img.getTextureOffsetX(), img.getTextureOffsetY(), img.getTextureWidth(),\r\n\t\t\t\timg.getTextureHeight(), img.getWidth(), img.getHeight());\r\n\t}",
"public static ImageFactory init()\n\t{\n\t\ttry\n\t\t{\n\t\t\tImageFactory theImageFactory = (ImageFactory)EPackage.Registry.INSTANCE.getEFactory(ImagePackage.eNS_URI);\n\t\t\tif (theImageFactory != null)\n\t\t\t{\n\t\t\t\treturn theImageFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception)\n\t\t{\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ImageFactoryImpl();\n\t}",
"interface Image {\n public void displayImage();\n}",
"public ImageInfo getImage() {\n return image;\n }"
] | [
"0.73165727",
"0.71892947",
"0.71278554",
"0.7081368",
"0.6959381",
"0.6959381",
"0.6902367",
"0.6897313",
"0.687205",
"0.6809189",
"0.6747661",
"0.6744091",
"0.6691533",
"0.66860384",
"0.66767645",
"0.66718554",
"0.6651",
"0.6593762",
"0.6575959",
"0.6552398",
"0.6537557",
"0.6470351",
"0.64661455",
"0.64539236",
"0.64498276",
"0.6425747",
"0.6405875",
"0.6405875",
"0.63988173",
"0.63897365",
"0.63708603",
"0.6355306",
"0.63545877",
"0.62925994",
"0.626245",
"0.622127",
"0.6213361",
"0.6207849",
"0.61804533",
"0.61785805",
"0.6163741",
"0.6154853",
"0.6142826",
"0.61419505",
"0.6134678",
"0.6130266",
"0.61110216",
"0.611035",
"0.6109431",
"0.610718",
"0.60929173",
"0.6079934",
"0.6079934",
"0.6079934",
"0.605732",
"0.60541165",
"0.60541165",
"0.60484135",
"0.60291797",
"0.60266393",
"0.60208786",
"0.60208786",
"0.60208786",
"0.60168195",
"0.5979044",
"0.5967783",
"0.5959129",
"0.5952968",
"0.5923459",
"0.5920424",
"0.5917808",
"0.5911707",
"0.5911526",
"0.5909312",
"0.5883619",
"0.5882374",
"0.5875179",
"0.5875117",
"0.58740425",
"0.586127",
"0.5856788",
"0.58558625",
"0.58525825",
"0.58412457",
"0.58360106",
"0.58178115",
"0.5814311",
"0.58124596",
"0.58123213",
"0.58094853",
"0.57966894",
"0.57803315",
"0.577592",
"0.5774375",
"0.57665265",
"0.5765285",
"0.5762976",
"0.574482",
"0.5744242",
"0.57271576"
] | 0.7580497 | 0 |
Returns a new object of class 'Touchable Opacity'. | TouchableOpacity createTouchableOpacity(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getOpacity();",
"@Override\n public int getOpacity() {\n return DrawableUtils.getOpacityFromColor(DrawableUtils.multiplyColorAlpha(mColor, mAlpha));\n }",
"public native void setOpacity(int opacity);",
"@Override\n\tpublic int getOpacity() {\n\t\treturn 0;\n\t}",
"@Override\r\n\t\tpublic int getOpacity()\r\n\t\t{\n\t\t\treturn 0;\r\n\t\t}",
"@Override\n\tpublic int getOpacity() {\n\t\treturn PixelFormat.OPAQUE;\n\t}",
"@Override\n\t\t\tpublic int getOpacity() {\n\t\t\t\treturn 0;\n\t\t\t}",
"private AlphaComposite makeTransparent(float alpha){\n return(AlphaComposite.getInstance(AlphaComposite.SRC_OVER,alpha));\n }",
"public TransparencyDemo() {\r\n super();\r\n view3DButton.addItemListener(this);\r\n drawBehindButton.addItemListener(this);\r\n transparencySlider.addChangeListener(this);\r\n }",
"public float getAlpha();",
"public float getAlpha();",
"public Integer getOpacity() {\n return opacity;\n }",
"public float getOpacity(){\n\t\t\n\t\tif(this.isDestroyed()){\n\t\t\treturn 0;\n\t\t}\n\t\tlong time = System.currentTimeMillis() - creationTime;\n\t\t\n\t\tfloat opacity;\n\t\tif(time == 0 || time == visibleTime){\n\t\t\topacity = 0;\n\t\t}else if(time < visibleTime/4){\n\t\t\topacity = (float)easingInOut(time, 0, 1 , visibleTime/4);\n\t\t}else if (time > (visibleTime/4)*3){\n\t\t\topacity = (float)easingInOut(visibleTime - time, 0, 1,visibleTime/4);\n\t\t}else{\n\t\t\topacity = 1;\n\t\t}\n\t\treturn Math.max(0, Math.min(1,opacity));\n\t}",
"@Override\n protected Alpha clone() {\n try {\n Alpha alpha = (Alpha) super.clone();\n alpha.mListeners = new ArrayList<Listener>();\n return alpha;\n } catch (CloneNotSupportedException e) {\n throw new RuntimeException(e);\n }\n }",
"public void setAlpha(float alpha);",
"public BackgroundRippleObject revive(){\n return this.revive(\n randomPosInObjBounds(),\n makeRandomColor()\n );\n }",
"@SuppressWarnings(\"unchecked\")\n public AnimatorType alpha(int alpha)\n {\n addTransformer(new AlphaTransformer(getShape(), alpha));\n return (AnimatorType) this;\n }",
"protected void fading(float alpha) { }",
"private static Animation m25226b() {\n Animation alphaAnimation = new AlphaAnimation(1.0f, 0.0f);\n alphaAnimation.setInterpolator(new AccelerateInterpolator());\n alphaAnimation.setDuration(350);\n return alphaAnimation;\n }",
"@Override\n public int getAlpha() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n return patternDrawable.getAlpha();\n }\n\n return 0xFF;\n }",
"public float getOpacity() { Number n = (Number)get(\"Opacity\"); return n!=null? n.floatValue() : 1; }",
"public DraggableBehavior setOpacity(float opacity)\n\t{\n\t\tthis.options.put(\"opacity\", opacity);\n\t\treturn this;\n\t}",
"public CommonPopWindow setBackgroundAlpha(@FloatRange(from = 0.0D, to = 1.0D) float dackAlpha) {\n/* 174 */ this.mDarkAlpha = dackAlpha;\n/* 175 */ return this;\n/* */ }",
"public RippleDrawableCompat newDrawable() {\n return new RippleDrawableCompat(new C1269b(this));\n }",
"public BackgroundRippleObject revive(Vector2D p, Color c){\n super.revive(p, new Vector2D());\n\n timeToLive = 255;\n radius = OBJ_RADIUS;\n rValue = c.getRed();\n gValue = c.getGreen();\n bValue = c.getBlue();\n setColor();\n return this;\n }",
"public boolean setPropertyFade(int aValue);",
"@Override\n\tpublic void setTransparency(float transparency) {\n\t\t\n\t}",
"public interface ICrossFadeRenderer extends IRenderable, IAnimation {\n\n}",
"float getAlpha();",
"public int getAlpha()\n {\n return getColor().alpha();\n }",
"public abstract void setForegroundPressed(final int rgba);",
"public int getPointerAlphaOnTouch() {\r\n\t\treturn mPointerAlphaOnTouch;\r\n\t}",
"@Override\r\n\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\tswitch (arg1.getAction()) {\r\n\t\t\tcase MotionEvent.ACTION_DOWN:\r\n\t\t\t\targ0.setAlpha(0.6f);\r\n\t\t\t\tbreak;\r\n\t\t\tcase MotionEvent.ACTION_UP:\r\n\t\t\t\targ0.setAlpha(1f);\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\treturn false;\r\n\t\t}",
"@SuppressWarnings({\"deprecation\", \"rawtypes\", \"unchecked\"})\n public static javafx.scene.effect.ColorInputBuilder<?> create() {\n return new javafx.scene.effect.ColorInputBuilder();\n }",
"protected Color createColor(int red, int green, int blue, int alpha) {\n if ((red <= 1) && (green <= 1) && (blue <= 1) && ((alpha <= 1) || (alpha == 255))) {\n // rgba either 0 or 1\n Color c = new Color((float)red, (float)green, (float)blue, (alpha == 255) ? 1.0f : (float)alpha);\n// System.out.println(c);\n return c;\n }\n return super.createColor(red, green, blue, alpha);\n }",
"@Override\n public int getAlpha() {\n return mAlpha;\n }",
"public Animation inAlpha() {\n\t\treturn getAlphaInAnim(mInDuration, false);\n\t}",
"private static Animation m25218a() {\n Animation alphaAnimation = new AlphaAnimation(0.0f, 1.0f);\n alphaAnimation.setInterpolator(new DecelerateInterpolator());\n alphaAnimation.setDuration(350);\n return alphaAnimation;\n }",
"public float getAlpha() {\n if (this.isConnectedToGame)\n return 1.0f;\n else\n return 0.5f;\n }",
"@FloatRange(from = 0.0, to = 1.0)\n public float getTargetAlpha() {\n return mImpl.getTargetAlpha();\n }",
"public abstract void setBackgroundPressed(final int rgba);",
"@Override\n public void setAlpha(float alpha) {\n super.setAlpha(alpha);\n\n int newVisibility = alpha <= 0f ? View.GONE : View.VISIBLE;\n setVisibility(newVisibility);\n }",
"public int getPropertyFade();",
"public void setOpacity(float newOpacity) {\n\t\tthis.opacity = newOpacity;\n\t}",
"public void setAlpha(int newAlpha)\n {\n setColor(getColor().withAlpha(newAlpha));\n }",
"public V2View(Context context, AttributeSet attrs) {\n super(context, attrs);\n setFocusable(true);\n setFocusableInTouchMode(true);\n setupPaint();\n\n }",
"private Texture createInventoryHighlight() {\n Pixmap highlightPixmap = new Pixmap(1, 1, Pixmap.Format.RGBA8888);\n highlightPixmap.setColor(1, 1, 0, 0.5f);\n highlightPixmap.fill();\n Texture highlight = new Texture(highlightPixmap);\n highlightPixmap.dispose();\n return highlight;\n }",
"@Override\n public void touchAction() {\n if (!isDisabled()) {\n if (colorAction != null)\n opponentLabel.removeAction(colorAction);\n colorAction = MyActions.getTouchAction(LightBlocksGame.COLOR_FOCUSSED_ACTOR, getColor());\n opponentLabel.addAction(colorAction);\n }\n }",
"public int getPointOpacity()\n {\n return myPointOpacity;\n }",
"double getTransparency();",
"Effect getEffect();",
"public TransparentMouseEvent(boolean bool) {\n super(EventType.TRANSPARENT_MOUSE.getType());\n this.bool = bool;\n }",
"public int getTransparency() {\n return Color.TRANSLUCENT;\n }",
"public ImageHelper setFadeIn(int duration) {\n this.fadeIn = true;\n this.fadeDuration = duration;\n\n return this;\n }",
"protected int getColor() {\n return Color.TRANSPARENT;\n }",
"public void setOpacity(float aValue)\n{\n if(getOpacity()==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n Object oldValue = getOpacity(); // Cache old value, set new value and fire PropertyChange\n put(\"Opacity\", aValue==1? null : aValue);\n firePropertyChange(\"Opacity\", oldValue, aValue, -1);\n}",
"@NonNull\n public Builder setTargetAlpha(@FloatRange(from = 0.0, to = 1.0) float targetAlpha) {\n mImpl.setTargetAlpha(targetAlpha);\n mFingerprint.recordPropertyUpdate(1, Float.floatToIntBits(targetAlpha));\n return this;\n }",
"public void drawAlpha(ItemListener item) {\n if (this.mFocus != null) {\n AlphaParams alphaParams = this.mFocus.getParams().getAlphaParams();\n float dstAlpha = alphaParams.getFromAlpha();\n float diffAlpha = alphaParams.getToAlpha() - alphaParams.getFromAlpha();\n float coef = ((float) this.mFrame) / ((float) alphaParams.getAlphaFrameRate());\n Interpolator alphaInterpolator = this.mFocus.getParams().getAlphaParams().getAlphaInteroplator();\n if (alphaInterpolator == null) {\n alphaInterpolator = new LinearInterpolator();\n }\n float dstAlpha2 = dstAlpha + (diffAlpha * alphaInterpolator.getInterpolation(coef));\n if (this.mLastItem == item) {\n dstAlpha2 = alphaParams.getToAlpha();\n }\n if (this.mConvertSelector != null) {\n this.mConvertSelector.setAlpha(dstAlpha2);\n if (this.mSelector != null) {\n this.mSelector.setAlpha(0.0f);\n }\n } else if (this.mSelector != null) {\n this.mSelector.setAlpha(dstAlpha2);\n }\n }\n }",
"public RippleDrawableCompat mutate() {\n this.f9050a = new C1269b(this.f9050a);\n return this;\n }",
"@Override\n\t\t\tpublic void setAlpha(int alpha) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void setAlpha(int alpha) {\n if (alpha != mAlpha) {\n mAlpha = alpha;\n invalidateSelf();\n }\n }",
"public void setPaintAlpha(int newAlpha){\n paintAlpha=Math.round((float)newAlpha/100*255);\n drawPaint.setColor(paintColor);\n drawPaint.setAlpha(paintAlpha);\n }",
"@Override\n\t\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tcancel.setAlpha((float)0.5);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\tswitch(event.getAction())\n\t\t\t\t{\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\tv.setBackgroundColor(hovercolor);\n\t\t\t\t\tbreak;\n\t\t\t\tcase MotionEvent.ACTION_UP:\n\t\t\t\t\tv.setBackgroundColor(Color.TRANSPARENT);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}",
"public int getPaintAlpha(){\n return Math.round((float)paintAlpha/255*100);\n }",
"@Override\n\tpublic void setAlpha(int alpha) {\n\n\t}",
"public void setPointerAlphaOnTouch(int alpha) {\r\n\t\tif (alpha >=0 && alpha <= 255) {\r\n\t\t\tmPointerAlphaOnTouch = alpha;\r\n\t\t}\r\n\t}",
"protected Animator[] getAnimators(View view) {\n return new Animator[]{ObjectAnimator.ofFloat(view, \"alpha\", 0f, 1f)};\n }",
"@SuppressWarnings(\"unchecked\")\n public PropertyValue<Float> getLineOpacity() {\n return (PropertyValue<Float>) new PropertyValue(nativeGetLineOpacity());\n }",
"public static Color alphaBlend(Color o, int a){\n\t\treturn new Color(o.getRed(), o.getGreen(), o.getBlue(), a);\n\t}",
"public Sprite getBackground() {\r\n return new BackGround4();\r\n }",
"public float getConstantOpacity() {\n/* 185 */ return getCOSObject().getFloat(COSName.CA, 1.0F);\n/* */ }",
"T setStartAlpha(Double startAlpha);",
"public Color4 getEffectColorAdd();",
"private VibrationEffect getVibrationEffect() {\n return VibrationEffect.startComposition()\n .addPrimitive(VibrationEffect.Composition.PRIMITIVE_THUD, 1.0f, 50)\n .compose();\n }",
"@RestrictTo(Scope.LIBRARY_GROUP)\n @NonNull\n public ModifiersProto.FadeInTransition toProto() {\n return mImpl;\n }",
"public float getAlpha() {\n \t\treturn alpha;\n\t}",
"public void enablePropertyFade()\n {\n iPropertyFade = new PropertyInt(new ParameterInt(\"Fade\"));\n addProperty(iPropertyFade);\n }",
"public JoystickPuck(){\r\n\r\n this.shadow = new Shadow();\r\n this.surface = new Surface();\r\n this.shading = new Shading();\r\n\r\n this.setShadowColor(0xff000000);\r\n this.setSurfaceColor(0xffcccccc);\r\n this.setShadingColor(0xff000000);\r\n }",
"public void setAlpha(double alpha);",
"@RestrictTo(Scope.LIBRARY_GROUP)\n @NonNull\n public ModifiersProto.FadeOutTransition toProto() {\n return mImpl;\n }",
"public RoundedColorDrawable(){\n super();\n }",
"protected void enableActionFade()\n {\n Action action = new Action(\"Fade\");\n action.addOutputParameter(new ParameterRelated(\"Value\", iPropertyFade));\n iDelegateFade = new DoFade();\n enableAction(action, iDelegateFade);\n }",
"private void makeTransparentBackground(View v)\n {\n v.setBackgroundColor(0x00000000); //set the transparent background\n }",
"public Color() {\n\n\t\tthis(0, 0, 0);\n\t}",
"public abstract View getBlackBackground();",
"@Override\n public void setAlpha(int alpha) {\n patternDrawable.setAlpha(alpha);\n }",
"protected boolean getTransparent() {\n\treturn isTransparent;\n }",
"@Override\n public void fade(float delta) {\n colour.a *= (1f - (delta * Constants.COLOURCYCLESPEED));\n\n //Gdx.app.log(TAG, \"Alpha:\" + colour.a);\n //alpha *= (1f - (delta * Constants.COLOURCYCLESPEED));\n //colour.add(0.0f, 0.0f, 0.0f, alpha);\n }",
"Affectation createAffectation();",
"protected void removealphaOpeque() {\n\t\tlistbackground.setAlpha(1f);\n\t\tbackground.setAlpha(1f);\n\t\tlv.setClickable(true);\n\t\tlvx.setClickable(true);\n\t\trefresh.setClickable(true);\n\t\tsearch.setClickable(true);\n\t\tsearch.setEnabled(true);\n\t\tlv.setEnabled(true);\n\t\tlvx.setEnabled(true);\n\t\tcancelButton.setClickable(true);\n\t\tcancelButton.setEnabled(true);\n\t\trefresh.setEnabled(true);\n\t}",
"protected void enableActionSetFade()\n {\n Action action = new Action(\"SetFade\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyFade));\n iDelegateSetFade = new DoSetFade();\n enableAction(action, iDelegateSetFade);\n }",
"@TargetApi(Build.VERSION_CODES.LOLLIPOP)\n\tprotected Animator createAnimator() {\n\t\tAnimator anim = ViewAnimationUtils.createCircularReveal(\n\t\t\t\tmRevealView, getWidth() / 2, getHeight() / 2, 0, getWidth() / 2);\n\t\tanim.addListener(new AnimatorListenerAdapter() {\n\t\t\t@Override\n\t\t\tpublic void onAnimationEnd(Animator animation) {\n\t\t\t\t// Now we can refresh the drawable state\n\t\t\t\trefreshDrawableState();\n\n\t\t\t\tmRevealView.setVisibility(View.GONE);\n\t\t\t}\n\t\t});\n\t\treturn anim;\n\t}",
"@NonNull\n public FadeInTransition build() {\n return new FadeInTransition(mImpl.build(), mFingerprint);\n }",
"public void setConstantOpacity(float ca) {\n/* 195 */ getCOSObject().setFloat(COSName.CA, ca);\n/* */ }",
"public float getOpacityDeep()\n{\n float op = getOpacity();\n for(RMShape s=_parent; s!=null; s=s._parent) op *= s.getOpacity();\n return op;\n}",
"protected IUIFilterable createFilterable() {\n \t\treturn new UIFilterable();\n \t}",
"public PlayerView(Context context, @Nullable AttributeSet attributeSet, int i2) {\n super(context, attributeSet, i2);\n boolean z2;\n int i3;\n int i4;\n boolean z3;\n boolean z4;\n int i5;\n boolean z5;\n int i6;\n int i7;\n int i8;\n boolean z7;\n boolean z8;\n a aVar = new a();\n this.a = aVar;\n if (isInEditMode()) {\n this.b = null;\n this.c = null;\n this.d = null;\n this.e = null;\n this.f = null;\n this.g = null;\n this.h = null;\n this.i = null;\n this.j = null;\n this.k = null;\n ImageView imageView = new ImageView(context);\n if (Util.SDK_INT >= 23) {\n Resources resources = getResources();\n imageView.setImageDrawable(resources.getDrawable(R.drawable.exo_edit_mode_logo, null));\n imageView.setBackgroundColor(resources.getColor(R.color.exo_edit_mode_background_color, null));\n } else {\n Resources resources2 = getResources();\n imageView.setImageDrawable(resources2.getDrawable(R.drawable.exo_edit_mode_logo));\n imageView.setBackgroundColor(resources2.getColor(R.color.exo_edit_mode_background_color));\n }\n addView(imageView);\n return;\n }\n int i9 = R.layout.exo_player_view;\n this.s = true;\n if (attributeSet != null) {\n TypedArray obtainStyledAttributes = context.getTheme().obtainStyledAttributes(attributeSet, R.styleable.PlayerView, 0, 0);\n try {\n int i10 = R.styleable.PlayerView_shutter_background_color;\n boolean hasValue = obtainStyledAttributes.hasValue(i10);\n int color = obtainStyledAttributes.getColor(i10, 0);\n int resourceId = obtainStyledAttributes.getResourceId(R.styleable.PlayerView_player_layout_id, i9);\n boolean z9 = obtainStyledAttributes.getBoolean(R.styleable.PlayerView_use_artwork, true);\n int resourceId2 = obtainStyledAttributes.getResourceId(R.styleable.PlayerView_default_artwork, 0);\n boolean z10 = obtainStyledAttributes.getBoolean(R.styleable.PlayerView_use_controller, true);\n int i11 = obtainStyledAttributes.getInt(R.styleable.PlayerView_surface_type, 1);\n int i12 = obtainStyledAttributes.getInt(R.styleable.PlayerView_resize_mode, 0);\n int i13 = obtainStyledAttributes.getInt(R.styleable.PlayerView_show_timeout, 5000);\n boolean z11 = obtainStyledAttributes.getBoolean(R.styleable.PlayerView_hide_on_touch, true);\n boolean z12 = obtainStyledAttributes.getBoolean(R.styleable.PlayerView_auto_show, true);\n i8 = obtainStyledAttributes.getInteger(R.styleable.PlayerView_show_buffering, 0);\n this.r = obtainStyledAttributes.getBoolean(R.styleable.PlayerView_keep_content_on_player_reset, this.r);\n boolean z13 = obtainStyledAttributes.getBoolean(R.styleable.PlayerView_hide_during_ads, true);\n this.s = obtainStyledAttributes.getBoolean(R.styleable.PlayerView_use_sensor_rotation, this.s);\n obtainStyledAttributes.recycle();\n i6 = i11;\n i9 = resourceId;\n z8 = z12;\n i3 = i13;\n z2 = z10;\n z7 = z13;\n i4 = resourceId2;\n z3 = z9;\n z4 = hasValue;\n i5 = color;\n z5 = z11;\n i7 = i12;\n } catch (Throwable th) {\n obtainStyledAttributes.recycle();\n throw th;\n }\n } else {\n z8 = true;\n z7 = true;\n i8 = 0;\n i7 = 0;\n i6 = 1;\n z5 = true;\n i5 = 0;\n z4 = false;\n z3 = true;\n i4 = 0;\n i3 = 5000;\n z2 = true;\n }\n LayoutInflater.from(context).inflate(i9, this);\n setDescendantFocusability(262144);\n AspectRatioFrameLayout aspectRatioFrameLayout = (AspectRatioFrameLayout) findViewById(R.id.exo_content_frame);\n this.b = aspectRatioFrameLayout;\n if (aspectRatioFrameLayout != null) {\n aspectRatioFrameLayout.setResizeMode(i7);\n }\n View findViewById = findViewById(R.id.exo_shutter);\n this.c = findViewById;\n if (findViewById != null && z4) {\n findViewById.setBackgroundColor(i5);\n }\n if (aspectRatioFrameLayout == null || i6 == 0) {\n this.d = null;\n } else {\n ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(-1, -1);\n if (i6 == 2) {\n this.d = new TextureView(context);\n } else if (i6 == 3) {\n SphericalGLSurfaceView sphericalGLSurfaceView = new SphericalGLSurfaceView(context);\n sphericalGLSurfaceView.setSingleTapListener(aVar);\n sphericalGLSurfaceView.setUseSensorRotation(this.s);\n this.d = sphericalGLSurfaceView;\n } else if (i6 != 4) {\n this.d = new SurfaceView(context);\n } else {\n this.d = new VideoDecoderGLSurfaceView(context);\n }\n this.d.setLayoutParams(layoutParams);\n aspectRatioFrameLayout.addView(this.d, 0);\n }\n this.j = (FrameLayout) findViewById(R.id.exo_ad_overlay);\n this.k = (FrameLayout) findViewById(R.id.exo_overlay);\n ImageView imageView2 = (ImageView) findViewById(R.id.exo_artwork);\n this.e = imageView2;\n this.o = z3 && imageView2 != null;\n if (i4 != 0) {\n this.p = ContextCompat.getDrawable(getContext(), i4);\n }\n SubtitleView subtitleView = (SubtitleView) findViewById(R.id.exo_subtitles);\n this.f = subtitleView;\n if (subtitleView != null) {\n subtitleView.setUserDefaultStyle();\n subtitleView.setUserDefaultTextSize();\n }\n View findViewById2 = findViewById(R.id.exo_buffering);\n this.g = findViewById2;\n if (findViewById2 != null) {\n findViewById2.setVisibility(8);\n }\n this.q = i8;\n TextView textView = (TextView) findViewById(R.id.exo_error_message);\n this.h = textView;\n if (textView != null) {\n textView.setVisibility(8);\n }\n int i14 = R.id.exo_controller;\n PlayerControlView playerControlView = (PlayerControlView) findViewById(i14);\n View findViewById3 = findViewById(R.id.exo_controller_placeholder);\n if (playerControlView != null) {\n this.i = playerControlView;\n } else if (findViewById3 != null) {\n PlayerControlView playerControlView2 = new PlayerControlView(context, null, 0, attributeSet);\n this.i = playerControlView2;\n playerControlView2.setId(i14);\n playerControlView2.setLayoutParams(findViewById3.getLayoutParams());\n ViewGroup viewGroup = (ViewGroup) findViewById3.getParent();\n int indexOfChild = viewGroup.indexOfChild(findViewById3);\n viewGroup.removeView(findViewById3);\n viewGroup.addView(playerControlView2, indexOfChild);\n } else {\n this.i = null;\n }\n PlayerControlView playerControlView3 = this.i;\n this.v = playerControlView3 != null ? i3 : 0;\n this.y = z5;\n this.w = z8;\n this.x = z7;\n this.m = z2 && playerControlView3 != null;\n hideController();\n k();\n PlayerControlView playerControlView4 = this.i;\n if (playerControlView4 != null) {\n playerControlView4.addVisibilityListener(aVar);\n }\n }",
"@Override\n public double getGlobalAlpha() {\n return graphicsEnvironmentImpl.getGlobalAlpha(canvas);\n }",
"public X opaque(boolean isOpaque) {\n component.setOpaque(isOpaque);\n return (X) this;\n }"
] | [
"0.5814385",
"0.575848",
"0.5686306",
"0.5624014",
"0.5616028",
"0.5545474",
"0.55447227",
"0.5501125",
"0.5444745",
"0.5371572",
"0.5371572",
"0.53707325",
"0.53545755",
"0.53163594",
"0.520941",
"0.5175112",
"0.5171679",
"0.51553667",
"0.51453036",
"0.5107783",
"0.5097109",
"0.50925946",
"0.50647587",
"0.50547844",
"0.50479126",
"0.50339895",
"0.5013532",
"0.49554077",
"0.49547422",
"0.49305588",
"0.4921018",
"0.49102575",
"0.49058208",
"0.48995233",
"0.4873721",
"0.48551932",
"0.47829688",
"0.47646216",
"0.47474027",
"0.47440627",
"0.47399163",
"0.47198436",
"0.47023165",
"0.46788314",
"0.46744654",
"0.46698833",
"0.46525604",
"0.464593",
"0.4640179",
"0.4616664",
"0.4614086",
"0.46075025",
"0.45912972",
"0.45776066",
"0.457617",
"0.45656842",
"0.45590645",
"0.45579147",
"0.45512295",
"0.4550025",
"0.45432305",
"0.45424384",
"0.45308068",
"0.45293376",
"0.45230106",
"0.45223868",
"0.4515841",
"0.45135874",
"0.45116606",
"0.4511013",
"0.44902775",
"0.44875357",
"0.44865727",
"0.44800022",
"0.44792166",
"0.44739595",
"0.4448395",
"0.44463655",
"0.44433898",
"0.44433743",
"0.4441045",
"0.44404444",
"0.44362554",
"0.4421063",
"0.44209647",
"0.4418163",
"0.4416904",
"0.44142723",
"0.44141227",
"0.4400246",
"0.43844607",
"0.4378737",
"0.43764156",
"0.4372091",
"0.43590492",
"0.43544874",
"0.43454835",
"0.43428433",
"0.43355662",
"0.43348935"
] | 0.70412046 | 0 |
Returns a new object of class 'Icon'. | Icon createIcon(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Icon getIcon();",
"Icon getIcon();",
"public static __IconFactory__ getInstance()\r\n\t{\r\n\t\tif(instance==null)\r\n\t\t\tinstance = new __IconFactory__();\r\n\t\treturn instance;\r\n\t}",
"public interface IconFactory {\n\n\t/**\n\t * Get the icon for an item.\n\t *\n\t * @param object\n\t * Can be any class, but the implementation may place restrictions on valid types.\n\t */\n\tpublic Icon getIcon(Object object);\n}",
"public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}",
"public Icon getIcon(Object object);",
"public MatteIcon() {\r\n this(32, 32, null);\r\n }",
"public Icon getIcon() {\n \t\treturn null;\n \t}",
"public Icon getIcon() {\n\t\treturn null;\n\t}",
"protected HStaticIcon createHStaticIcon()\n {\n return new HStaticIcon();\n }",
"String getIcon();",
"String getIcon();",
"public abstract Drawable getIcon();",
"public void setIcon(Image i) {icon = i;}",
"public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}",
"public RevealIcon() {\n this.width = getOrigWidth();\n this.height = getOrigHeight();\n\t}",
"public IconRenderer() \n\t{\n\t\t\n\t}",
"private static Component createIconComponent()\n {\n JPanel wrapIconPanel = new TransparentPanel(new BorderLayout());\n\n JLabel iconLabel = new JLabel();\n\n iconLabel.setIcon(DesktopUtilActivator.getResources()\n .getImage(\"service.gui.icons.AUTHORIZATION_ICON\"));\n\n wrapIconPanel.add(iconLabel, BorderLayout.NORTH);\n\n return wrapIconPanel;\n }",
"@Source(\"create.gif\")\n\tpublic ImageResource createIcon();",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }",
"public static __Icon9Factory__ getInstance()\r\n\t{\r\n\t\tif(instance==null)\r\n\t\t\tinstance = new __Icon9Factory__();\r\n\t\treturn instance;\r\n\t}",
"protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }",
"public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }",
"@Source(\"create.gif\")\n\tpublic DataResource createIconResource();",
"public String getIcon() {\n\t\treturn \"icon\";\n\t}",
"public FSIcon getIcon() {\n return icon;\n }",
"public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"public Builder setIconBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }",
"public interface XBCXIcon extends XBCBase {\n\n /**\n * Gets parent item.\n *\n * @return the parent item.\n */\n XBCItem getParent();\n\n /**\n * Gets icon mode.\n *\n * @return icon mode\n */\n @Nonnull\n XBCXIconMode getMode();\n\n /**\n * Gets icon file.\n *\n * @return icon file\n */\n @Nonnull\n XBCXFile getIconFile();\n}",
"public Icon getIcon()\n {\n return getComponent().getIcon();\n }",
"private DuakIcons()\r\n {\r\n }",
"@Override\r\n\tpublic IconsApi getIconsApi() {\r\n\t\treturn this;\r\n\t}",
"public Builder setIconBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }",
"public byte[] getIcon()\r\n {\r\n return icon;\r\n }",
"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 }",
"public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }",
"private ImageIcon createIcon(String path) {\r\n\t\tInputStream is = this.getClass().getResourceAsStream(path);\r\n\t\tif (is == null) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\tByteArrayOutputStream buffer = new ByteArrayOutputStream();\r\n\t\t\r\n\t\tint n;\r\n\t\tbyte[] data = new byte[4096];\r\n\t\ttry {\r\n\t\t\twhile ((n = is.read(data, 0, data.length)) != -1) {\r\n\t\t\t\tbuffer.write(data, 0, n);\r\n\t\t\t}\r\n\t\t\tis.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\t\t\r\n\t\treturn new ImageIcon(buffer.toByteArray());\r\n\t\t\r\n\t}",
"public abstract ImageIcon getIcon(int size);",
"private static IconResource initIconResource() {\n\t\tIconResource iconResource = new IconResource(Configuration.SUPERVISOR_LOGGER);\n\t\t\n\t\ticonResource.addResource(IconTypeAWMS.HOME.name(), iconPath + \"home.png\");\n\t\ticonResource.addResource(IconTypeAWMS.INPUT_ORDER.name(), iconPath + \"input-order.png\");\n\t\ticonResource.addResource(IconTypeAWMS.OUTPUT_ORDER.name(), iconPath + \"output-order.png\");\n\t\ticonResource.addResource(IconTypeAWMS.PLUS.name(), iconPath + \"plus.png\");\n\t\ticonResource.addResource(IconTypeAWMS.MINUS.name(), iconPath + \"minus.png\");\n\t\ticonResource.addResource(IconTypeAWMS.EDIT.name(), iconPath + \"edit.png\");\n\t\ticonResource.addResource(IconTypeAWMS.CONFIRM.name(), iconPath + \"confirm.png\");\n\t\ticonResource.addResource(IconTypeAWMS.CANCEL.name(), iconPath + \"cancel.png\");\n\t\ticonResource.addResource(IconTypeAWMS.USER.name(), iconPath + \"user.png\");\n\t\t\n\t\treturn iconResource;\n\t}",
"public ImageDescriptor getIcon();",
"public abstract ImageDescriptor getIcon();",
"public EntityIcon getIcon() {\r\n return icon;\r\n }",
"public ResourceLocation getIcon() {\n return icon;\n }",
"private View createIcon() {\r\n\t\tImageView img = new ImageView(getContext());\r\n\t\tLayoutParams imglp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\t\timglp.gravity = Gravity.CENTER_VERTICAL;\r\n\t\timglp.rightMargin = 5;\r\n\t\timg.setLayoutParams(imglp);\r\n\r\n\t\timg.setBackgroundDrawable(getContext().getResources().getDrawable(R.drawable.account));\r\n\t\treturn img;\r\n\t}",
"public URL getIcon()\r\n {\r\n\treturn icon;\r\n }",
"public interface IconManager {\n\n\t/**\n\t * Fetch an icon\n\t * \n\t * @param id\n\t * Icon id\n\t * @param size\n\t * Required icon size\n\t * @return Icon\n\t */\n\tIcon getIcon(String id, IconSize size);\n\n\t/**\n\t * Returns the URL to an icon.\n\t * \n\t * @param id\n\t * Icon id\n\t * @param size\n\t * Required icon size\n\t * @return URL to the icon\n\t */\n\tURL getIconURL(String iconId, IconSize medium);\n\n}",
"@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }",
"public Builder clearIcon() {\n bitField0_ = (bitField0_ & ~0x00000002);\n icon_ = getDefaultInstance().getIcon();\n onChanged();\n return this;\n }",
"public abstract String typeIcon();",
"public static NeonIcon of(int width, int height) {\n ext_vbproj base = new ext_vbproj();\n base.width = width;\n base.height = height;\n return new NeonIcon(base);\n }",
"@Nonnull\n S iconify();",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder clearIcon() {\n bitField0_ = (bitField0_ & ~0x00000004);\n icon_ = getDefaultInstance().getIcon();\n onChanged();\n return this;\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }",
"public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new ServerIconDescriptor(\"servers\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}",
"private Label createIcon(String name) {\n Label label = new Label();\n Image labelImg = new Image(getClass().getResourceAsStream(name));\n ImageView labelIcon = new ImageView(labelImg);\n label.setGraphic(labelIcon);\n return label;\n }",
"public TitleIconItem(){}",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public AppIcon getAppIcon () ;",
"private ImageIcon createIcon(String path) {\n\t\tbyte[] bytes = null;\n\t\ttry(InputStream is = JNotepadPP.class.getResourceAsStream(path)){\n\t\t\tif (is==null) throw new IllegalArgumentException(\"Wrong path to the image given.\");\n\t\t\tbytes = is.readAllBytes();\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn new ImageIcon(bytes);\n\t}",
"public AwesomeIcon icon() {\n\t\treturn icon;\n\t}",
"@Override\n\tpublic Icon getIcon(int width, int height) {\n\t\treturn null; // Use Display Name instead of an icon.\n\t}",
"B itemIcon(ITEM item, Resource icon);",
"@Override\n\tpublic void setIcon(Drawable icon) {\n\t\t\n\t}",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\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 icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\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 icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Icon getIcon(FileObject f)\n {\n return null;\n }",
"com.google.protobuf.ByteString\n getIconBytes();",
"com.google.protobuf.ByteString\n getIconBytes();",
"public ImageIcon getIcon() {\n\t\treturn null;\n\t}",
"public ImageIcon getIcon() {\n\t\treturn null;\n\t}",
"@NotNull\n SVGResource getIcon();",
"private RLabel getIconLabel() {\n if (iconLabel == null) {\n iconLabel = new RLabel();\n iconLabel.setStyle(\"border-all\");\n iconLabel.setIconUri(\"<%=ivy.cms.cr(\\\"/Icons/Large/error\\\")%>\");\n iconLabel.setStyleProperties(\"{/anchor \\\"NORTHWEST\\\"}\");\n iconLabel.setName(\"iconLabel\");\n }\n return iconLabel;\n }",
"public int getIconId(){\n return mIconId;\n }",
"private static Image getIcon()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + icon));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}",
"public ImageIcon getIcon() {\n\t\tswitch (state[2]) {\n\t\tcase \" Sunny\":\n\t\t\treturn new ImageIcon(\"weatherIcons/sunny.png\");\n\t\tcase \" Cloudy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/cloudy.png\");\n\t\tcase \" Light Clouds\":\n\t\t\treturn new ImageIcon(\"weatherIcons/light clouds.png\");\n\t\tcase \" Windy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/windy.png\");\n\t\tcase \" Heavy Rain\":\n\t\t\treturn new ImageIcon(\"weatherIcons/heavy rain.png\");\n\t\tcase \" Light Rain Showers\":\n\t\t\treturn new ImageIcon(\"weatherIcons/rain showers_light rain.png\");\n\t\tcase \" Snow\":\n\t\t\treturn new ImageIcon(\"weatherIcons/snow.png\");\n\t\tcase \" Lightning\":\n\t\t\treturn new ImageIcon(\"weatherIcons/lightning.png\");\n\t\tdefault:\n\t\t\treturn new ImageIcon(\"weatherIcons/default.png\");\n\t\t}\n\t}",
"public static interface IconComponent {\n void setIcon(Icon i);\n\n void addAncestorListener(AncestorListener l);\n\n void removeAncestorListener(AncestorListener l);\n }",
"public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }",
"public static RadianceIcon of(int width, int height) {\n ext_h base = new ext_h();\n base.width = width;\n base.height = height;\n return base;\n }",
"@Override\n\tImageIcon getImage() {\n\t\treturn img;\n\t}",
"public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new NodeIconDescriptor(\"dataAdapters\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}",
"Icon getMenuIcon();",
"public String getIconString() {\n return theIconStr;\n }",
"public Icon mo3109d() {\n Icon icon;\n int i = this.f2605a;\n if (i == -1) {\n return (Icon) this.f2606b;\n }\n if (i == 1) {\n icon = Icon.createWithBitmap((Bitmap) this.f2606b);\n } else if (i == 2) {\n icon = Icon.createWithResource(mo3107b(), this.f2609e);\n } else if (i == 3) {\n icon = Icon.createWithData((byte[]) this.f2606b, this.f2609e, this.f2610f);\n } else if (i == 4) {\n icon = Icon.createWithContentUri((String) this.f2606b);\n } else if (i != 5) {\n throw new IllegalArgumentException(\"Unknown type\");\n } else if (VERSION.SDK_INT >= 26) {\n icon = Icon.createWithAdaptiveBitmap((Bitmap) this.f2606b);\n } else {\n icon = Icon.createWithBitmap(m2628a((Bitmap) this.f2606b, false));\n }\n ColorStateList colorStateList = this.f2611g;\n if (colorStateList != null) {\n icon.setTintList(colorStateList);\n }\n Mode mode = this.f2612h;\n if (mode != f2604j) {\n icon.setTintMode(mode);\n }\n return icon;\n }",
"public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }",
"public Image getIcon(int type) {\n if ((type == BeanInfo.ICON_COLOR_16x16) || (type == BeanInfo.ICON_MONO_16x16))\n return defaultIcon;\n else\n return defaultIcon32;\n }",
"Icon getIcon(URI activityType);",
"@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}",
"public void setMainIcon(IconReference ref);",
"public ImageIcon getIcon(Location loc){\r\n return loc.getImage(pointer);\r\n }",
"public static ResizableIcon of(int width, int height) {\n ext_xspf base = new ext_xspf();\n base.width = width;\n base.height = height;\n return base;\n }"
] | [
"0.75748414",
"0.7558701",
"0.7386998",
"0.72829574",
"0.72480017",
"0.7202673",
"0.7061582",
"0.6940188",
"0.67781264",
"0.67777336",
"0.67549545",
"0.67549545",
"0.6754323",
"0.67460215",
"0.6735261",
"0.6732135",
"0.67258996",
"0.67034465",
"0.66907454",
"0.66804016",
"0.66804016",
"0.66804016",
"0.66804016",
"0.6657588",
"0.66392183",
"0.657542",
"0.65747017",
"0.65720075",
"0.6552766",
"0.6549828",
"0.6546169",
"0.6518957",
"0.6518957",
"0.650078",
"0.64963734",
"0.64552987",
"0.64516103",
"0.64461666",
"0.64391476",
"0.6434853",
"0.64336276",
"0.64252454",
"0.641673",
"0.64091",
"0.64040154",
"0.6401518",
"0.6400167",
"0.63881487",
"0.6387728",
"0.6382603",
"0.6366279",
"0.63543653",
"0.6335361",
"0.6315355",
"0.63042015",
"0.63035756",
"0.6300522",
"0.62980646",
"0.62980646",
"0.62942",
"0.6293059",
"0.6293059",
"0.62856764",
"0.6281806",
"0.6269264",
"0.62616956",
"0.62616956",
"0.62596357",
"0.6252741",
"0.6238574",
"0.62348366",
"0.6234541",
"0.6224546",
"0.62167794",
"0.62167794",
"0.62110233",
"0.6203408",
"0.6203408",
"0.6202948",
"0.6202948",
"0.6190087",
"0.6186475",
"0.6180598",
"0.6168508",
"0.6156605",
"0.6141569",
"0.6138125",
"0.6130353",
"0.60969853",
"0.60954344",
"0.6094554",
"0.60831493",
"0.6079081",
"0.60732",
"0.6066928",
"0.60555446",
"0.6034895",
"0.60205615",
"0.60179234",
"0.6009983"
] | 0.8445006 | 0 |
Returns a new object of class 'Button'. | Button createButton(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Button createButton() {\n\t\treturn new HtmlButton();\n\t}",
"@Override\n public Button createButton() {\n return new WindowsButton();\n }",
"private Button createNewGameButton() {\n Button newGameButton = new Button(Config.NEW_GAME_BUTTON);\n newGameButton.setTranslateY(10);\n newGameButton.setTranslateX(10);\n\n // TODO: move stuff like this to the CSS resources.\n DropShadow effect = new DropShadow();\n effect.setColor(Color.BLUE);\n newGameButton.setEffect(effect);\n\n return newGameButton;\n }",
"Button new_button (String title, ActionListener action, String tooltip) {\n Button b = new Button(title);\n b.setBackground(Color.white);\n b.setForeground(Color.blue);\n if (action != null)\n b.addActionListener(action);\n if (tooltip != null)\n b.setToolTipText(tooltip);\n return b;\n }",
"private JButton getJButton() {\r\n\t\tif (jButton == null) {\r\n\t\t\tjButton = new JButton();\r\n\t\t\tjButton.setBounds(new Rectangle(172, 11, 71, 26));\r\n\t\t\tjButton.setText(\"Button\");\r\n\t\t\tjButton.addActionListener(new MultiHighlight(jTextArea, \"aeiouAEIOU\"));\r\n\t\t}\r\n\t\treturn jButton;\r\n\t}",
"public static JButton createButton(String text) {\n return new JButton(text);\n }",
"Button getBtn();",
"@NotNull\n TBItemButton addButton() {\n @NotNull TBItemButton butt = new TBItemButton(myItemListener, myStats != null ? myStats.getActionStats(\"simple_button\") : null);\n myItems.addItem(butt);\n return butt;\n }",
"public static Button createButton(String btnValue) {\n\t\tButton btn = new Button(btnValue);\n\t\tbtn.setFont(Font.font(\"Arial\", 20));\n\t\treturn btn;\n\t}",
"private JButton makeButton(String action, String label, int x, int y, int width, int height,\r\n float alignment, String soundName) {\r\n JButton button = new JButton(label);\r\n button.setBounds(x, y, width, height);\r\n button.setAlignmentX(alignment);\r\n button.setBackground(Color.ORANGE);\r\n clickActionListener(button, action, soundName);\r\n return button;\r\n }",
"private JButton getJButton() {\n\t\tif (jButton == null) {\n\t\t\tjButton = new JButton();\n\t\t\tjButton.setBounds(new Rectangle(57, 80, 34, 45));\n\t\t}\n\t\treturn jButton;\n\t}",
"JButton createTranslateButton(ParagraphTranslateGUI app) {\n ImageIcon translateIcon = new ImageIcon(\"resources/TranslateButton.png\");\n translateButton = new JButton(resizeIcon(translateIcon, this.width, this.height));\n translateButton.setBounds(this.posX, this.posY, this.width, this.height);\n\n addMouseListener(app);\n\n return translateButton;\n }",
"private static JButton buttonMaker(String s){\n final JButton button;\n button = new JButton(new ImageIcon(iconMaker(s)));\n button.setFocusPainted(false);\n return button;\n }",
"private JButton createButton(final Box addTo, final String label) {\n JButton button = new JButton(label);\n button.setActionCommand(label);\n button.addActionListener(this);\n addTo.add(button);\n return button;\n }",
"private JButton getJButton() {\n\t\tif (new_button == null) {\n\t\t\tnew_button = new JButton();\n\t\t\tnew_button.setText(Locale.getString(\"NEW\"));\n\t\t\tnew_button.setMnemonic(java.awt.event.KeyEvent.VK_N);\n\t\t\tnew_button.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) { \n\t\t\t\t\tSystem.out.println(\"actionPerformed()\"); // TODO Auto-generated Event stub actionPerformed()\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn new_button;\n\t}",
"protected JButton createAddButton() {\n JButton butAdd = new JButton();\n butAdd.setIcon(new ImageIcon(getClass().getClassLoader().getResource(\"image/add.jpg\")));\n butAdd.setToolTipText(\"Add a new item\");\n butAdd.addActionListener(new AddItemListener());\n return butAdd;\n }",
"private JButton createBookButton() {\n\t\tfinal JButton bookButton = new JButton(\"Create Booking\");\n\n\t\tbookButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\n\t\t\t\thandleBooking();\n\t\t\t}\n\t\t});\n\n\t\treturn bookButton;\n\t}",
"public JButton makeOperatorButton(String op)\r\n {\r\n JButton button = new JButton(op); \r\n ActionListener listener = new OperatorButtonListener(op);\r\n button.addActionListener(listener); \r\n return button; \r\n }",
"public Button(){\n id=1+nbrButton++;\n setBounds(((id-1)*getDimX())/(Data.getNbrLevelAviable()+1),((id-1)*getDimY())/(Data.getNbrLevelAviable()+1),getDimX()/(2*Data.getNbrLevelAviable()),getDimY()/(2*Data.getNbrLevelAviable()));\n setText(id+\"\");\n setFont(Data.getFont());\n addMouseListener(this);\n setVisible(true);\n }",
"public Button createButton(String text, Color color) {\n final String texthere = text;\n Button.ButtonStyle style = new Button.ButtonStyle();\n style.up = skin.getDrawable(text);\n style.down = skin.getDrawable(text);\n\n Button button = new Button(style);\n// button.s(1000,1000);\n button.pad(50);\n button.addListener(new InputListener() {\n public boolean touchDown(InputEvent event, float x, float y,\n int pointer, int button) {\n\n return true;\n }\n\n public void touchUp(InputEvent event, float x, float y,\n int pointer, int button) {\n if (texthere.equals(\"play\"))\n game.setScreen(new Person_Comp(game));\n else if (texthere.equals(\"multi\"))\n game.setScreen(new Multiplayer(game));\n else {\n }\n// game.setScreen(new Settings(game));\n }\n\n });\n return button;\n }",
"public static Button new_button(String text, int x, int y, int width, int height, String color){\n Button button = new Button(text);\n button.setLayoutX(x);\n button.setLayoutY(y);\n button.setPrefWidth(width);\n button.setPrefHeight(height);\n button.setStyle(color);\n return button;\n }",
"public JButton createJButton(String name) throws MissingResourceException, ResourceFormatException, MissingListenerException {\n/* 111 */ return this.buttonFactory.createJToolbarButton(name);\n/* */ }",
"private JButton getJButton1() {\n\t\tif (edit_button == null) {\n\t\t\tedit_button = new JButton();\n\t\t\tedit_button.setMnemonic(java.awt.event.KeyEvent.VK_E);\n\t\t\tedit_button.setText(Locale.getString(\"EDIT\"));\n\t\t}\n\t\treturn edit_button;\n\t}",
"public Component createNewToolItem() {\r\n Button button = new Button();\r\n gwtToolbarItem.addClasses(button);\r\n button.addStyleName(\"action-bar-tool-item\");\r\n return button;\r\n }",
"public SimpleButton()\n {\n this(true);\n }",
"ButtonDemo() \n {\n // construct a Button\n bChange = new JButton(\"Click Me!\"); \n\n // add the button to the JFrame\n getContentPane().add( bChange ); \n }",
"public TranslateButton() {\n this.posX = 0;\n this.posY = 0;\n this.width = 0;\n this.height = 0;\n translateButton = new JButton();\n }",
"protected Button CButton(String s, Color fg, Color bg) {\n Button b = new Button(s);\n b.setBackground(bg);\n b.setForeground(fg);\n b.addActionListener(this);\n return b;\n }",
"private void createUIComponents() {\n bt1 = new JButton(\"Hola\");\n }",
"@Override\n protected Button createButton(Composite parent, int id, String label,\n boolean defaultButton) {\n return null;// 重写父类的按钮,返回null,使默认按钮失效\n }",
"public MenuButtons(String nameOfButton) {\n Text text = new Text(nameOfButton);\n text.setFont(Font.font(null, FontWeight.BOLD, 18));\n text.setFill(Color.WHITESMOKE);\n\n //A rectangle that will be a part of the button\n Rectangle rectangle = new Rectangle(250,30);\n rectangle.setOpacity(0.3);\n rectangle.setFill(Color.BLUE);\n\n setAlignment(Pos.CENTER_LEFT);\n getChildren().addAll(rectangle, text);\n\n setOnMouseEntered(e -> {\n rectangle.setTranslateX(5);\n text.setTranslateX(5);\n rectangle.setFill(Color.DARKBLUE);\n });\n\n setOnMouseExited(e -> {\n rectangle.setTranslateX(0);\n text.setTranslateX(0);\n rectangle.setFill(Color.BLUE);\n });\n\n DropShadow shadowEffect = new DropShadow();\n shadowEffect.setInput(new Glow());\n\n setOnMousePressed(e -> setEffect(shadowEffect));\n setOnMouseReleased(e -> setEffect(null));\n }",
"protected Panel createButtonPanel() {\n Panel panel = new Panel();\n panel.setLayout(new PaletteLayout(2, new Point(2,2), false));\n return panel;\n }",
"private void createButton() {\n\t\tbtnAddTask = new JButton(\"Add Task\");\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbtnCancel = new JButton(\"Cancel\");\n\n\t\tbtnAddTask.addActionListener(new ToDoAction());\n\t\tbtnSave.addActionListener(new ToDoAction());\n\t\tbtnCancel.addActionListener(new ToDoAction());\n\t}",
"private void createButton() {\n this.setIcon(images.getImageIcon(fileName + \"-button\"));\n this.setActionCommand(command);\n this.setPreferredSize(new Dimension(width, height));\n this.setMaximumSize(new Dimension(width, height));\n }",
"public Button addButton(ButtonID buttonId) {\n\t\tfinal Button b = new Button();\n\t\tb.setText(buttonId.title);\n\t\tif (buttonId.icon != null)\n\t\t\tb.setGraphic(new ImageView(buttonId.icon));\n\t\tswitch (buttonId) {\n\t\tcase OK:\n\t\t\tb.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void handle(final ActionEvent event) {\n\t\t\t\t\thandleOk(event);\n\t\t\t\t}\n\t\t\t});\n\t\t\t// TODO fix problematic NPE on VK_ENTER press\n\t\t\t// b.setDefaultButton(true);\n\t\t\tbreak;\n\t\tcase CANCEL:\n\t\t\tb.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void handle(final ActionEvent event) {\n\t\t\t\t\thandleCancel(event);\n\t\t\t\t}\n\t\t\t});\n\t\t\tbreak;\n\t\tcase NEXT:\n\t\t\tb.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void handle(final ActionEvent event) {\n\t\t\t\t\thandleNext(event);\n\t\t\t\t}\n\t\t\t});\n\t\t\tbreak;\n\t\tcase BACK:\n\t\t\tb.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void handle(final ActionEvent event) {\n\t\t\t\t\thandleBack(event);\n\t\t\t\t}\n\t\t\t});\n\t\t\tbreak;\n\t\tcase HELP:\n\t\t\tb.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void handle(final ActionEvent event) {\n\t\t\t\t\thandleHelp(event);\n\t\t\t\t}\n\t\t\t});\n\t\t\tbreak;\n\t\t}\n\t\torderedButtonList.add(b);\n\t\tbuttons.put(buttonId, b);\n\t\treturn b;\n\t}",
"private javax.swing.JButton getJButtonAceptar() {\n\t\tif(jButtonAceptar == null) {\n\t\t\tjButtonAceptar = new JHighlightButton();\n\t\t\tjButtonAceptar.setText(\"Aceptar\");\n\t\t\tjButtonAceptar.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButtonAceptar.setIcon(new ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix16x16/check2.png\")));\n\t\t}\n\t\treturn jButtonAceptar;\n\t}",
"private javax.swing.JButton getJButton8() {\n\t\tif(jButton8 == null) {\n\t\t\tjButton8 = new javax.swing.JButton();\n\t\t\tjButton8.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton8.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton8.setMargin(new Insets(1,2,1,1));\n\t\t\tjButton8.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton8.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t\tjButton8.setText(\"F8 Anular Lista\");\n\t\t}\n\t\treturn jButton8;\n\t}",
"private Button createButton(String name, int fontSize, int cornerSize) {\n Button button = new Button(name);\n button.setFont(Font.font(fontSize));\n button.setMinWidth(BUTTON_WIDTH);\n button.setMaxWidth(Double.MAX_VALUE);\n button.setBackground(new Background(new BackgroundFill(\n Color.SEASHELL, new CornerRadii(cornerSize), null)));\n return button;\n }",
"private JButton getButButton() { \n if (butButton == null) { \n butButton = new JButton(); \n butButton.setBounds(new Rectangle(58, 110, 177, 50)); \n butButton.setText(\"Enviar\"); \n butButton.addActionListener(new java.awt.event.ActionListener() { \n public void actionPerformed(java.awt.event.ActionEvent e) { \n send(); \n } \n }); \n } \n return butButton; \n }",
"protected javax.swing.JButton getJButtonNew() {\n\t\tif(jButton2 == null) {\n\t\t\tjButton2 = new javax.swing.JButton();\n\t\t\tjButton2.setPreferredSize(new java.awt.Dimension(85,25));\n\t\t\tjButton2.setMnemonic(java.awt.event.KeyEvent.VK_N);\n\t\t\tjButton2.setName(\"New\");\n\t\t\tjButton2.setText(\"New...\");\n\t\t\tjButton2.setToolTipText(\"Add a new play entry to the list below\");\n\t\t\tjButton2.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) { \t\t\t\t\t\n\t\t\t\t\tVideoEntryEditor ed = new VideoEntryEditor(PlayListDialog.this);\n\t\t\t\t\ted.setThemeFiles( getThemeFiles() );\n\t\t\t\t\ted.show();\n\t\t\t\t\t\n\t\t\t\t\tif( ed.getResponse() == JOptionPane.OK_OPTION ) {\n\t\t\t\t\t\tgetTableModel().addRow( ed.getVideoEntry() );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButton2;\n\t}",
"void createButton(Button main){\n\t\tActions handler = new Actions();\r\n\t\tmain.setOnAction(handler);\r\n\t\tmain.setFont(font);\r\n\t\t//sets button preference dimensions and label \r\n\t\tmain.setPrefWidth(100);\r\n\t\tmain.setPrefHeight(60);\r\n\t\tmain.setText(\"Close\");\r\n\t}",
"private void createButton() throws SlickException {\n int width = 25*getGameContainer().getWidth()/100;\n int height = 10*getGameContainer().getHeight()/100;\n\n Image login = new Image(getReaderXmlFile().read(\"buttonLogin\")).getScaledCopy(width, height);\n Coordinate posLogin = new Coordinate((getGameContainer().getWidth() - login.getWidth())/2,55*getGameContainer().getHeight()/100);\n loginButton = new Button(getGameContainer(), login, posLogin, IDStates.MENU_STATE, this);\n\n Image account = new Image(getReaderXmlFile().read(\"buttonAccount\")).getScaledCopy(width, height);\n Coordinate posAccount = new Coordinate((getGameContainer().getWidth() - account.getWidth())/2,70*getGameContainer().getHeight()/100);\n accountButton = new Button(getGameContainer(), account, posAccount, IDStates.MENU_STATE, this);\n }",
"private JButton getJButtonCrear() {\r\n\t\tif (jButtonCrear == null) {\r\n\t\t\tjButtonCrear = new JButton();\r\n\t\t\tjButtonCrear.setText(BOTONCREAR);\r\n\t\t\tjButtonCrear.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tcrearCuenta();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonCrear;\r\n\t}",
"private javax.swing.JButton getJButton10() {\n\t\tif(jButton10 == null) {\n\t\t\tjButton10 = new javax.swing.JButton();\n\t\t\tjButton10.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton10.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton10.setText(\"F10 Gaveta\");\n\t\t\tjButton10.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton10.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t\tjButton10.setMargin(new Insets(1,2,1,1));\n\t\t}\n\t\treturn jButton10;\n\t}",
"private JButton makeNewMazeButton()\n {\n JButton newMaze = new JButton(\"New Maze\");\n newMaze.setToolTipText(\"Create a new maze\");\n newMaze.addActionListener(new ActionListener()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n newMaze();\n }\n });\n return newMaze;\n }",
"protected GuiTestObject okbutton() \n\t{\n\t\treturn new GuiTestObject(\n getMappedTestObject(\"okbutton\"));\n\t}",
"protected Button createCustomButton(Composite parent, String label) {\n\t\t((GridLayout) parent.getLayout()).numColumns++;\r\n\t\tButton button = new Button(parent, SWT.PUSH);\r\n\t\tbutton.setText(label);\r\n\t\tbutton.setFont(JFaceResources.getDialogFont());\r\n\r\n\t\tbutton.addSelectionListener(new SelectionAdapter() {\r\n\t\t\tpublic void widgetSelected(SelectionEvent event) {\r\n\t\t\t\t//buttonPressed(((Integer) event.widget.getData()).intValue());\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tsetButtonLayoutData(button);\r\n\t\treturn button;\r\n\t}",
"private JButton getJButtonInto() {\r\n\t\tif (jButtonInto == null) {\r\n\t\t\tjButtonInto = new JButton();\r\n\t\t\tjButtonInto.setMargin(new Insets(2, 5, 2, 5));\r\n\t\t\tjButtonInto.setText(\"数据入库\");\r\n\t\t\tjButtonInto.setBounds(new Rectangle(512, 517, 70, 23));\r\n\t\t\tjButtonInto.addMouseListener(new MouseAdapter() {\r\n\t\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\r\n\t\t\t\t\tDataIntoGui.this.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonInto;\r\n\t}",
"private JButton getJButton() {\n\t\tif (jButton == null) {\n\t\t\tjButton = new JButton();\n\t\t\tjButton.setBounds(new Rectangle(285, 75, 82, 19));\n\t\t\tjButton.setText(\"Potvrď\");\n\t\t\tjButton.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\n\t\t\t\t\tif (jTextArea.getText().equals(\"\") == false) {\n\t\t\t\t\t\tmeno = jTextArea.getText();\n\t\t\t\t\t\tcvicenieText111.setText(meno);\n\t\t\t\t\t\tcvicenieText1112.setText(\"0\");\n\t\t\t\t\t\tcvicenieText1111.setVisible(true);\n\t\t\t\t\t\t\n\t\t\t\t\t\turoven = \"0\";\n\n\t\t\t\t\t\tvycvik1Button.setEnabled(true);\n\t\t\t\t\t\tskuska1Button.setEnabled(true);\n\t\t\t\t\t\tvycvik2Button.setEnabled(true);\n\t\t\t\t\t\tskuska2Button.setEnabled(true);\n\t\t\t\t\t\tvycvik3Button.setEnabled(true);\n\t\t\t\t\t\tskuska3Button.setEnabled(true);\n\t\t\t\t\t\tprieskumButton.setEnabled(true);\n\t\t\t\t\t\t\n\t\t\t\t\t\t/*\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tURL yahoo = new URL(\"http://www.yahoo.com/\");\n\t\t\t\t\t\t\tURLConnection yahooConnection = yahoo.openConnection();\n\t\t\t\t\t\t\tyahooConnection.connect();\n\t\t\t\t\t\t} catch (MalformedURLException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}*/\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButton;\n\t}",
"private JButton getColorButton() {\r\n\t\tif (colorButton == null) {\r\n\t\t\tcolorButton = new JButton(); \r\n\t\t\tcolorButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/rtf_choosecolor.gif\")));\r\n\t\t\tcolorButton.setPreferredSize(new Dimension(23, 23));\r\n\t\t\tcolorButton.setBounds(new Rectangle(16, 1, 23, 20));\r\n\t\t\tcolorButton.setToolTipText(\"颜色编辑\");\r\n\t\t\tcolorButton.setActionCommand(\"colorButton\");\r\n\t\t\tcolorButton.addActionListener(this.buttonAction);\r\n\t\t}\r\n\t\treturn colorButton;\r\n\t}",
"private JButton addButton(String name) {\n JButton button = new JButton(name);\n button.setActionCommand(name);\n buttonsPanel.add(button);\n return button;\n }",
"protected JButton createRefreshButton() {\n JButton butRefresh = new JButton();\n butRefresh.setIcon(new ImageIcon(getClass().getClassLoader().getResource(\"image/refresh3.png\")));\n butRefresh.setToolTipText(\"Refresh All\");\n butRefresh.addActionListener(new refreshListener());\n return butRefresh;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic buttonQuit() {\n\t\tbutton = new Button(\"Quit\");\n\t\tbutton.setPrefSize(100, 20);\n\t\tbutton.setStyle(\"-fx-background-color: black\");\n\t\tbutton.setTextFill(Color.YELLOW);\n\t\tbutton.addEventHandler(MouseEvent.MOUSE_CLICKED, quit);\n\n\t}",
"private RButton getCopyButton() {\n if (copyButton == null) {\n copyButton = new RButton();\n copyButton.setText(\"<%= ivy.cms.co(\\\"/Buttons/copy\\\") %>\");\n copyButton.setName(\"copyButton\");\n }\n return copyButton;\n }",
"private BaseButton getQuitToMainMenuButton(){\n\t\tfinal BaseButton button = new MenuButton(QUIT_TO_MAIN_MENU);\n\t\tbutton.addListener(new ClickListener(){\n\n\t\t\t@Override\n\t\t\tpublic void clicked(final InputEvent event, final float x, final float y) {\n\t\t\t\tquitToMainMenu();\n\t\t\t}\n\t\t\t\n\t\t});\n\t\treturn button;\n\t}",
"private void makeSearchButton() {\n searchButton = new JButton();\n searchButton.setBorder(new CompoundBorder(\n BorderFactory.createMatteBorder(4, 0, 4, 7, DrawAttribute.lightblue),\n BorderFactory.createRaisedBevelBorder()));\n searchButton.setBackground(new Color(36, 45, 50));\n searchButton.setIcon(new ImageIcon(MapIcon.iconURLs.get(\"searchIcon\")));\n searchButton.setFocusable(false);\n searchButton.setBounds(320, 20, 43, 37);\n searchButton.setActionCommand(\"search\");\n }",
"private JButton createUnBookButton() {\n\t\tfinal JButton unBookButton = new JButton(\"Remove Booking\");\n\n\t\tunBookButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\n\t\t\t\thandleUnbooking();\n\t\t\t}\n\t\t});\n\n\t\treturn unBookButton;\n\t}",
"private javax.swing.JButton getJButton11() {\n\t\tif(jButton11 == null) {\n\t\t\tjButton11 = new javax.swing.JButton();\n\t\t\tjButton11.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton11.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton11.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton11.setText(\"F11 Bloquear\");\n\t\t\tjButton11.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t\tjButton11.setMargin(new Insets(1,2,1,1));\n\t\t\tjButton11.setEnabled(false);\n\t\t}\n\t\treturn jButton11;\n\t}",
"private JButton getJButton2() {\n\t\tif (import_button == null) {\n\t\t\timport_button = new JButton();\n\t\t\timport_button.setText(Locale.getString(\"IMPORT\"));\n\t\t\timport_button.setMnemonic(java.awt.event.KeyEvent.VK_I);\n\t\t}\n\t\treturn import_button;\n\t}",
"AbstractButton createFor(String graphicsResource, String tooltip, final JMenuItem inMenu, boolean toggle) {\r\n\t\tAbstractButton result = toggle ? new JToggleButton() : new JButton();\r\n\t\tURL res = getClass().getResource(graphicsResource);\r\n\t\tif (res != null) {\r\n\t\t\tresult.setIcon(new ImageIcon(res));\r\n\t\t}\r\n\t\tresult.setToolTipText(tooltip);\r\n\t\tresult.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tinMenu.doClick();\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn result;\r\n\t}",
"private JButton getLinkButton() {\r\n\t\tif (linkButton == null) {\r\n\t\t\tlinkButton = new JButton(); \r\n\t\t\tlinkButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/discrete_attribute.gif\")));\r\n\t\t\tlinkButton.setPreferredSize(new Dimension(23, 23));\r\n\t\t\tlinkButton.setBounds(new Rectangle(44, 1, 23, 20));\r\n\t\t\tlinkButton.setToolTipText(\"超链接编辑\");\r\n\t\t\tlinkButton.setActionCommand(\"linkButton\");\r\n\t\t\tlinkButton.addActionListener(this.buttonAction);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn linkButton;\r\n\t}",
"private void createButton(){\n addButton();\n addStartButton();\n }",
"Button(int x, int y, int w, int h, String label, int c){\n this.x = x;\n this.y = y;\n this.w = w;\n this.h = h;\n this.label = label;\n this.col = c;\n }",
"private JPanel createButtons()\r\n\t{\r\n\t\tJPanel buttons = new JPanel();\r\n\t\tbuttons.setLayout(new FlowLayout(FlowLayout.TRAILING));\r\n\r\n\r\n\t\tButton save = new Button(PrimeMain1.texts.getString(\"save\"));\r\n\t\tsave.addActionListener(this);\r\n\t\tsave.setActionCommand(\"save\");\r\n\r\n\t\tButton cancel = new Button(PrimeMain1.texts.getString(\"cancel\"));\r\n\t\tcancel.addActionListener(this);\r\n\t\tcancel.setActionCommand(\"cancel\");\r\n\r\n\r\n\t\tbuttons.add(save);\r\n\t\tbuttons.add(cancel);\r\n\r\n\t\treturn buttons;\r\n\t}",
"private BButton getBtnOK() {\r\n\t\tif (btnOK == null) {\r\n\t\t\tbtnOK = new BButton();\r\n\t\t\tbtnOK.setText(\"OK\");\r\n\t\t\tbtnOK.setPreferredSize(new Dimension(100, 29));\r\n\t\t}\r\n\t\treturn btnOK;\r\n\t}",
"private javax.swing.JButton getJButton1() {\n\t\tif(jButton1 == null) {\n\t\t\tjButton1 = new javax.swing.JButton();\n\t\t\tjButton1.setText(\"F1 Agregar Producto\");\n\t\t\tjButton1.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton1.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t\tjButton1.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton1.setMargin(new Insets(1,2,1,1));\n\t\t}\n\t\treturn jButton1;\n\t}",
"private JComponent getButtonPanel() {\n JPanel buttonPanel = new JPanel();\n // Open\n OpenAction openAction = new OpenAction();\n buttonPanel.add(new JButton(openAction));\n // Save\n SaveAction saveAction = new SaveAction();\n buttonPanel.add(new JButton(saveAction));\n // Save as\n SaveAsAction saveAsAction = new SaveAsAction(saveAction);\n buttonPanel.add(new JButton(saveAsAction));\n return buttonPanel;\n }",
"public OperatorButton(String name){\n\t\tsuper(name);\n\t}",
"public Button getButton() {\n\t\treturn button;\n\t}",
"private JButton getJButton() {\r\n\t\tif (jButton == null) {\r\n\t\t\tjButton = new JButton();\r\n\t\t\tjButton.setText(\"Close\");\r\n\t\t\tjButton.setSize(new Dimension(90,30));\r\n\t\t\tjButton.setLocation(new Point(660, 520));\r\n\t\t\tjButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t_parent.addSelectFields(PageSelectDialog.this);\r\n\t\t\t\t\tUtils.removeWindow(PageSelectDialog.this);\r\n\t\t\t\t\t_parent.setVisible(true);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButton;\r\n\t}",
"private JButton makePrgRunButton() {\r\n\t\tJButton tprgRunButton = new JButton();\r\n\t\ttprgRunButton.setBackground(new Color(250, 250, 250));\r\n\t\ttprgRunButton.setForeground(new Color(51, 51, 51));\r\n\t\ttprgRunButton.setIcon(new ImageIcon(getClass().getResource(\"/org/colombbus/tangara/control_play_blue.png\"))); //$NON-NLS-1$\r\n\t\ttprgRunButton.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 13)); //$NON-NLS-1$\r\n\t\ttprgRunButton.setPreferredSize(new Dimension(120, 30));\r\n\t\ttprgRunButton.setText(Messages.getString(\"EditorFrame.button.execute\")); //$NON-NLS-1$\r\n\t\ttprgRunButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tparentFrame.executeProgram(getCurrentPane().getText(), getSelectedIndex());\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\treturn tprgRunButton;\r\n\t}",
"@Override\n\tprotected Button createPushButton(Composite parent, String label, Image image) {\n\t\treturn super.createPushButton(parent, label, image);\n\t}",
"public void makeGetRPButton() {\r\n JButton getRP = new JButton(\"Check if a champion can be purchased with Riot Points\");\r\n new Button(getRP, main);\r\n// getRP.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// getRP.setPreferredSize(new Dimension(2500, 100));\r\n// getRP.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n getRP.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n getRiotPointsBalanceDifference();\r\n }\r\n });\r\n// main.add(getRP);\r\n }",
"private javax.swing.JButton getJButton7() {\n\t\tif(jButton7 == null) {\n\t\t\tjButton7 = new javax.swing.JButton();\n\t\t\tjButton7.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton7.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton7.setMargin(new Insets(1,2,1,1));\n\t\t\tjButton7.setText(\"F7 Cerrar Lista\");\n\t\t\tjButton7.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton7.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t}\n\t\treturn jButton7;\n\t}",
"public ButtonSetterFX() {\n }",
"public void createButtons() {\n\t\tbutton1 = new JButton(\"Button1\");\n\t\tbutton2 = new JButton(\"Button2\");\n\t\tbutton3 = new JButton(\"Button3\");\n\t\tbutton4 = new JButton(\"Button4\");\n\t\tbutton5 = new JButton(\"Button5\");\n\t}",
"private JButton getViewButton() {\r\n\t\tif (viewButton == null) {\r\n\t\t\tviewButton = new JButton();\r\n\t\t\tviewButton.setText(Message.getMessage(\"reportmaker.view.label\"));\r\n\t\t\tviewButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tdisplayReport();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn viewButton;\r\n\t}",
"private void createButtonsPanel() {\r\n Composite buttonsPanel = new Composite(this, SWT.NONE);\r\n buttonsPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));\r\n buttonsPanel.setLayout(new GridLayout(4, true));\r\n\r\n getButtonFromAction(buttonsPanel, \"New\", new NewAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Save\", new SaveAction());\r\n getButtonFromAction(buttonsPanel, \"Delete\", new DeleteAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Cancel\", new CancelAction());\r\n }",
"public ButtonBase(Element element, ButtonBaseCss css) {\n setElement(element);\n css.ensureInjected();\n this.active = css.active();\n\n addTouchHandler(new TouchHandler() {\n\n @Override\n public void onTouchCanceled(TouchCancelEvent event) {\n event.stopPropagation();\n event.preventDefault();\n removeStyleName(active);\n if (MGWT.getOsDetection().isDesktop()) {\n DOM.releaseCapture(getElement());\n }\n }\n\n @Override\n public void onTouchEnd(TouchEndEvent event) {\n event.stopPropagation();\n event.preventDefault();\n removeStyleName(active);\n if (MGWT.getOsDetection().isDesktop()) {\n DOM.releaseCapture(getElement());\n }\n }\n\n @Override\n public void onTouchMove(TouchMoveEvent event) {\n event.preventDefault();\n event.stopPropagation();\n }\n\n @Override\n public void onTouchStart(TouchStartEvent event) {\n event.stopPropagation();\n event.preventDefault();\n addStyleName(active);\n if (MGWT.getOsDetection().isDesktop()) {\n DOM.setCapture(getElement());\n }\n\n }\n });\n\n addTapHandler(new TapHandler() {\n\n @Override\n public void onTap(TapEvent event) {\n removeStyleName(active);\n\n }\n });\n\n }",
"private JButton getBNuevo() {\r\n if (bNuevo == null) {\r\n bNuevo = new JButton();\r\n bNuevo.setBounds(new Rectangle(260, 165, 100, 20));\r\n bNuevo.setText(\"Nuevo\");\r\n bNuevo.addActionListener(new java.awt.event.ActionListener() { \r\n public void actionPerformed(java.awt.event.ActionEvent e) { \r\n limpiarCampos();\r\n }\r\n \r\n });\r\n }\r\n return bNuevo;\r\n }",
"public interface Buttons {\n\n\t/**\n\t * \n\t * @param btnText - the text that will be shown when looking at the button\n\t * @param tooltip - the text that will be shown when the user is mouseover the\n\t * button\n\t * @return Button - with the text btnText and a tooltip of tooltip, the rest of\n\t * the button is very basic\n\t */\n\tpublic default Button buttons(String btnText, String tooltip) {\n\t\tButton btn = new Button(btnText);\n\t\tTooltip btnTooltip = new Tooltip(tooltip);\n\t\tbtn.setTooltip(btnTooltip);\n\t\tbtn.setMinWidth(MinWidth());\n\t\tbtn.setPrefWidth(50.0);\n\t\tbtn.setMaxWidth(50.0);\n\t\tbtn.setFont(Font.font(\"Verdana\", 20));\n\t\tEventHandler<ActionEvent> buttonHandler = new EventHandler<ActionEvent>() {\n\t\t\t@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tactionButton(btnText);\n\t\t\t\tevent.consume();\n\t\t\t}\n\n\t\t};\n\t\tbtn.setOnAction(buttonHandler);\n\t\treturn btn;\n\n\t}\n\n\t/**\n\t * all the action that will happen when the button is pressed will be defined\n\t * here\n\t * \n\t * @param text - that is on the button. \n\t */\n\tpublic void actionButton(String text);\n\n\tpublic default double MinWidth() {\n\t\treturn 50.0;\n\t}\n}",
"@Override\n\tprotected void buildButton() {\n\t\t\n\t}",
"private javax.swing.JButton getJButton9() {\n\t\tif(jButton9 == null) {\n\t\t\tjButton9 = new javax.swing.JButton();\n\t\t\tjButton9.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton9.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton9.setMargin(new Insets(1,2,1,1));\n\t\t\tjButton9.setText(\"F9 Cancelar\");\n\t\t\tjButton9.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t\tjButton9.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton9.setActionCommand(\"Cancelar Consulta\");\n\t\t}\n\t\treturn jButton9;\n\t}",
"private JButton createButtonAddProduct() {\n\n JButton btn = new JButton(\"Add Product\");\n btn.setEnabled(false);\n btn.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n // new NewProductDialog(DemonstrationApplication.this);\n }\n });\n\n return btn;\n }",
"private JButton getJButton() {\r\n\t\tif (jButton == null) {\r\n\t\t\tjButton = new JButton();\r\n\t\t\tjButton.setBounds(new Rectangle(37, 122, 124, 32));\r\n\t\t\tjButton.setBackground(new Color(0, 204, 51));\r\n\t\t\tjButton.setText(\"Search\");\r\n\t\t\tjButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e)\r\n\t\t\t\t{\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tjTextArea.setText(\"\");\r\n\t\t\t\t\tString s=jTextField.getText();\r\n\t\t\t\t\tboolean ok=validate(s);\r\n\t\t\t\t\tif(!ok) jTextArea.setText(\"Sorry. No records for '\"+s+\"'.\");\r\n\t\t\t\t\tif(s.length()>0 && ok)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString text;\r\n\t\t\t\t\t\ttext=(String)load.myMap.searchMatchesInMap(s);\r\n\t\t\t\t\t\tjTextArea.setEditable(true);\r\n\t\t\t\t\t\tif(text.compareTo(\"\")!=0)\t\t\t\t\t\r\n\t\t\t\t\t\t\tjTextArea.setText(text);\r\n\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\tjTextArea.setText(\"Sorry. No records for '\"+s+\"'.\");\r\n\t\t\t\t\t\tjTextArea.setEditable(false);\r\n\t\t\t\t\t\tjTextField.setText(\"\");\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\treturn jButton;\r\n\t}",
"private javax.swing.JButton getJButton5() {\n\t\tif(jButton5 == null) {\n\t\t\tjButton5 = new javax.swing.JButton();\n\t\t\tjButton5.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton5.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton5.setText(\"F5 Consultas\");\n\t\t\tjButton5.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton5.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t\tjButton5.setMargin(new Insets(1,2,1,1));\n\t\t}\n\t\treturn jButton5;\n\t}",
"private JButton getJButton1() {\r\n\t\tif (jButton1 == null) {\r\n\t\t\tjButton1 = new JButton();\r\n\t\t\tjButton1.setBounds(new java.awt.Rectangle(194,346,85,21));\r\n\t\t\tjButton1.setBackground(java.awt.Color.lightGray);\r\n\t\t\tjButton1.setText(\"Cancelar\");\r\n\t\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tSystem.out.println(\"Cancelar Alta Afiliado.\");\r\n\t\t\t\t\tcdor.actionCerrar();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButton1;\r\n\t}",
"private JButton addButton(String label, ActionListener listener) {\n JButton button = new JButton(label);\n Font font = button.getFont();\n font = font.deriveFont(font.getSize() * 1.5f);\n button.setFont(font);\n button.addActionListener(listener);\n button.setFocusPainted(false);\n return button;\n }",
"public GameButton() {\n initialize();\n }",
"private ImageButton generateItemButton(Texture image) {\n\t\tTextureRegion imgRegion = new TextureRegion(image);\n\t\tTextureRegionDrawable imgDraw = new TextureRegionDrawable(imgRegion);\n\t\treturn new ImageButton(imgDraw);\n\t}",
"public LinkButton() {\n\t\tsuper();\n\t\tinit();\n\t}",
"public JButton getNewGameButton() {\n\t\treturn newGameButton;\n\t}",
"private JButton getJButton1() {\n\t\tif (jButton1 == null) {\n\t\t\tjButton1 = new JButton();\n\t\t\tjButton1.setBounds(new Rectangle(25, 295, 76, 25));\n\t\t\tjButton1.setText(\"Pomoc\");\n\t\t\tjButton1.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) { \n\t\t\t\t\t\n\t\t\t\t\tJDialog jDialog = getPomocDialog();\n\t\t\t\t\tjDialog.setTitle(\"Pomoc\");\n\t\t\t\t\tjDialog.pack();\n\t\t\t\t\tPoint loc = getHlavneOkno().getLocation();\n\t\t\t\t\tloc.translate(20, 20);\n\t\t\t\t\tjDialog.setLocation(loc);\n\t\t\t\t\tjDialog.setVisible(true);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\n\t\t\t});\n\t\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tSystem.out.println(\"actionPerformed()\"); // TODO Auto-generated Event stub actionPerformed()\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButton1;\n\t}",
"private HBox createButtons() {\n\t\tButton solve = new Button(\"Solve\");\n\t\tButton clear = new Button(\"Clear\");\n\t\tButton quit = new Button(\"Quit\");\n\t\t\n\t\tsolve.setStyle(\"-fx-font: 12 arial; -fx-base: #336699;\");\n\t\tclear.setStyle(\"-fx-font: 12 arial; -fx-base: #336699;\");\n\t\tquit.setStyle(\"-fx-font: 12 arial; -fx-base: #336699;\");\n\t\t\n\t\tsolve.setOnAction(e -> solve());\n\t\tclear.setOnAction(e -> clear());\n\t\tquit.setOnAction(e -> quit());\n\t\t\n\t\tHBox buttons = new HBox();\n\t\tbuttons.setSpacing(20);\n\t\tbuttons.setPadding(new Insets(20,20,20,20));\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\tbuttons.getChildren().addAll(solve, clear, quit);\n\t\tbuttons.setStyle(\"-fx-background-color: #DCDCDC;\");\n\t\t\n\t\treturn buttons;\n\t}",
"private JButton getJButton3() {\r\n\t\tif (jButton3 == null) {\r\n\t\t\tjButton3 = new JButton();\r\n\t\t\tjButton3.setBounds(new Rectangle(38, 224, 124, 28));\r\n\t\t\tjButton3.setBackground(new Color(0, 204, 51));\r\n\t\t\tjButton3.setText(\"New word\");\r\n\t\t\tjButton3.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tjButton1.setEnabled(true);\r\n\t\t\t\t\tjButton1.setVisible(true);\r\n\t\t\t\t\tjTextArea.setText(\"\");\r\n\t\t\t\t\tjTextArea.setEditable(true);\r\n\t\t\t\t\tjButton.setEnabled(false);\r\n\t\t\t\t\tjButton2.setEnabled(false);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButton3;\r\n\t}",
"private RGridLayoutPane getButtonPane() {\n if (buttonPane == null) {\n buttonPane = new RGridLayoutPane();\n buttonPane.setName(\"buttonPane\");\n buttonPane.setStyle(\"border-all\");\n buttonPane.setHgap(5);\n buttonPane.setName(\"buttonPane\");\n buttonPane.setStyleProperties(\"{/anchor \\\"EAST\\\"}\");\n buttonPane.add(getShowDetailsButton());\n buttonPane.add(getCopyButton());\n buttonPane.add(getOkButton());\n }\n return buttonPane;\n }",
"private JButton createCloseButton() {\r\n\r\n\t\tJButton button = new JButton(BundleUtil.getString(BundleUtil.Command_Close));\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\treturn button;\r\n\t}",
"private JButton getZahrajTlacitko() {\n\t\tif (zahrajTlacitko == null) {\n\t\t\tzahrajTlacitko = new JButton();\n\t\t\tzahrajTlacitko.setText(\"Zahraj\");\n\t\t\tzahrajTlacitko.setSize(new Dimension(100, 30));\n\t\t\tzahrajTlacitko.setLocation(new Point(20, 81));\n\t\t\tzahrajTlacitko\n\t\t\t\t\t.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\n\t\t\t\t\t\t\tsyntetizator.hraj(priklad);\n\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t}\n\t\treturn zahrajTlacitko;\n\t}",
"private javax.swing.JButton getJButton12() {\n\t\tif(jButton12 == null) {\n\t\t\tjButton12 = new javax.swing.JButton();\n\t\t\tjButton12.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton12.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t\tjButton12.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton12.setText(\"F12 Salir\");\n\t\t\tjButton12.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton12.setHorizontalTextPosition(javax.swing.SwingConstants.TRAILING);\n\t\t\tjButton12.setMargin(new Insets(1,2,1,1));\n\t\t\tjButton12.setEnabled(false);\n\t\t}\n\t\treturn jButton12;\n\t}",
"public Button(float x, float y, float width, float height){\n super(x,y,width,height);\n }"
] | [
"0.7720002",
"0.76926494",
"0.7349059",
"0.71097237",
"0.7096464",
"0.7042534",
"0.6988123",
"0.69390744",
"0.6937381",
"0.6864134",
"0.68068063",
"0.679167",
"0.67727846",
"0.6751262",
"0.6681511",
"0.66116124",
"0.6579304",
"0.6572455",
"0.6560996",
"0.6549868",
"0.6547702",
"0.6533828",
"0.6530683",
"0.651622",
"0.65115064",
"0.6504951",
"0.65045244",
"0.64832115",
"0.64726865",
"0.64538753",
"0.64479655",
"0.6444061",
"0.6441951",
"0.64369226",
"0.64340353",
"0.6403451",
"0.63958067",
"0.639129",
"0.6382506",
"0.6372879",
"0.636941",
"0.6367518",
"0.63615245",
"0.63607264",
"0.63541144",
"0.6349223",
"0.63470155",
"0.6343258",
"0.63298887",
"0.6306958",
"0.63025314",
"0.6298791",
"0.6290317",
"0.62883735",
"0.6276001",
"0.6274477",
"0.6272262",
"0.62704855",
"0.62685806",
"0.62677586",
"0.62661654",
"0.6243399",
"0.6239952",
"0.62335",
"0.622828",
"0.62218845",
"0.6214269",
"0.6205184",
"0.62010455",
"0.618623",
"0.61772263",
"0.6169468",
"0.6164133",
"0.6155517",
"0.615265",
"0.61521745",
"0.6148711",
"0.6148424",
"0.6146032",
"0.6141351",
"0.61374813",
"0.612401",
"0.6113132",
"0.6111414",
"0.6103925",
"0.6100559",
"0.6090757",
"0.6080654",
"0.6079336",
"0.6079282",
"0.60776365",
"0.60696995",
"0.6062929",
"0.6056439",
"0.60536486",
"0.6053589",
"0.60529345",
"0.6052859",
"0.6052425",
"0.60502774"
] | 0.8263994 | 0 |
Returns a new object of class 'Style Sheet'. | StyleSheet createStyleSheet(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Stylesheet stylesheet () {\n return SimpleStyles.newSheet();\n }",
"STYLE createSTYLE();",
"public S create() {\n\t\tS style = createDefault();\n\t\tint id = nextID();\n\t\tstyle.setId(id);\n\t\taddStyle(style);\n\t\treturn style;\n\t}",
"@Override\n protected Sheet createSheet() {\n Sheet sheet = Sheet.createDefault();\n // Create a set of properties\n Sheet.Set set = Sheet.createPropertiesSet();\n\n set.put(getNameProperty());\n set.put(getMajorProperty());\n set.put(getMinorProperty());\n set.put(getPatchProperty());\n set.put(getDescriptionProperty());\n set.put( getGitProperty());\n set.put( getBranchProperty());\n\n // Add the set of properties to the sheet\n sheet.put(set);\n\n return sheet;\n }",
"public abstract TC createStyle();",
"Style getStyle();",
"public Sheet createSheet() {\n\t\treturn null;\n\t}",
"protected static Style getStyle(XMLDataObject xml) {\n\n Style style = new Style();\n style.setName(xml.getString(\"@name\"));\n style.setValue(getCssString(xml));\n\n return style;\n }",
"public CellStyle createCellStyle() {\n\t\treturn null;\n\t}",
"public VisualizationStyle getNewStyle()\r\n {\r\n return myNewStyle;\r\n }",
"public StylePanel getStylePanel();",
"public HSSFCellStyle getStyle(HSSFWorkbook workbook) {\r\n\t\t// Set font\r\n\t\tHSSFFont font = workbook.createFont();\r\n\t\t// Set font size\r\n\t\t// font.setFontHeightInPoints((short)10);\r\n\t\t// Bold font\r\n\t\t// font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);\r\n\t\t// Set font name\r\n\t\tfont.setFontName(\"Courier New\");\r\n\t\t// Set the style;\r\n\t\tHSSFCellStyle style = workbook.createCellStyle();\r\n\t\t// Set the bottom border;\r\n\t\tstyle.setBorderBottom(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the bottom border color;\r\n\t\tstyle.setBottomBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the left border;\r\n\t\tstyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the left border color;\r\n\t\tstyle.setLeftBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the right border;\r\n\t\tstyle.setBorderRight(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the right border color;\r\n\t\tstyle.setRightBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Set the top border;\r\n\t\tstyle.setBorderTop(HSSFCellStyle.BORDER_THIN);\r\n\t\t// Set the top border color;\r\n\t\tstyle.setTopBorderColor(HSSFColor.BLACK.index);\r\n\t\t// Use the font set by the application in the style;\r\n\t\tstyle.setFont(font);\r\n\t\t// Set auto wrap;\r\n\t\tstyle.setWrapText(false);\r\n\t\t// Set the style of horizontal alignment to center alignment;\r\n\t\tstyle.setAlignment(HSSFCellStyle.ALIGN_CENTER);\r\n\t\t// Set the vertical alignment style to center alignment;\r\n\t\tstyle.setVerticalAlignment(HSSFCellStyle.VERTICAL_CENTER);\r\n\r\n\t\treturn style;\r\n\r\n\t}",
"public interface Style extends CssResource {\n\t\t/**\n\t\t * Returns tabTyle\n\t\t */\n\t\tString tabStyle();\n\t}",
"public interface StyleObject {\n /**\n * <p>\n * Returns height of the style object.\n * </p>\n *\n * @return height of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getHeight();\n\n /**\n * <p>\n * Returns width of the style object.\n * </p>\n *\n * @return width of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getWidth();\n\n /**\n * <p>\n * Returns x coordinate of the style object.\n * </p>\n *\n * @return x coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n */\n public double getX();\n\n /**\n * <p>\n * Returns y coordinate of the style object.\n * </p>\n *\n * @return y coordinate of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public double getY();\n\n /**\n * <p>\n * Returns font name of the style object.\n * </p>\n *\n * @return font name of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFontName();\n\n /**\n * <p>\n * Returns font size of the style object.\n * </p>\n *\n * @return font size of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public int getFontSize();\n\n /**\n * <p>\n * Returns fill color of the style object.\n * </p>\n *\n * @return fill color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getFillColor();\n\n /**\n * <p>\n * Returns outline color of the style object.\n * </p>\n *\n * @return outline color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getOutlineColor();\n\n /**\n * <p>\n * Returns text color of the style object.\n * </p>\n *\n * @return text color of the style object\n *\n * @throws StyleNotSupportedException if the style is not supported\n * @throws IllegalStateException if the style panel for the style object is not set\n */\n public String getTextColor();\n\n /**\n * <p>\n * Sets the style panel.\n * </p>\n *\n * @param stylePanel stylePanel where this object attached, can be null\n */\n public void setStylePanel(StylePanel stylePanel);\n\n /**\n * <p>\n * Gets the style panel.\n * </p>\n *\n * @return stylePanel where this object is attached, null if this object is not attached\n */\n public StylePanel getStylePanel();\n}",
"public Stylesheet makeStylesheet(SyntaxTreeNode element)\n throws CompilerException {\n try {\n Stylesheet stylesheet;\n\n if (element instanceof Stylesheet) {\n stylesheet = (Stylesheet)element;\n }\n else {\n stylesheet = new Stylesheet();\n stylesheet.setSimplified();\n stylesheet.addElement(element);\n stylesheet.setAttributes((AttributesImpl) element.getAttributes());\n\n // Map the default NS if not already defined\n if (element.lookupNamespace(EMPTYSTRING) == null) {\n element.addPrefixMapping(EMPTYSTRING, EMPTYSTRING);\n }\n }\n stylesheet.setParser(this);\n return stylesheet;\n }\n catch (ClassCastException e) {\n ErrorMsg err = new ErrorMsg(ErrorMsg.NOT_STYLESHEET_ERR, element);\n throw new CompilerException(err.toString());\n }\n }",
"private static Map<String, CellStyle> createStyles(Workbook wb)\r\n\t{\r\n\t\tMap<String, CellStyle> styles = new HashMap<String, CellStyle>();\r\n\t\tDataFormat df = wb.createDataFormat();\r\n\r\n\t\tFont titleFont = wb.createFont();\r\n\t\ttitleFont.setFontHeightInPoints((short) 18);\r\n\t\ttitleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n\t\ttitleFont.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n\t\tCellStyle titleStyle = wb.createCellStyle();\r\n\t\ttitleStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\ttitleStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\ttitleStyle.setFont(titleFont);\r\n\t\tborderCell(titleStyle, CellStyle.BORDER_THICK, IndexedColors.BLUE.getIndex());\r\n\t\tstyles.put(TITLE_STYLE_NAME, titleStyle);\r\n\r\n\t\tFont headerFont = wb.createFont();\r\n\t\theaderFont.setFontHeightInPoints((short) 11);\r\n\t\theaderFont.setColor(IndexedColors.WHITE.getIndex());\r\n\t\tCellStyle headerStyle = wb.createCellStyle();\r\n\t\theaderStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\theaderStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\theaderStyle.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t\theaderStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\theaderStyle.setFont(headerFont);\r\n\t\theaderStyle.setWrapText(true);\r\n\t\tstyles.put(HEADER_STYLE_NAME, headerStyle);\r\n\r\n\t\tCellStyle plainCellStyle = wb.createCellStyle();\r\n\t\tplainCellStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tborderCell(plainCellStyle, CellStyle.BORDER_THIN, IndexedColors.BLACK.getIndex());\r\n\t\tstyles.put(PLAIN_CELL_STYLE_NAME, plainCellStyle);\r\n\r\n\t\tCellStyle dateCellStyle = wb.createCellStyle();\r\n\t\tdateCellStyle.cloneStyleFrom(plainCellStyle);\r\n\t\tdateCellStyle.setDataFormat(df.getFormat(\"yyyy-mm-dd\"));\r\n\t\tstyles.put(DATE_CELL_STYLE_NAME, dateCellStyle);\r\n\r\n\t\tCellStyle integerFormulaStyle = wb.createCellStyle();\r\n\t\tintegerFormulaStyle.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t\tintegerFormulaStyle.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t\tintegerFormulaStyle.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n\t\tintegerFormulaStyle.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t\tborderCell(integerFormulaStyle, CellStyle.BORDER_DOTTED, IndexedColors.GREY_80_PERCENT.getIndex());\r\n\t\tintegerFormulaStyle.setDataFormat(df.getFormat(\"0\"));\r\n\t\tintegerFormulaStyle.setWrapText(true);\r\n\t\tstyles.put(INTEGER_FORMULA_STYLE_NAME, integerFormulaStyle);\r\n\r\n\t\tCellStyle floatFormulaStyle = wb.createCellStyle();\r\n\t\tfloatFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tfloatFormulaStyle.setDataFormat(df.getFormat(\"0.00\"));\r\n\t\tstyles.put(FLOAT_FORMULA_STYLE_NAME, floatFormulaStyle);\r\n\r\n\t\tCellStyle percentageFormulaStyle = wb.createCellStyle();\r\n\t\tpercentageFormulaStyle.cloneStyleFrom(integerFormulaStyle);\r\n\t\tpercentageFormulaStyle.setDataFormat(df.getFormat(\"0.00 %\"));\r\n//\t\tpercentageFormulaStyle.setDataFormat((short) 9); // See BuiltinFormats\r\n\t\tshort colorIndex = IndexedColors.INDIGO.getIndex();\r\n\t\tColor customColor = defineColor(wb, colorIndex, 0x88, 0xFF, 0x55);\r\n\t\tif (percentageFormulaStyle instanceof XSSFCellStyle)\r\n\t\t{\r\n\t\t\t((XSSFCellStyle) percentageFormulaStyle).setFillForegroundColor((XSSFColor) customColor);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tpercentageFormulaStyle.setFillForegroundColor(colorIndex);\r\n\t\t}\r\n\t\tstyles.put(PERCENTAGE_FORMULA_STYLE_NAME, percentageFormulaStyle);\r\n\r\n\t\treturn styles;\r\n\t}",
"public RMTextStyle getStyle()\n {\n return new RMTextStyle(_style);\n }",
"public abstract String getStyle();",
"private static Map<String, CellStyle> createStyles(Workbook wb) {\n Map<String, CellStyle> styles = new HashMap<>();\n\n CellStyle style;\n Font headerFont = wb.createFont();\n headerFont.setBold(true);\n style = createBorderedStyle(wb);\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\n style.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n style.setVerticalAlignment(VerticalAlignment.TOP);\n style.setWrapText(true);\n style.setFont(headerFont);\n styles.put(\"header\", style);\n\n style = createBorderedStyle(wb);\n style.setVerticalAlignment(VerticalAlignment.TOP);\n style.setWrapText(true);\n styles.put(\"body\", style);\n\n return styles;\n }",
"public String getStyle() {\r\n return style;\r\n }",
"public SimpleStyle copy() {\n\t\tSimpleStyle simpleStyle = new SimpleStyle();\n\t\tcopyIn(simpleStyle);\n\t\treturn simpleStyle;\n\t}",
"public String getStyle() {\n return style;\n }",
"public String getStyle() {\n return style;\n }",
"public String getStyle() {\n return style;\n }",
"public String getStyle() {\n return style;\n }",
"public static Stylesheet createStylesheet(File f) {\n\t\tCSSOMParser cp = new CSSOMParser();\n\t\tInputSource is;\n\t\ttry {\n\t\t\tis = new InputSource(new InputStreamReader(new FileInputStream(f)));\n\t\t\tCSSStyleSheet css = cp.parseStyleSheet(is, null, \"\");\n\t\t\treturn parseSheet(css);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public String getStyleSheetName()\n {\n return _styleSheetName;\n }",
"@Override\n\t\tpublic AbstractCSSStyleSheet getSheet() {\n\t\t\tif (needsUpdate) {\n\t\t\t\tString type = getAttribute(\"type\");\n\t\t\t\tif (!\"text/css\".equalsIgnoreCase(type) && type.length() != 0) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tdefinedSheet = parseEmbeddedStyleSheet(definedSheet, getTextContent().trim(), getAttribute(\"title\"),\n\t\t\t\t\t\tgetAttribute(\"media\"), this);\n\t\t\t\tif (definedSheet != null) {\n\t\t\t\t\tneedsUpdate = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn definedSheet;\n\t\t}",
"public String getStyle() {\n\t\treturn style;\n\t}",
"protected ScriptStyle(int val, String s)\r\n/* 10: */ {\r\n/* 11: 54 */ this.value = val;\r\n/* 12: 55 */ this.string = s;\r\n/* 13: */ \r\n/* 14: 57 */ ScriptStyle[] oldstyles = styles;\r\n/* 15: 58 */ styles = new ScriptStyle[oldstyles.length + 1];\r\n/* 16: 59 */ System.arraycopy(oldstyles, 0, styles, 0, oldstyles.length);\r\n/* 17: 60 */ styles[oldstyles.length] = this;\r\n/* 18: */ }",
"final public String getStyleClass()\n {\n return ComponentUtils.resolveString(getProperty(STYLE_CLASS_KEY));\n }",
"public final StyleStyle dup() {\r\n // don't use an ODXMLDocument attribute, search for our document in an ODPackage, that way\r\n // even if our element changes document (toSingle()) we will find the proper ODXMLDocument\r\n final ODXMLDocument xmlFile = this.pkg.getXMLFile(this.getElement().getDocument());\r\n final String unusedName = xmlFile.findUnusedName(getFamily(), this.desc == null ? this.getName() : this.desc.getBaseName());\r\n final Element clone = (Element) this.getElement().clone();\r\n clone.setAttribute(\"name\", unusedName, this.getSTYLE());\r\n JDOMUtils.insertAfter(this.getElement(), singleton(clone));\r\n return this.desc == null ? new StyleStyle(this.pkg, clone) : this.desc.create(this.pkg, clone);\r\n }",
"public Sheet getOrCreateSheet(String name) {\n Sheet sheet = sheetsByName.get(name); \n if(sheet==null) {\n sheet = new Sheet(); \n sheet.setBeanFactory(beanFactory);\n sheet.setName(name); \n sheet.setMap(new HashMap<String, Object>());\n sheetsByName.put(name, sheet);\n }\n return sheet;\n }",
"public static XSSFCellStyle baseStyle(XSSFWorkbook wb) {\n\t\t// Define color palette\n\t\tcmBg = new XSSFColor(new java.awt.Color(33, 150, 243, 0)); // #2196F3\n\t\ttdBg = new XSSFColor(new java.awt.Color(139, 195, 74, 0)); // #8BC34A\n\t\ttpBg = new XSSFColor(new java.awt.Color(255, 193, 7, 0)); // #FFC107\n\t\tccEtBg = new XSSFColor(new java.awt.Color(244, 67, 54, 0)); // #F44336\n\t\tsiBg = new XSSFColor(new java.awt.Color(0, 117, 169, 0));\n\t\tasrBg = new XSSFColor(new java.awt.Color(50, 117, 108, 0));\n\n\t\tdateBg = new XSSFColor(new java.awt.Color(189, 189, 189, 0)); // #BDBDBD\n\t\tweekNumBg = new XSSFColor(new java.awt.Color(224, 224, 224, 0)); // #E0E0E0\n\t\tholidaysBg = new XSSFColor(new java.awt.Color(255, 87, 34, 0)); // #FF5722\n\n\t\t// create font\n\t\tFont font = wb.createFont();\n\t\tfont.setFontHeightInPoints((short) 11);\n\t\tfont.setFontName(\"Arial\");\n\t\tfont.setColor(IndexedColors.BLACK.getIndex());\n\t\tfont.setBold(false);\n\t\tfont.setItalic(false);\n\n\t\t// Create cell style\n\t\tXSSFCellStyle cellStyle = wb.createCellStyle();\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setVerticalAlignment(VerticalAlignment.CENTER);\n\t\tcellStyle.setWrapText(true); // Set wordwrap\n\n\t\t// Setting font to style\n\t\tcellStyle.setFont(font);\n\n\t\treturn cellStyle;\n\t}",
"public abstract BossStyle getStyle();",
"@Override\n public void initStyle() {\n\t// NOTE THAT EACH CLASS SHOULD CORRESPOND TO\n\t// A STYLE CLASS SPECIFIED IN THIS APPLICATION'S\n\t// CSS FILE\n \n // FOR CHANGING THE ITEMS INSIDE THE EDIT TOOLBAR\n editToolbarPane.getStyleClass().add(CLASS_EDITTOOLBAR_PANE);\n \n mapNameLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n mapName.getStyleClass().add(CLASS_MAPNAME_TEXTFIELD);\n backgroundColorLabel.getStyleClass().add(CLASS_LABEL);\n borderColorLabel.getStyleClass().add(CLASS_LABEL);\n borderThicknessLabel.getStyleClass().add(CLASS_LABEL);\n zoomLabel.getStyleClass().add(CLASS_MAPNAME_LABEL);\n borderThicknessSlider.getStyleClass().add(CLASS_BORDER_SLIDER);\n mapZoomingSlider.getStyleClass().add(CLASS_ZOOM_SLIDER);\n buttonBox.getStyleClass().add(CLASS_PADDING);\n // FIRST THE WORKSPACE PANE\n workspace.getStyleClass().add(CLASS_BORDERED_PANE);\n }",
"@Override\n protected Node newNode() {\n return new WebXStyleElementImpl();\n }",
"@Override\n public StyleSheet getCSSStyleSheet() {\n if (styleSheet == null) {\n if (getType().equals(WebXConstants.CSS_MIME_TYPE)) {\n WebXDocumentImpl doc = (WebXDocumentImpl) getOwnerDocument();\n CSSEngine e = doc.getCSSEngine();\n String text = \"\";\n Node n = getFirstChild();\n if (n != null) {\n StringBuffer sb = new StringBuffer();\n while (n != null) {\n if (n.getNodeType() == Node.CDATA_SECTION_NODE\n || n.getNodeType() == Node.TEXT_NODE)\n sb.append(n.getNodeValue());\n n = n.getNextSibling();\n }\n text = sb.toString();\n }\n ParsedURL burl = null;\n String bu = getBaseURI();\n if (bu != null) {\n burl = new ParsedURL(bu);\n }\n String media = getAttributeNS(null, WEBX_MEDIA_ATTRIBUTE);\n styleSheet = e.parseStyleSheet(text, burl, media);\n addEventListenerNS(XMLConstants.XML_EVENTS_NAMESPACE_URI,\n \"DOMCharacterDataModified\",\n domCharacterDataModifiedListener,\n false,\n null);\n }\n }\n return styleSheet;\n }",
"@Override\n public Worksheet createWorksheet() {\n return model;\n }",
"private Style createDefaultStyle() {\n Rule rule = createRule(LINE_COLOUR, FILL_COLOUR); //utilizamos las definiciones anteriores\n\n FeatureTypeStyle fts = sf.createFeatureTypeStyle();\n fts.rules().add(rule);\n\n Style style = sf.createStyle();\n style.featureTypeStyles().add(fts);\n return style;\n}",
"public interface Style extends CssResource {\n\n /**\n * The style for the panel that contains\n * the whole user record\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecord();\n\n /**\n * The style for the name of the user\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String nameLabel();\n\n /**\n * The style for the username of the user\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabel();\n\n /**\n * The style for the user avatar image\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImage();\n\n /**\n * The style for the remove image\n *\n * @author Johannes Gryffenberg <[email protected]>\n * @since 26 Feb 2013\n *\n * @return The name of the compiled style\n */\n String removeImageStyle();\n\n /**\n * The style for the user record when it is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String searchBoxUserRecordSelected();\n\n /**\n * The style for the username when the record is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String usernameLabelSelected();\n\n /**\n * The style for the avatar when the record is selected\n *\n * @author Ruan Naude <[email protected]>\n * @since 22 Jan 2013\n *\n * @return The name of the compiled style\n */\n String avatarImageSelected();\n }",
"public static interface Style extends CssResource {\r\n\r\n\t\t/**\r\n\t\t * Applied to buttons.\r\n\t\t */\r\n\t\tString button();\r\n\r\n\t\t/**\r\n\t\t * Applied to disabled buttons.\r\n\t\t */\r\n\t\tString disabledButton();\r\n\r\n\t\t/**\r\n\t\t * Applied to the details text.\r\n\t\t */\r\n\t\tString pageDetails();\r\n\r\n\t\tString pageDetails2();\r\n\t\t\r\n\t\tString imogPagerLayout();\r\n\t}",
"private static Map<String, CellStyle> createStyles(Workbook wb) {\r\n Map<String, CellStyle> styles = new HashMap<>();\r\n DataFormat df = wb.createDataFormat();\r\n\r\n Font font1 = wb.createFont();\r\n\r\n CellStyle style;\r\n Font headerFont = wb.createFont();\r\n headerFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setFont(headerFont);\r\n styles.put(\"header\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_centered\", style);\r\n\r\n style = wb.createCellStyle();\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_centered_locked\", style);\r\n// style = createBorderedStyle(wb);\r\n// style.setAlignment(CellStyle.ALIGN_CENTER);\r\n// style.setFillForegroundColor(IndexedColors.LIGHT_CORNFLOWER_BLUE.getIndex());\r\n// style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n// style.setFont(headerFont);\r\n// style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n// styles.put(\"header_date\", style);\r\n font1.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font1);\r\n styles.put(\"cell_b\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(false);\r\n styles.put(\"cell_b_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setFont(font1);\r\n style.setLocked(true);\r\n styles.put(\"cell_b_centered_locked\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_b_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_g\", style);\r\n\r\n Font font2 = wb.createFont();\r\n font2.setColor(IndexedColors.BLUE.getIndex());\r\n font2.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font2);\r\n styles.put(\"cell_bb\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setFont(font1);\r\n style.setFillForegroundColor(IndexedColors.GREY_25_PERCENT.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_bg\", style);\r\n\r\n Font font3 = wb.createFont();\r\n font3.setFontHeightInPoints((short) 14);\r\n font3.setColor(IndexedColors.DARK_BLUE.getIndex());\r\n font3.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setFont(font3);\r\n style.setWrapText(true);\r\n styles.put(\"cell_h\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_CENTER);\r\n style.setWrapText(true);\r\n styles.put(\"cell_normal_centered\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_RIGHT);\r\n style.setWrapText(true);\r\n style.setDataFormat(df.getFormat(\"d-mmm\"));\r\n styles.put(\"cell_normal_date\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setAlignment(CellStyle.ALIGN_LEFT);\r\n style.setIndention((short) 1);\r\n style.setWrapText(true);\r\n styles.put(\"cell_indented\", style);\r\n\r\n style = createBorderedStyle(wb);\r\n style.setFillForegroundColor(IndexedColors.BLUE.getIndex());\r\n style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n styles.put(\"cell_blue\", style);\r\n\r\n return styles;\r\n }",
"public String getStyleSheetId() {\n return styleSheetId;\n }",
"public BuiltInStyle(int xfind, int sn)\r\n/* 10: */ {\r\n/* 11:46 */ super(Type.STYLE);\r\n/* 12: */ \r\n/* 13:48 */ this.xfIndex = xfind;\r\n/* 14:49 */ this.styleNumber = sn;\r\n/* 15: */ }",
"public Sheet createSheet(String arg0) {\n\t\treturn null;\n\t}",
"protected WebXStyleElementImpl() {\n }",
"private Style getStyle(InstanceWaypoint context) {\n \t\tStyleService ss = (StyleService) PlatformUI.getWorkbench().getService(StyleService.class);\n \t\tInstanceService is = (InstanceService) PlatformUI.getWorkbench().getService(InstanceService.class);\n \t\t\n \t\tInstanceReference ref = context.getValue();\n \t\tInstance instance = is.getInstance(ref);\n \t\t\n \t\treturn ss.getStyle(instance.getDefinition(), ref.getDataSet());\n \t}",
"abstract protected AbstractCSSStyleSheet getUserNormalStyleSheet();",
"public StyleAbstractFactory getStyleFactory() {\r\n\t\t// Leggo da file esterno quale Factory utilizzare\r\n String stile = ULeggiDaFile.getStileInterfaccia();\r\n // Factory da restituire\r\n StyleAbstractFactory styleAbstractFactory;\r\n switch (stile) {\r\n\t\tcase \"light\":\r\n\t\t\tstyleAbstractFactory = LightStyleFactory.getInstance();\r\n\t\t\tbreak; \r\n\t\tcase \"dark\":\r\n\t\t\tstyleAbstractFactory = DarkStyleFactory.getInstance();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\t// Di default fornisco la factory \"light\"\r\n\t\t\tstyleAbstractFactory = LightStyleFactory.getInstance();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn styleAbstractFactory;\r\n\t}",
"public int getStyle() {\n\treturn style;\n }",
"public Encoding setStyle(String value) {\n\t\tstyle = value;\n\t\treturn this;\n\t}",
"public TextStyle getStyle(\n )\n {return style;}",
"public CodeStyle getStyle(){\r\n\t\treturn m_style;\r\n\t}",
"public int getStyle() {\r\n\t\treturn style;\r\n\t}",
"static synchronized public StyleManager getInstance() {\n\t\tif (_instance == null)\n\t\t\t_instance = new StyleManager();\n\t\treturn _instance;\n\t}",
"abstract protected DocumentCSSStyleSheet getDefaultStyleSheet(CSSDocument.ComplianceMode mode);",
"@Override\r\n\tpublic String getStyleName() {\r\n\t\treturn _hSplit.getStyleName();\r\n\t}",
"public static Sheets getSheetsService() throws IOException {\n Credential credential = authorize();\n return new Sheets.Builder(HTTP_TRANSPORT, JSON_FACTORY, credential)\n .setApplicationName(APPLICATION_NAME)\n .build();\n }",
"private static Map<String, CellStyle> createStyles(Workbook wbl) {\r\n\r\n\tMap<String, CellStyle> styles = new HashMap<String, CellStyle>();\r\n\ttry {\r\n\t CellStyle style;\r\n\t Font titleFont = wbl.createFont();\r\n\t titleFont.setFontHeightInPoints((short) 18);\r\n\t titleFont.setBoldweight(Font.BOLDWEIGHT_BOLD);\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t style.setFont(titleFont);\r\n\t styles.put(\"title\", style);\r\n\r\n\t Font monthFont = wbl.createFont();\r\n\t monthFont.setFontHeightInPoints((short) 11);\r\n\t monthFont.setColor(IndexedColors.WHITE.getIndex());\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t style.setFont(monthFont);\r\n\t style.setWrapText(true);\r\n\t style.setRightBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t styles.put(\"header\", style);\r\n\t \r\n\t //MandatoryColumn to admission process\r\n\t Font mandatoryColumnFont = wbl.createFont();\r\n\t mandatoryColumnFont.setFontHeightInPoints((short) 11);\r\n\t mandatoryColumnFont.setColor(IndexedColors.RED.getIndex());\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setVerticalAlignment(CellStyle.VERTICAL_CENTER);\r\n\t style.setFillForegroundColor(IndexedColors.GREY_50_PERCENT.getIndex());\r\n\t style.setFillPattern(CellStyle.SOLID_FOREGROUND);\r\n\t style.setFont(mandatoryColumnFont);\r\n\t style.setWrapText(true);\r\n\t style.setRightBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.WHITE.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t styles.put(\"headers\", style);\r\n\r\n\t style = wbl.createCellStyle();\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setWrapText(true);\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setRightBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\r\n\t styles.put(\"cell\", style);\r\n\r\n\t style = wbl.createCellStyle();\r\n\t style.setWrapText(true);\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setRightBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\r\n\t styles.put(\"string\", style);\r\n\r\n\t CreationHelper createHelper = wbl.getCreationHelper();\r\n\t style = wbl.createCellStyle();\r\n\t style.setDataFormat(createHelper.createDataFormat().getFormat(\"dd-MMM-yyyy\"));\r\n\t style.setAlignment(CellStyle.ALIGN_CENTER);\r\n\t style.setWrapText(true);\r\n\t style.setBorderRight(CellStyle.BORDER_THIN);\r\n\t style.setRightBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderLeft(CellStyle.BORDER_THIN);\r\n\t style.setLeftBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderTop(CellStyle.BORDER_THIN);\r\n\t style.setTopBorderColor(IndexedColors.BLACK.getIndex());\r\n\t style.setBorderBottom(CellStyle.BORDER_THIN);\r\n\t style.setBottomBorderColor(IndexedColors.BLACK.getIndex());\r\n\t styles.put(\"date\", style);\r\n\r\n\t} catch (Exception ex) {\r\n\t ex.printStackTrace();\r\n\t JRExceptionClient jre = new JRExceptionClient();jre.sendException(ex);jre = null;\r\n\t}\r\n\r\n\treturn styles;\r\n }",
"protected CellStyle makeStyleForEmptyTitleCell(final Workbook workbook) {\n final CellStyle myStyle = workbook.createCellStyle();\n myStyle.setBorderTop(CellStyle.BORDER_THIN);\n myStyle.setBorderBottom(CellStyle.BORDER_THIN);\n myStyle.setBorderLeft(CellStyle.BORDER_NONE);\n myStyle.setBorderRight(CellStyle.BORDER_NONE);\n return myStyle;\n }",
"public CSGStyle(AppTemplate initApp) {\r\n // KEEP THIS FOR LATER\r\n app = initApp;\r\n\r\n // LET'S USE THE DEFAULT STYLESHEET SETUP\r\n super.initStylesheet(app);\r\n\r\n // INIT THE STYLE FOR THE FILE TOOLBAR\r\n app.getGUI().initFileToolbarStyle();\r\n\r\n // AND NOW OUR WORKSPACE STYLE\r\n initTAWorkspaceStyle();\r\n }",
"void setStyle(String style);",
"ISheet addSheet();",
"public MarkStyle[] getStyles() {\n return styles_;\n }",
"private static String getStyleClass(Object obj) { return ((MetaData)obj).getStyle(); }",
"abstract protected InlineStyle createInlineStyle(Node owner);",
"private static String getStyleSheet() {\n\t\tif (fgStyleSheet == null)\n\t\t\tfgStyleSheet= loadStyleSheet();\n\t\tString css= fgStyleSheet;\n\t\tif (css != null) {\n\t\t\tFontData fontData= JFaceResources.getFontRegistry().getFontData(PreferenceConstants.APPEARANCE_JAVADOC_FONT)[0];\n\t\t\tcss= HTMLPrinter.convertTopLevelFont(css, fontData);\n\t\t}\n\n\t\treturn css;\n\t}",
"public ComboBoxWrapper getParseStyle() {\r\n return new ComboBoxWrapper() {\r\n public Object getCurrentObject() {\r\n return parseStyle;\r\n }\r\n\r\n public Object[] getObjects() {\r\n return ParseStyle.values();\r\n }\r\n };\r\n }",
"public WorksheetBuilderImpl() {\n model = new BasicWorksheet();\n }",
"public SimpleStyle() {\n\t\t// set default values\n\t\tthis.foregroundColor = -1;\n\t\t// others are null: VM DONE\n\t}",
"public int getStyle() {\r\n\t\treturn this.style;\r\n\t}",
"@Override\n\tpublic StyleSheetList getStyleSheets() {\n\t\tif (sheets.needsUpdate()) {\n\t\t\tsheets.update();\n\t\t}\n\t\treturn sheets;\n\t}",
"public FontStyle getStyle();",
"public Sheet createSheet(String sheetName) {\n String temp = WorkbookUtil.createSafeSheetName(sheetName);\n return workbook.createSheet(temp);\n }",
"public StyleId getStyleId ();",
"public String getStyleClass() {\r\n return Util.getQualifiedStyleClass(this,\r\n styleClass, \r\n CSS_DEFAULT.OUTPUT_CHART_DEFAULT_STYLE_CLASS,\r\n \"styleClass\");\r\n }",
"public TextController createStyle(ControllerCore genCode) {\n\t\tstyleTXT = new TextController(\"style\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(style$1LBL);\n\t\t\t\tsetProperty(\"style\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn styleTXT;\n\t}",
"public void setStyleClass(String styleClass) {\r\n this.styleClass = styleClass;\r\n }",
"public void setStyle(String st){\n style = st;\n }",
"public void styleMe(){\n\t}",
"public String getPageStyle()\n {\n if (this.pageStyle == null) {\n StringBuffer sb = new StringBuffer();\n sb.append(\"<style type='text/css'>\\n\");\n sb.append(\" a:hover { color:#00CC00; }\\n\");\n sb.append(\" h1 { font-family:Arial; font-size:16pt; white-space:pre; }\\n\");\n sb.append(\" h2 { font-family:Arial; font-size:14pt; white-space:pre; }\\n\");\n sb.append(\" h3 { font-family:Arial; font-size:12pt; white-space:pre; }\\n\");\n sb.append(\" h4 { font-family:Arial; font-size:10pt; white-space:pre; }\\n\");\n sb.append(\" form { margin-top:0px; margin-bottom:0px; }\\n\");\n sb.append(\" body { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" td { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" input { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" input:focus { background-color: #FFFFC9; }\\n\");\n sb.append(\" select { font-size:7pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" select:focus { background-color: #FFFFC9; }\\n\"); \n sb.append(\" textarea { font-size:8pt; font-family:verdena,sans-serif; }\\n\");\n sb.append(\" textarea:focus { background-color: #FFFFC9; }\\n\"); \n sb.append(\" .\"+CommonServlet.CSS_TEXT_INPUT+\" { border-width:2px; border-style:inset; border-color:#DDDDDD #EEEEEE #EEEEEE #DDDDDD; padding-left:2px; background-color:#FFFFFF; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_TEXT_READONLY+\" { border-width:2px; border-style:inset; border-color:#DDDDDD #EEEEEE #EEEEEE #DDDDDD; padding-left:2px; background-color:#E7E7E7; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_CONTENT_FRAME[1]+\" { padding:5px; width:300px; border-style:double; border-color:#555555; background-color:white; }\\n\");\n sb.append(\" .\"+CommonServlet.CSS_CONTENT_MESSAGE+\" { padding-top:5px; font-style:oblique; text-align:center; }\\n\");\n sb.append(\"</style>\\n\");\n this.pageStyle = sb.toString();\n } \n return this.pageStyle;\n }",
"public interface StyleSource {\n /**\n * Returns the appropriate style for the given style-group and style-name, or {@code null} if missing.\n *\n * @param group the group\n * @param name the style name\n * @return the style\n */\n @Nullable\n String get(String group, String name);\n\n /**\n * Set a specific style in a style-group.\n *\n * @param group the group\n * @param name the style name\n * @param style the style to set\n */\n void set(String group, String name, String style);\n\n /**\n * Remove all styles for given style-group.\n *\n * @param group the group\n */\n void remove(String group);\n\n /**\n * Remove a specific style from style-group.\n *\n * @param group the group\n * @param name the style name to remove\n */\n void remove(String group, String name);\n\n /**\n * Clear all styles.\n */\n void clear();\n\n /**\n * Returns configured style-group names.\n *\n * @return Immutable collection.\n */\n Iterable<String> groups();\n\n /**\n * Returns configured styles for given style-group.\n *\n * @param group the style group\n * @return Immutable map.\n */\n Map<String, String> styles(String group);\n}",
"public static XSSFCellStyle tpStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(tpBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}",
"public static StyleStyle warp(final ODPackage pkg, final Element styleElem) {\r\n final StyleStyle generic = new StyleStyle(pkg, styleElem);\r\n loadDescs();\r\n final Map<String, StyleDesc<?>> map = family2Desc.get(pkg.getVersion());\r\n if (map.containsKey(generic.getFamily())) {\r\n final StyleDesc<?> styleClass = map.get(generic.getFamily());\r\n return styleClass.create(pkg, styleElem);\r\n } else\r\n return generic;\r\n }",
"public void setStylePanel(StylePanel stylePanel);",
"void createWorkSheet() {\n wb = new HSSFWorkbook();\n for (int SheetNumber = 0; SheetNumber < keywords.length - 1; SheetNumber++) {\n sheet[SheetNumber] = wb.createSheet(keywords[SheetNumber]);\n // Create row at index zero ( Top Row)\n HSSFRow row = sheet[SheetNumber].createRow((short) 0);\n String[] headers = {\"Title\", \"Category\", \"Developer\", \"Description\", \"Release Date\", \"currentVersionReleaseDate\", \"Version\", \"Website\", \"Rating Counts\", \"Average User Rating\", \"Average User Rating For Current Version\", \"Market URL\", \"Size\"};\n for (int i = 0; i <= 12; i++) {\n\n HSSFCell cell = row.createCell((short) i);\n cell.setCellType(HSSFCell.CELL_TYPE_STRING);\n cell.setCellValue(headers[i]);\n excelFileCreated = false;\n }\n }\n }",
"public static XSSFCellStyle ccStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(ccEtBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}",
"@Override\n\tpublic DocumentCSSStyleSheet getStyleSheet() {\n\t\tif (mergedStyleSheet == null) {\n\t\t\tmergeStyleSheets();\n\t\t}\n\t\treturn mergedStyleSheet;\n\t}",
"public static Style get(SoState state)\n { return Style.fromValue(SoInt32Element.get(classStackIndexMap.get(SoPickStyleElement.class), state)); }",
"public ExcelSheet(HSSFWorkbook wb, String _sheetName) {\n\t\t// create a sheet with the provided name \n\t\t// in the provided workbook\n\t\t// limit to the 31 first characters\n\t\tif (_sheetName.length() > 31) {\n\t\t\tthis.SheetName = _sheetName.substring(0, 31);\n\t\t} else {\n\t\t\tthis.SheetName = _sheetName;\n\t\t}\n\t\tsheet = wb.createSheet(SuppressForbiddenChar(this.SheetName));\n\t\trowIndex = 0 ;\n\t\tcellStyles = new CellStyles(wb);\n\t}",
"public static XSSFCellStyle cmStyle(XSSFWorkbook wb) {\n\t\tXSSFCellStyle cellStyle = baseStyle(wb);\n\t\tcellStyle.setAlignment(HorizontalAlignment.CENTER);\n\t\tcellStyle.setFillForegroundColor(cmBg);\n\t\tcellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);\n\n\t\treturn cellStyle;\n\t}",
"public Style(Style copy) {\n backgroundColor = copy.backgroundColor;//default background color of black\n hoverColor = copy.hoverColor;//default background color of black\n activeColor = copy.activeColor;//default background color of black\n borderColor = copy.borderColor;//default border color of transparent\n dropShadowColor = copy.dropShadowColor;\n textColor = copy.textColor;\n textFamily = copy.textFamily;\n textSize = copy.textSize;//default text size of 22 pixels\n borderRadius = copy.borderRadius; //No border radius by default\n render = copy.render;//render by default\n rounded = copy.rounded; //No rounding by default\n dropShadow = copy.dropShadow; //No drop shadow by default\n dropShadowOffset = copy.dropShadowOffset;\n computeSize = copy.computeSize;\n }",
"@Override\n public String getCSSStyle() {\n return null;\n }",
"public static void main(String[] args) throws Exception {\n\t\tString dataDir = Utils.getSharedDataDir(ReuseStyleObjects.class) + \"TechnicalArticles/\";\n\t\t// Create an instance of Workbook & load an existing spreadsheet\n\t\tWorkbook workbook = new Workbook(dataDir + \"Book1.xls\");\n\n\t\t// Retrieve the Cell Collection of the first Worksheet\n\t\tCells cells = workbook.getWorksheets().get(0).getCells();\n\n\t\t// Create an instance of Style and add it to the pool of styles\n\t\tStyle styleObject = workbook.createStyle();\n\n\t\t// Retrieve the Font object of newly created style\n\t\tFont font = styleObject.getFont();\n\n\t\t// Set the font color to Red\n\t\tfont.setColor(Color.getRed());\n\n\t\t// Set the newly created style on two different cells\n\t\tcells.get(\"A1\").setStyle(styleObject);\n\t\tcells.get(\"A2\").setStyle(styleObject);\n\n\t}",
"public Sash (Composite parent, int style) {\n\tsuper (parent, checkStyle (style));\n}",
"public Sash (Composite parent, int style) {\n\tsuper (parent, checkStyle (style));\n}",
"public VisualizationStyle getOldStyle()\r\n {\r\n return myOldStyle;\r\n }",
"public Style createSelectBoxStyle() {\n \t \tStroke stroke = styleFactory.createStroke(\n \t \t\t\tfilterFactory.literal(Color.BLUE),\n \t \t\t\tfilterFactory.literal(1),\n \tnull,\n \tnull,\n \tnull,\n \tnew float[] { 5, 2 },\n \tnull,\n \tnull,\n \tnull\n\t\t);\n\t\t//Cria um Symbolizer para linha.\n\t\tPolygonSymbolizer polygonSymbolizer = styleFactory.createPolygonSymbolizer(stroke, null, null);\n\t\t//Regra para um estilo de fei��o.\n\t\tRule rulePoly = styleFactory.createRule();\n\t\t\n\t\t//Adiciona o PointSymbolizer na regra.\n\t\t//rulePoly.setName(\"Polygon\"); \n\t\t//ruleLine.setFilter(filterFactory.equals(filterFactory.property(\"geom\"), filterFactory.literal(false)));\n\t\trulePoly.symbolizers().add(polygonSymbolizer); \n\t\t\t \n\t\t//Adiciona uma ou N regras em uma estilo de uma determinada fei��o.\n\t\tFeatureTypeStyle ftsPoly = styleFactory.createFeatureTypeStyle(new Rule[]{rulePoly});\n\t\t \n\t\t//Cria o estilo (SLD).\n\t\tStyle style = styleFactory.createStyle();\n\t\tstyle.featureTypeStyles().add(ftsPoly);\n\t\t \n\t\treturn style;\n }",
"public BeansToExcel(Workbook styleTemplate) {\n this.styleTemplate = styleTemplate;\n this.workbook = new XSSFWorkbook();\n }"
] | [
"0.7808987",
"0.7703768",
"0.71057117",
"0.6867278",
"0.6835687",
"0.6715115",
"0.64461464",
"0.6295388",
"0.62421405",
"0.61873156",
"0.61305577",
"0.60602474",
"0.6014253",
"0.5982824",
"0.59338915",
"0.590626",
"0.58818954",
"0.5871468",
"0.58283085",
"0.5823029",
"0.58188856",
"0.5795285",
"0.5795285",
"0.5795285",
"0.5795285",
"0.5783966",
"0.576743",
"0.57534707",
"0.5696556",
"0.5681877",
"0.56689805",
"0.5631902",
"0.562879",
"0.5623804",
"0.5620596",
"0.5619123",
"0.5612507",
"0.56092703",
"0.5604921",
"0.55884844",
"0.5587554",
"0.5585814",
"0.5584134",
"0.55686855",
"0.55402774",
"0.5538515",
"0.5531582",
"0.5522343",
"0.55199254",
"0.55176896",
"0.5485704",
"0.548107",
"0.5479112",
"0.5471055",
"0.5463832",
"0.54622334",
"0.54484713",
"0.544728",
"0.5423266",
"0.54209125",
"0.5415453",
"0.54088545",
"0.5405343",
"0.5404359",
"0.54035044",
"0.5401399",
"0.5388208",
"0.5386283",
"0.5381879",
"0.5379229",
"0.5374918",
"0.53655684",
"0.5346057",
"0.5340582",
"0.533727",
"0.5330876",
"0.53180027",
"0.5312284",
"0.52864",
"0.52860594",
"0.5284452",
"0.52821785",
"0.5276834",
"0.52756226",
"0.5245064",
"0.5240028",
"0.5239329",
"0.52243793",
"0.5212884",
"0.5204645",
"0.5203233",
"0.5198972",
"0.51857585",
"0.5184573",
"0.5174976",
"0.51741385",
"0.51741385",
"0.5169152",
"0.51682276",
"0.51681405"
] | 0.73337865 | 2 |
Returns a new object of class 'Flex Box'. | FlexBox createFlexBox(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Layout createBorderLayout() {\n\t\treturn new BorderLayout();\n\t}",
"private VBox vboxFormat() {\n VBox vbox = new VBox();\n // vbox.setAlignment(Pos.BASELINE_CENTER);\n vbox.setSpacing(10);\n vbox.setPadding(new Insets(20, 20, 20, 20));\n return vbox;\n }",
"private HorizontalLayout getMainContainer() {\n HorizontalLayout main = new HorizontalLayout();\n main.setWidth(\"100%\");\n main.setHeight(\"100%\");\n\n return main;\n }",
"private void initClassVBox()\n {\n classVBox = new VBox();\n classVBox.setPrefSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n classVBox.setAlignment(Pos.CENTER);\n classVBox.getStyleClass().add(CLASS_BOX_ELEMENTS);\n }",
"public Box(int x, int y)\n {\n initClassVBox();\n initVariablesVBox();\n initMethodsVBox();\n initLineConnectors();\n mainVBox = new VBox(classVBox, variablesVBox, methodsVBox);\n mainVBox.setTranslateX(x);\n mainVBox.setTranslateY(y);\n }",
"public Pj3dBox Box(int x)\r\n\t{\r\n\t\tPj3dBox b = new Pj3dBox(this, x);\r\n\t\treturn b;\r\n\t}",
"protected void createLayout() {\n\t\tthis.layout = new GridLayout();\n\t\tthis.layout.numColumns = 2;\n\t\tthis.layout.marginWidth = 2;\n\t\tthis.setLayout(this.layout);\n\t}",
"private void makeContainer(){\n Container X = (Container) ((SpringGridLayout) headlineContainer.getLayout()).getChild(1, 0);\n if (!(X == null)) headlineContainer.removeChild(X);\n\n Container sub = new Container(new SpringGridLayout(Axis.X,Axis.Y,FillMode.Last,FillMode.None));\n sub.setBackground(null); // just in case style sets an bg here\n Container sub1 = new Container();\n sub1.setBackground(null);\n Container sub2 = new Container();\n sub2.setBackground(null);\n Container sub3 = new Container();\n sub3.setBackground(null);\n\n sub.addChild(sub1);\n sub.addChild(sub2);\n sub.addChild(sub3);\n\n headlineContainer.addChild(sub ,1,0);\n/*\n sub2.setName(\"TEST\");\n sub3.setBackground(new QuadBackgroundComponent(ColorRGBA.Pink));\n\n // sub1.setPreferredSize(new Vector3f(25,50,0));\n sub1.setBackground(new QuadBackgroundComponent(ColorRGBA.Green));\n */\n }",
"Box(){\r\n Height = -1; // Used -1 to initiate an uninitialized Box. \r\n Width = -1;\r\n Depth = -1;\r\n }",
"public VerticalLayout() {\r\n this(5, CENTER, TOP);\r\n }",
"public Layout() {\n }",
"public static Layout createVerticalFlowLayout() {\n\t\treturn createVerticalFlowLayout(null, 0);\n\t}",
"public static Layout createHorizontalFlowLayout() {\n\t\treturn createHorizontalFlowLayout(null, 0);\n\t}",
"public VerticalLayout() {\n setWidth(\"100%\");\n setSpacing(true);\n setMargin(true);\n }",
"private VerticalLayout getCanvas() {\n return new VerticalLayout();\n }",
"public Box getBox() {\n\t//we compute the coordinates of the top left square \n\t//of the box by integer division\n\treturn new Box((rowIndex/3)*3, (colIndex/3)*3); \n }",
"public Box()\n\t{\n\t\t\n\t\ttopLeftX = 50;\n\t\ttopLeftY = 50;\n\t\twidth = 50;\n\t\theight = 25;\n\t\t\n\t}",
"@AutoGenerated\r\n\tprivate HorizontalLayout buildHorizontalLayout_1() {\n\t\thorizontalLayout_1 = new HorizontalLayout();\r\n\t\thorizontalLayout_1.setImmediate(false);\r\n\t\thorizontalLayout_1.setWidth(\"-1px\");\r\n\t\thorizontalLayout_1.setHeight(\"-1px\");\r\n\t\thorizontalLayout_1.setMargin(false);\r\n\t\thorizontalLayout_1.setSpacing(true);\r\n\t\t\r\n\t\t// txtNome\r\n\t\ttxtNome = ComponentUtil.buildTextField(\"Nome\");\r\n\t\ttxtNome.setImmediate(false);\r\n\t\ttxtNome.setWidth(\"440px\");\r\n\t\ttxtNome.setHeight(\"-1px\");\r\n\t\thorizontalLayout_1.addComponent(txtNome);\r\n\t\t\r\n\t\treturn horizontalLayout_1;\r\n\t}",
"protected Container createContainer() {\n\treturn new EditorContainer();\n }",
"Box()\n\t{\n\t\twidth = -1; //use -1 to indicate an uninitialized box\n\t\theight = -1;\n\t\tdepth = -1;\n\t\t\n\t\t\n\t}",
"public VBox getBox() {\n return box;\n }",
"@AutoGenerated\r\n\tprivate VerticalLayout buildVerticalLayout_1() {\n\t\tverticalLayout_1 = new VerticalLayout();\r\n\t\tverticalLayout_1.setImmediate(false);\r\n\t\tverticalLayout_1.setWidth(\"-1px\");\r\n\t\tverticalLayout_1.setHeight(\"-1px\");\r\n\t\tverticalLayout_1.setMargin(false);\r\n\t\tverticalLayout_1.setSpacing(true);\r\n\t\t\r\n\t\t// pnlFondos\r\n\t\tpnlFondos = buildPnlFondos();\r\n\t\tverticalLayout_1.addComponent(pnlFondos);\r\n\t\t\r\n\t\treturn verticalLayout_1;\r\n\t}",
"protected LayoutManager createLayout() {\n return new SpinnerLayout(); }",
"private void initRoot() {\n root = new VBox(10);\n root.setAlignment(Pos.CENTER);\n root.setPadding(new Insets(10));\n root.setPrefWidth(300);\n root.setPrefHeight(150);\n }",
"ViewContainer createViewContainer();",
"public SetupBuilderBox() {\n\tsuper();\n\tsetLayout(new BorderLayout());\n\n\tboard = new EditableBoard(this);\n\tboard.init(cols, rows);\n\tgb = new GraphicalBoard(board);\n\tgb.setDim(32);\n\tgb.init();\n\ttsp = new ToolSelectPanel(this);\n\tsap = new SetupSavePanel(this);\n\tssp = new SetupSettingsPanel(this);\n\n\tJPanel center = new JPanel();\n\tcenter.setLayout(new BorderLayout());\n\tcenter.add(gb, BorderLayout.CENTER);\n\tcenter.add(tsp, BorderLayout.SOUTH);\n\n\tadd(sap, BorderLayout.NORTH);\n\tadd(center, BorderLayout.CENTER);\n\tadd(ssp, BorderLayout.EAST);\n\n }",
"private Container layoutContainer(Container panel, XmlNode node,\n Vector xmlChildren) {\n panel.removeAll();\n String panelId = node.getAttribute(ATTR_ID);\n String layout = node.getAttribute(ATTR_LAYOUT, \"\");\n Vector children = new Vector();\n Vector nodes = new Vector();\n int hspace = node.getAttribute(ATTR_HSPACE, 0);\n int vspace = node.getAttribute(ATTR_VSPACE, 0);\n int rows = node.getAttribute(ATTR_ROWS, 0);\n int cols = node.getAttribute(ATTR_COLS, 1);\n String defaultComp = node.getAttribute(ATTR_DEFAULT, \"nocomp\");\n JTabbedPane tabs = null;\n\n if (layout.equals(VALUE_LAYOUTBORDER)) {\n panel.setLayout(new BorderLayout());\n } else if (layout.equals(VALUE_LAYOUTCARD)) {\n panel.setLayout(new CardLayout());\n } else if (layout.equals(VALUE_LAYOUTTAB)) {\n tabs = new JTabbedPane();\n panel.setLayout(new BorderLayout());\n panel.add(\"Center\", tabs);\n } else if (layout.equals(VALUE_LAYOUTFLOW)) {\n panel.setLayout(new FlowLayout(FlowLayout.LEFT, hspace, vspace));\n } else if (layout.equals(VALUE_LAYOUTGRID)) {\n panel.setLayout(new GridLayout(rows, cols, hspace, vspace));\n }\n for (int i = 0; i < xmlChildren.size(); i++) {\n XmlNode childXmlNode =\n getReffedNode((XmlNode) xmlChildren.elementAt(i));\n Component childComponent = xmlToUi(childXmlNode);\n if (childComponent == null) {\n continue;\n }\n componentToParent.put(childComponent, panel);\n children.addElement(childComponent);\n nodes.addElement(childXmlNode);\n if ( !childComponent.isVisible()) {\n continue;\n }\n if (layout.equals(VALUE_LAYOUTBORDER)) {\n String place = childXmlNode.getAttribute(ATTR_PLACE,\n \"Center\");\n panel.add(place, childComponent);\n } else if (layout.equals(VALUE_LAYOUTTAB)) {\n tabs.add(childXmlNode.getAttribute(ATTR_LABEL),\n childComponent);\n } else if (layout.equals(VALUE_LAYOUTCARD)) {\n String childId = childXmlNode.getAttribute(ATTR_ID);\n panel.add(childId, childComponent);\n if (defaultComp.equals(childId)) {\n ((CardLayout) panel.getLayout()).show(panel, childId);\n }\n } else if (layout.equals(VALUE_LAYOUTINSET)) {\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace,\n hspace);\n GuiUtils.doLayout(panel, new Component[] { childComponent },\n 1, GuiUtils.DS_Y, GuiUtils.DS_Y);\n\n break;\n } else if (layout.equals(VALUE_LAYOUTWRAP)) {\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace,\n hspace);\n GuiUtils.doLayout(panel, new Component[] { childComponent },\n 1, GuiUtils.DS_N, GuiUtils.DS_N);\n\n break;\n } else if ( !layout.equals(VALUE_LAYOUTGRIDBAG)) {\n panel.add(childComponent);\n }\n }\n if (layout.equals(VALUE_LAYOUTGRIDBAG)) {\n double[] cw =\n GuiUtils.parseDoubles(node.getAttribute(ATTR_COLWIDTHS));\n double[] rh =\n GuiUtils.parseDoubles(node.getAttribute(ATTR_ROWHEIGHTS));\n if (cw == null) {\n cw = GuiUtils.DS_Y;\n }\n if (rh == null) {\n rh = GuiUtils.DS_N;\n }\n GuiUtils.tmpInsets = new Insets(vspace, hspace, vspace, hspace);\n GuiUtils.doLayout(panel, GuiUtils.getCompArray(children),\n node.getAttribute(ATTR_COLS, 1), cw, rh);\n }\n\n containerToNodeList.put(panel, nodes);\n\n return panel;\n }",
"public StudentHomepage() { \n\t\tsetLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));\n\t\tsetPreferredSize(new Dimension(800,600));\n\t\tfillContentPane();\n\t}",
"public HBox addHBox() {\n\n HBox hbox = new HBox();\n hbox.setPadding(new Insets(0, 0, 10, 0));\n hbox.setSpacing(0); // Gap between nodes\n// hbox.getChildren().addAll();\n\n return hbox;\n }",
"@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n\n return mainLayout;\n }",
"NodeLayout createNodeLayout();",
"public Object addScreenLayout()\n {\n LayoutManager screenLayout = null;\n if (this.getScreenLayout() == null) // Only if no parent screens\n { // EVERY BasePanel gets a ScreenLayout!\n Container panel = (Container)this.getControl();\n screenLayout = new ScreenLayout(this); // My LayoutManager\n if ((panel != null) && (screenLayout != null))\n panel.setLayout(screenLayout);\n }\n return screenLayout;\n }",
"private void createComponentBox() {\r\n\t\tthis.componentBox = new Vector<String>();\r\n\t\tthis.componentBox.add(\"Sword\");\r\n\t\tthis.componentBox.add(\"Two-handed Sword\");\r\n\t\tthis.componentBox.add(\"Staff\");\r\n\t\tthis.componentBox.add(\"Axe\");\r\n\t\tthis.componentBox.add(\"Hammer\");\r\n\t\tthis.componentBox.add(\"Bow\");\r\n\t\tthis.componentBox.add(\"Crossbow\");\r\n\t\tthis.componentBox.add(\"Wand\");\r\n\t\tthis.componentBox.add(\"Spear\");\r\n\t\tthis.componentBox.add(\"Bottle\");\r\n\t}",
"private Parent create() {\n root.setPrefSize(600,600);\r\n\r\n for(int i = 0; i < 3; ++i) {\r\n for(int j = 0; j < 3; ++j) {\r\n Tile tile = new Tile();\r\n tile.setTranslateX(j * 200);\r\n tile.setTranslateY(i * 200);\r\n\r\n root.getChildren().add(tile);\r\n board[j][i] = tile;\r\n }\r\n }\r\n\r\n // horizontal strikes\r\n for(int i = 0; i < 3; ++i) {\r\n comboList.add(new Combination(board[0][i], board[1][i], board[2][i]));\r\n }\r\n\r\n // vertical strikes\r\n for(int j = 0; j < 3; ++j) {\r\n comboList.add(new Combination(board[j][0], board[j][1], board[j][2]));\r\n }\r\n\r\n // diagonal strikes\r\n comboList.add(new Combination(board[0][0], board[1][1], board[2][2]));\r\n comboList.add(new Combination(board[2][0], board[1][1], board[0][2]));\r\n\r\n return root;\r\n }",
"@AutoGenerated\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"500px\");\n\t\tmainLayout.setHeight(\"-1px\");\n\t\tmainLayout.setMargin(false);\n\t\tmainLayout.setSpacing(true);\n\t\t\n\t\t// top-level component properties\n\t\tsetWidth(\"500px\");\n\t\tsetHeight(\"-1px\");\n\t\t\n\t\t// verticalLayout_1\n\t\tverticalLayout_1 = buildVerticalLayout_1();\n\t\tmainLayout.addComponent(verticalLayout_1);\n\t\t\n\t\t// verticalLayout_2\n\t\tverticalLayout_2 = buildVerticalLayout_2();\n\t\tmainLayout.addComponent(verticalLayout_2);\n\t\tmainLayout.setExpandRatio(verticalLayout_2, 1.0f);\n\t\t\n\t\treturn mainLayout;\n\t}",
"@SuppressWarnings(\"deprecation\")\n\t@AutoGenerated\n\tprivate HorizontalLayout buildHorizontalLayout_1() {\n\t\tHorizontalLayout horizontalLayout_1 = new HorizontalLayout();\n\t\thorizontalLayout_1.setImmediate(false);\n\t\thorizontalLayout_1.setWidth(\"-1px\");\n\t\thorizontalLayout_1.setHeight(\"-1px\");\n\t\thorizontalLayout_1.setMargin(false);\n\t\thorizontalLayout_1.setSpacing(true);\n\n\t\t// textFieldCodigo\n\t\ttextFieldCodigo = new TextField();\n\t\ttextFieldCodigo.setCaption(bundle.getString(\"code\"));\n\t\ttextFieldCodigo.setImmediate(false);\n\t\ttextFieldCodigo.setWidth(AttrDim.FORM_COM_DOUBLE_WIDTH);\n\t\ttextFieldCodigo.setHeight(\"-1px\");\n\t\thorizontalLayout_1.addComponent(textFieldCodigo);\n\n\t\t// comboBoxStatus\n\t\tcomboBoxStatus = new ComboBox();\n\t\tcomboBoxStatus.setCaption(bundle.getString(\"situation\"));\n\t\tcomboBoxStatus.setImmediate(false);\n\t\tcomboBoxStatus.setContainerDataSource(ContainerUtils.listaStatusBean());\n\t\tcomboBoxStatus.setWidth(AttrDim.FORM_COM_DOUBLE_WIDTH);\n\t\tcomboBoxStatus.setHeight(\"-1px\");\n\t\tcomboBoxStatus.setContainerDataSource(AppData.listStatusInteger());\n\t\tcomboBoxStatus.setItemCaptionMode(ComboBox.ITEM_CAPTION_MODE_PROPERTY);\n\t\tcomboBoxStatus.setItemCaptionPropertyId(\"statusNome\");\n\t\tcomboBoxStatus.setNullSelectionAllowed(false);\n\t\thorizontalLayout_1.addComponent(comboBoxStatus);\n\n\t\treturn horizontalLayout_1;\n\t}",
"private HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"-1px\");\r\n\t\tmainLayout.setMargin(true);\r\n\t\tmainLayout.setSpacing(true);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100%\");\r\n\t\tsetHeight(\"100%\");\r\n\t\t\r\n\t\t// panelImg\r\n\t\tpanelImg = buildPanelImg();\r\n\t\tmainLayout.addComponent(panelImg);\r\n\t\t\r\n\t\t// gridInfo\r\n\t\tgridInfo = buildGridInfo();\r\n\t\tmainLayout.addComponent(gridInfo);\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}",
"private HBox hboxFormat() {\n HBox hbox = new HBox(10); // 10 = spacing between elements\n return hbox;\n }",
"public Container createContentPane()\r\n\t{\r\n\t\t//add items to lvl choice\r\n\t\tfor(int g=1; g<21; g++)\r\n\t\t{\r\n\t\t\tcharLvlChoice.addItem(String.valueOf(g));\r\n\t\t}\r\n\r\n\t\t//add stuff to panels\r\n\t\tinputsPanel.setLayout(new GridLayout(2,2,3,3));\r\n\t\tdisplayPanel.setLayout(new GridLayout(1,1,8,8));\r\n\t\tinputsPanel.add(runButton);\r\n\t\tinputsPanel.add(clearButton);\r\n\t\t\ttimesPanel.add(timesLabel);\r\n\t\t\ttimesPanel.add(runTimesField);\r\n\t\tinputsPanel.add(timesPanel);\r\n\t\t\tlevelPanel.add(levelLabel);\r\n\t\t\tlevelPanel.add(charLvlChoice);\r\n\t\tinputsPanel.add(levelPanel);\r\n\t\t\trunTimesField.setText(\"1\");\r\n\t\tdisplay.setEditable(false);\r\n\r\n\t\trunButton.addActionListener(this);\r\n\t\tclearButton.addActionListener(this);\r\n\r\n\t\tdisplay.setBackground(Color.black);\r\n\t\tdisplay.setForeground(Color.white);\r\n\r\n\t\tsetTabsAndStyles(display);\r\n\t\tdisplay = addTextToTextPane();\r\n\t\t\tJScrollPane scrollPane = new JScrollPane(display);\r\n\t\t\t\tscrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\t\t\tscrollPane.setPreferredSize(new Dimension(500, 200));\r\n\t\tdisplayPanel.add(scrollPane);\r\n\r\n\t\t//create Container and set attributes\r\n\t\tContainer c = getContentPane();\r\n\t\t\tc.setLayout(new BorderLayout());\r\n\t\t\tc.add(inputsPanel, BorderLayout.NORTH);\r\n\t\t\tc.add(displayPanel, BorderLayout.CENTER);\r\n\r\n\t\treturn c;\r\n\t}",
"public CalcLayout() {\n\t\tthis(0);\n\t}",
"public Pj3dBox Box(int x, int y, int z)\r\n\t{\r\n\t\tPj3dBox b = new Pj3dBox(this, x, y, z);\r\n\t\treturn b;\r\n\t}",
"private void initVariablesVBox()\n {\n variablesVBox = new VBox();\n variablesVBox.setPrefSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n variablesVBox.setAlignment(Pos.TOP_LEFT);\n variablesVBox.getStyleClass().add(CLASS_BOX_ELEMENTS);\n }",
"public interface ScrollBoxLayout\n extends OrderedContainer, Component.BelongToFrame, HasMargin, HasSpacing, HasOrientation,\n Component.HasIcon, Component.HasCaption, ShortcutNotifier, HasContextHelp,\n HasHtmlCaption, HasHtmlDescription, HasRequiredIndicator, LayoutClickNotifier, HasHtmlSanitizer {\n\n String NAME = \"scrollBox\";\n\n ScrollBarPolicy getScrollBarPolicy();\n void setScrollBarPolicy(ScrollBarPolicy scrollBarPolicy);\n\n /**\n * Sets content width.\n *\n * @param width width\n */\n void setContentWidth(String width);\n /**\n * @return content width value\n */\n float getContentWidth();\n /**\n * @return content width size unit\n */\n SizeUnit getContentWidthSizeUnit();\n\n /**\n * Sets content height.\n *\n * @param height height\n */\n void setContentHeight(String height);\n /**\n * @return content height value\n */\n float getContentHeight();\n /**\n * @return content height size unit\n */\n SizeUnit getContentHeightSizeUnit();\n\n /**\n * Sets minimum CSS width for content. Examples: \"640px\", \"auto\".\n *\n * @param minWidth minimum width\n */\n void setContentMinWidth(String minWidth);\n /**\n * @return minimal content width\n */\n String getContentMinWidth();\n\n /**\n * Sets maximum CSS width for content. Examples: \"640px\", \"100%\".\n *\n * @param maxWidth maximum width\n */\n void setContentMaxWidth(String maxWidth);\n /**\n * @return maximum content width\n */\n String getContentMaxWidth();\n\n /**\n * Sets minimum CSS height for content. Examples: \"640px\", \"auto\".\n *\n * @param minHeight minimum height\n */\n void setContentMinHeight(String minHeight);\n /**\n * @return minimum content width\n */\n String getContentMinHeight();\n\n /**\n * Sets maximum CSS height for content. Examples: \"640px\", \"100%\".\n *\n * @param maxHeight maximum height\n */\n void setContentMaxHeight(String maxHeight);\n /**\n * @return maximum content width\n */\n String getContentMaxHeight();\n\n /**\n * Gets scroll left offset.\n * <p>\n * Scrolling offset is the number of pixels this scrollable has been\n * scrolled right.\n *\n * @return horizontal scrolling position in pixels\n */\n int getScrollLeft();\n\n /**\n * Sets scroll left offset.\n * <p>\n * Scrolling offset is the number of pixels this scrollable has been\n * scrolled right.\n *\n * @param scrollLeft the xOffset\n */\n void setScrollLeft(int scrollLeft);\n\n /**\n * Gets scroll top offset.\n * <p>\n * Scrolling offset is the number of pixels this scrollable has been\n * scrolled down.\n *\n * @return vertical scrolling position in pixels\n */\n int getScrollTop();\n\n /**\n * Sets scroll top offset.\n * <p>\n * Scrolling offset is the number of pixels this scrollable has been\n * scrolled down.\n *\n * @param scrollTop the yOffset\n */\n void setScrollTop(int scrollTop);\n\n enum ScrollBarPolicy {\n VERTICAL,\n HORIZONTAL,\n BOTH,\n NONE\n }\n}",
"@AutoGenerated\r\n\tprivate HorizontalLayout buildHorizontalLayout_3() {\n\t\thorizontalLayout_3 = new HorizontalLayout();\r\n\t\thorizontalLayout_3.setImmediate(false);\r\n\t\thorizontalLayout_3.setWidth(\"-1px\");\r\n\t\thorizontalLayout_3.setHeight(\"-1px\");\r\n\t\thorizontalLayout_3.setMargin(true);\r\n\t\thorizontalLayout_3.setSpacing(true);\r\n\t\t\r\n\t\t// verticalLayout_1\r\n\t\tverticalLayout_1 = buildVerticalLayout_1();\r\n\t\thorizontalLayout_3.addComponent(verticalLayout_1);\r\n\t\thorizontalLayout_3.setComponentAlignment(verticalLayout_1,\r\n\t\t\t\tnew Alignment(48));\r\n\t\t\r\n\t\t// verticalLayout_2\r\n\t\tverticalLayout_2 = buildVerticalLayout_2();\r\n\t\thorizontalLayout_3.addComponent(verticalLayout_2);\r\n\t\thorizontalLayout_3.setComponentAlignment(verticalLayout_2,\r\n\t\t\t\tnew Alignment(48));\r\n\t\t\r\n\t\treturn horizontalLayout_3;\r\n\t}",
"@AutoGenerated\n\tprivate VerticalLayout buildVerticalLayout_2() {\n\t\tverticalLayout_2 = new VerticalLayout();\n\t\tverticalLayout_2.setImmediate(false);\n\t\tverticalLayout_2.setWidth(\"500px\");\n\t\tverticalLayout_2.setHeight(\"-1px\");\n\t\tverticalLayout_2.setMargin(false);\n verticalLayout_2.setStyleName(\"question-text-container\");\n\t\t\n\t\t// label_text\n\t\tlabel_text = new Label();\n\t\tlabel_text.setImmediate(false);\n\t\tlabel_text.setWidth(\"500px\");\n\t\tlabel_text.setHeight(\"-1px\");\n\t\tlabel_text.setValue(\"Label\");\n label_text.setContentMode(ContentMode.HTML);\n\t\tverticalLayout_2.addComponent(label_text);\n\t\t\n\t\t// info_container\n\t\tinfo_container = buildInfo_container();\n\t\tverticalLayout_2.addComponent(info_container);\n\t\t\n\t\treturn verticalLayout_2;\n\t}",
"Container createContainer();",
"private void init() {\n setBackground(LIGHT_GRAY);\n Box layout = new Box(BoxLayout.Y_AXIS);\n\n jump = createButton(\"Jump\", null);\n exit = createButton(\"Exit!\", null);\n fly = createButton(\"Fly\", null);\n Jfloat = createButton(\"Float\", null);\n layout.add(Box.createRigidArea(new Dimension(0, 150)));\n layout.add(jump);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(Jfloat);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(fly);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(exit);\n add(layout);\n }",
"public Widget asWidget() {\n this.keyLayout = new VerticalPanel();\n\n this.keyLayout.setStyleName(\"fill-layout-width\");\n\n addActions(this.keyLayout);\n addTable(this.keyLayout);\n\n return keyLayout;\n }",
"private void initMethodsVBox()\n {\n methodsVBox = new VBox();\n methodsVBox.setPrefSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n methodsVBox.setAlignment(Pos.TOP_LEFT);\n methodsVBox.getStyleClass().add(CLASS_BOX_ELEMENTS);\n }",
"protected JPanel makeNewJPanel() {\n\t\t// a variable tempPanel holds an instance of JPanel\n\t\tfinal JPanel tempPanel = new JPanel();\n\t\t// set the Layout of tempPanel to be a FlowLayout aligned left\n\t\ttempPanel.setLayout(new FlowLayout(FlowLayout.LEFT));\n\t\t// function returns the tempPanel\n\t\treturn tempPanel;\n\t}",
"public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}",
"public Box()\n\t{\n\t\tsuper();\n\t}",
"Box(double len){\r\n Height = Width = Depth = len;\r\n\r\n }",
"@AutoGenerated\r\n\tprivate HorizontalLayout buildMainLayout() {\n\t\tmainLayout = new HorizontalLayout();\r\n\t\tmainLayout.setImmediate(false);\r\n\t\tmainLayout.setWidth(\"100%\");\r\n\t\tmainLayout.setHeight(\"800px\");\r\n\t\tmainLayout.setMargin(false);\r\n\t\t\r\n\t\t// top-level component properties\r\n\t\tsetWidth(\"100.0%\");\r\n\t\tsetHeight(\"800px\");\r\n\t\t\r\n\t\t// verticalLayout_5\r\n\t\tverticalLayout_5 = buildVerticalLayout_5();\r\n\t\tmainLayout.addComponent(verticalLayout_5);\r\n\t\tmainLayout.setComponentAlignment(verticalLayout_5, new Alignment(48));\r\n\t\t\r\n\t\treturn mainLayout;\r\n\t}",
"public MessagesBox() {\n\t\tsuper();\n\t}",
"private BorderPane getPane() {\n bigField = new BigField(); // Create a Field model\n view = new BigFieldView(bigField); // Create a pane view\n BorderPane pane = new BorderPane();\n pane.setCenter(view);\n\n return pane;\n }",
"private Scene createScene() {\r\n\t\tGroup root = new Group();\r\n\t\tScene scene = new Scene(root, this.getWidth(), this.getHeight());\r\n\t\tthis.textfield = new TextField();\r\n\t\ttextfield.setPromptText(this.placeholder);\r\n\t\ttextfield.setPrefWidth(this.getWidth());\r\n\t\ttextfield.setPrefHeight(this.getHeight());\r\n\t\ttextfield.setMinSize(TextField.USE_PREF_SIZE, TextField.USE_PREF_SIZE);\r\n\t\tthis.fixNavigation(textfield);\r\n\t\tthis.node = textfield;\r\n\t\troot.getChildren().add(textfield);\r\n\t\treturn scene;\r\n\t}",
"Box(double len)\n\t{\n\t\t\n\t\twidth = height = depth = len;\n\t\t\n\t}",
"@AutoGenerated\n\tprivate HorizontalLayout buildHorizontalLayout_1() {\n\t\thorizontalLayout_1 = new HorizontalLayout();\n\t\thorizontalLayout_1.setImmediate(false);\n\t\thorizontalLayout_1.setWidth(\"-1px\");\n\t\thorizontalLayout_1.setHeight(\"-1px\");\n\t\thorizontalLayout_1.setMargin(false);\n\t\t\n\t\t// vl_imagen\n\t\tvl_imagen = buildVl_imagen();\n\t\thorizontalLayout_1.addComponent(vl_imagen);\n\t\t\n\t\t// gridLayout_1\n\t\tgridLayout_1 = buildGridLayout_1();\n\t\thorizontalLayout_1.addComponent(gridLayout_1);\n\t\thorizontalLayout_1.setExpandRatio(gridLayout_1, 1.0f);\n\t\t\n\t\treturn horizontalLayout_1;\n\t}",
"GapBoxViewChildren createChildren() {\n return new GapBoxViewChildren(this);\n }",
"private void buildLayout() {\n HorizontalLayout actions = new HorizontalLayout(filter, newPart);\n actions.setWidth(\"100%\"); //what portion of screen to take\n filter.setWidth(\"100%\"); //what portion filter textbox takes\n actions.setExpandRatio(filter, 1); //expand (leaves no gaps)\n\n VerticalLayout left = new VerticalLayout(actions, partList);\n left.setSizeFull();\n partList.setSizeFull();\n left.setExpandRatio(partList, 1);\n\n HorizontalLayout mainLayout = new HorizontalLayout(left, partForm);\n mainLayout.setSizeFull();\n mainLayout.setExpandRatio(left, 1);\n\n // Split and allow resizing\n setContent(mainLayout);\n }",
"@AutoGenerated\n\tprivate VerticalLayout buildMainLayout() {\n\t\tmainLayout = new VerticalLayout();\n\t\tmainLayout.setImmediate(false);\n\t\tmainLayout.setWidth(\"100%\");\n\t\tmainLayout.setHeight(\"100%\");\n\t\tmainLayout.setMargin(false);\n\n\t\t// top-level component properties\n\t\tsetWidth(\"60.0%\");\n\t\tsetHeight(\"60.0%\");\n\n\t\t// lblHeading\n\t\tlblHeading = new Label();\n\t\tlblHeading.setImmediate(false);\n\t\tlblHeading.setWidth(\"-1px\");\n\t\tlblHeading.setHeight(\"-1px\");\n\t\tlblHeading.setValue(\"This is class 4\");\n\t\tmainLayout.addComponent(lblHeading);\n\n\t\t// button_1\n\t\tbutton_1 = new Button();\n\t\tbutton_1.setCaption(\"Button\");\n\t\tbutton_1.setImmediate(false);\n\t\tbutton_1.setWidth(\"-1px\");\n\t\tbutton_1.setHeight(\"-1px\");\n\t\tmainLayout.addComponent(button_1);\n\n\t\treturn mainLayout;\n\t}",
"public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}",
"public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}",
"public LinearLayout rootView(){\n buttonIndex = 0;\n buttonPayIndex = 0;\n buttonFunctionIndex = 0;\n\n\n LinearLayout lrl = new LinearLayout(getContext());\n LinearLayout.LayoutParams rlp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n rlp.setMargins(0,5,0,0);\n lrl.setLayoutParams(rlp);\n lrl.setOrientation(LinearLayout.VERTICAL);\n lrl.setBackgroundColor(getResources().getColor(R.color.colorPrimary));\n lrl.setWeightSum(rows);\n\n for(int index = 0; index < rows; index++){\n lrl.addView(createLinearLayout());\n }\n return lrl;\n }",
"public VFlowLayout() {\n this(TOP, 5, 5, true, false);\n }",
"public MagicBox() {\n\t\tcountSort = 0;\n\t\tcountMin = 0;\n\t}",
"Box(float x, float y, float w, float h, float strokeWeight) {\r\n setDimensions(x, y, w, h);\r\n this.strokeWeight = strokeWeight;\r\n boxColour = Colour.WHITE;\r\n }",
"private Result() {\n\t\t\n\t\tsuper(8);\n\t\t\n\t\tthis.setStyle(\"-fx-background-color: #5F9EA0;\");\n\t\tthis.setPadding(new Insets(10, 100, 10, 100));\n\t\tthis.setAlignment(Pos.CENTER);\n\t\t\n\t}",
"DIV createDIV();",
"Board createLayout();",
"Box(double h, double w, Double d){\r\n\r\n Height = h;\r\n Width = w;\r\n Depth = d;\r\n }",
"public abstract ModuleJiffyBoxes jiffyBoxes();",
"@Override\n\tpublic VLayout asLayout() {\n\t\treturn this;\n\t}",
"private void createSalaryBox() {\n salaryField = new TextField();\n salaryField.setId(\"Salary\");\n HBox salaryFieldBox = new HBox(new Label(\"Salary: \"), salaryField);\n salaryFieldBox.setAlignment(Pos.CENTER);\n mainBox.getChildren().add(salaryFieldBox);\n\n }",
"private Pane createSpacer(){\n Pane spacer = new Pane();\n HBox.setHgrow(\n spacer,\n Priority.SOMETIMES\n );\n return spacer;\n }",
"Box(Box ob)\n\t{\n\t\t//pass object to constructor\n\t\twidth = ob.width;\n\t\theight = ob.height;\n\t\tdepth = ob.depth;\n\t\t\n\t\t\n\t}",
"protected SpringLayout getLayout() {\n\t\treturn (SpringLayout) window.getContentPane().getLayout();\n\t}",
"private void setCenterBox() {\n\t\tVBox centerBox = new VBox();\n\t\tcenterBox.setAlignment(Pos.TOP_CENTER);\n\t\tcenterBox.setPadding(new Insets(10, 0, 0, 30));\n\t\tcenterBox.setSpacing(20);\n\t\t\n\t\t//add Property Address Field to input screen\n\t\tHBox addressBox = new HBox();\n\t\taddressBox.setAlignment(Pos.CENTER);\n\t\tText propertyText = new Text(\"Property Address: \");\n\t\tpropertyText.setFont(Font.font(\"TimesNewRoman\", FontWeight.BOLD, 24));\n\t\tpropertyText.setFill(Color.BLACK);\n\t\taddressBox.getChildren().add(propertyText);\n\t\t\n\t\taddressField = new TextField();\n\t\taddressField.setMaxWidth(300);\n\t\tHBox.setMargin(addressField, new Insets(5, 0 ,0, 0));\n\t\tHBox.setHgrow(addressField, Priority.ALWAYS);\n\t\taddressBox.getChildren().add(addressField);\n\t\t\n\t\t//add Property Type Field to input screen\n\t\tHBox typeBox = new HBox();\n\t\ttypeBox.setAlignment(Pos.CENTER);\n\t\ttypeBox.setPadding(new Insets(0, 145, 0, 0));\n\t\tText typeText = new Text(\"Property Type: \");\n\t\ttypeText.setFont(Font.font(\"TimesNewRoman\", FontWeight.BOLD, 24));\n\t\ttypeText.setFill(Color.BLACK);\n\t\ttypeBox.getChildren().add(typeText);\n\t\t\n\t\tObservableList<PropertyType> listItems = FXCollections.observableArrayList(Arrays.asList(PropertyType.values()));\n\t\ttypeChoice = new ComboBox<PropertyType>(listItems);\n\t\ttypeBox.getChildren().add(typeChoice);\n\t\t\n\t\t//add Property Listing Number Field to input screen\n\t\tHBox listingBox = new HBox();\n\t\tlistingBox.setAlignment(Pos.CENTER);\n\t\tlistingBox.setPadding(new Insets(0, 130, 0, 0));\n\t\t\n\t\tText listingText = new Text(\"Listing Number: \");\n\t\tlistingText.setFont(Font.font(\"TimesNewRoman\", FontWeight.BOLD, 24));\n\t\tlistingText.setFill(Color.BLACK);\n\t\tlistingBox.getChildren().add(listingText);\n\t\t\n\t\tlistingField = new TextField();\n\t\tlistingField.setMaxWidth(300);\n\t\tlistingBox.getChildren().add(listingField);\n\t\t\n\t\t//add Property Value Field to input screen\n\t\tHBox valueBox = new HBox();\n\t\tvalueBox.setAlignment(Pos.CENTER);\n\t\tvalueBox.setPadding(new Insets(0, 125, 0, 0));\n\t\t\n\t\tText valueText = new Text(\"Property Value: \");\n\t\tvalueText.setFont(Font.font(\"TimesNewRoman\", FontWeight.BOLD, 24));\n\t\tvalueText.setFill(Color.BLACK);\n\t\tvalueBox.getChildren().add(valueText);\n\t\t\n\t\tvalueField = new TextField();\n\t\tvalueField.setMaxWidth(300);\n\t\tvalueBox.getChildren().add(valueField);\n\t\t\n\t\t//add Submit Button\n\t\tsubmitButton = new Button(\"Submit\");\n\t\tsubmitButton.setAlignment(Pos.BOTTOM_CENTER);\n\t\t\n\t\tcenterBox.getChildren().addAll(addressBox, typeBox, listingBox, valueBox, submitButton);\n\t\tmainPane.setCenter(centerBox);\n\t}",
"public X layout() {\n component.doLayout();\n return (X) this;\n }",
"public BoxNode() {\n initProperties();\n }",
"public Container newContainer();",
"private void constructContainer(LayoutManager manager) {\n this.container = new JPanel();\n container.setLayout(manager);\n setGraphPanels();\n }",
"T createContainer();",
"public Panel()\n/* */ {\n/* 56 */ this(new FlowLayout());\n/* */ }",
"public static KBoxManager get() {\r\n\t\tif (_this == null) {\r\n\t\t\t_this = new KBoxManager();\r\n\t\t}\r\n\t\treturn _this;\r\n\t}",
"public VBox getVBox() {\n\t\treturn vBox;\n\t}",
"public X layout(LayoutManager manager) {\n component.setLayout(manager);\n return (X) this;\n }",
"Div createDiv();",
"public Box() {}",
"static JPanel createContainers()\n\t{\n\t\tscore.setFont(new Font(\"Arial\", 0, 14));\n\t\tscore.setForeground(Color.RED);\n\n\t\tJPanel mainPanel = createMainPanel();\n\t\tmainPanel.setBackground(Color.black);\n\t\tJPanel scoringPanel = createScoringPanel(score);\n\t\tJPanel gamePanel = createGamePanel();\n\n\t\tPortfolio1.gameCards = Portfolio1.createGameCards();\n\n\t\tfor (GameCard card : Portfolio1.gameCards)\n\t\t{\n\t\t\tgamePanel.add(card);\n\t\t}\n\n\t\tmainPanel.add(Box.createVerticalStrut(25));\n\t\tmainPanel.add(scoringPanel);\n\t\tmainPanel.add(Box.createVerticalStrut(25));\n\t\tmainPanel.add(gamePanel);\n\n\t\treturn mainPanel;\n\t}",
"private JPanel initCenterPanel() {\r\n JPanel centerPanel = new JPanel(new GridLayout(0, 2, gapSize, gapSize));\r\n\r\n centerPanel.add(chcBoxBowDepartment);\r\n centerPanel.add(new JLabel(\"gebühren: 5\"));\r\n centerPanel.add(chcBoxAtmosphericDepartment);\r\n centerPanel.add(new JLabel(\"gebühren: 10\"));\r\n centerPanel.add(chcBoxFirearmDepartment);\r\n centerPanel.add(new JLabel(\"gebühren: 15\"));\r\n\r\n centerPanel.add(lDiscounts);\r\n TitledBorder border = new TitledBorder(\"Abteilungen\");\r\n centerPanel.setBorder(border);\r\n\r\n return centerPanel;\r\n }",
"@AutoGenerated\r\n\tprivate VerticalLayout buildVerticalLayout_5() {\n\t\tverticalLayout_5 = new VerticalLayout();\r\n\t\tverticalLayout_5.setImmediate(false);\r\n\t\tverticalLayout_5.setWidth(\"-1px\");\r\n\t\tverticalLayout_5.setHeight(\"-1px\");\r\n\t\tverticalLayout_5.setMargin(false);\r\n\t\t\r\n\t\t// horizontalLayout_3\r\n\t\thorizontalLayout_3 = buildHorizontalLayout_3();\r\n\t\tverticalLayout_5.addComponent(horizontalLayout_3);\r\n\t\tverticalLayout_5.setComponentAlignment(horizontalLayout_3,\r\n\t\t\t\tnew Alignment(48));\r\n\t\t\r\n\t\treturn verticalLayout_5;\r\n\t}",
"public MessagesBox(int rows, int cols) {\n\t\tsuper(rows,cols);\n\t}",
"Box(int positionX, int positionY, int num, String theme) {\r\n super(String.valueOf(num));\t\t\t// string to int then pass the value \r\n this.theme = theme;\r\n this.positionX = positionX;\r\n this.positionY = positionY;\r\n Color colorBack;\r\n Color colorFront;\r\n MyBorder border = new MyBorder(theme);\r\n \r\n Theme t = new Theme(theme);\r\n \tcolorBack = t.colorBack;\r\n colorFront = t.colorFront;\r\n\r\n setFont(new Font(\"Tahoma\", Font.BOLD, 100));\r\n setFocusable(false);\r\n }",
"private JPanel initializePanel() {\n JPanel myPanel = new JPanel();\n //myPanel.setPreferredSize(new Dimension(600,600));\n\n myPanel.setLayout(new GridLayout(8,8));\n myPanel.setSize(600,600);\n myPanel.setLocation(100,100);\n myPanel.setBorder(new LineBorder(Color.BLACK));\n return myPanel;\n }",
"public VBox addVBox() {\n\n VBox vbox = new VBox();\n vbox.setPadding(new Insets(10)); // Set all sides to 10\n vbox.setSpacing(8); // Gap between nodes\n\n\n\n Image addCategoryImage = new Image(getClass().getResourceAsStream(\"images/buttons/Add.png\"));\n\n// title.setFont(Font.font(\"Arial\", FontWeight.BOLD, 14));\n Button addCategoryButton = new Button(\"\", new ImageView(addCategoryImage));\n addCategoryButton.setOnAction(event -> addVBox());\n// vbox.getChildren().addAll(title,addCategoryButton);\n\n// Hyperlink options[] = new Hyperlink[] {new Hyperlink(\"FOOD\")};\n// for (int i=0; i<1; i++) {\n//\n// // Add offset to left side to indent from title\n// VBox.setMargin(options[i], new Insets(0, 0, 0, 8));\n// vbox.getChildren().add(options[i]);\n// }\n\n return vbox;\n }",
"Box(double w, double h, double d) {\n\n widgh =w;\n height =h;\n depth =d;\n\n}",
"private JPanel initFields() {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new MigLayout());\n\n\t\tJLabel usernameLabel = new JLabel(\"UserName\");\n\t\tusernameLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 26));\n\t\tpanel.add(usernameLabel, \"align label\");\n\t\tuserNameField.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tpanel.add(userNameField, \"wrap\");\n\n\t\tJLabel passwordLabel = new JLabel(\"Password\");\n\t\tpasswordLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tpanel.add(passwordLabel, \"align label\");\n\t\tpasswordField.setFont(new Font(\"Tahoma\", Font.PLAIN, 24));\n\t\tpanel.add(passwordField, \"wrap\");\n\t\treturn panel;\n\t}",
"JPanel createFilePane()\n {\n /*\n * Use a BoxLayout pane for the filename field and browse button.\n */\n JPanel tFilePane = new JPanel();\n tFilePane.setLayout(new BoxLayout(tFilePane, BoxLayout.LINE_AXIS));\n tFilePane.add(_fileTextField);\n tFilePane.add(Box.createRigidArea(new Dimension(5, 0)));\n tFilePane.add(_fileBrowseButton);\n\n return tFilePane;\n }"
] | [
"0.56996983",
"0.54806316",
"0.54748714",
"0.54590803",
"0.54138255",
"0.5409844",
"0.53518397",
"0.53186697",
"0.52364594",
"0.5224236",
"0.5199704",
"0.5196257",
"0.51827675",
"0.5179728",
"0.51660967",
"0.51385516",
"0.51148295",
"0.5098956",
"0.50896895",
"0.5082518",
"0.5068885",
"0.5059397",
"0.5055002",
"0.5048406",
"0.50475067",
"0.5027181",
"0.5025011",
"0.50177836",
"0.5011194",
"0.5000963",
"0.49909824",
"0.49891543",
"0.498684",
"0.49449247",
"0.49385047",
"0.49172145",
"0.49161112",
"0.4912823",
"0.4907792",
"0.48980266",
"0.4887151",
"0.48659754",
"0.4857808",
"0.4856016",
"0.48552054",
"0.48540443",
"0.4851485",
"0.4836135",
"0.48323643",
"0.48271787",
"0.48265278",
"0.48219162",
"0.48167437",
"0.48043782",
"0.480146",
"0.47923803",
"0.4786325",
"0.47821373",
"0.4780628",
"0.47725406",
"0.47654918",
"0.47614682",
"0.4757468",
"0.4747976",
"0.4746599",
"0.47405276",
"0.4732091",
"0.47315222",
"0.47308645",
"0.472772",
"0.47224283",
"0.47047025",
"0.47022596",
"0.4697572",
"0.46848276",
"0.46806198",
"0.4679943",
"0.46775594",
"0.46736637",
"0.46703622",
"0.4662206",
"0.46610647",
"0.46594197",
"0.46560556",
"0.46499336",
"0.46491253",
"0.46486792",
"0.46421272",
"0.46354833",
"0.4620181",
"0.46179664",
"0.46155614",
"0.4614423",
"0.46074554",
"0.4606359",
"0.46001595",
"0.45994532",
"0.45987302",
"0.45929822",
"0.45920968"
] | 0.8577249 | 0 |
Returns a new object of class 'Font'. | Font createFont(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Font createFont() {\n\t\treturn null;\n\t}",
"FONT createFONT();",
"@SuppressWarnings(\"unchecked\")\n public TF addFont() {\n final ParameterizedType pt = (ParameterizedType) getClass()\n .getGenericSuperclass();\n final ParameterizedType paramType = (ParameterizedType) pt\n .getActualTypeArguments()[2];\n final Class<TF> fontClass = (Class<TF>) paramType.getRawType();\n try {\n final Constructor<TF> c = fontClass\n .getDeclaredConstructor(ACellStyle.class);\n return c.newInstance(this);\n }\n catch (final Exception e) {\n throw new ReportBuilderException(e);\n }\n }",
"abstract Font getFont();",
"public void createFont()\n {\n my_font = new Font(\"Helvetica\", Font.BOLD, (int) (getWidth() * FONT_SIZE));\n }",
"public FontFactory(String font, int size, String text) {\n this.font = new Font(font, Font.BOLD, size);\n ttf = new TrueTypeFont(this.font, true);\n this.text = text;\n }",
"public abstract Font getFont();",
"public static Font getFont() {\n return getFont(12);\n }",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont addNewFont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont)get_store().add_element_user(FONT$0);\n return target;\n }\n }",
"public Font getFont(\n )\n {return font;}",
"public static Font getFont(String name) {\r\n\t\treturn (Font) getInstance().addResource(name);\r\n\t}",
"public native Font getFont() /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tvar obj = jso.font;\n\t\treturn @com.emitrom.ti4j.mobile.client.ui.style.Font::new(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\n }-*/;",
"public Font deriveFont(float size){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplySize(size, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }",
"public static Font create(Doc paramDoc, Font paramFont, String paramString) throws PDFNetException {\n/* 157 */ return __Create(Create(paramDoc.__GetHandle(), paramFont.a, paramString), paramDoc);\n/* */ }",
"public XSSFFontFormatting createFontFormatting(){\n CTDxf dxf = getDxf(true);\n CTFont font;\n if(!dxf.isSetFont()) {\n font = dxf.addNewFont();\n } else {\n font = dxf.getFont();\n }\n\n return new XSSFFontFormatting(font, _sh.getWorkbook().getStylesSource().getIndexedColors());\n }",
"public Font getFont() {\r\n return font;\r\n }",
"public Font getFont() {\r\n return font;\r\n }",
"public static Font create(Doc paramDoc, int paramInt) throws PDFNetException {\n/* 128 */ return __Create(Create(paramDoc.__GetHandle(), paramInt, false), paramDoc);\n/* */ }",
"public FontController createFont(ControllerCore genCode) {\n\t\tfontTXT = new FontController(\"font\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(font$1LBL);\n\t\t\t\tsetProperty(\"font\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn fontTXT;\n\t}",
"private FontData() {\n }",
"public Font deriveFont(AffineTransform trans){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplyTransform(trans, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }",
"public Font getFont() {\n\t\treturn f;\n\t}",
"public Font getFont() {\n return font;\n }",
"private static native Font createFont(String name, GFontPeer peer, int gdkfont);",
"public Font deriveFont(int style){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplyStyle(style, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }",
"public X font(Font font) {\n component.setFont(font);\n return (X) this;\n }",
"public Obj getEmbeddedFont() throws PDFNetException {\n/* 809 */ return Obj.__Create(GetEmbeddedFont(this.a), this.b);\n/* */ }",
"public Font getFont() {\n\treturn font;\n }",
"public Font getFont() {\n\treturn font;\n }",
"public Font GetFont(String name) { return FontList.get(name); }",
"private Font(File fontFile, int fontFormat,\n boolean isCopy, CreatedFontTracker tracker)\n throws FontFormatException {\n\tthis.createdFont = true;\n\t/* Font2D instances created by this method track their font file\n\t * so that when the Font2D is GC'd it can also remove the file.\n\t */\n\tthis.font2DHandle =\n\t FontManager.createFont2D(fontFile, fontFormat,\n isCopy, tracker).handle;\n\n\tthis.name = this.font2DHandle.font2D.getFontName(Locale.getDefault());\n\tthis.style = Font.PLAIN;\n\tthis.size = 1;\n\tthis.pointSize = 1f;\n }",
"public OneFont(FontData fd) {\r\n\t\tname = fd.getName();\r\n\t\theight = fd.getHeight();\r\n\t\tstyle = fd.getStyle();\r\n\t\tfont = new Font(Display.getDefault(), fd);\r\n\t}",
"private Typeface getFont() {\n Typeface fontText = Typeface.createFromAsset(SnapziApplication.getContext().getAssets(), \"fonts/GothamHTF-Book.ttf\");\n return fontText;\n }",
"public Font getFont()\r\n\t{\r\n\t\treturn _g2.getFont();\r\n\t}",
"public static Font create(Doc paramDoc, int paramInt, boolean paramBoolean) throws PDFNetException {\n/* 143 */ return __Create(Create(paramDoc.__GetHandle(), paramInt, paramBoolean), paramDoc);\n/* */ }",
"public Font getFont() {\n return this.font;\n }",
"public OneFont(String fontName, int fontHeight, int fontStyle) {\r\n\t\tname = fontName;\r\n\t\theight = fontHeight;\r\n\t\tstyle = fontStyle;\r\n\t\tfont = new Font(Display.getDefault(), fontName, fontHeight, fontStyle);\r\n\t}",
"public BitmapFont getFont(int style) {\r\n\t\treturn new BitmapFont(this, style);\r\n\t}",
"static Font getFont(int style, int size) {\n\t\treturn new Font(\"Monospaced\", style, size);\n\t}",
"@Override\n public String getFont() {\n return graphicsEnvironmentImpl.getFont(canvas);\n }",
"public Font font() {\n return font;\n }",
"public String getFont() {\n return font;\n }",
"public Font deriveFont(int style, float size){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplyStyle(style, newAttributes);\n\tapplySize(size, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }",
"public FontStyle getStyle();",
"public FontRenderer(float x, float y, String text, FontType font) {\n\t\tthis(x, y, text, font, 1);\n\t}",
"public RMFont getFont()\n {\n return getStyle().getFont();\n }",
"public FontRenderer(float x, float y, String text, FontType font, float size) {\n\t\tthis.text = text;\n\t\tthis.font = font;\n\t\tthis.size = size;\n\t\tcolor = new Vector4f(1, 1, 1, 1);\n\t\t\n\t\ttransform.setPosition(x, y);\n\t\tsetSize(size);\n\t\t\n\t\tprogram = FontShaderProgram.INSTANCE;\n\t\t\n\t\ttexture = font.getTexture().setParameters(GL11.GL_LINEAR, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_TEXTURE_MIN_FILTER);\n\t\t\n\t\tif(text.length() < 1)\n\t\t\tmesh = new Mesh().createEmpty();\n\t\telse\n\t\t\tcreateFont(false);\n\t}",
"public static Font create(Doc paramDoc, String paramString1, String paramString2) throws PDFNetException {\n/* 171 */ return __Create(Create(paramDoc.__GetHandle(), paramString1, paramString2), paramDoc);\n/* */ }",
"public Font deriveFont(int style, AffineTransform trans){\n\tHashtable newAttributes = (Hashtable)getRequestedAttributes().clone();\n\tapplyStyle(style, newAttributes);\n\tapplyTransform(trans, newAttributes);\n return new Font(newAttributes, createdFont, font2DHandle);\n }",
"public void setFont(Font value) {\r\n this.font = value;\r\n }",
"public void setFont(RMFont aFont) { }",
"private void setFont() {\n\t}",
"public native void setFont(Font value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.font = [email protected]::getJsObj()();\n }-*/;",
"public void setFont(Font newFont) {\r\n\t\tfont = newFont;\r\n\t}",
"public IsFont getFont() {\n\t\treturn getOriginalFont();\n\t}",
"public FontProps getFontProps() {\n\t\treturn mFont;\n\t}",
"public static FontEncoding createFontSpecificEncoding() {\n FontEncoding encoding = new FontEncoding();\n encoding.fontSpecific = true;\n for (int ch = 0; ch < 256; ch++) {\n encoding.unicodeToCode.put(ch, ch);\n encoding.codeToUnicode[ch] = ch;\n encoding.unicodeDifferences.put(ch, ch);\n }\n return encoding;\n }",
"public String getMyFont() {\n return myFont.font; /*Fault:: return \"xx\"; */\n }",
"public void setFont(Font newFont) {\n\tfont = newFont;\n }",
"public static Font getFont(int size) {\n if (size <= 0) {\n return getFont();\n }\n return new Font(\"Comic Sans MS\", Font.PLAIN, size);\n }",
"public void setFont(Font f) {\n font = f;\n compute();\n }",
"public TextBox() {\n font = new Font(fontname, fontstyle, fontsize);\n }",
"FontMatch(FontInfo info) {\n/* 704 */ this.info = info;\n/* */ }",
"public org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont getFont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont)get_store().find_element_user(FONT$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public CanvasFont getFont() {\n return this.textFont;\n }",
"public Font getLabelFont();",
"public PatchTextStyleProperties font(String font) {\n this.font = font;\n return this;\n }",
"public static Font createType1Font(Doc paramDoc, String paramString) throws PDFNetException {\n/* 417 */ return __Create(CreateType1Font(paramDoc.__GetHandle(), paramString, true), paramDoc);\n/* */ }",
"public String getFontName();",
"public String getFontName();",
"public String getFontName();",
"protected Choice createFontChoice() {\n CommandChoice choice = new CommandChoice();\n String fonts[] = Toolkit.getDefaultToolkit().getFontList();\n for (int i = 0; i < fonts.length; i++)\n choice.addItem(new ChangeAttributeCommand(fonts[i], \"FontName\", fonts[i], fView));\n return choice;\n }",
"public Font(String name, int style, int size) {\n\tthis.name = (name != null) ? name : \"Default\";\n\tthis.style = (style & ~0x03) == 0 ? style : 0;\n\tthis.size = size;\n this.pointSize = size;\n }",
"public Font modify(Font font) {\n\t\tif (family == null) {\n\t\t\tif (style != null && size != null) {\n\t\t\t\treturn font.deriveFont(style, size);\n\t\t\t}\n\t\t\telse if (style != null) {\n\t\t\t\treturn font.deriveFont(style);\n\t\t\t}\n\t\t\treturn font.deriveFont((float) size);\n\t\t}\n\t\tint newStyle = style != null ? style : font.getStyle();\n\t\tint newSize = size != null ? size : font.getSize();\n\t\treturn new Font(family, newStyle, newSize);\n\t}",
"public interface VisualFont extends VisualResource {\n /**\n * May be set to cause fonts with the corresponding name to be matched.\n */\n public String getMatchFontName();\n /**\n * May be set to cause fonts with the corresponding name to be matched.\n */\n public void setMatchFontName(String matchFontName);\n\n /**\n * Returns true result if the desired font was located, or false if it was \n * not. If this value is set to false, no other results are set. If this \n * value is set to true, all other results are set.\n */\n public boolean getExists();\n\n /**\n * When a font is matched, the name of the font is returned here.\n */\n public String getFontName();\n\n /**\n * Fetches the results of the next matching <code>VisualFont</code>, if \n * any.\n * @return \n */\n public boolean getNext();\n\n}",
"private void loadFont() {\n\t\ttry {\n\t\t\tfont = Font.createFont(Font.TRUETYPE_FONT, new FileInputStream(\"assets/fonts/forced_square.ttf\"));\n\t\t} catch (Exception e) {\n\t\t\tfont = new Font(\"Helvetica\", Font.PLAIN, 22);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public PdfFontProgram() {\n super();\n }",
"@Deprecated\r\n public String getFont()\r\n {\r\n return this.font;\r\n }",
"public WritingFont() {\n\t\tproperties.set(NAME, \"Untitled\");\n\t\tproperties.set(MEDIAN, .6f);\n\t\tproperties.set(DESCENT, .3f);\n\t\tproperties.set(LEADING, .1f);\n\t}",
"Type1Glyph2D(PDSimpleFont font) {\n/* 45 */ this.font = font;\n/* */ }",
"public static Font createTrueTypeFont(Doc paramDoc, String paramString) throws PDFNetException {\n/* 188 */ return __Create(CreateTrueTypeFont(paramDoc.__GetHandle(), paramString, true, true), paramDoc);\n/* */ }",
"public FontConfig() {\n\t\tthis.name = \"Monospaced\";\n\t\tthis.style = FontStyle.PLAIN;\n\t\tthis.size = DEFAULT_SIZE;\n\t}",
"public BitmapFont(String fontName) {\r\n\t\tthis(fontName, DEFAULT_COLOR_CACHE_CAPACITY);\r\n\t}",
"public Font getFont() {\r\n if (font==null)\r\n return getDesktop().getDefaultFont();\r\n else\r\n return font;\r\n }",
"public static Font getFont(String nm) {\n\treturn getFont(nm, null);\n }",
"public static Font getFont(String familyName, int style, int size){\n\t\tFont font = new Font(familyName, style, size);\n\t\tif(familyName.equalsIgnoreCase(font.getFamily()))\n\t\t\treturn font;\n\t\treturn null;\n\t}",
"public MinecraftFontRenderer getFont() {\n return fontRenderer;\n }",
"public void GetFont (){\n fontBol = false;\n fontBolS = true;\n fontBolA = true;\n fontBolW = true;\n }",
"public static Font getFont(String path, float size) {\n\t\tif (fonts.containsKey(path)) {\n\t\t\treturn fonts.get(path).deriveFont(size);\n\t\t}\n\t\ttry (InputStream is = Assets.class.getResourceAsStream(path)) {\n\t\t Hashtable<TextAttribute, Object> map = new Hashtable<TextAttribute, Object>();\n\t\t map.put(TextAttribute.KERNING, TextAttribute.KERNING_ON);\n\t\t map.put(TextAttribute.TRACKING, 0.08);\n\t\t map.put(TextAttribute.SIZE, size);\n\t\t\tif (is != null) {\n\t\t\t\tFont font = Font.createFont(Font.TRUETYPE_FONT, is).deriveFont(map);\n\t\t\t\tfonts.putIfAbsent(path, font);\n\t\t\t\treturn font;\n\t\t\t}\n\t\t} catch (IOException | FontFormatException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfonts.putIfAbsent(path, NO_FONT);\n\t\treturn NO_FONT.deriveFont(size);\n\t}",
"private native void init(Font font, String nativeName, int size);",
"private SpriteFont getSpriteFontInstance() {\r\n\t\t// called by the seed batch upon making a batch\r\n\t\t// only needs docPoint if an influenceImage is set\r\n\t\t//System.out.println(\"SpriteFontBiome::getSpriteFontInstance ... num biomeItems = \" + biomeItems.size());\r\n\t\tif (probabilitiesNormalised == false) normaliseProbabilities();\r\n\r\n\t\tif (biomeItems.size() == 1) {\r\n\t\t\treturn biomeItems.get(0);\r\n\t\t}\r\n\r\n\t\t\r\n\t\tfloat r = randomStream.randRangeF(0f, 1f);\r\n\t\treturn getSpriteFontFromProbabilityStack(r);\r\n\t}",
"public void setFont(Font font)\n {\n this.font = font;\n }",
"public Font getFont(String family, int style, float size, float dpi)\n\t{\n\t\tfloat scale = dpi/72.0f;\n\t\treturn FontUtil.newFont(family, style, scale*size);\n\t}",
"public FontData deriveFont(float size) {\n return deriveFont(size, javaFont.getStyle());\n }",
"public Font getFont() {\n return GraphicsEnvironment.getLocalGraphicsEnvironment()\n .getAllFonts()[0];\n }",
"public static Font createType1Font(Doc paramDoc, String paramString, boolean paramBoolean) throws PDFNetException {\n/* 432 */ return __Create(CreateType1Font(paramDoc.__GetHandle(), paramString, paramBoolean), paramDoc);\n/* */ }",
"private BufferedImage getFontImage() {\n\t\t\tfinal BufferedImage fontImage = new BufferedImage(64, 64, BufferedImage.TYPE_INT_ARGB);\n\n\t\t\tfinal Graphics2D gt = (Graphics2D) fontImage.getGraphics();\n\t\t\tgt.setFont(awtFont);\n\t\t\tgt.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\tgt.setColor(Color.WHITE);\n\n\t\t\t// TODO: should really use MaxAscent here? Would likely waste space\n\t\t\tgt.drawString(String.valueOf(c), FontTextureHelper.padding, fontMetrics.getAscent() + FontTextureHelper.padding);\n\n\t\t\treturn fontImage;\n\t\t}",
"public FontFinder getFontFinder() {\n return NameFont;\n }",
"public FontDescriptor(final PDFont font, final float size) {\n this.font = font;\n this.size = size;\n }",
"public Font(Obj paramObj) {\n/* 113 */ this.a = paramObj.__GetHandle();\n/* 114 */ this.b = paramObj.__GetRefHandle();\n/* */ }"
] | [
"0.78603184",
"0.7820013",
"0.75083274",
"0.73628795",
"0.72692347",
"0.723827",
"0.72272986",
"0.71953183",
"0.7037586",
"0.70003694",
"0.6943671",
"0.6774868",
"0.674501",
"0.6715451",
"0.66681594",
"0.6658767",
"0.6658767",
"0.6653741",
"0.6627899",
"0.66229755",
"0.66205746",
"0.6619383",
"0.66160285",
"0.66060513",
"0.660267",
"0.6557016",
"0.6533698",
"0.6522688",
"0.6522688",
"0.6514005",
"0.6506227",
"0.6496983",
"0.64940983",
"0.64918786",
"0.6487996",
"0.64874536",
"0.6480575",
"0.6420936",
"0.6396251",
"0.6375697",
"0.63710827",
"0.63389903",
"0.6337997",
"0.6321858",
"0.6290577",
"0.62897843",
"0.6275174",
"0.6270402",
"0.6268958",
"0.6251782",
"0.6245031",
"0.6242408",
"0.62388164",
"0.6235793",
"0.6223273",
"0.6216216",
"0.6196282",
"0.6184098",
"0.6164803",
"0.61525124",
"0.6148138",
"0.6147854",
"0.6147212",
"0.6144057",
"0.61124635",
"0.61047465",
"0.6075051",
"0.6070659",
"0.606876",
"0.606876",
"0.606876",
"0.6047023",
"0.60452396",
"0.6042124",
"0.6029694",
"0.6029439",
"0.6027049",
"0.60131824",
"0.6008988",
"0.59961617",
"0.5988342",
"0.5966772",
"0.5961618",
"0.5953766",
"0.5946822",
"0.594285",
"0.5939962",
"0.59281814",
"0.59049416",
"0.59023905",
"0.5897708",
"0.5890273",
"0.588349",
"0.5875907",
"0.5862113",
"0.5856894",
"0.5847235",
"0.5841998",
"0.58337134",
"0.5829096"
] | 0.8312395 | 0 |
Returns a new object of class 'Section List'. | SectionList createSectionList(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Section createSection();",
"public Section newSection() {\n\t\tSection page = new Section();\r\n\t\tpage.setWpPublished(DateUtils.now());\r\n\t\treturn page;\r\n\t}",
"@Override\r\n public final @Nonnull List<Section> getSections() {\r\n return ImmutableList.copyOf(sections);\r\n }",
"List<H> generateSections(List<T> listItems);",
"Section getSection();",
"void create(Section section);",
"public synchronized TestResult.Section createSection(String name) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n\n Section section = new Section(name);\n sections = DynamicArray.append(sections, section);\n notifyCreatedSection(section);\n // avoid creating output (which will cause observer messages)\n // before the createdSection has been notified\n section.createOutput(TestResult.MESSAGE_OUTPUT_NAME);\n\n return section;\n }",
"public abstract Collection<String> getSections();",
"public List<String> getSections(){\n return new ArrayList<>(Arrays.asList(lab, tutorial, discussion));\n }",
"public native List<TableViewSection> getSections() /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tvar obj = jso.sections;\n\t\treturn @com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromJsArray(Lcom/google/gwt/core/client/JavaScriptObject;)(obj);\n }-*/;",
"List<T> getSectionItems(int sectionIndex);",
"protected void createSection() {\r\n\t\tsection = new GraphSection();\r\n\t}",
"@Test\n public void testGetSectionList() {\n System.out.println(\"getSectionList\");\n \n instance.addSection(null);\n \n ArrayList result = instance.getSectionList();\n assertTrue(\"Incorrect Length\", result.size() == 1);\n assertNull(\"Incorrect data\", result.get(0));\n \n // TODO review the generated test code and remove the default call to fail.\n // fail(\"The test case is a prototype.\");\n }",
"SectionsType createSectionsType();",
"@Override\n\tpublic Object[] getSections() {\n\t\treturn sections;\n\t}",
"public static ShoppingListView newInstance(int sectionNumber) {\n ShoppingListView fragment = new ShoppingListView();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }",
"@GET(Service.PATH_GET_LIST_SECTION)\n Call<ApiFilterObject> getSection();",
"public SectionDesc ()\r\n {\r\n }",
"public Section getSection() {\n return _section;\n }",
"public interface ListSectionGenerator<H, T> {\n\n /**\n * Generate data for the sections of the given list.\n * <p/>\n * It assumed that the items belonging to the section can then be extracted via the section index.\n *\n * @param listItems List of items to create sections from.\n * @return List of data for the sections\n */\n List<H> generateSections(List<T> listItems);\n\n /**\n * Return list of items in a given section.\n *\n * @param sectionIndex Index of the section.\n * @return List of items in the section.\n */\n List<T> getSectionItems(int sectionIndex);\n}",
"public List<WebPage> getSections() {\r\n\t\treturn secDao.findAll();\r\n\t}",
"void SetItemsWithHeaders(List<SectionItem> sectionItemsList, String header) {\n SectionItem sectionItem = new SectionItem();\n sectionItem.setCategory(header);\n Section section = new Section();\n section.setSectionItem(sectionItem);\n section.setLayoutId(R.layout.section);\n sectionItemsWithHeaders.add(section);\n\n for (SectionItem sectItem : sectionItemsList) {\n Section sectionHeader = new Section();\n sectionHeader.setSectionItem(sectItem);\n sectionHeader.setLayoutId(R.layout.section_list_item);\n sectionHeader.setSectionHeader(header);\n sectionItemsWithHeaders.add(sectionHeader);\n }\n\n }",
"SectionType createSectionType();",
"public String getSection(){\n return mSection;\n }",
"private SectionSets ()\r\n {\r\n }",
"public String getSection() {\n return section;\n }",
"public String getSection() {\n return section;\n }",
"public static SectionSets createFromSections (Collection<Section> sections)\r\n {\r\n SectionSets sectionSets = new SectionSets();\r\n sectionSets.sets = new ArrayList<>();\r\n sectionSets.sets.add(sections);\r\n\r\n return sectionSets;\r\n }",
"public SubSectionDetail() {\r\n\t}",
"public Section(String name, List<String> emails) {\n this.name = name;\n this.emails = emails;\n }",
"public static synchronized ArrayList<QASections> fetchSectionsList(\n\t\t\tContext context, String query) throws SQLException,\n\t\t\tNullPointerException {\n\n\t\tQADatabaseHelper dbHelper = QADatabaseHelper.getInstance(context);\n\t\tSQLiteDatabase db = dbHelper.getReadableDatabase();\n\n\t\tArrayList<QASections> sectionsList = null;\n\n\t\tCursor cursor = null;\n\t\ttry {\n\t\t\tcursor = db.rawQuery(query, null);\n\t\t} catch (Exception exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t\tcursor.moveToFirst();\n\t\tif (cursor != null && cursor.getCount() > QAConstants.DB_EMPTY) {\n\t\t\tsectionsList = new ArrayList<QASections>();\n\t\t\tfor (cursor.moveToFirst(); !cursor.isAfterLast(); cursor\n\t\t\t\t\t.moveToNext()) {\n\t\t\t\tQASections section = new QASections();\n\n\t\t\t\tsection.setPrimaryKey(cursor.getInt(cursor\n\t\t\t\t\t\t.getColumnIndex(SECTIONS_COLUMN_NAME_PRIMARY_KEY)));\n\t\t\t\tsection.setSectionName(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(SECTIONS_COLUMN_NAME_SECTION_NAME)));\n\t\t\t\tsection.setImageUrl(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(SECTIONS_COLUMN_NAME_IMAGE_URL)));\n\t\t\t\tsection.setUpdatedAt(cursor.getString(cursor\n\t\t\t\t\t\t.getColumnIndex(SECTIONS_COLUMN_NAME_UPDATED_AT)));\n\t\t\t\tsectionsList.add(section);\n\t\t\t}\n\t\t}\n\t\tcursor.close();\n\t\treturn sectionsList;\n\t}",
"public SideMenuSection(String sectionTitle, List<SectionListItemInfo> menuItemList) {\n super(sectionTitle, menuItemList);\n title = sectionTitle;\n if (menuItemList == null) {\n menuItems = Collections.emptyList();\n } else {\n menuItems = menuItemList;\n }\n }",
"String getSection() {\n\t\treturn this.mSection;\n\t}",
"OrderedListContent createOrderedListContent();",
"public String getSection(){\n return sectionsText;\n }",
"@Override\n public Object[] getSections() {\n return null;\n }",
"public DataSection createSection(String key)\n {\n DataSection section = new DataSection();\n data.put(key, section);\n if (!keys.contains(key)) keys.add(key);\n return section;\n }",
"public void CreateSectionItems(TagView sectionItems, String category) {\n List<SectionItem> sectionItemsList = new ArrayList<SectionItem>();\n\n SectionItem sectionItem = new SectionItem();\n sectionItem.setCategoryItem(sectionItems);\n sectionItemsList.add(sectionItem);\n\n SetItemsWithHeaders(sectionItemsList, category);\n\n }",
"private void createListFormat(Composite section2)\n {\n // Create Label\n Label label = toolkit.createLabel(section2, \"Attributes identification:\"); //$NON-NLS-1$\n label.setData(new GridData(SWT.FILL, SWT.LEFT, false, false, 2, 1));\n\n // Create treeViewer\n listFormat = new TreeViewer(section2, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);\n GridData data = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 6);\n listFormat.getTree().setLayoutData(data);\n\n // Set the label provider\n listFormat.setLabelProvider(new LabelProvider()\n {\n public String getText(Object element)\n {\n // Return the label.\n if (element instanceof String)\n {\n return (String) element;\n }\n else if (element instanceof RecognizedElement)\n {\n return ((RecognizedElement) element).getText();\n }\n else if (element instanceof RecognizedTree)\n {\n return \"root\"; //$NON-NLS-1$\n }\n return null;\n }\n });\n // Set the content provider\n listFormat.setContentProvider(new IStructuredContentProviderTree());\n\n \n // Add inputs\n listFormat.setInput(tree);\n\n listFormat.addSelectionChangedListener(new ISelectionChangedListener()\n {\n private ISelection selection;\n\n public void selectionChanged(SelectionChangedEvent event)\n {\n selection = listFormat.getSelection();\n if (selection instanceof IStructuredSelection)\n {\n IStructuredSelection stru = (IStructuredSelection) selection;\n\n // enable button delete\n buttonDelete.setEnabled(true);\n\n // Get the selection\n if (stru.getFirstElement() instanceof RecognizedElement)\n selectedRule = (RecognizedElement) stru.getFirstElement();\n }\n }\n });\n\n }",
"public List<WebPage> getSections(HttpSession session) {\r\n\t\tUtilHttpSession hos = new UtilHttpSession(session);\r\n\t\tUsers user = getUser(hos.getloggedUserId());\r\n\t\tif(user.getProfile().getUpId().equals(1)){\r\n\t\t\treturn getSections();\r\n\t\t}\r\n\t\telse{\r\n\t\t\tList<WebPage> sections = new ArrayList<WebPage>();\r\n\t\t\tSet<AProfilePages> app = user.getProfile().getAProfilePageses();\r\n\t\t\tfor (Iterator<AProfilePages> iterator = app.iterator(); iterator.hasNext();) {\r\n\t\t\t\tAProfilePages profilePages = (AProfilePages) iterator.next();\r\n\t\t\t\tif(profilePages.getWebPage().getPageType().equals(PageType.SECTION())){\r\n\t\t\t\t\tsections.add((Section)getSection(profilePages.getWebPage().getWpId()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn sections;\t\r\n\t\t}\r\n\t\t\r\n\t}",
"public Collection<TrackRailsSingleNodeElement> getSections(IntVector3 blockPos) {\n return new CollectionWrapper(blockPos);\n }",
"public Section getSection() {\n\treturn belongedSection.clone();\n }",
"@Test\n public void testSection() {\n \n Report instance = new Report();\n\n ArrayList<Section> section = new ArrayList<Section>();\n \n Section section1 = new Section();\n Section section2 = new Section();\n \n assertNotSame(section1, section2);\n\n /**************/\n /** Phase 1 **/\n /**************/\n // Test of getter\n assertEquals(section, instance.getSection());\n\n /**************/\n /** Phase 2 **/\n /**************/\n\n section.add(section1);\n section.add(section2);\n\n instance.setSection(section);\n\n // Test of setter\n assertEquals(section, instance.getSection());\n\n /**************/\n /** Phase 3 **/\n /**************/\n Report instance2 = new Report();\n\n instance2.addSection(section1);\n instance2.addSection(section2);\n\n assertEquals(section, instance.getSection());\n }",
"UnorderedListContent createUnorderedListContent();",
"public static ShoppingListSettings newInstance(int sectionNumber) {\n ShoppingListSettings fragment = new ShoppingListSettings();\n Bundle args = new Bundle();\n args.putInt(ARG_SECTION_NUMBER, sectionNumber);\n fragment.setArguments(args);\n return fragment;\n }",
"public JBaseSectionQuickAdapter(int layoutResId, int sectionHeadResId, List<T> data) {\n super(layoutResId, sectionHeadResId, data);\n }",
"void createdSection(TestResult tr, Section section);",
"private void createNewListSection() {\n\t\tImageIcon image10 = new ImageIcon(sURLFCL1);\n\t\tImageIcon image11 = new ImageIcon(sURLFCL2);\n\t\tImageIcon image12 = new ImageIcon(sURLFCL3);\n\t\tjbCreateLists = new JButton(\"New PlayList\");\n\t\tjbCreateLists.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbCreateLists.setForeground(new Color(150,100,100));\n\t\tjbCreateLists.setIcon(image10);\n\t\tjbCreateLists.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbCreateLists.setRolloverIcon(image11);\n\t\tjbCreateLists.setRolloverSelectedIcon(image12);\t\n\t\tjbCreateLists.setContentAreaFilled(false);\n\t\tjbCreateLists.setFocusable(false);\n\t\tjbCreateLists.setBorderPainted(false);\n\t}",
"@Override\n public Object[] getSections() {\n return sectionHeaders;\n }",
"public List<Section> findAll () throws DataAccessException;",
"@Kroll.getProperty\n\tpublic TableViewSectionProxy[] getSections()\n\t{\n\t\treturn this.sections.toArray(new TableViewSectionProxy[0]);\n\t}",
"public Section(SectionCreator sc, Document doc, String name, String contents, boolean autoLink) {\n super(NAME_FEATURE_NAME, sc);\n this.name = name;\n ord = doc.countSections();\n if (autoLink)\n \tdoc.addSection(this);\n this.document = doc;\n this.contents = contents;\n fileName = Strings.join(new String[] { document.getId(), Integer.toString(ord), name }, \"__\");\n addFeatures(sc.getConstantSectionFeatures());\n }",
"@Override\n\tpublic SectionDao GetSectionInstance() throws Exception {\n\t\treturn new SqliteSectionDaoImpl();\n\t}",
"@Override\n\t\tpublic Fragment getItem(int position) {\n\t\t\tFragment fragment = new SectionFragment(); \n\t\t\tBundle args = new Bundle();\n\t\t\targs.putInt(SectionFragment.ARG_SECTION_NUMBER, position + 1);\n\t\t\tfragment.setArguments(args);\n\t\t\t\n\t\t\t\n\t\t\treturn fragment;\n\t\t\t\n\t\t}",
"Sect1 createSect1();",
"public MySectionRecylcerViewAdapter(int layoutResId, int sectionHeadResId, List<MySection> data) {\n super(layoutResId, sectionHeadResId, data);\n }",
"@Override\r\n\tpublic List<Section> retrieveSectionByclassLevelId(Long classLevelId) {\n\t\treturn documentDAO.getSectionListByClassLevel(classLevelId);\r\n\t}",
"public ArrayList<HashMap<String, String>> getIniContent() {\n return this.sections;\n }",
"public StuList() {\r\n\t\t// todo\r\n\t}",
"public SectionAdapter(int layoutResId, int sectionHeadResId, List<SectionModel> data,View view,Context context) {\n super(layoutResId, sectionHeadResId, data);\n this.setEmptyView(view);\n mContext = context;\n }",
"public AdminContestListViewImp() {\n\t\tmyPanel = new JPanel();\n\t\tmyList = new ContestList();\t\n\t\t\n\t\tnewContestButton = new JButton(\"Create new contest\");\n\t\t\n\t\tmyPanel.setLayout(new BoxLayout(myPanel, BoxLayout.Y_AXIS));\n\t\t\n\t\tJPanel listContainerPanel = new JPanel();\n\t\tlistContainerPanel.setLayout(new BoxLayout(listContainerPanel, BoxLayout.Y_AXIS));\t\n\t\tlistContainerPanel.add(ContestList.getColumnTitleHeader());\n\t\tlistContainerPanel.add(new JScrollPane(myList));\n\t\t\n\t\tnewContestButton.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\tlistContainerPanel.setAlignmentX(Component.LEFT_ALIGNMENT);\n\t\t\n\t\tmyPanel.add(listContainerPanel);\n\t\tmyPanel.add(newContestButton);\n\t\t\n\t}",
"public static List<Section> getAllSections(int userId) {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Section> sections=(List)HibernateTemplate.getObjectListByQuery(\"From Section where userId=\" + userId);\r\n\t\treturn sections;\r\n\t}",
"public MultiList(){}",
"private View inflateSectionView(RecyclerView parent) {\n trace();\n return LayoutInflater.from(parent.getContext())\n .inflate(R.layout.app_list_section, parent, false);\n }",
"public static GroupList newInstance() {\n\t\tGroupList f = new GroupList();\n\t\tBundle b = new Bundle();\n\t\tf.setArguments(b);\n\t\treturn f;\n\t}",
"public TaskList() {\n this.listItems = new ArrayList<>();\n }",
"private JLabel createSection3() {\r\n\t\t\r\n\t\tJLabel section3 = new JLabel(\"How To Observe A Table\");\r\n\t\t//section1.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\t//section1.setVerticalAlignment(SwingConstants.TOP);\r\n\t\tsection3.setFont(new Font(\"DejaVu Sans\", Font.PLAIN, 15));\r\n\t\tsection3.setForeground(Color.WHITE);\r\n\t\t\r\n\t\t// open subsections when clicked\r\n\t\tsection3.addMouseListener(new ClickListener());\r\n\t\t\r\n\t\treturn section3;\r\n\t\t\r\n\t}",
"public List<Section> findByFilter (Section section, Pagination pagination) throws DataAccessException;",
"LI createLI();",
"Sect2 createSect2();",
"public ListItems() {\n itemList = new ArrayList();\n }",
"public NewsSection(final int number) {\n p = new FlowPanel();\n news = new ArrayList<>();\n HTML header = new HTML(\"<h2>Welcome to MindLevel</h2>\");\n final LoadingElement l = new LoadingElement();\n final SimplePanel currentNews = new SimplePanel();\n currentNews.add(l);\n header.addStyleName(\"news-header\");\n p.add(header);\n p.add(currentNews);\n pollNews(currentNews, number);\n\n // All composites must call initWidget() in their constructors.\n initWidget(p);\n\n // Give the overall composite a style name.\n setStyleName(\"news-section\");\n }",
"@Override\n public Fragment getItem(int position) {\n if (position == 0) {\n return new SectionFragment();\n } else if (position == 1) {\n return new SectionFragment();\n }\n else if (position == 2) {\n return new SectionFragment();\n }\n else if (position == 3) {\n return new SectionFragment();\n }\n\n return null;\n }",
"public Section getSectionByNum(int i) {\n\t\treturn sections.get(i-1);\n\t}",
"private static List<Article> createArticleList() {\n List<Article> articles = new ArrayList();\n articles.add(new Article(1l, \"Ball\", new Double(5.5), Type.TOY));\n articles.add(new Article(2l, \"Hammer\", new Double(250.0), Type.TOOL));\n articles.add(new Article(3l, \"Doll\", new Double(12.75), Type.TOY));\n return articles;\n }",
"public Library (){\r\n\t\tthis.inverntory = new List();\r\n\t}",
"ListItem createListItem();",
"private Lists() { }",
"Section(BufferedReader in) throws IOException, ReloadFault {\n String line = in.readLine();\n // find top of section and process it\n while (line != null) {\n if (line.startsWith(JTR_V2_SECTION)) {\n title = extractSlice(line, 0, \":\", null);\n break;\n } else\n // don't know what this line is, may be empty\n {\n line = in.readLine();\n }\n }\n\n if (title == null) {\n throw new ReloadFault(i18n, \"rslt.noSectionTitle\");\n }\n\n if (title.equals(MSG_SECTION_NAME)) {\n // use standard internal copy of string\n title = MSG_SECTION_NAME;\n }\n\n while ((line = in.readLine()).startsWith(JTR_V2_SECTSTREAM)) {\n OutputBuffer b = new FixedOutputBuffer(line, in);\n buffers = DynamicArray.append(buffers, b);\n }\n\n // if not in the message section, line should have the section result\n if (!Objects.equals(title, MSG_SECTION_NAME)) {\n if (line != null) {\n if (line.startsWith(JTR_V2_SECTRESULT)) {\n result = Status.parse(line.substring(JTR_V2_SECTRESULT.length()));\n } else {\n throw new ReloadFault(i18n, \"rslt.badLine\", line);\n }\n }\n if (result == null)\n // no test result\n {\n throw new ReloadFault(i18n, \"rslt.noSectionResult\");\n }\n }\n }",
"public native void appendSection(List<TableViewSection> sections) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso\n\t\t\t\t.appendSection(@com.emitrom.ti4j.mobile.client.ui.TableViewSection::fromList(Ljava/util/List;)(sections));\n }-*/;",
"public CategorizedList(Activity context, ListView listView, ArrayList<Tag> initialTags, List<Categories> topicsList) {\n this.context = context;\n this.listView = listView;\n sectionItemsWithHeaders = new ArrayList<Section>();\n this.initialTags = initialTags;\n this.topicsList = topicsList;\n }",
"public String getSectionName() {\n return mSectionName;\n }",
"public String getSectionName() {\n return mSectionName;\n }",
"private JLabel createSection4() {\r\n\t\t\r\n\t\tJLabel section4 = new JLabel(\"How To Create A Table\");\r\n\t\t//section1.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\t//section1.setVerticalAlignment(SwingConstants.TOP);\r\n\t\tsection4.setFont(new Font(\"DejaVu Sans\", Font.PLAIN, 15));\r\n\t\tsection4.setForeground(Color.WHITE);\r\n\t\t\r\n\t\t// open subsections when clicked\r\n\t\tsection4.addMouseListener(new ClickListener());\r\n\t\t\r\n\t\treturn section4;\r\n\t\t\r\n\t}",
"public list() {\r\n }",
"private void setupCourseList(){\n\t\tcourseList = new JList<>(listModel);\n\t\tcourseList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\t\tcourseList.setLayoutOrientation(JList.VERTICAL);\n\t\t\n\t\tJScrollPane scroller = new JScrollPane(courseList);\n\t\tscroller.setMaximumSize(new Dimension(400,300));\n\t\tadd(scroller);\n\t}",
"public interface SectionBuilder {\r\n\r\n\t/**\r\n\t * Generate the section.\r\n\t * \r\n\t * Note: If the section is not level 3 then entries may be used for the generation of the text\r\n\t * @return\r\n\t */\r\n\tpublic Section generate(Entry... entries);\r\n\t\r\n}",
"private JPanel getListPanel() {\n if (listPanel == null) {\n listPanel = new JPanel();\n listPanel.setLayout(new BorderLayout());\n listPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Entries\",\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n javax.swing.border.TitledBorder.DEFAULT_POSITION, null, null));\n listPanel.add(getScrollPane(), java.awt.BorderLayout.CENTER);\n listPanel.add(getViewPanel(), java.awt.BorderLayout.SOUTH);\n }\n\n return listPanel;\n }",
"public Vector getSection(String sectionName)\n {\n Vector v = (Vector)sections.get(sectionName.toUpperCase());\n if (v == null)\n {\n return new Vector();\n }\n\n return v;\n }",
"private JLabel createSection1() {\r\n\t\t\r\n\t\tJLabel section1 = new JLabel(\"How To Play Checkers\");\r\n\t\t//section1.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\t//section1.setVerticalAlignment(SwingConstants.TOP);\r\n\t\tsection1.setFont(new Font(\"DejaVu Sans\", Font.PLAIN, 15));\r\n\t\tsection1.setForeground(Color.WHITE);\r\n\t\t\r\n\t\t// open subsections when clicked\r\n\t\tsection1.addMouseListener(new ClickListener());\r\n\t\t\r\n\t\treturn section1;\r\n\t\t\r\n\t}",
"public static LibraryFragment newInstance(int sectionNumber) {\n LibraryFragment fragment = new LibraryFragment();\n Bundle args = new Bundle();\n return fragment;\n }",
"public static ItemFragment newInstance(int section_number){\n ItemFragment fragment = new ItemFragment();\n Bundle args = new Bundle();\n args.putInt(\"SECTION_NUMBER\",section_number);\n fragment.setArguments(args);\n return fragment;\n }",
"@Override\n public Object[] getSections () {\n return alphaIndexer.getSections();\n }",
"@Override\n\t\tpublic Object[] getSections()\n\t\t{\n\t\t\treturn mAlphabetIndexer.getSections();\n\t\t}",
"public static MessageList newInstance() {\n MessageList fragment = new MessageList();\n return fragment;\n }",
"public Section(String sectionName, int lineNumber) {\n\t\t\tthis.name = sectionName;\n\t\t\tthis.startLineNumber = lineNumber;\n\t\t}",
"private void inicializaListView(){\n }",
"private JLabel createSection2() {\r\n\t\t\r\n\t\tJLabel section2 = new JLabel(\"How To Join A Table\");\r\n\t\t//section1.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\t//section1.setVerticalAlignment(SwingConstants.TOP);\r\n\t\tsection2.setFont(new Font(\"DejaVu Sans\", Font.PLAIN, 15));\r\n\t\tsection2.setForeground(Color.WHITE);\r\n\t\t\r\n\t\t// open subsections when clicked\r\n\t\tsection2.addMouseListener(new ClickListener());\r\n\t\t\r\n\t\treturn section2;\r\n\t\t\r\n\t}",
"private TableViewSectionProxy getSectionByIndex(int index)\n\t{\n\t\treturn this.sections.get(index);\n\t}",
"public boolean isSectionMode ()\r\n {\r\n return sectionMode;\r\n }"
] | [
"0.7094614",
"0.67376655",
"0.6532659",
"0.6491683",
"0.63882744",
"0.63242245",
"0.62838364",
"0.62052083",
"0.61751074",
"0.614781",
"0.61355966",
"0.61091566",
"0.61013424",
"0.6066775",
"0.60392666",
"0.6010961",
"0.5973628",
"0.5930143",
"0.5926559",
"0.5863813",
"0.58052516",
"0.5783836",
"0.5751622",
"0.574555",
"0.572825",
"0.57193893",
"0.57193893",
"0.5704531",
"0.5664559",
"0.56578183",
"0.5639555",
"0.55937797",
"0.5575696",
"0.5572375",
"0.55341434",
"0.55297244",
"0.5497889",
"0.5471518",
"0.54628354",
"0.5456177",
"0.5455126",
"0.5437417",
"0.54308677",
"0.543001",
"0.5427949",
"0.54235137",
"0.5422996",
"0.5412098",
"0.53892773",
"0.53742456",
"0.53625727",
"0.53557014",
"0.5353435",
"0.53518486",
"0.5344885",
"0.53360564",
"0.53035223",
"0.52694404",
"0.5268947",
"0.52624077",
"0.52423453",
"0.5237407",
"0.52344984",
"0.52218205",
"0.52202547",
"0.52109087",
"0.51874506",
"0.51825064",
"0.51708543",
"0.51642394",
"0.51563656",
"0.51476216",
"0.51448566",
"0.514476",
"0.5138244",
"0.5136584",
"0.5135373",
"0.51234275",
"0.5104707",
"0.51046634",
"0.50986713",
"0.50974685",
"0.50974685",
"0.50831676",
"0.5076824",
"0.5067163",
"0.50624067",
"0.5056081",
"0.5052425",
"0.5051466",
"0.5040193",
"0.5031107",
"0.5019912",
"0.5011097",
"0.5004415",
"0.5003898",
"0.5003507",
"0.49980474",
"0.49880582",
"0.49815807"
] | 0.86804295 | 0 |
Returns a new object of class 'Margin'. | Margin createMargin(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ScreenPt getWcsMargins() { return new ScreenPt(wcsMarginX,wcsMarginY); }",
"public BoundingBox3d margin(float margin) {\n BoundingBox3d b = new BoundingBox3d();\n b.xmax = xmax + margin;\n b.xmin = xmin - margin;\n b.ymax = ymax + margin;\n b.ymin = ymin - margin;\n b.zmax = zmax + margin;\n b.zmin = zmin - margin;\n return b;\n }",
"public void setMargin(int margin) {\n mMarginPx = margin;\n }",
"default Integer getHorizontalMargin() {\n return null;\n }",
"double getHeaderMargin();",
"default Integer getVerticalMargin() {\n return null;\n }",
"public long getMarginAmount() {\n\t\treturn marginAmount;\n\t}",
"public @NonNull Margins getMinMargins() {\n return mMinMargins;\n }",
"void setMargin(float horizontalMargin, float verticalMargin) {\n mTn.mHorizontalMargin = horizontalMargin;\n mTn.mVerticalMargin = verticalMargin;\n }",
"public int getPictureMargin() {\n return pictureMargin;\n }",
"private void setMarginLayout(View view, int x, int y) {\n MarginLayoutParams margin = new MarginLayoutParams(view.getLayoutParams());\n margin.setMargins(x, y, 0, 0);\n LayoutParams layoutParams = new LayoutParams(margin);\n view.setLayoutParams(layoutParams);\n }",
"double getFooterMargin();",
"public static Insets getMargin(Node child) {\n return FlowPane.getMargin(child);\n }",
"public float getMargin() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 28);\n\t\t}\n\t}",
"public void createMarginGraph()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tint woGraphPoints;\n\t\tString sGraphTitle;\n\t\tString sLeftTitle; \n\n\t\tint noOfRows = itemset0.countRows(); \n\t\tmarginGraphInNewWind = false;\n\t\tint wono = sWorkOrderNoTree;\n\n\t\tString[] woCostType = new String[noOfRows]; \n\t\tdouble[] woMargin = new double[noOfRows];\n\t\tdouble[] structureMargin = new double[noOfRows];\n\n\t\titemset0.first();\n\n\t\tfor (int i = 0; i < noOfRows; i++)\n\t\t{\n\t\t\twoMargin[i] = itemset0.getRow().getNumberValue(\"NACCUMULATEDRESULTSINGLE\");\n\t\t\twoCostType[i] = itemset0.getRow().getValue(\"SWOCOSTTYPE\");\n\t\t\tstructureMargin[i] = itemset0.getRow().getNumberValue(\"NACCUMULATEDRESULT\");\n\n\t\t\titemset0.forward(1);\n\t\t}\n\n\t\twoGraphPoints = 6;\n\n\t\tfor (int i = 0 ; i < noOfRows; i++)\n\t\t{\n\t\t\tif (woMargin[i]>0 || structureMargin[i]>0)\n\t\t\t\tgraphflagWo = 1;\n\t\t}\n\n\t\tsGraphTitle = mgr.translate(\"PCMWWORKORDERCOSTTABLESMWOMARTITLE: Work Order Profit Margin\");\n\t\tsLeftTitle = mgr.translate(\"PCMWWORKORDERCOSTTABLESMAMOUNTTR: Amount\");\n\n\t\tmarginGraphInNewWind = true;\n\n\t\tdrawGraphPic(wono,sGraphTitle,sLeftTitle,noOfRows,woCostType,woMargin,structureMargin);\n\n\t}",
"float getHorizontalMargin() {\n return mTn.mHorizontalMargin;\n }",
"public boolean hasMargins() {\n return true;\n }",
"public LayoutParams(@NotNull ViewGroup.MarginLayoutParams marginLayoutParams) {\n super(marginLayoutParams);\n Intrinsics.checkNotNullParameter(marginLayoutParams, \"source\");\n if (marginLayoutParams instanceof LayoutParams) {\n this.a = ((LayoutParams) marginLayoutParams).a;\n }\n }",
"public int getMarginBottom()\n {\n return marginBottom;\n }",
"void setHeaderMargin(double headermargin);",
"public ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) {\n return new ViewGroup.MarginLayoutParams(lp);\n }",
"private void setContainerMargins(int margin) {\n ((RelativeLayout.LayoutParams) mContainer.getLayoutParams()).setMargins(\n margin,\n margin + (mLegend.getMeasuredHeight() - mBackground.getBorder_width()) / 2,\n margin,\n margin + (mLegend.getMeasuredHeight() - mBackground.getBorder_width()) / 2);\n }",
"public void setMarginTop( int marginTop )\n {\n this.marginTop = marginTop;\n }",
"private double getMargin(List<Integer> range) {\n if (range.size() < 2) return fallbackMargin;\n return getMarginFromBounds(range.get(0), range.get(1));\n }",
"public BubbleTransformation(final int margin) {\n this.margin = margin;\n }",
"public ViewGroup.LayoutParams generateDefaultLayoutParams() {\r\n return new ViewGroup.MarginLayoutParams(-1, -2);\r\n }",
"public void setMarginLeft( int marginLeft )\n {\n this.marginLeft = marginLeft;\n }",
"public @NonNull Builder setMinMargins(@NonNull Margins margins) {\n if (margins == null) {\n throw new IllegalArgumentException(\"margins cannot be null\");\n }\n mPrototype.mMinMargins = margins;\n return this;\n }",
"public void setPictureMargin(int pictureMargin) {\n this.pictureMargin = pictureMargin;\n }",
"public int getHorizontalMargin() {\n return mLayoutManager.getHorizontalMargin();\n }",
"float getVerticalMargin() {\n return mTn.mVerticalMargin;\n }",
"private void initMargins() {\n // Margin Left\n JPanel marginLeft = new JPanel(new BorderLayout());\n marginLeft.setBackground(Resources.getLogoColor());\n marginLeft.setMinimumSize(new Dimension(10, 400));\n marginLeft.setPreferredSize(new Dimension(10, 400));\n getContentPane().add(marginLeft, BorderLayout.WEST);\n // Margin Right\n JPanel marginRight = new JPanel(new BorderLayout());\n marginRight.setBackground(Resources.getLogoColor());\n marginRight.setMinimumSize(new Dimension(10, 400));\n marginRight.setPreferredSize(new Dimension(10, 400));\n getContentPane().add(marginRight, BorderLayout.EAST);\n }",
"protected int[] getDefaultCmargins() {\n\t\treturn new int[] { 3, 3, 3, 3 };\n\t}",
"Insets calculateInsets ()\n {\n\treturn new Insets (topBorder + menuBarHeight, leftBorder, bottomBorder, rightBorder);\n }",
"public static void setMargin(Node child, Insets value) {\n FlowPane.setMargin(child, value);\n }",
"Border createBorder();",
"void setFooterMargin(double footermargin);",
"public void setItemMargin(int margin) {\n mLayoutManager.setItemMargin(margin);\n requestLayout();\n }",
"public void setMargin(float margin) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 28, margin);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 28, margin);\n\t\t}\n\t}",
"public void setMarginBottom( int marginBottom )\n {\n this.marginBottom = marginBottom;\n }",
"public ControlSpacer(int width, int height)\n {\n myWidth = width;\n myHeight = height;\n }",
"private int maxTopMargin() {\n return 0;\n }",
"public int getVerticalMargin() {\n return mLayoutManager.getVerticalMargin();\n }",
"public CwmDimensionedObject createCwmDimensionedObject();",
"public Margin userGetMargin(String currency) throws ApiException {\n Object localVarPostBody = null;\n \n // create path and map variables\n String localVarPath = \"/user/margin\".replaceAll(\"\\\\{format\\\\}\",\"json\");\n\n // query params\n List<Pair> localVarQueryParams = new ArrayList<Pair>();\n Map<String, String> localVarHeaderParams = new HashMap<String, String>();\n Map<String, Object> localVarFormParams = new HashMap<String, Object>();\n\n localVarQueryParams.addAll(apiClient.parameterToPairs(\"\", \"currency\", currency));\n\n \n \n final String[] localVarAccepts = {\n \"application/json\", \"application/xml\", \"text/xml\", \"application/javascript\", \"text/javascript\"\n };\n final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);\n\n final String[] localVarContentTypes = {\n \"application/json\", \"application/x-www-form-urlencoded\"\n };\n final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);\n\n String[] localVarAuthNames = new String[] { };\n\n GenericType<Margin> localVarReturnType = new GenericType<Margin>() {};\n return apiClient.invokeAPI(localVarPath, \"GET\", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);\n }",
"public int getThickness() {\r\n return Thickness;\r\n }",
"public void setMarginAmount(long marginAmount) {\n\t\tthis.marginAmount = marginAmount;\n\t}",
"@BindingAdapter({\"layout_marginTop\"})\n public static void setmarginTop(View view, int marginTop) {\n\n ViewGroup.MarginLayoutParams marginParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();\n\n marginParams.setMargins(marginParams.leftMargin,\n Math.round(marginTop * view.getContext().getResources().getDisplayMetrics().density),\n marginParams.rightMargin,\n marginParams.bottomMargin);\n }",
"public CalcLayout(int gap) {\n\t\tconstrains = new ArrayList<>();\n\t\tthis.gap = gap;\n\t}",
"public void setItemMargin(final int marginPixels) {\n final boolean needsPopulate = marginPixels != mItemMargin;\n mItemMargin = marginPixels;\n if (needsPopulate) {\n populate();\n }\n }",
"@Override\n public Configurable hasMargins(boolean hasMargins) {\n if (!hasMargins) {\n setListMargins(0, 0, 0, 0);\n }\n return this;\n }",
"private double getMarginFromBounds(int lowerBound, int upperBound) {\n return (upperBound - lowerBound) / 2.0;\n }",
"public ControlSpacer(Dimension dimension)\n {\n myWidth = (int)dimension.getWidth();\n myHeight = (int)dimension.getHeight();\n }",
"@CheckReturnValue\n public R1Interval expanded(double margin) {\n if (isEmpty()) {\n return this;\n }\n return new R1Interval(lo - margin, hi + margin);\n }",
"public Insets getInsets() {\n\t\t\tint k = ringOpacities.length;\n\t\t\treturn new Insets(k, k, k, k);\n\t\t}",
"public Canvas canvas() {\n Canvas canvas = new Canvas(getLowerBound(), getUpperBound());\n canvas.add(this);\n return canvas;\n }",
"@Override\n public Vector3 getLocalSupportPointWithMargin(Vector3 direction, Vector3 supportPoint) {\n\n // Compute the support point without the margin\n getLocalSupportPointWithoutMargin(direction, supportPoint);\n\n // Add the margin to the support point\n Vector3 unitDirection = new Vector3(0.0f, -1.0f, 0.0f);\n if (direction.lengthSquare() >= Defaults.MACHINE_EPSILON * Defaults.MACHINE_EPSILON) {\n unitDirection.set(direction).normalize();\n }\n\n return supportPoint.add(unitDirection.multiply(margin));\n }",
"public Insets getBorderInsets(Component c) {\n return new Insets(m_h, m_w, m_h, m_w);\n }",
"@Test\n\tpublic void testTOutOfBoundsLeftMargin3() {\n\t\ttank.setX(182);\n\t\tassertEquals(true, tank.isWithinMarginsLeft());\n\t}",
"public void setHorizontalMargin(int margin) {\n mLayoutManager.setHorizontalMargin(margin);\n requestLayout();\n }",
"Padding createPadding();",
"public MainViews(Context context) {\n this.context = context;\n layoutParams =new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);\n layoutParams.setMargins(0,0,0,5);\n }",
"public Mspace(final String qname, final AbstractDocument odoc) {\n super(qname, odoc);\n\n this.setDefaultMathAttribute(Mspace.ATTR_DEPTH, Constants.ZERO);\n this.setDefaultMathAttribute(Mspace.ATTR_HEIGHT, Constants.ZERO);\n this.setDefaultMathAttribute(Mspace.ATTR_WIDTH, Constants.ZERO);\n this.setDefaultMathAttribute(Mspace.ATTR_LINEBREAK, \"auto\");\n }",
"public int getAlienTradeMargin() {\n return alienTradeMargin;\n }",
"private int getChildMargin(final View child) {\n return (int)(child.getMeasuredHeight() * (ITEM_VERTICAL_SPACE - 1) / 2);\n }",
"protected Limit getLimit() {\n return new Limit(skip, limit);\n }",
"public Insets getInsets();",
"public void setMargins(View v, double l, double t, double r, double b) {\n if (v.getLayoutParams() instanceof ViewGroup.MarginLayoutParams) {\n ViewGroup.MarginLayoutParams p = (ViewGroup.MarginLayoutParams) v\n .getLayoutParams();\n final float scale = this.getResources().getDisplayMetrics().density;\n int lpx = (int) ((appsingleton.devicewidth) * l);\n int tpx = (int) ((appsingleton.deviceheight) * t);\n int rpx = (int) ((appsingleton.devicewidth) * r);\n int bpx = (int) ((appsingleton.deviceheight) * b);\n p.setMargins(lpx, tpx, rpx, bpx);\n v.requestLayout();\n }\n }",
"public CssBorderWidth() {\n }",
"public C0813p mo3838a(LayoutParams layoutParams) {\n if (layoutParams instanceof MarginLayoutParams) {\n return new C0780b((MarginLayoutParams) layoutParams);\n }\n return new C0780b(layoutParams);\n }",
"private int minTopMargin() {\n return -(mHeaderHeight + mFooterHeight);\n }",
"@Override // android.view.ViewGroup\n public ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {\n if (layoutParams instanceof C17366a) {\n return new C17366a((C17366a) layoutParams);\n }\n if (layoutParams instanceof ViewGroup.MarginLayoutParams) {\n return new C17366a((ViewGroup.MarginLayoutParams) layoutParams);\n }\n return new C17366a(layoutParams);\n }",
"public void setMarginFraction(double marginFraction) {\n if(marginFraction >= 0.5d) {\n throw new IllegalArgumentException(\"The margin fraction must be less than 0.5\");\n }\n this.marginFraction = marginFraction;\n }",
"@Test\n\tpublic void testTOutOfBoundsLeftMargin1() {\n\t\ttank.setX(100);\n\t\tassertEquals(false, tank.isWithinMarginsLeft());\n\t}",
"protected Drawing createDrawing() {\n return new StandardDrawing();\n }",
"public void setVerticalMargin(int margin) {\n mLayoutManager.setVerticalMargin(margin);\n requestLayout();\n }",
"public void measureChildWithMargins(View view, int i, int i2, int i3, int i4) {\n int indexOfChild = indexOfChild(view);\n int orientation = getOrientation();\n LayoutParams layoutParams = (LayoutParams) view.getLayoutParams();\n if (hasDividerBeforeChildAt(indexOfChild)) {\n if (orientation == 1) {\n layoutParams.topMargin = this.d;\n } else {\n layoutParams.leftMargin = this.c;\n }\n }\n int childCount = getChildCount();\n if (indexOfChild == childCount - 1 && hasDividerBeforeChildAt(childCount)) {\n if (orientation == 1) {\n layoutParams.bottomMargin = this.d;\n } else {\n layoutParams.rightMargin = this.c;\n }\n }\n super.measureChildWithMargins(view, i, i2, i3, i4);\n }",
"public Object createObject(XMLControl control) {\n return new OffsetOrigin();\n }",
"private Pane createSpacer(){\n Pane spacer = new Pane();\n HBox.setHgrow(\n spacer,\n Priority.SOMETIMES\n );\n return spacer;\n }",
"public Graph1 pad () { return new Graph1Pad (C,this); }",
"Para createPara();",
"private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSettings();\n\t\tprintSettings.addNewHeaderFooter();\n\n\t\tCTPageMargins pageMargins = printSettings.addNewPageMargins();\n\t\tpageMargins.setB(0.75);\n\t\tpageMargins.setL(0.70);\n\t\tpageMargins.setR(0.70);\n\t\tpageMargins.setT(0.75);\n\t\tpageMargins.setHeader(0.30);\n\t\tpageMargins.setFooter(0.30);\n\t\tprintSettings.addNewPageSetup();\n\t}",
"protected a generateDefaultLayoutParams() {\n return new a();\n }",
"private VBox vboxFormat() {\n VBox vbox = new VBox();\n // vbox.setAlignment(Pos.BASELINE_CENTER);\n vbox.setSpacing(10);\n vbox.setPadding(new Insets(20, 20, 20, 20));\n return vbox;\n }",
"QuoteAdjustment createQuoteAdjustment();",
"private Result() {\n\t\t\n\t\tsuper(8);\n\t\t\n\t\tthis.setStyle(\"-fx-background-color: #5F9EA0;\");\n\t\tthis.setPadding(new Insets(10, 100, 10, 100));\n\t\tthis.setAlignment(Pos.CENTER);\n\t\t\n\t}",
"MoneyParseContext createChild() {\r\n return new MoneyParseContext(locale, text, textIndex, textErrorIndex, currency, amount);\r\n }",
"public float getThickness(){\n return thickness;\n }",
"@Test\n\tpublic void testCombustionStructuralMarginsOldStyle() {\n\t\t\n\t\tOldStyleCarFactory factory = new OldStyleCarFactory() {\n\t\t\t@Override\n\t\t\tpublic Car createPremiumCombustionCar() {\n\t\t\t\tCombustionEngine engine = new MockCombustionEngine();\n\t\t\t\tInternalCombustionCar car = new InternalCombustionCar(engine);\n\t\t\t\treturn car;\n\t\t\t}\n\t\t};\n\t\t\n\t\tCar testCar = factory.createPremiumCombustionCar();\n\t\ttestCar.start();\n\t\tassertTrue(testCar.isRunning());\n\t\ttestCar.stop();\n\t\tassertFalse(testCar.isRunning());\n\t\t\n\t}",
"public final void mo68345a() {\n MarginLayoutParams marginLayoutParams = (MarginLayoutParams) this.f70292i.getLayoutParams();\n marginLayoutParams.leftMargin = (int) C9738o.m28708b(this.f70272a, 0.0f);\n this.f70292i.setLayoutParams(marginLayoutParams);\n m87592f(false);\n }",
"public int getComponentLabelMargin() {\n\t\treturn componentLabelMargin;\n\t}",
"public void setDividerMargin(float dividerMargin) {\n if(dividerMargin < 0){\n throw new IllegalArgumentException(\"margin can not be under zero\");\n }\n this.mDividerMargin = dividerMargin;\n invalidate();\n }",
"@Test\n\tpublic void testTOutOfBoundsLeftMargin2() {\n\t\ttank.setX(180);\n\t\tassertEquals(false, tank.isWithinMarginsLeft());\n\t}",
"public C0813p mo3884c() {\n return new C0813p(-2, -2);\n }",
"public final View cpr() {\n AppMethodBeat.m2504i(37041);\n FrameLayout frameLayout = new FrameLayout(this.context);\n AppMethodBeat.m2505o(37041);\n return frameLayout;\n }",
"public TextController createContainerBounds(ControllerCore genCode) {\n\t\tcontainerBoundsTXT = new TextController(\"containerBounds\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(containerBounds$1LBL);\n\t\t\t\tsetProperty(\"containerBounds\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn containerBoundsTXT;\n\t}",
"public ConstRect()\r\n {\r\n x = 0;\r\n y = 0;\r\n width = 0;\r\n height = 0;\r\n }",
"public Category newCategory() {\n\t\tCategory page = new Category();\r\n\t\tpage.setWpPublished(DateUtils.now());\r\n\t\tpage.setWpWeight(0);\r\n\t\treturn page;\r\n\t}",
"public ViewInsets getInsets() {\n return null;\n }",
"public RoundedTransformation(final int radius, final int margin) {\n this.radius = radius;\n this.margin = margin;\n }"
] | [
"0.63350874",
"0.61286604",
"0.6119576",
"0.6041808",
"0.5961002",
"0.5913763",
"0.5905285",
"0.56992364",
"0.55905",
"0.55597",
"0.5550048",
"0.5549005",
"0.5502992",
"0.54778636",
"0.54744774",
"0.5460653",
"0.54059136",
"0.53948647",
"0.53911954",
"0.53703684",
"0.53556687",
"0.53294045",
"0.5315228",
"0.53142667",
"0.52444965",
"0.52427727",
"0.5232786",
"0.5201762",
"0.5178295",
"0.517697",
"0.51694876",
"0.5155723",
"0.51195794",
"0.5083963",
"0.50748503",
"0.50565135",
"0.5039811",
"0.5034069",
"0.49820524",
"0.4960348",
"0.49382588",
"0.49265394",
"0.4925967",
"0.49225992",
"0.48608553",
"0.4854234",
"0.48518735",
"0.4850308",
"0.48372966",
"0.4817366",
"0.4764111",
"0.47154182",
"0.4704053",
"0.4696733",
"0.46900928",
"0.4668785",
"0.46622387",
"0.46348625",
"0.4631136",
"0.46306634",
"0.46197784",
"0.4613747",
"0.46079063",
"0.46060047",
"0.45901197",
"0.4585152",
"0.4570624",
"0.455547",
"0.45531148",
"0.4543603",
"0.4542508",
"0.45411974",
"0.45346034",
"0.45342186",
"0.45278764",
"0.45261475",
"0.45233253",
"0.45181713",
"0.44967097",
"0.4495815",
"0.44885868",
"0.44866624",
"0.44833553",
"0.4482645",
"0.446638",
"0.4459518",
"0.44535705",
"0.4437437",
"0.44364473",
"0.44264156",
"0.44253424",
"0.44214016",
"0.44140506",
"0.44095668",
"0.4387357",
"0.43783158",
"0.43776202",
"0.4369364",
"0.43599474",
"0.4353517"
] | 0.8479865 | 0 |
Returns a new object of class 'Array'. | Array createArray(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object createArray(int capacity);",
"Array() {\n\t\tarray = new int[0];\n\t}",
"ArrayADT() {\n this.size = 10;\n this.base = createArrayInstance(this.size);\n this.length = 0;\n }",
"public MyArray() {\n this.length = 10;\n this.array = (T[]) Array.newInstance(MyArray.class, length);\n this.size = 0;\n }",
"public Array()\n {\n assert DEFAULT_CAPACITY > 0;\n\n array = new Object[DEFAULT_CAPACITY];\n }",
"private RubyArray(Ruby runtime, boolean objectSpace) {\n super(runtime, runtime.getArray(), objectSpace);\n }",
"public Array(int capacity)\n {\n array = new Object[capacity];\n }",
"public DynamicArray(){\n\t \n\t array = (E[]) new Object[dim];\n }",
"private RubyArray(Ruby runtime, RubyClass klass, int length) {\n super(runtime, klass);\n values = new IRubyObject[length];\n }",
"public ArrayAccessor() {\r\n super(\"<array>\");\r\n }",
"public RubyArray(Ruby ruby) {\n \t\tthis(ruby, new ArrayList());\n \t}",
"protected Object[] getArray(){\r\n\t \treturn array;\r\n\t }",
"ArrayValue createArrayValue();",
"private RubyArray(Ruby runtime, long length) {\n super(runtime, runtime.getArray());\n checkLength(length);\n values = new IRubyObject[(int)length];\n }",
"public a[] newArray(int i) {\n return new a[i];\n }",
"public Item[] newArray(int size) {\n return new Item[size]; \n }",
"public ExpandableArray() {\n\n\t}",
"default Object[] toArray() {\n return toArray(new Object[0]);\n }",
"public DynamicArray() {\n this(16);\n }",
"public ArrayContainer() {\n this(DEFAULT_CAPACITY);\n }",
"@Override\n public T[] toArray() {\n T[] result = (T[])new Object[numItems];\n for(int i = 0; i < numItems; i++)\n result[i] = arr[i];\n return result;\n }",
"public static ArrayQueueADT create() {\n return new ArrayQueueADT();\n }",
"public Object getArray() {\n\t\treturn array;\n\t}",
"public SuperArray() { \n \t_data = new Comparable[10];\n \t_lastPos = -1; //flag to indicate no lastpos yet\n \t_size = 0;\t\n }",
"public static RubyArray newArray(Ruby ruby, long len) {\n \t\treturn new RubyArray(ruby, new ArrayList((int) len));\n \t}",
"public MyArray() {\n\t\tcapacity = DEFAULT_CAPACITY;\n\t\tnumElements = 0;\n\t\telements = (E[]) new Object[capacity];\n\t}",
"Array(int[] n) {\n\t\tarray = n;\n\t}",
"public Object[] toArray() {\n\t\tObject[] ret = new Object[currentSize];\n\t\tfor (int i = 0; i < currentSize; i++)\n\t\t\tret[i] = array[i];\n\t\treturn ret;\n\t}",
"private ArrayOps() {\r\n }",
"public ClassType[] getArray(){\n\t\t\tClassType[] temp = new ClassType[count];\n\t\t\tfor (int i = 0; i < count; i++){\n\t\t\t\ttemp[i] = new ClassType(anArray[i]);\n\t\t\t}\n\t\t\treturn temp;\n\t\t}",
"public MyArray(int size) {\n this.length = size;\n this.array = (T[]) Array.newInstance(MyArray.class, length);\n this.size = 0;\n }",
"@Override\n public Object[] toArray() {\n Object[] result = new Object[currentSize];\n System.arraycopy(container, 0, result, 0, currentSize);\n return result;\n }",
"public static void arrayCreation() {\n int[] arr = new int[3];\n // as we are using new operator and that is how we create objects hence arrays\n // are called objects\n // every array in java is an object\n System.out.println(arr.getClass()\n .getSimpleName()); // int[]\n System.out.println(arr.getClass()\n .getName()); // [I\n\n int[] a1 = new int[3];\n int[][] a2 = new int[3][3];\n double[] a3 = new double[3];\n short[] a4 = new short[3];\n byte[] a5 = new byte[3];\n boolean[] a6 = new boolean[3];\n long[] a7 = new long[3];\n float[] a8 = new float[3];\n Integer[] a9 = new Integer[3];\n\n System.out.println(a1.getClass()\n .getName()); // [I\n System.out.println(a2.getClass()\n .getName()); // [[I\n System.out.println(a3.getClass()\n .getName()); // [D\n System.out.println(a4.getClass()\n .getName()); // [S\n System.out.println(a5.getClass()\n .getName()); // [B\n System.out.println(a6.getClass()\n .getName()); // [Z\n System.out.println(a7.getClass()\n .getName()); // [J\n System.out.println(a8.getClass()\n .getName()); // [F\n System.out.println(a9.getClass()\n .getName()); // [Ljava.lang.Integer;\n\n // at the time of the array initialization we should compulsory specify the size\n // new int[3] we should specify the size else it will lead to compilation error\n\n // It is legal to have size zero in java\n int[] a = new int[0];\n System.out.println(a);\n\n }",
"public Object[] toArray() {\n\n return toArray(new Object[size()]);\n }",
"public o0000o000o[] newArray(int i) {\n return new o0000o000o[i];\n }",
"@Override\n public T[] toArray() {\n return (T[]) array;\n }",
"public o000000ooo[] newArray(int i) {\n return new o000000ooo[i];\n }",
"public T[] toArray() {\n return null;\n }",
"public default T[] toArray() {\n Object[] array = new Object[size()];\n int i = 0;\n for (T t : this) {\n array[i++] = t;\n }\n return (T[]) array;\n }",
"@Override\n public T[] toArray() {\n return this.copyArray(this.data, this.size);\n }",
"@Override\n public Element[] newArray(int size) {\n return new Element[size];\n }",
"public final Object[] getArray() {\n return array;\n }",
"public CircularQueueUsingArray() {\n\t\tarray = new int[size];\n\t}",
"public static AsonValue CreateRootArray() {\n return CreateRootArray(null);\n }",
"private RubyArray(Ruby runtime, IRubyObject[] vals, boolean objectSpace) {\n super(runtime, runtime.getArray(), objectSpace);\n values = vals;\n realLength = vals.length;\n }",
"public ObjectArrayTemplateElement()\n {\n super(Object[].class, obj -> {\n if (obj instanceof Collection)\n {\n return ((Collection) obj).toArray();\n }\n throw new UnsupportedOperationException(\"Can't convert object (\" + obj.getClass().getName() + \") to Object[]: \" + obj);\n }, Collection.class::isAssignableFrom);\n }",
"public Object[] toArray() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n\tpublic Object[] toArray() {\n\t\tObject[] result = copyArray(elements, size);\n\n\t\treturn result;\n\t}",
"public OrderedSuperArray(){\n\tsuper();\n }",
"public ZYArraySet(){\n elements = (ElementType[])new Object[DEFAULT_INIT_LENGTH];\n }",
"public Object[] toArray() {\n\t\treturn null;\n\t}",
"public Object[] getArray() {\n compress();\n return O;\n }",
"public Object[] toArray() {\n Object[] tmp = new Object[this.container.length];\n System.arraycopy(this.container, 0, tmp, 0, tmp.length);\n return tmp;\n }",
"public CircularArray() {\n\t\tthis(DEFAULT_SIZE);\n\t}",
"ArrayTypeRule createArrayTypeRule();",
"@SuppressWarnings(\"unchecked\")\r\n \tprivate Entry<K,V>[] newArray(int length) {\r\n \treturn new Entry[length];\r\n }",
"public ArrayAccess()\r\n {\r\n }",
"@SuppressWarnings(\"unchecked\")\n private T[] createArray(int size) {\n return (T[]) Array.newInstance(type, size);\n }",
"Object[] toArray();",
"Object[] toArray();",
"Object[] toArray();",
"public GenericDynamicArray() {this(11);}",
"private RubyArray(Ruby runtime, IRubyObject[] vals) {\n super(runtime, runtime.getArray());\n values = vals;\n realLength = vals.length;\n }",
"public FancyArray(Object[] arr) {\r\n\t\t/*\r\n\t\t * Statt eines Konstruktors der Oberklasse kann ich auch\r\n\t\t * einen anderen Konstruktor der Klasse selbst aufrufen!\r\n\t\t * \r\n\t\t * Auch dazu benutzen wir das Schlüsselwort this,\r\n\t\t * so rufen wir den parameterlosen Konstruktor auf -\r\n\t\t * so kann ich auch Konstruktoren der gleichen Klasse verketten\r\n\t\t */\r\n\t\tthis();\r\n\t\t//nach dem Aufruf wird dieser Konstruktor weiter ausgeführt:\r\n\t\taddAll(arr);\r\n\t}",
"T[] toArray(T[] a);",
"public void testCreateArray() {\n System.out.println(\"createArray\");// NOI18N\n \n TypeID type = new TypeID(TypeID.Kind.PRIMITIVE, \"javacode\");// NOI18N\n PrimitiveDescriptor arrayDescriptor = new PrimitiveDescriptor() {\n public Object deserialize(String serialized) {\n return \"array\"; //NOI18N\n }\n public boolean isValidInstance(Object object) {\n return true;\n }\n public String serialize(Object value) {\n return \"array\"; // NOI18N\n }\n };\n \n PropertyValue arrayPropertyValue = PropertyValue.createValue( arrayDescriptor, type, DesignComponentTest.PROPERTY3_VALUE_STRING);// NOI18N\n List<PropertyValue> array = new ArrayList();\n array.add(arrayPropertyValue);\n \n PropertyValue result = PropertyValue.createArray(type, array);\n \n assertEquals(PropertyValue.Kind.ARRAY, result.getKind());\n type = type.getArrayType();\n assertEquals(type,result.getType());\n assertNotNull(result.getArray());\n }",
"public byte[] array()\r\n/* 127: */ {\r\n/* 128:156 */ ensureAccessible();\r\n/* 129:157 */ return this.array;\r\n/* 130: */ }",
"public static <T> T[] createArray (T... args) {\n\tif (args == null) { return (T[]) new Object[0]; };\n\treturn args;\n }",
"public cf[] newArray(int i) {\n return new cf[i];\n }",
"@Override\n public Object[] toArray() {\n Object[] result = new Object[size];\n int i = 0;\n for (E e : this) {\n result[i++] = e;\n }\n return result;\n }",
"@Override\n public T[] toArray() {\n //create the return array\n T[] result = (T[])new Object[this.getSize()];\n //make a count variable to move through the array and a reference\n //to the first node\n int index = 0;\n Node n = first;\n //copy the node data to the array\n while(n != null){\n result[index++] = n.value;\n n = n.next;\n }\n return result;\n }",
"@Override\n\t\tpublic <T> T[] toArray(T[] a) {\n\t\t\treturn null;\n\t\t}",
"@Override\r\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\r\n\t}",
"public static ObjectInstance getBasicTypeArraysObjectInstance()\n {\n ObjectName o = null;\n try\n {\n Hashtable<String, String> properties = new Hashtable<String, String>(\n 1);\n properties.put(\"theLabel\", getBasicTypeArraysMBean().getTheLabel());\n o = new ObjectName(_domain, properties);\n }\n catch (Exception e)\n {\n Assert\n .fail(\"Creation of 'BasicTypeArrays' ObjectInstance could not be created. \"\n + e.getMessage());\n }\n return new ObjectInstance(o, new BasicTypeArrays().getClass().getName());\n }",
"Exp getArrayExp();",
"public <T> T[] toArray(T[] arr);",
"@Override\n public Object[] toArray() {\n return Arrays.copyOf(data, size);\n }",
"public Object[] toArray() {\n Object[] arr = new Object[size];\n for(int i = 0; i < this.size; i++) {\n arr[i] = this.get(i);\n }\n return arr;\n }",
"public f[] newArray(int i) {\r\n return new f[i];\r\n }",
"public JSONArray() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic <T> T[] toArray(T[] a) {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public MutableArray(ARRAY paramARRAY, int paramInt, CustomDatumFactory paramCustomDatumFactory)\n/* */ {\n/* 155 */ this.length = -1;\n/* 156 */ this.elements = null;\n/* 157 */ this.datums = null;\n/* 158 */ this.pickled = paramARRAY;\n/* 159 */ this.pickledCorrect = true;\n/* 160 */ this.sqlType = paramInt;\n/* 161 */ this.old_factory = paramCustomDatumFactory;\n/* 162 */ this.isNChar = false;\n/* */ }",
"public MyArray(int capacity) {\n\t\tthis.capacity = capacity;\n\t\tnumElements = 0;\n\t\telements = (E[]) new Object[capacity];\n\t}",
"@Override\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn null;\n\t}",
"ArrayMixedObject getArray() {\n\t\treturn array;\n\t}",
"private RubyArray(Ruby runtime, IRubyObject[] vals, int begin) {\n super(runtime, runtime.getArray());\n this.values = vals;\n this.begin = begin;\n this.realLength = vals.length - begin;\n this.isShared = true;\n }",
"@Override\r\n\tpublic <T> T[] toArray(T[] a)\r\n\t{\n\t\tthrow new UnsupportedOperationException(\"Series collection doesn't support this operation.\");\r\n\t}",
"public static NewArrayExpression newArrayInit(Class type, Expression[] expressions) { throw Extensions.todo(); }",
"public ArrayList() {\n arr = (T[]) new Object[10];\n size = 0;\n }",
"public PersistentArray<T> toPersistentArray() {\n return new PersistentArray<>(this.root, this.branchingFactor, this.depth, this.base,\n this.treeSize);\n }",
"E[] toArray();",
"public MutableArray(int capacity) {\r\n\t\tif(capacity < 1)\r\n\t\t\tcapacity = 1;\r\n\t\tbackingArray = new Object[capacity];\r\n\t}",
"public ArrayType( @Nonnull AnyType arrayType, @Nonnull TypeManager manager, int componentClassIndex, @Nonnull WasmOptions options ) {\n this( getJavaClassName( arrayType ), StructTypeKind.array, manager, arrayType );\n this.componentClassIndex = componentClassIndex;\n if( options.useGC() ) {\n String nativeName = '_' + getName();\n this.nativeArrayType = new ArrayType( nativeName, StructTypeKind.array_native, manager, arrayType );\n //structTypes.put( name, nativeArrayType );\n } else {\n this.nativeArrayType = arrayType;\n }\n nativeFieldName = new NamedStorageType( this.nativeArrayType, getName(), TypeManager.FIELD_VALUE );\n }",
"public ZYArraySet(int initLength){\n if(initLength<0)\n throw new IllegalArgumentException(\"The length cannot be nagative\");\n elements = (ElementType[])new Object[initLength];\n }",
"@Override\n public Stanza[] newArray(int size) {\n return new Stanza[size];\n }",
"public C1748jj[] newArray(int i) {\n return new C1748jj[i];\n }",
"@Override\n\tpublic Object[] toArray() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public IntArrays()\n\t{\n\t\tthis(10);\n\t}",
"@Override\n\t\tpublic Album[] newArray(int size) {\n\t\t\treturn new Album[size];\n\t\t}",
"public O[] toArray()\r\n {\r\n\r\n @SuppressWarnings(\"unchecked\")\r\n O[] a = (O[]) new Object[count];\r\n \r\n VectorItem<O> vi = first;\r\n \r\n for (int i=0;i<=count-1;i++)\r\n {\r\n a[i] = vi.getObject();\r\n vi = vi.getNext();\r\n }\r\n\r\n return a; \r\n }"
] | [
"0.7398182",
"0.73799896",
"0.72701186",
"0.7199303",
"0.7148673",
"0.6896455",
"0.6888247",
"0.6793856",
"0.6793227",
"0.6726655",
"0.6695476",
"0.66844124",
"0.66693425",
"0.6660743",
"0.662519",
"0.6614883",
"0.6591593",
"0.65795565",
"0.6556221",
"0.6542467",
"0.6536361",
"0.65269834",
"0.64752376",
"0.64628446",
"0.6436547",
"0.64329755",
"0.64191663",
"0.64180964",
"0.64092344",
"0.639464",
"0.63846207",
"0.6354444",
"0.63527805",
"0.63506234",
"0.63439566",
"0.6335298",
"0.6319603",
"0.6317665",
"0.63092273",
"0.6293854",
"0.62913615",
"0.6270468",
"0.6248091",
"0.62401223",
"0.623744",
"0.62224346",
"0.6190473",
"0.61663145",
"0.61602175",
"0.6145079",
"0.6139844",
"0.6133497",
"0.6131447",
"0.61295885",
"0.6124391",
"0.6116177",
"0.61098945",
"0.60975045",
"0.6093461",
"0.6093461",
"0.6093461",
"0.6074702",
"0.60688823",
"0.6051179",
"0.6051072",
"0.60401696",
"0.60194224",
"0.6000533",
"0.59971875",
"0.5989811",
"0.5988146",
"0.59856755",
"0.5985079",
"0.5984977",
"0.59701496",
"0.59650904",
"0.5946516",
"0.59371805",
"0.59301263",
"0.5928622",
"0.5924021",
"0.5923947",
"0.5914685",
"0.5911076",
"0.59087616",
"0.59087026",
"0.59022206",
"0.5899702",
"0.5898175",
"0.5895175",
"0.588547",
"0.5883241",
"0.58788294",
"0.5873341",
"0.58678985",
"0.58598423",
"0.5855162",
"0.58551395",
"0.5854618",
"0.58452153"
] | 0.80214375 | 0 |
Returns a new object of class 'Element Text'. | ElementText createElementText(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Text createText();",
"public Text()\n {\n super();\n initialize();\n }",
"public Element(String name, String text) {\n\t\tsetName(name);\n\n\t\tif (text != null) {\n\t\t\taddText(text);\n\t\t}\n\t}",
"public Text(String text)\n {\n super(text);\n initialize();\n }",
"protected Text getText()\r\n\t{\r\n\t\treturn text;\r\n\t}",
"public interface Text extends TextualElement {\r\n\r\n}",
"@Test\n\tpublic void testTextToXml()\n\t{\n\t\tDocument doc = XMLUtil.createEmpty();\n\t\tText text = new Text(\"Steve Unger Smells\");\n\t\tElement element = this.parser.toXML(doc, text);\n\t\tText text2 = this.parser.fromXML(element);\n\t\t\n\t\tassertEquals(\"Steve Unger Smells\", text2.getText());\t\t\n\t}",
"protected Text getText() {\n \t\treturn text;\n \t}",
"public Element addText(String text) {\n Assert.isTrue(text != null, \"Text is null\");\n element.appendChild(element.getOwnerDocument().createTextNode(text));\n\n return this;\n }",
"protected TextGuiTestObject edittext() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"edittext\"));\n\t}",
"public TextInput(WebElement element) {\n super(element);\n }",
"public Element createElement(String localName, String text) {\n Element element = createElement(localName);\n Text textNode = getDocument().createTextNode(text);\n element.appendChild(textNode);\n\n return element;\n }",
"protected IControlCreator getTextControlCreator() {\r\n\t\treturn new IControlCreator() {\r\n\r\n\t\t\tpublic Control createControl(Composite parent, int style) {\r\n\t\t\t\tText retVal = getWidgetFactory().createText(parent, \"\", style/* |mutabilityStyle */); //$NON-NLS-1$\r\n\t\t\t\t//\t\t\t\t\tretVal.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\r\n\t\t\t\treturn retVal;\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public Text createTextNode(String data, Element parent);",
"public TextNode(String text) {\n\t\tthis.text = text;\n\t}",
"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 TextTester(){}",
"private Element encapsulateString(String sentence){\n return new MyElement(sentence);\n }",
"protected Text text(String content){\n\t\treturn doc.createTextNode(content);\n\t}",
"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\n\t\t\tpublic String getText(Object element) {\n\t\t\t\treturn \"test\";\n\t\t\t}",
"public abstract String getText();",
"public abstract String getText();",
"public abstract String getText();",
"public abstract String getText();",
"public Text(double x, double y, String text)\n {\n super(x, y, text);\n initialize();\n }",
"public static MobileElement text(String text) {\n return element(for_text(text));\n }",
"private ModelInstance newText(String text)\n {\n BufferedImage onePixelImage = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);\n Graphics2D awtGraphics2D = onePixelImage.createGraphics();\n awtGraphics2D.setFont(awtFont != null ? awtFont : DEFAULT_FONT);\n FontMetrics awtFontMetrics = awtGraphics2D.getFontMetrics();\n int textWidthPixels = text.isEmpty() ? 1 : awtFontMetrics.stringWidth(text);\n int textHeightPixels = awtFontMetrics.getHeight();\n awtGraphics2D.dispose();\n\n // Create image for use in texture\n BufferedImage bufferedImageRGBA8 = new BufferedImage(textWidthPixels, textHeightPixels, BufferedImage.TYPE_INT_ARGB);\n awtGraphics2D = bufferedImageRGBA8.createGraphics();\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);\n awtGraphics2D.setFont(awtFont != null ? awtFont : DEFAULT_FONT);\n awtFontMetrics = awtGraphics2D.getFontMetrics();\n awtGraphics2D.setColor(awtColor);\n int x = 0;\n int y = awtFontMetrics.getAscent();\n if (!text.isEmpty())\n awtGraphics2D.drawString(text, x, y);\n awtGraphics2D.dispose();\n\n Pixmap pixmap = new Pixmap(textWidthPixels, textHeightPixels, Pixmap.Format.RGBA8888);\n BytePointer rgba8888BytePointer = new BytePointer(pixmap.getPixels());\n DataBuffer dataBuffer = bufferedImageRGBA8.getRaster().getDataBuffer();\n for (int i = 0; i < dataBuffer.getSize(); i++)\n {\n rgba8888BytePointer.putInt(i * Integer.BYTES, dataBuffer.getElem(i));\n }\n\n Texture libGDXTexture = new Texture(new PixmapTextureData(pixmap, null, false, false));\n Material material = new Material(TextureAttribute.createDiffuse(libGDXTexture),\n ColorAttribute.createSpecular(1, 1, 1, 1),\n new BlendingAttribute(GL41.GL_SRC_ALPHA, GL41.GL_ONE_MINUS_SRC_ALPHA));\n long attributes = VertexAttributes.Usage.Position | VertexAttributes.Usage.Normal | VertexAttributes.Usage.TextureCoordinates;\n\n float textWidthMeters = textHeightMeters * (float) textWidthPixels / (float) textHeightPixels;\n\n float x00 = 0.0f;\n float y00 = 0.0f;\n float z00 = 0.0f;\n float x10 = textWidthMeters;\n float y10 = 0.0f;\n float z10 = 0.0f;\n float x11 = textWidthMeters;\n float y11 = textHeightMeters;\n float z11 = 0.0f;\n float x01 = 0.0f;\n float y01 = textHeightMeters;\n float z01 = 0.0f;\n float normalX = 0.0f;\n float normalY = 0.0f;\n float normalZ = 1.0f;\n Model model = modelBuilder.createRect(x00, y00, z00, x10, y10, z10, x11, y11, z11, x01, y01, z01, normalX, normalY, normalZ, material, attributes);\n return new ModelInstance(model);\n }",
"protected double addTextElement(Element parent, double x, double y, String text,\n float fontSize, String anchor, String weight) {\n return addTextElement(parent, x, y, text, fontSize, anchor, weight, \"#000000\");\n }",
"@Override\n\t\t\tpublic String getText(Object element) {\n\t\t\t\treturn \"test5\";\n\t\t\t}",
"private Painter newPlainText() {\r\n\t\treturn p.textOutline(text, surface, fontSize, bold, italic, \r\n\t\t\t\tshade, null);\r\n\t}",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"java.lang.String getText();",
"public TextButton (String text)\n { \n this(text, 20); \n }",
"public com.vodafone.global.er.decoupling.binding.request.TextType createTextType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.TextTypeImpl();\n }",
"private String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"private void initTexts() throws RIFCSException {\n NodeList nl = super.getElements(Constants.ELEMENT_TEXT);\n\n for (int i = 0; i < nl.getLength(); i++) {\n texts.add((Element) nl.item(i));\n }\n }",
"public TextBlock() {\n writer = new StringMaker();\n writer.openForOutput();\n // blockOut = new StringBuilder();\n labels = new ArrayList();\n // writer.close();\n }",
"public String getText(){\r\n return text;\r\n }",
"Builder addText(Text value);",
"public String getText();",
"public String getText();",
"public String getText();",
"public String getText();",
"public java.lang.String getText() {\n return instance.getText();\n }",
"private HTMLElement generateIntroText(IntroText element, int indentLevel) {\n \t\tHTMLElement textElement = generateTextElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_PARAGRAPH, null,\n \t\t\t\tIIntroHTMLConstants.SPAN_CLASS_TEXT, element.getText(),\n \t\t\t\tindentLevel);\n \t\treturn textElement;\n \t}",
"@Override\n public abstract String asText();",
"@Override\r\n\t\t\tpublic String getText() {\n\t\t\t\treturn text;\r\n\t\t\t}",
"public String text() { return text; }",
"static ITextData make(final String text) {\r\n\t\treturn new ITextData() {\r\n\r\n\t\t\t/**\r\n\t\t\t * Version number for serialization.\r\n\t\t\t */\r\n\t\t\tprivate static final long serialVersionUID = 2116930322237925265L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String toString() {\r\n\t\t\t\treturn text;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic String getText() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn text;\r\n\t\t\t}\t\t\t\r\n\t\t};\r\n\t}",
"@Test\n\t@TestProperties(name = \"Set element ${by}:${locator} text to '${text}'\", paramsInclude = { \"by\", \"locator\", \"text\" })\n\tpublic void setElementText() {\n\t\tthrow new IllegalStateException(\"Unimplemenetd\");\n\t}",
"public Text(int x, int y, String text, int size) {\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n this.font = Font.SANS_SERIF;\r\n this.size = size;\r\n \r\n }",
"protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }",
"public interface TextNode extends TextComponent {\n /**\n * @param component component to add to children list\n */\n void add(TextComponent component);\n\n /**\n * @param component remove components from children list\n */\n void remove(TextComponent component);\n\n /**\n * @return state name of text composite\n */\n String getStateName();\n\n /**\n * @return state of text composite\n */\n AbstractTextState getState();\n}",
"Element() {\n\t}",
"public String getText(){\r\n\t\treturn text;\r\n\t}",
"public TextFragment()\n\t{\n\t}",
"public java.lang.String getText() {\n \t\treturn text;\n \t}",
"@ClientConfig(JsonMode.Object)\n\r\n\tpublic Object getTextEl () {\r\n\t\treturn (Object) getStateHelper().eval(PropertyKeys.textEl);\r\n\t}",
"public String getText() {\r\n return text;\r\n }",
"public TextExpression(String text) {\n this.text = text;\n }",
"public final TText addText(final String text, final int x, final int y,\n final int width, final int height) {\n\n return new TText(this, text, x, y, width, height, \"ttext\");\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 }",
"public String getText() {\n return text;\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 XmlProtoElementBuilder addChildText(String text) {\n element.addChild(XmlNode.newBuilder().setText(text));\n return this;\n }",
"protected TextUtilities getTextUtilities() {\n return TextUtilities.INSTANCE;\n }",
"String getText()\n {\n return \"\";\n }",
"public java.lang.String getText() {\n return this.text;\n }",
"public String getText() {\r\n return text;\r\n }",
"public String getText() {\r\n return text;\r\n }",
"public String text();",
"public String getText() {\n // element.getTextContent() breaks in jdk 1.4, so is implemented manually\n return getTextContent(element, new StringBuffer()).toString();\n }",
"public java.lang.String getText() {\n return text_;\n }",
"private TextUtil()\r\n {\r\n }",
"private Text createText(String text, int offset) {\n\t\tText res = new Text(text);\n\t\tres.setFont(new Font(\"Minecraftia\", 60));\n\t\tres.setFill(Color.YELLOW);\n\t\tres.getTransforms().add(new Rotate(-50, 300, 200, 20, Rotate.X_AXIS));\n\t\tres.setX(canvas.getWidth() / 2);\n\t\tres.setY(canvas.getHeight() / 2 + offset);\n\t\tres.setId(\"handCursor\");\n\t\tres.setOnMouseEntered(e -> {\n\t\t\tres.setText(\"> \" + res.getText() + \" <\");\n\t\t});\n\t\tres.setOnMouseExited(e -> {\n\t\t\tres.setText(res.getText().replaceAll(\"[<> ]\", \"\"));\n\t\t});\n\t\treturn res;\n\t}",
"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 }",
"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 }",
"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 }",
"public String getText() {\n return text;\n }",
"public String getText()\n\t{\n\t\treturn text;\n\t}",
"public String getText()\n\t{\n\t\treturn text;\n\t}"
] | [
"0.7097348",
"0.6677067",
"0.66476965",
"0.65167385",
"0.6477222",
"0.63792855",
"0.6375304",
"0.63685155",
"0.63484347",
"0.6343462",
"0.6310492",
"0.62880915",
"0.6277211",
"0.6265391",
"0.6234022",
"0.62064666",
"0.6189884",
"0.61856246",
"0.6134465",
"0.61276793",
"0.610868",
"0.6061875",
"0.6061875",
"0.6061875",
"0.6061875",
"0.60491157",
"0.60323423",
"0.6006256",
"0.59974277",
"0.5980948",
"0.59683913",
"0.5964871",
"0.5964871",
"0.5964871",
"0.5964871",
"0.5964871",
"0.5964871",
"0.5964871",
"0.5964871",
"0.5964749",
"0.59616584",
"0.59496886",
"0.59444565",
"0.5942676",
"0.5915164",
"0.59128946",
"0.5912027",
"0.5912027",
"0.5912027",
"0.5912027",
"0.58651555",
"0.5864781",
"0.5858077",
"0.5851567",
"0.58421266",
"0.5830144",
"0.58271617",
"0.5823946",
"0.58221304",
"0.58117545",
"0.58005196",
"0.579215",
"0.5779917",
"0.577689",
"0.5771882",
"0.5767631",
"0.576763",
"0.57651764",
"0.5760017",
"0.5760017",
"0.5760017",
"0.5760017",
"0.5760017",
"0.5758495",
"0.5755609",
"0.57524574",
"0.57495326",
"0.574455",
"0.5721156",
"0.5721156",
"0.57197624",
"0.57186645",
"0.57132554",
"0.5695062",
"0.56883156",
"0.56826335",
"0.56826335",
"0.56826335",
"0.56826335",
"0.56826335",
"0.56826335",
"0.56826335",
"0.56826335",
"0.56826335",
"0.56826335",
"0.56826335",
"0.56826335",
"0.56826335",
"0.567355",
"0.567355"
] | 0.83907247 | 0 |
Returns a new object of class 'Element Image'. | ElementImage createElementImage(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Image getImage(Object element) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}",
"public Image getImage(Object element) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}",
"public Image getImage(Object element) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}",
"public Image getImage(Object element) {\n\t\t\t\treturn null;\n\t\t\t}",
"public Image getImage(Object element) {\n\t\t\t\treturn null;\n\t\t\t}",
"public Image getImage(Object element) {\n\t\t\t\treturn null;\n\t\t\t}",
"public ImageView getImage() {\n ImageView and = new ImageView(Image);\n and.setFitWidth(70);\n and.setFitHeight(50);\n return and;\n }",
"Image createImage();",
"private Images() {}",
"public static Builder newElementGroupElementImages() {\n return new Builder();\n }",
"@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}",
"@Nonnull\n private BufferedImage createImage() {\n return new BufferedImage(getWidth(), getHeight(), getImageType().getType());\n }",
"@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}",
"@Override\n\tpublic Image getImage(Object element) {\n\t\treturn null;\n\t}",
"public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}",
"IMG createIMG();",
"public abstract Image getImage();",
"public abstract Image getImage();",
"public Image creerImage() {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n\t\ttry {\r\n\t\t\t// Transfert de l image dans le buffer de bytes\r\n\t\t\tImageIO.write(monImage.getImage(), \"png\", baos);\r\n\t\t\t\r\n\t\t\t// Creation d une instance d Image iText\r\n\t\t\tImage image = Image.getInstance(baos.toByteArray());\r\n\t\t\treturn image;\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (BadElementException 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 null;\r\n\t}",
"public Image() {\n \n }",
"public abstract Image gen();",
"public Image() {\n }",
"private HTMLElement generateImageElement(String imageSrc, int indentLevel) {\n \t\tHTMLElement image = new FormattedHTMLElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_IMG, indentLevel, true);\n \t\timage.addAttribute(IIntroHTMLConstants.ATTRIBUTE_SRC, imageSrc);\n \t\treturn image;\n \t}",
"public Image getOne();",
"public Image createImage() {\n if (source == null) {\n source = new MemoryImageSource(width, height, cModel, pixels, 0, width);\n source.setAnimated(true);\n }\n Image img = Toolkit.getDefaultToolkit().createImage(source);\n return img;\n }",
"@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}",
"public ImageContent() {\n }",
"public interface Image {\n\n /**\n * Get number of pixels horizontally\n *\n * @return int number of pixels horizontally\n */\n int getWidth();\n\n /**\n * Get number of pixels vertically\n *\n * @return int number of pixels vertically\n */\n int getHeight();\n\n /**\n * Get the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the red value\n */\n int getRed(int x, int y);\n\n\n /**\n * Get the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the green value\n */\n int getGreen(int x, int y);\n\n /**\n * Get the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @return the blue value\n */\n int getBlue(int x, int y);\n\n /**\n * Set the red value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setRed(int x, int y, int value);\n\n\n /**\n * Set the green value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setGreen(int x, int y, int value);\n\n /**\n * Set the blue value at the given pixel\n *\n * @param x coordinate of the pixel\n * @param y coordinate of the pixel\n * @param value of the pixel\n */\n void setBlue(int x, int y, int value);\n}",
"protected Builder() {\n super(new ImageStatisticsElementGroupElementImages());\n }",
"public Image getImage() {\r\n return image;\r\n }",
"public interface Image {\n /**\n * @return the image ID\n */\n String getId();\n\n /**\n * @return the image ID, or null if not present\n */\n String getParentId();\n\n /**\n * @return Image create timestamp\n */\n long getCreated();\n\n /**\n * @return the image size\n */\n long getSize();\n\n /**\n * @return the image virtual size\n */\n long getVirtualSize();\n\n /**\n * @return the labels assigned to the image\n */\n Map<String, String> getLabels();\n\n /**\n * @return the names associated with the image (formatted as repository:tag)\n */\n List<String> getRepoTags();\n\n /**\n * @return the digests associated with the image (formatted as repository:tag@sha256:digest)\n */\n List<String> getRepoDigests();\n}",
"public Image getImage() {\n return image;\n }",
"private Image createImage(String image_file) {\n\t\tImage img = new Image(image_file);\n\t\treturn img;\n\t}",
"public interface Image {\n public String getPath();\n\n public String getFormat();\n\n public String getWidth();\n\n public String getHeight();\n\n}",
"public Image getImage() {\n return image;\n }",
"public abstract ImageDescriptor getImageDescriptor(Object element);",
"public Image getImage() {\n if (image == null) {//GEN-END:|34-getter|0|34-preInit\n // write pre-init user code here\n try {//GEN-BEGIN:|34-getter|1|[email protected]\n image = Image.createImage(\"/226px-Wave.svg.png\");\n } catch (java.io.IOException e) {//GEN-END:|34-getter|1|[email protected]\n e.printStackTrace();\n }//GEN-LINE:|34-getter|2|34-postInit\n // write post-init user code here\n }//GEN-BEGIN:|34-getter|3|\n return image;\n }",
"public Image getImage() {\r\n\t\treturn image;\r\n\t}",
"private HTMLElement generateIntroImage(IntroImage element, int indentLevel) {\n \t\tHTMLElement imageElement = generateImageElement(element.getSrc(),\n \t\t\t\tindentLevel);\n \t\tif (element.getId() != null)\n \t\t\timageElement.addAttribute(IIntroHTMLConstants.ATTRIBUTE_ID, element\n \t\t\t\t\t.getId());\n \t\treturn imageElement;\n \t}",
"Builder addImage(ImageObject value);",
"public javafx.scene.image.Image getImage() {\n return super.getImage();\n }",
"public javafx.scene.image.Image getImage() {\n return super.getImage();\n }",
"public javafx.scene.image.Image getImage() {\n return super.getImage();\n }",
"VirtualMachineExtensionImageInner innerModel();",
"private ImageUtils() {}",
"public Image getImage() {\n\t\treturn image;\r\n\t}",
"public Image getImage() {\n\t\treturn image;\n\t}",
"public Image getImage() {\n\t\treturn image;\n\t}",
"ObjectElement createObjectElement();",
"public ImageIcon image() {\n return image;\n }",
"Imagem getImagem();",
"public ImageIcon getImage()\n {\n return image;\n }",
"public IImage createImage(IImage source) {\n return null;\r\n }",
"@Nullable\n @Generated\n @Selector(\"image\")\n public native UIImage image();",
"Element() {\n\t}",
"public BufferedImage getImage() {\n return image;\n }",
"public interface Image {\n void display();\n}",
"public Image clone() {\r\n\t\treturn new Image(renderer, texture, textureX, textureY, textureWidth, textureHeight, width, height);\r\n\t}",
"public Image getInstanceImage() {\r\n return this.image;\r\n }",
"public String getImage() { return image; }",
"PImage getImage() {\n return _img;\n }",
"@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}",
"public ImagePanel() {\n\t\ttry {\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigorest.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigono.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigolow.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigohigh.png\").getPath())));\n\t\t\tthis.image.add(ImageIO.read(new File(this.getClass().getResource(\"/Avertissement/frigocondensation.png\").getPath())));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected abstract Image loadImage();",
"public Picture picture() {\n return new Picture(current);\n }",
"public Image getImage()\n {\n return null;\n }",
"public Image getFive();",
"public Image getImage() {\n return null;\r\n }",
"public BufferedImage getImage() {\n\t\t return img;\n\t}",
"public ModelImage getResultImage() {\r\n return resultImage;\r\n }",
"public ModelImage getResultImage() {\r\n return resultImage;\r\n }",
"public ModelImage getResultImage() {\r\n return resultImage;\r\n }",
"public BufferedImage create() {\n checkDimensions();\n final BufferedImage image = createImage();\n getImagePainter().paint(image);\n return image;\n }",
"public HippoGalleryImageSetBean getImage() {\n return getLinkedBean(\"myspringbasedhippoproject:image\", HippoGalleryImageSetBean.class);\n }",
"Element createElement();",
"@Output(\"image\")\n public Image getImage() {\n return image;\n }",
"public final ImageProcessor getImage() {\r\n return image;\r\n }",
"protected abstract M createNewElement();",
"public Pixel() {\r\n\t\t}",
"public ImageIcon getImage();",
"public Bitmap getImage() {\n return image;\n }",
"@Override\n\tImageIcon getImage() {\n\t\treturn img;\n\t}",
"public ImageList() {\n\t\timageList = new ImageIcon[] { ImageList.BALLOON, ImageList.BANANA, ImageList.GENIE, ImageList.HAMSTER,\n\t\t\t\tImageList.HEART, ImageList.LION, ImageList.MONEY, ImageList.SMOOTHIE, ImageList.TREE, ImageList.TRUCK };\n\t}",
"public IImage createImage(String name) throws IOException {\n return null;\r\n }",
"Image createImage(List<List<Pixel>> pixelArray);",
"public BufferedImage getImage() {\n return embeddedImage;\n }",
"public ImageProcessor(Pic a) {\n image = a;\n }",
"public Image getTwo();",
"public Image()\r\n {\r\n super();\r\n setBounds( 0, 0, 10, 10 );\r\n }",
"public ImageSection() { // required by the SessionLoader (should not be used elsewhere)\n hasImage = new HasImage();\n }",
"public ImageHandler(Group nGroup){\n\t /* Set up the group reference */\n\t\tgroup = nGroup;\n\t\t\n\t\t/* Instantiate the list of images */\n\t\timages = new ArrayList<ImageView>();\n\t}",
"public BufferedImage makeBufferedImage()\r\n {\r\n\treturn makeRGBImage().makeBufferedImage();\r\n }",
"@Nullable\n public abstract Image images();",
"public void setImage(Image itemImg) \n {\n img = itemImg;\n }",
"public Image getImagen() {\n\t\tRectangle rootFigureBounds = this.getBounds();\n\t\tGC figureCanvasGC = new GC(this.canvas);\n\n\t\tImage image = new Image(this.canvas.getDisplay(), rootFigureBounds.width,\n\t\t\t\trootFigureBounds.height);\n\t\tGC imageGC = new GC(image);\n\n\t\timageGC.setBackground(figureCanvasGC.getBackground());\n\t\timageGC.setForeground(figureCanvasGC.getForeground());\n\t\timageGC.setFont(figureCanvasGC.getFont());\n\t\timageGC.setLineStyle(figureCanvasGC.getLineStyle());\n\t\timageGC.setLineWidth(figureCanvasGC.getLineWidth());\n\t\t// imageGC.setXORMode(figureCanvasGC.getXORMode());\n\n\t\tGraphics imgGraphics = new SWTGraphics(imageGC);\n\t\tthis.paint(imgGraphics);\n\n\t\treturn image;\n\t}",
"public ImageConverter() {\n\t}",
"public Image getFour();",
"public InlineImage getInlineImage(\n )\n {return getBaseDataObject();}",
"public Image() {\n\t\t\tthis(Color.white, 0);\n\t\t}",
"public Image getFlat();"
] | [
"0.6823091",
"0.6823091",
"0.6823091",
"0.6689439",
"0.6689439",
"0.6689439",
"0.6638722",
"0.66324013",
"0.65752375",
"0.6560681",
"0.64715636",
"0.6443209",
"0.643545",
"0.6435311",
"0.6408598",
"0.6347483",
"0.63304526",
"0.63304526",
"0.63264704",
"0.6289286",
"0.6274813",
"0.62443304",
"0.6231752",
"0.62052953",
"0.61893404",
"0.6139898",
"0.6074695",
"0.6030113",
"0.6028635",
"0.6027194",
"0.597775",
"0.59775555",
"0.5975029",
"0.59696525",
"0.59681606",
"0.59674615",
"0.59637755",
"0.5944354",
"0.593656",
"0.5933009",
"0.59255934",
"0.59255934",
"0.59255934",
"0.59177214",
"0.5913727",
"0.58993393",
"0.5895721",
"0.5895721",
"0.5885794",
"0.5882926",
"0.5867431",
"0.5849986",
"0.58477473",
"0.5812101",
"0.58050466",
"0.5798923",
"0.5798217",
"0.5795902",
"0.5792543",
"0.5786367",
"0.5781066",
"0.5779582",
"0.5768002",
"0.5763257",
"0.57622236",
"0.57590836",
"0.57499367",
"0.57421297",
"0.5730074",
"0.5727248",
"0.5727248",
"0.5727248",
"0.572721",
"0.5727016",
"0.57186013",
"0.5717227",
"0.57091796",
"0.570823",
"0.570772",
"0.5704472",
"0.5699706",
"0.5699273",
"0.56849307",
"0.56755",
"0.56739753",
"0.5663014",
"0.5659176",
"0.56428707",
"0.5633218",
"0.5619342",
"0.5608775",
"0.56023204",
"0.5598635",
"0.55918896",
"0.55908144",
"0.5587016",
"0.55809546",
"0.55753535",
"0.55734676",
"0.5571236"
] | 0.83413625 | 0 |
Returns a new object of class 'Object Element'. | ObjectElement createObjectElement(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public WModelObject getElementObject()\n\t{\n\t\tWModelObject elementObject = null;\n\n\t\ttry\n\t\t{\n\t\t\t//Class objClass = Class.forName(m_elementObjectClassName);\n\t\t\t//elementObject = (WModelObject)objClass.newInstance();\n\t\t\t//elementObject.setParent(this);\n\t\t\t//return elementObject;\n\n\t\t\tClass modelObjectClass = Class.forName(m_elementObjectClassName);\n\t\t\tClass[] parameterClass = {Class.forName(\"java.lang.String\"), Class.forName(\"java.lang.String\")};\n\t\t\tConstructor constructor = modelObjectClass.getConstructor(parameterClass);\n\t\t\tObject[] parameterObj = {\"\", getImplTypeName()}; //the first parameter is blank to indicate no driver\n\t\t\t\t\t\t\t\t\t //provided this model object\n\t\t\telementObject = (WModelObject)constructor.newInstance(parameterObj);\n\t\t\telementObject.setParent(this);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (NoSuchMethodException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Cannot load element object class for WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (InvocationTargetException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Cannot load element object class for WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (ClassNotFoundException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Cannot load element object class for WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (InstantiationException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Cannot instantiate element object in WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t\tcatch (IllegalAccessException e)\n\t\t{\n\t\t\tcom.ing.connector.Registrar.logError(\"Illegal access when instantiating element object in WCollection: \" + m_elementObjectClassName + \" \" + e);\n\t\t\treturn elementObject;\n\t\t}\n\t}",
"OBJECT createOBJECT();",
"public GongDomObject(Element object) throws InvalidTagException {\r\n super(object);\r\n }",
"Object create(Element element) throws IOException, SAXException, ParserConfigurationException;",
"@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}",
"public Object getObject();",
"public Object getObject() ;",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"Object getObject();",
"public abstract Object create(ElementMapping elementMapping, ReadContext context);",
"public ElementObjectSupport(ContainerI c, Element element) {\r\n\t\tthis(c, null, element);\r\n\t}",
"Element() {\n\t}",
"public RubyObject createObject() {\n\t\treturn (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(\"return RPG::Troop::Page.new\");\n\t}",
"Object create(Object source);",
"public Object buildElementFromElement(Object element, MergeManager mergeManager) {\n ObjectBuilder objectBuilder = this.getObjectBuilder(element, mergeManager.getSession());\n Object result = objectBuilder.buildNewInstance();\n objectBuilder.mergeIntoObject(result, true, element, mergeManager);\n\n return result;\n }",
"public static JsonObjectBuilder object() {\n return new JsonObjectBuilder();\n }",
"ObjectField createObjectField();",
"public T getObject()\n\t{\n\t\treturn object;\n\t}",
"Element createElement();",
"public Object caseElement(Element object) {\r\n\t\treturn null;\r\n\t}",
"public Object obj()\n\t{\n\t\treturn object;\n\t}",
"public ElementObject(WebElement element) {\n // check null value\n super(0); //0 : Element is THERE\n this.element = element;\n this._originalStyle = element.getAttribute(\"style\");\n }",
"protected abstract M createNewElement();",
"private GraphObject instantiateGraphObject( String tagname ) {\n// Global.info( \"Instantiating object of type \" + tagname );\n if ( CharGerXMLTagNameToClassName.isEmpty() ) {\n loadCharGerKeyWordToClassTable();\n }\n String t = CharGerXMLTagNameToClassName.getProperty( tagname, \"DUMMY\" );\n if ( t.equals( \"DUMMY\" ) ) {\n return null;\n }\n\n GraphObject go = null;\n Class objClass = null;\n try {\n objClass = Class.forName( \"charger.obj.\" + t );\n go = (GraphObject)objClass.newInstance();\n } catch ( ClassNotFoundException ex ) {\n Global.error( \"Parsing an illegal object tag \" + tagname );\n } catch ( InstantiationException ex ) {\n Global.error( \"Parsing an illegal object tag \" + tagname );\n } catch ( IllegalAccessException ex ) {\n Global.error( \"Parsing an illegal object tag \" + tagname );\n }\n\n return go;\n }",
"public DcObjectPart() {\n super(DcModules._OBJECTPART);\n }",
"abstract org.apache.xmlbeans.XmlObject getXmlObject();",
"public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }",
"public XObject(){\r\n }",
"private Element createXmlElementForObject(ObjectExtValue object, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_OBJECT);\n\t\t\n\t\tArrayList<NameValuePair> pairs = new ArrayList<NameValuePair>();\n\t\tfor (Iterator<Map.Entry<Value,Value>> iter = ((EntrySet) object.entrySet()).iterator(); iter.hasNext(); ) {\n\t\t\tMap.Entry<Value, Value> pair = iter.next();\n\t\t\tpairs.add(new NameValuePair(pair.getKey(), pair.getValue()));\n\t\t}\n\t\t\t\n\t\tCollections.sort(pairs, SortNameValuePairByName.inst);\n\t\t\n\t\tfor (NameValuePair pair : pairs) {\n\t\t\tElement childElement = createXmlElementForNameValuePair(pair.getName(), pair.getValue(), xmlDocument, constraint);\n\t\t\tif (childElement != null)\n\t\t\t\telement.appendChild(childElement);\n\t\t}\n\n\t\treturn (element.hasChildNodes() ? element : null);\n\t}",
"public CMObject newInstance();",
"ObjectValue createObjectValue();",
"public XObject(){\n }",
"Objet getObjetAlloue();",
"public static Object objectFromXmlElement(XmlElement element) throws XmlParseException\n {\n return PLIST.parseObject(element);\n }",
"public Object getObject() {\n\t\treturn object;\n\t}",
"public T caseElement(Element object) {\n\t\treturn null;\n\t}",
"public T caseElement(Element object) {\n\t\treturn null;\n\t}",
"public T caseElement(Element object) {\n\t\treturn null;\n\t}",
"protected PObject createIndependentObject() {\n return createIndependentObjects(1).get(0);\n }",
"public Object getObject() {\n return getObject(null);\n }",
"E createDefaultElement();",
"Object element();",
"Object element();",
"private void buildObject(Element current) {\n\t\tList<Element> children = current.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tString category = child.getAttributeValue(\"description\");\n\t\t\tString reference = child.getAttributeValue(\"reference\");\n\n\t\t\tEplusObject ob = new EplusObject(category, reference);\n\t\t\tprocessFields(child, ob);\n\t\t\tobjects.add(ob);\n\t\t}\n\t}",
"Object build();",
"@Override\n\tpublic AbstractItem getObject() {\n\t\tif(item == null) {\n\t\t\titem = new HiTechItem();\n\t\t}\n\t\treturn item;\n\t}",
"@Override\n public Class<Object> getObjectType() {\n return Object.class;\n }",
"public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }",
"public void addElement(Object obj);",
"public static <T extends XMLObject> T getXMLObject(final Class<T> type)\n throws SAMLEngineException {\n QName defaultElementName;\n T element;\n try {\n defaultElementName = (QName) type.getDeclaredField(\n \"DEFAULT_ELEMENT_NAME\").get(null);\n element = (T) getXMLBuilder(type, defaultElementName).\n buildObject(defaultElementName);\n } catch (IllegalAccessException e) {\n throw new SAMLEngineException(\"Field 'DEFAULT_ELEMENT_NAME' of \"\n + \"class \" + type.getName() + \"is not public.\");\n } catch (NoSuchFieldException e) {\n throw new SAMLEngineException(\"Class \" + type.getName() + \"has no \"\n + \"field 'DEFAULT_ELEMENT_NAME'\");\n }\n return element;\n }",
"ObjectLiteral createObjectLiteral();",
"abstract Object build();",
"public View create(Element elem) {\n return null;\n }",
"public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }",
"private SingleObject(){}",
"public GenericElement() {\n\t}",
"public Object createObject() {\n return klass.__call__().__tojava__(interfaceType);\n }",
"public Object build();",
"Element asElement();",
"public final Object getObject() \n\t{\n\tif (fTop > 0)\n\t\t{\n\t\tfTop--;\n\t\tObject result = fBin[fTop];\n\t\tfBin[fTop] = null;\n\t\treturn result;\n\t\t}\n\n\tfUnderflowCounter++;\n\tif (fHasOverflowed && (fBin.length < MAX_BIN_SIZE))\n\t\t{\n\t\tcreateBin(fBin.length + BIN_GROW_SIZE);\n\t\tfHasOverflowed = false;\n\t\t}\n\t\t\n\ttry\n\t\t{\n\t\treturn fClass.newInstance();\n\t\t}\n\tcatch (Exception e)\n\t\t{\n\t\treturn null;\n\t\t}\n\t}",
"public XMLEleObject getObject() {\n if (Location != null) {\n SecName newName = new SecName(Location);\n newName.setAll(Name, Location, MyFont);\n return newName;\n }\n return null;\n }",
"DomainElement createDomainElement();",
"public ObjectRecord() {\n\t\tsuper(org.jooq.test.hsqldb.generatedclasses.tables.Object.OBJECT);\n\t}",
"public Object getObject()\n {\n return m_object;\n }",
"public static Object builder() {\n\t\treturn null;\r\n\t}",
"BElement createBElement();",
"public abstract Object build();",
"public Object getElement();",
"RESTElement createRESTElement();",
"GameObject getObject();",
"public static MapObject createMapObject(){\n\t\treturn new MapObject();\n\t}",
"protected E getEmptyObject() {\n try {\n ParameterizedType type = (ParameterizedType) getClass().getGenericSuperclass();\n Class<E> eClazz = (Class<E>) type.getActualTypeArguments()[0];\n\n return eClazz.newInstance();\n } catch (InstantiationException | IllegalAccessException ex) {\n return null;\n }\n }",
"@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }",
"@Override\n public Object getObject()\n {\n return null;\n }",
"public String createObjectElement(String indent, String elementName, String id, String name) {\r\n StringBuilder sbuf = new StringBuilder(indent);\r\n sbuf.append(\"<\\\" id=\\\"\").append(id).append(\"\\\" \");\r\n sbuf.append(\"name=\\\"\").append(name).append(\"\\\" />\");\r\n return sbuf.toString();\r\n }",
"public T caseElement(Element object)\n {\n return null;\n }",
"@Override\n\tpublic void generate() {\n\t\tJavaObject object = new JavaObject(objectType);\n\n\t\t// Fields\n\t\taddFields(object);\n\n\t\t// Empty constructor\n\t\taddEmptyConstructor(object);\n\n\t\t// Types constructor\n\t\taddTypesConstructor(object);\n\n\t\t// Clone constructor\n\t\taddCloneConstructor(object);\n\n\t\t// Setters\n\t\taddSetters(object);\n\n\t\t// Build!\n\t\taddBuild(object);\n\n\t\t// Done!\n\t\twrite(object);\n\t}",
"protected XMLElement createAnotherElement() {\n return new XMLElement(this.conversionTable,\n this.skipLeadingWhitespace,\n false,\n this.ignoreCase);\n }",
"public static Object builder() {\n\t\treturn null;\n\t}",
"protected Object createObjectFromObjectInformation(ObjectInformation objectInformation) throws FillingException {\n\n AbstractCreatorStrategy strategy = getStrategyManager().getStrategyFor(objectInformation);\n\n return strategy.createObject(objectInformation);\n }",
"private GameObject resolveXMLNode(Node node) {\n\t\tGameObject gO = null;\n\n\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\tElement element = (Element) node;\n\n\t\t\tswitch (element.getAttribute(\"type\")) {\n\n\t\t\t\tcase \"MPOpponentObject4\":\n\t\t\t\t\tgO = new MPOpponentObject4();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MPOpponentObject3\":\n\t\t\t\t\tgO = new MPOpponentObject3();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MPPlayerObject\":\n\t\t\t\t\tgO = new MPPlayerObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MPOpponentObject\":\n\t\t\t\t\tgO = new MPOpponentObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"PlayerObject\":\n\t\t\t\t\tgO = new PlayerObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"GroundObject\":\n\t\t\t\t\tgO = new GroundObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"AIPlayerObject\":\n\t\t\t\t\tgO = new AIPlayerObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"EnemyObject\":\n\t\t\t\t\tgO = new EnemyObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"DamageBooster\":\n\t\t\t\t\tgO = new DamageBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"SpeedBooster\":\n\t\t\t\t\tgO = new SpeedBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"JumpBooster\":\n\t\t\t\t\tgO = new JumpBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"BaseBooster\":\n\t\t\t\t\tgO = new BaseBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MovingObstacle\":\n\t\t\t\t\tgO = new MovingObstacle();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"StunBooster\":\n\t\t\t\t\tgO = new StunBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MovingGroundObject\":\n\t\t\t\t\tgO = new MovingGroundObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"CoinObject\":\n\t\t\t\t\tgO = new CoinObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Meteor\":\n\t\t\t\t\tgO = new Meteor();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"InvincibleWeapon\":\n\t\t\t\t\tgO = new InvincibleWeapon();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"ObstacleWeapon\":\n\t\t\t\t\tgO = new ObstacleWeapon();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"KnockbackBooster\":\n\t\t\t\t\tgO = new KnockbackBooster();\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tif (gO != null) {\n\t\t\t\tNodeList components = element.getElementsByTagName(\"Component\");\n\t\t\t\tfor (int i = 0; i < components.getLength(); i++) {\n\t\t\t\t\tElement component = (Element) components.item(i);\n\t\t\t\t\tgO.GetComponent(component.getAttribute(\"type\")).ResolveXML(component);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn gO;\n\t}",
"public LocalObject() {}",
"protected abstract Object createObjectInternal(ObjectInformation objectInformation) throws FillingException;",
"DataElement createDataElement();",
"JDefinedClass objectFactory();",
"public synchronized void addElement(WModelObject object)\n\t{\n\t\tm_elements.addElement(object);\n\t}",
"private SingleObject()\r\n {\r\n }",
"eu.learnpad.transformations.metamodel_corpus.xwiki.Object getObject();",
"public Element(Element element) {\n\t\tElement src = element.clone();\n\n\t\tthis.attributes = src.attributes;\n\t\tthis.name = src.name;\n\t\tthis.defxmlns = src.defxmlns;\n\t\tthis.xmlns = src.xmlns;\n\t\tthis.children = src.children;\n\t}",
"public static <T extends XmlEntityObject> T wrap(Element element)\n\t\t\tthrows CannotCreateEntityException {\n\t\tif (element == null) {\n\t\t\tthrow new ArgumentNullPointerException(\"element\");\n\t\t}\n\t\tT entityObject = XmlEntityUtils.<T> createBlank(element);\n\t\tbind(element, entityObject);\n\t\treturn entityObject;\n\t}",
"ObjectRealization createObjectRealization();",
"protected O bytesToObject(byte[] data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n O res = type.newInstance();\r\n try {\r\n res.load(data);\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n return res;\r\n }",
"public Object getObject() {\n return this.object;\n }",
"ViewElement createViewElement();",
"public PageElement getPageObject(String pageName, String objectName) {\n\n Map<String, PageElement> pageElements = pageElementsMap.get(pageName);\n CustomAssert.assertTrue(pageElements != null, \"Page not found: \" + pageName);\n\n PageElement pageElement = pageElements.get(objectName);\n CustomAssert.assertTrue(pageElement != null, \"Page element \" + objectName\n + \" not found on page \" + pageName);\n\n return new PageElement(pageElement);\n }",
"public static Object createObject(Class objClass) throws Exception {\n return objClass.newInstance();\n }",
"HTMLElement createHTMLElement();",
"BElementStructure createBElementStructure();"
] | [
"0.70912737",
"0.6825659",
"0.66619545",
"0.6448304",
"0.6307572",
"0.6298397",
"0.62323445",
"0.6219827",
"0.6219827",
"0.6219827",
"0.6219827",
"0.6182443",
"0.6146223",
"0.60916877",
"0.60247856",
"0.6021392",
"0.6015383",
"0.5992582",
"0.59800553",
"0.5978876",
"0.5971762",
"0.597055",
"0.5957707",
"0.5939228",
"0.5932028",
"0.59109825",
"0.5906778",
"0.5895096",
"0.58732206",
"0.58657265",
"0.5836428",
"0.58306015",
"0.58289236",
"0.58101743",
"0.5803629",
"0.5801682",
"0.5800068",
"0.5795074",
"0.5795074",
"0.5795074",
"0.5776769",
"0.5772632",
"0.5762505",
"0.5754991",
"0.5754991",
"0.5750098",
"0.5747071",
"0.5716456",
"0.5704123",
"0.5701355",
"0.56789905",
"0.567217",
"0.56677085",
"0.5653549",
"0.56474197",
"0.5645736",
"0.5644527",
"0.5640426",
"0.56359845",
"0.5609749",
"0.5603314",
"0.55967903",
"0.5592783",
"0.55918247",
"0.5588721",
"0.5588407",
"0.55779326",
"0.5572322",
"0.55702245",
"0.5561417",
"0.5551329",
"0.5533148",
"0.5526691",
"0.55248606",
"0.5522097",
"0.5508366",
"0.5498947",
"0.5492335",
"0.5491717",
"0.5483626",
"0.54824334",
"0.54816204",
"0.54798955",
"0.5475271",
"0.5463517",
"0.5456833",
"0.5452117",
"0.5451724",
"0.5444416",
"0.5443328",
"0.544199",
"0.54292965",
"0.54254013",
"0.5424294",
"0.54188037",
"0.5410865",
"0.5410089",
"0.5397366",
"0.5392505",
"0.53824496"
] | 0.8424662 | 0 |
Returns a new object of class 'Border'. | Border createBorder(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@NonNull\n public Border build() {\n return new Border(mImpl.build(), mFingerprint);\n }",
"public XSSFBorderFormatting createBorderFormatting(){\n CTDxf dxf = getDxf(true);\n CTBorder border;\n if(!dxf.isSetBorder()) {\n border = dxf.addNewBorder();\n } else {\n border = dxf.getBorder();\n }\n\n return new XSSFBorderFormatting(border, _sh.getWorkbook().getStylesSource().getIndexedColors());\n }",
"public Border getBorder()\n {\n return null;\n }",
"public Border getBorder() {\n\t return border;\n\t}",
"public X border(Border border) {\n component.setBorder(border);\n return (X) this;\n }",
"public Border getBorder() {\n\t\treturn border;\n\t}",
"@Nullable\n public Border getBorder() {\n if (mImpl.hasBorder()) {\n return Border.fromProto(mImpl.getBorder());\n } else {\n return null;\n }\n }",
"public Bordereau() {\n\t\tsuper();\n\t}",
"public IconBuilder border(float thickness) {\n\t\tthis.borderThickness = thickness;\n\t\treturn this;\n\t}",
"public ValueExpression getBorder() {\n return border;\n }",
"Shape createShape(BorderType borderType);",
"@Override\n\t\tpublic void setBorder(Border border) {\n\t\t}",
"@NonNull\n public Builder setBorder(@NonNull Border border) {\n mImpl.setBorder(border.toProto());\n mFingerprint.recordPropertyUpdate(\n 4, checkNotNull(border.getFingerprint()).aggregateValueAsInt());\n return this;\n }",
"public Color getBorderColor();",
"public CssBorderWidth() {\n }",
"public float border() {\n\t\treturn borderThickness;\n\t}",
"void setBorder(Color color, int thickness);",
"private View getBorderView() {\n View view = new View(this.getContext());\n TableRow.LayoutParams layoutParams = new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, 1);\n view.setLayoutParams(layoutParams);\n view.setBackgroundColor(getResources().getColor(R.color.ldstools_gray_light));\n return view;\n }",
"private void setBorder(TitledBorder titledBorder) {\n\n}",
"@RestrictTo(Scope.LIBRARY_GROUP)\n @NonNull\n public static Border fromProto(\n @NonNull ModifiersProto.Border proto, @Nullable Fingerprint fingerprint) {\n return new Border(proto, fingerprint);\n }",
"IOverlayStyle borderThickness(int thick);",
"public Color getBorderColor() {\r\n return this.borderColor;\r\n }",
"public final Color getBorderColor() {\n\t\treturn borderColor;\n\t}",
"public DefaultTextField(Border border) {\n\t this.border = border;\n\t}",
"private Border getDesiredBorder(Component cmp) {\r\n\t\tif (cmp instanceof DefaultDockingPort)\r\n\t\t\tcmp = ((DefaultDockingPort) cmp).getDockedComponent();\r\n\r\n\t\tif (cmp instanceof DockablePanel) {\r\n\t\t\tString title = ((DockablePanel) cmp).getDockable().getDockableDesc();\r\n\t\t\treturn new TitledBorder(title);\r\n\t\t}\r\n\t\treturn dummyBorder;\r\n\t}",
"@Override\n public int getBorderColor() {\n return mBorderColor;\n }",
"@Override\n public float getBorderWidth() {\n return mBorderWidth;\n }",
"IOverlayStyle borderOffset(int offset);",
"CellStyleCriterion border(Keywords.BorderSide first, Keywords.BorderSide second, Consumer<BorderCriterion> borderConfiguration);",
"void border(Keywords.BorderSide location, @DelegatesTo(BorderCriterion.class) @ClosureParams(value=FromString.class, options = \"org.modelcatalogue.spreadsheet.query.api.BorderCriterion\") Closure borderConfiguration);",
"public static Rectangle[] getBorders(){\n\t\treturn borders;\n\t}",
"CellStyleCriterion border(Keywords.BorderSide first, Keywords.BorderSide second, Keywords.BorderSide third, Consumer<BorderCriterion> borderConfiguration);",
"private void createCanvasBorders() {\n\n\t\tLabel lblBorderMiddle = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderMiddle.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\t\tlblBorderMiddle.setBounds(0, 72, 285, 2);\n\n\t\tLabel lblBorderBottom = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderBottom.setBounds(0, 198, 285, 2);\n\t\tlblBorderBottom.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\n\t\tLabel lblBorderLeft = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderLeft.setBounds(0, 0, 2, 200);\n\t\tlblBorderLeft.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\n\t\tLabel lblBorderRight = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderRight.setBounds(283, 0, 2, 200);\n\t\tlblBorderRight.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\n\t\tLabel lblBorderTop = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderTop.setBounds(0, 0, 285, 2);\n\t\tlblBorderTop.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\t}",
"@Test\n public void testGetBorder() {\n Assert.assertEquals(Border.ALL, Border.getBorder(true, true, true, true));\n Assert.assertEquals(Border.BOTTOM, Border.getBorder(false, false, false, true));\n Assert.assertEquals(Border.BOTTOM_LEFT, Border.getBorder(true, false, false, true));\n Assert.assertEquals(Border.BOTTOM_LEFT_RIGHT, Border.getBorder(true, true, false, true));\n Assert.assertEquals(Border.BOTTOM_RIGHT, Border.getBorder(false, true, false, true));\n Assert.assertEquals(Border.BOTTOM_TOP, Border.getBorder(false, false, true, true));\n Assert.assertEquals(Border.BOTTOM_TOP_LEFT, Border.getBorder(true, false, true, true));\n Assert.assertEquals(Border.BOTTOM_TOP_RIGHT, Border.getBorder(false, true, true, true));\n Assert.assertEquals(Border.LEFT, Border.getBorder(true, false, false, false));\n Assert.assertEquals(Border.LEFT_RIGHT, Border.getBorder(true, true, false, false));\n Assert.assertEquals(Border.NONE, Border.getBorder(false, false, false, false));\n Assert.assertEquals(Border.RIGHT, Border.getBorder(false, true, false, false));\n Assert.assertEquals(Border.TOP, Border.getBorder(false, false, true, false));\n Assert.assertEquals(Border.TOP_LEFT, Border.getBorder(true, false, true, false));\n Assert.assertEquals(Border.TOP_LEFT_RIGHT, Border.getBorder(true, true, true, false));\n Assert.assertEquals(Border.TOP_RIGHT, Border.getBorder(false, true, true, false));\n }",
"void border(Keywords.BorderSide first, Keywords.BorderSide second, @DelegatesTo(BorderCriterion.class) @ClosureParams(value=FromString.class, options = \"org.modelcatalogue.spreadsheet.query.api.BorderCriterion\") Closure borderConfiguration);",
"protected void paintBorder (Graphics g)\r\n {\n }",
"void border(Keywords.BorderSide first, Keywords.BorderSide second, Keywords.BorderSide third, @DelegatesTo(BorderCriterion.class) @ClosureParams(value=FromString.class, options = \"org.modelcatalogue.spreadsheet.query.api.BorderCriterion\") Closure borderConfiguration);",
"CellStyleCriterion border(Keywords.BorderSide location, Consumer<BorderCriterion> borderConfiguration);",
"private void createAreaWithBorder(int borderWidth, int borderHeight){\n image.setColor(borderColor);\n image.fillRect(0, 0, fieldWidth, fieldHeight);\n \n image.setColor(backgroundColor);\n image.fillRect(borderWidth, borderHeight, fieldWidth - (borderWidth * 2), fieldHeight - (borderHeight * 2));\n }",
"public PaddingBorder(JComponent component) {\n\t\tthis.component = component;\n\t}",
"private BorderPane initializeBorderPane() {\n BorderPane toReturn = new BorderPane();\n\n // Set menu pane\n HBox menu = addTopBox();\n toReturn.setTop(menu);\n\n // Set center pane\n gameMap = new CreatureControl();\n toReturn.setCenter(gameMap);\n\n // Set bottom pane\n HBox bottom = addBottomBox();\n toReturn.setBottom(bottom);\n\n // Roll the animation\n timeline.setCycleCount(Timeline.INDEFINITE);\n\n // Roll the track\n title.setCycleCount(MediaPlayer.INDEFINITE);\n gaming.setCycleCount(MediaPlayer.INDEFINITE);\n playBGM();\n\n return toReturn;\n }",
"public void resetBorders(){\n for (int i = 0; i * 25 < width + 40; i++) {\n if (i == 0) {\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), i * 25, 0, 10));\n } else {\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), i * 25, 0, topborder.get(i - 1).getHeight() + 1));\n }\n }\n\n\n for (int i = 0; i * 25 < width + 40; i++) {\n if (i == 0) {\n botborder.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), i * 25,height-minBorderHeight));\n } else {\n botborder.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.newborder), i * 25, botborder.get(i - 1).getY() - 1));\n }\n }\n }",
"private BorderPane getPane() {\n bigField = new BigField(); // Create a Field model\n view = new BigFieldView(bigField); // Create a pane view\n BorderPane pane = new BorderPane();\n pane.setCenter(view);\n\n return pane;\n }",
"public StockEvent setBorderColor(Color borderColor) {\n this.borderColor = borderColor;\n return this;\n }",
"public java.lang.String getBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BORDER$22);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public BorderDefine[] getBorderDefine() {\n\t\tBorderDefine[] defines = new BorderDefine[4];\n\t\tdefines[0] = border_top != null ? border_top : border;\n\t\tdefines[1] = border_right != null ? border_right : border;\n\t\tdefines[2] = border_bottom != null ? border_bottom : border;\n\t\tdefines[3] = border_left != null ? border_left : border;\n\t\treturn defines;\n\t}",
"public Border getDefaultBorder() { return SCROLL_VIEW_BORDER; }",
"public Border(WorldObjectImpl target, Color color) {\r\n\t\tsuper();\r\n\t\tthis.myColor = color;\r\n\t\tthis.myTarget = target;\r\n\r\n\t\tmyFrame = Path.createRectangle(0f, 0f, 1f, 1f);\r\n\t\tsetPickable(false);\r\n\t\tsetChildrenPickable(false);\r\n\r\n\t\taddChild(myFrame);\r\n\r\n\t\tmyTarget.addPropertyChangeListener(Property.BOUNDS_CHANGED, this);\r\n\r\n\t\tupdateBorder();\r\n\t}",
"public org.apache.xmlbeans.XmlString xgetBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BORDER$22);\n return target;\n }\n }",
"public BorderInfo getBorderEnd() {\n return borderEnd.getBorderInfo();\n }",
"public BoatPattern(final BorderRule rule) {\n super(3,3,rule);\n\n rowPositions = new int[]{1,0,2,1,2};\n colPositions = new int[]{0,1,1,2,2};\n }",
"public void insertBorder(double length, int id) {\n\t\tBorder curBorder = new Border(length, id);\n\n\t\tsumBorder += 1.0 * length; // Total border of the country\n\t\tallBorder.add(curBorder);\n\t\tnumBorder++;\n\t}",
"CellStyleCriterion border(Consumer<BorderCriterion> borderConfiguration);",
"public void xsetBorder(org.apache.xmlbeans.XmlString border)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(BORDER$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(BORDER$22);\n }\n target.set(border);\n }\n }",
"public MapInterface AddBorder(MapInterface map, ArrayList<Border> arrayBorder) throws Exception{\r\n\t\t\r\n\t\t//We are assigning false value to all of our Boolean Map variable.\r\n\t\tfor (int i = 0; i < Border.globalWidth; ++i) {\t\t\t\r\n\t\t\tfor (int j = 0; j < Border.globalHeight; ++j) {\r\n map.ClearBorder(i, j);\r\n }\r\n }\r\n\t\t\r\n\t\tfor(Border temp:arrayBorder) {\r\n\t\t\tmap.SetBorder(temp.getX(), temp.getY());\r\n\t\t}\r\n\t\t\r\n \treturn map;\r\n\t}",
"void border(@DelegatesTo(BorderCriterion.class) @ClosureParams(value=FromString.class, options = \"org.modelcatalogue.spreadsheet.query.api.BorderCriterion\") Closure borderConfiguration);",
"public void unsetBorder()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(BORDER$22);\n }\n }",
"@RestrictTo(Scope.LIBRARY_GROUP)\n @NonNull\n public ModifiersProto.Border toProto() {\n return mImpl;\n }",
"public native MagickImage borderImage(Rectangle borderInfo)\n\t\t\tthrows MagickException;",
"@Override\n public java.lang.Object getUilBoxBorderColor() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (UIL_BOX_BORDER_COLOR_);\n return (java.lang.Object)retnValue;\n }",
"public BorderPanel(){\r\n setLayout(new BorderLayout());\r\n setBackground(Color.green);\r\n JButton b1 = new JButton(\"Button 1\");\r\n JButton b2 = new JButton(\"Button 2\");\r\n JButton b3 = new JButton(\"Button 3\");\r\n JButton b4 = new JButton(\"Button 4\");\r\n JButton b5 = new JButton(\"Button 5\");\r\n add(b1, BorderLayout.CENTER);\r\n add(b2, BorderLayout.NORTH);\r\n add(b3, BorderLayout.SOUTH);\r\n add(b4, BorderLayout.EAST);\r\n add(b5, BorderLayout.WEST);\r\n }",
"public void setBorder(Border border)\r\n {\r\n Border myBorder = border;\r\n if (border instanceof javax.swing.plaf.BorderUIResource.LineBorderUIResource)\r\n {\r\n myBorder = BorderFactory.createEmptyBorder();\r\n }\r\n super.setBorder(myBorder);\r\n }",
"public TextureBorder getBorderX() {\n return mBorderX;\n }",
"public BorderInfo getBorderStart() {\n return borderStart.getBorderInfo();\n }",
"private JRadioButton getJRadioButtonButtBorder() {\r\n\t\t// if (buttBorder == null) {\r\n\t\tbuttBorder = new JRadioButton();\r\n\t\tbuttBorder.setText(\"Border\");\r\n\t\tbuttBorder.setToolTipText(\"prefers the border settings instead of the new size values\");\r\n\t\tbuttBorder.addActionListener(this);\r\n\t\tbuttBorder.setActionCommand(\"parameter\");\r\n\t\t// }\r\n\t\treturn buttBorder;\r\n\t}",
"private void createBorders() {\r\n // Upper border rectangle\r\n Rectangle topRecFrame = new Rectangle(new Point(0, 0), WITH, SIZE + 20);\r\n // Left border rectangle\r\n Rectangle leftRecFrame = new Rectangle(new Point(0, SIZE + 21), SIZE, HEIGHT);\r\n // Right border rectangle\r\n Rectangle rightRecFrame = new Rectangle(new Point(WITH - SIZE, SIZE + 21), SIZE, HEIGHT);\r\n // Rectangle for block on top of upper block for the score\r\n Rectangle topRecScore = new Rectangle(new Point(0, 0), WITH, 20);\r\n Block topScore = new Block(topRecScore, Color.LIGHT_GRAY, 0);\r\n Block topFrame = new Block(topRecFrame, Color.GRAY, 0);\r\n Block leftFrame = new Block(leftRecFrame, Color.gray, 0);\r\n Block rightFrame = new Block(rightRecFrame, Color.gray, 0);\r\n topFrame.addToGame(this);\r\n leftFrame.addToGame(this);\r\n rightFrame.addToGame(this);\r\n topScore.addToGame(this);\r\n\r\n }",
"private void renderBorder() {\n\t\trenderHorizontalLine(0, BORDER_SIGN_HORIZONTAL);\n\t\trenderHorizontalLine(this.output.length - 1, BORDER_SIGN_HORIZONTAL);\n\t\trenderVerticalLine(0, BORDER_SIGN_VERTICAL);\n\t\trenderVerticalLine(this.output[0].length - 1, BORDER_SIGN_VERTICAL);\n\n\t\tthis.output[0][0] = BORDER_SIGN_EDGE;\n\t\tthis.output[0][this.output[0].length - 1] = BORDER_SIGN_EDGE;\n\t\tthis.output[this.output.length - 1][0] = BORDER_SIGN_EDGE;\n\t\tthis.output[this.output.length - 1][this.output[0].length - 1] = BORDER_SIGN_EDGE;\n\t}",
"public void setBorder(java.lang.String border)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BORDER$22);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BORDER$22);\n }\n target.setStringValue(border);\n }\n }",
"void addEventBorder(DefaultBorder border, DefaultBall ball);",
"@Override\n\t\tpublic void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {\n\t\t\tsuper.paintBorder(c, g, x - 1, y, width + 5, height);\n\t\t}",
"public void _BorderColor() {\n testProperty(\"BorderColor\", new PropertyTester() {\n protected Object getNewValue(String p, Object old) {\n return utils.isVoid(old) ? new Integer(1234) : null ;\n }\n }) ;\n }",
"IOverlayStyle borderColor(int color);",
"public LineBorderPanel()\n {\n\tthis(null);\n }",
"private void init() {\n\n this.paint.setStyle(Paint.Style.FILL);\n this.mBorder.setStyle(Paint.Style.STROKE);\n this.mBorder.setColor(Color.GRAY);\n this.mBorder.setStrokeWidth(BORDER_STROKE);\n\n }",
"@Override \n public void paintBorder(Component c, Graphics g, int x, int y, int width, int height){ \n g.setColor( c.getForeground() ); \n g.drawLine(0, height - 1, width, height - 1); //Border Bottom \n }",
"protected void setBorder(Border border) {\n\t\tthis.border = border;\n\t}",
"public void setBorder(int borderHeight, int borderWidth){\n this.borderHeight = borderHeight;\n this.borderWidth = borderWidth;\n }",
"public Border getViewportBorder() {\n/* 571 */ return this.viewportBorder;\n/* */ }",
"public void setBorder(Border border)\n {\n if (field == null)\n {\n return;\n }\n\n field.setBorder(border);\n }",
"void updateBorder(int offset) {\n setBorder(new EmptyBorder(0, offset, 0, 0));\n }",
"public Element(int width, int height, int borderWidth) {\n this.visible = true;\n\n this.width = width;\n this.height = height;\n\n this.borderWidth = borderWidth;\n this.borderColour = DEF_BORDER_COLOUR;\n this.fillColour = DEF_FILL_COLOUR;\n }",
"public native PixelPacket getBorderColor() throws MagickException;",
"protected void paintComponentBorder(Graphics g) {\r\n int height = this.getHeight();\r\n int width = this.getWidth();\r\n Color c = g.getColor();\r\n g.setColor(getUiPrefs().getBorderColor());\r\n g.drawRoundRect(0, 0, width - 1, height - getInsets().bottom, 10, 10);\r\n g.setColor(c);\r\n }",
"public GoalViewer()\r\n/* 25: */ {\r\n/* 26: 28 */ setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n/* 27: */ }",
"public NinePatchBorder(Insets insets, NinePatch np)\r\n\t{\r\n\t\tthis.insets = insets;\r\n\t\tthis.np = np;\r\n\t}",
"public SolidCornerBorder(HtmlMarkupTag parent)\r\n {\r\n super(parent);\r\n }",
"public ScrollPaneBorder()\n {\n super(new Insets(6, 6, 8, 6)//5,4,6,4\n , __Icon9Factory__.getInstance().getScrollPaneBorderBg());\n }",
"public boolean getPaintBorder() {\n\t\treturn paintBorder;\n\t}",
"private void setBorder(CellStyle style, short border) {\n\t\tstyle.setBorderBottom(border);\n\t\tstyle.setBorderTop(border);\n\t\tstyle.setBorderLeft(border);\n\t\tstyle.setBorderRight(border);\n\t}",
"public PDBorderStyleDictionary getBorderStyle() {\n/* 386 */ COSBase bs = getCOSObject().getDictionaryObject(COSName.BS);\n/* 387 */ if (bs instanceof COSDictionary)\n/* */ {\n/* 389 */ return new PDBorderStyleDictionary((COSDictionary)bs);\n/* */ }\n/* 391 */ return null;\n/* */ }",
"public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}",
"public StockEvent setBorderAlpha(Double borderAlpha) {\n this.borderAlpha = borderAlpha;\n return this;\n }",
"public PDBorderEffectDictionary getBorderEffect() {\n/* 458 */ COSDictionary be = (COSDictionary)getCOSObject().getDictionaryObject(COSName.BE);\n/* 459 */ if (be != null)\n/* */ {\n/* 461 */ return new PDBorderEffectDictionary(be);\n/* */ }\n/* */ \n/* */ \n/* 465 */ return null;\n/* */ }",
"private void drawBorder(Graphics2D g2, boolean enabled, int x, int y, int w, int h)\r\n/* 193: */ {\r\n/* 194:228 */ g2.setColor(enabled ? PlasticLookAndFeel.getControlDarkShadow() : MetalLookAndFeel.getControlDisabled());\r\n/* 195: */ \r\n/* 196: */ \r\n/* 197:231 */ g2.drawOval(x, y, w, h);\r\n/* 198: */ }",
"public Color getScrollBorderColor();",
"public static ZoneBorders forRegion(int regionId) {\r\n\t\tint baseX = ((regionId >> 8) & 0xFF) << 6;\r\n\t\tint baseY = (regionId & 0xFF) << 6;\r\n\t\tint size = 64 - 1;\r\n\t\treturn new ZoneBorders(baseX, baseY, baseX + size, baseY + size);\r\n\t}",
"public void createScreenBorders() {\n // set the screen's borders.\n this.upper = 0;\n this.lower = 600;\n this.left = 0;\n this.right = 800;\n }",
"public S create() {\n\t\tS style = createDefault();\n\t\tint id = nextID();\n\t\tstyle.setId(id);\n\t\taddStyle(style);\n\t\treturn style;\n\t}",
"public Triangle(double sideLength, double borderWidth) {\r\n this.sideLength = sideLength;\r\n this.borderWidth = borderWidth;\r\n }",
"@Override\n public java.lang.Object getUilButtonBorderColor() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (UIL_BUTTON_BORDER_COLOR_);\n return (java.lang.Object)retnValue;\n }"
] | [
"0.71954185",
"0.7123163",
"0.7024395",
"0.6775248",
"0.6745523",
"0.6732446",
"0.66750497",
"0.657289",
"0.6552184",
"0.637784",
"0.6375968",
"0.63462085",
"0.6305455",
"0.6301083",
"0.6265581",
"0.62583995",
"0.6256861",
"0.62184244",
"0.6204182",
"0.6165678",
"0.609901",
"0.60738957",
"0.6040886",
"0.5974038",
"0.5942713",
"0.5901187",
"0.5871649",
"0.58677053",
"0.5865442",
"0.58642155",
"0.5859117",
"0.5847322",
"0.5837617",
"0.58355343",
"0.5832762",
"0.5805203",
"0.5784365",
"0.57730454",
"0.577202",
"0.5764872",
"0.5752294",
"0.5741268",
"0.5718044",
"0.57134837",
"0.57127863",
"0.57059455",
"0.56920004",
"0.569155",
"0.565659",
"0.5620424",
"0.5610489",
"0.5609417",
"0.55913067",
"0.5583556",
"0.55813694",
"0.55776066",
"0.557296",
"0.5569772",
"0.555363",
"0.5551525",
"0.55497146",
"0.5544064",
"0.5540476",
"0.55335796",
"0.55230296",
"0.55076784",
"0.550126",
"0.54994315",
"0.54992086",
"0.5498103",
"0.5482001",
"0.5479388",
"0.5456002",
"0.5455289",
"0.5453401",
"0.5438785",
"0.54380614",
"0.54360336",
"0.54332125",
"0.53957886",
"0.537214",
"0.536901",
"0.53580457",
"0.53506273",
"0.53483534",
"0.53439903",
"0.5343376",
"0.53265876",
"0.53178525",
"0.53166795",
"0.52954555",
"0.52571267",
"0.5247431",
"0.52236164",
"0.52149326",
"0.51975954",
"0.519559",
"0.5176302",
"0.51754755",
"0.5174164"
] | 0.8688983 | 0 |
Returns a new object of class 'Padding'. | Padding createPadding(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getPadding();",
"public int getPadding() {\n return padding;\n }",
"public abstract Padding calcPadding(Dim outer, Dim inner);",
"@NonNull\n public Padding build() {\n return new Padding(mImpl.build(), mFingerprint);\n }",
"public void setPadding( Integer p ){\r\n\t\tpadding = p;\r\n\t}",
"public void setPadding(int padding) {\n this.padding = padding;\n }",
"public HintPad setPadding(int padding) {\r\n\t\tthis.padding = padding;\r\n\t\treturn this;\r\n\t}",
"public Graph1 pad () { return new Graph1Pad (C,this); }",
"public int addPadding() {\n\t\tCodeItem codeItem = getCodeItem();\n\t\tint padding = codeItem.getSize() % 4;\n\t\tif (padding != 0) {\n\t\t\tif (padding == 2) {\n\t\t\t\tcodeItem.addInstruction(new InstructionFormat10X(0));\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(\"Padding can only be 0 or 2 ! (\" + method.getMethodName() + \" \" + method.getClassName() + \" \" + codeItem.getSize() + \" \" + padding + \")\");\n\t\t\t}\n\t\t}\n\t\treturn padding;\n\t}",
"public Integer getPadding()\n {\n return (Integer) getStateHelper().eval(PropertyKeys.padding, null);\n }",
"private static BufferedImage pad(BufferedImage in,int padding) {\n\t\tBufferedImage out = new BufferedImage( in.getWidth() + 2*padding, in.getHeight() + 2*padding, BufferedImage.TYPE_INT_ARGB );\n\t\tGraphics2D g = out.createGraphics();\n\t\tg.drawImage(in, 2, 2, null);\n\t\tg.dispose();\n\t\treturn out;\n\t}",
"public void setPadding(Integer padding)\n {\n getStateHelper().put(PropertyKeys.padding, padding);\n }",
"protected AccountingLineTableCell createPaddingCell() {\n AccountingLineTableCell cell = new AccountingLineTableCell();\n cell.setColSpan(2);\n cell.setNeverEmpty(true);\n return cell;\n }",
"public COPSData getPadding(final int len) {\r\n final byte[] padBuf = new byte[len];\r\n Arrays.fill(padBuf, (byte) 0);\r\n return new COPSData(padBuf, 0, len);\r\n }",
"@NonNull\n public Builder setPadding(@NonNull Padding padding) {\n mImpl.setPadding(padding.toProto());\n mFingerprint.recordPropertyUpdate(\n 3, checkNotNull(padding.getFingerprint()).aggregateValueAsInt());\n return this;\n }",
"int getAutoSkipPadding();",
"public int getPadding() {\n\n int len = getTrueSize() % 2880;\n\n if (len == 0) {\n return 0;\n }\n\n return 2880 - len;\n }",
"@Nullable\n public Padding getPadding() {\n if (mImpl.hasPadding()) {\n return Padding.fromProto(mImpl.getPadding());\n } else {\n return null;\n }\n }",
"Pad createPad(String title);",
"@Override public Padding calcPadding(Dim outer, Dim inner) {\n if (outer.lte(inner)) { return null; }\n double dx = (outer.getWidth() - inner.getWidth()) / 2;\n// System.out.println(\"\\t\\t\\tcalcPadding() dx=\" + dx);\n // Like HTML it's top, right, bottom, left\n// System.out.println(\"\\t\\t\\tcalcPadding() outer.y() - inner.y()=\" + (outer.y() - inner.y()));\n return Padding.of(outer.getHeight() - inner.getHeight(), dx, 0, dx);\n }",
"String doPadding(String stringToPadding) {\n if (padder == null) {\n return stringToPadding;\n }\n try {\n return padder.doPadding(stringToPadding);\n }\n catch (IllegalArgumentException ex) {\n throw new IllegalArgumentException(\"Padding du champs >\" + destColumnName\n + \"< (\" + field.getAlias() + \")\" + \" en erreur : \"\n + ex.getMessage());\n }\n }",
"private void setupPadding()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tint main = (int) res.getDimension(R.dimen.sp_main);\n\t\tthis.mPadding[0] = main;\n\t\tthis.mPadding[1] = main;\n\t\tthis.mPadding[2] = 0;\n\t\tthis.mPadding[3] = main;\n\t}",
"public PaddingBorder(JComponent component) {\n\t\tthis.component = component;\n\t}",
"public HydraKey padToLength(int length) throws Exception {\n byte[] originalbytes = this.getEncoded();\n byte[] newbytes = HydraUtils.paddedByteArray(originalbytes, length);\n HydraKey newhydrakey = new HydraKey(newbytes, this.getAlgorithm());\n return newhydrakey;\n\n }",
"private float getPadding() {\n return (getFont().size() - getPreferredWidth()) / 2f;\n }",
"public Calc(){\r\n CalcPad();\r\n }",
"public void setShapePadding(int padding) {\n this.mShapePadding = padding;\n }",
"private int getPadding() {\r\n\t\tint lengthNotBricks = getWidth() - (BRICKS_IN_BASE * BRICK_WIDTH);\r\n\t\treturn (lengthNotBricks / 2);\r\n\t}",
"@Override\n public boolean getPadding(Rect padding) {\n return patternDrawable.getPadding(padding);\n }",
"public void internalSetPadding(int i, int i2, int i3, int i4) {\n }",
"private static final String padding(String body, int lengthLimit) {\n\t\tint length = body.length();\n\t\tfinal int length2pad = lengthLimit - length - LAST_TWO_BITS_INDICATOR;\n\n\t\tif(length2pad <= 0){\n\t\t\treturn body;\n\t\t}\n\t\t\n\t\tint rest2pad = length2pad;\n\n\t\tString padHead = \"\";\n\t\tif (length2pad > length) {\n\t\t\tint gap = length2pad - length;\n\n\t\t\twhile (gap > 0) {\n\t\t\t\tpadHead += '8';\n\t\t\t\t--gap;\n\t\t\t}\n\t\t\trest2pad = length;\n\t\t}\n\t\tfor (int i = 0; i < rest2pad; i++) {\n\t\t\tpadHead += body.charAt(length - i - 1);\n\t\t}\n\n\t\tString newPadHead = '8' + padHead.substring(1);\n\t\tString twoBitsIndicator = \"\";\n\t\tif (length2pad <= 9) {\n\t\t\ttwoBitsIndicator = '0' + String.valueOf(length2pad);\n\t\t} else {\n\t\t\ttwoBitsIndicator = String.valueOf(length2pad);\n\t\t}\n\n\t\tString last = newPadHead + body + twoBitsIndicator;\n\t\treturn last;\n\t}",
"public ColumnOutput setPad() throws IOException {\r\n\t\t\r\n\t\tStringBuilder p = new StringBuilder((getWidth() == UnlimitedWidth)?b.length():getWidth());\r\n\t\tsendToOutput(p);\r\n\t\tpad = p.toString().subSequence(0, p.length());\r\n\t\t\r\n\t\treturn this;\r\n\t}",
"private NotePad() {\n }",
"@Override\n public void setPadding(int left, int top, int right, int bottom) {\n super.setPadding(left, top, right, bottom);\n updatePolygonSize(left, top, right, bottom);\n invalidate(left, top, right, bottom);\n }",
"@RestrictTo(Scope.LIBRARY_GROUP)\n @NonNull\n public static Padding fromProto(\n @NonNull ModifiersProto.Padding proto, @Nullable Fingerprint fingerprint) {\n return new Padding(proto, fingerprint);\n }",
"public char paddingchar() {\n return paddingChar;\n }",
"@SuppressWarnings(\"unused\")\n private void setPadding(final JSONArray args, final CallbackContext callbackContext) throws JSONException {\n JSONObject padding = args.getJSONObject(1);\n int left = padding.getInt(\"left\");\n int top = padding.getInt(\"top\");\n int bottom = padding.getInt(\"bottom\");\n int right = padding.getInt(\"right\");\n map.setPadding(left, top, right, bottom);\n this.sendNoResult(callbackContext);\n }",
"private List<CSSProperty> mapCSSPadding(JSONObject paddingNode) {\n\t\t\tList<CSSProperty> properties = new ArrayList<CSSProperty>();\n\t\t\tIterator<String> values = paddingNode.keys();\n\t\t\twhile (values.hasNext()) {\n\t\t\t\tString value = values.next();\n\t\t\t\tif (value.equals(\"all\")) {\n\t\t\t\t\tproperties.add(createProperty(\"padding\", paddingNode.getString(value)));\n\t\t\t\t} else {\n\t\t\t\t\tproperties.add(createProperty(\"padding-\", paddingNode.getString(value)));\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn properties;\n\t\t}",
"@JSProperty(\"minPadding\")\n double getMinPadding();",
"public void xsetCellpadding(org.apache.xmlbeans.XmlString cellpadding)\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(CELLPADDING$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(CELLPADDING$30);\n }\n target.set(cellpadding);\n }\n }",
"public Encoder withoutPadding() {\n if (!doPadding)\n return this;\n return new Encoder(isURL, newline, lineMax, false);\n }",
"public String padDataForOutputTable(int padding) {\n\t\treturn String.format(\"%-\" + padding + \"s\", this.getWeight());\n\t}",
"public static String lpadding(String content, int len, char pad){\n StringBuilder sb = new StringBuilder();\n for(int i = 0; i < len - content.length(); i++){\n sb.append(pad);\n }\n sb.append(content);\n return sb.toString();\n }",
"@JSProperty(\"maxPadding\")\n double getMaxPadding();",
"private static String padString(String source) {\r\n\r\n String paddedString = source;\r\n char paddingChar = ' ';\r\n int size = 16;\r\n int x = paddedString.length() % size;\r\n int padLength = size - x;\r\n for (int i = 0; i < padLength; i++) {\r\n paddedString += paddingChar;\r\n }\r\n\r\n return paddedString;\r\n }",
"public Ethernet setPad(boolean pad) {\n this.pad = pad;\n return this;\n }",
"Margin createMargin();",
"@Override\n public int getExtendedPaddingTop() {\n return getExtendedPaddingTop(0, getHeight());\n }",
"public void setCellpadding(java.lang.String cellpadding)\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(CELLPADDING$30);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(CELLPADDING$30);\n }\n target.setStringValue(cellpadding);\n }\n }",
"private Object pad(int ca) {\n\t\tif (ca >= 10)\n\t\t\treturn String.valueOf(ca);\n\t\telse\n\t\t\treturn \"0\" + String.valueOf(ca);\n\n\t\t\n\t}",
"public int getPaddedSize() {\n return getTrueSize() + getPadding();\n }",
"public org.apache.xmlbeans.XmlString xgetCellpadding()\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(CELLPADDING$30);\n return target;\n }\n }",
"public AlgorithmPadWithSlices(ModelImage srcImage, ModelImage destImage, int padMode) {\r\n super(destImage, srcImage);\r\n this.padMode = padMode;\r\n\r\n // get local attributes from this.srcImage\r\n Xdim = srcImage.getExtents()[0];\r\n Ydim = srcImage.getExtents()[1];\r\n sliceArea = Xdim * Ydim; // one slice has sliceArea number of pixels\r\n\r\n oldZdim = srcImage.getExtents()[2];\r\n }",
"IsDefaultPadding getBackdropPadding();",
"public Rectangle getPad1(){\n\t\treturn new Rectangle(pad1_x, pad1_y, pad_width, pad_height);\n\t}",
"public AlgorithmPadWithSlices(ModelImage srcImage, int padMode) {\r\n super(null, srcImage);\r\n this.padMode = padMode;\r\n\r\n // get local attributes from this.srcImage\r\n Xdim = srcImage.getExtents()[0];\r\n Ydim = srcImage.getExtents()[1];\r\n sliceArea = Xdim * Ydim; // one slice has sliceArea number of pixels\r\n\r\n oldZdim = srcImage.getExtents()[2];\r\n }",
"Border createBorder();",
"private static StringBuffer Pad(int depth) {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\t\tfor (int i = 0; i < depth; i++)\r\n\t\t\tsb.append(\" \");\r\n\t\treturn sb;\r\n\t}",
"Offset createOffset();",
"private String padded(int i, int length) {\n String current = Integer.toString(i);\n int size = Integer.toString(length).length();\n current = String.format(\"%\" + size + \"s\", current);\n return current;\n }",
"private String pad(String s, int l){ String p=\"\"; for(int i=0; i<l-s.length();i++)p+=\" \"; return \" \"+p+s; }",
"@JSProperty(\"maxPadding\")\n void setMaxPadding(double value);",
"public java.lang.String getCellpadding()\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(CELLPADDING$30);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public void unsetCellpadding()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(CELLPADDING$30);\n }\n }",
"public Alignment()\n\t{\n\t}",
"public boolean isPad() {\n return pad;\n }",
"public void setPadding(float p) {\n\t\tfor(Node node : selected_nodes) {\n\t\t\tnode.setPadding(p);\n\t\t}\n\t}",
"public WriterOptions blockPadding(boolean value) {\n blockPaddingValue = value;\n return this;\n }",
"public static String pad(int fieldWidth, char padChar, String s) {\n StringBuilder sb = new StringBuilder();\n for (int i = s.length(); i < fieldWidth; i++) {\n sb.append(padChar);\n }\n sb.append(s);\n\n return sb.toString();\n }",
"public Paddle createPaddle() {\n int width = this.levelInfo.paddleWidth();\n int speed = this.levelInfo.paddleSpeed();\n // optimize the paddle location to the middle of the screen.\n // it should be placed a half of its' width from the center of the screen (which its' x coordinate is 400)\n double paddleX = 400 - (width / 2);\n double paddleY = 585;\n // create the paddle using the details we received from level info.\n Paddle pad = new Paddle(new Rectangle(new Point(paddleX, paddleY), width, 12),\n Color.ORANGE, speed);\n // update the keyboard sensor to pad.\n pad.updateKeyboardSensor(this.keyboard);\n // update the screen frame to pad.\n pad.updateFrame(this.upper, this.lower, this.right, this.left);\n return pad;\n }",
"abstract void setHeaderPadding(boolean headerPadding);",
"public void setItemAlignmentOffsetWithPadding(boolean withPadding) {\n mLayoutManager.setItemAlignmentOffsetWithPadding(withPadding);\n requestLayout();\n }",
"public final static String formatPriceWithLeftPadding(double price, int padding)\n\t\t\tthrows IllegalArgumentException {\n\t\tif (padding < 0) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Padding can be less than 0 : \" + padding);\n\t\t}\n\t\tString toReturn = decimalFormatter.format(price);\n\t\tint p = toReturn.startsWith(\"-\") ? padding - 1:11;\n\t\twhile (toReturn.length() < p) {\n\t\t\ttoReturn = \" \" + toReturn;\n\t\t}\n\t\treturn toReturn;\n\t}",
"static String padToLength(String s, int len) {\n\t\tStringBuffer sb = new StringBuffer(len);\n\t\tsb.append(s);\n\t\tfor (int i = s.length(); i < len; i++) sb.append(' ');\n\t\treturn sb.toString();\n\t}",
"public static String paddingNumber(int number, int length) {\n\t\tString s = \"\" + number;\n\t\tif(s.length() < length) {\n\t\t\ts = PADDING.substring(0, length - s.length()) + s;\n\t\t}\n\t\treturn s;\n\t}",
"public PacketBuilder() {\n\t\tthis(1024);\n\t}",
"@JSProperty(\"minPadding\")\n void setMinPadding(double value);",
"public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}",
"LengthAdd createLengthAdd();",
"public Builder clearAligning() {\n bitField0_ = (bitField0_ & ~0x00000008);\n aligning_ = false;\n onChanged();\n return this;\n }",
"public ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) {\n return new ViewGroup.MarginLayoutParams(lp);\n }",
"private static StringBuilder generatePaddings(String name, int expectedLength) {\r\n\t\tStringBuilder fixedName = new StringBuilder(name);\r\n\t\tint fixedNameLength = fixedName.length();\r\n\t\tif(fixedName.length() < expectedLength) {\r\n\t\t\tfor (int i = 0; i < expectedLength - fixedNameLength; i++) {\r\n\t\t\t\tfixedName.append(\" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn fixedName;\r\n\t}",
"public ControlSpacer(int width, int height)\n {\n myWidth = width;\n myHeight = height;\n }",
"@Test\n public void testHasNoPadding() {\n System.out.println(\"hasNoPadding\");\n boolean expResult = false;\n boolean result = instance.hasNoPadding();\n assertEquals(expResult, result);\n }",
"private static BigInteger getPadding(BigInteger lp0, BigInteger lp1, int k) {\n\tsha1.update(lp0.toByteArray());\n\tsha1.update(lp1.toByteArray());\n\tsha1.update(BigInteger.valueOf(k).toByteArray());\n\treturn (new BigInteger(sha1.digest())).and(mask);\n }",
"static public String pad(String str, int len)\n {\n int curlen = str.length();\n StringBuffer sb = new StringBuffer(len);\n \n for (int i=0; i<(len-curlen); i++)\n {\n sb.append(\" \");\n }\n sb.append(str);\n \n //System.out.println(\"Str len= \" + curlen + \" new len= \" + len);\n return sb.toString();\n }",
"BitField getSubFieldWithPadding(int from, int to);",
"public ViewGroup.LayoutParams generateDefaultLayoutParams() {\r\n return new ViewGroup.MarginLayoutParams(-1, -2);\r\n }",
"public CArrayFacade<Byte> get_pad() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Byte.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t2\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 14, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 14, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}",
"public static byte padDataLength(byte length) {\n if (length > 48) {\n return 64;\n }\n return paddedDataLengthLookup[length];\n }",
"int[] getRootLayoutPadding() {\n\t\tint LEFT=0, RIGHT=1, TOP=2, BOTTOM=3;\n\t\tint[] padding = new int[4];\n\t\tpadding[LEFT] = (int) getResources().getDimension(R.dimen.activity_horizontal_margin);\n\t\tpadding[RIGHT] = (int) getResources().getDimension(R.dimen.activity_horizontal_margin);\n\t\tpadding[TOP] = (int) getResources().getDimension(R.dimen.activity_vertical_margin);\n\t\tpadding[BOTTOM] = (int) getResources().getDimension(R.dimen.activity_vertical_margin);\n\t\treturn padding;\n\t}",
"public CArrayFacade<Byte> get_pad() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Byte.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t3\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 29, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 21, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}",
"public CArrayFacade<Byte> get_pad() throws IOException\n\t{\n\t\tClass<?>[] __dna__targetTypes = new Class[]{Byte.class};\n\t\tint[] __dna__dimensions = new int[]{\n\t\t\t4\n\t\t};\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 12, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t} else {\n\t\t\treturn new CArrayFacade<Byte>(__io__address + 12, __dna__targetTypes, __dna__dimensions, __io__block, __io__blockTable);\n\t\t}\n\t}",
"@TargetApi(17)\n @Override\n public void setPaddingRelative(int start, int top, int end, int bottom) {\n super.setPaddingRelative(start, top, end, bottom);\n updatePolygonSize();\n invalidate();\n }",
"public Insets getInsets() {\n\t\t\tint k = ringOpacities.length;\n\t\t\treturn new Insets(k, k, k, k);\n\t\t}",
"public void setTempPadding(int left) {\n if (!mIsTempPadding) {\n //mOldPaddingLeft = getPaddingLeft();\n //mOldPaddingRight = getPaddingRight();\n mTempPaddingInHotseat = left;\n mIsTempPadding = true;\n }\n// setPadding(left, top, right, bottom);\n }",
"private String spacer(int length, char spacer) {\n // Do fancy centering\n StringBuilder sb = new StringBuilder();\n Stream.generate(() -> spacer).limit(length).forEach(sb::append);\n return sb.toString();\n }",
"public String padding(String binary, int length, boolean back) {\n\t\twhile (length > 0) {\n\t\t\tif (!back)\n\t\t\t\tbinary = \"0\" + binary;\n\t\t\telse\n\t\t\t\tbinary = binary + \"0\";\n\t\t\tlength--;\n\t\t}\n\t\treturn binary;\n\n\t}",
"public boolean hasPadding() {\n return (buffer.get(0) & 0x20) == 0x020;\n }",
"public static String addLeftPadding(String text, int length) {\n return String.format(\"%\" + length + \".\" + length + \"s\", text);\n }"
] | [
"0.7479202",
"0.6995911",
"0.6913235",
"0.6839072",
"0.683392",
"0.6829851",
"0.66893476",
"0.6512314",
"0.6510794",
"0.6322572",
"0.63031346",
"0.62364495",
"0.6227105",
"0.62228745",
"0.6201491",
"0.61643356",
"0.61243874",
"0.6091284",
"0.60025847",
"0.5941702",
"0.5930681",
"0.5861909",
"0.5848873",
"0.5845817",
"0.5802198",
"0.5779713",
"0.57425684",
"0.57330066",
"0.5625776",
"0.5619482",
"0.5606613",
"0.55934197",
"0.5587775",
"0.55828637",
"0.55807453",
"0.557851",
"0.5551958",
"0.5536651",
"0.5490061",
"0.54658425",
"0.54068774",
"0.5398733",
"0.539228",
"0.53864914",
"0.5371933",
"0.5340002",
"0.5286631",
"0.5279038",
"0.5249969",
"0.5195229",
"0.51793265",
"0.51661444",
"0.5164204",
"0.51583064",
"0.51464456",
"0.51322234",
"0.5127194",
"0.5126536",
"0.51252747",
"0.51165843",
"0.511184",
"0.51050866",
"0.5090647",
"0.507298",
"0.50488234",
"0.4999538",
"0.4998141",
"0.49842492",
"0.49764374",
"0.49626607",
"0.49365914",
"0.49326578",
"0.4928633",
"0.4925246",
"0.4914666",
"0.4910852",
"0.49024832",
"0.48984227",
"0.4885151",
"0.48718745",
"0.48706093",
"0.48509607",
"0.4835113",
"0.48269394",
"0.4826707",
"0.48266506",
"0.4812886",
"0.4808863",
"0.47965166",
"0.47958905",
"0.4794764",
"0.47892147",
"0.47813976",
"0.47671524",
"0.47573724",
"0.47514394",
"0.47420183",
"0.47386828",
"0.47368443",
"0.473037"
] | 0.8663842 | 0 |
Returns the package supported by this factory. | ReactNativePackage getReactNativePackage(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PackageType getRequiredPackage();",
"public PackageNode getPackage();",
"java.lang.String getPackage();",
"public String getPackageName();",
"public String getPackageName() {\n return pkg;\n }",
"String getPackageName();",
"public DsByteString getPackage() {\n return m_strPackage;\n }",
"java.lang.String getPackageName();",
"public String getPackageName() {\n\t\treturn pkgField.getText();\n\t}",
"private static String getPackage() {\n\t\tPackage pkg = EnergyNet.class.getPackage();\n\n\t\tif (pkg != null) {\n\t\t\tString packageName = pkg.getName();\n\n\t\t\treturn packageName.substring(0, packageName.length() - \".api.energy\".length());\n\t\t}\n\n\t\treturn \"ic2\";\n\t}",
"io.deniffel.dsl.useCase.useCase.Package getPackage();",
"public String getPackageInfomartion() {\n\t\treturn packageInfomartion;\n\t}",
"protected abstract String getPackageName();",
"default String getPackageName() {\n return declaringType().getPackageName();\n }",
"public String getPackageName() {\n return packageName.get();\n }",
"String getPackager();",
"public static String getPackageName() {\n return CELibHelper.sPackageName;\n }",
"public Short getPackageType() {\n\t\treturn packageType;\n\t}",
"String getPackage() {\n return mPackage;\n }",
"public String getBasePackage() {\n\t\treturn this.basePackage;\n\t}",
"String pkg();",
"public static String getPackageName() {\n return mPackageName;\n }",
"public String getAppPackage() {\n\t\treturn fnh.getOutputAppPackage();\n\t}",
"public abstract String getTargetPackage();",
"public abstract String getTargetPackage();",
"public java.lang.Boolean getServicePackageInfoSupported() {\r\n return servicePackageInfoSupported;\r\n }",
"EisPackage getEisPackage();",
"private String getPkgName () {\n return context.getPackageName();\n }",
"@NonNull\n RepoPackage getPackage();",
"public UMLPackageBean getPackage() {\n return umlPkg;\n }",
"public String getPackagedJava();",
"public String getPackageName() {\n return packageName;\n }",
"public String getPackageName() {\n return packageName;\n }",
"PiviPackage getPiviPackage();",
"public Package.Builder getBuilder() {\n return pkgBuilder;\n }",
"public String getPackageName() {\n\t\treturn this.PackageName;\n\t}",
"public String getPackaging();",
"public String getPackageName() {\n\t\treturn packageName;\n\t}",
"public String getPackage() {\n return carrierPackage;\n }",
"public abstract String packageName();",
"PackageConfiguration getPackageConfiguration();",
"protected final Product getProduct() {\n Product.Builder product = new Product.Builder()\n .implementationTitle(getClass())\n .implementationVersion(getClass());\n Optional.ofNullable(getClass().getPackage())\n .flatMap(p -> Optional.ofNullable(p.getSpecificationVersion()))\n .map(specVersion -> \"(specification \" + specVersion + \")\")\n .ifPresent(product::comment);\n return product.build();\n }",
"public String getPackageName() {\n JavaType.FullyQualified fq = TypeUtils.asFullyQualified(qualid.getType());\n if (fq != null) {\n return fq.getPackageName();\n }\n String typeName = getTypeName();\n int lastDot = typeName.lastIndexOf('.');\n return lastDot < 0 ? \"\" : typeName.substring(0, lastDot);\n }",
"public PersistedBmmPackage getPackage(String packageName) {\n return packages.get(packageName.toUpperCase());\n }",
"public abstract String getAndroidPackage();",
"NfrPackage getNfrPackage();",
"@NonNull\n public String getPackageName() {\n return mPackageName;\n }",
"public String getBasePackage() {\n\t\treturn DataStore.getInstance().getBasePackage();\n\t}",
"public static String getBukkitPackage() {\n return Bukkit.getServer().getClass().getPackage().getName().split(\"\\\\.\")[3];\n }",
"boolean hasPackageName();",
"public String getPackageName() {\n Object ref = packageName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n packageName_ = s;\n }\n return s;\n }\n }",
"ApiPackage getApiPackage();",
"public String getPackageName() {\n final var lastDotIdx = name.lastIndexOf('.');\n\n if (lastDotIdx > 0) {\n return name.substring(0, lastDotIdx);\n } else {\n throw new CodeGenException(String.format(\"Couldn't determine package name of '%s'\", name));\n }\n }",
"public String getPackageName() {\n if (mPackageName == null) {\n try {\n mPackageName = mSessionBinder.getPackageName();\n } catch (RemoteException e) {\n Log.d(TAG, \"Dead object in getPackageName.\", e);\n }\n }\n return mPackageName;\n }",
"public String getPackageName() {\n Object ref = packageName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n packageName_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"IrSpecificPackage getIrSpecificPackage();",
"public String getPackages() {\n\t\treturn this.packages;\n\t}",
"public String getPackageName() {\n return mAppEntry.info.packageName;\n }",
"com.google.protobuf.ByteString\n getPackageBytes();",
"public static String getCraftBukkitPackage() {\n \t\t// Ensure it has been initialized\n \t\tgetMinecraftPackage();\n \t\treturn CRAFTBUKKIT_PACKAGE;\n \t}",
"NgtPackage getNgtPackage();",
"public String getProductPack() {\n return (String)getAttributeInternal(PRODUCTPACK);\n }",
"public String getModelPackageStr() {\n\t\tString thepackage = getModelXMLTagValue(\"package\");\n\t\treturn thepackage != null ? thepackage + \".\" : \"\";\n\t}",
"VmPackage getVmPackage();",
"String packageName() {\n return name;\n }",
"private PackageService getPackageService() {\n\t\treturn packageService;\n\t}",
"private Package_c getPackage(final String name) {\n\t\tPackage_c communication = Package_c.PackageInstance(modelRoot,\n\t\t\t\tnew ClassQueryInterface_c() {\n\n\t\t\t\t\tpublic boolean evaluate(Object candidate) {\n\t\t\t\t\t\tPackage_c selected = (Package_c) candidate;\n\t\t\t\t\t\treturn selected.getName().equals(name);\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\treturn communication;\n\t}",
"ParkingPackage getParkingPackage();",
"public int getWMCPackaged(){\r\n\t\t \r\n\t\treturn mccabe.getWMCPackage();\t\t\r\n\t}",
"private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }",
"PackageClause getPackageClause();",
"NassishneidermanPackage getNassishneidermanPackage();",
"public String getPackageDesc() {\n\t\treturn packageDesc;\n\t}",
"public String getPkgId() {\n return pkgId;\n }",
"public String getVersionsSupported();",
"public static String getMinecraftPackage() {\n \t\t// Speed things up\n \t\tif (MINECRAFT_FULL_PACKAGE != null) {\n \t\t\treturn MINECRAFT_FULL_PACKAGE;\n \t\t}\n \n \t\tfinal Server craftServer = Bukkit.getServer();\n \n \t\t// This server should have a \"getHandle\" method that we can use\n \t\tif (craftServer != null) {\n \t\t\ttry {\n \t\t\t\tfinal Class<?> craftClass = craftServer.getClass();\n \t\t\t\tfinal Method getHandle = craftClass.getMethod(\"getHandle\");\n \n \t\t\t\tfinal Class<?> returnType = getHandle.getReturnType();\n \t\t\t\tfinal String returnName = returnType.getCanonicalName();\n \n \t\t\t\t// The return type will tell us the full package, regardless of\n \t\t\t\t// formating\n \t\t\t\tCRAFTBUKKIT_PACKAGE = getPackage(craftClass.getCanonicalName());\n \t\t\t\tMINECRAFT_FULL_PACKAGE = getPackage(returnName);\n \t\t\t\treturn MINECRAFT_FULL_PACKAGE;\n \n \t\t\t} catch (final SecurityException e) {\n \t\t\t\tthrow new RuntimeException(\n \t\t\t\t\t\t\"Security violation. Cannot get handle method.\", e);\n \t\t\t} catch (final NoSuchMethodException e) {\n \t\t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\t\"Cannot find getHandle() method on server. Is this a modified CraftBukkit version?\",\n \t\t\t\t\t\te);\n \t\t\t}\n \n \t\t} else {\n \t\t\tthrow new IllegalStateException(\n \t\t\t\t\t\"Could not find Bukkit. Is it running?\");\n \t\t}\n \t}",
"protected EPackage getEPackage() {\r\n return Wps10Package.eINSTANCE;\r\n }",
"CommunicationsprogramsPackage getCommunicationsprogramsPackage();",
"Shipment_Package getShipment_Package();",
"List<String> getSystemPackages();",
"TggPackage getTggPackage();",
"public boolean isPackage()\n {\n ensureLoaded();\n return m_flags.isPackage();\n }",
"public String getSupportedVersion() {\n return supportedVersion;\n }",
"ICpPackInfo getPackInfo();",
"TypePackage getTypePackage();",
"public String getPackingType() {\n return (String)getAttributeInternal(PACKINGTYPE);\n }",
"GramaticaPackage getGramaticaPackage();",
"default String getPackageId() {\n return getIdentifier().getPackageId();\n }",
"Quality_requirements_metamodelPackage getQuality_requirements_metamodelPackage();",
"MatchModelPackage getMatchModelPackage();",
"public String getProjectPackageName() {\n\t\treturn projectPackageName;\n\t}",
"ICpPack getPack();",
"public PackageName getRootPackageName() {\n return rootPackageName;\n }",
"public GeoPackage getGeoPackage() {\n\t\treturn this.geoPackage;\n\t}",
"HiphopsPackage getHiphopsPackage();",
"protected UMLPackage getUMLPackage() {\r\n return currentPackage;\r\n }",
"MystPackage getMystPackage();",
"public Short getPackageSeries() {\n\t\treturn packageSeries;\n\t}",
"public String getPackageId()\n {\n return packageId;\n }",
"ThingMLPackage getThingMLPackage();"
] | [
"0.7030642",
"0.68219304",
"0.68176687",
"0.67518944",
"0.67168355",
"0.6704222",
"0.66963124",
"0.6678106",
"0.6634838",
"0.6555807",
"0.6517008",
"0.64997184",
"0.64957863",
"0.6480896",
"0.6375213",
"0.6349827",
"0.6338247",
"0.6337388",
"0.6326256",
"0.631286",
"0.63117146",
"0.62814355",
"0.62734103",
"0.6249819",
"0.6249819",
"0.6245843",
"0.62172526",
"0.6210726",
"0.61958516",
"0.61865133",
"0.6176152",
"0.6164924",
"0.6164924",
"0.6152656",
"0.61356443",
"0.6129742",
"0.6119366",
"0.61087596",
"0.6094615",
"0.6056496",
"0.6038814",
"0.6006488",
"0.59885395",
"0.59833676",
"0.5971157",
"0.5965084",
"0.59424514",
"0.5940936",
"0.5938904",
"0.5930677",
"0.59224784",
"0.5918125",
"0.59168273",
"0.5894989",
"0.58907413",
"0.58835834",
"0.5882484",
"0.587013",
"0.5851169",
"0.58475924",
"0.5839923",
"0.5839147",
"0.58382696",
"0.5826492",
"0.5816967",
"0.5815403",
"0.5802769",
"0.5786723",
"0.57814753",
"0.5760796",
"0.5757119",
"0.57565314",
"0.5756283",
"0.5752602",
"0.5747642",
"0.57344973",
"0.57317793",
"0.57267463",
"0.57243085",
"0.5718603",
"0.5717192",
"0.5716127",
"0.5705374",
"0.5702361",
"0.56886595",
"0.56853426",
"0.56822586",
"0.56745934",
"0.56731015",
"0.56650394",
"0.5657149",
"0.5645244",
"0.56419563",
"0.56413084",
"0.5638402",
"0.56329834",
"0.56297255",
"0.561226",
"0.5609058",
"0.56047326"
] | 0.56385833 | 94 |
new MovingBar(this, (outln 2), height (outln 2)); | public MovingBar(UI ui, float zX, float zY, float heightY, float radius) {
this.ui = ui;
this.zX = zX;
this.zY = zY;
this.heightY = heightY;
this. radius = radius /8;
for(int i = 0; i < 7; i++){
ranY = ui.random((ui.height/4) * -1, 0);
size.add(ranY);
dy.add(-1);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getBarSize() { return _barSize; }",
"public void progressBar(Rectangle progressBar) {\n \n currentHeight = 0;\n moveProgress = new AnimationTimer() {\n \n \n double heightMax = 210;\n double heightGrow = 5;\n @Override\n public void handle(long now) {\n if(currentHeight < heightMax) {\n currentHeight += heightGrow;\n progressBar.setHeight(currentHeight);\n } else if(currentHeight == heightMax) {\n currentHeight = 0;\n }\n \n \n }\n };\n moveProgress.start();\n }",
"public void drawHealthBar() {}",
"private void drawVerticalScrollBar(){\n }",
"public SketchBar(Number top) {\n super(top);\n }",
"public AiBar(int x, int y, GameManager gm, Color color){\n\t\tsuper(x, y, gm, color);\n\t\try0 = (double) height / 100 * ((100 - rangePercent)/2);\n\t\try1 = (double) height / 100 * rangePercent + ry0;\n\t\tballx = 0;\n\t\tbally = gm.h;\n\t}",
"public interface BarParamsAnimator {\n void start();\n void stop();\n void animate();\n}",
"private void updateBars() {\n \n // get the number of bars to draw\n bars = ( getWidth()-5 - textAreaLenght ) / barLenght;\n \n }",
"public SketchBar(Number top, Number bottom, Integer offset) {\n super(top, bottom);\n setOffset(offset);\n }",
"public SketchBar(Number top, Integer offset) {\n super(top);\n setOffset(offset);\n }",
"double motor_y () { return strut.span + DRIVING_FORCE_HEIGHT; }",
"BossBar createBossBar(String title, float health, BossColor color, BossStyle style);",
"void setupBars() {\n\n // ID, Horiz, Left\n bars.add(new LedBar(0, false, true));\n bars.add(new LedBar(1, true, true));\n bars.add(new LedBar(2, false, false));\n bars.add(new LedBar(3, false, true));\n bars.add(new LedBar(4, true, true));\n bars.add(new LedBar(5, true, false));\n bars.add(new LedBar(6, true, false));\n bars.add(new LedBar(7, true, false));\n bars.add(new LedBar(8, true, false));\n bars.add(new LedBar(9, true, true));\n bars.add(new LedBar(10, false, true));\n bars.add(new LedBar(11, false, false));\n bars.add(new LedBar(12, true, true));\n bars.add(new LedBar(13, false, false));\n bars.add(new LedBar(14, false, true));\n\n // hnext, hprev, vbro\n bars.get(0).setLinks(null, null, bars.get(4));\n bars.get(1).setLinks(bars.get(4), bars.get(8), bars.get(3));\n bars.get(2).setLinks(null, null, bars.get(5));\n bars.get(3).setLinks(null, null, bars.get(1));\n bars.get(4).setLinks(bars.get(9), bars.get(1), bars.get(0));\n bars.get(5).setLinks(bars.get(6), bars.get(12), bars.get(2));\n bars.get(6).setLinks(bars.get(7), bars.get(5), bars.get(11));\n bars.get(7).setLinks(bars.get(8), bars.get(6), bars.get(13));\n bars.get(8).setLinks(bars.get(1), bars.get(7), null); //Only one that hasn't got a vertical 'brother'\n bars.get(9).setLinks(bars.get(12), bars.get(4), bars.get(14));\n bars.get(10).setLinks(null, null, bars.get(12));\n bars.get(11).setLinks(null, null, bars.get(6));\n bars.get(12).setLinks(bars.get(5), bars.get(9), bars.get(10));\n bars.get(13).setLinks(null, null, bars.get(7));\n bars.get(14).setLinks(null, null, bars.get(9));\n\n verticals.add(0);\n verticals.add(2);\n verticals.add(3);\n verticals.add(10);\n verticals.add(11);\n verticals.add(13);\n verticals.add(14);\n }",
"public void changeHeight(double y)\r\n {\n }",
"public void createStatusBar(JPanel bar) {\n bar.setPreferredSize(new Dimension(getWidth(), 25));\n bar.setBackground(Color.LIGHT_GRAY);\n\n // add into container\n bar.add(paintModule.sizeLabel);\n bar.add(paintModule.coordinate);\n\n }",
"@Override\n protected void paintComponent(Graphics g) {\n RoundRectangle2D bar = new RoundRectangle2D.Float(\n innerRadius, -barWidth / 2, outerRadius, barWidth, barWidth, barWidth);\n // x, y, width, height, arc width,arc height\n\n // angle in radians\n double angle = Math.PI * 2.0 / nBars; // between bars\n\n\n Graphics2D g2d = (Graphics2D) g;\n g2d.translate(getWidth() / 2, getHeight() / 2); // center the original point\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, // rendering hints\n RenderingHints.VALUE_ANTIALIAS_ON);\n\n\n // == Added for white bg\n // gets the current clipping area\n Rectangle clip = g.getClipBounds();\n\n // sets a 65% translucent composite\n AlphaComposite alpha = AlphaComposite.SrcOver.derive(0.65f);\n Composite composite = g2d.getComposite();\n g2d.setComposite(alpha);\n\n // fills the background\n g2d.setColor(getBackground());\n g2d.fillRect(clip.x, clip.y, clip.width, clip.height);\n\n\n // for each bar\n for (int i = 0; i < nBars; i++) {\n // compute bar i's color based on the frame index\n Color barColor = new Color((int) barGray, (int) barGray, (int) barGray);\n if (frame != -1) {\n for (int t = 0; t < trailLength; t++) {\n if (i == ((frame - t + nBars) % nBars)) {\n float tlf = trailLength;\n float pct = 1.0f - ((tlf - t) / tlf);\n int gray = (int) ((barGray - (pct * barGray)) + 0.5f);\n barColor = new Color(gray, gray, gray);\n }\n }\n }\n // draw the bar\n g2d.setColor(barColor);\n g2d.fill(bar);\n g2d.rotate(angle);\n }\n\n g2d.setComposite(composite);\n }",
"@Override\n\tpublic void height() {\n\t\t\n\t}",
"BossBar createBossBar(String title, BossColor color, BossStyle style);",
"public double getY() { return _height<0? _y + _height : _y; }",
"public BarChart() {\n\n\t\t//set the initial size of the store for curve data\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tcvV.add(new CurveData());\n\t\t}\n\n\t\tbarChartPanel.add(GP, BorderLayout.CENTER);\n\n\t\tBorder etchedBorder = BorderFactory.createEtchedBorder();\n\t\tborder = BorderFactory.createTitledBorder(etchedBorder, \"Title\");\n\t\tborder.setTitleColor(Color.blue);\n\t\tbarChartPanel.setBorder(border);\n\n\t\tMarkerFormat = new MarkerFormat(barColumns);\n\n\t\tGP.setSmartGL(false);\n\t\tGP.setNumberFormatX(MarkerFormat);\n\n\t\tGP.addHorLimitsListener(\n\t\t\t\t\t\t\t\tnew ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tint nClmns = barColumns.size();\n\t\t\t\tint nMaxLines = 0;\n\t\t\t\tjava.util.Iterator<BarColumn> itr = barColumns.iterator();\n\t\t\t\twhile (itr.hasNext()) {\n\t\t\t\t\tBarColumn bc = itr.next();\n\t\t\t\t\tif (nMaxLines < bc.size()) {\n\t\t\t\t\t\tnMaxLines = bc.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (nClmns > 0 && nMaxLines > 0) {\n\t\t\t\t\t//int iMin = GP.getScreenX(GP.getCurrentMinX());\n\t\t\t\t\t//int iMax = GP.getScreenX(GP.getCurrentMaxX());\n\t\t\t\t\tint iMin = GP.getScreenX(GP.getInnerMinX());\n\t\t\t\t\tint iMax = GP.getScreenX(GP.getInnerMaxX());\n\n\t\t\t\t\twidth = (int) ((iMax - iMin) / (1.9 * nMaxLines * nClmns));\n\t\t\t\t\tif (width < 1) {\n\t\t\t\t\t\twidth = 1;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int i = 1, n = Math.min(nClmns * nMaxLines + 1, cvV.size()); i < n; i++) {\n\t\t\t\t\t\tCurveData cd = cvV.get(i);\n\t\t\t\t\t\tcd.setLineWidth(width);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tRunnable runRefresh =\n\t\t\t\tnew Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tGP.refreshGraphJPanel();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\tThread mThread = new Thread(runRefresh);\n\t\t\t\tmThread.start();\n\t\t\t}\n\t\t});\n\n\t\t//operations with clicked point object\n\t\tJLabel infoLabel = new JLabel(\" Clicked Point Info: \", JLabel.CENTER);\n\n\t\tFunctionGraphsJPanel.ClickedPoint cpObj = GP.getClickedPointObject();\n\t\tcpObj.xValueLabel = new JLabel(\"X-Marker=\", JLabel.RIGHT);\n\t\tcpObj.xValueFormat = MarkerFormat;\n\t\tcpObj.xValueText = new JTextField(10);\n\t\tcpObj.xValueText.setHorizontalAlignment(JTextField.CENTER);\n\t\tcpObj.xValueText.setForeground(Color.blue);\n\n\t\tcpObj.yValueLabel = new JLabel(\" Value=\", JLabel.RIGHT);\n\t\tcpObj.yValueFormat = fortranFrmt;\n\t\tcpObj.yValueText = new JTextField(12);\n\t\tcpObj.yValueText.setHorizontalAlignment(JTextField.CENTER);\n\t\tcpObj.yValueText.setForeground(Color.blue);\n\n\t\tJPanel infoPanel = new JPanel(new FlowLayout(FlowLayout.LEFT, 4, 0));\n\t\tinfoPanel.add(infoLabel);\n\t\tinfoPanel.add(cpObj.xValueLabel);\n\t\tinfoPanel.add(cpObj.xValueText);\n\t\tinfoPanel.add(cpObj.yValueLabel);\n\t\tinfoPanel.add(cpObj.yValueText);\n\n\t\tbarChartPanel.add(infoPanel, BorderLayout.SOUTH);\n\t}",
"public float getSizeY(){return sy;}",
"private void setBarValues() {\n\t\t// Get highest value\n\t\tint iMax = 0;\n\t\tdouble dMax = 0;\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\tif (dMax < a[i]) {\n\t\t\t\tiMax = i;\n\t\t\t\tdMax = a[i];\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t// Highlight leading alternative\n\t\t\tif (i == iMax)\n\t\t\t\talternativeBarComponents[i].doUpdate(a[i], SWT.NORMAL);\n\t\t\telse\n\t\t\t\talternativeBarComponents[i].doUpdate(a[i], SWT.PAUSED);\n\t\t}\n\t}",
"public VerticalScrollbar() {}",
"public SketchBarChart() {\n super(\"bar_sketch\");\n }",
"public int mover()\n { this.ubicacion.y-=20;\n return this.ubicacion.y;\n }",
"public Boolean getShowHBar() { return _showHBar; }",
"protected int getHeightDelta() {\n return super.getHeightDelta()+ menuBarHeightDelta;\n }",
"public void update(){\n infoBar = new GreenfootImage (960, 50);\n infoBar.setFont(textFont);\n infoBar.setColor(textColor);\n String output = (\"Trees: \" + numTrees + \" Bushes: \" + numBushes + \" Prey: \" + numPrey + \" Predators: \" + numPredators);\n\n //centres the output on the bar.\n int centre = (960/2) - ((output.length() * 14)/2);\n\n infoBar.drawString(output, centre, 22); //draw the bar.\n this.setImage(infoBar);\n }",
"public void paintComponent(Graphics g)\n {\n Graphics2D g2 = (Graphics2D) g;\n \n //draws the lines\n g2.drawLine(0,200,800,200);\n g2.drawLine(0,400,800,400);\n \n //draws the bars on the bar graph\n int counter = 55;\n \n for(int i = 0; i < 30; i++)\n {\n bar[i] = new Rectangle();\n bar[i].x = counter;\n bar[i].y = 400 - a[i] * 3;\n bar[i].width = 15;\n bar[i].height = a[i] * 3;\n \n int color = 0;\n color = a[i];\n \n if(color > 0 && color <=4)\n g2.setColor(Color.RED);\n if(color > 4 && color <=9)\n g2.setColor(Color.ORANGE);\n if(color > 9 && color <=14)\n g2.setColor(Color.YELLOW);\n if(color > 14 && color <=19)\n g2.setColor(Color.GREEN);\n if(color > 19 && color <=24)\n g2.setColor(Color.CYAN);\n if(color > 24 && color <=29)\n g2.setColor(Color.BLUE);\n if(color > 29 && color <=34)\n g2.setColor(Color.PINK);\n if(color > 34 && color <=39)\n g2.setColor(Color.MAGENTA);\n if(color > 39 && color <=44)\n g2.setColor(Color.LIGHT_GRAY); \n if(color > 44 && color <=49)\n g2.setColor(Color.DARK_GRAY);\n if(color == 50)\n g2.setColor(Color.BLACK);\n \n g2.fill(bar[i]);\n g2.setColor(Color.BLACK);\n g2.draw(bar[i]);\n \n if(a[i] != 0)\n {\n Font font = new Font(\"Arial\", Font.BOLD, 12);\n g2.setFont(font);\n \n if(a[i] / 10 == 0)\n {\n g2.drawString(\"0\" + a[i] , counter+1, 390-a[i]*3);\n }\n else\n g2.drawString(\"\" + a[i] , counter+1, 390-a[i]*3);\n }\n \n counter = counter + 24;\n }\n \n Font font1 = new Font(\"Arial\", Font.PLAIN, 12);\n g2.setFont(font1);\n \n //draws the values\n for(int i = 0; i < 10; i++)\n {\n g2.drawString(i + \"\", i*75 + 60, 215);\n }\n \n \n \n \n //draws the buckets\n for(int i = 0; i < k; i++)\n {\n g2.drawString(\"Bucket\", 1, 215);\n g2.drawString(\"Values\", 1, 415);\n \n \n if(zero.size() != 0)\n {\n for(int j = 0; j < zero.size(); j++)\n {\n rect[j] = new Rectangle();\n rect[j].x = 50;\n rect[j].y = 185 - j*15;\n rect[j].width = 25;\n rect[j].height = 15;\n \n int color = 0;\n color = zero.get(j);\n \n if(color > 0 && color <=4)\n g2.setColor(Color.RED);\n if(color > 4 && color <=9)\n g2.setColor(Color.ORANGE);\n if(color > 9 && color <=14)\n g2.setColor(Color.YELLOW);\n if(color > 14 && color <=19)\n g2.setColor(Color.GREEN);\n if(color > 19 && color <=24)\n g2.setColor(Color.CYAN);\n if(color > 24 && color <=29)\n g2.setColor(Color.BLUE);\n if(color > 29 && color <=34)\n g2.setColor(Color.PINK);\n if(color > 34 && color <=39)\n g2.setColor(Color.MAGENTA);\n if(color > 39 && color <=44)\n g2.setColor(Color.LIGHT_GRAY); \n if(color > 44 && color <=49)\n g2.setColor(Color.DARK_GRAY);\n if(color == 50)\n g2.setColor(Color.BLACK);\n \n g2.fill(rect[j]);\n g2.setColor(Color.BLACK);\n g2.draw(rect[j]);\n }\n }\n if(one.size() != 0)\n {\n for(int j = 0; j < one.size(); j++)\n {\n rect[j] = new Rectangle();\n rect[j].x = 125;\n rect[j].y = 185 - j*15;\n rect[j].width = 25;\n rect[j].height = 15;\n g2.draw(rect[j]);\n \n \n int color = 0;\n color = one.get(j);\n \n if(color > 0 && color <=4)\n g2.setColor(Color.RED);\n if(color > 4 && color <=9)\n g2.setColor(Color.ORANGE);\n if(color > 9 && color <=14)\n g2.setColor(Color.YELLOW);\n if(color > 14 && color <=19)\n g2.setColor(Color.GREEN);\n if(color > 19 && color <=24)\n g2.setColor(Color.CYAN);\n if(color > 24 && color <=29)\n g2.setColor(Color.BLUE);\n if(color > 29 && color <=34)\n g2.setColor(Color.PINK);\n if(color > 34 && color <=39)\n g2.setColor(Color.MAGENTA);\n if(color > 39 && color <=44)\n g2.setColor(Color.LIGHT_GRAY); \n if(color > 44 && color <=49)\n g2.setColor(Color.DARK_GRAY);\n if(color == 50)\n g2.setColor(Color.BLACK);\n \n g2.fill(rect[j]);\n g2.setColor(Color.BLACK);\n g2.draw(rect[j]);\n }\n }\n if(two.size() != 0)\n {\n for(int j = 0; j < two.size(); j++)\n {\n rect[j] = new Rectangle();\n rect[j].x = 200;\n rect[j].y = 185 - j*15;\n rect[j].width = 25;\n rect[j].height = 15;\n g2.draw(rect[j]);\n \n \n int color = 0;\n color = two.get(j);\n \n if(color > 0 && color <=4)\n g2.setColor(Color.RED);\n if(color > 4 && color <=9)\n g2.setColor(Color.ORANGE);\n if(color > 9 && color <=14)\n g2.setColor(Color.YELLOW);\n if(color > 14 && color <=19)\n g2.setColor(Color.GREEN);\n if(color > 19 && color <=24)\n g2.setColor(Color.CYAN);\n if(color > 24 && color <=29)\n g2.setColor(Color.BLUE);\n if(color > 29 && color <=34)\n g2.setColor(Color.PINK);\n if(color > 34 && color <=39)\n g2.setColor(Color.MAGENTA);\n if(color > 39 && color <=44)\n g2.setColor(Color.LIGHT_GRAY); \n if(color > 44 && color <=49)\n g2.setColor(Color.DARK_GRAY);\n if(color == 50)\n g2.setColor(Color.BLACK);\n \n g2.fill(rect[j]);\n g2.setColor(Color.BLACK);\n g2.draw(rect[j]);\n }\n }\n if(three.size() != 0)\n {\n for(int j = 0; j < three.size(); j++)\n {\n rect[j] = new Rectangle();\n rect[j].x = 275;\n rect[j].y = 185 - j*15;\n rect[j].width = 25;\n rect[j].height = 15;\n g2.draw(rect[j]);\n \n \n int color = 0;\n color = three.get(j);\n \n if(color > 0 && color <=4)\n g2.setColor(Color.RED);\n if(color > 4 && color <=9)\n g2.setColor(Color.ORANGE);\n if(color > 9 && color <=14)\n g2.setColor(Color.YELLOW);\n if(color > 14 && color <=19)\n g2.setColor(Color.GREEN);\n if(color > 19 && color <=24)\n g2.setColor(Color.CYAN);\n if(color > 24 && color <=29)\n g2.setColor(Color.BLUE);\n if(color > 29 && color <=34)\n g2.setColor(Color.PINK);\n if(color > 34 && color <=39)\n g2.setColor(Color.MAGENTA);\n if(color > 39 && color <=44)\n g2.setColor(Color.LIGHT_GRAY); \n if(color > 44 && color <=49)\n g2.setColor(Color.DARK_GRAY);\n if(color == 50)\n g2.setColor(Color.BLACK);\n \n g2.fill(rect[j]);\n g2.setColor(Color.BLACK);\n g2.draw(rect[j]);\n }\n }\n \n if(four.size() != 0)\n {\n for(int j = 0; j < four.size(); j++)\n {\n rect[j] = new Rectangle();\n rect[j].x = 350;\n rect[j].y = 185 - j*15;\n rect[j].width = 25;\n rect[j].height = 15;\n g2.draw(rect[j]);\n \n \n int color = 0;\n color = four.get(j);\n \n if(color > 0 && color <=4)\n g2.setColor(Color.RED);\n if(color > 4 && color <=9)\n g2.setColor(Color.ORANGE);\n if(color > 9 && color <=14)\n g2.setColor(Color.YELLOW);\n if(color > 14 && color <=19)\n g2.setColor(Color.GREEN);\n if(color > 19 && color <=24)\n g2.setColor(Color.CYAN);\n if(color > 24 && color <=29)\n g2.setColor(Color.BLUE);\n if(color > 29 && color <=34)\n g2.setColor(Color.PINK);\n if(color > 34 && color <=39)\n g2.setColor(Color.MAGENTA);\n if(color > 39 && color <=44)\n g2.setColor(Color.LIGHT_GRAY); \n if(color > 44 && color <=49)\n g2.setColor(Color.DARK_GRAY);\n if(color == 50)\n g2.setColor(Color.BLACK);\n \n g2.fill(rect[j]);\n g2.setColor(Color.BLACK);\n g2.draw(rect[j]);\n }\n }\n if(five.size() != 0)\n {\n for(int j = 0; j < five.size(); j++)\n {\n rect[j] = new Rectangle();\n rect[j].x = 425;\n rect[j].y = 185 - j*15;\n rect[j].width = 25;\n rect[j].height = 15;\n g2.draw(rect[j]);\n \n \n int color = 0;\n color = five.get(j);\n \n if(color > 0 && color <=4)\n g2.setColor(Color.RED);\n if(color > 4 && color <=9)\n g2.setColor(Color.ORANGE);\n if(color > 9 && color <=14)\n g2.setColor(Color.YELLOW);\n if(color > 14 && color <=19)\n g2.setColor(Color.GREEN);\n if(color > 19 && color <=24)\n g2.setColor(Color.CYAN);\n if(color > 24 && color <=29)\n g2.setColor(Color.BLUE);\n if(color > 29 && color <=34)\n g2.setColor(Color.PINK);\n if(color > 34 && color <=39)\n g2.setColor(Color.MAGENTA);\n if(color > 39 && color <=44)\n g2.setColor(Color.LIGHT_GRAY); \n if(color > 44 && color <=49)\n g2.setColor(Color.DARK_GRAY);\n if(color == 50)\n g2.setColor(Color.BLACK);\n \n g2.fill(rect[j]);\n g2.setColor(Color.BLACK);\n g2.draw(rect[j]);\n }\n }\n if(six.size() != 0)\n {\n for(int j = 0; j < six.size(); j++)\n {\n rect[j] = new Rectangle();\n rect[j].x = 500;\n rect[j].y = 185 - j*15;\n rect[j].width = 25;\n rect[j].height = 15;\n g2.draw(rect[j]);\n \n \n int color = 0;\n color = six.get(j);\n \n if(color > 0 && color <=4)\n g2.setColor(Color.RED);\n if(color > 4 && color <=9)\n g2.setColor(Color.ORANGE);\n if(color > 9 && color <=14)\n g2.setColor(Color.YELLOW);\n if(color > 14 && color <=19)\n g2.setColor(Color.GREEN);\n if(color > 19 && color <=24)\n g2.setColor(Color.CYAN);\n if(color > 24 && color <=29)\n g2.setColor(Color.BLUE);\n if(color > 29 && color <=34)\n g2.setColor(Color.PINK);\n if(color > 34 && color <=39)\n g2.setColor(Color.MAGENTA);\n if(color > 39 && color <=44)\n g2.setColor(Color.LIGHT_GRAY); \n if(color > 44 && color <=49)\n g2.setColor(Color.DARK_GRAY);\n if(color == 50)\n g2.setColor(Color.BLACK);\n \n g2.fill(rect[j]);\n g2.setColor(Color.BLACK);\n g2.draw(rect[j]);\n }\n }\n if(seven.size() != 0)\n {\n for(int j = 0; j < seven.size(); j++)\n {\n rect[j] = new Rectangle();\n rect[j].x = 575;\n rect[j].y = 185 - j*15;\n rect[j].width = 25;\n rect[j].height = 15;\n g2.draw(rect[j]);\n \n \n int color = 0;\n color = seven.get(j);\n \n if(color > 0 && color <=4)\n g2.setColor(Color.RED);\n if(color > 4 && color <=9)\n g2.setColor(Color.ORANGE);\n if(color > 9 && color <=14)\n g2.setColor(Color.YELLOW);\n if(color > 14 && color <=19)\n g2.setColor(Color.GREEN);\n if(color > 19 && color <=24)\n g2.setColor(Color.CYAN);\n if(color > 24 && color <=29)\n g2.setColor(Color.BLUE);\n if(color > 29 && color <=34)\n g2.setColor(Color.PINK);\n if(color > 34 && color <=39)\n g2.setColor(Color.MAGENTA);\n if(color > 39 && color <=44)\n g2.setColor(Color.LIGHT_GRAY); \n if(color > 44 && color <=49)\n g2.setColor(Color.DARK_GRAY);\n if(color == 50)\n g2.setColor(Color.BLACK);\n \n g2.fill(rect[j]);\n g2.setColor(Color.BLACK);\n g2.draw(rect[j]);\n }\n }\n if(eight.size() != 0)\n {\n for(int j = 0; j < eight.size(); j++)\n {\n rect[j] = new Rectangle();\n rect[j].x = 650;\n rect[j].y = 185 - j*15;\n rect[j].width = 25;\n rect[j].height = 15;\n g2.draw(rect[j]);\n \n \n int color = 0;\n color = eight.get(j);\n \n if(color > 0 && color <=4)\n g2.setColor(Color.RED);\n if(color > 4 && color <=9)\n g2.setColor(Color.ORANGE);\n if(color > 9 && color <=14)\n g2.setColor(Color.YELLOW);\n if(color > 14 && color <=19)\n g2.setColor(Color.GREEN);\n if(color > 19 && color <=24)\n g2.setColor(Color.CYAN);\n if(color > 24 && color <=29)\n g2.setColor(Color.BLUE);\n if(color > 29 && color <=34)\n g2.setColor(Color.PINK);\n if(color > 34 && color <=39)\n g2.setColor(Color.MAGENTA);\n if(color > 39 && color <=44)\n g2.setColor(Color.LIGHT_GRAY); \n if(color > 44 && color <=49)\n g2.setColor(Color.DARK_GRAY);\n if(color == 50)\n g2.setColor(Color.BLACK);\n \n g2.fill(rect[j]);\n g2.setColor(Color.BLACK);\n g2.draw(rect[j]);\n }\n }\n if(nine.size() != 0)\n {\n for(int j = 0; j < nine.size(); j++)\n {\n rect[j] = new Rectangle();\n rect[j].x = 725;\n rect[j].y = 185 - j*15;\n rect[j].width = 25;\n rect[j].height = 15;\n g2.draw(rect[j]);\n \n \n int color = 0;\n color = nine.get(j);\n \n if(color > 0 && color <=4)\n g2.setColor(Color.RED);\n if(color > 4 && color <=9)\n g2.setColor(Color.ORANGE);\n if(color > 9 && color <=14)\n g2.setColor(Color.YELLOW);\n if(color > 14 && color <=19)\n g2.setColor(Color.GREEN);\n if(color > 19 && color <=24)\n g2.setColor(Color.CYAN);\n if(color > 24 && color <=29)\n g2.setColor(Color.BLUE);\n if(color > 29 && color <=34)\n g2.setColor(Color.PINK);\n if(color > 34 && color <=39)\n g2.setColor(Color.MAGENTA);\n if(color > 39 && color <=44)\n g2.setColor(Color.LIGHT_GRAY); \n if(color > 44 && color <=49)\n g2.setColor(Color.DARK_GRAY);\n if(color == 50)\n g2.setColor(Color.BLACK);\n \n g2.fill(rect[j]);\n g2.setColor(Color.BLACK);\n g2.draw(rect[j]);\n }\n }\n }\n \n //copies original array to an array list\n //copies final array to an array list\n ArrayList<Integer> startingArrayList = new ArrayList<Integer>();\n ArrayList<Integer> finalArrayList = new ArrayList<Integer>();\n for(int i = 0; i < 30; i++)\n {\n startingArrayList.add(b[i]);\n finalArrayList.add(a[i]);\n }\n \n //displays original and final array\n Font font3 = new Font(\"Arial\", Font.PLAIN, 13);\n g2.setFont(font3); \n g2.drawString(\"The number of comparisons are: 0\", 2, 475);\n g2.drawString(\"The number of swaps are: \" + s, 2, 500);\n g2.drawString(\"The original numbers are: \" + startingArrayList, 2, 525);\n g2.drawString(\"The sorted numbers are: \" + finalArrayList, 2, 550);\n }",
"public FooterBarBehavior() {\n }",
"int getHeight() {return height;}",
"public SegmentedBar() {\n segments.addListener((Observable it) -> listenToValues());\n listenToValues();\n\n getStyleClass().add(DEFAULT_STYLE);\n\n setSegmentViewFactory(segment -> new SegmentView(segment));\n setInfoNodeFactory(segment -> {\n Label label = new Label(\"Value: \" + segment.getValue());\n label.setPadding(new Insets(4));\n return label;\n });\n\n }",
"Controls () {\n \n barX = 40;\n barWidth = 15;\n \n minY = 40;\n maxY = minY + height/3 - sliderHeight/2;\n \n minZoomValue = height - height;\n maxZoomValue = height; // 300 percent\n valuePerY = (maxZoomValue - minZoomValue) / (maxY - minY);\n \n sliderWidth = 25;\n sliderHeight = 10;\n sliderX = (barX + (barWidth/2)) - (sliderWidth/2); \n sliderValue = minZoomValue; \n sliderY = minY; \n }",
"public FourBarOpenAndClose(FourBar fourBar) {\r\n // Add your commands in the super() call, e.g.\r\n super(new FourBarHalfOpen(fourBar), new FourBarHalfClose(fourBar), new delayAuto(0.6),new FourBarHalfOpen(fourBar), new FourBarHalfClose(fourBar), new delayAuto(0.25));\r\n \r\n }",
"private void updateBar() {\n\t\tString resources = String.format(\"Money: $%d\\nAgents: %d\\nMedia reach: %d\\nPopulation unrest: %d\"\n\t\t\t\t, player.getMoney(), player.getAgentNumber(), player.getMediaReach(), player.getUnrestSpread());\n\t\t((TextView) findViewById(R.id.text_resource_display_left)).setText(resources);\n\t\t\n\t\tresources = String.format(\"\\nAgent skill: %.0f%%\\nMedia influence: %.0f%%\\nPopulation care: %.0f%%\"\n\t\t\t\t, player.getAgentSkill(), player.getMediaPerception(), player.getUnrestStrength());\n\t\t((TextView) findViewById(R.id.text_resource_display_right)).setText(resources);\n\t}",
"protected abstract void mo3469a(ProgressBar progressBar);",
"protected abstract void mo3471b(ProgressBar progressBar);",
"private JPanel topBar() {\n\t\t\n\t\t//creating a top bar with controls\n\t\tJPanel topBar = new JPanel();\n\t\tColor myPurp = new Color(191, 123, 123);\n\t\ttopBar.setBackground(myPurp);\n\t\t\n\t\t//reset button with listener\n\t\ttopBar.add(reset);\n\t\treset.addActionListener(this);\n\t\t\n\t\t//creating button that starts simulation\n\t\tstart.setSelected(false);\n\t\tstart.addActionListener(this);\n\t\ttopBar.add(start);\n\t\t\n\t\t//creating button that stops simulation\n\t\tstop.setSelected(true);\n\t\tstop.addActionListener(this);\n\t\ttopBar.add(stop);\n\t\t\n\t\t//button group to ensure you cannot start and stop at same time\n\t\tButtonGroup startStop = new ButtonGroup();\n\t\tstartStop.add(start);\n\t\tstartStop.add(stop);\n\t\t\n\t\t//creating label that shows # of steps\n\t\tsteps.setHorizontalAlignment(JLabel.CENTER);\n\t\ttopBar.add(steps);\n\t\t\n\t\t\n\t\treturn topBar;\n\t}",
"@Override\r\n\tpublic void onXMinBar(Bar bar) throws Exception {\n\t\t\r\n\t}",
"public float getPosY(){return py;}",
"private void setBar(){\n lastBarHitId = beats.get(lastBeatHitId).getContainedIn();\n }",
"public void onBar(Bar event) {\n barCount++;\n }",
"private void ini_Progressbar()\r\n\t{\r\n\r\n\t\tfloat ref = UiSizes.that.getWindowHeight() / 13;\r\n\t\tCB_RectF CB_LogoRec = new CB_RectF(this.getHalfWidth() - (ref * 2.5f), this.getHeight() - ((ref * 5) / 4.11f) - ref, ref * 5,\r\n\t\t\t\t(ref * 5) / 4.11f);\r\n\r\n\t\t// CB_Logo = new Image(CB_LogoRec, \"CB_Logo\");\r\n\t\t// CB_Logo.setDrawable(new SpriteDrawable(atlas.createSprite(\"cachebox-logo\")));\r\n\t\t// this.addChild(CB_Logo);\r\n\r\n\t\tString VersionString = Global.getVersionString();\r\n\t\tTextBounds bounds = Fonts.getNormal().getMultiLineBounds(VersionString + Global.br + Global.br + Global.splashMsg);\r\n\t\tdescTextView = new Label(0, CB_LogoRec.getY() - ref - bounds.height, this.getWidth(), bounds.height + 10, \"DescLabel\");\r\n\t\t// HAlignment.CENTER funktioniert (hier) (noch) nicht, es kommt rechtsbündig raus\r\n\t\tdescTextView.setWrappedText(VersionString + Global.br + Global.br + Global.splashMsg);\r\n\t\tdescTextView.setHAlignment(HAlignment.CENTER);\r\n\t\tthis.addChild(descTextView);\r\n\r\n\t\tDrawable ProgressBack = new NinePatchDrawable(atlas.createPatch(\"btn-normal\"));\r\n\t\tDrawable ProgressFill = new NinePatchDrawable(atlas.createPatch(\"progress\"));\r\n\r\n\t\tfloat ProgressHeight = Math.max(ProgressBack.getBottomHeight() + ProgressBack.getTopHeight(), ref / 1.5f);\r\n\r\n\t\tprogress = new ProgressBar(new CB_RectF(0, 0, this.getWidth(), ProgressHeight), \"Splash.ProgressBar\");\r\n\r\n\t\tprogress.setBackground(ProgressBack);\r\n\t\tprogress.setProgressFill(ProgressFill);\r\n\t\tthis.addChild(progress);\r\n\r\n\t\tfloat logoCalcRef = ref * 1.5f;\r\n\r\n\t\tCB_RectF rec_Mapsforge_Logo = new CB_RectF(200, 50, logoCalcRef, logoCalcRef / 1.142f);\r\n\t\tCB_RectF rec_FX2_Logo = new CB_RectF(rec_Mapsforge_Logo);\r\n\t\tfloat w = logoCalcRef * 2.892655367231638f;\r\n\t\tCB_RectF rec_LibGdx_Logo = new CB_RectF(this.getHalfWidth() - (w / 2), 50, w, w);\r\n\r\n\t\trec_FX2_Logo.setX(400);\r\n\r\n\t\tLasifant = new LasifantAnimation(rec_LibGdx_Logo, \"LibGdx_Logo\");\r\n\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-1\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-2\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-3\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-4\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-5\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-6\"));\r\n\t\tLasifant.addFrame(atlas.createSprite(\"logo-7\"));\r\n\t\tLasifant.addLastFrame(atlas.createSprite(\"logo-8\"));\r\n\r\n\t\tLasifant.play();\r\n\r\n\t\tthis.addChild(Lasifant);\r\n\r\n\t}",
"public void drawHealthBar() {\n\t\td.setColor(Color.GREEN);\n\t\td.setFont(f1);\n\t\td.drawString(\"Health\", 387, 43);\n\t\td.setFont(f);\n\t\td.fillRect(227, 48, health * 100, 25);\n\t\td.setColor(Color.BLACK);\n\t\td.drawLine(327, 48, 327, 73);\n\t\td.drawLine(427, 48, 427, 73);\n\t\td.drawLine(527, 48, 527, 73);\n\t\td.drawRect(227, 48, 400, 25);\n\t}",
"public double height() { return _height; }",
"public ProgressBar(Vector2 position, Vector2 size, Texture containerTexture, Texture barTexture) {\n super(position, size, containerTexture);\n _innerSize = new Vector2(0.0f, _size._y);\n _innerTexture = barTexture;\n setProgress(0.0f);\n }",
"@Override\n public void paint(Graphics g) {\n super.paint(g);\n\n // Drawing bar filling according to actual left health \n g.setColor(this.barColor);\n int health = (int) Math.floor((double) this.barWidth / (double) max * (double) value);\n g.fillRect(10, 18, health, 23);\n\n // Drawing bar contours... Just graphics\n g.setColor(this.barBorderColor);\n g.drawRect(10, 18, this.barWidth, this.barHeight);\n\n // Drawing text information of the remaining life\n g.drawImage(healthTrapeze, 240, 41, null);\n g.setColor(Color.white);\n String remainingLife = String.format(\"%1$\" + 10 + \"s\", this.value + \"/\" + this.max + \" HP\");\n g.drawString(remainingLife, 251, 53);\n\n // Drawing hearts whose numbers is = number of remaining lifes\n if (this.lives > 6) {\n g.drawImage(heartIcon, 10, 50, null);\n g.setColor(Color.WHITE);\n g.drawString(\"X\" + this.lives, 50, 70);\n return;\n }\n for (int i = 0; i < this.lives; i++) {\n g.drawImage(heartIcon, 10 + i * 40, 50, null);\n }\n }",
"private void add_bar(Bar bar) {\n PVector vector = new PVector(); // vector along the bar\n PVector norm = new PVector(); // normalized vector\n PVector step = new PVector(); // step vector per pixel\n PVector start = new PVector(); // starting coordinates\n PVector coords = new PVector(); // current coordinates\n\n float density = pixel_density;\n float buffer = pixel_buffer;\n String layout = pixel_layout;\n float rate = 1f / density;\n if (buffer == 0.f) {\n buffer = rate;\n } // pixels never start right at a node\n\n //============ Vector Magic\n PVector.sub(get_node(bar.node2).xyz, get_node(bar.node1).xyz, vector);\n vector.normalize(norm);\n\n float len_bar = vector.mag();\n float len_zone = len_bar - (2f * buffer);\n int count = (int) Math.floor(len_zone * density);\n float len_true = count / density;\n float len_waste = len_true - len_zone;\n\n // offset coordinates for first pixel\n switch (layout) {\n case \"fill\":\n PVector.mult(norm, buffer, start);\n PVector.mult(norm, rate, step);\n break;\n case \"center\":\n PVector.mult(norm, buffer + (len_waste / 2f), start);\n PVector.mult(norm, rate, step);\n break;\n }\n // move to true coordinates\n PVector.add(start, get_node(bar.node1).xyz, coords);\n\n //---------- map channels \n // See if we need to add a new channel\n // TODO: Actually build the channels\n if (pixels_in_channel + count > max_pixels_per_channel) {\n channels++;\n strips = 0;\n pixels_in_channel = 0;\n }\n pixels_in_channel += count;\n pixels_in_model += count;\n\n //------------ Allocate Pixels!\n List<LXPoint> points = new ArrayList<>();\n for (int i = 0; i <= count; i++) {\n LXPoint point = new LXPoint(coords.x, coords.y, coords.z);\n points.add(point);\n coords.add(step);\n }\n\n /*\n bar.channel = channels - 1;\n bar.strip = strips;\n bar.channel_pixel = pixels_in_channel;\n bar.model_pixel = pixals_in_model;\n bar.points = points;\n\n rev = bar.reverse();\n */\n //------------ Add Points and Bars to Model\n this.bars.get(bar.node1).put(bar.node2, bar);\n // this.bars.get(node2.name).put(node1.name, rev);\n\n }",
"public int getHeight(){ return heightRadius; }",
"public float getThickness(){\n return thickness;\n }",
"public void drawHealthBar(Graphics2D g2, int xOffset, int yOffset) {\n g2.setColor(Color.RED);\r\n g2.drawLine((int) position.x + healthBarOffsetX + xOffset,\r\n (int) position.y + healthBarOffsetY + yOffset, (int) position.x\r\n + healthBarOffsetX + xOffset + healthBarLength,\r\n (int) position.y + healthBarOffsetY + yOffset);\r\n g2.setColor(Color.GREEN);\r\n g2.drawLine((int) position.x + healthBarOffsetX + xOffset,\r\n (int) position.y + healthBarOffsetY + yOffset, (int) position.x\r\n + healthBarOffsetX + xOffset + healthBarLength\r\n * (int) (health / maxhealth), (int) position.y\r\n + healthBarOffsetY + yOffset);\r\n\r\n }",
"public abstract BossBar show();",
"private void drawBars(Graphics g) {\n // declare local variables:\n int numberOfDigits=1;\n // end of local variables declaration\n\n\n // draw the bars\n for(int c = 0; c < bars ; c++) {\n // set the drawing colour\n g.setColor(Color.WHITE);\n\n // check the number of digits of c\n if( c > 8) {\n numberOfDigits = 2;\n } // end of if statement\n\n // check if bar number should be drawn\n if(c%3==0) {\n // set the colour\n g.setColor(new Color(190, 130, 0) );\n // draw bar number\n g.drawString(Integer.toString(c+1) ,\n getWidth()- (textAreaLenght+barLenght)- barLenght*c -( 3*numberOfDigits ),\n getHeight()-8);\n } // end of if statement\n\n // draw vertical mini line\n g.drawLine(getWidth()- (textAreaLenght+barLenght)- barLenght*c, getHeight()-24,\n getWidth()- (textAreaLenght+barLenght)- barLenght*c, getHeight()-20);\n\n\n } // end of for loop\n\n }",
"public void setBar(JProgressBar bar){\n prog = bar;\n }",
"public void MakeBar() {\n\t\tBarButton = new JButton(\n\t\t\t\t new ImageIcon(getClass().getResource(GetBarChartImage())));\t\n\t\tBarButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tGetHost().instructionText.setVisible(false);\n\t\t\t\tGetHost().ExportEnabled();\n\t\t\t\t\n\t\t\t\tif(GetHost().GetTitle() == UNSET) {\n\t\t\t\t\tGetHost().LeftPanelContent(new BarChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\t\"Bar chart\", \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}else {\n\t\t\t\t\tGetHost().LeftPanelContent(new BarChart(\n\t\t\t\t\tGetHost().GetGraphData(), \n\t\t\t\t\tGetHost().GetTitle(), \n\t\t\t\t\tGetHost().GetColourScheme(),GetHost()));\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tChartTypeInterface.add(BarButton);\t\n\t}",
"public double Top(){\n\t\treturn (y);\n\t}",
"double getNewHeight();",
"public JScrollBar createVerticalScrollBar() {\n/* 873 */ return new ScrollBar(1);\n/* */ }",
"HorizontalControl () {\n \n barY = 15; //40;\n barHeight = 40; //15;\n \n minX = 40;\n maxX = minX + width/3 - sliderWidth/2;\n \n minZoomValue = texture.width - texture.width;\n maxZoomValue = texture.width; // 300 percent\n valuePerX = (maxZoomValue - minZoomValue) / (maxX - minX);\n \n sliderWidth = 10; //25;\n sliderHeight = 25; //10;\n // sliderY = (barY + (barHeight/2)) - (sliderHeight/2);\n sliderY = (barY - (sliderHeight/2)) + (barHeight/2);\n sliderValue = minZoomValue; \n sliderX = minX; \n }",
"@Override\n public int getYOffset(float ypos) {\n return -getHeight();\n }",
"public BarPoints(int amplitude) {\n this.amplitude = amplitude;\n }",
"Builder height(VariableAmount height);",
"private void setBarLenght(int len) {\n // check for logical error\n if(len <= 0) {\n // error ..\n eHandler.newError(ErrorType.INVALID_ARGUMENT, \"setBarLenght\", \"Zero or negative bar lenght\");\n\n // set to default\n barLenght =DEFAULT_BAR_LENGH;\n\n // exit from method\n return;\n } // end of if statement\n\n // set the barLenght\n barLenght = len;\n\n }",
"public SideBar (JFrame frame, int tg) {\n\t\t\n\t\tthis.frame = frame;\n\t\ttotal_gold = tg;\n\n\t\tthis.setLayout(new FlowLayout());\n\t\tthis.setPreferredSize(new Dimension(200, getHeight()));\n\t\tthis.setOpaque(true);\n\t\tthis.setBackground(Color.GRAY);\n\n\t\t// Addition of Dungeon of Doom graphic\n\t\tthis.add(new JLabel(new ImageIcon(this.getClass().getResource(\"/dod.png\")), JLabel.CENTER));\n\n\t\t// Addition of timer\n\t\ttimer.setFont(new Font(\"Monospaced\", Font.BOLD, 20));\n\t\ttimer.setForeground(Color.WHITE);\n\t\ttimer.setBackground(Color.BLACK);\n\t\ttimer.setOpaque(true);\n\t\ttimer.setPreferredSize(new Dimension(150, 50));\n\t\ttimer.setBorder(BorderFactory.createLineBorder(Color.black, 5));\n\t\tthis.add(Box.createRigidArea(new Dimension(100, 10)));\n\t\tthis.add(timer);\n\t\tlong startTime = System.currentTimeMillis();\n\t\tActionListener actionListener;\n\t\tactionListener = new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcountTime = (System.currentTimeMillis() - startTime) / 1000;\n\t\t\t\tint secs = (int) ((countTime + MoveListener.time_penalty) % 60 );\n\t\t\t\t// Need to handle if the seconds is less than 0 due to the red potion taking off 10 seconds.\n\t\t\t\tif (secs < 0) {\n\t\t\t\t\tsecs = 0;\n\t\t\t\t}\n\t\t\t\tint mins = (int) (System.currentTimeMillis() - startTime + MoveListener.time_penalty * 1000) / 60000;\n\t\t\t\tString minutes = String.format(\"%02d\", mins);\n\t\t\t\tString seconds = String.format(\"%02d\", secs);\n\t\t\t\ttimer.setText(\"Time: \" + minutes + \":\" + seconds);\n\t\t\t\t\n\t\t\t\t// If game is finished, display leaderboard\n\t\t\t\tif (isFinish == true) {\n\t\t\t\t\tDBManager dbManager = new DBManager(\"score.db\");\n\t\t\t\t\tString score = minutes + \":\" + seconds;\n\t\t\t\t\tDBManager.insertData(Game.getNameText(), score);\n\t\t\t\t\tString[] options = {\"Restart\",\"Exit\"};\n\t\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\t\tString[][] content = DBManager.localData();\n\t\t\t\t\tdata = content;\n\t\t\t\t\tJTable table = new JTable(data,columnNames);\n\t\t\t\t\tDefaultTableCellHeaderRenderer renderer = new DefaultTableCellHeaderRenderer();\n\t\t\t\t\trenderer.setHorizontalAlignment(JLabel.CENTER);\n\t\t\t\t\trenderer.setBackground(Color.white);\n\t\t\t\t\ttable.setDefaultRenderer(Object.class, renderer);\n\t\t\t\t\ttable.setEnabled(false);\n\t\t\t\t\tJScrollPane jsPane = new JScrollPane();\n\t\t\t\t\tjsPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\n\t\t\t\t\tjsPane.setViewportView(table);\n\t\t\t\t\tJLabel finishLabel = new JLabel(\"Game finished!\",JLabel.CENTER);\n\t\t\t\t\tfinishLabel.setLayout(new BorderLayout());\n\t\t\t\t\tpanel.setLayout(new BorderLayout());\n\t\t\t\t\tpanel.add(finishLabel,BorderLayout.NORTH);\n\t\t\t\t\tpanel.add(jsPane);\n\t\t\t\t\t\n\t\t\t\t\tint response = JOptionPane.showOptionDialog(frame, panel, \"Score\", JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[0]);\n\t\t\t\t\tif (response == 0) {\n\t\t\t\t\t\tgold_counter = 0;\n\t\t\t\t\t\tisFinish = false;\n\t\t\t\t\t\tframe.dispose();\n\t\t\t\t\t\tGame.Dod.t1.interrupt();\n\t\t\t\t\t\tGame.Dod.t2.interrupt();\n\t\t\t\t\t\tGame.Dod = new DungeonOfDoom();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tif (response == 1) {\n\t\t\t\t\t\tSystem.exit(0); //exit game\n\t\t\t\t\t}\n\t\t\t\t\ttime.stop();\n\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\t\n\t\ttime = new Timer(100, actionListener);\n\t\ttime.start();\n\n\t\t// Addition of player's name\n\t\tthis.add(Box.createRigidArea(new Dimension(100, 15)));\n\t\tthis.add(playerName);\n\n\t\tplayerName.setPreferredSize(new Dimension(150, 75));\n\t\tplayerName.setFont(new Font(\"Monospaced\", Font.PLAIN, 18));\n\n\t\t// Addition of gold counter\n\t\tgold_count.setFont(new Font(\"Monospaced\", Font.PLAIN, 18));\n\t\tthis.add(Box.createRigidArea(new Dimension(100, 15)));\n\t\tthis.add(gold_count);\n\t\tgold_count.setText(\"Gold count = \" + gold_counter + \"/\" + total_gold);\n\n\t\t// Side bar spacing\n\t\tthis.add(Box.createRigidArea(new Dimension(100, 10)));\n\t\t\n\t\t// Addition of restart button\n\t\trestart.setOpaque(true);\n\t\trestart.setBackground(Color.GRAY);\n\t\trestart.setFont(new Font(\"Monospaced\", Font.PLAIN, 16));\n\t\trestart.setPreferredSize(new Dimension(150, 30));\n\t\tthis.add(restart);\n\t\trestart.addActionListener(this);\n\t\trestart.setActionCommand(\"Restart\");\n\t\t\n\t\t// Side bar spacing\n\t\tthis.add(Box.createRigidArea(new Dimension(100, 10)));\n\t\t\n\t\t// Addition of exit button\n\t\texit.setOpaque(true);\n\t\texit.setBackground(Color.GRAY);\n\t\texit.setFont(new Font(\"Monospaced\", Font.PLAIN, 16));\n\t\texit.setPreferredSize(new Dimension(150, 30));\n\t\tthis.add(exit);\n\t\texit.addActionListener(this);\n\t\texit.setActionCommand(\"Exit\");\n\n\t}",
"BottombarViewFlipper getBottomBar();",
"private void ChangeBar(int x)\r\n\t{\r\n\t\tString s1=TextField1.getText();\r\n\t\tString s2=TextField2.getText();\r\n\t\tString s3=TextField3.getText();\r\n\t\t \r\n\t\tint red=Integer.parseInt(s1);\r\n\t\tint green=Integer.parseInt(s2);\r\n\t\tint blue=Integer.parseInt(s3);\r\n\t\tint max=getmax(red,green,blue);\r\n\t\t \r\n\t\tif (max > x)\r\n\t\t{\r\n\t\t\tint d = abs(max-x-0);\r\n\t\t\tred -= d;\r\n\t\t\tgreen -= d;\r\n\t\t\tblue -= d;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tint d = abs(max+x+100);\r\n\t\t\tred += d;\r\n\t\t\tgreen += d;\r\n\t\t\tblue += d;\r\n\t\t}\r\n\t\tTextField1.setText(String.valueOf(red));\r\n\t\tTextField2.setText(String.valueOf(green));\r\n\t\tTextField3.setText(String.valueOf(blue));\r\n\t\trepaint();\r\n\t\t}",
"public void testCloning() {\n StandardXYBarPainter p1 = new StandardXYBarPainter();\n }",
"private void drawTopBorder(StringBuffer canvas) {\n \t\t\tfor (int i=0; i<width; i++)\r\n \t\t\t\tcanvas.append('_'); //Top bar.\r\n \t\t\tcanvas.append('\\n');}",
"public float getAlignmentY() { return 0.5f; }",
"private JProgressBar setProgressBar(JProgressBar PB)\r\n\t{\r\n\t\tPB = new JProgressBar(0, 100);\r\n\t\tPB.setMinimum(0);\r\n\t\tPB.setMaximum(100);\r\n\t\tPB.setStringPainted(true);\r\n\t\treturn PB;\r\n\t}",
"public void setHeight(double height){\n h=height;\r\n }",
"@Override\n\tpublic void setHeightInPoints(float arg0) {\n\t\t\n\t}",
"private void addHealthBar(){\n Drawable d = new TextureRegionDrawable(new TextureRegion(new Texture(Gdx.files.internal(\"imgs/heart.png\"))));\r\n Image healthLabel = new Image(d);\r\n healthLabel.setWidth(40);\r\n healthLabel.setHeight(40);\r\n healthLabel.setPosition(690,stage.getHeight()-75);\r\n stage.addActor(healthLabel);\r\n //===================End of Replace the label live with some m_offImage=======================\r\n\r\n Pixmap pixmap = new Pixmap(100, 20, Pixmap.Format.RGBA8888);\r\n pixmap.setColor(Color.RED);\r\n pixmap.fill();\r\n TextureRegionDrawable drawable = new TextureRegionDrawable(new TextureRegion(new Texture(pixmap)));\r\n pixmap.dispose();\r\n ProgressBar.ProgressBarStyle progressBarStyle = new ProgressBar.ProgressBarStyle();\r\n progressBarStyle.background = drawable;\r\n\r\n pixmap = new Pixmap(0, 20, Pixmap.Format.RGBA8888);\r\n pixmap.setColor(Color.GREEN);\r\n pixmap.fill();\r\n drawable = new TextureRegionDrawable(new TextureRegion(new Texture(pixmap)));\r\n pixmap.dispose();\r\n\r\n progressBarStyle.knob = drawable;\r\n\r\n pixmap = new Pixmap(100, 20, Pixmap.Format.RGBA8888);\r\n pixmap.setColor(Color.GREEN);\r\n pixmap.fill();\r\n drawable = new TextureRegionDrawable(new TextureRegion(new Texture(pixmap)));\r\n pixmap.dispose();\r\n\r\n progressBarStyle.knobBefore = drawable;\r\n\r\n healthBar = new ProgressBar(0.0f, 1.0f, 0.01f, false, progressBarStyle);\r\n\r\n healthBar.setValue(1.0f);\r\n healthBar.setAnimateDuration(0.025f);\r\n healthBar.setBounds(10, 10, 200, 20);\r\n healthBar.setFillParent(true);\r\n healthBar.setPosition(750,stage.getHeight()-65);\r\n\r\n //return healthBar;\r\n stage.addActor(healthBar);\r\n }",
"void setHeight(VariableAmount height);",
"private void drawVertical(GC gc, Rectangle drawingArea, TimeBarViewerDelegate delegate, boolean top,\n boolean printing) {\n int oy = drawingArea.y;\n\n int basex;\n int minorOff;\n int majorOff;\n int majorLabelOff;\n int dayOff;\n\n if (!top) {\n basex = drawingArea.x;\n minorOff = scaleX(MINORLENGTH);\n majorOff = scaleX(MAJORLENGTH);\n majorLabelOff = scaleX(22);\n dayOff = scaleX(34);\n } else {\n basex = drawingArea.x + drawingArea.width - 1;\n minorOff = scaleX(-MINORLENGTH);\n majorOff = scaleX(-MAJORLENGTH);\n majorLabelOff = scaleX(-10);\n dayOff = scaleX(-22);\n }\n int ox = basex;\n\n int height = drawingArea.height;\n JaretDate date = delegate.getStartDate().copy();\n\n int idx = TickScaler.getTickIdx(delegate.getPixelPerSecond() / getScaleY());\n\n int majTick = TickScaler.getMajorTickMinutes(idx);\n int minTick = TickScaler.getMinorTickMinutes(idx);\n TickScaler.Range range = TickScaler.getRange(idx);\n _lastRange = range;\n\n // clean starting date on a major tick minute position (starting with a\n // day)\n date.setMinutes(0);\n date.setHours(0);\n date.setSeconds(0);\n\n // if range is week take a week starting point\n if (range == Range.WEEK) {\n while (date.getDayOfWeek() != DateUtils.getFirstDayOfWeek()) {\n date.backDays(1.0);\n }\n } else if (range == Range.MONTH) {\n // month -> month starting point\n date.setDay(1);\n }\n JaretDate save = date.copy();\n\n if (printing) {\n gc.setLineWidth(1);\n }\n // draw top/bottom line\n gc.drawLine(ox, oy, ox, oy + height);\n\n // draw the minor ticks\n while (delegate.xForDate(date) < oy + height) {\n int y = delegate.xForDate(date);\n gc.drawLine(ox, y, ox + minorOff, y);\n if (range == Range.MONTH) {\n int adv = Math.round(minTick / APPROXSECONDSINMONTH);\n if (adv == 0) {\n adv = 1;\n }\n date.advanceMonths(adv);\n } else {\n date.advanceMinutes(minTick);\n }\n }\n\n date = save.copy();\n // draw the major ticks\n while (delegate.xForDate(date) < oy + height) {\n int y = delegate.xForDate(date);\n gc.drawLine(ox, y, ox + majorOff, y);\n if (range == Range.MONTH) {\n int adv = Math.round(majTick / APPROXSECONDSINMONTH);\n if (adv == 0) {\n adv = 1;\n }\n date.advanceMonths(adv);\n } else {\n date.advanceMinutes(majTick);\n }\n }\n\n gc.setLineWidth(1);\n\n // labels: draw every two major ticks\n date = save.copy();\n // Labels are drawn beyond the width. Otherwise when the beginning of\n // the labels\n // would not be drawn when the tick itself is out of sight\n while (delegate.xForDate(date) < drawingArea.y + drawingArea.height + 50) {\n int y = delegate.xForDate(date);\n if (date.getMinutes() % (majTick * 2) == 0) {\n // Second line\n String str = null;\n if (range == Range.HOUR) {\n // time\n str = date.toDisplayStringTime();\n } else if (range == Range.DAY) {\n // day\n str = date.getShortDayOfWeekString();\n } else if (range == Range.WEEK) {\n // week\n str = \"KW\" + date.getWeekOfYear();\n } else if (range == Range.MONTH) {\n // month\n str = Integer.toString(date.getYear());\n }\n // draw\n if (top) {\n SwtGraphicsHelper.drawStringRightAlignedVCenter(gc, str, drawingArea.x + drawingArea.width\n + majorOff, y);\n } else {\n SwtGraphicsHelper.drawStringLeftAlignedVCenter(gc, str, drawingArea.x + majorOff, y);\n }\n // // first line\n // if (range == Range.HOUR) {\n // if (date.getDay() != lastDay) {\n // str = date.getDay() + \". (\" + date.getDayOfWeekString() + \")\";\n // } else {\n // str = \"\";\n // }\n // lastDay = date.getDay();\n // } else if (range == Range.DAY || range == Range.WEEK) {\n // str = date.getDay() + \".\" + (third ? date.getShortMonthString() : \"\");\n // } else if (range == Range.MONTH) {\n // str = date.getMonthString();\n // }\n // second = !second;\n // third = count++ % 3 == 0;\n // SwtGraphicsHelper.drawStringCentered(gc, str, x, oy + dayOff);\n }\n if (range == Range.MONTH) {\n int adv = Math.round(majTick / APPROXSECONDSINMONTH);\n if (adv == 0) {\n adv = 1;\n }\n date.advanceMonths(adv);\n } else {\n date.advanceMinutes(majTick);\n }\n }\n }",
"public StatusBar() {\n super();\n super.setPreferredSize(new Dimension(100, 16));\n setMessage(\"Ready\");\n }",
"private void update() {\r\n\t\t// Creating display image, a bounded rectangle in which the set of bars\r\n\t\t// will fit.\r\n\t\t// The height and width should both be total diameter, which is double\r\n\t\t// the bar and central radii sum.\r\n\t\tdouble displaySize = 2.0 * (sumArray(barRadii) + centralRadius);\r\n\t\t// Rounding dimensions up to ensure the actual set will fit.\r\n\t\tGreenfootImage widget = new GreenfootImage(\r\n\t\t\t\t(int) Math.ceil(displaySize), (int) Math.ceil(displaySize));\r\n\t\t// Setting up canvas for the foundation of the display image, to be\r\n\t\t// drawn on.\r\n\t\tGraphics2D img = widget.getAwtImage().createGraphics();\r\n\t\t// This variable stores the radius at which to begin drawing each bar.\r\n\t\t// Its starting value, for the first bar, is the\r\n\t\t// size of the central circle, which is reserved for avatars, etc. The\r\n\t\t// for loop will use it to keep track of position,\r\n\t\t// to draw outwards.\r\n\t\tdouble drawBarFromRadius = centralRadius;\r\n\t\t// Central coordinates of entire set.\r\n\t\tdouble cenXAndY = displaySize / 2.0;\r\n\t\t// Draw central avatar onto display at center. The parameters still\r\n\t\t// use the upper left corner, so values are corrected as such.\r\n\t\timg.drawImage(avatar.getAwtImage(), (int) (cenXAndY - centralRadius),\r\n\t\t\t\t(int) (cenXAndY - centralRadius), null);\r\n\t\t// This class numerically identifies bars from 0 upwards, from inside to\r\n\t\t// out.\r\n\t\t// Now building bars from inside to out and drawing them onto display\r\n\t\t// image foundation.\r\n\t\tfor (int i = 0; i < barCount; i++) {\r\n\t\t\t// These variables will be frequently used in a moment; inner and\r\n\t\t\t// outer radii of the current bar.\r\n\t\t\tdouble innerRadius = drawBarFromRadius;\r\n\t\t\tdouble outerRadius = drawBarFromRadius + barRadii[i];\r\n\t\t\t// Creating circles for the bar boundaries, to form the rings. These\r\n\t\t\t// are the empty bar backgrounds, not the actual bars.\r\n\t\t\t// Centered on display center.\r\n\t\t\tShape innerBound = getCircle(cenXAndY, cenXAndY, innerRadius);\r\n\t\t\tShape outerBound = getCircle(cenXAndY, cenXAndY, outerRadius);\r\n\t\t\t// Using area subtraction to create an empty ring shape with a\r\n\t\t\t// transparent center.\r\n\t\t\t// This ring is the background.\r\n\t\t\t// After establishing the areas,\r\n\t\t\tArea innerA = new Area(innerBound);\r\n\t\t\tArea ring = new Area(outerBound);\r\n\t\t\t// Subtract the inner, smaller area from the larger to create the\r\n\t\t\t// ring.\r\n\t\t\tring.subtract(innerA);\r\n\t\t\t// Now creating the actual bar, the green partial ring indicator\r\n\t\t\t// that will change in arc length to show statistics.\r\n\t\t\t// First create a new copy of the ring area.\r\n\t\t\tArea bar = new Area(ring);\r\n\t\t\t// Temporary variable used to calculate the proportion of the\r\n\t\t\t// circumference, in degrees, representing the proportion of the\r\n\t\t\t// current status relative to maximum possible status. Percentage\r\n\t\t\t// times the total degree measure of the circle, 360 degrees.\r\n\t\t\tdouble arcAngle = (currentValue[i] / maxValue[i]) * 360.0;\r\n\t\t\t// Now retrieve the area of the pie shape for this arc, for the\r\n\t\t\t// outer boundary circle.\r\n\t\t\tArea pieShapeIndicator = new Area(getPie(cenXAndY, cenXAndY,\r\n\t\t\t\t\touterRadius, 0.0, arcAngle));\r\n\t\t\t// Then turn the bar area, currently still a ring of outer subtract\r\n\t\t\t// inner, into an arc ring by intersecting it with the pie shape.\r\n\t\t\t// The pie shape's center is removed, as only the intersecting\r\n\t\t\t// partial outer ring overlap of both areas is kept.\r\n\t\t\t// Bar is now an arc ring, fitting into the background ring\r\n\t\t\t// appropriately according to status.\r\n\t\t\tbar.intersect(pieShapeIndicator);\r\n\t\t\t// Draw the bar background onto the display.\r\n\t\t\timg.setColor(barBGColors[i]);\r\n\t\t\timg.fill(ring);\r\n\t\t\t// If the visual should be simple.\r\n\t\t\tif (!gradientEffect[i]) {\r\n\t\t\t\t// Draw the simple indicator onto the display.\r\n\t\t\t\timg.setColor(barColors[i]);\r\n\t\t\t\timg.fill(bar);\r\n\t\t\t} else {\r\n\t\t\t\t// Draw a gradient bar. From inner bound to outer bound of arc,\r\n\t\t\t\t// focused at center;\r\n\t\t\t\tRadialGradientPaint grad = new RadialGradientPaint(\r\n\t\t\t\t// Coordinates of center.\r\n\t\t\t\t\t\t(float) cenXAndY, (float) cenXAndY,\r\n\t\t\t\t\t\t// Bounding radius, outer.\r\n\t\t\t\t\t\t(float) outerRadius,\r\n\t\t\t\t\t\t// Key-frame radius positions as a proportion of\r\n\t\t\t\t\t\t// bounding radius. First color is at inner radius,\r\n\t\t\t\t\t\t// second at outer.\r\n\t\t\t\t\t\tnew float[] { (float) (innerRadius / outerRadius), 1.0f },\r\n\t\t\t\t\t\t// Colors to be interpolated between for gradient.\r\n\t\t\t\t\t\t// Uses the set color and a darker version of it.\r\n\t\t\t\t\t\tnew Color[] { barColors[i].darker(), barColors[i] });\r\n\t\t\t\t// Draw arc ring.\r\n\t\t\t\timg.setPaint(grad);\r\n\t\t\t\timg.fill(bar);\r\n\t\t\t}\r\n\t\t\t// Clause for alert feature; if alert is on and should show for\r\n\t\t\t// current status then;\r\n\t\t\tif (lowStatusAlert[i]\r\n\t\t\t\t\t&& currentTarget[i] < alertPercent[i] * maxValue[i]) {\r\n\t\t\t\t// Draw the flicker if it should be there this frame.\r\n\t\t\t\t// Otherwise do nothing.\r\n\t\t\t\tif (alertFlickering[i]) {\r\n\t\t\t\t\timg.setColor(alertColors[i]);\r\n\t\t\t\t\timg.fill(bar);\r\n\t\t\t\t}\r\n\t\t\t\t// Switch the flag for next frame.\r\n\t\t\t\talertFlickering[i] = !alertFlickering[i];\r\n\t\t\t}\r\n\t\t\t// This bar is now updated. Moving onto the next one. The radius at\r\n\t\t\t// which to begin drawing the next is noted down here.\r\n\t\t\tdrawBarFromRadius += barRadii[i];\r\n\t\t}\r\n\t\t// Display.\r\n\t\tsetImage(widget);\r\n\t}",
"@Test\n public void test82() throws Throwable {\n WaterfallBarRenderer waterfallBarRenderer0 = new WaterfallBarRenderer();\n SystemColor systemColor0 = SystemColor.textInactiveText;\n Line2D.Double line2D_Double0 = new Line2D.Double();\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot();\n combinedRangeCategoryPlot0.setAnchorValue(0.0, false);\n }",
"public int getY()\n {\n return yaxis;\n }",
"private FilterBar() {\n\t\t\n\t\tsuper(15);\n\t\tthis.setStyle(\"-fx-background-color: #FFFFFF;\");\n\t\tthis.setPadding(new Insets(25, 25, 25, 25));\n\t\t\n\t\taddNodes();\n\t\taddListeners();\n\t\t\n\t}",
"@Override\n public void onSizeChanged(int w, int h, int oldW, int oldH) {\n // Set the movement bounds for the ball\n displayArea.setDisp(w-1, h-1);\n if (!isInitBackground) {\n isInitBackground = true;\n backgCalculating = new BackCalculating(0, 0, displayArea.xMax, displayArea.yMax, Color.BLACK, Color.YELLOW);\n }\n }",
"public BarGaugeFragment() {\n }",
"int getDeltaY() {\n return deltaY;\n }",
"public void healthBarLowAnimation() {\n\t\tTimeline timeline = new Timeline();\n\t\ttimeline.setCycleCount(Timeline.INDEFINITE);\n\t\ttimeline.setAutoReverse(true);\n\t\tKeyValue kvOpp = new KeyValue(opponentHealthBar.heightProperty(),opponentHealthBar.getHeight()-5);\n\t\tKeyValue kvLoc = new KeyValue(localHealthBar.heightProperty(),localHealthBar.getHeight()-5);\n\t\tKeyFrame kfOpp = new KeyFrame(Duration.millis(500), kvOpp);\n\t\tKeyFrame kfLoc = new KeyFrame(Duration.millis(500), kvLoc);\n\t\ttimeline.getKeyFrames().addAll(kfOpp,kfLoc);\n\t\ttimeline.play();\n\t}",
"private JPanel leftBar() {\n\t\tJPanel leftBar = new JPanel();\n\t\tColor myPurp = new Color(191, 123, 123);\n\t\tleftBar.setBackground(myPurp);\n\t\tleftBar.setLayout(new BoxLayout(leftBar, BoxLayout.Y_AXIS));\n\t\t\n\t\t//creating slider that determines speed\n\t\tJLabel milliSecs = new JLabel(\"ms between\", JLabel.LEFT);\n\t\tJLabel generations = new JLabel(\"generations\", JLabel.LEFT);\n\t\tspeed.addChangeListener(this);\n\t\tspeed.setPaintTicks(true);\n\t\tspeed.setMajorTickSpacing(500);\n\t\tspeed.setPaintLabels(true);\n\t\tspeed.setMinorTickSpacing(250);\n\t\tleftBar.add(milliSecs);\n\t\tleftBar.add(generations);\n\t\tleftBar.add(speed);\n\t\t\n\t\t//creating slider that determines grid size\n\t\tJLabel dimensionsLabel = new JLabel(\"dimensions\");\n\t\tgridSize.addChangeListener(this);\n\t\tgridSize.setPaintTicks(true);\n\t\tgridSize.setMajorTickSpacing(10);\n\t\tgridSize.setPaintLabels(true);\n\t\tleftBar.add(dimensionsLabel);\n\t\tleftBar.add(gridSize);\n\t\tpack();\n\t\t\n\t\treturn leftBar;\n\t}",
"public static String exampleBarChart2() {\n final int MAX_MEDALS = 51;\n Data goldData= DataUtil.scaleWithinRange(0, MAX_MEDALS, Arrays.asList(MAX_MEDALS, 36, 23, 19, 16));\n Data silverData= DataUtil.scaleWithinRange(0, MAX_MEDALS, Arrays.asList(21, 38, 21, 13, 10));\n Data bronzeData= DataUtil.scaleWithinRange(0, MAX_MEDALS, Arrays.asList(28, 36, 28, 15, 15));\n BarChartPlot gold = Plots.newBarChartPlot(goldData, GOLD, \"Gold\");\n BarChartPlot silver = Plots.newBarChartPlot(silverData, SILVER, \"Silver\");\n BarChartPlot bronze = Plots.newBarChartPlot(bronzeData, Color.BROWN, \"Bronze\");\n BarChart chart = GCharts.newBarChart(gold, silver, bronze);\n\n // Defining axis info and styles\n AxisStyle axisStyle = AxisStyle.newAxisStyle(BLACK, 13, AxisTextAlignment.CENTER);\n AxisLabels country = AxisLabelsFactory.newAxisLabels(\"Country\", 50.0);\n country.setAxisStyle(axisStyle);\n AxisLabels countries = AxisLabelsFactory.newAxisLabels(\"Germany\", \"United Kingdom\", \"Russia\", \"USA\", \"China\");\n countries.setAxisStyle(axisStyle);\n AxisLabels medals = AxisLabelsFactory.newAxisLabels(\"Medals\", 50.0);\n medals.setAxisStyle(axisStyle);\n AxisLabels medalCount = AxisLabelsFactory.newNumericRangeAxisLabels(0, MAX_MEDALS);\n medalCount.setAxisStyle(axisStyle);\n\n\n // Adding axis info to chart.\n chart.addXAxisLabels(medalCount);\n chart.addXAxisLabels(medals);\n chart.addYAxisLabels(countries);\n chart.addYAxisLabels(country);\n chart.addTopAxisLabels(medalCount);\n chart.setHorizontal(true);\n chart.setSize(450, 650);\n chart.setSpaceBetweenGroupsOfBars(30);\n\n chart.setTitle(\"2008 Beijing Olympics Medal Count\", BLACK, 16);\n ///51 is the max number of medals.\n chart.setGrid((50.0/MAX_MEDALS)*20, 600, 3, 2);\n chart.setBackgroundFill(Fills.newSolidFill(LIGHTGREY));\n LinearGradientFill fill = Fills.newLinearGradientFill(0, Color.newColor(\"E37600\"), 100);\n fill.addColorAndOffset(Color.newColor(\"DC4800\"), 0);\n chart.setAreaFill(fill);\n String url = chart.toURLString();\n return url;\n }",
"@Override\n public void onTick(long leftTimeInMilliseconds) {\n long seconds = leftTimeInMilliseconds / 1000;\n barTimer.setProgress((int) seconds);\n\n }",
"public double drawLength() { return drawLength; }",
"public OutlineZigzagEffect(int width, Color color) {\n/* 89 */ super(width, color);\n/* */ }",
"public int getHeight()\n {return height;}",
"public double getPosY(){\n return posY;\n }",
"@Override\n public void onMove(float x, float y) {\n }",
"public StatusBar() {\r\n setLayout(new BorderLayout());\r\n setPreferredSize(new Dimension(100, 20));\r\n panel = new WebPanel();\r\n BoxLayout boxLayout = new BoxLayout(panel, BoxLayout.LINE_AXIS);\r\n panel.setLayout(boxLayout);\r\n panel.add(Box.createHorizontalGlue());\r\n add(panel, BorderLayout.CENTER);\r\n setVisible(false);\r\n }",
"float yMin();",
"float yMax();",
"public void setFrameY(double aY) { double y = _y + aY - getFrameY(); setY(y); }",
"double getYLength();",
"@Override\n void calculateArea() {\n float area = (float) (0.5 * bottom * height);\n System.out.println(\"Area is \" + area);\n }",
"public void healthBarBubbleAnimation() {\n\n\t\tint oppHealth = Integer.parseInt(opponentHealth.getText());\n\t\tint locHealth = Integer.parseInt(opponentHealth.getText());\n\n\t\tif (oppHealth != oldOppHealth) {\n\t\t\tBounds boundsOpp = opponentHealthBar.getBoundsInLocal();\n\t\t\tdouble yPosOppTop = boundsOpp.getMinY();\n\t\t\tdouble yPosOppBottom = boundsOpp.getMinY() + boundsOpp.getWidth();\n\t\t\tdouble widthOpp = boundsOpp.getWidth();\n\t\t\tdouble xPosOpp = boundsOpp.getMinX();\n\n\t\t\t//if (widthOpp == )\n\n\t\t\tRandom rand = new Random();\n\t\t\tint randXposOpp = rand.nextInt((int)Math.round(widthOpp));\n\t\t\tdouble randYposOpp = rand.nextInt(2)+1==1 ? yPosOppTop : yPosOppBottom;\n\n\t\t\tParallelTransition bubbleOpp = healthBarBubbleTransition(xPosOpp + randXposOpp,randYposOpp);\n\t\t}\n\n\n\t\tBounds boundsOpp = opponentHealthBar.getBoundsInLocal();\n\t\tBounds boundsLoc = localHealthBar.getBoundsInLocal();\n\t\tdouble yPosOppTop = boundsOpp.getMinY();\n\t\tdouble yPosOppBottom = boundsOpp.getMinY() + boundsOpp.getWidth();\n\t\tdouble yPoslocTop = boundsLoc.getMinY();\n\t\tdouble yPosLocBottom = boundsLoc.getMinY() + boundsLoc.getWidth();\n\t\tdouble widthOpp = boundsOpp.getWidth();\n\t\tdouble xPosOpp = boundsOpp.getMinX();\n\t\tdouble widthLoc = boundsLoc.getWidth();\n\t\tdouble xPosLoc = boundsLoc.getMinX();\n\n\t\tRandom rand = new Random();\n\t\tint randXposOpp = rand.nextInt((int)Math.round(widthOpp));\n\t\tint randXposLoc = rand.nextInt((int) Math.round(widthLoc));\n\t\tdouble randYposOpp = rand.nextInt(2)+1==1 ? yPosOppTop : yPosOppBottom;\n\t\tdouble randYposLoc = rand.nextInt(2)+1==1 ? yPoslocTop : yPosLocBottom;\n\n\t\tParallelTransition bubbleOpp = healthBarBubbleTransition(xPosOpp + randXposOpp,randYposOpp);\n\t\tParallelTransition bubbleLoc = healthBarBubbleTransition(xPosLoc + randXposLoc,randYposLoc);\n\n\n\n\t\tbubbleOpp.play();\n\t\tbubbleLoc.play();\n\n\n\n\t}",
"public void setAlignmentY(AlignY anAlignX) { }"
] | [
"0.6391005",
"0.6253056",
"0.6155556",
"0.60974026",
"0.6013232",
"0.60107875",
"0.5997748",
"0.5995438",
"0.59758866",
"0.591489",
"0.5910365",
"0.59078705",
"0.58790064",
"0.5785193",
"0.57726747",
"0.57398087",
"0.5736114",
"0.57055354",
"0.56905496",
"0.56647795",
"0.56276137",
"0.56269515",
"0.5623224",
"0.55950797",
"0.5575741",
"0.55591565",
"0.55572414",
"0.55572134",
"0.55419785",
"0.5510197",
"0.55040425",
"0.5490924",
"0.5484111",
"0.5483623",
"0.5479239",
"0.5453488",
"0.54508847",
"0.5433941",
"0.54274213",
"0.5421507",
"0.5420099",
"0.5414586",
"0.5404041",
"0.5401312",
"0.5399245",
"0.53987485",
"0.5390257",
"0.5387183",
"0.53683764",
"0.53628147",
"0.534865",
"0.5343556",
"0.53285533",
"0.53274804",
"0.5327119",
"0.53137803",
"0.53096485",
"0.5306041",
"0.5304799",
"0.53016585",
"0.5279283",
"0.52520263",
"0.524969",
"0.5247262",
"0.52458495",
"0.52384716",
"0.52383447",
"0.5238268",
"0.52378434",
"0.5236443",
"0.5235461",
"0.52345294",
"0.52297413",
"0.52275103",
"0.5227091",
"0.5226332",
"0.52208894",
"0.52141035",
"0.5209024",
"0.52088535",
"0.5208364",
"0.52040106",
"0.5202673",
"0.51983666",
"0.5197743",
"0.51970243",
"0.5196368",
"0.5196058",
"0.5192986",
"0.51870966",
"0.51837695",
"0.517913",
"0.5171021",
"0.51705843",
"0.516296",
"0.5159431",
"0.5153322",
"0.51501423",
"0.5148874",
"0.51444477"
] | 0.60580665 | 4 |
Read item ID item detail URI. | public static long getItemId(Uri itemUri) {
return Long.parseLong(itemUri.getPathSegments().get(1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getItemDetailId() {\n return itemDetailId;\n }",
"public String getItemIdentifier();",
"public String getItemID() {\n\t return this.itemID;\n\t}",
"@GetMapping(value=\"/item/view/{itemId}\")\r\n\tpublic ModelAndView itemDetailGetSingle(@PathVariable Long itemId) {\r\n\t\tEbayItem item;\r\n\t\tModelAndView modelAndView = new ModelAndView();\r\n\t\ttry {\r\n\t\t\titem = itemService.getItemForDisplay(itemId, null);\r\n\t\t} catch (Exception e) {\r\n\t\t\tmodelAndView.setViewName(\"redirect:/error\");\r\n\t\t\treturn modelAndView;\r\n\t\t}\r\n\t\tsetUpModelAndView(modelAndView, item);\r\n\t\tmodelAndView.setViewName(\"itemDetail\");\r\n\t\treturn modelAndView;\r\n\t}",
"public int getItemID()\n {\n return itemID;\n }",
"public String getItemId() {\r\n return itemId;\r\n }",
"public String getItemId() {\n return itemId;\n }",
"public URI getID() {\n return this.id;\n }",
"public Item getItem(long idItem) throws ItemNotFound;",
"public void setItemDetailId(Integer itemDetailId) {\n this.itemDetailId = itemDetailId;\n }",
"public static Items listItemDetails(final int argItemId) {\r\n Items item = dao().listItemDetails(argItemId);\r\n return item;\r\n }",
"@Override\n\tpublic Item getItemByID(String itemId) {\n\n\t\treturn actionOnItem(itemId).get(0);\n\t}",
"@Override\n\tpublic Item getItemByID(String itemId) {\n\n\t\treturn actionOnItem(itemId).get(0);\n\t}",
"public Integer getItemid() {\n return itemid;\n }",
"public Integer getItemid() {\n return itemid;\n }",
"public Item getItemById(Integer itemId);",
"@Override\n public Item get(long idItem) throws EntityNotFound;",
"public String getStringID() {\r\n\t\treturn uri.getPath();\r\n\t}",
"@RequestMapping(method=RequestMethod.GET, value = \"/item/{id}\", produces = \"application/json\")\n public Item getItem(@PathVariable (name = \"id\") UUID id)\n {\n return this.itemRepository.getItem(id);\n }",
"@RequestMapping(\n\t\t\tvalue = \"/item/{itemId}\",\n\t\t\tmethod = RequestMethod.GET,\n\t\t\tproduces = \"application/json\")\n\tpublic ItemModel getItem(\n\t\t\t@RequestParam(name = \"userId\") String readUserId,\n\t\t\t@PathVariable(name = \"itemId\") String itemId) {\n\n\t\treturn handleGetItemRequest(readUserId, itemId);\n\t}",
"@GetMapping(\"/items/{item_id}\")\n\tpublic ResponseEntity<Item> getItemById(@PathVariable(value=\"item_id\") Long item_id){ \n\t\tItem item = itemDAO.findOne(item_id);\n\t\t\n\t\tif(item == null) {\n\t\t\treturn ResponseEntity.notFound().build();\n\t\t}\n\t\treturn ResponseEntity.ok().body(item);\n\t}",
"@JsonIgnore\n public String getId() {\n return UriHelper.getLastUriPart(getUri());\n }",
"int getItemID();",
"public URI getId();",
"public URI getId();",
"public String getItemDetailName() {\n return itemDetailName;\n }",
"public int getItemId() {\n return itemId;\n }",
"CatalogItem getItembyId(final Long id);",
"public int getItemId()\r\n {\r\n return _itemId;\r\n }",
"private int getItemID(String item) {\n\t\titem = item.replace(\" \", \"%20\");\n\t\t//log(\"Item: \" + item);\n \ttry {\n \tString webPage = \"http://\" + serverIP + \"/getid.php?i=\" + item;\n \t//log(\"Webpage: '\" +webPage+\"'\");\n \tURL url = new URL(webPage);\n \tURLConnection urlConnection = url.openConnection();\n \tInputStream is = urlConnection.getInputStream();\n \tInputStreamReader isr = new InputStreamReader(is);\n\n \tint numCharsRead;\n \tchar[] charArray = new char[1024];\n \tStringBuffer sb = new StringBuffer();\n \twhile ((numCharsRead = isr.read(charArray)) > 0) {\n \tsb.append(charArray, 0, numCharsRead);\n \t}\n \tString result = sb.toString();\n \t//log(\"ItemID: \" + result);\n \t//window.status.setText(\"Ready\");\n\n \treturn Integer.parseInt(result);\n \t} catch (Exception e) {\n \tlog(\"Exception occurred at getID.\" + e);\n \t}\n\n \treturn 0;\n \t}",
"public Long getItemId() {\r\n return itemId;\r\n }",
"@RequestMapping(value = \"/item/{id}\", method = RequestMethod.GET)\n\tpublic @ResponseBody Optional<Item> findItemRest(@PathVariable(\"id\") Long itemId) {\n\t\treturn repository.findById(itemId);\n\t}",
"protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}",
"@GetMapping(value=\"/item/view/{searchId}/{itemId}\")\r\n\tpublic ModelAndView itemDetailGet(@PathVariable Long itemId, @PathVariable Long searchId) {\r\n\t\tEbayItem item;\r\n\t\tModelAndView modelAndView = new ModelAndView();\r\n\t\tSearch search;\r\n\t\ttry {\r\n\t\t\tsearch = searchService.getSearch(searchId);\r\n\t\t} catch (Exception e) {\r\n\t\t\tsearch = null;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\titem = itemService.getItemForDisplay(itemId, search);\r\n\t\t} catch (Exception e) {\r\n\t\t\tmodelAndView.setViewName(\"redirect:/error\");\r\n\t\t\treturn modelAndView;\r\n\t\t}\r\n\t\tsetUpModelAndView(modelAndView, item);\r\n\t\tmodelAndView.setViewName(\"itemDetail\");\r\n\t\treturn modelAndView;\r\n\t}",
"@Override\n\tpublic ItemInfoWrap getItemInfoByItemId(long itemId) {\n\t\tString httpClientResult = HttpClientUtil.doGet(HTTPCLIENTURL + HTTPCLIENTITEMINFO + itemId);\n\t\tItemInfoWrap jsonToPojo = JsonUtils.jsonToPojo(httpClientResult, ItemInfoWrap.class);\n\t\treturn jsonToPojo;\n\t}",
"public void getRemoteItemById(long item_id) {\n url = Constants.getItemById;\n params = new HashMap<>();\n params.put(param_item_id, \"\" + item_id);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.getItemById(item_id, mIRestApiCallBack, true, url, params);\n } else {\n //Toast.makeText(mContext, mContext.getString(R.string.noInternetConnection), Toast.LENGTH_LONG).show();\n mIRestApiCallBack.onNoInternet();\n CacheApi cacheApi = loadCacheData(url, params);\n mSqliteCallBack.onDBDataObjectLoaded(cacheApi);\n }\n\n }",
"public String getItemURL() {\n String shownAt = jsonParent.getString(\"isShownAt\");\n println(shownAt);\n return shownAt;\n }",
"@Override\n public URI getId() {\n return id;\n }",
"int getItemId() {\n return m_itemId;\n }",
"protected abstract RMItem readData( int id, String key );",
"public String getDetail_id() {\n return detail_id;\n }",
"Identifiable item();",
"private String getDetail(final String dbBookId) {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBObject obj = coll.findOne(QueryCriteria.getById(dbBookId));\n\t\t\n\t\tif (obj != null) {\n\t\t\tobj.put(\"href\", Server.getBaseUrl() +\"/books/\" + dbBookId);\n\t\t\treplaceCollectionUuidsWObjRefs(obj);\n\t\t}\n\n\t\treturn obj != null ? obj.toString() : \"{'notFound':'\" + dbBookId + \"'}\";\n\t}",
"public\n\t// static\n\tUriComponents showURI(Entity entity) {\n\t\treturn MvcUriComponentsBuilder\n\t\t\t\t.fromMethodCall(MvcUriComponentsBuilder.on(AbstractItemJsonController.class).show(entity))\n\t\t\t\t.buildAndExpand(entity.getId()).encode();\n\t}",
"@Test\r\n\tpublic void testIdItem() {\r\n\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0, 0, 0, 0, 0, null, null);\r\n\r\n\t\t\tAssert.assertEquals(12321, itemDes.getIdItem());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\r\n\t}",
"@java.lang.Override\n public long getItemId() {\n return itemId_;\n }",
"public static String getPlaceDetailId(Uri uri) {\n\t\t\treturn uri.getLastPathSegment();\n\t\t}",
"@GetMapping(\"/getItem/{id}\")\n\tpublic ModelAndView getItemById(@PathVariable(value=\"id\") long id) {\n\t\tModelAndView mv = new ModelAndView();\n\t\tItem item = itemService.findItemById(id);\n\t\tmv.setViewName(\"editItem\");// Set the view name\n\t\tmv.addObject(\"item\", item);// Add an item to the model and view object\n\t\t\n\t\treturn mv;\n\t}",
"public ItemModel getItemByID(int id) {\n SQLiteDatabase sdb = this.getReadableDatabase();\n ItemModel item = new ItemModel();\n\n Cursor cursor = sdb.rawQuery(\"Select * from item where item_id=?\", new String[]{String.valueOf(id)} );\n cursor.moveToFirst();\n item.setItem_id(cursor.getInt(0));\n item.setItem_name(cursor.getString(1));\n item.setItem_price(cursor.getInt(2));\n item.setItem_size(cursor.getString(3));\n item.setItem_material(cursor.getString(4));\n item.setItem_desc(cursor.getString(5));\n item.setItem_gender_category(cursor.getInt(6));\n item.setItem_category(cursor.getString(7));\n item.setItem_color(cursor.getString(8));\n item.setItem_image(cursor.getString(9));\n\n cursor.close();\n\n// Log.e(\"getItembyId\", \"finished getting item by Id\");\n return item;\n }",
"public void getDetail(int id) {\n\t\t\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The Plaid Item ID. The `item_id` is always unique; linking the same account at the same institution twice will result in two Items with different `item_id` values. Like all Plaid identifiers, the `item_id` is case-sensitive.\")\n\n public String getItemId() {\n return itemId;\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\r\n\t@PreAuthorize(\"hasRole('ROLE_MODERATOR') or hasPermission(#id,'WebItem','edit')\")\r\n\tpublic String getWebItem(@PathVariable long id, Model model) throws IOException, URISyntaxException {\r\n\t\tWebItem webItem = webItemService.getWebItemById(id);\r\n\t\tString uri = webItem.getSourceURL();\r\n\t\tArrayList<String> ImageUrls = new ArrayList<String>();\r\n\r\n\t\tWebItemMapper webItemMapper=WebItemMapperFactory.getMapper(uri);\r\n\t\tImageUrls=webItemMapper.getImageUrls();\r\n\r\n\t\tmodel.addAllAttributes(initializeModelForEntryForm());\r\n\t\tmodel.addAttribute(\"webItem\", webItem);\r\n\t\tmodel.addAttribute(\"actionTitle\", \"Edit\");\r\n\t\tmodel.addAttribute(\"imageUrls\", ImageUrls);\r\n\r\n\t\treturn \"webItemView\";\r\n\t}",
"@Override\r\n\tprotected String getPath() {\n\t\treturn \"/product/detail.do?param=\";\r\n\t}",
"Item findById(String id);",
"public void setItemId(String itemId) {\n this.itemId = itemId;\n }",
"public java.lang.String getGR_ITEM_ID() {\r\n return GR_ITEM_ID;\r\n }",
"@GetMapping(\"/{id}\")\n public ResultEntity<ItemDTO> getItemByItemId(@PathVariable String id)\n {\n return itemService.getItemByItemId(id);\n }",
"@java.lang.Override\n public long getItemId() {\n return itemId_;\n }",
"public String getItemId(){\r\n\t\treturn \"\";\r\n\t}",
"public Number getDetailId() {\n return (Number)getAttributeInternal(DETAILID);\n }",
"private void inspectItem(String item)//Made by Lexi\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n System.out.println(\"The item is: \" + itemFound.getTitle());\n System.out.println(\"Description of the item: \" + itemFound.getDescription());\n System.out.println(\"Item Weight: \" + itemFound.getWeight());\n System.out.println(\"Room item was found in: \" + itemFound.getLocation().getTitle());\n }\n }",
"long getID(Object item);",
"Item getItem(int id) {\n SQLiteDatabase db = DataBaseManager.getInstance().openDatabase();\n Cursor cursor = db.query(TABLE_ITEMS, new String[]{KEY_ID,\n KEY_ARRAY_ID, KEY_NAME, KEY_DESCRIPTION},\n KEY_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n Item item = null;\n if (cursor != null) {\n cursor.moveToFirst();\n\n item = new Item(Integer.parseInt(cursor.getString(KEY_INDEX)), Integer.parseInt(cursor.getString(ARRAY_INDEX)),\n cursor.getString(NAME_INDEX), cursor.getString(DESCRIPTION_INDEX));\n }\n DataBaseManager.getInstance().closeDatabase();\n // return contact\n return item;\n }",
"public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);}",
"@Override\r\n public int getItemId() {\n return this.itemId;\r\n }",
"public String uri() {\n return this.uri;\n }",
"private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}",
"@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }",
"@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String iid = Constants.BLOGS_DETAIL + mBlogList.getList().get(position).getId()+\".xml\";\n\n System.out.println(\"blog----iid= \"+iid);\n Intent intent = new Intent(UIUtils.getContext(), BlogDetailActivity.class);\n intent.putExtra(OschinaIntent.EXTRA_BLOGS_DETAIL, iid);\n startActivity(intent);\n\n }",
"@Override\n public String toString()\n {\n final StringBuilder sb = new StringBuilder(\"Item{\");\n sb.append(\"id=\").append(id);\n sb.append(\", userId=\").append(userId);\n sb.append(\", listId=\").append(listId);\n sb.append(\", positionIndex=\").append(positionIndex);\n sb.append(\", title='\").append(title).append('\\'');\n sb.append(\", body='\").append(body).append('\\'');\n sb.append('}');\n return sb.toString();\n }",
"protected URI getPageURI(String uid, UriInfo uriInfo) {\n\t\tUriBuilder builder = UriBuilder.fromUri(uriInfo.getBaseUri());\n\t\tbuilder.path(\"uid\");\n\t\tbuilder.path(uid);\n\t\treturn builder.build();\n\t}",
"public int getItemId() {\n\t\treturn id;\n\t}",
"@Override\n\tpublic ThematicItem getItem(Long id) {\n\t\treturn repository.getItem(id);\n\t}",
"public int getItem_id() {\r\n\t\treturn item_id;\r\n\t}",
"public abstract MediaItem getMediaItem(String id);",
"@Override\n public long getItemId(int itemId) {\n return itemId;\n }",
"@Override\n\tpublic ExternalRecord getItemExternalRecord(int itemId) {\n\t\tif (!loaded)\n\t\t\treturn super.getItemExternalRecord(itemId);\n\t\telse\n\t\t\treturn externalItemRecordMap.get(itemId);\n\t}",
"public void setItemDetailName(String itemDetailName) {\n this.itemDetailName = itemDetailName;\n }",
"@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}",
"public Object getItem(Node itemNode) throws XmlRecipeException;",
"@RequestMapping(value = \"/agent/enrollment/viewHelpItem\", method = RequestMethod.GET)\n public ModelAndView getHelpItem(@RequestParam(\"helpItemId\") long id) throws PortalServiceException {\n String signature = \"EnrollmentController#getHelpItem(long id)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\" }, new Object[] { id });\n\n try {\n HelpItem helpItem = helpService.get(id);\n ModelAndView model = new ModelAndView(\"admin/help_detail\");\n model.addObject(\"helpItem\", helpItem);\n\n return LogUtil.traceExit(getLog(), signature, model);\n } catch (PortalServiceException e) {\n LogUtil.traceError(getLog(), signature, e);\n throw e;\n }\n }",
"int getResourceId();",
"public synchronized String getItemDetails(){\n \tString s = \"\\n========================================\";\n \ts += \"\\nID: \"+ ID;\n \ts += \"\\nName: \"+ item_name;\n \ts += \"\\nStarting Price: \"+ start_price;\n \ts += \"\\nNumber Of bidders: \" + bids.size();\n \ts += \"\\n status: \" + status;\n\n \tif(status == \"open\"){\n \t\tif(last_bidder == null){\n \t\t\t\ts += \"\\nLast Bidder: No bids yet\";\n \t\t}else{\n \t\t\ts += \"\\n last_bidder: \"+ last_bidderName;\n \t\t}\n \t}else if(status == \"closed\"){\n \t\tif(last_bidder == null){\n \t\t\t\ts += \"\\nLast Bidder: Closed with No bids\";\n \t\t}else{\n \t\t\ts += \"\\n Won by: \"+ last_bidderName +\" at price of \"+ start_price;\n \t\t}\n \t}\n \ts += \"\\n========================================\";\n return s;\n }",
"public UriInfo getUriInfo() {\n return _uriInfo;\n }",
"@Override\n\tpublic TbItemDesc getItemDescByItemId(long itemId) {\n\t\tString httpClientResult = HttpClientUtil.doGet(HTTPCLIENTURL + HTTPCLIENTITEMDESC + itemId);\n\t\tTbItemDesc formatToPojo = JsonUtils.jsonToPojo(httpClientResult, TbItemDesc.class);\n\t\treturn formatToPojo;\n\t}",
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n Item item = (Item) mItems.get(arg2);\n Intent intent = new Intent(this, ItemDetailActivity.class);\n intent.putExtra(\"TITLE\", item.getTitle());\n intent.putExtra(\"DESCRIPTION\", item.getDescription());\n intent.putExtra(\"DATE\", item.getDate());\n intent.putExtra(\"LINK\", item.getLink());\n startActivity(intent);\n }",
"private static String buildOsrsExchangeUrl(int itemId)\n\t{\n\t\tString url = new HttpUrl.Builder()\n\t\t\t.scheme(\"http\")\n\t\t\t.host(\"services.runescape.com\")\n\t\t\t.addPathSegment(\"m=itemdb_oldschool\")\n\t\t\t.addPathSegment(\"Runescape\")\n\t\t\t.addPathSegment(\"viewitem\")\n\t\t\t.addQueryParameter(\"obj\", String.valueOf(itemId))\n\t\t\t.build()\n\t\t\t.toString();\n\n\t\tlog.info(\"Opening OSRS Exchange: \" + url);\n\t\treturn url;\n\t}",
"public void setItemID(String itemID) {\n\t this.itemID = itemID;\n\t}",
"public @NotNull Item findItem(@NotNull final Identifier identifier) throws ItemNotFoundException, BazaarException;",
"public void setItemId(Long itemId) {\r\n this.itemId = itemId;\r\n }",
"abstract int getItemID(int level);",
"public Item getItem(int itemId) {\n\t\treturn (Item) hashOperations.get(KEY, itemId);\n\t}",
"public Long getResourceId(){\n return id;\n }",
"public String getResourceId();",
"public String getItem(int id) {\n return mprimo.get(id);\n }",
"public long getSuburItemId();",
"public String getItem() {\r\n return item;\r\n }"
] | [
"0.6666035",
"0.6208948",
"0.6075208",
"0.5950885",
"0.59346324",
"0.5929481",
"0.5919614",
"0.58884424",
"0.5876978",
"0.5876602",
"0.58739907",
"0.58486515",
"0.58486515",
"0.5847852",
"0.5847852",
"0.5842365",
"0.5837266",
"0.58316183",
"0.57981104",
"0.57888246",
"0.5769907",
"0.5728949",
"0.56816363",
"0.5681523",
"0.5681523",
"0.5672176",
"0.56423926",
"0.56094027",
"0.5597523",
"0.55858845",
"0.55808175",
"0.5567541",
"0.55625516",
"0.5547815",
"0.5503897",
"0.54976207",
"0.5492386",
"0.54883045",
"0.547794",
"0.5466858",
"0.54575527",
"0.5448454",
"0.54456574",
"0.54430836",
"0.5441987",
"0.5437808",
"0.5423224",
"0.5373112",
"0.53721386",
"0.5370138",
"0.5366825",
"0.5351942",
"0.53387266",
"0.53355104",
"0.5322032",
"0.53187084",
"0.5285304",
"0.52803844",
"0.5254271",
"0.52515024",
"0.5238798",
"0.5235618",
"0.5206027",
"0.52047527",
"0.51934904",
"0.5193156",
"0.51846945",
"0.51739824",
"0.51739824",
"0.5162649",
"0.51593715",
"0.5158374",
"0.5158254",
"0.515228",
"0.51512057",
"0.514034",
"0.51245654",
"0.51234215",
"0.5117286",
"0.5115752",
"0.51054865",
"0.50950056",
"0.50923115",
"0.5083283",
"0.50813556",
"0.50809366",
"0.5076169",
"0.50698704",
"0.5065988",
"0.5053327",
"0.50529706",
"0.504832",
"0.50408524",
"0.5030758",
"0.5029727",
"0.50224906",
"0.5014428",
"0.5009939"
] | 0.5290925 | 58 |
Read item ID item detail URI. | public static long getItemId(Uri itemUri) {
return Long.parseLong(itemUri.getPathSegments().get(1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getItemDetailId() {\n return itemDetailId;\n }",
"public String getItemIdentifier();",
"public String getItemID() {\n\t return this.itemID;\n\t}",
"@GetMapping(value=\"/item/view/{itemId}\")\r\n\tpublic ModelAndView itemDetailGetSingle(@PathVariable Long itemId) {\r\n\t\tEbayItem item;\r\n\t\tModelAndView modelAndView = new ModelAndView();\r\n\t\ttry {\r\n\t\t\titem = itemService.getItemForDisplay(itemId, null);\r\n\t\t} catch (Exception e) {\r\n\t\t\tmodelAndView.setViewName(\"redirect:/error\");\r\n\t\t\treturn modelAndView;\r\n\t\t}\r\n\t\tsetUpModelAndView(modelAndView, item);\r\n\t\tmodelAndView.setViewName(\"itemDetail\");\r\n\t\treturn modelAndView;\r\n\t}",
"public int getItemID()\n {\n return itemID;\n }",
"public String getItemId() {\r\n return itemId;\r\n }",
"public String getItemId() {\n return itemId;\n }",
"public URI getID() {\n return this.id;\n }",
"public Item getItem(long idItem) throws ItemNotFound;",
"public void setItemDetailId(Integer itemDetailId) {\n this.itemDetailId = itemDetailId;\n }",
"public static Items listItemDetails(final int argItemId) {\r\n Items item = dao().listItemDetails(argItemId);\r\n return item;\r\n }",
"public Integer getItemid() {\n return itemid;\n }",
"public Integer getItemid() {\n return itemid;\n }",
"@Override\n\tpublic Item getItemByID(String itemId) {\n\n\t\treturn actionOnItem(itemId).get(0);\n\t}",
"@Override\n\tpublic Item getItemByID(String itemId) {\n\n\t\treturn actionOnItem(itemId).get(0);\n\t}",
"public Item getItemById(Integer itemId);",
"@Override\n public Item get(long idItem) throws EntityNotFound;",
"public String getStringID() {\r\n\t\treturn uri.getPath();\r\n\t}",
"@RequestMapping(method=RequestMethod.GET, value = \"/item/{id}\", produces = \"application/json\")\n public Item getItem(@PathVariable (name = \"id\") UUID id)\n {\n return this.itemRepository.getItem(id);\n }",
"@RequestMapping(\n\t\t\tvalue = \"/item/{itemId}\",\n\t\t\tmethod = RequestMethod.GET,\n\t\t\tproduces = \"application/json\")\n\tpublic ItemModel getItem(\n\t\t\t@RequestParam(name = \"userId\") String readUserId,\n\t\t\t@PathVariable(name = \"itemId\") String itemId) {\n\n\t\treturn handleGetItemRequest(readUserId, itemId);\n\t}",
"@GetMapping(\"/items/{item_id}\")\n\tpublic ResponseEntity<Item> getItemById(@PathVariable(value=\"item_id\") Long item_id){ \n\t\tItem item = itemDAO.findOne(item_id);\n\t\t\n\t\tif(item == null) {\n\t\t\treturn ResponseEntity.notFound().build();\n\t\t}\n\t\treturn ResponseEntity.ok().body(item);\n\t}",
"@JsonIgnore\n public String getId() {\n return UriHelper.getLastUriPart(getUri());\n }",
"int getItemID();",
"public URI getId();",
"public URI getId();",
"public String getItemDetailName() {\n return itemDetailName;\n }",
"public int getItemId() {\n return itemId;\n }",
"CatalogItem getItembyId(final Long id);",
"public int getItemId()\r\n {\r\n return _itemId;\r\n }",
"private int getItemID(String item) {\n\t\titem = item.replace(\" \", \"%20\");\n\t\t//log(\"Item: \" + item);\n \ttry {\n \tString webPage = \"http://\" + serverIP + \"/getid.php?i=\" + item;\n \t//log(\"Webpage: '\" +webPage+\"'\");\n \tURL url = new URL(webPage);\n \tURLConnection urlConnection = url.openConnection();\n \tInputStream is = urlConnection.getInputStream();\n \tInputStreamReader isr = new InputStreamReader(is);\n\n \tint numCharsRead;\n \tchar[] charArray = new char[1024];\n \tStringBuffer sb = new StringBuffer();\n \twhile ((numCharsRead = isr.read(charArray)) > 0) {\n \tsb.append(charArray, 0, numCharsRead);\n \t}\n \tString result = sb.toString();\n \t//log(\"ItemID: \" + result);\n \t//window.status.setText(\"Ready\");\n\n \treturn Integer.parseInt(result);\n \t} catch (Exception e) {\n \tlog(\"Exception occurred at getID.\" + e);\n \t}\n\n \treturn 0;\n \t}",
"public Long getItemId() {\r\n return itemId;\r\n }",
"@RequestMapping(value = \"/item/{id}\", method = RequestMethod.GET)\n\tpublic @ResponseBody Optional<Item> findItemRest(@PathVariable(\"id\") Long itemId) {\n\t\treturn repository.findById(itemId);\n\t}",
"protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}",
"@GetMapping(value=\"/item/view/{searchId}/{itemId}\")\r\n\tpublic ModelAndView itemDetailGet(@PathVariable Long itemId, @PathVariable Long searchId) {\r\n\t\tEbayItem item;\r\n\t\tModelAndView modelAndView = new ModelAndView();\r\n\t\tSearch search;\r\n\t\ttry {\r\n\t\t\tsearch = searchService.getSearch(searchId);\r\n\t\t} catch (Exception e) {\r\n\t\t\tsearch = null;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\titem = itemService.getItemForDisplay(itemId, search);\r\n\t\t} catch (Exception e) {\r\n\t\t\tmodelAndView.setViewName(\"redirect:/error\");\r\n\t\t\treturn modelAndView;\r\n\t\t}\r\n\t\tsetUpModelAndView(modelAndView, item);\r\n\t\tmodelAndView.setViewName(\"itemDetail\");\r\n\t\treturn modelAndView;\r\n\t}",
"@Override\n\tpublic ItemInfoWrap getItemInfoByItemId(long itemId) {\n\t\tString httpClientResult = HttpClientUtil.doGet(HTTPCLIENTURL + HTTPCLIENTITEMINFO + itemId);\n\t\tItemInfoWrap jsonToPojo = JsonUtils.jsonToPojo(httpClientResult, ItemInfoWrap.class);\n\t\treturn jsonToPojo;\n\t}",
"public void getRemoteItemById(long item_id) {\n url = Constants.getItemById;\n params = new HashMap<>();\n params.put(param_item_id, \"\" + item_id);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.getItemById(item_id, mIRestApiCallBack, true, url, params);\n } else {\n //Toast.makeText(mContext, mContext.getString(R.string.noInternetConnection), Toast.LENGTH_LONG).show();\n mIRestApiCallBack.onNoInternet();\n CacheApi cacheApi = loadCacheData(url, params);\n mSqliteCallBack.onDBDataObjectLoaded(cacheApi);\n }\n\n }",
"public String getItemURL() {\n String shownAt = jsonParent.getString(\"isShownAt\");\n println(shownAt);\n return shownAt;\n }",
"@Override\n public URI getId() {\n return id;\n }",
"int getItemId() {\n return m_itemId;\n }",
"protected abstract RMItem readData( int id, String key );",
"public String getDetail_id() {\n return detail_id;\n }",
"Identifiable item();",
"private String getDetail(final String dbBookId) {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBObject obj = coll.findOne(QueryCriteria.getById(dbBookId));\n\t\t\n\t\tif (obj != null) {\n\t\t\tobj.put(\"href\", Server.getBaseUrl() +\"/books/\" + dbBookId);\n\t\t\treplaceCollectionUuidsWObjRefs(obj);\n\t\t}\n\n\t\treturn obj != null ? obj.toString() : \"{'notFound':'\" + dbBookId + \"'}\";\n\t}",
"@Test\r\n\tpublic void testIdItem() {\r\n\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0, 0, 0, 0, 0, null, null);\r\n\r\n\t\t\tAssert.assertEquals(12321, itemDes.getIdItem());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\r\n\t}",
"public\n\t// static\n\tUriComponents showURI(Entity entity) {\n\t\treturn MvcUriComponentsBuilder\n\t\t\t\t.fromMethodCall(MvcUriComponentsBuilder.on(AbstractItemJsonController.class).show(entity))\n\t\t\t\t.buildAndExpand(entity.getId()).encode();\n\t}",
"@java.lang.Override\n public long getItemId() {\n return itemId_;\n }",
"public static String getPlaceDetailId(Uri uri) {\n\t\t\treturn uri.getLastPathSegment();\n\t\t}",
"@GetMapping(\"/getItem/{id}\")\n\tpublic ModelAndView getItemById(@PathVariable(value=\"id\") long id) {\n\t\tModelAndView mv = new ModelAndView();\n\t\tItem item = itemService.findItemById(id);\n\t\tmv.setViewName(\"editItem\");// Set the view name\n\t\tmv.addObject(\"item\", item);// Add an item to the model and view object\n\t\t\n\t\treturn mv;\n\t}",
"public ItemModel getItemByID(int id) {\n SQLiteDatabase sdb = this.getReadableDatabase();\n ItemModel item = new ItemModel();\n\n Cursor cursor = sdb.rawQuery(\"Select * from item where item_id=?\", new String[]{String.valueOf(id)} );\n cursor.moveToFirst();\n item.setItem_id(cursor.getInt(0));\n item.setItem_name(cursor.getString(1));\n item.setItem_price(cursor.getInt(2));\n item.setItem_size(cursor.getString(3));\n item.setItem_material(cursor.getString(4));\n item.setItem_desc(cursor.getString(5));\n item.setItem_gender_category(cursor.getInt(6));\n item.setItem_category(cursor.getString(7));\n item.setItem_color(cursor.getString(8));\n item.setItem_image(cursor.getString(9));\n\n cursor.close();\n\n// Log.e(\"getItembyId\", \"finished getting item by Id\");\n return item;\n }",
"public void getDetail(int id) {\n\t\t\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The Plaid Item ID. The `item_id` is always unique; linking the same account at the same institution twice will result in two Items with different `item_id` values. Like all Plaid identifiers, the `item_id` is case-sensitive.\")\n\n public String getItemId() {\n return itemId;\n }",
"@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\r\n\t@PreAuthorize(\"hasRole('ROLE_MODERATOR') or hasPermission(#id,'WebItem','edit')\")\r\n\tpublic String getWebItem(@PathVariable long id, Model model) throws IOException, URISyntaxException {\r\n\t\tWebItem webItem = webItemService.getWebItemById(id);\r\n\t\tString uri = webItem.getSourceURL();\r\n\t\tArrayList<String> ImageUrls = new ArrayList<String>();\r\n\r\n\t\tWebItemMapper webItemMapper=WebItemMapperFactory.getMapper(uri);\r\n\t\tImageUrls=webItemMapper.getImageUrls();\r\n\r\n\t\tmodel.addAllAttributes(initializeModelForEntryForm());\r\n\t\tmodel.addAttribute(\"webItem\", webItem);\r\n\t\tmodel.addAttribute(\"actionTitle\", \"Edit\");\r\n\t\tmodel.addAttribute(\"imageUrls\", ImageUrls);\r\n\r\n\t\treturn \"webItemView\";\r\n\t}",
"@Override\r\n\tprotected String getPath() {\n\t\treturn \"/product/detail.do?param=\";\r\n\t}",
"Item findById(String id);",
"public void setItemId(String itemId) {\n this.itemId = itemId;\n }",
"public java.lang.String getGR_ITEM_ID() {\r\n return GR_ITEM_ID;\r\n }",
"@GetMapping(\"/{id}\")\n public ResultEntity<ItemDTO> getItemByItemId(@PathVariable String id)\n {\n return itemService.getItemByItemId(id);\n }",
"@java.lang.Override\n public long getItemId() {\n return itemId_;\n }",
"public String getItemId(){\r\n\t\treturn \"\";\r\n\t}",
"public Number getDetailId() {\n return (Number)getAttributeInternal(DETAILID);\n }",
"private void inspectItem(String item)//Made by Lexi\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n System.out.println(\"The item is: \" + itemFound.getTitle());\n System.out.println(\"Description of the item: \" + itemFound.getDescription());\n System.out.println(\"Item Weight: \" + itemFound.getWeight());\n System.out.println(\"Room item was found in: \" + itemFound.getLocation().getTitle());\n }\n }",
"long getID(Object item);",
"Item getItem(int id) {\n SQLiteDatabase db = DataBaseManager.getInstance().openDatabase();\n Cursor cursor = db.query(TABLE_ITEMS, new String[]{KEY_ID,\n KEY_ARRAY_ID, KEY_NAME, KEY_DESCRIPTION},\n KEY_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n Item item = null;\n if (cursor != null) {\n cursor.moveToFirst();\n\n item = new Item(Integer.parseInt(cursor.getString(KEY_INDEX)), Integer.parseInt(cursor.getString(ARRAY_INDEX)),\n cursor.getString(NAME_INDEX), cursor.getString(DESCRIPTION_INDEX));\n }\n DataBaseManager.getInstance().closeDatabase();\n // return contact\n return item;\n }",
"public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);}",
"@Override\r\n public int getItemId() {\n return this.itemId;\r\n }",
"public String uri() {\n return this.uri;\n }",
"private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}",
"@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }",
"@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String iid = Constants.BLOGS_DETAIL + mBlogList.getList().get(position).getId()+\".xml\";\n\n System.out.println(\"blog----iid= \"+iid);\n Intent intent = new Intent(UIUtils.getContext(), BlogDetailActivity.class);\n intent.putExtra(OschinaIntent.EXTRA_BLOGS_DETAIL, iid);\n startActivity(intent);\n\n }",
"@Override\n public String toString()\n {\n final StringBuilder sb = new StringBuilder(\"Item{\");\n sb.append(\"id=\").append(id);\n sb.append(\", userId=\").append(userId);\n sb.append(\", listId=\").append(listId);\n sb.append(\", positionIndex=\").append(positionIndex);\n sb.append(\", title='\").append(title).append('\\'');\n sb.append(\", body='\").append(body).append('\\'');\n sb.append('}');\n return sb.toString();\n }",
"public int getItemId() {\n\t\treturn id;\n\t}",
"protected URI getPageURI(String uid, UriInfo uriInfo) {\n\t\tUriBuilder builder = UriBuilder.fromUri(uriInfo.getBaseUri());\n\t\tbuilder.path(\"uid\");\n\t\tbuilder.path(uid);\n\t\treturn builder.build();\n\t}",
"public int getItem_id() {\r\n\t\treturn item_id;\r\n\t}",
"@Override\n\tpublic ThematicItem getItem(Long id) {\n\t\treturn repository.getItem(id);\n\t}",
"public abstract MediaItem getMediaItem(String id);",
"@Override\n public long getItemId(int itemId) {\n return itemId;\n }",
"@Override\n\tpublic ExternalRecord getItemExternalRecord(int itemId) {\n\t\tif (!loaded)\n\t\t\treturn super.getItemExternalRecord(itemId);\n\t\telse\n\t\t\treturn externalItemRecordMap.get(itemId);\n\t}",
"public void setItemDetailName(String itemDetailName) {\n this.itemDetailName = itemDetailName;\n }",
"@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}",
"public Object getItem(Node itemNode) throws XmlRecipeException;",
"@RequestMapping(value = \"/agent/enrollment/viewHelpItem\", method = RequestMethod.GET)\n public ModelAndView getHelpItem(@RequestParam(\"helpItemId\") long id) throws PortalServiceException {\n String signature = \"EnrollmentController#getHelpItem(long id)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\" }, new Object[] { id });\n\n try {\n HelpItem helpItem = helpService.get(id);\n ModelAndView model = new ModelAndView(\"admin/help_detail\");\n model.addObject(\"helpItem\", helpItem);\n\n return LogUtil.traceExit(getLog(), signature, model);\n } catch (PortalServiceException e) {\n LogUtil.traceError(getLog(), signature, e);\n throw e;\n }\n }",
"int getResourceId();",
"public synchronized String getItemDetails(){\n \tString s = \"\\n========================================\";\n \ts += \"\\nID: \"+ ID;\n \ts += \"\\nName: \"+ item_name;\n \ts += \"\\nStarting Price: \"+ start_price;\n \ts += \"\\nNumber Of bidders: \" + bids.size();\n \ts += \"\\n status: \" + status;\n\n \tif(status == \"open\"){\n \t\tif(last_bidder == null){\n \t\t\t\ts += \"\\nLast Bidder: No bids yet\";\n \t\t}else{\n \t\t\ts += \"\\n last_bidder: \"+ last_bidderName;\n \t\t}\n \t}else if(status == \"closed\"){\n \t\tif(last_bidder == null){\n \t\t\t\ts += \"\\nLast Bidder: Closed with No bids\";\n \t\t}else{\n \t\t\ts += \"\\n Won by: \"+ last_bidderName +\" at price of \"+ start_price;\n \t\t}\n \t}\n \ts += \"\\n========================================\";\n return s;\n }",
"@Override\n\tpublic TbItemDesc getItemDescByItemId(long itemId) {\n\t\tString httpClientResult = HttpClientUtil.doGet(HTTPCLIENTURL + HTTPCLIENTITEMDESC + itemId);\n\t\tTbItemDesc formatToPojo = JsonUtils.jsonToPojo(httpClientResult, TbItemDesc.class);\n\t\treturn formatToPojo;\n\t}",
"public UriInfo getUriInfo() {\n return _uriInfo;\n }",
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n Item item = (Item) mItems.get(arg2);\n Intent intent = new Intent(this, ItemDetailActivity.class);\n intent.putExtra(\"TITLE\", item.getTitle());\n intent.putExtra(\"DESCRIPTION\", item.getDescription());\n intent.putExtra(\"DATE\", item.getDate());\n intent.putExtra(\"LINK\", item.getLink());\n startActivity(intent);\n }",
"private static String buildOsrsExchangeUrl(int itemId)\n\t{\n\t\tString url = new HttpUrl.Builder()\n\t\t\t.scheme(\"http\")\n\t\t\t.host(\"services.runescape.com\")\n\t\t\t.addPathSegment(\"m=itemdb_oldschool\")\n\t\t\t.addPathSegment(\"Runescape\")\n\t\t\t.addPathSegment(\"viewitem\")\n\t\t\t.addQueryParameter(\"obj\", String.valueOf(itemId))\n\t\t\t.build()\n\t\t\t.toString();\n\n\t\tlog.info(\"Opening OSRS Exchange: \" + url);\n\t\treturn url;\n\t}",
"public void setItemID(String itemID) {\n\t this.itemID = itemID;\n\t}",
"public void setItemId(Long itemId) {\r\n this.itemId = itemId;\r\n }",
"public @NotNull Item findItem(@NotNull final Identifier identifier) throws ItemNotFoundException, BazaarException;",
"abstract int getItemID(int level);",
"public Item getItem(int itemId) {\n\t\treturn (Item) hashOperations.get(KEY, itemId);\n\t}",
"public Long getResourceId(){\n return id;\n }",
"public String getResourceId();",
"public String getItem(int id) {\n return mprimo.get(id);\n }",
"public long getSuburItemId();",
"public String getItem() {\r\n return item;\r\n }"
] | [
"0.6668221",
"0.6210902",
"0.6077952",
"0.5952715",
"0.5937577",
"0.5932564",
"0.59226847",
"0.5887827",
"0.5879475",
"0.5878594",
"0.58754545",
"0.5850765",
"0.5850765",
"0.5850698",
"0.5850698",
"0.58453214",
"0.5838815",
"0.58308023",
"0.57989293",
"0.5789785",
"0.57714355",
"0.57282466",
"0.56843317",
"0.56804085",
"0.56804085",
"0.56737626",
"0.5645414",
"0.5611126",
"0.5600412",
"0.55873907",
"0.558393",
"0.55685604",
"0.55635834",
"0.5549215",
"0.55060554",
"0.54983115",
"0.5493277",
"0.54877573",
"0.5480768",
"0.54676914",
"0.54585814",
"0.5449893",
"0.54447955",
"0.5444223",
"0.5441888",
"0.5440891",
"0.54227835",
"0.53744256",
"0.5373767",
"0.5370778",
"0.5368476",
"0.53517896",
"0.53387654",
"0.5337149",
"0.5325212",
"0.5320083",
"0.52864534",
"0.5283426",
"0.52567446",
"0.5252693",
"0.5239304",
"0.52381325",
"0.52077",
"0.52068114",
"0.519607",
"0.51909107",
"0.5182936",
"0.5175291",
"0.5175291",
"0.51637244",
"0.51616096",
"0.51609707",
"0.5157395",
"0.515411",
"0.51540804",
"0.5141808",
"0.5127077",
"0.51235944",
"0.5118789",
"0.5113625",
"0.5106408",
"0.5095312",
"0.50912684",
"0.5085046",
"0.5082618",
"0.5079304",
"0.5077677",
"0.5069278",
"0.50685984",
"0.5056592",
"0.50548345",
"0.5050947",
"0.5043295",
"0.5030142",
"0.5028344",
"0.5024577",
"0.5016724",
"0.501235"
] | 0.5292517 | 57 |
Read item ID item detail URI. | public static long getItemId(Uri itemUri) {
return Long.parseLong(itemUri.getPathSegments().get(1));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getItemDetailId() {\n return itemDetailId;\n }",
"public String getItemIdentifier();",
"public String getItemID() {\n\t return this.itemID;\n\t}",
"@GetMapping(value=\"/item/view/{itemId}\")\r\n\tpublic ModelAndView itemDetailGetSingle(@PathVariable Long itemId) {\r\n\t\tEbayItem item;\r\n\t\tModelAndView modelAndView = new ModelAndView();\r\n\t\ttry {\r\n\t\t\titem = itemService.getItemForDisplay(itemId, null);\r\n\t\t} catch (Exception e) {\r\n\t\t\tmodelAndView.setViewName(\"redirect:/error\");\r\n\t\t\treturn modelAndView;\r\n\t\t}\r\n\t\tsetUpModelAndView(modelAndView, item);\r\n\t\tmodelAndView.setViewName(\"itemDetail\");\r\n\t\treturn modelAndView;\r\n\t}",
"public int getItemID()\n {\n return itemID;\n }",
"public String getItemId() {\r\n return itemId;\r\n }",
"public String getItemId() {\n return itemId;\n }",
"public URI getID() {\n return this.id;\n }",
"public void setItemDetailId(Integer itemDetailId) {\n this.itemDetailId = itemDetailId;\n }",
"public Item getItem(long idItem) throws ItemNotFound;",
"public static Items listItemDetails(final int argItemId) {\r\n Items item = dao().listItemDetails(argItemId);\r\n return item;\r\n }",
"public Integer getItemid() {\n return itemid;\n }",
"public Integer getItemid() {\n return itemid;\n }",
"@Override\n\tpublic Item getItemByID(String itemId) {\n\n\t\treturn actionOnItem(itemId).get(0);\n\t}",
"@Override\n\tpublic Item getItemByID(String itemId) {\n\n\t\treturn actionOnItem(itemId).get(0);\n\t}",
"public Item getItemById(Integer itemId);",
"@Override\n public Item get(long idItem) throws EntityNotFound;",
"public String getStringID() {\r\n\t\treturn uri.getPath();\r\n\t}",
"@RequestMapping(method=RequestMethod.GET, value = \"/item/{id}\", produces = \"application/json\")\n public Item getItem(@PathVariable (name = \"id\") UUID id)\n {\n return this.itemRepository.getItem(id);\n }",
"@RequestMapping(\n\t\t\tvalue = \"/item/{itemId}\",\n\t\t\tmethod = RequestMethod.GET,\n\t\t\tproduces = \"application/json\")\n\tpublic ItemModel getItem(\n\t\t\t@RequestParam(name = \"userId\") String readUserId,\n\t\t\t@PathVariable(name = \"itemId\") String itemId) {\n\n\t\treturn handleGetItemRequest(readUserId, itemId);\n\t}",
"@GetMapping(\"/items/{item_id}\")\n\tpublic ResponseEntity<Item> getItemById(@PathVariable(value=\"item_id\") Long item_id){ \n\t\tItem item = itemDAO.findOne(item_id);\n\t\t\n\t\tif(item == null) {\n\t\t\treturn ResponseEntity.notFound().build();\n\t\t}\n\t\treturn ResponseEntity.ok().body(item);\n\t}",
"@JsonIgnore\n public String getId() {\n return UriHelper.getLastUriPart(getUri());\n }",
"int getItemID();",
"public URI getId();",
"public URI getId();",
"public String getItemDetailName() {\n return itemDetailName;\n }",
"public int getItemId() {\n return itemId;\n }",
"CatalogItem getItembyId(final Long id);",
"public int getItemId()\r\n {\r\n return _itemId;\r\n }",
"private int getItemID(String item) {\n\t\titem = item.replace(\" \", \"%20\");\n\t\t//log(\"Item: \" + item);\n \ttry {\n \tString webPage = \"http://\" + serverIP + \"/getid.php?i=\" + item;\n \t//log(\"Webpage: '\" +webPage+\"'\");\n \tURL url = new URL(webPage);\n \tURLConnection urlConnection = url.openConnection();\n \tInputStream is = urlConnection.getInputStream();\n \tInputStreamReader isr = new InputStreamReader(is);\n\n \tint numCharsRead;\n \tchar[] charArray = new char[1024];\n \tStringBuffer sb = new StringBuffer();\n \twhile ((numCharsRead = isr.read(charArray)) > 0) {\n \tsb.append(charArray, 0, numCharsRead);\n \t}\n \tString result = sb.toString();\n \t//log(\"ItemID: \" + result);\n \t//window.status.setText(\"Ready\");\n\n \treturn Integer.parseInt(result);\n \t} catch (Exception e) {\n \tlog(\"Exception occurred at getID.\" + e);\n \t}\n\n \treturn 0;\n \t}",
"public Long getItemId() {\r\n return itemId;\r\n }",
"@RequestMapping(value = \"/item/{id}\", method = RequestMethod.GET)\n\tpublic @ResponseBody Optional<Item> findItemRest(@PathVariable(\"id\") Long itemId) {\n\t\treturn repository.findById(itemId);\n\t}",
"protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}",
"@GetMapping(value=\"/item/view/{searchId}/{itemId}\")\r\n\tpublic ModelAndView itemDetailGet(@PathVariable Long itemId, @PathVariable Long searchId) {\r\n\t\tEbayItem item;\r\n\t\tModelAndView modelAndView = new ModelAndView();\r\n\t\tSearch search;\r\n\t\ttry {\r\n\t\t\tsearch = searchService.getSearch(searchId);\r\n\t\t} catch (Exception e) {\r\n\t\t\tsearch = null;\r\n\t\t}\r\n\t\ttry {\r\n\t\t\titem = itemService.getItemForDisplay(itemId, search);\r\n\t\t} catch (Exception e) {\r\n\t\t\tmodelAndView.setViewName(\"redirect:/error\");\r\n\t\t\treturn modelAndView;\r\n\t\t}\r\n\t\tsetUpModelAndView(modelAndView, item);\r\n\t\tmodelAndView.setViewName(\"itemDetail\");\r\n\t\treturn modelAndView;\r\n\t}",
"@Override\n\tpublic ItemInfoWrap getItemInfoByItemId(long itemId) {\n\t\tString httpClientResult = HttpClientUtil.doGet(HTTPCLIENTURL + HTTPCLIENTITEMINFO + itemId);\n\t\tItemInfoWrap jsonToPojo = JsonUtils.jsonToPojo(httpClientResult, ItemInfoWrap.class);\n\t\treturn jsonToPojo;\n\t}",
"public void getRemoteItemById(long item_id) {\n url = Constants.getItemById;\n params = new HashMap<>();\n params.put(param_item_id, \"\" + item_id);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.getItemById(item_id, mIRestApiCallBack, true, url, params);\n } else {\n //Toast.makeText(mContext, mContext.getString(R.string.noInternetConnection), Toast.LENGTH_LONG).show();\n mIRestApiCallBack.onNoInternet();\n CacheApi cacheApi = loadCacheData(url, params);\n mSqliteCallBack.onDBDataObjectLoaded(cacheApi);\n }\n\n }",
"public String getItemURL() {\n String shownAt = jsonParent.getString(\"isShownAt\");\n println(shownAt);\n return shownAt;\n }",
"@Override\n public URI getId() {\n return id;\n }",
"int getItemId() {\n return m_itemId;\n }",
"protected abstract RMItem readData( int id, String key );",
"public String getDetail_id() {\n return detail_id;\n }",
"Identifiable item();",
"@Test\r\n\tpublic void testIdItem() {\r\n\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0, 0, 0, 0, 0, null, null);\r\n\r\n\t\t\tAssert.assertEquals(12321, itemDes.getIdItem());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\r\n\t}",
"private String getDetail(final String dbBookId) {\n\t\tDB db = connectionManager.getConnection();\n\t\tDBCollection coll = db.getCollection(TableName.BOOKS);\n\t\tDBObject obj = coll.findOne(QueryCriteria.getById(dbBookId));\n\t\t\n\t\tif (obj != null) {\n\t\t\tobj.put(\"href\", Server.getBaseUrl() +\"/books/\" + dbBookId);\n\t\t\treplaceCollectionUuidsWObjRefs(obj);\n\t\t}\n\n\t\treturn obj != null ? obj.toString() : \"{'notFound':'\" + dbBookId + \"'}\";\n\t}",
"@java.lang.Override\n public long getItemId() {\n return itemId_;\n }",
"public\n\t// static\n\tUriComponents showURI(Entity entity) {\n\t\treturn MvcUriComponentsBuilder\n\t\t\t\t.fromMethodCall(MvcUriComponentsBuilder.on(AbstractItemJsonController.class).show(entity))\n\t\t\t\t.buildAndExpand(entity.getId()).encode();\n\t}",
"public static String getPlaceDetailId(Uri uri) {\n\t\t\treturn uri.getLastPathSegment();\n\t\t}",
"@GetMapping(\"/getItem/{id}\")\n\tpublic ModelAndView getItemById(@PathVariable(value=\"id\") long id) {\n\t\tModelAndView mv = new ModelAndView();\n\t\tItem item = itemService.findItemById(id);\n\t\tmv.setViewName(\"editItem\");// Set the view name\n\t\tmv.addObject(\"item\", item);// Add an item to the model and view object\n\t\t\n\t\treturn mv;\n\t}",
"public ItemModel getItemByID(int id) {\n SQLiteDatabase sdb = this.getReadableDatabase();\n ItemModel item = new ItemModel();\n\n Cursor cursor = sdb.rawQuery(\"Select * from item where item_id=?\", new String[]{String.valueOf(id)} );\n cursor.moveToFirst();\n item.setItem_id(cursor.getInt(0));\n item.setItem_name(cursor.getString(1));\n item.setItem_price(cursor.getInt(2));\n item.setItem_size(cursor.getString(3));\n item.setItem_material(cursor.getString(4));\n item.setItem_desc(cursor.getString(5));\n item.setItem_gender_category(cursor.getInt(6));\n item.setItem_category(cursor.getString(7));\n item.setItem_color(cursor.getString(8));\n item.setItem_image(cursor.getString(9));\n\n cursor.close();\n\n// Log.e(\"getItembyId\", \"finished getting item by Id\");\n return item;\n }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"The Plaid Item ID. The `item_id` is always unique; linking the same account at the same institution twice will result in two Items with different `item_id` values. Like all Plaid identifiers, the `item_id` is case-sensitive.\")\n\n public String getItemId() {\n return itemId;\n }",
"public void getDetail(int id) {\n\t\t\n\t}",
"@RequestMapping(method = RequestMethod.GET, value = \"/{id}\")\r\n\t@PreAuthorize(\"hasRole('ROLE_MODERATOR') or hasPermission(#id,'WebItem','edit')\")\r\n\tpublic String getWebItem(@PathVariable long id, Model model) throws IOException, URISyntaxException {\r\n\t\tWebItem webItem = webItemService.getWebItemById(id);\r\n\t\tString uri = webItem.getSourceURL();\r\n\t\tArrayList<String> ImageUrls = new ArrayList<String>();\r\n\r\n\t\tWebItemMapper webItemMapper=WebItemMapperFactory.getMapper(uri);\r\n\t\tImageUrls=webItemMapper.getImageUrls();\r\n\r\n\t\tmodel.addAllAttributes(initializeModelForEntryForm());\r\n\t\tmodel.addAttribute(\"webItem\", webItem);\r\n\t\tmodel.addAttribute(\"actionTitle\", \"Edit\");\r\n\t\tmodel.addAttribute(\"imageUrls\", ImageUrls);\r\n\r\n\t\treturn \"webItemView\";\r\n\t}",
"Item findById(String id);",
"@Override\r\n\tprotected String getPath() {\n\t\treturn \"/product/detail.do?param=\";\r\n\t}",
"public void setItemId(String itemId) {\n this.itemId = itemId;\n }",
"public java.lang.String getGR_ITEM_ID() {\r\n return GR_ITEM_ID;\r\n }",
"@GetMapping(\"/{id}\")\n public ResultEntity<ItemDTO> getItemByItemId(@PathVariable String id)\n {\n return itemService.getItemByItemId(id);\n }",
"@java.lang.Override\n public long getItemId() {\n return itemId_;\n }",
"public String getItemId(){\r\n\t\treturn \"\";\r\n\t}",
"public Number getDetailId() {\n return (Number)getAttributeInternal(DETAILID);\n }",
"private void inspectItem(String item)//Made by Lexi\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n System.out.println(\"The item is: \" + itemFound.getTitle());\n System.out.println(\"Description of the item: \" + itemFound.getDescription());\n System.out.println(\"Item Weight: \" + itemFound.getWeight());\n System.out.println(\"Room item was found in: \" + itemFound.getLocation().getTitle());\n }\n }",
"long getID(Object item);",
"public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);}",
"Item getItem(int id) {\n SQLiteDatabase db = DataBaseManager.getInstance().openDatabase();\n Cursor cursor = db.query(TABLE_ITEMS, new String[]{KEY_ID,\n KEY_ARRAY_ID, KEY_NAME, KEY_DESCRIPTION},\n KEY_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n Item item = null;\n if (cursor != null) {\n cursor.moveToFirst();\n\n item = new Item(Integer.parseInt(cursor.getString(KEY_INDEX)), Integer.parseInt(cursor.getString(ARRAY_INDEX)),\n cursor.getString(NAME_INDEX), cursor.getString(DESCRIPTION_INDEX));\n }\n DataBaseManager.getInstance().closeDatabase();\n // return contact\n return item;\n }",
"@Override\r\n public int getItemId() {\n return this.itemId;\r\n }",
"public String uri() {\n return this.uri;\n }",
"private String getUriForSelf(UriInfo uriInfo,OrderRepresentation ordRep){\r\n\t\tString url = uriInfo.getBaseUriBuilder()\r\n\t\t\t\t\t\t\t.path(OrderResource.class)\r\n\t\t\t\t\t\t\t.path(\"order\")\r\n\t\t\t\t\t\t\t.path(\"Order_ID\" +ordRep.getOrderID())\r\n\t\t\t\t\t\t\t.build()\r\n\t\t\t\t\t\t\t.toString();\r\n\t\treturn url;\r\n\t\t\r\n\t}",
"@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }",
"@Override\r\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Item item = items.get(position);\r\n\r\n //create a bundle object and add data to present in the details activity\r\n Bundle extras = new Bundle();\r\n extras.putInt(\"image\", item.getImageResourceId());\r\n extras.putString(\"title\", item.getTitleResourceId());\r\n extras.putString(\"text\", item.getTextResourceId());\r\n\r\n //create and initialise the intent\r\n Intent detailsIntent = new Intent(getActivity(), DetailsActivity.class);\r\n\r\n //attach the bundle to the intent object\r\n detailsIntent.putExtras(extras);\r\n\r\n //start the activity\r\n startActivity(detailsIntent);\r\n\r\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String iid = Constants.BLOGS_DETAIL + mBlogList.getList().get(position).getId()+\".xml\";\n\n System.out.println(\"blog----iid= \"+iid);\n Intent intent = new Intent(UIUtils.getContext(), BlogDetailActivity.class);\n intent.putExtra(OschinaIntent.EXTRA_BLOGS_DETAIL, iid);\n startActivity(intent);\n\n }",
"@Override\n public String toString()\n {\n final StringBuilder sb = new StringBuilder(\"Item{\");\n sb.append(\"id=\").append(id);\n sb.append(\", userId=\").append(userId);\n sb.append(\", listId=\").append(listId);\n sb.append(\", positionIndex=\").append(positionIndex);\n sb.append(\", title='\").append(title).append('\\'');\n sb.append(\", body='\").append(body).append('\\'');\n sb.append('}');\n return sb.toString();\n }",
"public int getItemId() {\n\t\treturn id;\n\t}",
"protected URI getPageURI(String uid, UriInfo uriInfo) {\n\t\tUriBuilder builder = UriBuilder.fromUri(uriInfo.getBaseUri());\n\t\tbuilder.path(\"uid\");\n\t\tbuilder.path(uid);\n\t\treturn builder.build();\n\t}",
"public int getItem_id() {\r\n\t\treturn item_id;\r\n\t}",
"@Override\n\tpublic ThematicItem getItem(Long id) {\n\t\treturn repository.getItem(id);\n\t}",
"public abstract MediaItem getMediaItem(String id);",
"@Override\n public long getItemId(int itemId) {\n return itemId;\n }",
"@Override\n\tpublic ExternalRecord getItemExternalRecord(int itemId) {\n\t\tif (!loaded)\n\t\t\treturn super.getItemExternalRecord(itemId);\n\t\telse\n\t\t\treturn externalItemRecordMap.get(itemId);\n\t}",
"public void setItemDetailName(String itemDetailName) {\n this.itemDetailName = itemDetailName;\n }",
"@Override\r\n\tpublic String getUri() {\n\t\treturn uri;\r\n\t}",
"public Object getItem(Node itemNode) throws XmlRecipeException;",
"@RequestMapping(value = \"/agent/enrollment/viewHelpItem\", method = RequestMethod.GET)\n public ModelAndView getHelpItem(@RequestParam(\"helpItemId\") long id) throws PortalServiceException {\n String signature = \"EnrollmentController#getHelpItem(long id)\";\n LogUtil.traceEntry(getLog(), signature, new String[] { \"id\" }, new Object[] { id });\n\n try {\n HelpItem helpItem = helpService.get(id);\n ModelAndView model = new ModelAndView(\"admin/help_detail\");\n model.addObject(\"helpItem\", helpItem);\n\n return LogUtil.traceExit(getLog(), signature, model);\n } catch (PortalServiceException e) {\n LogUtil.traceError(getLog(), signature, e);\n throw e;\n }\n }",
"int getResourceId();",
"public synchronized String getItemDetails(){\n \tString s = \"\\n========================================\";\n \ts += \"\\nID: \"+ ID;\n \ts += \"\\nName: \"+ item_name;\n \ts += \"\\nStarting Price: \"+ start_price;\n \ts += \"\\nNumber Of bidders: \" + bids.size();\n \ts += \"\\n status: \" + status;\n\n \tif(status == \"open\"){\n \t\tif(last_bidder == null){\n \t\t\t\ts += \"\\nLast Bidder: No bids yet\";\n \t\t}else{\n \t\t\ts += \"\\n last_bidder: \"+ last_bidderName;\n \t\t}\n \t}else if(status == \"closed\"){\n \t\tif(last_bidder == null){\n \t\t\t\ts += \"\\nLast Bidder: Closed with No bids\";\n \t\t}else{\n \t\t\ts += \"\\n Won by: \"+ last_bidderName +\" at price of \"+ start_price;\n \t\t}\n \t}\n \ts += \"\\n========================================\";\n return s;\n }",
"@Override\n\tpublic TbItemDesc getItemDescByItemId(long itemId) {\n\t\tString httpClientResult = HttpClientUtil.doGet(HTTPCLIENTURL + HTTPCLIENTITEMDESC + itemId);\n\t\tTbItemDesc formatToPojo = JsonUtils.jsonToPojo(httpClientResult, TbItemDesc.class);\n\t\treturn formatToPojo;\n\t}",
"public UriInfo getUriInfo() {\n return _uriInfo;\n }",
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n Item item = (Item) mItems.get(arg2);\n Intent intent = new Intent(this, ItemDetailActivity.class);\n intent.putExtra(\"TITLE\", item.getTitle());\n intent.putExtra(\"DESCRIPTION\", item.getDescription());\n intent.putExtra(\"DATE\", item.getDate());\n intent.putExtra(\"LINK\", item.getLink());\n startActivity(intent);\n }",
"public void setItemID(String itemID) {\n\t this.itemID = itemID;\n\t}",
"private static String buildOsrsExchangeUrl(int itemId)\n\t{\n\t\tString url = new HttpUrl.Builder()\n\t\t\t.scheme(\"http\")\n\t\t\t.host(\"services.runescape.com\")\n\t\t\t.addPathSegment(\"m=itemdb_oldschool\")\n\t\t\t.addPathSegment(\"Runescape\")\n\t\t\t.addPathSegment(\"viewitem\")\n\t\t\t.addQueryParameter(\"obj\", String.valueOf(itemId))\n\t\t\t.build()\n\t\t\t.toString();\n\n\t\tlog.info(\"Opening OSRS Exchange: \" + url);\n\t\treturn url;\n\t}",
"public void setItemId(Long itemId) {\r\n this.itemId = itemId;\r\n }",
"public @NotNull Item findItem(@NotNull final Identifier identifier) throws ItemNotFoundException, BazaarException;",
"abstract int getItemID(int level);",
"public Item getItem(int itemId) {\n\t\treturn (Item) hashOperations.get(KEY, itemId);\n\t}",
"public Long getResourceId(){\n return id;\n }",
"public String getResourceId();",
"public String getItem(int id) {\n return mprimo.get(id);\n }",
"public long getSuburItemId();",
"public String getItem() {\r\n return item;\r\n }"
] | [
"0.66691774",
"0.62109566",
"0.60784835",
"0.5952538",
"0.5938311",
"0.5932937",
"0.59230506",
"0.58863616",
"0.5880159",
"0.5879853",
"0.5876305",
"0.585189",
"0.585189",
"0.58505815",
"0.58505815",
"0.5845321",
"0.58389044",
"0.5830308",
"0.57978004",
"0.57913136",
"0.5771875",
"0.5727262",
"0.5684791",
"0.5679071",
"0.5679071",
"0.56734776",
"0.5646291",
"0.56098884",
"0.5601099",
"0.55894667",
"0.5584775",
"0.55691886",
"0.55631113",
"0.5548443",
"0.55070066",
"0.54976207",
"0.5491754",
"0.5485623",
"0.5481789",
"0.5470059",
"0.54583067",
"0.5450208",
"0.5445349",
"0.5442718",
"0.54411215",
"0.54392207",
"0.5423246",
"0.5373971",
"0.53734225",
"0.5370668",
"0.53690267",
"0.53506124",
"0.53372025",
"0.53367245",
"0.53260404",
"0.5321169",
"0.5286297",
"0.5283716",
"0.52568805",
"0.5252648",
"0.52412224",
"0.5240062",
"0.52070093",
"0.5206579",
"0.5196305",
"0.51883405",
"0.5180206",
"0.5175232",
"0.5175232",
"0.516282",
"0.51618534",
"0.5161178",
"0.5156952",
"0.5155241",
"0.5152814",
"0.5140398",
"0.51276195",
"0.51254976",
"0.51196826",
"0.5110434",
"0.5106874",
"0.509523",
"0.50916266",
"0.5084459",
"0.5083233",
"0.5077698",
"0.50773036",
"0.5069308",
"0.5067254",
"0.50574833",
"0.50544477",
"0.5051521",
"0.50438285",
"0.5030064",
"0.50280243",
"0.50229245",
"0.50174594",
"0.50121546"
] | 0.5294002 | 56 |
Used for iterating through every lines in the CSV file and close resource to release memory after done processing with records, please refer these links below for detailed documentation of each interfaces Iterator: Closable: | public interface CsvParser extends Iterator<CsvLine>, Closeable {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void closeReader() throws IOException{\n if(isOpen){\n csvReader.close();\n }\n\n }",
"@Override\n public void close() {\n CloserUtil.close(iterator);\n }",
"private Iterable<CSVRecord> obtainCsvIterable()\n throws FileNotFoundException, IOException {\n return CSVFormat.RFC4180\n .withFirstRecordAsHeader()\n .parse(this.fileReader);\n\n }",
"public void closeCSVStream() {\n\t\ttry {\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void closeCsvFile()\n{\n try {\n \n fileWriter.flush(); \n fileWriter.close(); \n \n } catch (IOException e) { \n \n System.out.println(\"Error while flushing/closing fileWriter !!!\"); \n e.printStackTrace(); \n } \n \n}",
"@Override public void close() throws IOException {\r\n\t\tif (closed) return;\r\n\t\tfor (Reader reader: readerQueue) {\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\tclosed = true;\r\n\t}",
"@Override\n public void close() {\n backingIterator.close();\n outputBuffer.close();\n isClosed = true;\n }",
"public void openCSVStream() {\n\t\ttry {\n\t\t\twriter = new CSVWriter(new FileWriter(getCSVFolder() + File.separator + getFileName() + \".csv\"), ',');\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public interface ClosableIterator<E> extends Iterator<E>\n{\n /**\n * Invalidates and disposes the instance. Client code is not allowed to use\n * the iterator any further after the call has finished.\n */\n public void close();\n}",
"@Override\n public void close() {\n \ttry {\n \t\tif(reader != null) {\n \t\t\treader.close();\n \t\t}\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"private void processCSVFile( BufferedReader csvFile ) throws IOException {\r\n\t\t\r\n\t\tboolean headerRowRead = false;\r\n\t\tString[] headerArray = null;\r\n\t\t\r\n\t\t//loop through all rows and create contacts\r\n\t\tString row = csvFile.readLine();\r\n\t\t\r\n\t\twhile (row != null) {\r\n\t\t\t\r\n\t\t\tif (row.length()==0 || row.startsWith(\"#\") || row.startsWith(\";\") ) {\t\t\r\n\t\t\t\t\r\n\t\t\t\t//empty or comment row: skip\r\n\t\t\t\t\r\n\t\t\t} else if (!headerRowRead) {\r\n\t\t\t\t\r\n\t\t\t\t//header row is the first non-blank, not-comment row in the CSV file\r\n\t\t\t\t//the required header row contains the attribute names\r\n\t\t\t\t\r\n\t\t\t\theaderRowRead = true;\r\n\t\t\t\t\r\n\t\t\t\t//read header\r\n\t\t\t\theaderArray = parseCSVLine( row, true); \t\t\r\n\t\t\t\tLogger.debug(\"header: \" + row);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\r\n\t\t\t\tHashMap<String,String> contactObject = ContactsImport.getRowValues(headerArray, row);\r\n\t\t\t\tcreateContact(contactObject);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trow = csvFile.readLine(); //read next line form csv file\r\n\t\t}\r\n\t\t\r\n\t\tLogger.debug(\"finished\");\r\n\r\n\t}",
"@Override\n public void close()\n {\n if (closed) {\n return;\n }\n closed = true;\n\n try {\n stats.addMaxCombinedBytesPerRow(recordReader.getMaxCombinedBytesPerRow());\n recordReader.close();\n }\n catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }",
"public void close() {\n for( Iterator it = this.rcIterator(); it.hasNext() ; ){\n ReplicaCatalog catalog = ( ReplicaCatalog )it.next();\n catalog.close();\n }\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t public void close() throws IOException, InterruptedException {\r\n\t for (RecordWriter writer : recordWriters.values()) {\r\n\t writer.close(context);\r\n\t }\r\n\t }",
"public synchronized void closeAndRemoveAllOpenedReaders() throws IOException {\n Iterator<Map.Entry<String, TsFileSequenceReader>> iterator =\n closedFileReaderMap.entrySet().iterator();\n while (iterator.hasNext()) {\n Map.Entry<String, TsFileSequenceReader> entry = iterator.next();\n entry.getValue().close();\n if (resourceLogger.isDebugEnabled()) {\n resourceLogger.debug(\"{} closedTsFileReader is closed.\", entry.getKey());\n }\n closedReferenceMap.remove(entry.getKey());\n iterator.remove();\n }\n iterator = unclosedFileReaderMap.entrySet().iterator();\n while (iterator.hasNext()) {\n Map.Entry<String, TsFileSequenceReader> entry = iterator.next();\n entry.getValue().close();\n if (resourceLogger.isDebugEnabled()) {\n resourceLogger.debug(\"{} unclosedTsFileReader is closed.\", entry.getKey());\n }\n unclosedReferenceMap.remove(entry.getKey());\n iterator.remove();\n }\n }",
"@Override\n public void close() throws IOException\n {\n try {\n mergingIterator.close();\n }\n finally {\n cleanup.run();\n }\n }",
"protected final void close()\n {\n try {\n _reader.close();\n _reader = null;\n } catch ( IOException except ) { }\n }",
"public interface ClosableIterator<T> extends Iterator<T>, AutoCloseable {\n\n}",
"public void close() throws IOException {\n reader.close();\n }",
"public void close() throws IOException {\r\n reader.close();\r\n reader = null;\r\n }",
"@Test(timeout=100)\r\n\tpublic void testImplementsIterator() {\r\n\t\tCSVReader csv = new CSVReader( getInstream() );\r\n\t\t// instanceof can't test for type parameter values\r\n\t\tassertTrue( csv instanceof java.util.Iterator );\t\r\n\t}",
"@Override\n public void close() {\n for (PipelineDataSourceWrapper each : cachedDataSources.values()) {\n try {\n each.close();\n } catch (final SQLException ex) {\n log.error(\"An exception occurred while closing the data source\", ex);\n }\n }\n cachedDataSources.clear();\n }",
"public static void closeCsvFile(DataFile csvFile) throws Exception {\n\tif (null != csvFile) {\n\t csvFile.close();\n\t}\n }",
"public synchronized void close() throws IOException {\n\t\tm_reader.close();\n\t}",
"private void fechaBuffer() {\n\t\tif (buffer != null){\n\t\t\ttry {\n\t\t\t\tbuffer.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"[ERRO] Erro ao fechar stream do arquivo csv.\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void loadCSVData() throws IOException, SQLException {\r\n //SQL statement to load csv information into data table\r\n String insertvaluesSQL = \"INSERT INTO data\"\r\n + \"(InvoiceNo, StockCode, Description, Quantity, InvoiceDate, UnitPrice, CustomerID, Country)\"\r\n + \" VALUES (?,?,?,?,?,?,?,?);\";\r\n\r\n //code to read csv file taken from W03 practical\r\n BufferedReader br = new BufferedReader(new FileReader(filePath));\r\n String line = br.readLine();\r\n String[] informationArray;\r\n while (line != null) {\r\n informationArray = line.split(\",\");\r\n PreparedStatement preparedStatement = connection.prepareStatement(insertvaluesSQL);\r\n //the first '?' corresponds to the 0th term in the information array\r\n //the second '?' corresponds to the 1st term in the information array\r\n for (int i = 1; i < 9; i++) {\r\n preparedStatement.setString(i, informationArray[i - 1]);\r\n }\r\n preparedStatement.executeUpdate();\r\n line = br.readLine();\r\n }\r\n Statement statement = connection.createStatement();\r\n statement.executeUpdate(\"DELETE FROM data WHERE InvoiceNo = 'InvoiceNo';\");\r\n statement.close();\r\n }",
"@Override\n protected void doClose() {\n FileUtil.closeSilent(this.in);\n this.recordFactory = null;\n this.geometryFactory = null;\n this.in = null;\n this.recordDefinition = null;\n this.resource = null;\n }",
"public void close() throws IOException {\n for(IoBuffer buf : data) {\n buf.free();\n }\n data.clear();\n super.close();\n }",
"public void close() throws IOException {\n\t\tin.close();\n \n\t\t// Release the buffer\n\t\tdataIn = null;\n\t\tbuffer = null;\n\t\tif(readRecordsCounter != null) {\n\t\t readRecordsCounter.increment(numRecordsRead);\n\t\t}\n\n\t\t// Return the decompressor\n\t\tif (decompressor != null) {\n\t\t decompressor.reset();\n\t\t CodecPool.returnDecompressor(decompressor);\n\t\t decompressor = null;\n\t\t}\n\t }",
"private void close() {\r\n\t\tfor ( int i = 0; i < _headerObject._filenames.length; ++i) {\r\n\t\t\tFileObject fileObject = ( FileObject)_headerObject._fileObjectMap.get( _headerObject._filenames[ i]);\r\n\t\t\tif ( null == fileObject)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tfileObject.close();\r\n\t\t}\r\n\t}",
"private void closeDelete() throws IOException, InterruptedException {\n for (Map.Entry<String, Map<String, Set<String>>> path : this.filterColumnToValueMappingForDelete\n .entrySet()) {\n deleteExecution(path.getKey());\n createEmptyMetadataFile(path.getKey());\n }\n }",
"private void closeIterable(final Iterable<Quad> iterate) throws Exception {\n if (iterate instanceof AutoCloseable) {\n ((AutoCloseable) iterate).close();\n }\n }",
"private void readData () throws SQLException {\n int currentFetchSize = getFetchSize();\n setFetchSize(0);\n close();\n setFetchSize(currentFetchSize);\n moveToInsertRow();\n\n CSVRecord record;\n\n for (int i = 1; i <= getFetchSize(); i++) {\n lineNumber++;\n try {\n\n if (this.records.iterator().hasNext()) {\n record = this.records.iterator().next();\n\n for (int j = 0; j <= this.columnsTypes.length - 1; j++) {\n\n switch (this.columnsTypes[j]) {\n case \"VARCHAR\":\n case \"CHAR\":\n case \"LONGVARCHAR\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateString(j + 1, record.get(j));\n break;\n case \"INTEGER\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateInt(j + 1, Integer.parseInt(record.get(j)));\n break;\n case \"TINYINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateByte(j + 1, Byte.parseByte(record.get(j)));\n break;\n case \"SMALLINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateShort(j + 1, Short.parseShort(record.get(j)));\n break;\n case \"BIGINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateLong(j + 1, Long.parseLong(record.get(j)));\n break;\n case \"NUMERIC\":\n case \"DECIMAL\":\n /*\n * \"0\" [0,0]\n * \"0.00\" [0,2]\n * \"123\" [123,0]\n * \"-123\" [-123,0]\n * \"1.23E3\" [123,-1]\n * \"1.23E+3\" [123,-1]\n * \"12.3E+7\" [123,-6]\n * \"12.0\" [120,1]\n * \"12.3\" [123,1]\n * \"0.00123\" [123,5]\n * \"-1.23E-12\" [-123,14]\n * \"1234.5E-4\" [12345,5]\n * \"0E+7\" [0,-7]\n * \"-0\" [0,0]\n */\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateBigDecimal(j + 1, new BigDecimal(record.get(j)));\n break;\n case \"DOUBLE\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateDouble(j + 1, Double.parseDouble(record.get(j)));\n break;\n case \"FLOAT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateFloat(j + 1, Float.parseFloat(record.get(j)));\n break;\n case \"DATE\":\n // yyyy-[m]m-[d]d\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateDate(j + 1, Date.valueOf(record.get(j)));\n break;\n case \"TIMESTAMP\":\n // yyyy-[m]m-[d]d hh:mm:ss[.f...]\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateTimestamp(j + 1, Timestamp.valueOf(record.get(j)));\n break;\n case \"TIME\":\n // hh:mm:ss\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateTime(j + 1, Time.valueOf(record.get(j)));\n break;\n case \"BOOLEAN\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateBoolean(j + 1, convertToBoolean(record.get(j)));\n break;\n default:\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateString(j + 1, record.get(j));\n break;\n }\n }\n\n insertRow();\n incrementRowCount();\n }\n } catch (Exception e) {\n LOG.error(\"An error has occurred reading line number {} of the CSV file\", lineNumber, e);\n throw e;\n }\n }\n\n moveToCurrentRow();\n beforeFirst(); \n }",
"public void closeFile() throws IOException{\n\t\tsourceReader.close();\n\t}",
"public void dispose() {\r\n try {\r\n rowSet.close();\r\n } catch (SQLException sqlex) {\r\n sqlex.printStackTrace();\r\n }\r\n }",
"public synchronized Iterator<ProjectFilePart> iterator() {\r\n // make a memory sensitive iterator\r\n Iterator diskIterator = new Iterator() {\r\n\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n // the buffere part\r\n ProjectFilePart pfp = null;\r\n\r\n private void lazyLoad() {\r\n if (fr == null) {\r\n try {\r\n // save the data\r\n saveData();\r\n // make the readers\r\n fr = new FileReader(getToggleFile());\r\n br = new BufferedReader(fr);\r\n } catch (FileNotFoundException ex) {\r\n throw new RuntimeException(\"Can't make iterator\", ex);\r\n }\r\n }\r\n }\r\n\r\n private ProjectFilePart useBuffer() {\r\n lazyLoad();\r\n // no part is buffered, buffer one\r\n if (pfp == null) {\r\n try {\r\n // read the next line\r\n String line = br.readLine();\r\n // null check\r\n if (line == null) {\r\n return null;\r\n }\r\n pfp = convertToProjectFilePart(line);\r\n } catch (IOException ex) {\r\n throw new RuntimeException(\"Can't read next\", ex);\r\n }\r\n }\r\n // return the part\r\n return pfp;\r\n }\r\n\r\n public Object next() {\r\n ProjectFilePart p = useBuffer();\r\n // reset the buffer\r\n pfp = null;\r\n // return the part\r\n return p;\r\n }\r\n\r\n public void remove() {\r\n throw new RuntimeException(\"Remove isn't implemented.\");\r\n }\r\n\r\n public boolean hasNext() {\r\n boolean hasNext = useBuffer() != null;\r\n // auto-teardown at the end\r\n if (!hasNext) {\r\n IOUtil.safeClose(br);\r\n IOUtil.safeClose(fr);\r\n }\r\n return hasNext;\r\n }\r\n };\r\n // return the iterator\r\n return diskIterator;\r\n }",
"@Override\npublic void close() throws IOException, JoinsException, SortException, IndexException {\n\t\n}",
"public void close() throws IOException {\n reset();\n _reader.close();\n }",
"private void close() {\n try {\n if (reader != null) {\n this.reader.close();\n }\n if (writer != null) {\n this.writer.close();\n }\n }\n catch (IOException e) {\n log.error(e);\n log.debug(Constants.STREAM_IS_CLOSED);\n }\n }",
"@Test\r\n\tpublic void readCsvTest() throws IOException {\r\n\t\t\tfail(\"Not yet implemented\");\r\n\t}",
"public static void readCSV() throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\t\tString line;\n\t\tif((line = br.readLine()) != null) {\n\t\t\tsetCSVorder(line);\n\t\t}\n\t\t\n\t\twhile((line = br.readLine()) != null) {\n\t\t\tFlightState fs = getStateFromCSV(line);\n\t\t\tsendToKafka(fs);\n\t\t}\n\t\t\n\t\tbr.close();\n\t}",
"private void readFile() {\r\n\t\tcsvEntrys = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(filepath)))) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tif (!line.contains(\"id\")) {\r\n\t\t\t\t\tcsvEntrys.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public Iterator<OpenERPRecord> iterator() {\r\n\t\treturn records.iterator();\r\n\t}",
"public void csv() throws IOException {\n\t\t\n\t\tSystem.out.println(); //spacing\\\n\t\tFileWriter f;\n\t\t\n\t\tif (bundle.getString(\"csvName\").endsWith(\".csv\")) {\n\t\t\tf = new FileWriter(bundle.getString(\"csvName\"));\n\t\t}\n\t\t\n\t\telse {\n\t\t\tf = new FileWriter(bundle.getString(\"csvName\") + \".csv\");\n\t\t}\n\t\t\n\t\tPrintWriter p = new PrintWriter(f);\n\t\tObject[][] input = {revisionsToo, flowOfTime};\n\t\tCSVWork(input, p, f);\n\t\t\n\t\tObject[][] nextInput = {revisions, ratings};\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tnextInput[1] = irrelevants;\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tnextInput[1] = relevants;\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tnextInput[0] = intervals;\n\t\tnextInput[1] = commits;\n\t\tCSVWork(nextInput, p, f);\n\t\t\n\t\tspecialCSV(existsHere, p);\n\t\t\n\t\tp.flush();\n\t\tp.close();\n\t\tf.close();\n\t}",
"private void processRecords()\n {\n // This is the way to connect the file to an inputstream in android\n InputStream inputStream = getResources().openRawResource(R.raw.products);\n\n Scanner scanner = new Scanner(inputStream);\n\n\n // skipping first row by reading it before loop and displaying it as column names\n String[] tableRow = scanner.nextLine().split(\",\");\n\n //Log.e(\"COLUMN NAMES\", Arrays.toString(tableRow));\n //Log.e(\"COLUMN NAMES SIZE\", String.valueOf(tableRow.length));\n\n\n // --- Truncate table (delete all rows and reset auto increment --\n // this line of code will be useful because for now we are forced to read file\n // everytime we open app, this way we do not have duplicate data.\n db.resetTable();\n\n while (scanner.hasNextLine())\n {\n tableRow = scanner.nextLine().split(\",\");\n //Log.e(\"COLUMN VALUES\", Arrays.toString(tableRow));\n //Log.e(\"COLUMN VALUES SIZE\", String.valueOf(tableRow.length));\n\n /*\n * Possible Change:\n * On each iteration a new Product() can be created and call the setter to set\n * its fields to the elements of the String array, example\n * product = new Product();\n * product.setNumber(tableRow[0]);\n * product.setBusinessName(tableRow[1]);\n * ...\n * db.insertData(product); // because the new insertData method would expect a\n * Product object instead\n *\n */\n\n // insert data\n if (db.insertData(tableRow))\n {\n //Log.e(\"Insert\", \"SUCCESSFUL INSERT AT \" + tableRow[0]);\n }\n else\n {\n //Log.e(\"Insert\", \"UNSUCCESSFUL INSERT\");\n }\n\n }\n }",
"public ArrayList<Invoice> readFromCsv() throws IOException {\n if (!FileIOHelper.exists(this.orderCsv)) return new ArrayList<>(); // Empty array list\n BufferedReader csvFile = FileIOHelper.getFileBufferedReader(this.orderCsv);\n List<String[]> csvLines = readAll(csvFile, 1);\n ArrayList<Invoice> items = new ArrayList<>();\n if (csvLines.size() == 0) return items;\n csvLines.forEach((str) -> items.add(new Invoice(str)));\n return items;\n }",
"static public List<Product> productReader() throws IOException {\n BufferedReader csvReader = new BufferedReader(new FileReader(PRODUCTS_REFERENCE_FILE));\n String row;\n List<Product> dataList = new ArrayList<>();\n\n row = csvReader.readLine();\n while ((row = csvReader.readLine()) != null){\n\n Product data = new Product();\n //I separate the row data by a separator, a coma in this case and add all the data in the class\n String[] datas = row.split(SEPARATOR_COLON);\n\n data.setProduct_id(Integer.parseInt(datas[0]));\n data.setName(datas[1]);\n data.setDescription(datas[2]);\n data.setCategory_id(Integer.parseInt(datas[3]));\n\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MM/dd/yyyy\");\n\n //Since some dates had just one number for the month, I had to use this to add a 0\n //to make all the dates the same length after getting rid of the 0:01 that was not necessary\n String[] creationDate = datas[4].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setCreation_date(LocalDate.parse(creationDate[0], formatter));\n\n creationDate = datas[5].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setUpdate_date(LocalDate.parse(creationDate[0], formatter));\n\n creationDate = datas[6].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setLast_purchased_date(LocalDate.parse(creationDate[0], formatter));\n\n dataList.add(data);\n\n }\n return dataList;\n\n }",
"private void close() {\n/* */ try {\n/* 253 */ if (this.dataReader != null) {\n/* 254 */ this.dataReader.close();\n/* 255 */ this.dataReader = null;\n/* */ } \n/* 257 */ } catch (SQLException e) {\n/* 258 */ logger.log(Level.SEVERE, (String)null, e);\n/* */ } \n/* */ try {\n/* 261 */ if (this.pstmt != null) {\n/* 262 */ this.pstmt.close();\n/* 263 */ this.pstmt = null;\n/* */ } \n/* 265 */ } catch (SQLException e) {\n/* 266 */ logger.log(Level.SEVERE, (String)null, e);\n/* */ } \n/* */ }",
"public <T> Iterator<T> asIterator(){\n return new NextIterator<T>() {\n @Override\n public T getNext() {\n try{\n return readObject();\n }catch(Exception eof){\n if(eof instanceof EOFException){\n finished = true ;\n }\n return null;\n }\n }\n\n @Override\n protected void close() {\n DeserializationStream.this.close();\n }\n };\n }",
"private ArrayList<CSVRecord> processCsvData(String csvFile) {\n ArrayList<CSVRecord> records = new ArrayList<>();\n\n File csvData = new File(\"src/main/resources/csv/\" + csvFile + \".csv\");\n\n try {\n CSVParser parser = CSVParser.parse(csvData, Charset.defaultCharset(), CSVFormat.EXCEL);\n records.addAll(parser.getRecords());\n } catch (IOException exception) {\n logger.error(\"Unable to parse CSV file: \" + exception.getMessage());\n }\n\n return records;\n }",
"public void run() {\n CsvParser parser = this.initializeParser();\n\n // Initialize data structures\n String[] firstLine = parser.parseNext();\n List<MutableRoaringBitmap> dataset = new ArrayList<>(firstLine.length);\n for (int i = 0; i < firstLine.length; i++) {\n dataset.add(new MutableRoaringBitmap());\n this.columnPlisMutable = ImmutableList.copyOf(dataset);\n }\n\n // Start parsing the file\n if (this.configuration.isNoHeader()) {\n this.addRow(firstLine);\n } else {\n this.columnIndexToNameMapping = firstLine;\n }\n\n String[] nextRow;\n while ((nextRow = parser.parseNext()) != null) {\n this.addRow(nextRow);\n this.nRows++;\n }\n\n this.transformRows();\n this.transformColumns();\n log.info(\"Deduplicated {} rows to {}, {} columns to {}\", this.nRows, this.nRowsDistinct,\n this.columnPlisMutable.size(), this.columnPlis.size());\n }",
"public synchronized void close()\n {\n if (open) {\n open = false;\n reset();\n line.close();\n }\n }",
"public void write()\n {\n getCsvParser().parse(getReader());\n }",
"default void process(Reader reader, Consumer<SafeCSVRecord> consumer) {\n CSVParser parser;\n try {\n parser = new CSVParser(reader, getFormat());\n } catch (IOException ex) {\n throw new RuntimeException(\"读取CSV文件失败\", ex);\n }\n Iterator<CSVRecord> iterator = parser.iterator();\n while (iterator.hasNext()) {\n try {\n CSVRecord record = iterator.next();\n SafeCSVRecord safe = SafeCSVRecord.of(record);\n /**\n * 判断是否是空白行\n */\n if (Streams.of(record.toMap().values()).anyMatch(Strings::isNotBlank)) {\n consumer.accept(safe);\n }\n } catch (Exception ex) {\n// logger.warn(\"处理CSV数据失败\", ex);\n }\n }\n }",
"@Override\n public synchronized void close() throws IOException {\n if (closed) {\n return;\n }\n closed = true;\n if (this.scheduledFuture != null) {\n scheduledFuture.cancel(false);\n this.scheduler.shutdown();\n }\n\n if (batchCount > 0) {\n flush();\n }\n\n try {\n if(jdbcWriter != null){\n jdbcWriter.close();\n }\n } catch (SQLException e) {\n LOG.warn(\"Close JDBC writer failed.\", e);\n }\n\n closeDbConnection();\n }",
"public void close() throws IOException{\n\t\tcp.close();\n\t\tSuaDB.fileMgr().flushFile(fileName);\n\t}",
"@Override\n\t\tpublic void close() {\n\t\t\ttplItr = null;\n\t\t}",
"@Override\n public Iterator<T> iterator() {\n return new CLITableIterator<T>(createNew(tables, cursor, rowIndex));\n }",
"public void close() throws IOException {\r\n\r\n // System.out.println(\"FileDICOM.close\");\r\n this.finalize();\r\n }",
"@Test\n public void testIterator(){\n while(ROW_ITR.hasNext()){\n ROW_ITR.next();\n }\n }",
"@Override\n public Iterator<Space> iterator() {\n return row.iterator();\n }",
"@Override\n public void close()\n {\n synchronized (this) {\n if (closed) {\n return;\n }\n closed = true;\n }\n\n readers.forEach(ExchangeStorageReader::close);\n }",
"public void deleteCSV(Activity activity) {\n\n try {\n BufferedReader br = new BufferedReader(new FileReader(\"P5Calendar.csv\"));\n String myLine = br.readLine();\n\n while (myLine != null) {\n\n // read new line\n myLine = br.readLine();\n\n }\n } catch (IOException e) {\n\n }\n }",
"public interface CSVDataRow\n{\n String toLine();\n}",
"public void close() throws IOException, InterruptedException {\n closeTxnBatch();\n closeConnection();\n closed = true;\n }",
"public static List readCsvFile(String fileName) {\n logger.info(\"Start executing readCsvFile method !!!\");\n FileReader fileReader = null;\n CSVParser csvFileParser = null;\n List csvRecords = null;\n try {\n //initialize FileReader object\n fileReader = new FileReader(fileName);\n //initialize CSVParser object\n csvFileParser = new CSVParser(fileReader, CSVFormat.EXCEL);\n //Get a list of CSV file records\n csvRecords = csvFileParser.getRecords();\n } catch (Exception e) {\n logger.error(\"Error in CsvFileReader !!!\");\n e.printStackTrace();\n logger.error(\"Exception : \", e);\n } finally {\n try {\n fileReader.close();\n csvFileParser.close();\n } catch (IOException e) {\n logger.error(\"Error while closing fileReader/csvFileParser !!!\");\n e.printStackTrace();\n logger.error(\"IOException : \", e);\n }\n }\n return csvRecords;\n }",
"private static void iterator() {\n\t\t\r\n\t}",
"public void readToCsv() {\r\n\r\n String seperator = \";\";\r\n\r\n try (BufferedReader reader = new BufferedReader(\r\n new FileReader(\"Products.csv\"))){\r\n\r\n String line = null;\r\n for(int i=1; (line = reader.readLine()) != null; i++) {\r\n String[] fields = line.split(seperator, -1);\r\n\r\n // For nutrients objects to read\r\n if(fields.length ==5){\r\n Nutrient object= new Nutrient();\r\n object.name = fields[0];\r\n object.price = Double.parseDouble(fields[1]);\r\n object.tag=fields[2];\r\n object.content = fields[3];\r\n object.numOfProduct = Integer.parseInt(fields[4]);\r\n //object.addFeatures(object.name,object.price,object.size,object.gender,object.tag,object.content,object.numOfProduct);\r\n NutrientList.add(object);\r\n allProducts.add(object);\r\n }\r\n // For Cosmetics objects to read\r\n if (fields.length==6){\r\n Cosmetics object2=new Cosmetics();\r\n object2.name = fields[0];\r\n object2.price = Double.parseDouble(fields[1]);\r\n object2.gender = fields[2];\r\n object2.tag=fields[3];\r\n object2.content = fields[4];\r\n object2.numOfProduct = Integer.parseInt(fields[5]);\r\n //object2.addFeatures(object2.name,object2.price,object2.size,object2.gender,object2.tag,object2.content,object2.numOfProduct);\r\n CosmeticsList.add(object2);\r\n allProducts.add(object2);\r\n }\r\n // For clothes objects to read\r\n if(fields.length ==7){\r\n\r\n Clothes object3=new Clothes();\r\n object3.name = fields[0];\r\n object3.price = Double.parseDouble(fields[1]);\r\n object3.size= fields[2];\r\n object3.tag=fields[4];\r\n object3.content = fields[5];\r\n object3.numOfProduct = Integer.parseInt(fields[6]);\r\n object3.addFeatures(object3.name,object3.price,object3.size,\"E\",object3.tag,object3.content,object3.numOfProduct);\r\n ClothesList.add(object3);\r\n allProducts.add(object3);\r\n }\r\n\r\n }}\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"@Override\n public void close() {\n try {\n while (ftpBlockingQueue\n .iterator()\n .hasNext()) {\n FTPClient client = ftpBlockingQueue.take();\n ftpClientFactory.destroyObject(ftpClientFactory.wrap(client));\n }\n } catch (Exception e) {\n log.error(\"close ftp client ftpBlockingQueue failed...{}\", e.toString());\n }\n }",
"@Override\n DBO consume(String csv) throws TransformerException;",
"public CSVReader getCsvReader() {\n return csvReader;\n }",
"public void openPlayerDataFromCSV() throws FileNotFoundException {\n csvReader = new BufferedReader(new FileReader(PATH_TO_CSV));\n }",
"public void getAllCompanyInfo() throws FileNotFoundException, IOException\r\n {\r\n \r\n String tickerFileLoc = \"companylist.csv\";\r\n CSVReader nameReader = new CSVReader(new FileReader(tickerFileLoc));\r\n \r\n String[] nextLine;\r\n String tempFileLoc;\r\n int x = 0;\r\n \r\n while ((nextLine = nameReader.readNext()) != null)\r\n {\r\n HashMap<String, SingleDayQuote> oneDay = new HashMap<>();\r\n if (x == 0){x++;continue;} //skips CSV category header\r\n if (x > 6){break;} //temporary, to prevent downloading more than 6 companys info\r\n \r\n String tempTicker = nextLine[0];\r\n tempFileLoc = \"StockFiles\\\\\" + tempTicker + \".csv\";\r\n \r\n //downloadFile(tempTicker);\r\n \r\n Company tempCompany = new Company(tempTicker, pullInfo(tempFileLoc));\r\n allCompanys.put(tempTicker, tempCompany);\r\n \r\n \r\n x++;\r\n }\r\n \r\n }",
"@Override\n public ToDoList readCSV(String csvPath) throws InvalidArgumentException {\n this.csvPath = csvPath;\n this.toDoList = new ToDoList();\n\n BufferedReader inputFile = null;\n try {\n inputFile = new BufferedReader(new FileReader(this.csvPath));\n\n String line = inputFile.readLine();\n if (line == null) {\n inputFile.close();\n return this.toDoList;\n } // Empty CSV file, no need for processing.\n this.processHeader(line);\n while ((line = inputFile.readLine()) != null) {\n this.processToDoItem(line);\n }\n inputFile.close();\n return this.toDoList;\n } catch (FileNotFoundException fnfe) {\n throw new InvalidArgumentException(\"OOPS! File not found!\");\n } catch (IOException ioe) {\n throw new InvalidArgumentException(\"There is somthing wrong!\");\n }\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; // indicate end of file\n zzEndRead = zzStartRead; // invalidate buffer\n\n if (zzReader != null) {\n zzReader.close();\n }\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; // indicate end of file\n zzEndRead = zzStartRead; // invalidate buffer\n\n if (zzReader != null) {\n zzReader.close();\n }\n }",
"public void readFile(File inputFile) throws IOException {\n\t\tCSVParser csvParser = CSVParser.parse(inputFile, charset, csvFormat);\n\t\trecordList = csvParser.getRecords();\n\t}",
"public final void yyclose() throws java.io.IOException {\r\n zzAtEOF = true; /* indicate end of file */\r\n zzEndRead = zzStartRead; /* invalidate buffer */\r\n\r\n if (zzReader != null)\r\n zzReader.close();\r\n }",
"public final void yyclose() throws java.io.IOException {\r\n zzAtEOF = true; /* indicate end of file */\r\n zzEndRead = zzStartRead; /* invalidate buffer */\r\n\r\n if (zzReader != null)\r\n zzReader.close();\r\n }",
"public final void yyclose() throws java.io.IOException {\r\n zzAtEOF = true; /* indicate end of file */\r\n zzEndRead = zzStartRead; /* invalidate buffer */\r\n\r\n if (zzReader != null)\r\n zzReader.close();\r\n }",
"public final void yyclose() throws java.io.IOException {\r\n zzAtEOF = true; /* indicate end of file */\r\n zzEndRead = zzStartRead; /* invalidate buffer */\r\n\r\n if (zzReader != null)\r\n zzReader.close();\r\n }",
"public final void yyclose() throws java.io.IOException {\r\n zzAtEOF = true; /* indicate end of file */\r\n zzEndRead = zzStartRead; /* invalidate buffer */\r\n\r\n if (zzReader != null)\r\n zzReader.close();\r\n }",
"private void testDataReader() {\n File csv = new File(pathTest);\n try (FileReader fr = new FileReader(csv); BufferedReader bfr = new BufferedReader(fr)) {\n Logger.printInfo(\"Reading test data\");\n for (String line; (line = bfr.readLine()) != null; ) {\n String[] split = line.split(\",\");\n String data = textCleaner(split[indexData].toLowerCase());\n int label = Integer.parseInt(split[indexLabel].toLowerCase());\n\n linesTest.add(data);\n labelsTest.add(label);\n Logger.print(\"Reading size: \" + linesTest.size());\n }\n for (String l : linesTest) {\n matrixTest.add(wordVectorizer(l));\n }\n } catch (IOException ex) {\n Logger.printError(\"!! Test Data Not Reading !!\");\n System.exit(0);\n }\n }",
"@Override\n\tpublic void close() throws IOException {\n\t\tfor (String cl : generated) {\n\t\t\ttry {\n\t\t\t\tgetClassByName(cl);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tthrow new IllegalStateException(\"Failed to load class that was generated \" + cl, e);\n\t\t\t}\n\t\t}\n\t\tfileManager.close();\n\t}",
"public int closeFile() {\n int test=0;\n try{\n _file=null;\n rows.clear();\n _fis.close();\n _bis.close();\n _dis.close();\n test=1;\n }catch( IOException ioe){\n test=0;\n }\n return test;\n }",
"public void close(){\r\n\t\tif (this.fileWriter != null){\r\n\t\t\ttry {\r\n\t\t\t\tthis.fileWriter.flush();\r\n\t\t\t\tthis.fileWriter.close();\r\n\t\t\t\tthis.fileWriter = null;\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tlogger.error(\"Cannot close the file handle \"+this.myfilename+\". Your results might be lost. Cause: \"+e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t}",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }",
"public final void yyclose() throws java.io.IOException {\n zzAtEOF = true; /* indicate end of file */\n zzEndRead = zzStartRead; /* invalidate buffer */\n\n if (zzReader != null)\n zzReader.close();\n }"
] | [
"0.6778853",
"0.6647757",
"0.6553509",
"0.6514227",
"0.6253915",
"0.59230876",
"0.5920211",
"0.5880809",
"0.5769536",
"0.5720322",
"0.57018155",
"0.56495833",
"0.55863416",
"0.55512583",
"0.5549028",
"0.5537381",
"0.5536797",
"0.5449374",
"0.54338723",
"0.53903145",
"0.5384419",
"0.53676075",
"0.5366889",
"0.5364667",
"0.5336476",
"0.53055644",
"0.5274798",
"0.52643484",
"0.5248719",
"0.5237785",
"0.52268857",
"0.5223523",
"0.5219651",
"0.5199233",
"0.51782113",
"0.5176077",
"0.5170449",
"0.51678133",
"0.5165104",
"0.5154633",
"0.51535344",
"0.51423156",
"0.51395667",
"0.5130138",
"0.51247466",
"0.51053524",
"0.5102039",
"0.5093807",
"0.50909126",
"0.50845855",
"0.5082578",
"0.50762427",
"0.50755394",
"0.50730115",
"0.50726396",
"0.5051127",
"0.50473666",
"0.5045561",
"0.5021865",
"0.50210637",
"0.50137645",
"0.5005507",
"0.5000388",
"0.49819663",
"0.49740538",
"0.4961602",
"0.49559426",
"0.4946117",
"0.49451542",
"0.49417797",
"0.49384063",
"0.49321574",
"0.49315327",
"0.49276724",
"0.49243122",
"0.49243122",
"0.49206516",
"0.49201035",
"0.49201035",
"0.49201035",
"0.49201035",
"0.49201035",
"0.49162996",
"0.4907769",
"0.49065557",
"0.49055684",
"0.48968908",
"0.48968908",
"0.48968908",
"0.48968908",
"0.48968908",
"0.48968908",
"0.48968908",
"0.48968908",
"0.48968908",
"0.48968908",
"0.48968908",
"0.48968908",
"0.48968908",
"0.48968908"
] | 0.6925009 | 0 |
Tell the outline pages and hierarchy view that they must be updated | public void run() {
CaesarJContentOutlinePage.updateAll(projectProperties);
CaesarHierarchyView.updateAll(projectProperties);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateView() {\r\n if (this.nodes == null || this.nodes.length > 1\r\n || !this.nodes[0].exists()) {\r\n this.titleBorder.setTitle(\"-\");\r\n this.jzvStat.setStat(null);\r\n this.taUpdate.setText(\"\");\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled(false);\r\n this.jbNewChild.setEnabled(false);\r\n this.jbDelete.setEnabled(this.nodes != null);\r\n } else {\r\n this.titleBorder.setTitle(this.nodes[0].getPath());\r\n this.jzvStat.setStat(this.nodes[0].getStat());\r\n byte[] data = this.nodes[0].getData();\r\n this.taUpdate.setText(new String(data == null ? \"null\".getBytes()\r\n : data));\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled( !this.taUpdate.getText().trim().equals(\"\") );\r\n this.jbNewChild.setEnabled( !this.jtfChildName.getText().trim().equals(\"\") );\r\n this.jbDelete.setEnabled(true);\r\n }\r\n this.repaint();\r\n }",
"public void updateViews() {\n updateViews(null);\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 refresh()\n {\n TreeViewer treeViewer = getTreeViewer();\n\n if ( treeViewer != null && composite != null )\n {\n if ( hasAnOutline() )\n {\n Control treeViewerControl = treeViewer.getControl();\n\n if ( ( treeViewerControl != null ) && ( !treeViewerControl.isDisposed() ) )\n {\n treeViewerControl.setParent( composite );\n }\n\n noOutlineComposite.setParent( fakeComposite );\n }\n else\n {\n Control treeViewerControl = treeViewer.getControl();\n\n if ( ( treeViewerControl != null ) && ( !treeViewerControl.isDisposed() ) )\n {\n treeViewerControl.setParent( fakeComposite );\n }\n\n noOutlineComposite.setParent( composite );\n }\n\n composite.layout();\n\n if ( treeViewer.getTree() != null && !treeViewer.getTree().isDisposed() )\n {\n TreeViewer entryEditorWidgetTreeViewer = getEntryEditorWidgetTreeViewer();\n if ( entryEditorWidgetTreeViewer != null )\n {\n treeViewer.setFilters( entryEditorWidgetTreeViewer.getFilters() );\n }\n if ( !treeViewer.getTree().isEnabled() )\n {\n treeViewer.getTree().setEnabled( true );\n }\n\n IEntry entry = getEntryEditorWidgetTreeViewerInput();\n if ( entry == null )\n {\n treeViewer.setInput( null );\n treeViewer.getTree().setEnabled( false );\n }\n else\n {\n treeViewer.setInput( entry );\n treeViewer.expandToLevel( 2 );\n }\n\n treeViewer.refresh();\n }\n }\n }",
"public @Override void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) {\n if (children == null && getParent() == null) {\n return;\n }\n \n super.changedUpdate(e, a, f);\n }",
"public void update(){\r\n try {\r\n TreePrinter.print(root);\r\n } catch (Exception e) {\r\n System.out.println(\"[Alert] Could not print diagram!\");\r\n }\r\n }",
"public void stateChanged(ChangeEvent e){\n\r\n repaint(); // at the moment we're being pretty crude with this, redrawing all the shapes\r\n\r\n\r\n\r\n if (fDeriverDocument!=null) // if this drawing has a journal, set it for saving\r\n fDeriverDocument.setDirty(true);\r\n\r\n\r\n\r\n }",
"public void updatePage(IGenModel genModel) {\n\t\t\n\t\t//tree.removeAll();\n\t\tif (!updated) {\n\t\t\tautomata = ((Automaton) genModel.getTarget()).getModule().getAutomata();\n\t\t\tfor (Automaton automaton : automata) {\n\t\t\t\tTreeItem item = new TreeItem(tree, SWT.NORMAL);\n\t\t\t\tString name = automaton.getName();\n\t\t\t\tif (name==null || \"\".equals(name)) name = \"Unnamed automaton\";\n\t\t\t\titem.setText(name + \" (\" + automaton.getStates().size() + \" states)\");\n\t\t\t\t\n\t\t\t\t//default: select the first element\n\t\t\t\tif (automata.get(0).equals(automaton)) {\n\t\t\t\t\titem.setChecked(true);\n\t\t\t\t}\n\t\t\t\titem.setImage((Image) null);\n\t\t\t}\n\t\t\ttree.addSelectionListener(this);\n\t\t\twidgetSelected(null);\n\t\t\tupdated = true;\n\t\t}\n\t}",
"private void updateUi() {\n this.tabDetail.setDisable(false);\n this.lblDisplayName.setText(this.currentChild.getDisplayName());\n this.lblPersonalId.setText(String.format(\"(%s)\", this.currentChild.getPersonalId()));\n this.lblPrice.setText(String.format(\"%.2f\", this.currentChild.getPrice()));\n this.lblAge.setText(String.valueOf(this.currentChild.getAge()));\n this.dtBirthDate.setValue(this.currentChild\n .getBirthDate()\n .toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDate());\n this.lblWeight.setText(String.format(\"%.1f kg\", this.currentChild.getWeight()));\n this.sldWeight.setValue(this.currentChild.getWeight());\n this.checkboxTrueRace.setSelected(!this.currentChild.isRace());\n this.imgChildProfile.setImage(this.currentChild.getAvatar());\n if (this.currentChild.getGender().equals(GenderType.MALE)){\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/boy.png\"));\n this.lblSex.setText(\"Male\");\n }\n else {\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/girl.png\"));\n this.lblSex.setText(\"Female\");\n }\n if (this.currentChild.isVirginity()){\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/virgin.png\"));\n this.lblVirginity.setText(\"Virgin\");\n }\n else {\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/not-virgin.png\"));\n this.lblVirginity.setText(\"Not Virgin\");\n }\n\n // TODO [assignment2] nastavit obrazek/avatar ditete v karte detailu\n // TODO [assignment2] nastavit spravny obrazek pohlavi v karte detailu\n // TODO [assignment2] nastavit spravny obrazek virginity atribut v v karte detailu\n }",
"void updateView();",
"void updateView();",
"public final void changedUpdate(DocumentEvent e) {\n Rectangle alloc = (painted) ? getVisibleEditorRect() : null;\n rootView.changedUpdate(e, alloc, rootView.getViewFactory());\n }",
"public void doChanges0() {\n lm.setChangeRecording(true);\n changeMark = lm.getChangeMark();\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 59, 20)};\n Point hotspot = new Point(102, 106);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(400, 128);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 93, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"public void UpdateView(){\n\t\tStageArray[CurrentStage].Update();\r\n\t\t//updateUI will activate the Draw function\r\n\t\tStageArray[CurrentStage].updateUI();\r\n\t\t//this completely refreshes totalGUI and removes and mouse listener it had\r\n\t\tif(CardMain.frame.getContentPane()!=StageArray[CurrentStage]){\r\n\t\t\tCardMain.frame.setContentPane(StageArray[CurrentStage]);\r\n\t\t}\r\n\t}",
"@Override\r\n\tprotected void pageChange(int pageIndex) {\r\n\t\tsuper.pageChange(pageIndex);\r\n\r\n\t\tif (contentOutlinePage != null) {\r\n\t\t\thandleContentOutlineSelection(contentOutlinePage.getSelection());\r\n\t\t}\r\n\t}",
"public void fullRenderRefresh() {\n gameChanged = true;\n visionChanged = true;\n backgroundChanged = true;\n selectionChanged = true;\n movementChanged = true;\n }",
"abstract void snapshotLayout();",
"public void updateDetailWindow();",
"void updateSize() {\n setMeAndMyParentsAsDirty();\n }",
"@Override\n public void updateEvent(MsgEvent e) {\n// System.out.println(\"PagePane: \" + e.toString());\n if (e.code == MsgEvent.WIDGET_REPAINT) {\n Widget w = findWidget(e.message);\n if (w != null) {\n repaint();\n }\n } else if (e.code == MsgEvent.OBJECT_SELECTED_TREEVIEW && \n e.parent.equals(getKey())) {\n selectNone();\n Widget w = findWidget(e.message);\n if (w != null) {\n selectWidget(w);\n repaint();\n }\n } else if (e.code == MsgEvent.OBJECT_UNSELECT_TREEVIEW) {\n/*\n // Can't call selectNone() or we will go into a loop.\n for (Widget w : widgets) {\n unSelectWidget(w);\n }\n*/\n selectNone();\n repaint();\n } else if (e.code == MsgEvent.CANVAS_MODEL_CHANGE) {\n canvasWidth = (int)(Builder.CANVAS_WIDTH * zoomFactor);\n canvasHeight = (int)(Builder.CANVAS_HEIGHT * zoomFactor);\n CommonUtil.getInstance().setWinOffsets(new Dimension(canvasWidth, canvasHeight), \n generalModel.getWidth(),\n generalModel.getHeight());\n repaint();\n }\n }",
"@Override\n\tpublic void setStates(){\n\t\tleftButton.visible = booklet.pageNumber > 0;\n\t\trightButton.visible = booklet.pageNumber + 1 < totalPages;\n\t\t\n\t\t//Check the mouse to see if it updated and we need to change pages.\n\t\tint wheelMovement = InterfaceInput.getTrackedMouseWheel();\n\t\tif(wheelMovement < 0 && rightButton.visible){\n\t\t\t++booklet.pageNumber;\n\t\t}else if(wheelMovement > 0 && leftButton.visible){\n\t\t\t--booklet.pageNumber;\n\t\t}\n\t\t\n\t\t//Set the visible labels based on the current page.\n\t\tfor(int i=0; i<pageTextLabels.size(); ++ i){\n\t\t\tfor(GUIComponentLabel label : pageTextLabels.get(i)){\n\t\t\t\tlabel.visible = booklet.pageNumber == i;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Set the TOC buttons visible if we're on the TOC page.\n\t\tfor(GUIComponentButton button : contentsButtons){\n\t\t\tbutton.visible = booklet.pageNumber == 1 && !booklet.definition.booklet.disableTOC;\n\t\t}\n\t\t\n\t\t//Set the TOC button to be visible on other pages.\n\t\tif(contentsButton != null){\n\t\t\tcontentsButton.visible = booklet.pageNumber > 1;\n\t\t}\n\t}",
"@Override\r\n public void updateUI() {\r\n }",
"public void update() {\n\t\tthis.editorView.update();\n\t}",
"@Override\n public void update() {\n selectedLevel.update();\n }",
"protected void childrenChanged() {\n\n }",
"@Override\n public void update() {\n if (oldFloorIndex != root.floorsController.getCurrentFloor()) {\n view.floorTitle.setText(\"Floor: \" + root.floorsController.getCurrentFloor());\n oldFloorIndex = root.floorsController.getCurrentFloor();\n }\n }",
"@Override\n\tpublic void roadChanged() {\n\t\tthis.from_x=this.from.getX();\n\t\tthis.from_y=this.from.getY();\n\t\tthis.to_x=this.to.getX();\n\t\tthis.to_y=this.to.getY();\n\t\tthis.getTopLevelAncestor().repaint();\n\t\tthis.repaint();\n//\t\tthis.getParent().repaint();\n\t}",
"@Override\n\tprotected void treeContentChanged ( ) {\n\n\t\tSubTypingProofNode rootNode = ( SubTypingProofNode ) this.proofModel.getRoot ( );\n\n\t\t// initiate the index\n\t\tthis.index = 1;\n\t\tcheckForUserObject ( rootNode );\n\t\trelayout ( );\n\n\t}",
"public void refreshOntTreeTable() {\n\t\tJTree changeTree = ontChangeTT.getTree();\r\n\t\tTreeTableNode rootNode = (TreeTableNode) changeTree.getModel().getRoot();\r\n\t\trootNode.children = new Vector();\r\n\t\tthis.ontChangeEdPane.setText(\"\");\r\n\t\t\r\n\t\t// populate node tree\r\n\t\tfor (Iterator changeIter = ontChanges.iterator(); changeIter.hasNext();) {\r\n\t\t\tSwoopChange swc = (SwoopChange) changeIter.next();\r\n\t\t\t\r\n\t\t\t// skip checkpoint related changes\r\n\t\t\tif (!swc.isCheckpointRelated /*&& swc.isCommitted*/) {\r\n\t\t\t\tTreeTableNode changeNode = new TreeTableNode(swc);\r\n\t\t\t\trootNode.addChild(changeNode);\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tontChangeTT.getTree().updateUI();\r\n\t\tthis.refreshUI();\t\t\r\n\t}",
"public EntryEditorOutlinePage( EntryEditor entryEditor )\n {\n this.entryEditor = entryEditor;\n BrowserCommonActivator.getDefault().getPreferenceStore().addPropertyChangeListener( propertyChangeListener );\n }",
"public void updateUI(){}",
"public void updateConicalView();",
"public void dataUpdated() {\r\n finish = getConfiguration().getTransformTarget() != null;\r\n this.wizardControl.updateView();\r\n }",
"@Override\r\n\tpublic void createPages() {\r\n\t\t// Creates the model from the editor input\r\n\t\t//\r\n\t\t\r\n\t\tcreateModel();\r\n\r\n\t\t// Only creates the other pages if there is something that can be edited\r\n\t\t//\r\n\t\t// if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {\r\n\t\tif (editorModel != null) {\r\n\t\t\t// Create a page for the selection tree view.\r\n\t\t\t//\r\n\r\n\t\t\t/*\r\n\t\t\t * Tree tree = new Tree(getContainer(), SWT.MULTI); selectionViewer\r\n\t\t\t * = new TreeViewer(tree); setCurrentViewer(selectionViewer);\r\n\t\t\t * \r\n\t\t\t * selectionViewer.setContentProvider(new\r\n\t\t\t * AdapterFactoryContentProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setLabelProvider(new\r\n\t\t\t * AdapterFactoryLabelProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setInput(editingDomain.getResourceSet());\r\n\t\t\t * selectionViewer.setSelection(new\r\n\t\t\t * StructuredSelection(editingDomain\r\n\t\t\t * .getResourceSet().getResources().get(0)), true);\r\n\t\t\t * \r\n\t\t\t * new AdapterFactoryTreeEditor(selectionViewer.getTree(),\r\n\t\t\t * adapterFactory);\r\n\t\t\t * \r\n\t\t\t * createContextMenuFor(selectionViewer);\r\n\t\t\t */\r\n\t\t\tComposite parent = getContainer();\r\n\t\t\tformToolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\tform = formToolkit.createForm(parent);\r\n//\t\t\tform.setText(\"SETTINGS - View and modify setting values in \"\r\n//\t\t\t\t\t+ editorModel.getName() + \".\");\r\n\t\t\tComposite client = form.getBody();\r\n\t\t\t// client.setBackground(Display.getCurrent().getSystemColor(\r\n\t\t\t// SWT.COLOR_WHITE));\r\n\t\t\tclient.setLayout(new FillLayout());\r\n\t\t\tfeatureViewer = new FeatureViewer(client);\r\n\r\n\t\t\tfeatureViewer.setContentProvider(new FeatureViewerContentProvider(\r\n\t\t\t\t\teditingDomain.getCommandStack(), this));\r\n\t\t\tfeatureViewer.setInput(editorModel);\r\n\t\t\tfeatureViewer.setLabelProvider(new FeatureViewerLabelProvider(CrmlBuilder.getResourceModelRoot()));\r\n\t\t\t// featureViewer.refresh();\r\n\r\n\t\t\tfeatureViewer.addSelectionChangedListener(new ISelectionChangedListener(){\r\n\t\t\t\t\r\n\t\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event\r\n\t\t\t\t\t.getSelection();\r\n\r\n\t\t\t\t\tsetSelection(selection);\r\n\t\t\t\t\t\r\n\t\t\t\t/*\tISelection convertSelection = convertSelectionToMainModel(selection);\r\n\t\t\t\t\tSelectionChangedEvent newEvent = new SelectionChangedEvent(\r\n\t\t\t\t\t\t\tConfmlEditor.this, convertSelection);\r\n\t\t\t\t\tfireSelection(newEvent);*/\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\t\r\n\t\t\tgetSite().setSelectionProvider(featureViewer);\r\n\t\t\t// create pop up menu actions\r\n\t\t\tresetToDefaults = new ResetToDefaultAction(featureViewer);\r\n\t\t\tmoveUpAction = new MoveUpAction(featureViewer,this);\r\n\t\t\tmoveDownAction = new MoveDownAction(featureViewer,this);\r\n\t\t\tduplicateAction = new DuplicateSequencesAction(featureViewer,this);\r\n\t\t\topenDataConfmlAction = new OpenDataConfmlAction(featureViewer);\r\n\t\t\topenConfmlAction = new OpenConfmlAction(featureViewer);\r\n\t\t\topenImplAction = new OpenImplementationAction(featureViewer);\r\n\t\t\t\r\n\t\t\tIWorkbenchWindow window = getSite().getWorkbenchWindow();\r\n\t\t\tresetToDefaults.init(window);\r\n\t\t\tmoveUpAction.init(window);\r\n\t\t\tmoveDownAction.init(window);\r\n\t\t\tduplicateAction.init(window);\r\n\t\t\topenDataConfmlAction.init(window);\r\n\t\t\topenConfmlAction.init(window);\r\n\t\t\topenImplAction.init(window);\r\n\t\t\tdisableActions();\r\n\t\t\t\r\n\t\t\t// create pop up menu with actions\r\n\t\t\tcontextMenuListener = contextMenuListener(form);\r\n\t\t\tmenuManager = new MenuManager();\r\n\t\t\tmenuManager.addMenuListener(contextMenuListener);\r\n\t\t\tmenuManager.setRemoveAllWhenShown(true);\r\n\t\t\tMenu menu = menuManager.createContextMenu(form);\r\n\t\t\tform.setMenu(menu);\r\n\t\t\t\r\n\t\t\tint pageIndex = addPage(form);\r\n\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));\r\n\r\n\t\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsetActivePage(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// featureViewer.addDirtyButtonListener(new MouseListener() {\r\n\t\t//\r\n\t\t// public void mouseDoubleClick(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseDown(MouseEvent e) {\r\n\t\t// LeafGroup selectedGroup = getSelectedGroup();\r\n\t\t// if (selectedGroup != null\r\n\t\t// && !(selectedGroup instanceof SummaryLeafGroup)) {\r\n\t\t// UIGroup group = createDirtyForGroup(selectedGroup);\r\n\t\t// settingsViewer.setInput(group);\r\n\t\t// refreshAndHandleWidgetState();\r\n\t\t// // settingsViewer.refresh();\r\n\t\t// dirtySorting = true;\r\n\t\t// errorSorting = false;\r\n\t\t// notesSorting = false;\r\n\t\t// }\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseUp(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// });\r\n\r\n\t\t// Ensures that this editor will only display the page's tab\r\n\t\t// area if there are more than one page\r\n\t\t//\r\n\t\tgetContainer().addControlListener(new ControlAdapter() {\r\n\t\t\tboolean guard = false;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void controlResized(ControlEvent event) {\r\n\t\t\t\tif (!guard) {\r\n\t\t\t\t\tguard = true;\r\n\t\t\t\t\thideTabs();\r\n\t\t\t\t\tguard = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n//\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tupdateProblemIndication();\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\tupdateErrors();\r\n\t}",
"final void updateSpan(){\n setEdited();\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }",
"public abstract void modelStructureChanged();",
"void msgViewableChanged() {\n resetViewport(start);\n }",
"protected void refreshVisuals() {\r\n\t\trefreshBendpoints();\r\n\t\tif (getEdge().getValue())\r\n\t\t\tgetEdgeFigure().setForegroundColor(alive);\r\n\t\telse\r\n\t\t\tgetEdgeFigure().setForegroundColor(dead);\r\n\t\t//throw new NullPointerException();\r\n\t}",
"public void doChanges0() {\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jScrollPane1-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compBounds.put(\"jScrollPane1\", new Rectangle(232, 11, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n // parentId-compId-dimension-compAlignment\n lm.removeComponent(\"jScrollPane1\", true);\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton2-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jToggleButton3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jToggleButton2-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jToggleButton3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n contInterior.put(\"Form\", new Rectangle(0, 0, 436, 300));\n compBounds.put(\"jTextField1\", new Rectangle(10, 11, 216, 20));\n baselinePosition.put(\"jTextField1-216-20\", new Integer(14));\n compBounds.put(\"jToggleButton2\", new Rectangle(10, 118, 105, 23));\n baselinePosition.put(\"jToggleButton2-105-23\", new Integer(15));\n compBounds.put(\"jToggleButton3\", new Rectangle(121, 118, 105, 23));\n baselinePosition.put(\"jToggleButton3-105-23\", new Integer(15));\n compBounds.put(\"jTextField2\", new Rectangle(10, 37, 216, 20));\n baselinePosition.put(\"jTextField2-216-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"@Override\n protected void refreshChildren() {\n }",
"@Override\r\n\tprotected void refreshVisuals() {\n\t\tif (getParent() instanceof LayerEditPart && getParent().getParent()!=null && getParent().getParent() instanceof CompositeLayerEditPart) {\r\n\t\t\tgetParent().getParent().refresh();\r\n\t\t} \r\n\t\tif (getParent() instanceof LayerEditPart) {\r\n\t\t\tgetParent().refresh();\r\n\t\t} \r\n\t\tsuper.refreshVisuals();\r\n\t}",
"public void updateScene() {\n\t\t// check whether updates should be stopped\n\t\tif (simulation.isTerminated()) { \n\t\t\ttimeline.stop();\n\t\t\tsimulation.exit();\n\t\t} else {\n\t\t\t// first update the elements coordinates\n\t\t\ttry {\n\t\t\t\tsimulation.update();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Simulation> Non-critical error: Couldn't communicate with Server.\");\n\t\t\t}\n\n\t\t\t// then update the scene graph (in a rather brutal way)\n\t\t\troot.getChildren().clear();\n\t\t\troot.getChildren().addAll(simulation.getElements());\n\t\t}\n\t}",
"@FXML\n public void editSet(MouseEvent e) {\n AnchorPane root = null;\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/learn_update.fxml\"));\n try {\n root = loader.load();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n LearnUpdateController controller = loader.getController();\n controller.initData(txtTitle.getText(), rootController, learnController, apnLearn);\n rootController.setActivity(root);\n root.requestFocus();\n }",
"public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGrid();\r\n\t\tplotDecades();\r\n\t\tgetEntries();\r\n\t}",
"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 }",
"protected @Override void updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a) {\n \n //super.updateLayout(ec, e, a);\n }",
"private void updateStructure()\r\n {\r\n int id = 1;\r\n Integer outlineLevel = Integer.valueOf(1);\r\n for (Task task : m_project.getChildTasks())\r\n {\r\n id = updateStructure(id, task, outlineLevel);\r\n }\r\n }",
"public void refresh() {\n if (currentClient != null) {\n Page page = currentClient.getCurrentPage();\n if (page != null) {\n root.setCenter(page.getRoot());\n } else {\n root.setCenter(null);\n }\n }else{\n if (page != null) {\n root.setCenter(page.getRoot());\n } else {\n root.setCenter(null);\n }\n }\n root.setPrefWidth(1280);\n root.setPrefHeight(720);\n root.setTop(clientBar.getRoot());\n root.setRight(null); // remove any errors\n //this.mainStage.setScene(scene);\n mainStage.show();\n\n }",
"public void performUpdateReset() {\n switchToPage(NavDrawerAdapter.FLUFF_ID);\n\t}",
"public void updateAllViews()\r\n { for (IView view : this.views)\r\n { view.updateView();\r\n }\r\n }",
"public void updateLinesAndGrid() {\n\t\tutilities.redrawAllLines(0, false);\n\t\ttableDisplay.setGrid(utilities.getOrderedWayPoints());\n\t}",
"void updateAllParentsBelow();",
"public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGraph();\r\n\t\t\r\n\t\tfor (int i = 0; i < entryGraph.size(); i++) {\r\n\t\t\tdrawEntry(entryGraph.get(i), i);\r\n\t\t}\r\n\t}",
"private void refreshHomePage()\r\n {\r\n Stage currentStage = (Stage) viewCoinAnchorPane.getScene().getWindow();\r\n //currentStage.hide();\r\n FXMLLoader fxmlLoader = new FXMLLoader();\r\n String filePath = \"/com/jjlcollectors/fxml/homepage/HomePage.fxml\";\r\n URL location = HomePageController.class.getResource(filePath);\r\n fxmlLoader.setLocation(location);\r\n fxmlLoader.setBuilderFactory(new JavaFXBuilderFactory());\r\n try\r\n {\r\n Parent root = fxmlLoader.load(location.openStream());\r\n } catch (IOException ex)\r\n {\r\n MyLogger.log(Level.SEVERE, LOG_CLASS_NAME + \" couldn't load homepage to refresh coin update!\", ex);\r\n }\r\n HomePageController homePageController = (HomePageController) fxmlLoader.getController();\r\n homePageController.refreshCoinList();\r\n }",
"public void update() {\r\n\t\tthis.removeAll();\r\n\t\tdrawLinesAndLabels(this.getWidth(), this.getHeight());\r\n\t\tdrawNameSurferEntries();\r\n\t}",
"private void updateOverview() {\n\t\t\n\t\t//check if anything is selected\n\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\n\t\t\tnameLabel.setText(itemBox.getName());\n\t\t\tamountLabel.setText(String.valueOf(itemBox.getAmount()) + \"x\");\n\t\t\tgtinLabel.setText(itemBox.getGtin());\n\t\t\tcategoriesLabel.setText(itemBox.getCategoriesText(\"long\"));\n\t\t\tattributesLabel.setText(itemBox.getAttributes());\n\t\t\tlog.info(\"Overview set to \" + itemBox.getName());\n\t\t}\t\n\t}",
"@Override\n\tprotected void updateWanderPath() {\n\t}",
"void flushDraw() {\n dirtyD = true;\n modelRoot.incrementNumberOfDirtyDNodes();\n }",
"void updatePathListings() {\n\t\tpathSelector.updatePathListings();\n\t}",
"@Override\n\tprotected void refreshView() {\n\t\t\n\t}",
"void updateView () {\n updateScore();\n board.clearTemp();\n drawGhostToBoard();\n drawCurrentToTemp();\n view.setBlocks(board.getCombined());\n view.repaint();\n }",
"void updateDashboard() {\n\t}",
"public void refresh() {\n navTreeWidget.removeItems();\n selectedPath = null;\n loadInitialTree();\n }",
"@Override\n\tpublic void onViewChanged(JFrame frame) {\n\t\tupdateCourses();\n\t}",
"void updateDrawing() {\n filling = modelRoot.getCDraw().getFilling(this);\n dirtyBufF = true;\n tooltip = modelRoot.getCDraw().getTooltip(this);\n dirtyBufT = true;\n title = modelRoot.getCDraw().getTitle(this);\n dirtyBufTitle = true;\n colorTitle = modelRoot.getCDraw().getTitleColor(this);\n dirtyBufCT = true;\n }",
"private void updateUI() {\n mUser.weight.sortListByDate();\n mUser.bloodPressure.sortListsByDate();\n updateText();\n updateChart();\n }",
"protected void directUpdateLayout() {\n updateLayout();\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"@Override\n public void updateUi() {\n\n }",
"public void changedUpdate(DocumentEvent evt, FoldHierarchyTransaction transaction) {\n }",
"@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}",
"protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}",
"public static void markAsModified() {\n\t\tif(isSensorNetworkAvailable()) {\n\t\t\tsaveMenuItem.setEnabled(true);\n\t\t\tif(GUIReferences.currentFile != null) {\n\t\t\t\tGUIReferences.viewPort.setTitle(\"*\"+GUIReferences.currentFile.getName());\n\t\t\t} else {\n\t\t\t\tGUIReferences.viewPort.setTitle(\"*Untitled\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void updateView() {\n if (!model.isDrawStarted() && !previewCurve.isDisabled()) {\n previewCurve.setVisible(false);\n previewCurve.setDisable(true);\n }\n\n // determine whether the select widgets is displayed\n DrawModes mode = model.getDrawMode();\n switch (mode) {\n case SELECT:\n case DRAW:\n case POINT:\n BezierCurve selectedCurve = model.getSelectedCurve();\n if (selectedCurve != null) {\n displayWidgets = true;\n } else {\n displayWidgets = false;\n }\n break;\n case ERASE:\n displayWidgets = false;\n break;\n\n }\n // reset children\n this.getChildren().clear();\n this.getChildren().addAll(model.getCurves());\n if (mode == DrawModes.DRAW) {\n this.getChildren().add(previewCurve);\n if (previewCurve.isVisible()) {\n this.getChildren().addAll(previewCurve.getDisplayedWidgets());\n }\n }\n if (displayWidgets) {\n addPointsToChildren(model.getSelectedCurve(), Direction.BOTH);\n }\n updateSize();\n }",
"private void draw() {\n model.tick();\n\n List<Entity> entities = model.getCurrentLevel().getEntities();\n\n for (EntityView entityView: entityViews) {\n entityView.markForDelete();\n }\n\n double heroXPos = model.getCurrentLevel().getHeroX();\n heroXPos -= xViewportOffset;\n\n if (heroXPos < VIEWPORT_MARGIN) {\n if (xViewportOffset >= 0) {\n xViewportOffset -= VIEWPORT_MARGIN - heroXPos;\n if (xViewportOffset < 0) {\n xViewportOffset = 0;\n }\n }\n } else if (heroXPos > width - VIEWPORT_MARGIN) {\n xViewportOffset += heroXPos - (width - VIEWPORT_MARGIN);\n }\n\n backgroundDrawer.update(xViewportOffset);\n\n for (Entity entity: entities) {\n boolean notFound = true;\n for (EntityView view: entityViews) {\n if (view.matchesEntity(entity)) {\n notFound = false;\n view.update(xViewportOffset);\n break;\n }\n }\n if (notFound) {\n EntityView entityView = new EntityViewImpl(entity);\n entityViews.add(entityView);\n pane.getChildren().add(entityView.getNode());\n }\n }\n\n for (EntityView entityView: entityViews) {\n if (entityView.isMarkedForDelete()) {\n pane.getChildren().remove(entityView.getNode());\n }\n }\n entityViews.removeIf(EntityView::isMarkedForDelete);\n\n if (model.heroDead()) {\n try {\n java.util.concurrent.TimeUnit.SECONDS.sleep(1);\n } catch (Exception e) {\n e.printStackTrace();\n }\n model.restartLevel();\n }\n if (model.finish()) {\n Text finished = new Text(\"F I N I S H E D !\");\n finished.setFont(new Font(50));\n finished.setX(model.getCurrentLevel().getWidth()/2-150);\n finished.setY(model.getCurrentLevel().getHeight()/2);\n pane.getChildren().add(finished);\n } else if (model.gameOver()) {\n Text finished = new Text(\"G A M E O V E R !\");\n finished.setFont(new Font(50));\n finished.setX(model.getCurrentLevel().getWidth()/2-200);\n finished.setY(model.getCurrentLevel().getHeight()/2);\n pane.getChildren().add(finished);\n\n lives.setText(\"Lives: \" + model.getLives());\n lives.setFont(new Font(20));\n lives.setX(width-100);\n lives.setY(30);\n\n } else {\n elapsedTime = (new Date()).getTime() - model.getStartTime();\n elapsedTime = elapsedTime/1000;\n time.setText(\"Time: \" + elapsedTime);\n time.setFont(new Font(20));\n time.setX(30);\n time.setY(30);\n lives.setText(\"Lives: \" + model.getLives());\n lives.setFont(new Font(20));\n lives.setX(width-100);\n lives.setY(30);\n }\n\n\n\n\n\n }",
"public void doChanges1() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 93, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel3\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(53, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel3-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel3-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel3-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel1-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel2-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel3-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel3-0-0-2\", new Integer(21)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(52, 91);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 84, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 59, 20)};\n Point hotspot = new Point(99, 126);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 133);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 113, 359, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 359, 20));\n baselinePosition.put(\"jTextField2-359-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"public void refresh() {\n\t\tthis.viewer.refresh();\n\t}",
"void updateControls();",
"public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) {\n if (view != null) {\n view.changedUpdate(e, a, f);\n }\n }",
"public void doChanges2() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(41, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(81, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(41, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(41, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel4\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(59, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(39, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel4-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel4-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel4-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel4-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel4-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel4-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel4-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(60, 120);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(41, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n changeMark = lm.getChangeMark();\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 59, 20)};\n Point hotspot = new Point(135, 120);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(397, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 141);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(77, 113, 323, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 323, 20));\n baselinePosition.put(\"jTextField2-323-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"final void updateParent(){\n clearSpanCache();\n editedChild = true;\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }",
"public void update() {\n\tfireContentsChanged(this, 0, getSize());\n }",
"protected void modelChanged() {\n // create a view hierarchy\n ViewFactory f = rootView.getViewFactory();\n Document doc = editor.getDocument();\n Element elem = doc.getDefaultRootElement();\n setView(f.create(elem));\n }",
"public void markRenderModelsModified() {\n\t\t\n\t\t// TODO dispose of the VBOs!!!\n\t\trenderUnits = null;\n\t\t\n\t}",
"@FXML\r\n private void onRefresh() {\n HomeLibrary.refreshBooks();\r\n HomeLibrary.refreshAuthors();\r\n HomeLibrary.refreshGenres();\r\n HomeLibrary.refreshPublishingHouses();\r\n HomeLibrary.refreshFriends();\r\n\r\n HomeLibrary.getLibraryOverviewController().refreshOverallInfo();\r\n HomeLibrary.getBookOverviewController().refreshBooks();\r\n HomeLibrary.getGenresOverviewController().refreshGenres();\r\n HomeLibrary.getPubHousesOverviewController().refreshPubHouses();\r\n HomeLibrary.getFriendsOverviewController().refreshFriends();\r\n }",
"public void doChanges3() {\n lm.undo(changeMark, lm.getChangeMark());\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(77, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n lc = new LayoutComponent(\"jLabel5\", false);\n // > START ADDING\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n {\n LayoutComponent[] comps = new LayoutComponent[]{lc};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(0, 0, 34, 14)};\n String defaultContId = null;\n Point hotspot = new Point(13, 7);\n ld.startAdding(comps, bounds, hotspot, defaultContId);\n }\n // < START ADDING\n prefPaddingInParent.put(\"Form-jLabel5-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel5-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel5-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel5-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(72, 125);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(59, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jLabel5-1-0\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-1-1\", new Integer(11)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jTextField1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField1-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton1-jLabel5-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton1-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jRadioButton2-jLabel5-1-0-0\", new Integer(2)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jRadioButton2-1-0-1\", new Integer(7)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel1-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel1-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel3-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-1\", new Integer(11)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-2\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-1-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-1-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPaddingInParent.put(\"Form-jLabel5-0-0\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel5-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPadding.put(\"jScrollPane1-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jScrollPane1-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel4-jLabel5-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jLabel4-0-0-0\", new Integer(6)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-1\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jTextField2-jLabel5-0-0-3\", new Integer(18)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel5-jTextField2-0-0-0\", new Integer(4)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n prefPadding.put(\"jLabel3-jLabel5-0-0-2\", new Integer(10)); // comp1Id-comp2Id-dimension-comp2Alignment-paddingType\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(73, 125);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(60, 116, 34, 14)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel3-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jLabel2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 59, 20));\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n // > START RESIZING\n baselinePosition.put(\"jTextField2-59-20\", new Integer(14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n {\n String[] compIds = new String[]{\"jTextField2\"};\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 59, 20)};\n Point hotspot = new Point(175, 125);\n int[] resizeEdges = new int[]{1, -1};\n boolean inLayout = true;\n ld.startResizing(compIds, bounds, hotspot, resizeEdges, inLayout);\n }\n // < START RESIZING\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(398, 137);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 283, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n prefPaddingInParent.put(\"Form-jTextField2-0-1\", new Integer(10)); // parentId-compId-dimension-compAlignment\n // > MOVE\n // > MOVE\n // > MOVE\n {\n Point p = new Point(399, 137);\n String containerId = \"Form\";\n boolean autoPositioning = true;\n boolean lockDimension = false;\n Rectangle[] bounds = new Rectangle[]{new Rectangle(117, 113, 283, 20)};\n ld.move(p, containerId, autoPositioning, lockDimension, bounds);\n }\n // < MOVE\n // > END MOVING\n ld.endMoving(true);\n // < END MOVING\n ld.externalSizeChangeHappened();\n // > UPDATE CURRENT STATE\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 283, 20));\n baselinePosition.put(\"jTextField2-283-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n prefPaddingInParent.put(\"Form-jRadioButton1-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n prefPaddingInParent.put(\"Form-jRadioButton2-0-1\", new Integer(6)); // parentId-compId-dimension-compAlignment\n compPrefSize.put(\"jTextField1\", new Dimension(59, 20));\n compPrefSize.put(\"jRadioButton1\", new Dimension(93, 23));\n compPrefSize.put(\"jRadioButton2\", new Dimension(93, 23));\n compPrefSize.put(\"jScrollPane1\", new Dimension(35, 130));\n compPrefSize.put(\"jLabel1\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel2\", new Dimension(34, 14));\n compPrefSize.put(\"jTextField2\", new Dimension(59, 20));\n compPrefSize.put(\"jLabel3\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel4\", new Dimension(34, 14));\n compPrefSize.put(\"jLabel5\", new Dimension(34, 14));\n contInterior.put(\"Form\", new Rectangle(0, 0, 400, 300));\n compBounds.put(\"jTextField1\", new Rectangle(0, 0, 400, 20));\n baselinePosition.put(\"jTextField1-400-20\", new Integer(14));\n compBounds.put(\"jRadioButton1\", new Rectangle(0, 22, 93, 23));\n baselinePosition.put(\"jRadioButton1-93-23\", new Integer(15));\n compBounds.put(\"jRadioButton2\", new Rectangle(0, 48, 93, 23));\n baselinePosition.put(\"jRadioButton2-93-23\", new Integer(15));\n compBounds.put(\"jScrollPane1\", new Rectangle(0, 73, 35, 130));\n baselinePosition.put(\"jScrollPane1-35-130\", new Integer(0));\n compBounds.put(\"jLabel1\", new Rectangle(39, 73, 34, 14));\n baselinePosition.put(\"jLabel1-34-14\", new Integer(11));\n compBounds.put(\"jLabel2\", new Rectangle(79, 73, 34, 14));\n baselinePosition.put(\"jLabel2-34-14\", new Integer(11));\n compBounds.put(\"jTextField2\", new Rectangle(117, 113, 283, 20));\n baselinePosition.put(\"jTextField2-283-20\", new Integer(14));\n compBounds.put(\"jLabel3\", new Rectangle(39, 93, 34, 14));\n baselinePosition.put(\"jLabel3-34-14\", new Integer(11));\n compBounds.put(\"jLabel4\", new Rectangle(39, 116, 34, 14));\n baselinePosition.put(\"jLabel4-34-14\", new Integer(11));\n compBounds.put(\"jLabel5\", new Rectangle(79, 116, 34, 14));\n baselinePosition.put(\"jLabel5-34-14\", new Integer(11));\n ld.updateCurrentState();\n // < UPDATE CURRENT STATE\n }",
"private void refresh(\n )\n {\n if(getCurrent() instanceof CompositeObject)\n {childLevel = new ContentScanner(this);}\n else\n {childLevel = null;}\n }",
"void retainOutlineAndBoundaryGrid() {\n\t\tfor (final PNode child : getChildrenAsPNodeArray()) {\n\t\t\tif (child != selectedThumbOutline && child != yellowSIcolumnOutline && child != boundary) {\n\t\t\t\tremoveChild(child);\n\t\t\t}\n\t\t}\n\t\tcreateOrDeleteBoundary();\n\t}",
"public void updateIcons() {\n String info = \"\";\n if (Main.mainProject.getCurrentCase().isLeaf()) {\n info += ((TestCase) Main.mainProject.getCurrentCase().getParent()).getName() + \"\\n\";\n info += Main.mainProject.getCurrentCase().getName() + \"\\n\";\n info += Main.mainProject.getCurrentCase().getConclusion().toString();\n }\n infoTextArea.setText(info);\n Main.mainProject.getCurrentCase().setChecked(true);\n TreePath path = projectTree.getSelectionPath();\n this.updateTreeModel();\n projectTree.setSelectionPath(path);\n projectTree.scrollPathToVisible(path);\n }",
"protected abstract void updateNavigationArrows();",
"public void update() {\n\t\tremoveAll();\n\t\tdrawGraph();\n\t\tplotEntries();\n\t}",
"public void updateWindowsForAnimator() {\n forAllWindows(this.mUpdateWindowsForAnimator, true);\n }",
"Lab refresh();",
"@Override\n\tpublic void refreshView() {\n\n\t}",
"private void updateManualVisit() {\n // scroll to expandable RecyclerView\n onView(withId(R.id.expanding_rv_manual_visits))\n .perform(scrollTo());\n\n // scroll to visit group and click to expand\n onView(withId(R.id.expanding_rv_manual_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_VISIT_GROUP))\n .perform(click());\n\n // click the visit that was added to update it\n onView(withId(R.id.expanding_rv_manual_visits))\n .perform(RecyclerViewActions.actionOnItemAtPosition(POS_NEW_VISIT, click()));\n\n // pick updated date\n onView(withId(R.id.date_picker)).perform(PickerActions.setDate(\n UPDATED_YEAR, UPDATED_MONTH, UPDATED_DAY));\n\n // scroll to time picker\n onView(withId(R.id.time_picker))\n .perform(scrollTo());\n\n // pick updated time\n onView(withId(R.id.time_picker)).perform(PickerActions.setTime(UPDATED_HOUR, UPDATED_MINUTE));\n\n // scroll to set button\n onView(withId(R.id.btn_date_time_set))\n .perform(scrollTo());\n\n // click to set updated date and time\n onView(withId(R.id.btn_date_time_set)).perform(click());\n }",
"private void updateBoxes(){\n if(model.getMap() != null) {\n DoubleVec position = invModelToView(new DoubleVec(canvas.getWidth()*0.5,canvas.getHeight()*0.5));\n inner = new Rectangle(position, 1.0/zoomFactor * fi * canvas.getWidth(), 1.0/zoomFactor * fi * canvas.getHeight(), 0);\n outer = new Rectangle(position, 1.0/zoomFactor * fo * canvas.getWidth(), 1.0/zoomFactor * fo * canvas.getHeight(), 0);\n }\n }",
"@Override\n protected void commitProperties() {\n if (imageLoadTypeChanged) {\n imageLoadTypeChanged = false;\n frontPageView.setImageLoadType(imageLoadType);\n backPageView.setImageLoadType(imageLoadType);\n }\n }",
"@Override\n public void notifyStructureObservers() {\n for(StructureObserver structureObserver : structureObservers){\n structureObserver.update(entities.returnStructureRenderInformation());\n }\n }",
"public void markEverythingDirty() {\n fullUpdate = true;\n }"
] | [
"0.62721384",
"0.6112348",
"0.6103842",
"0.5974768",
"0.5973308",
"0.5924935",
"0.59178275",
"0.58641505",
"0.5855855",
"0.58470494",
"0.58470494",
"0.58026385",
"0.57808435",
"0.5739074",
"0.57375634",
"0.57322985",
"0.5731225",
"0.5697086",
"0.5661934",
"0.5654813",
"0.56470025",
"0.5637271",
"0.56281567",
"0.5626003",
"0.55908334",
"0.5589384",
"0.5568782",
"0.5562309",
"0.55565906",
"0.55510885",
"0.55474234",
"0.55450976",
"0.5537272",
"0.5536137",
"0.5534129",
"0.55333626",
"0.5517795",
"0.55144846",
"0.5512432",
"0.5508279",
"0.5502326",
"0.55011123",
"0.5480601",
"0.547836",
"0.5473582",
"0.54634744",
"0.54620624",
"0.54620427",
"0.54564965",
"0.5456116",
"0.54505885",
"0.5433502",
"0.54168874",
"0.5415618",
"0.5413523",
"0.5411196",
"0.54032093",
"0.5397344",
"0.53950936",
"0.5391848",
"0.53904885",
"0.5390438",
"0.53867465",
"0.5384554",
"0.53797674",
"0.5379336",
"0.5376812",
"0.53695554",
"0.53695554",
"0.53695554",
"0.5368477",
"0.5365197",
"0.5359621",
"0.53594214",
"0.5351802",
"0.5349468",
"0.534826",
"0.5344758",
"0.5341244",
"0.5338373",
"0.5336687",
"0.53351307",
"0.5328435",
"0.53271866",
"0.53228045",
"0.53190166",
"0.5318402",
"0.5315516",
"0.5311035",
"0.53067625",
"0.5303892",
"0.5303481",
"0.53007936",
"0.5294256",
"0.5290746",
"0.5290655",
"0.5287351",
"0.5277913",
"0.5275012",
"0.52749115"
] | 0.58670974 | 7 |
TODO [optimize] make it efficient TODO [feature] warnings are missing | private void showErrors() {
for (Iterator it = this.errors.iterator(); it.hasNext();) {
try {
Object err = it.next();
/* errors can be represented by PositionedError, UnpositionedError or String */
if (err instanceof PositionedError) {
PositionedError error = (PositionedError)err;
TokenReference token = error.getTokenReference();
log.debug("file: " + token.getFile() + ", " + "line: " //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ token.getLine() + ", " + "path: " //$NON-NLS-1$//$NON-NLS-2$
+ token.getPath());
IResource resource = ProjectProperties.findResource(token
.getPath().getAbsolutePath(), currentProject);
IMarker marker = null;
if (resource != null) {
marker = resource.createMarker(IMarker.PROBLEM);
if (token.getLine() > 0) {
marker.setAttribute(IMarker.LINE_NUMBER, token.getLine());
}
}
else {
// for the cases, when error refers to a generated piece of code
marker = currentProject.createMarker(IMarker.PROBLEM);
}
marker.setAttribute(IMarker.MESSAGE, error
.getFormattedMessage().getMessage());
marker.setAttribute(IMarker.SEVERITY, new Integer(
IMarker.SEVERITY_ERROR));
}
else { /* create unpositioned error at the scope of the project */
String msg;
if (err instanceof UnpositionedError) {
msg = ((UnpositionedError)err).getFormattedMessage().getMessage();
}
else {
msg = (String)err; // for internal errors
}
IMarker marker = currentProject.createMarker(IMarker.PROBLEM);
marker.setAttribute(IMarker.MESSAGE, msg);
marker.setAttribute(IMarker.SEVERITY, new Integer(IMarker.SEVERITY_ERROR));
}
}
catch (Exception e) {
e.printStackTrace();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected boolean func_70814_o() { return true; }",
"private void m50366E() {\n }",
"Compatibility compatibility();",
"private void kk12() {\n\n\t}",
"public void testPerformance() {\n \t}",
"public abstract int mo9754s();",
"private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }",
"void mo57277b();",
"private static void runTestCWE9() {\n}",
"private static void runTestCWE9() {\n}",
"private void optimiseEVProfile()\n\t{\n\t}",
"private void m50367F() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"private static void runTestCWE6() {\n}",
"private static void runTestCWE6() {\n}",
"private static void runTestCWE8() {\n}",
"private static void runTestCWE8() {\n}",
"private static void runTestCWE7() {\n}",
"private static void runTestCWE7() {\n}",
"Feature getFeature();",
"Feature getFeature();",
"private void level7() {\n }",
"static void feladat6() {\n\t}",
"private final com.google.android.gms.internal.p000firebaseperf.zzbu zzw() {\n /*\n r15 = this;\n java.lang.String r0 = \"FirebasePerformance\"\n r1 = 0\n java.io.BufferedReader r2 = new java.io.BufferedReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.io.FileReader r3 = new java.io.FileReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.lang.String r4 = r15.zzba // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r3.<init>(r4) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r2.<init>(r3) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.util.concurrent.TimeUnit r3 = java.util.concurrent.TimeUnit.MILLISECONDS // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r3 = r3.toMicros(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r5 = r2.readLine() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r6 = \" \"\n java.lang.String[] r5 = r5.split(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r6 = 13\n r6 = r5[r6] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = java.lang.Long.parseLong(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r8 = 15\n r8 = r5[r8] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r8 = java.lang.Long.parseLong(r8) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r10 = 14\n r10 = r5[r10] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = java.lang.Long.parseLong(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r12 = 16\n r5 = r5[r12] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r12 = java.lang.Long.parseLong(r5) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r5 = com.google.android.gms.internal.p000firebaseperf.zzbu.zzdl() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r5.zzu(r3) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = r10 + r12\n long r4 = r15.zzd(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzw(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = r6 + r8\n long r4 = r15.zzd(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzv(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzga r3 = r3.zzhr() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzep r3 = (com.google.android.gms.internal.p000firebaseperf.zzep) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu r3 = (com.google.android.gms.internal.p000firebaseperf.zzbu) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n return r3\n L_0x0069:\n r3 = move-exception\n r4 = r1\n goto L_0x0072\n L_0x006c:\n r3 = move-exception\n throw r3 // Catch:{ all -> 0x006e }\n L_0x006e:\n r4 = move-exception\n r14 = r4\n r4 = r3\n r3 = r14\n L_0x0072:\n if (r4 == 0) goto L_0x007d\n r2.close() // Catch:{ Throwable -> 0x0078 }\n goto L_0x0080\n L_0x0078:\n r2 = move-exception\n com.google.android.gms.internal.p000firebaseperf.zzak.zza(r4, r2) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n goto L_0x0080\n L_0x007d:\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0080:\n throw r3 // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0081:\n r2 = move-exception\n goto L_0x0086\n L_0x0083:\n r2 = move-exception\n goto L_0x0086\n L_0x0085:\n r2 = move-exception\n L_0x0086:\n java.lang.String r3 = \"Unexpected '/proc/[pid]/stat' file format encountered: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x009b\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00a0\n L_0x009b:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00a0:\n android.util.Log.w(r0, r2)\n goto L_0x00c2\n L_0x00a4:\n r2 = move-exception\n java.lang.String r3 = \"Unable to read 'proc/[pid]/stat' file: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x00ba\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00bf\n L_0x00ba:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00bf:\n android.util.Log.w(r0, r2)\n L_0x00c2:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.p000firebaseperf.zzap.zzw():com.google.android.gms.internal.firebase-perf.zzbu\");\n }",
"public void m9741j() throws cf {\r\n }",
"void mo57278c();",
"int countFeatures();",
"int countFeatures();",
"void mo72113b();",
"private static void runTestCWE4() {\n}",
"private static void runTestCWE4() {\n}",
"public void mo38117a() {\n }",
"protected void mo6255a() {\n }",
"public abstract void mo6549b();",
"public double getFeature(int i) {\n\t return _features[i];\r\n\t//return 0;\r\n}",
"static void feladat7() {\n\t}",
"boolean shouldRescore() {\n return false;\n }",
"private static void runTestCWE5() {\n}",
"private static void runTestCWE5() {\n}",
"static void feladat9() {\n\t}",
"public void smell() {\n\t\t\n\t}",
"@Override\n protected long getTestSolution() {\n return 100024;\n }",
"java.lang.String getHowToUse();",
"java.lang.String getHowToUse();",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"static void feladat4() {\n\t}",
"void mo72114c();",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void func_70305_f() {}",
"@Override\n\tpublic int isFast() {\n\t\treturn 2;\n\t}",
"long getFeaturesUsed();",
"public abstract void mo70713b();",
"public void mo21877s() {\n }",
"void mo21072c();",
"void m1864a() {\r\n }",
"@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}",
"void mo41083a();",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void test_process_some_stage_operation()\n\t{\n\t}",
"public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(UFTest.class.getResource(\"/\").getPath()+\"1.5/largeUF.txt\"));\n String str = bufferedReader.readLine();\n UFLJWQU uf = new UFLJWQU(Integer.parseInt(str));\n long beginTime =System.currentTimeMillis();\n while ((str = bufferedReader.readLine())!=null){\n String[] array = str.split(\" \");\n int p = Integer.parseInt(array[0]);\n int q = Integer.parseInt(array[1]);\n if(uf.connected(p,q)) continue;\n uf.union(p,q);\n// System.out.println(p+\" -- \"+q);\n }\n System.out.println(uf.count());\n System.out.println(\"cost time :\"+(System.currentTimeMillis() - beginTime));\n }",
"public abstract long mo13681c();",
"private static int benchmarkedMethod() {\n return 3;\n }",
"public final void mo51373a() {\n }",
"void mo21076g();",
"abstract int pregnancy();",
"void mo28306a();",
"private static java.lang.String m586k() {\r\n /*\r\n r6 = 1;\r\n r0 = 0;\r\n r1 = \"/proc/cpuinfo\";\r\n r2 = new java.io.FileReader;\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r2.<init>(r1);\t Catch:{ IOException -> 0x0040, all -> 0x0050 }\r\n r1 = new java.io.BufferedReader;\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n r3 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\r\n r1.<init>(r2, r3);\t Catch:{ IOException -> 0x0071, all -> 0x006a }\r\n L_0x0010:\r\n r3 = r1.readLine();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0039;\r\n L_0x0016:\r\n r4 = com.alipay.security.mobile.module.p010a.C0159a.m556a(r3);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 != 0) goto L_0x0010;\r\n L_0x001c:\r\n r4 = \":\";\r\n r3 = r3.split(r4);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r3 == 0) goto L_0x0010;\r\n L_0x0024:\r\n r4 = r3.length;\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 <= r6) goto L_0x0010;\r\n L_0x0027:\r\n r4 = 0;\r\n r4 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r5 = \"BogoMIPS\";\r\n r4 = r4.contains(r5);\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n if (r4 == 0) goto L_0x0010;\r\n L_0x0032:\r\n r4 = 1;\r\n r3 = r3[r4];\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n r0 = r3.trim();\t Catch:{ IOException -> 0x0074, all -> 0x006f }\r\n L_0x0039:\r\n r2.close();\t Catch:{ IOException -> 0x0060 }\r\n L_0x003c:\r\n r1.close();\t Catch:{ IOException -> 0x0062 }\r\n L_0x003f:\r\n return r0;\r\n L_0x0040:\r\n r1 = move-exception;\r\n r1 = r0;\r\n r2 = r0;\r\n L_0x0043:\r\n if (r2 == 0) goto L_0x0048;\r\n L_0x0045:\r\n r2.close();\t Catch:{ IOException -> 0x0064 }\r\n L_0x0048:\r\n if (r1 == 0) goto L_0x003f;\r\n L_0x004a:\r\n r1.close();\t Catch:{ IOException -> 0x004e }\r\n goto L_0x003f;\r\n L_0x004e:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0050:\r\n r1 = move-exception;\r\n r2 = r0;\r\n r7 = r0;\r\n r0 = r1;\r\n r1 = r7;\r\n L_0x0055:\r\n if (r2 == 0) goto L_0x005a;\r\n L_0x0057:\r\n r2.close();\t Catch:{ IOException -> 0x0066 }\r\n L_0x005a:\r\n if (r1 == 0) goto L_0x005f;\r\n L_0x005c:\r\n r1.close();\t Catch:{ IOException -> 0x0068 }\r\n L_0x005f:\r\n throw r0;\r\n L_0x0060:\r\n r2 = move-exception;\r\n goto L_0x003c;\r\n L_0x0062:\r\n r1 = move-exception;\r\n goto L_0x003f;\r\n L_0x0064:\r\n r2 = move-exception;\r\n goto L_0x0048;\r\n L_0x0066:\r\n r2 = move-exception;\r\n goto L_0x005a;\r\n L_0x0068:\r\n r1 = move-exception;\r\n goto L_0x005f;\r\n L_0x006a:\r\n r1 = move-exception;\r\n r7 = r1;\r\n r1 = r0;\r\n r0 = r7;\r\n goto L_0x0055;\r\n L_0x006f:\r\n r0 = move-exception;\r\n goto L_0x0055;\r\n L_0x0071:\r\n r1 = move-exception;\r\n r1 = r0;\r\n goto L_0x0043;\r\n L_0x0074:\r\n r3 = move-exception;\r\n goto L_0x0043;\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.alipay.security.mobile.module.b.a.k():java.lang.String\");\r\n }",
"private TagsBenchmarksUtil() {}",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public void mo42331g() {\n mo42335f();\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"String getFeature();",
"String getFeature();",
"static void feladat8() {\n\t}",
"public void mo21787L() {\n }",
"void mo80457c();",
"public void mo6081a() {\n }",
"private void generalFeatureExtraction () {\n Logger.log(\"Counting how many calls each method does\");\n Chain<SootClass> classes = Scene.v().getApplicationClasses();\n try {\n for (SootClass sclass : classes) {\n if (!isLibraryClass(sclass)) {\n System.out.println(ConsoleColors.RED_UNDERLINED + \"\\n\\n 🔍🔍 Checking invocations in \" +\n sclass.getName() + \" 🔍🔍 \" + ConsoleColors.RESET);\n List<SootMethod> methods = sclass.getMethods();\n for (SootMethod method : methods) {\n featuresMap.put(method, new Features(method));\n }\n }\n }\n } catch (Exception e) { \n }\n System.out.println(\"\\n\");\n }",
"private static void runTestCWE1() {\n}",
"private static void runTestCWE1() {\n}",
"void mo80452a();",
"private static java.lang.String[] a(android.content.Context r3, com.xiaomi.xmpush.thrift.u r4) {\n /*\n java.lang.String r0 = r4.h()\n java.lang.String r1 = r4.j()\n java.util.Map r4 = r4.s()\n if (r4 == 0) goto L_0x0073\n android.content.res.Resources r2 = r3.getResources()\n android.util.DisplayMetrics r2 = r2.getDisplayMetrics()\n int r2 = r2.widthPixels\n android.content.res.Resources r3 = r3.getResources()\n android.util.DisplayMetrics r3 = r3.getDisplayMetrics()\n float r3 = r3.density\n float r2 = (float) r2\n float r2 = r2 / r3\n r3 = 1056964608(0x3f000000, float:0.5)\n float r2 = r2 + r3\n java.lang.Float r3 = java.lang.Float.valueOf(r2)\n int r3 = r3.intValue()\n r2 = 320(0x140, float:4.48E-43)\n if (r3 > r2) goto L_0x0051\n java.lang.String r3 = \"title_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0042\n r0 = r3\n L_0x0042:\n java.lang.String r3 = \"description_short\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n goto L_0x0072\n L_0x0051:\n r2 = 360(0x168, float:5.04E-43)\n if (r3 <= r2) goto L_0x0073\n java.lang.String r3 = \"title_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r2 = android.text.TextUtils.isEmpty(r3)\n if (r2 != 0) goto L_0x0064\n r0 = r3\n L_0x0064:\n java.lang.String r3 = \"description_long\"\n java.lang.Object r3 = r4.get(r3)\n java.lang.String r3 = (java.lang.String) r3\n boolean r4 = android.text.TextUtils.isEmpty(r3)\n if (r4 != 0) goto L_0x0073\n L_0x0072:\n r1 = r3\n L_0x0073:\n r3 = 2\n java.lang.String[] r3 = new java.lang.String[r3]\n r4 = 0\n r3[r4] = r0\n r4 = 1\n r3[r4] = r1\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.xiaomi.push.service.ah.a(android.content.Context, com.xiaomi.xmpush.thrift.u):java.lang.String[]\");\n }",
"public void method_191() {}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"boolean hasUnknown73();",
"private static void getHashtagFeatureVector(String input, String output)\r\n\t\t\tthrows Exception {\r\n\t\tOptimizedjob job = new Optimizedjob(new Configuration(), input, output,\r\n\t\t\t\t\"Get feature vector for all hashtags\");\r\n\t\tjob.setClasses(HashtagMapper.class, HashtagReducer.class, null);\r\n\t\tjob.setMapOutputClasses(Text.class, Text.class);\r\n\t\tjob.run();\r\n\t}",
"private static int m69982c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = \"android.os.Build$VERSION\";\t Catch:{ Exception -> 0x0018 }\n r0 = java.lang.Class.forName(r0);\t Catch:{ Exception -> 0x0018 }\n r1 = \"SDK_INT\";\t Catch:{ Exception -> 0x0018 }\n r0 = r0.getField(r1);\t Catch:{ Exception -> 0x0018 }\n r1 = 0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.get(r1);\t Catch:{ Exception -> 0x0018 }\n r0 = (java.lang.Integer) r0;\t Catch:{ Exception -> 0x0018 }\n r0 = r0.intValue();\t Catch:{ Exception -> 0x0018 }\n return r0;\n L_0x0018:\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rx.internal.util.f.c():int\");\n }",
"@Test\n @Tag(\"slow\")\n public void testOSA_07() {\n CuteNetlibCase.doTest(\"OSA-07.SIF\", \"535722.517299352\", \"4332086.205299969\", NumberContext.of(7, 4));\n }",
"public static void listing5_14() {\n }",
"void mo1943l();",
"public void mo34874a(String str) {\n Class<C9780c> cls = C9780c.class;\n boolean[] a = m45645a();\n try {\n C9780c.m45630a(this.f25962b, System.currentTimeMillis(), this.f25961a);\n a[1] = true;\n InstabugSDKLogger.m46622d(cls, \"Features fetched successfully\");\n a[2] = true;\n JSONObject jSONObject = new JSONObject(str);\n a[3] = true;\n boolean optBoolean = jSONObject.optBoolean(\"crash_reporting\", true);\n a[4] = true;\n this.f25962b.mo34866a(Feature.CRASH_REPORTING, optBoolean);\n a[5] = true;\n boolean optBoolean2 = jSONObject.optBoolean(\"push_notifications\", true);\n a[6] = true;\n this.f25962b.mo34866a(Feature.PUSH_NOTIFICATION, optBoolean2);\n a[7] = true;\n boolean optBoolean3 = jSONObject.optBoolean(\"white_label\", true);\n a[8] = true;\n this.f25962b.mo34866a(Feature.WHITE_LABELING, optBoolean3);\n a[9] = true;\n boolean optBoolean4 = jSONObject.optBoolean(\"in_app_messaging\", true);\n a[10] = true;\n this.f25962b.mo34866a(Feature.IN_APP_MESSAGING, optBoolean4);\n a[11] = true;\n boolean optBoolean5 = jSONObject.optBoolean(\"multiple_attachments\", true);\n a[12] = true;\n this.f25962b.mo34866a(Feature.MULTIPLE_ATTACHMENTS, optBoolean5);\n String str2 = com.instabug.library.model.State.KEY_USER_STEPS;\n a[13] = true;\n boolean optBoolean6 = jSONObject.optBoolean(str2, true);\n a[14] = true;\n this.f25962b.mo34866a(Feature.TRACK_USER_STEPS, optBoolean6);\n a[15] = true;\n boolean optBoolean7 = jSONObject.optBoolean(\"repro_steps\", true);\n a[16] = true;\n this.f25962b.mo34866a(Feature.REPRO_STEPS, optBoolean7);\n String str3 = com.instabug.library.model.State.KEY_CONSOLE_LOG;\n a[17] = true;\n boolean optBoolean8 = jSONObject.optBoolean(str3, true);\n a[18] = true;\n this.f25962b.mo34866a(Feature.CONSOLE_LOGS, optBoolean8);\n a[19] = true;\n boolean optBoolean9 = jSONObject.optBoolean(\"ibg_log\", true);\n a[20] = true;\n this.f25962b.mo34866a(Feature.INSTABUG_LOGS, optBoolean9);\n a[21] = true;\n boolean optBoolean10 = jSONObject.optBoolean(com.instabug.library.model.State.KEY_USER_DATA, true);\n a[22] = true;\n this.f25962b.mo34866a(Feature.USER_DATA, optBoolean10);\n a[23] = true;\n boolean optBoolean11 = jSONObject.optBoolean(\"surveys\", true);\n a[24] = true;\n this.f25962b.mo34866a(Feature.SURVEYS, optBoolean11);\n String str4 = BugEntry.COLUMN_VIEW_HIERARCHY;\n a[25] = true;\n boolean optBoolean12 = jSONObject.optBoolean(str4, true);\n a[26] = true;\n this.f25962b.mo34866a(Feature.VIEW_HIERARCHY, optBoolean12);\n a[27] = true;\n boolean optBoolean13 = jSONObject.optBoolean(\"user_events\", true);\n a[28] = true;\n this.f25962b.mo34866a(Feature.USER_EVENTS, optBoolean13);\n a[29] = true;\n boolean optBoolean14 = jSONObject.optBoolean(\"disclaimer_text\", false);\n a[30] = true;\n this.f25962b.mo34866a(Feature.DISCLAIMER, optBoolean14);\n a[31] = true;\n boolean optBoolean15 = jSONObject.optBoolean(com.instabug.library.model.State.KEY_SESSIONS_PROFILER, true);\n a[32] = true;\n this.f25962b.mo34866a(Feature.SESSION_PROFILER, optBoolean15);\n a[33] = true;\n boolean optBoolean16 = jSONObject.optBoolean(\"feature_requests\", true);\n a[34] = true;\n this.f25962b.mo34866a(Feature.FEATURE_REQUESTS, optBoolean16);\n a[35] = true;\n boolean optBoolean17 = jSONObject.optBoolean(\"vp_customizations\", false);\n a[36] = true;\n this.f25962b.mo34866a(Feature.VP_CUSTOMIZATION, optBoolean17);\n a[37] = true;\n SDKCoreEventPublisher.post(new SDKCoreEvent(\"features\", Feature.VALUE_FETCHED));\n a[38] = true;\n } catch (JSONException e) {\n a[39] = true;\n InstabugSDKLogger.m46624e(cls, \"Something went wrong while parsing fetching features request's response\", e);\n a[40] = true;\n }\n a[41] = true;\n }",
"int indexOfFeature(Feature feature);",
"public void mo21792Q() {\n }",
"protected boolean func_70041_e_() { return false; }",
"protected java.util.List x (java.lang.String r19){\n /*\n r18 = this;\n r0 = r18;\n r2 = r0.K;\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\n r2 = (java.util.List) r2;\n if (r2 == 0) goto L_0x000f;\n L_0x000e:\n return r2;\n L_0x000f:\n r12 = java.util.Collections.emptyList();\n r2 = r18.bp();\n r3 = r18.TaskHandler(r19);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r4 = r2.setDrawable(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n if (r4 != 0) goto L_0x0026;\n L_0x0021:\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0026:\n r13 = r2.getScaledMaximumFlingVelocity(r3);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r14 = new java.io.ByteArrayOutputStream;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r2 = 2048; // 0x800 float:2.87E-42 double:1.0118E-320;\n r14.<creatCallTask>(r2);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13, r14);\t Catch:{ all -> 0x00f2 }\n r2 = r14.toByteArray();\t Catch:{ all -> 0x00f2 }\n r2 = com.duokan.kernel.DkUtils.decodeSimpleDrm(r2);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r4 = \"UTF-8\";\n r3.<creatCallTask>(r2, r4);\t Catch:{ all -> 0x00f2 }\n r2 = new org.json.JSONObject;\t Catch:{ all -> 0x00f2 }\n r2.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n if (r2 != 0) goto L_0x0055;\n L_0x004a:\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n r18.bq();\n r2 = r12;\n goto L_0x000e;\n L_0x0055:\n r3 = \"pictures\";\n r15 = com.duokan.reader.common.getPhysicalYPixels.setDrawable(r2, r3);\t Catch:{ all -> 0x00f2 }\n r16 = new java.util.ArrayList;\t Catch:{ all -> 0x00f2 }\n r2 = r15.length();\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.<creatCallTask>(r2);\t Catch:{ all -> 0x00f2 }\n r2 = 0;\n L_0x0067:\n r3 = r15.length();\t Catch:{ all -> 0x00f2 }\n if (r2 >= r3) goto L_0x00d0;\n L_0x006d:\n r3 = r15.getJSONObject(r2);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_md5\";\n r7 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_url\";\n r6 = r3.getString(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"sm_size\";\n r8 = r3.getLong(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"width\";\n r10 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r4 = \"height\";\n r11 = r3.getInt(r4);\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r4 = \".\";\n r3 = r3.append(r4);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r2);\t Catch:{ all -> 0x00f2 }\n r4 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5 = new java.lang.String;\t Catch:{ all -> 0x00f2 }\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00f2 }\n r3.<creatCallTask>();\t Catch:{ all -> 0x00f2 }\n r17 = \"file:///stuffs/\";\n r0 = r17;\n r3 = r3.append(r0);\t Catch:{ all -> 0x00f2 }\n r3 = r3.append(r7);\t Catch:{ all -> 0x00f2 }\n r3 = r3.toString();\t Catch:{ all -> 0x00f2 }\n r5.<creatCallTask>(r3);\t Catch:{ all -> 0x00f2 }\n r3 = r18;\n r3 = r3.setDrawable(r4, r5, r6, r7, r8, r10, r11);\t Catch:{ all -> 0x00f2 }\n r0 = r16;\n r0.add(r3);\t Catch:{ all -> 0x00f2 }\n r2 = r2 + 1;\n goto L_0x0067;\n L_0x00d0:\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r1 = r16;\n r2.putIfAbsent(r0, r1);\t Catch:{ all -> 0x00f2 }\n r0 = r18;\n r2 = r0.K;\t Catch:{ all -> 0x00f2 }\n r0 = r19;\n r2 = r2.getAllSortStackTraces(r0);\t Catch:{ all -> 0x00f2 }\n r2 = (java.util.List) r2;\t Catch:{ all -> 0x00f2 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x0106, all -> 0x0101 }\n r18.bq();\n goto L_0x000e;\n L_0x00f2:\n r2 = move-exception;\n com.duokan.core.io.getTriangleEdge.setDrawable(r13);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n com.duokan.core.io.getTriangleEdge.setDrawable(r14);\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n throw r2;\t Catch:{ Throwable -> 0x00fa, all -> 0x0101 }\n L_0x00fa:\n r2 = move-exception;\n r2 = r12;\n L_0x00fc:\n r18.bq();\n goto L_0x000e;\n L_0x0101:\n r2 = move-exception;\n r18.bq();\n throw r2;\n L_0x0106:\n r3 = move-exception;\n goto L_0x00fc;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.duokan.reader.domain.bookshelf.jv.MyContextWrapper(java.lang.String):java.util.List\");\n }",
"private void level6() {\n }"
] | [
"0.54031354",
"0.5348676",
"0.52783555",
"0.5264103",
"0.51815957",
"0.5173143",
"0.5151139",
"0.51451087",
"0.51369876",
"0.51199335",
"0.5113282",
"0.50742316",
"0.50742316",
"0.50662225",
"0.5050754",
"0.5049975",
"0.5047382",
"0.5047382",
"0.5040792",
"0.5040792",
"0.5037934",
"0.5037934",
"0.503006",
"0.503006",
"0.50263184",
"0.49919423",
"0.4979584",
"0.49774063",
"0.49727318",
"0.49664322",
"0.49664322",
"0.49663034",
"0.4963983",
"0.4963983",
"0.49508893",
"0.49491915",
"0.4943515",
"0.49433386",
"0.4942036",
"0.49400508",
"0.49337325",
"0.49337325",
"0.4932474",
"0.49163967",
"0.49141762",
"0.49110174",
"0.49110174",
"0.4905842",
"0.4905699",
"0.48903945",
"0.4889544",
"0.48879045",
"0.48805243",
"0.48798135",
"0.486372",
"0.48623556",
"0.48574775",
"0.4856837",
"0.48552233",
"0.48511264",
"0.48495263",
"0.4841852",
"0.48384494",
"0.48365688",
"0.4834506",
"0.48321244",
"0.48252317",
"0.4822375",
"0.48205328",
"0.4820507",
"0.48155755",
"0.48133385",
"0.4808066",
"0.4808066",
"0.480346",
"0.4799192",
"0.4798994",
"0.4798994",
"0.47971874",
"0.479666",
"0.4795853",
"0.4789357",
"0.4782783",
"0.47810414",
"0.47810414",
"0.47741228",
"0.47737682",
"0.4773285",
"0.47715533",
"0.4768909",
"0.47648823",
"0.4763722",
"0.47635245",
"0.47627607",
"0.47618285",
"0.47575006",
"0.4757338",
"0.47567514",
"0.4751014",
"0.47470567",
"0.47443274"
] | 0.0 | -1 |
Gets an folder and removes all class files recursivelly | private void cleanOutputFolder(String output) {
File[] files = new File[1];
files[0] = new File(output);
cleanFolder(files);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void remDir(String path) {\n\t\t\r\n\t}",
"private void cleanFolder(File[] files) {\n \t\t\n \t\tif (files != null) {\n \t\t\t// Iterate the files\n \t\t\tfor (int i = 0; i < files.length; i++) {\n \t\t\t\tFile f = files[i];\n \t\t\t\t// If the file is a directory, remove its contents recursively\n \t\t\t\tif (f.isDirectory()) {\n \t\t\t\t\tcleanFolder(f.listFiles());\n \t\t\t\t}\n \t\t\t\t// Remove the file if it is a class file\n \t\t\t\tif (f.getName().endsWith(\".class\"))\n \t\t\t\t\tf.delete();\n \t\t\t}\n \t\t}\n \t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tFile dir = new File(\"src/reports\");\n\t\t\t\tfor (File file : dir.listFiles())\n\t\t\t\tif (!file.isDirectory())\n\t\t\t\tfile.delete();\n\t\t\t\t}",
"private void processClassesFolderIfNotEmpty(Properties sonarProjectProperties, String classFolder) {\n if (FileUtils.iterateFiles(new File(classFolder), new String[] {\"class\"}, true).hasNext()) {\n LOG.debug(\"Class folder: {}\", classFolder);\n appendProperty(sonarProjectProperties, SonarConfiguratorProperties.LIBRARIES_PROPERTY, classFolder + (classFolder.endsWith(\"/\") ? \"\" : \"/\") + \"*.class\");\n }\n }",
"private void loadDirectoryUp() {\n\t\tString s = pathDirsList.remove(pathDirsList.size() - 1);\n\t\t// path modified to exclude present directory\n\t\tpath = new File(path.toString().substring(0,\n\t\t\t\tpath.toString().lastIndexOf(s)));\n\t\tfileList.clear();\n\t}",
"private static List<Class> findClasses(File directory, String packageName) throws ClassNotFoundException {\n List<Class> classes = new ArrayList<Class>();\n if (!directory.exists()) {\n return classes;\n }\n File[] files = directory.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n assert !file.getName().contains(\".\");\n classes.addAll(findClasses(file, packageName + \".\" + file.getName()));\n } else if (file.getName().endsWith(\".class\")) {\n classes.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n }\n }\n return classes;\n }",
"protected abstract void generatePackageFiles(ClassTree classtree) throws Exception;",
"public void reset(File folder) {\n File[] listOfFiles = folder.listFiles();\n for(int x=0;x<listOfFiles.length;x++) {\n if(listOfFiles[x].isDirectory()) {\n this.reset(listOfFiles[x]);\n listOfFiles[x].delete();\n }\n }\n folder.delete();\n }",
"@PathSensitive(PathSensitivity.RELATIVE)\n @InputFiles\n @SkipWhenEmpty\n public FileCollection getClassesDirs() {\n return classesDirs;\n }",
"private void clearClipsDirectory(){\n /* Citation : http://helpdesk.objects.com.au/java/how-to-delete-all-files-in-a-directory#:~:text=Use%20the%20listFiles()%20method,used%20to%20delete%20each%20file. */\n File directory = new File(Main.CREATED_CLIPS_DIRECTORY_PATH);\n File[] files = directory.listFiles();\n if(files != null){\n for(File file : files){\n if(!file.delete()) System.out.println(\"Failed to remove file \" + file.getName() + \" from \" + Main.CREATED_CLIPS_DIRECTORY_PATH);\n }\n }\n }",
"private void listAllClasses(List<Path> foundFiles, Path root) {\r\n if (root.toFile().isFile()) {\r\n foundFiles.add(root);\r\n } else {\r\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(root, filter)) {\r\n for (Path path : stream) {\r\n if (Files.isDirectory(path)) {\r\n listAllClasses(foundFiles, path);\r\n } else {\r\n foundFiles.add(path);\r\n }\r\n }\r\n } catch (AccessDeniedException e) {\r\n logger.error(\"Access denied to directory {}\", root, e);\r\n } catch (IOException e) {\r\n logger.error(\"Error while reading directory {}\", root, e);\r\n }\r\n }\r\n }",
"private List<Class> findClasses(File directory, String packageName) throws ClassNotFoundException {\n List<Class> classes = new ArrayList<Class>();\n if (!directory.exists()) {\n return classes;\n }\n File[] files = directory.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n assert !file.getName().contains(\".\");\n classes.addAll(findClasses(file, packageName + \".\" + file.getName()));\n } else if (file.getName().endsWith(\".class\")) {\n classes.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n }\n }\n return classes;\n }",
"private static List<Class<?>> findClasses(File directory, String packageName) throws ClassNotFoundException {\n List<Class<?>> classes = new ArrayList<Class<?>>();\n if (!directory.exists()) {\n return classes;\n }\n File[] files = directory.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n assert !file.getName().contains(\".\");\n classes.addAll(findClasses(file, packageName + \".\" + file.getName()));\n } else if (file.getName().endsWith(\".class\")) {\n classes.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n }\n }\n return classes;\n }",
"private void przygotujFolderWynikowy() {\r\n\t\tFile folder = new File(\"./wynik\");\r\n\t\tif (!(folder.mkdir())) {\r\n\t\t\tFile[] tablica = folder.listFiles();\r\n\t\t\tif(tablica != null)\r\n\t\t\tfor (File f : tablica) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tf.delete();\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\t\r\n\t\t}\r\n\t}",
"public static void cleanFolder(File outputFolder)\n {\n File[] files = outputFolder.listFiles();\n for (File file : files)\n {\n if (file.isDirectory())\n {\n cleanFolder(file);\n }\n else\n {\n if (file.delete())\n {\n Main.out(\"Deleted: \" + file);\n }\n else\n {\n Main.warn(\"Failed to delete file: \" + file);\n }\n }\n }\n }",
"public static native void deleteTreesBelow(String dir) throws IOException;",
"public void deleteDir() throws Exception\n{\n if(_repo!=null) _repo.close(); _repo = null;\n _gdir.delete();\n _gdir.setProp(GitDir.class.getName(), null);\n}",
"private static List<Class<?>> findClasses(File directory, String packageName) throws ClassNotFoundException {\n\t\tList<Class<?>> classes = new ArrayList<Class<?>>();\n\t\tif (!directory.exists()) {\n\t\t\treturn classes;\n\t\t}\n\t\tFile[] files = directory.listFiles();\n\t\tfor (File file : files) {\n\t\t\tif (file.isDirectory()) {\n\t\t\t\tassert !file.getName().contains(\".\");\n\t\t\t\tclasses.addAll(findClasses(file, packageName + \".\" + file.getName()));\n\t\t\t} else if (file.getName().endsWith(\".class\")) {\n\t\t\t\tclasses.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n\t\t\t}\n\t\t}\n\t\treturn classes;\n\t}",
"public folderize() {\n }",
"private void scanClass(String scanPackage) {\n URL url = this.getClass().getClassLoader().getResource(\"/\" + scanPackage.replaceAll(\"\\\\.\", \"/\"));\n File dir = new File(url.getFile());\n for (File file : dir.listFiles()) {\n if (file.isDirectory()) {\n scanClass(scanPackage + \".\" + file.getName());\n } else {\n classNames.add(scanPackage + \".\" + file.getName().replaceAll(\".class\", \"\").trim());\n }\n }\n\n }",
"private static List<Class<?>>\n getClassNameFromFile(String path, String packageName, boolean isRecursion, String postfix) {\n List<Class<?>> lct = new ArrayList<>();\n\n try {\n path = java.net.URLDecoder.decode(\n new String(path.getBytes(\"ISO-8859-1\"),\"UTF-8\"),\"UTF-8\");\n\n File file =new File(path);\n File[] files = file.listFiles();\n\n for (File childFile : files) {\n if (childFile.isDirectory()) {\n if (isRecursion) {\n lct.addAll(getClassNameFromFile(childFile.getPath(),\n packageName + \".\" +childFile.getName(), isRecursion, postfix));\n }\n } else {\n String fileName = childFile.getName();\n if (fileName.endsWith(postfix) && !fileName.contains(\"$\")) {\n System.out.println(fileName);\n lct.add(Class.forName(packageName + \".\" + fileName.replace(\".class\", \"\")));\n }\n }\n }\n }catch (UnsupportedEncodingException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n return lct;\n }",
"public static void deleteFolder(File folder) {\r\nFile[] files = folder.listFiles();\r\nif(files!=null) { //some JVMs return null for empty dirs\r\nfor(File f: files) {\r\nif(f.isDirectory()) {\r\ndeleteFolder(f);\r\n} else {\r\nf.delete();\r\n}\r\n}\r\n}\r\nfolder.delete();\r\n}",
"protected List <WebFile> getSourceDirChildFiles()\n{\n // Iterate over source dir and add child packages and files\n List children = new ArrayList();\n for(WebFile child : getFile().getFiles()) {\n if(child.isDir() && child.getType().length()==0)\n addPackageDirFiles(child, children);\n else children.add(child);\n }\n \n return children;\n}",
"private static List<Class> findClasses(File directory, String packageName)\n\t\t\tthrows ClassNotFoundException {\n\t\tList<Class> classes = new ArrayList<Class>();\n\t\tif (directory.exists()) {\n\t\t\tFile[] files = directory.listFiles();\n\t\t\tfor (File file : files) {\n\t\t\t\tif (file.isDirectory()) {\n\t\t\t\t\tassert !file.getName().contains(\".\");\n\t\t\t\t\tclasses.addAll(findClasses(file,\n\t\t\t\t\t\t\tpackageName + \".\" + file.getName()));\n\t\t\t\t} else if (file.getName().endsWith(\".class\") && !file.getName().endsWith(\"Test.class\")) {\n\t\t\t\t\tclasses.add(Class.forName(packageName\n\t\t\t\t\t\t\t+ '.'\n\t\t\t\t\t\t\t+ file.getName().substring(0,\n\t\t\t\t\t\t\t\t\tfile.getName().length() - 6)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn classes;\n\t}",
"@SneakyThrows\n private Stream<Class<?>> findClasses(File directory, String packageName) {\n\n val lookForClasses =\n Function2.of(ReflectionUtils::lookForClasses)\n .apply(packageName);\n\n return Optional.of(directory)\n .filter(File::exists)\n .map(File::listFiles)\n .stream()\n .flatMap(Arrays::stream)\n .flatMap(lookForClasses);\n }",
"protected void tearDown()\n {\n super.tearDown();\n ClassLoader classLoader = getClass().getClassLoader();\n File folder = null;\n try\n {\n folder = new File(classLoader.getResource(\"levels\").toURI().getPath());\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n File[] listOfFiles = folder.listFiles();\n\n for (File f : listOfFiles)\n {\n if (!f.getPath().contains(\"level1.txt\") && !f.getPath().contains(\"level2.txt\") &&\n !f.getPath().contains(\"level3.txt\"))\n {\n try\n {\n Files.delete(f.toPath());\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }",
"private void deleteCacheFiles() {\n\n\t\t// get the directory file\n\t\tFile cache = new File(Constants.CACHE_DIR_PATH);\n\n\t\t// check if we got the correct instance of that directory file.\n\t\tif (!cache.exists() || !cache.isDirectory())\n\t\t\treturn;\n\n\t\t// gets the list of files in the directory\n\t\tFile[] files = cache.listFiles();\n\t\t// deleting\n\n\t\tdeleteFiles(cache);\n\t\tfiles = null;\n\t\tcache = null;\n\n\t}",
"private List<Class<?>> getClasses(String packageName) throws Exception {\n File directory = null;\n try {\n ClassLoader cld = getClassLoader();\n URL resource = getResource(packageName, cld);\n directory = new File(resource.getFile());\n } catch (NullPointerException ex) {\n throw new ClassNotFoundException(packageName + \" (\" + directory\n + \") does not appear to be a valid package\");\n }\n return collectClasses(packageName, directory);\n }",
"private void restoreDirectories() throws IOException {\n\t\t// Reponemos las refactorizaciones que habia antes\n\t\tFileManager.emptyDirectories(RefactoringPlugin\n\t\t\t\t.getDynamicRefactoringsDir());\n\t\tFileManager.deleteDirectories(\n\t\t\t\tRefactoringPlugin.getDynamicRefactoringsDir(), false);\n\t\tFileManager\n\t\t\t\t.copyFolder(\n\t\t\t\t\t\t\"./testdata/XML/Writer/availableRefactorings/DynamicRefactorings\",\n\t\t\t\t\t\tnew File(RefactoringPlugin.getDynamicRefactoringsDir())\n\t\t\t\t\t\t\t\t.getParent());\n\t\t// Borramos la carpeta con las refactorizaciones del directorio temporal\n\t\tFileManager\n\t\t\t\t.emptyDirectories(\"./testdata/XML/Writer/availableRefactorings/DynamicRefactorings\");\n\t\tFileManager\n\t\t\t\t.deleteDirectories(\n\t\t\t\t\t\t\"./testdata/XML/Writer/availableRefactorings/DynamicRefactorings\",\n\t\t\t\t\t\ttrue);\n\t\t// Borramos el archivo generado para dejar la aplicaci�n como se\n\t\t// encontraba.\n\t\tFileManager.deleteFile(RefactoringConstants.REFACTORING_TYPES_FILE);\n\t}",
"public void removeAllPackages() {\r\n myPackages.clear();\r\n }",
"void deleteDirectories() {\n\n if (story_directory != null && !newStoryReady) {\n deleteStoryDirectory();\n }\n\n if (tag_directory != null && !newStoryReady) {\n deleteTagDirectory();\n }\n\n if (cover_directory != null && !newStoryReady) {\n deleteCoverDirectory();\n }\n }",
"void deleteCoverDirectory() {\n\n try {\n\n Log.i(\"Deleting Covr Directory\", cover_directory.toString());\n FileUtils.deleteDirectory(cover_directory);\n } catch (IOException e) {\n\n }\n\n }",
"@Override\n public void removeDirectory(File directory, boolean recursive) throws FileNotFoundException, IOException {\n }",
"public static void deleteCache(Context context){\n File baseDir = getResourcesFolder(context);\n //basDir could be null if storage has not yet been selected (extreme cases where memory is too low)\n if(baseDir != null) {\n File[] content = baseDir.listFiles();\n if(content != null)\n for (File file : content)\n deleteRecursively(file);\n }\n }",
"@Override\n public void run() {\n String whichFiles = \"'\" + languageFolder.getId() + \"' in parents and \" + NOT_TRASHED + \" and \" + FOLDER + \" and \" + NOT_SPREADSHEET;\n List<File> files = getContents(whichFiles);\n \n prune(localLanguageFolder, files);\n processFolders(files, localLanguageFolder);\n }",
"private void removeFromCache() {\n int i = 0;\n int removeItem = random.nextInt(cache.size());\n for (ScopePath className : cache.keySet()) {\n if (i == removeItem) {\n cache.remove(className);\n break;\n }\n ++i;\n }\n }",
"private List<Class> getClasses(String packageName)\n throws ClassNotFoundException, IOException {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n assert classLoader != null;\n String path = packageName.replace('.', '/');\n Enumeration<URL> resources = classLoader.getResources(path);\n List<File> dirs = new ArrayList<File>();\n while (resources.hasMoreElements()) {\n URL resource = resources.nextElement();\n dirs.add(new File(resource.getFile()));\n }\n ArrayList<Class> classes = new ArrayList<Class>();\n for (File directory : dirs) {\n classes.addAll(findClasses(directory, packageName));\n }\n return classes;\n }",
"FileObject getBaseFolder();",
"public static void main(String[] args){\nFile filez = new File(\"d:/prac/sub1\");\r\ndeleteFolder(filez);\r\n}",
"@Override\r\n public List<Folder> getAllFolder() {\n return folderRepository.findAll();\r\n }",
"private void generateClassFiles(ClassTree classtree) {\n String[] packageNames = configuration.classDocCatalog.packageNames();\n for (int packageNameIndex = 0; packageNameIndex < packageNames.length;\n packageNameIndex++) {\n generateClassFiles(configuration.classDocCatalog.allClasses(\n packageNames[packageNameIndex]), classtree);\n }\n }",
"private void browseUsersFolders(Path path) {\n try (DirectoryStream<Path> streamUserDir = Files.newDirectoryStream(path)) {\n for (Path userDir : streamUserDir) {\n // recursive deletion if userDir not modified anymore\n if (checkDeletion(userDir)) {\n logger.log(Level.INFO, \"Deletion started for: \"\n + userDir.getFileName());\n FilesHelper.deleteFolder(userDir);\n }\n\n // if modified and exists, then check inside\n if (Files.exists(userDir)) {\n browseApplicationsFolders(userDir);\n }\n }\n } catch (Exception ex) {\n logger.log(Level.ERROR, \"Cannot get directory list\", ex);\n }\n }",
"private void manageDirectories() throws IOException {\n\t\tFileManager.copyFolder(RefactoringPlugin.getDynamicRefactoringsDir(),\n\t\t\t\t\"./testdata/XML/Writer/availableRefactorings\");\n\t\tFileManager.emptyDirectories(RefactoringPlugin\n\t\t\t\t.getDynamicRefactoringsDir());\n\t\tFileManager.deleteDirectories(\n\t\t\t\tRefactoringPlugin.getDynamicRefactoringsDir(), false);\n\t}",
"static Stream<File> allFilesIn(File folder) \r\n\t{\r\n\t\tFile[] children = folder.listFiles();\r\n\t\tStream<File> descendants = Arrays.stream(children).filter(File::isDirectory).flatMap(Program::allFilesIn);\r\n\t\treturn Stream.concat(descendants, Arrays.stream(children).filter(File::isFile));\r\n\t}",
"protected void generateClassFiles(RootDoc root, ClassTree classtree) {\n generateClassFiles(classtree);\n PackageDoc[] packages = root.specifiedPackages();\n for (int i = 0; i < packages.length; i++) {\n generateClassFiles(packages[i].allClasses(), classtree);\n }\n }",
"private IFolder getUnsortedFolder() {\n \t\tString unsortedFolder = (String) arguments.get(UNSORTED_FOLDER);\n \t\tif (unsortedFolder == null)\n \t\t\tunsortedFolder = DEFAULT_UNSORTED_FOLDER;\n \t\treturn getProject().getFolder(unsortedFolder);\n \t}",
"@Override\n public FileVisitResult postVisitDirectory(Path dir, IOException e) throws IOException{\n if (e == null) {\n Files.deleteIfExists(dir);\n }\n return FileVisitResult.CONTINUE;\n }",
"@InputFiles\n @Incremental\n @PathSensitive(PathSensitivity.RELATIVE)\n public abstract ConfigurableFileCollection getDexFolders();",
"@Override\n\tpublic synchronized void clear() {\n\t\tFile[] files = mRootDirectory.listFiles();\n\t\tif (files != null) {\n\t\t\tfor (File file : files) {\n\t\t\t\tfile.delete();\n\t\t\t}\n\t\t}\n\t\tmEntries.clear();\n\t\tmTotalSize = 0;\n\t\tVolleyLog.d(\"Cache cleared.\");\n\t}",
"public void cleanImportDirectory(String iPath) {\r\n\t\ttry {\r\n\t\t\tFile theFile = new File(iPath);\r\n\t\t\tFile allFiles[] = theFile.listFiles();\r\n\r\n\t\t\tfor (File allFile : allFiles) {\r\n\t\t\t\tif (allFile.isDirectory()) {\r\n\t\t\t\t\tcleanImportDirectory(allFile.toString());\r\n\t\t\t\t\tallFile.delete();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tallFile.delete();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (NullPointerException npe) {\r\n\t\t\tmLogger.severe(iPath + \" did not exist and was not cleaned!!\");\r\n\t\t}\r\n\t}",
"public static List<Class> getSubClasses(final String packageName) {\r\n\t\tfinal List<Class> listClasses = new ArrayList<>();\r\n\t\tSystem.err.println(\"getSubClasses \" + packageName);\r\n\t\t\r\n\t\t// System.err.println(\"java.class.path : \" +\r\n\t\t// System.getProperty(\"java.class.path\"));\r\n\t\tfinal String javaClassPaths[] = System.getProperty(\"java.class.path\").split(\";\");\r\n\t\tfor (final String s : javaClassPaths) {\r\n\t\t\tif (s.endsWith(\".jar\")) {\r\n\t\t\t\t// processJarFile(s, clazz1);\r\n\t\t\t} else {\r\n\t\t\t\tfinal File dirClasses = new File(s);\r\n\t\t\t\tfinal File dirPackage = new File(dirClasses, packageToPath(packageName));\r\n\t\t\t\tif (dirPackage.exists()) {\r\n\t\t\t\t\tfinal String[] names = dirPackage.list();\r\n\t\t\t\t\tfor (final String name : names) {\r\n\r\n\t\t\t\t\t\tif ((name.indexOf(\"$\") < 0) && (name.indexOf(\".class\") > 0)) {\r\n\t\t\t\t\t\t\tfinal String sName = name.substring(0, name.indexOf(\".\"));\r\n\t\t\t\t\t\t\tfinal String className = packageName + \".\" + sName;\r\n\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tfinal Class clazz = UtilReflection.class.getClassLoader().loadClass(className);\r\n\t\t\t\t\t\t\t\tlistClasses.add(clazz);\r\n\t\t\t\t\t\t\t} catch (final ClassNotFoundException e) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"ClassNotFound :\" + e.getMessage());\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\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn listClasses;\r\n\t}",
"public static TreeSet<String> findClasses( String path, String packageName, Pattern regex ) throws Exception {\n\t\tTreeSet<String> classes = new TreeSet<String>();\n\t\tif( path.startsWith( \"file:\" ) && path.contains( \"!\" ) ) {\n\t\t\tString[] split = path.split( \"!\" );\n\t\t\tURL jar = new URL( split[0] );\n\t\t\tZipInputStream zip = new ZipInputStream( jar.openStream() );\n\t\t\tZipEntry entry;\n\t\t\twhile( ( entry = zip.getNextEntry() ) != null ) {\n\t\t\t\tif( entry.getName().endsWith( \".class\" ) ) {\n\t\t\t\t\tString className = entry.getName().replaceAll( \"[$].*\", \"\" ).replaceAll( \"[.]class\", \"\" ).replace( '/', '.' );\n\t\t\t\t\tif( className.startsWith( packageName ) && ( regex == null || regex.matcher( className ).matches() ) ) {\n\t\t\t\t\t\tclasses.add( className );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tFile dir = new File( path );\n\t\tif( !dir.exists() ) {\n\t\t\treturn classes;\n\t\t}\n\t\tFile[] files = dir.listFiles();\n\t\tfor( File file : files ) {\n\t\t\tif( file.isDirectory() ) {\n\t\t\t\tassert !file.getName().contains( \".\" );\n\t\t\t\tclasses.addAll( findClasses( file.getAbsolutePath(), packageName + \".\" + file.getName(), regex ) );\n\t\t\t} else if( file.getName().endsWith( \".class\" ) ) {\n\t\t\t\tString className = packageName + '.' + file.getName().substring( 0, file.getName().length() - 6 );\n\t\t\t\tif( regex == null || regex.matcher( className ).matches() ) classes.add( className );\n\t\t\t}\n\t\t}\n\t\treturn classes;\n\t}",
"@AfterClass\n public static void cleanup() throws Exception {\n fs.delete(new Path(baseDir), true);\n }",
"private IClasspathEntry[] removeSourceClasspath(IClasspathEntry[] entries, IContainer folder) {\n if (folder == null) {\n return entries;\n }\n IClasspathEntry source = JavaCore.newSourceEntry(folder.getFullPath());\n int n = entries.length;\n for (int i = n - 1; i >= 0; i--) {\n if (entries[i].equals(source)) {\n IClasspathEntry[] newEntries = new IClasspathEntry[n - 1];\n if (i > 0) System.arraycopy(entries, 0, newEntries, 0, i);\n if (i < n - 1) System.arraycopy(entries, i + 1, newEntries, i, n - i - 1);\n n--;\n entries = newEntries;\n }\n }\n return entries;\n }",
"public static List<Class> findClasses(File directory, String packageName) throws ClassNotFoundException {\n List<Class> classes = new ArrayList<Class>();\n if (!directory.exists()) {\n return classes;\n }\n File[] files = directory.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n assert !file.getName().contains(\".\");\n classes.addAll(findClasses(file, packageName + \".\" + file.getName()));\n } else if (file.getName().endsWith(\".class\")) {\n classes.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n }\n }\n return classes;\n }",
"public void removeFolder(File path){\n if (path.isDirectory()){\n String subdirectories[] = path.list();\n for(String subdirectory: subdirectories){\n File file = new File(path.getPath()+\"\\\\\"+subdirectory);\n LOG.info(\"file.getAbsolutePath(): \"+file.getPath());\n if (file.isFile()){\n boolean isDeleted = file.delete();\n if (isDeleted){\n LOG.success(\"file was delete, path: \"+file.getPath());\n }else{\n LOG.error(\"file does not delete, path: \"+file.getPath());\n }\n }else{\n removeFolder(file);\n boolean folderIsDelete = file.delete();\n if (folderIsDelete){\n LOG.success(\"folder was delete, path: \"+file);\n }else{\n LOG.error(\"folder does not delete, path: \"+file);\n }\n }\n }\n }else {\n LOG.info(\"file.getAbsolutePath(): \"+path.getPath());\n }\n }",
"void deleteStoryDirectory() {\n\n try {\n\n Log.i(\"Deleting StoryDirectory\", story_directory.toString());\n FileUtils.deleteDirectory(story_directory);\n } catch (IOException e) {\n\n }\n\n }",
"@NotNull\n List<? extends ClassInfo> getAllClasses();",
"@Override\n public void clear() {\n loadedClasses.clear();\n }",
"void deleteTagDirectory() {\n\n try {\n\n Log.i(\"Deleting Tag Directory\", tag_directory.toString());\n FileUtils.deleteDirectory(tag_directory);\n } catch (IOException e) {\n\n }\n\n }",
"public static List<CMSFile> getFolderChildren(String path){\n return CMSFile.find(\"name NOT LIKE '\" + path + \"%/%' and name like '\" + path + \"%'\").fetch();\n }",
"@AfterClass(groups ={\"All\"})\n\tpublic void deleteFolder() {\n\t\ttry {\n\t\t\tUserAccount account = dciFunctions.getUserAccount(suiteData);\n\t\t\tUniversalApi universalApi = dciFunctions.getUniversalApi(suiteData, account);\n\t\t\tif(suiteData.getSaasApp().equalsIgnoreCase(\"Salesforce\")){\n\t\t\t\tfor(String id:uploadId){\n\t\t\t\t\tMap<String,String> fileInfo = new HashMap<String,String> ();\n\t\t\t\t\tfileInfo.put(\"fileId\", id);\n\t\t\t\t\tdciFunctions.deleteFile(universalApi, suiteData, fileInfo);\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tdciFunctions.deleteFolder(universalApi, suiteData, folderInfo);\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tLogger.info(\"Issue with Delete Folder Operation \" + ex.getLocalizedMessage());\n\t\t}\n\t}",
"Object getDir();",
"public void excludeAllFiles(){\n for(Map.Entry<String,File> entry : dataSourcesDirectories.entrySet()){\n \n //Get directory\n File dir = entry.getValue();\n \n //List files contained in this directory\n File[] listOfFiles = dir.listFiles();\n \n //Delete each file contained in this directory\n for(File file : listOfFiles)\n file.delete();\n \n //Delete directory\n dir.delete();\n \n }\n \n //For each directory created for each service\n for(Map.Entry<String,File> entry : servicesDirectories.entrySet()){\n \n //Get directory\n File dir = entry.getValue();\n \n //List files contained in this directory\n File[] listOfFiles = dir.listFiles();\n \n //Delete each file contained in this directory\n for(File file : listOfFiles)\n file.delete();\n \n //Delete directory\n dir.delete();\n \n }\n \n //Finally, delete sessionDirectory\n if(sessionDirectory != null)\n sessionDirectory.delete();\n \n }",
"private void unWatchDir(Path path) {\n watcher_service.deRegisterAll(path);\n }",
"public static void deleteFolder(String path){\n List<CMSFile> files = CMSFile.find(\"name like '\" + path + \"%'\").fetch();\n for (CMSFile file: files){\n if (file.data != null && file.data.exists()) {\n file.data.getFile().delete();\n }\n file.delete();\n }\n }",
"String folderPath();",
"public void removeFolder(Folder item){\n\t\tCollection<Task> delTasks = new ArrayList<Task>();\n\t\tfor ( Task task : m_Tasks ){\n\t\t\tif( task.folder.equals(item.m_Name) ) delTasks.add(task);\n\t\t}\n\t\t\n\t\tfor(Task task: delTasks){\n\t\t\tm_Tasks.remove(task);\n\t\t}\n\t\tm_Folders.remove(item);\n\t}",
"private static Class[] getClasses(String packageName)\n throws ClassNotFoundException, IOException {\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n assert classLoader != null;\n String path = packageName.replace('.', '/');\n Enumeration<URL> resources = classLoader.getResources(path);\n List<File> dirs = new ArrayList<File>();\n while (resources.hasMoreElements()) {\n URL resource = resources.nextElement();\n dirs.add(new File(resource.getFile()));\n }\n ArrayList<Class> classes = new ArrayList<Class>();\n for (File directory : dirs) {\n classes.addAll(findClasses(directory, packageName));\n }\n return classes.toArray(new Class[classes.size()]);\n }",
"public static void delTree(File file) {\r\n File[] files = file.listFiles();\r\n if (files != null) { \r\n for (int i = 0; i < files.length; i++) {\r\n if (files[i].isDirectory()) {\r\n delTree(files[i]);\r\n }\r\n }\r\n }\r\n files = file.listFiles();\r\n if (files != null) {\r\n for (int i = 0; i < files.length; i++) {\r\n files[i].delete();\r\n }\r\n }\r\n }",
"private void cleanDirectory(File dir) {\n File[] files= dir.listFiles();\n if (files!=null && files.length>0) {\n for (File file: files) {\n delete(file);\n }\n }\n }",
"public void clearMainClass();",
"@SuppressWarnings(\"rawtypes\")\n public static List<Class> findClasses(File directory, String packageName) throws ClassNotFoundException\n {\n List<Class> classes = new ArrayList<Class>();\n if (!directory.exists())\n {\n return classes;\n }\n File[] files = directory.listFiles();\n for (File file : files)\n {\n if (file.isDirectory())\n {\n classes.addAll(findClasses(file, packageName + \".\" + file.getName()));\n }\n else if (file.getName().endsWith(\".class\"))\n {\n classes.add(Class.forName(packageName + '.' + file.getName().substring(0, file.getName().length() - 6)));\n }\n }\n return classes;\n }",
"@Override\r\n public void deleteFolder(long id) {\n this.folderRepository.deleteById(id);; \r\n }",
"public boolean folderCleaner(String folderPath, Boolean ifDeleteSubdirs, Boolean ifDeleteFiles, Boolean ifDeleteRoot, Boolean ifPrompt) throws IOException { \n folderPath = folderPath.replace(\"\\\\\", \"/\");\n if(folderPath.endsWith(\"/\")) { folderPath = folderPath.substring(0, folderPath.length() - 1); }\n File dir = new File(folderPath);\n String how = \"\", action = null;\n Boolean success = false;\n Boolean current = false;\n if (dir.exists() && dir.isDirectory()) { \n try{ \n success = true;\n String[] children = dir.list();\n if(children.length > 0) {\n action = \"CLEANED\";\n for (int i = 0; i < children.length; i++) {\n File child = new File(dir, children[i]);\n if(child.isDirectory()){ if(ifDeleteSubdirs) { FileUtils.forceDelete(child); } if(ifPrompt && ifDeleteSubdirs) {System.out.print(\"DIRECTORY \");} }\n else { if(ifDeleteFiles) { FileUtils.forceDelete(child); } if(ifPrompt && ifDeleteFiles) {System.out.print(\" FILE \");} }\n \n current = !child.exists();\n success = success && current;\n if(current) { how = \" DELETED: \\\"\"; } else { how = \"NOT DELETED: \\\"\"; }\n if(ifPrompt && current) System.out.print(how + child.getAbsolutePath() + \"\\n\");\n }\n }\n // THE DIRECTORY IS EMPTY - DELETE IT IF REQUIRED\n if (ifDeleteRoot) { FileUtils.forceDelete(dir); success = success && !dir.exists(); action = \"DELETED\"; }\n if(ifPrompt && (!action.equals(null))) {\n if (success) { \n System.out.println(\"\\n\" + \"FULLY \" + action + \" DIRECTORY: \\\"\" + folderPath.substring(folderPath.lastIndexOf(\"/\") + 1, folderPath.length()) + \"\\\"\\n\");\n } else {\n System.out.println(\"\\n\" + \"NOT FULLY \" + action + \" DIRECTORY: \\\"\" + folderPath.substring(folderPath.lastIndexOf(\"/\") + 1, folderPath.length()) + \"\\\"\\n\");\n }\n }\n } catch (Exception e) {} \n }\n return success;\n }",
"private void emptyTestDirectory() {\n // Delete the files in the /tmp/QVCSTestFiles directory.\n File tempDirectory = new File(TestHelper.buildTestDirectoryName(TEST_SUBDIRECTORY));\n File[] files = tempDirectory.listFiles();\n if (files != null) {\n for (File file : files) {\n if (file.isDirectory()) {\n File[] subFiles = file.listFiles();\n for (File subFile : subFiles) {\n if (subFile.isDirectory()) {\n File[] subSubFiles = subFile.listFiles();\n for (File subSubFile : subSubFiles) {\n subSubFile.delete();\n }\n }\n subFile.delete();\n }\n }\n file.delete();\n }\n }\n }",
"private List<String> getClassesInPackage(String packageUniqueName) {\n List<String> result = new ArrayList<String>();\n if (theModel.packages.containsKey(packageUniqueName)){\n \tTreeSet<String> children = theModel.packages.get(packageUniqueName).children;\n \tif ((children != null)){\n \t\tfor (String uniqueName : children){\n \t\t\tFamixClass foundClass = theModel.classes.get(uniqueName);\n \t\t\tif (foundClass != null){\n \t\t\t\tresult.add(uniqueName);\n \t\t\t\tif (foundClass.hasInnerClasses){\n \t\t\t\t\tresult.addAll(foundClass.children);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n }\n return result;\n }",
"private synchronized static void deleteParents(File file) {\n if (file == null) {\n return;\n }\n\n File tmp = file;\n\n for (int i = 0; i < directoryLevels; i++) {\n File directory = tmp.getParentFile();\n File[] files = directory.listFiles();\n\n // Only delete empty directories\n if (files.length != 0) {\n break;\n }\n\n directory.delete();\n tmp = directory;\n }\n }",
"@Override\n public List<Directory> get()\n {\n return getAllDirectories();\n }",
"private File[] getResourceFolderFiles(String folder) {\n\t\tClassLoader loader = Thread.currentThread().getContextClassLoader();\n\t\tURL url = loader.getResource(folder);\n\t\tString path = url.getPath();\n\n\t\treturn new File(path).listFiles();\n\n\t}",
"public ClasspathDirectory(File... path) {\r\n if (path == null) {\r\n throw new IllegalArgumentException(\"Classpath is null\");\r\n }\r\n\r\n Set<File> files = new LinkedHashSet<File>();\r\n\r\n for (File file : path) {\r\n if (file == null) {\r\n continue;\r\n }\r\n\r\n try {\r\n try {\r\n file = file.getCanonicalFile();\r\n } catch (Exception e) {\r\n file = file.getAbsoluteFile();\r\n }\r\n } catch (SecurityException e) {\r\n // Leave file alone for now.\r\n }\r\n\r\n try {\r\n if (file.canRead()) {\r\n ClasspathFile cf = new ClasspathFile(file);\r\n if (cf.isDirectory() || cf.isJar()) {\r\n files.add(cf);\r\n }\r\n }\r\n } catch (SecurityException e) {\r\n // Ignore unreadable file.\r\n }\r\n }\r\n\r\n mPath = files.toArray(new ClasspathFile[files.size()]);\r\n mPackageName = \"\";\r\n mParent = null;\r\n }",
"@Test\n public void testGetClassesInPackage() throws Exception\n {\n\n WarMachine machine = TestHelpers.createWarMachine(WarNames.SERVLET);\n\n Set<String> clist1 = machine.getClassesInPackage(\"com.example.servlet\", false);\n assertEquals(\"number of classes in WEB-INF, non-recursive\", 1, clist1.size());\n assertTrue(\"searching for file in WEB-INF, non-recursive\", clist1.contains(\"com.example.servlet.SomeServlet\"));\n\n Set<String> clist2 = machine.getClassesInPackage(\"net.sf.practicalxml.xpath\", false);\n assertEquals(\"number of classes in JAR, non-recursive\", 13, clist2.size());\n assertTrue(\"searching for classes in JAR, non-recursive\", clist2.contains(\"net.sf.practicalxml.xpath.XPathWrapper\"));\n\n Set<String> clist3 = machine.getClassesInPackage(\"net.sf.practicalxml.xpath\", true);\n assertEquals(\"number of classes in JAR, recursive\", 17, clist3.size());\n assertTrue(\"searching for classes in JAR, recursive\", clist3.contains(\"net.sf.practicalxml.xpath.XPathWrapper\"));\n assertTrue(\"searching for classes in JAR, recursive\", clist3.contains(\"net.sf.practicalxml.xpath.function.Constants\"));\n }",
"public String getClassName(String path);",
"public static File findClassDir(Class<?> clazz) {\n\t\ttry {\n\t\t\tString path = clazz.getProtectionDomain().getCodeSource().getLocation().getFile();\n\t\t\treturn new File(URLDecoder.decode(path, \"UTF-8\"));\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}",
"public void cleanDirs() {\n\t\tfor (File f : files) {\n\t\t\tFileUtils.deleteDir(f.toString());\n\t\t}\n\t}",
"private void emptyDirectory(File dir){\n\n for (File file : Objects.requireNonNull(dir.listFiles())){\n if (file.isDirectory())\n {\n emptyDirectory(file);\n }\n file.delete();\n }\n }",
"private static Class[] getClasses(String packageName)\n\t\t\tthrows ClassNotFoundException, IOException {\n\t\tClassLoader classLoader = Thread.currentThread()\n\t\t\t\t.getContextClassLoader();\n\t\tassert classLoader != null;\n\t\tString path = packageName.replace('.', '/');\n\t\tEnumeration<URL> resources = classLoader.getResources(path);\n\t\tList<File> dirs = new ArrayList<File>();\n\t\twhile (resources.hasMoreElements()) {\n\t\t\tURL resource = resources.nextElement();\n\t\t\tdirs.add(new File(resource.getFile()));\n\t\t}\n\t\tArrayList<Class> classes = new ArrayList<Class>();\n\t\tfor (File directory : dirs) {\n\t\t\tclasses.addAll(findClasses(directory, packageName));\n\t\t}\n\t\treturn classes.toArray(new Class[classes.size()]);\n\t}",
"@Override\n public void removeClass(final JavaClass clazz) {\n loadedClasses.remove(clazz.getClassName());\n }",
"public static void checkDirectory(File appmobicache) {\n \tFile[] files = appmobicache.listFiles();\n \tif(files.length==1 && files[0].isDirectory() && new File(files[0].getAbsolutePath(), \"index.html\").exists()) {\n \t\tFile nestedDirectory = files[0];\n \t\t//move the nested directory to temp\n \t\tFile parent = nestedDirectory.getParentFile();\n \t\tFile temp = new File(parent, \"../temp\");\n \t\tnestedDirectory.renameTo(temp);\n \t\tfiles = temp.listFiles();\n \t\tfor(int i=0;i<files.length;i++) {\n \t\t\tFile source = files[i];\n \t\t\tString name = source.getName();\n \t\t\tFile dest = new File(appmobicache, name);\n \t\t\tsource.renameTo(dest);\n \t\t}\n \t\ttemp.delete();\n \t}\n\t}",
"public ClassPath getClassPath();",
"IClassDefinition[] resolveAncestry(ICompilerProject project);",
"@SuppressWarnings(\"unchecked\")\n public void loadClasses(String pckgname) throws ClassNotFoundException {\n File directory = null;\n try {\n ClassLoader cld = Thread.currentThread().getContextClassLoader();\n String path = \"/\" + pckgname.replace(\".\", \"/\");\n URL resource = cld.getResource(path);\n if (resource == null) {\n throw new ClassNotFoundException(\"sem classes no package \" + path);\n }\n directory = new File(resource.getFile());\n }\n catch (NullPointerException x) {\n throw new ClassNotFoundException(pckgname + \" (\" + directory + \") package invalido\");\n }\n if (directory.exists()) {\n String[] files = directory.list();\n for (int i = 0; i < files.length; i++) {\n if (files[i].endsWith(\".class\") && !files[i].contains(\"$\")) {\n Class cl = Class.forName(pckgname + '.' + files[i].substring(0, files[i].length() - 6));\n Method methods[] = cl.getDeclaredMethods();\n boolean ok = false;\n for (Method m : methods) {\n if ((m.getReturnType().equals(List.class) || m.getReturnType().isArray()) && m.getParameterTypes().length == 0) {\n ok = true;\n break;\n }\n }\n if (ok) {\n classes.add(cl);\n }\n }\n }\n }\n else {\n throw new ClassNotFoundException(pckgname + \" package invalido\");\n }\n }",
"public Stream<Class<?>> getClasses(@NotNull String packageName) {\n return CheckedFunction2.of(ClassLoader::getResources).unchecked()\n .reversed()\n .apply(packageName.replace('.', '/'))\n .andThen(Enumeration::asIterator)\n .andThen(urlIterator -> spliteratorUnknownSize(urlIterator, ORDERED))\n .andThen(urlSpliterator -> stream(urlSpliterator, false))\n .compose(Thread::getContextClassLoader)\n .apply(Thread.currentThread())\n .map(URL::getFile)\n .map(File::new)\n .flatMap(directory -> findClasses(directory, packageName));\n }",
"private void browseApplicationsFolders(Path userDir) {\n try (DirectoryStream<Path> streamUserApp =\n Files.newDirectoryStream(userDir)) {\n for (Path userApp : streamUserApp) {\n if (checkDeletion(userApp)) {\n logger.log(Level.INFO, \"Deletion started for: \"\n + userApp.getFileName());\n FilesHelper.deleteFolder(userApp);\n }\n }\n } catch (Exception ex) {\n logger.log(Level.ERROR, \"Cannot get users list\", ex);\n }\n }",
"private void addFolder(){\n }",
"private void cleanTempFolder() {\n File tmpFolder = new File(getTmpPath());\n if (tmpFolder.isDirectory()) {\n String[] children = tmpFolder.list();\n for (int i = 0; i < children.length; i++) {\n if (children[i].startsWith(TMP_IMAGE_PREFIX)) {\n new File(tmpFolder, children[i]).delete();\n }\n }\n }\n }",
"private static void deleteDir(File file) {\n\t\tFile[] contents = file.listFiles();\n\t\tif (contents != null) {\n\t\t\tfor (File f : contents) {\n\t\t\t\tdeleteDir(f);\n\t\t\t}\n\t\t}\n\t\tfile.delete();\n\t}",
"private IFolder getSortedFolder() {\n \t\tString sortedFolder = (String) arguments.get(SORTED_FOLDER);\n \t\tif (sortedFolder == null)\n \t\t\tsortedFolder = DEFAULT_SORTED_FOLDER;\n \t\treturn getProject().getFolder(sortedFolder);\n \t}",
"public synchronized void cleanupSimple() {\n\t\tfinal int maxNumFiles = 1000;\n\t\tfinal int numFilesToDelete = 50;\n\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) {\n\t\t\tif (children.length > maxNumFiles) {\n\t\t\t\tfor (int i = children.length - 1, m = i - numFilesToDelete; i > m; i--) {\n\t\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected void cleanup() {\n // if the java runtime is holding onto any files in the build dir, we\n // won't be able to delete them, so we need to force a gc here\n System.gc();\n\n if (deleteFilesOnNextBuild) {\n // delete the entire directory and all contents\n // when we know something changed and all objects\n // need to be recompiled, or if the board does not\n // use setting build.dependency\n //Base.removeDir(tempBuildFolder);\n \n // note that we can't remove the builddir itself, otherwise\n // the next time we start up, internal runs using Runner won't\n // work because the build dir won't exist at startup, so the classloader\n // will ignore the fact that that dir is in the CLASSPATH in run.sh\n Base.removeDescendants(tempBuildFolder);\n \n deleteFilesOnNextBuild = false;\n } else {\n // delete only stale source files, from the previously\n // compiled sketch. This allows multiple windows to be\n // used. Keep everything else, which might be reusable\n if (tempBuildFolder.exists()) {\n String files[] = tempBuildFolder.list();\n for (String file : files) {\n if (file.endsWith(\".c\") || file.endsWith(\".cpp\") || file.endsWith(\".s\")) {\n File deleteMe = new File(tempBuildFolder, file);\n if (!deleteMe.delete()) {\n System.err.println(\"Could not delete \" + deleteMe);\n }\n }\n }\n }\n }\n \n // Create a fresh applet folder (needed before preproc is run below)\n //tempBuildFolder.mkdirs();\n }"
] | [
"0.57757705",
"0.57568043",
"0.5635869",
"0.560618",
"0.5492871",
"0.5480026",
"0.5459818",
"0.54287297",
"0.5427524",
"0.5381954",
"0.5325142",
"0.53243554",
"0.5306403",
"0.5301604",
"0.5287936",
"0.5284013",
"0.5281255",
"0.5260487",
"0.52507615",
"0.52486086",
"0.5216441",
"0.51958364",
"0.51865375",
"0.5179766",
"0.5168152",
"0.512618",
"0.5123147",
"0.51167506",
"0.5114957",
"0.5110308",
"0.5106013",
"0.50776124",
"0.50665706",
"0.5049082",
"0.5048815",
"0.5029492",
"0.5012946",
"0.4987878",
"0.4983386",
"0.49618837",
"0.4956984",
"0.49557662",
"0.49306536",
"0.4927407",
"0.49217722",
"0.49170086",
"0.49112356",
"0.49017134",
"0.48996037",
"0.48931447",
"0.48901543",
"0.48868144",
"0.4871739",
"0.48707822",
"0.48698965",
"0.48653433",
"0.4865201",
"0.48593056",
"0.4853205",
"0.48502076",
"0.48405913",
"0.48313105",
"0.48191425",
"0.47989076",
"0.4788823",
"0.4786573",
"0.47822836",
"0.47816172",
"0.47732812",
"0.4764983",
"0.47554898",
"0.47461277",
"0.4740911",
"0.4740264",
"0.47300267",
"0.4724671",
"0.47235155",
"0.4722291",
"0.47192895",
"0.47070342",
"0.4705266",
"0.470384",
"0.47012904",
"0.4696866",
"0.4696135",
"0.46791288",
"0.46746674",
"0.4667544",
"0.4661027",
"0.46544212",
"0.46508086",
"0.46401668",
"0.4628171",
"0.4626969",
"0.46269313",
"0.4625095",
"0.462027",
"0.461079",
"0.46085134",
"0.46069258"
] | 0.48903805 | 50 |
Removes all the files that terminate in .class | private void cleanFolder(File[] files) {
if (files != null) {
// Iterate the files
for (int i = 0; i < files.length; i++) {
File f = files[i];
// If the file is a directory, remove its contents recursively
if (f.isDirectory()) {
cleanFolder(f.listFiles());
}
// Remove the file if it is a class file
if (f.getName().endsWith(".class"))
f.delete();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void clearFiles() {\r\n File file = new File(\"test_files/upload\");\r\n File[] files = file.listFiles();\r\n for (File delFile : files) {\r\n delFile.delete();\r\n }\r\n file = new File(\"test_files/stress.jar\");\r\n file.delete();\r\n }",
"public void deleteMoreFile() {\n\t\tFile outfile = new File(outFileString);\n\t\tFile files[] = outfile.listFiles();\n\t\tfor (int i = 0; i < files.length; i++) {\n\t\t\tString name = files[i].getAbsolutePath();\n\t\t\tif ((!name.contains(\"SICG\")) && (!name.contains(\"AndroidManifest.xml\"))) {\n\t\t\t\tDirDelete delete = new DirDelete();\n\t\t\t\tdelete.deleteDir(files[i]);\n\t\t\t}\n\t\t}\n\t}",
"public void deleteGeneratedFiles();",
"public void clean(){\n preprocessorActionsPerFile.clear();\n }",
"private void clearClipsDirectory(){\n /* Citation : http://helpdesk.objects.com.au/java/how-to-delete-all-files-in-a-directory#:~:text=Use%20the%20listFiles()%20method,used%20to%20delete%20each%20file. */\n File directory = new File(Main.CREATED_CLIPS_DIRECTORY_PATH);\n File[] files = directory.listFiles();\n if(files != null){\n for(File file : files){\n if(!file.delete()) System.out.println(\"Failed to remove file \" + file.getName() + \" from \" + Main.CREATED_CLIPS_DIRECTORY_PATH);\n }\n }\n }",
"public void removeAuxClass(IJavaClassFile auxClassToRemove);",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tFile dir = new File(\"src/reports\");\n\t\t\t\tfor (File file : dir.listFiles())\n\t\t\t\tif (!file.isDirectory())\n\t\t\t\tfile.delete();\n\t\t\t\t}",
"void deleteChains() {\n\t\tif (!params.isDebug()) {\n\t\t\tfor (File deleteCandidate : toDelete) {\n\t\t\t\tdeleteCandidate.delete();\n\t\t\t\t\n\t\t\t\ttry (DirectoryStream<Path> directoryStream = Files.newDirectoryStream(deleteCandidate.toPath())) {\n\t\t\t\t\tfor (Path path : directoryStream) {\n\t\t\t\t\t\tif (!path.getFileName().toString().endsWith(\"_SCWRLed.pdb\")) {\n\t\t\t\t\t\t\tpath.toFile().delete();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void clearAuxClasss();",
"protected void tearDown()\n {\n super.tearDown();\n ClassLoader classLoader = getClass().getClassLoader();\n File folder = null;\n try\n {\n folder = new File(classLoader.getResource(\"levels\").toURI().getPath());\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n File[] listOfFiles = folder.listFiles();\n\n for (File f : listOfFiles)\n {\n if (!f.getPath().contains(\"level1.txt\") && !f.getPath().contains(\"level2.txt\") &&\n !f.getPath().contains(\"level3.txt\"))\n {\n try\n {\n Files.delete(f.toPath());\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }",
"protected void cleanup() {\n // if the java runtime is holding onto any files in the build dir, we\n // won't be able to delete them, so we need to force a gc here\n System.gc();\n\n if (deleteFilesOnNextBuild) {\n // delete the entire directory and all contents\n // when we know something changed and all objects\n // need to be recompiled, or if the board does not\n // use setting build.dependency\n //Base.removeDir(tempBuildFolder);\n \n // note that we can't remove the builddir itself, otherwise\n // the next time we start up, internal runs using Runner won't\n // work because the build dir won't exist at startup, so the classloader\n // will ignore the fact that that dir is in the CLASSPATH in run.sh\n Base.removeDescendants(tempBuildFolder);\n \n deleteFilesOnNextBuild = false;\n } else {\n // delete only stale source files, from the previously\n // compiled sketch. This allows multiple windows to be\n // used. Keep everything else, which might be reusable\n if (tempBuildFolder.exists()) {\n String files[] = tempBuildFolder.list();\n for (String file : files) {\n if (file.endsWith(\".c\") || file.endsWith(\".cpp\") || file.endsWith(\".s\")) {\n File deleteMe = new File(tempBuildFolder, file);\n if (!deleteMe.delete()) {\n System.err.println(\"Could not delete \" + deleteMe);\n }\n }\n }\n }\n }\n \n // Create a fresh applet folder (needed before preproc is run below)\n //tempBuildFolder.mkdirs();\n }",
"public void clearMainClass();",
"@AfterClass\n public static void cleanup() throws Exception {\n fs.delete(new Path(baseDir), true);\n }",
"@AfterClass\r\n\tpublic static void cleanupBoogiePrinterFiles() {\r\n\r\n\t\tfinal File root = getRootFolder(ROOT_FOLDER);\r\n\r\n\t\tCollection<File> files = TestUtil.getFiles(root, new String[] { \".bpl\" });\r\n\t\tfiles = TestUtil.filterFiles(files, TEMPORARY_BOOGIE_FILENAME_PATTERN);\r\n\r\n\t\tif (files.isEmpty()) {\r\n\t\t\tSystem.out.println(\r\n\t\t\t\t\tString.format(\"No cleanup of %s necessary, no files matching the pattern %s have been found\",\r\n\t\t\t\t\t\t\tROOT_FOLDER, TEMPORARY_BOOGIE_FILENAME_PATTERN));\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(String.format(\"Begin cleanup of %s\", ROOT_FOLDER));\r\n\t\tfor (final File f : files) {\r\n\t\t\ttry {\r\n\t\t\t\tif (f.delete()) {\r\n\t\t\t\t\tSystem.out.println(String.format(\"Sucessfully deleted %s\", f.getAbsolutePath()));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(String.format(\"Deleteing %s failed\", f.getAbsolutePath()));\r\n\t\t\t\t}\r\n\t\t\t} catch (final SecurityException e) {\r\n\t\t\t\tSystem.err.println(String.format(\"Exception while deleting file %s\", f));\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void clean()\r\n {\r\n // DO NOT TOUCH\r\n // System.out.println(unzipedFilePath);\r\n\r\n // only clean if there was a successful unzipping\r\n if (success)\r\n {\r\n // only clean if the file path to remove matches the zipped file.\r\n if (unzippedFilePath.equals(zippedFilePath.substring(0,\r\n zippedFilePath.length() - 4)))\r\n {\r\n // System.out.println(\"to be implmented\");\r\n for (File c : outputDir.listFiles())\r\n {\r\n // System.out.println(c.toString());\r\n if (!c.delete())\r\n {\r\n System.out.println(\"failed to delete\" + c.toString());\r\n }\r\n }\r\n outputDir.delete();\r\n outputDir = null;\r\n }\r\n }\r\n }",
"public void testCleanFile() {\n shouldCleanFile(\"jasmine1/jasmineTestBefore.js\");\n\n // Given a jasmine file with a fdescribe() and an fit().\n shouldCleanFile(\"jasmine2/jasmineTestBefore.js\");\n }",
"@AfterClass\n public static void cleanup() throws IOException {\n File directory = new File(TMP_DIR_BASE);\n File dirname = directory.getParentFile();\n final String basename = directory.getName() + \"[0-9]+\";\n File[] files = dirname.listFiles(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String name) {\n return name.matches(basename);\n }\n });\n for (File file : files) {\n if (file.delete() == false) {\n throw new IOException(\"Can't delete \" + file);\n }\n }\n }",
"@AfterClass\n\tpublic static void cleanup() {\n\t\ttestDir.delete();\n\t\tfile.delete();\n\t}",
"@Override\n public void clear() {\n loadedClasses.clear();\n }",
"public void removeFileInstance()\n {\n this.source = null;\n this.data = null;\n }",
"public void testTrashInClassDef() throws ParseException {\n SourceFile s = _parseString(\"fdsa public sad static class A {\\n\"+\n \"}\");\n assertEquals(\"Number of classes\",1,s.getClasses().length);\n assertEquals(\"the class name is A\", \"A\", s.getClasses()[0].getName().getText());\n assertEquals(\"the class has 2 modifiers\", 1, s.getClasses()[0].getMav().getModifiers().length);\n }",
"@Override\n public void clean(Path path) {\n }",
"private void removeOldFiles() {\n Set<File> existingFiles = new HashSet<File>();\n collectFiles(existingFiles);\n for (ResourceResponse r : cacheResponseProcessor.getResources()) {\n String remotePathId = r.pathId;\n String remotePath = localClasspathProcessor.getLocalClasspath().get(remotePathId);\n String localPath = localPathTranslation.get(remotePath);\n File localFile = new File(localPath);\n File file = new File(localFile, r.name);\n existingFiles.remove(file);\n }\n }",
"public synchronized static void cleanOldFiles() {\n\t\tGregorianCalendar yesterday = new GregorianCalendar();\n\t\tyesterday.roll(GregorianCalendar.HOUR_OF_DAY,-4);\n\t\tcleanOldFiles(yesterday.getTime());\n\t}",
"private static void removeFromWorking(String fileName) {\n for (File file : WORKING_DIR.listFiles()) {\n if (!file.isDirectory()) {\n if (file.getName().equals(fileName)) {\n file.delete();\n break;\n }\n }\n }\n }",
"private void deleteResidualFile()\n\t{\n\t\tFile[] trainingSetFileName = directoryHandler.getTrainingsetDir().listFiles();\n\t\ttry\n\t\t{\n\t\t\tfor (int i = 1; i < nu; i++) trainingSetFileName[i].delete();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void delete0() {\n File class0 = new File(\"/\");\n boolean ret0 = class0.delete();\n assert !ret0;\n System.out.println(ret0);\n }",
"private void removeOrphanClasspaths() {\n Set<String> allRecordedRemotePaths = new HashSet<String>(localPathTranslation.keySet());\n for (String remotePath : localClasspathProcessor.getLocalClasspath().values()) {\n allRecordedRemotePaths.remove(remotePath);\n }\n localPathTranslation.keySet().removeAll(allRecordedRemotePaths);\n\n // Now add new translations\n for (String remotePath : localClasspathProcessor.getLocalClasspath().values()) {\n if (!localPathTranslation.containsKey(remotePath)) {\n localPathTranslation.put(remotePath, UNDEFINED);\n }\n }\n }",
"@Test\n public void testInitialCleanup() throws Exception{\n File f = new File(path);\n assertTrue(f.exists());\n assertTrue(f.isDirectory());\n File[] files = f.listFiles();\n // Expect all files were deleted\n assertTrue(files.length == 0);\n }",
"public void removeAllFileType() {\r\n\t\tBase.removeAll(this.model, this.getResource(), FILETYPE);\r\n\t}",
"public void removeExpiredFiles() {\n \t\n \tsetCurrentTimeNow();\n\n File dir = new File(fsResource.getPath());\n File[] list = dir.listFiles(this);\n for (File file : list) {\n \tlogger.info(\"Auto expire file removed: {}\", file.getName());\n \tfile.delete();\n }\n }",
"public static void cleanFile(Scanner in) {\n }",
"public void clear()\n {\n normalImports.clear();\n wildcardImports.clear();\n }",
"private void cleanFile(IFile file) {\n \t\tlog(\" Cleaning build directory for \" + file.getName());\n \t\t\n \t\tString buildDir = getBuildDirectory(file);\n \t\t// Check the build directory and try to create it\n \t\tFile buildDirFile = new File(buildDir);\n \t\tif (buildDirFile.exists()) {\n \t\t\tFile[] files = buildDirFile.listFiles();\n \t\t\tfor (File f : files) {\n \t\t\t\ttry {\n \t\t\t\t\tf.delete();\n \t\t\t\t\tlog(\" - \" + f.getName());\n \t\t\t\t} catch (Exception _) {\n \t\t\t\t\tlog(\" > Failed: \" + f.getName());\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"public void cleanDirs() {\n\t\tfor (File f : files) {\n\t\t\tFileUtils.deleteDir(f.toString());\n\t\t}\n\t}",
"public void excludeAllFiles(){\n for(Map.Entry<String,File> entry : dataSourcesDirectories.entrySet()){\n \n //Get directory\n File dir = entry.getValue();\n \n //List files contained in this directory\n File[] listOfFiles = dir.listFiles();\n \n //Delete each file contained in this directory\n for(File file : listOfFiles)\n file.delete();\n \n //Delete directory\n dir.delete();\n \n }\n \n //For each directory created for each service\n for(Map.Entry<String,File> entry : servicesDirectories.entrySet()){\n \n //Get directory\n File dir = entry.getValue();\n \n //List files contained in this directory\n File[] listOfFiles = dir.listFiles();\n \n //Delete each file contained in this directory\n for(File file : listOfFiles)\n file.delete();\n \n //Delete directory\n dir.delete();\n \n }\n \n //Finally, delete sessionDirectory\n if(sessionDirectory != null)\n sessionDirectory.delete();\n \n }",
"void removeClass(final String name);",
"private void invalidate() {\n cud = null;\n fileNameRefs = null;\n jsniMethods = null;\n if (exposedCompiledClasses != null) {\n for (CompiledClass compiledClass : exposedCompiledClasses) {\n compiledClass.invalidate();\n }\n exposedCompiledClasses = null;\n }\n }",
"public void shutdown() {\n\t\tint i = 0;\n\t\twhile (i < openFiles.size()) {\n\t\t\tPhile phile = openFiles.get(i);\n\t\t\ttry {\n\t\t\t\tclose(phile);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t\ti++;\n\t\t}\n }",
"public void removeAllOriginalFilename() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ORIGINALFILENAME);\r\n\t}",
"static void clean(Configuration conf) throws IOException {\n if (!debug(conf)) {\n int iteration = getCurrentIteration(conf);\n for (int i = 0; i <= iteration; i++) {\n deleteIfExists(conf, OUTPUT_BASE + i);\n deleteIfExists(conf, OUTPUT_BASE + i + TEMP_SUFFIX);\n deleteIfExists(conf, SCHEMA_BASE + i);\n }\n deleteIfExists(conf, \"input\");\n }\n }",
"private void emptyTestDirectory() {\n // Delete the files in the /tmp/QVCSTestFiles directory.\n File tempDirectory = new File(TestHelper.buildTestDirectoryName(TEST_SUBDIRECTORY));\n File[] files = tempDirectory.listFiles();\n if (files != null) {\n for (File file : files) {\n if (file.isDirectory()) {\n File[] subFiles = file.listFiles();\n for (File subFile : subFiles) {\n if (subFile.isDirectory()) {\n File[] subSubFiles = subFile.listFiles();\n for (File subSubFile : subSubFiles) {\n subSubFile.delete();\n }\n }\n subFile.delete();\n }\n }\n file.delete();\n }\n }\n }",
"private void deleteCacheFiles() {\n\n\t\t// get the directory file\n\t\tFile cache = new File(Constants.CACHE_DIR_PATH);\n\n\t\t// check if we got the correct instance of that directory file.\n\t\tif (!cache.exists() || !cache.isDirectory())\n\t\t\treturn;\n\n\t\t// gets the list of files in the directory\n\t\tFile[] files = cache.listFiles();\n\t\t// deleting\n\n\t\tdeleteFiles(cache);\n\t\tfiles = null;\n\t\tcache = null;\n\n\t}",
"@AfterClass\n public static void teardown() {\n logger.info(\"teardown: remove the temporary directory\");\n\n // the assumption is that we only have one level of temporary files\n for (File file : directory.listFiles()) {\n file.delete();\n }\n directory.delete();\n }",
"private String trimClassPaths (String s) {\n int idx = 0;\n for (int i = s.length() - 1; i >= 0; i--) {\n if (s.charAt(i) == '.') {\n idx = i;\n break;\n }\n }\n String trimmed = s.substring(idx + 1);\n return trimmed;\n }",
"public void EliminarArchivos(){\n\t\ttry{\n\t\tFile Delete = new File(\"Cod.txt\");\n\t\tDelete.deleteOnExit();\n\t\tFile Borrar = new File(\"Maq.txt\");\n\t\tBorrar.deleteOnExit();\n\t\tFile eliminar = new File(\"WS.txt\");\n\t\teliminar.deleteOnExit();\n\t\tFile Bye = new File(\"RESPALDO.txt\");\n\t\tBye.deleteOnExit();\n\t\t\tBufferedReader numero= new BufferedReader(new FileReader(\"WS.txt\"));\n\t\t\tString valor = numero.readLine();\n\t\t\tint NumAreas= Integer.valueOf(valor);\n\t\t\tfor(int i=0; i< NumAreas;i++){\n\t\t\t\tvalor= numero.readLine();\n\t\t\t\tFile eliminas = new File(\"WS\"+valor+\".txt\");\n\t\t\t\teliminas.deleteOnExit();\n\t\t\t}\n\t\t\tnumero.close();\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(\"File not found\");\n\t\t}\n\t}",
"public void removeAuxClasss(Collection auxClasss);",
"private void cleanDirectory(File dir) {\n File[] files= dir.listFiles();\n if (files!=null && files.length>0) {\n for (File file: files) {\n delete(file);\n }\n }\n }",
"public synchronized void cleanupSimple() {\n\t\tfinal int maxNumFiles = 1000;\n\t\tfinal int numFilesToDelete = 50;\n\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) {\n\t\t\tif (children.length > maxNumFiles) {\n\t\t\t\tfor (int i = children.length - 1, m = i - numFilesToDelete; i > m; i--) {\n\t\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void cleanTempImages(String[] images) {\n for (int i = 1; i < images.length; i++) {\n File f = new File(images[i]);\n f.deleteOnExit();\n }\n }",
"private void clean(Path path) throws IOException {\n if (Files.exists(path)) {\n Files.walkFileTree(path, new SimpleFileVisitor<>() {\n public FileVisitResult visitFile(Path path, BasicFileAttributes attributes) throws IOException {\n Files.delete(path);\n return FileVisitResult.CONTINUE;\n }\n\n public FileVisitResult postVisitDirectory(Path path, IOException exception) throws IOException {\n Files.delete(path);\n return FileVisitResult.CONTINUE;\n }\n });\n }\n }",
"protected void tearDown() {\r\n (new File(dest, \"RenameFieldTest.java\")).delete();\r\n (new File(dest, \"UsesFieldTest.java\")).delete();\r\n (new File(dest, \"InheritFieldTest.java\")).delete();\r\n (new File(root + \"\\\\XDateChooser.java\")).delete();\r\n }",
"protected static String createClassPathExcludingTestClasses()\n {\n String sSep;\n if (\"\\\\\".endsWith(File.separator))\n {\n sSep = \"\\\\\\\\\";\n }\n else\n {\n sSep = File.separator;\n }\n String sPattern = String.format(\".*%sio%starget%s.*\", sSep, sSep, sSep);\n return ClassPath.automatic().excluding(sPattern).toString();\n }",
"boolean removeClass(String name);",
"public final boolean deleteClassfile(final String classname) {\n return deleteResource(getResourceName(classname));\n }",
"public synchronized void cleanup() {\n\t\tString[] children = mStorageDirectory.list();\n\t\tif (children != null) { // children will be null if the directory does\n\t\t\t\t\t\t\t\t// not exist.\n\t\t\tfor (int i = 0; i < children.length; i++) { // remove too small file\n\t\t\t\tFile child = new File(mStorageDirectory, children[i]);\n\t\t\t\tif (!child.equals(new File(mStorageDirectory, NOMEDIA))\n\t\t\t\t\t\t&& child.length() <= MIN_FILE_SIZE_IN_BYTES) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tchild.delete();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"void clean();",
"void clean();",
"void clean();",
"<T> List<String> generateDeleteAllByClassScript(GremlinSource<T> source);",
"public static void Deletefiles() throws Throwable\r\n\t{\r\n\t\tString filePath, timestamp;\r\n\t\tDate date = new Date();\r\n\t\ttimestamp = new SimpleDateFormat(\"MMMdd\").format(date);\r\n\t filePath = \"./target/screenshots/\" + timestamp;\r\n\t\tFile file = new File(filePath);\r\n\t\t\r\n\t\tString[] evdFiles;\r\n\t\tif (file.isDirectory())\r\n\t\t{\r\n\t\t\tevdFiles = file.list();\r\n\t\t\tSystem.out.println(\"number of files ::: \"+evdFiles.length);\r\n\t\t\tfor (int i = 0; i < evdFiles.length; i++)\r\n\t\t\t{\r\n\t\t\t\tFile evdFile = new File(file, evdFiles[i]);\r\n\t\t\t\tSystem.out.println(\"File to be deleted ::: \"+evdFile);\r\n\t\t\t\tif (!evdFile.isDirectory())\r\n\t\t\t\t{\r\n\t\t\t\t\tevdFile.delete();\r\n\t\t\t\t\tSystem.out.println(\"File deleted\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\ti = 0;\r\n\t}",
"public static void clearAll(Context ctx){\n \t\t// delete files\n \t\tfor( File f : getCachedFiles(ctx) ){\n \t\t\tf.delete();\n \t\t}\n \t}",
"private void cleanup() {\n File tmpdir = new File(System.getProperty(\"java.io.tmpdir\"));\n File[] backupDirs = tmpdir.listFiles(file -> file.getName().contains(BACKUP_TEMP_DIR_PREFIX));\n if (backupDirs != null) {\n for (File file : backupDirs) {\n try {\n FileUtils.deleteDirectory(file);\n log.info(\"removed temporary backup directory {}\", file.getAbsolutePath());\n } catch (IOException e) {\n log.error(\"failed to delete the temporary backup directory {}\", file.getAbsolutePath());\n }\n }\n }\n }",
"private void m50956b() {\n if (!C8626b.m50749b() && !C8626b.m50748a()) {\n try {\n File file = new File(this.f36887b.getExternalFilesDir(null) + \"/.logcache\");\n if (file.exists() && file.isDirectory()) {\n for (File file2 : file.listFiles()) {\n file2.delete();\n }\n }\n } catch (NullPointerException unused) {\n }\n }\n }",
"public void done(Class<?> cls) {\n inProcess.remove(cls);\n }",
"public void removePreviouslySavedFilesFromSDCard() {\n\t\tFile file = ctxt.getExternalFilesDir(Tattle_Config_Constants.SD_FOLDER_NAME + File.separator);\n\t\tif (file.exists()) {\n\t\t\tFile[] files = file.listFiles();\n\t\t\tfor (File f : files) {\n\t\t\t\tf.delete();\n\t\t\t}\n\t\t}\n\t\tfile.delete();\n\t}",
"public void removeAllPackages() {\r\n myPackages.clear();\r\n }",
"public void remFile(){\n ((MvwDefinitionDMO) core).remFile();\n }",
"private void deleteDhiFiles(File f) {\n\t\tString hdfName = f.getName().substring(0, f.getName().lastIndexOf(\".\"));\n\t\tFile dirFile = new File(f.getParent());\n\t\tfor (File file : dirFile.listFiles()) {\n\t\t\tString fileName = file.getName();\n\t\t\tif (fileName.contains(hdfName)) {\n\t\t\t\tSystem.out.println(\"Delete: \" + fileName);\n\t\t\t\tfile.delete();\n\t\t\t}\n\t\t}\n\t}",
"public void removeAllUniqueFileIdentifier() {\r\n\t\tBase.removeAll(this.model, this.getResource(), UNIQUEFILEIDENTIFIER);\r\n\t}",
"public synchronized static void cleanOldFiles(Date old){\n\t\tfor(File item:context.getCacheDir().listFiles()){\n\t\t\tDate last = new Date(item.lastModified());\n\t\t\tif(last.before(old))\n\t\t\t\titem.delete();\n\t\t}\n\t}",
"public void unsetJavaClass()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(JAVACLASS$24);\r\n }\r\n }",
"@Override\n public ClassFileServices getClassFileServices() {\n return null;\n }",
"private void expungeAllWatchListsFiles()\r\n {\r\n debug(\"expungeAllWatchListsFiles() - Delete ALL WATCHLIST Files\");\r\n\r\n java.io.File fileList = new java.io.File(\"./\");\r\n String rootName = getString(\"WatchListTableModule.edit.watch_list_basic_name\");\r\n String[] list = fileList.list(new MyFilter(rootName));\r\n for (int i = 0; i < list.length; i++)\r\n {\r\n StockMarketUtils.expungeListsFile(list[i]);\r\n }\r\n\r\n debug(\"expungeAllWatchListsFiles() - Delete ALL WATCHLIST Files - Complete\");\r\n }",
"public static void cleanResources() {\n\t\tscanner.close();\n\t\treturn;\n\t}",
"public void dispose() {\n Collection<File> values = compareFiles.values();\n for (File file : values) {\n file.delete();\n }\n\n compareFiles.clear();\n }",
"public void clean();",
"public void clean();",
"public void clean();",
"public void clean();",
"public boolean clean() {\n\t\tboolean result = false;\n\n\t\ttry{\n\t\t\tif (this.exists()) {\n\t\t\t\tif (this.listFiles() != null) {\n\t\t\t\t\tfor (java.io.File file : this.listFiles()) {\n\t\t\t\t\t\t((File) file).delete();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresult = true;\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn result;\n\t}",
"public void cleanup(Set<String> currentImages) {\n if (currentImages.size() == 0) return;\n\n Set<String> currentFiles = new HashSet<String>(currentImages.size());\n for (String url : currentImages) currentFiles.add(getFileName(url));\n File[] files = cacheDir.listFiles();\n if (files == null) return;\n for (File f : files) {\n long timestamp = f.lastModified();\n if ((System.currentTimeMillis() > (timestamp + MAX_FILE_AGE_MILLIS)) ||\n (!currentFiles.contains(f.getName()))) {\n f.delete();\n }\n }\n }",
"@Override\n public void clean() {\n\n }",
"@AfterClass\n public void cleanUp() {\n }",
"public void deletePendingReports() {\r\n String[] filesList = getCrashReportFilesList();\r\n if (filesList != null) {\r\n for (String fileName : filesList) {\r\n new File(mContext.getFilesDir(), fileName).delete();\r\n }\r\n }\r\n }",
"@Override\n public void removeClass(final JavaClass clazz) {\n loadedClasses.remove(clazz.getClassName());\n }",
"private void deleteFile() {\n\t\tFile dir = getFilesDir();\n\t\tFile file = new File(dir, FILENAME);\n\t\tfile.delete();\n\t}",
"@Override\r\n\tpublic void remFile(String path) {\n\t\t\r\n\t}",
"public static void createCleanFile(Scanner in) {\n }",
"private static void cleanupLogcatCache(File cacheDir) {\n FLog.d(TAG, \"Cleaning up log files from cache dir\");\n if (cacheDir == null) {\n FLog.w(TAG, \"External storage not available. Can't cleanup cache\");\n return;\n }\n\n final File[] logFiles = cacheDir.listFiles(new FilenameFilter() {\n @Override\n public boolean accept(File dir, String filename) {\n return filename.toLowerCase().endsWith(\".log\");\n }\n });\n\n if (logFiles == null) {\n FLog.d(TAG, \"No log files to prune from cache\");\n return;\n }\n\n int count = 0;\n for (File logFile : logFiles) {\n count += logFile.delete() ? 1 : 0;\n }\n\n FLog.d(TAG, \"Pruned \" + count + \" log file(s) from cache\");\n }",
"public void delete() {\n\t\tclose();\n\t\t// delete the files of the container\n\t\tfor (int i=0; i<BlockFileContainer.getNumberOfFiles(); i++)\n\t\t\tfso.deleteFile(prefix+EXTENSIONS[i]);\n\t}",
"@Override\n\tprotected void finalize() throws Throwable\n\t{\n\t\tsuper.finalize(); // currently empty but there for safer refactoring\n\n\t\tFile outputFile = dfos.getFile();\n\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}",
"private void deleteTempFiles() {\n\t\tfor (int i = 0; i < prevPrevTotalBuckets; i++) {\n\t\t\ttry {\n\t\t\t\tString filename = DatabaseCatalog.getInstance().getTempDirectory() + \"/\" + instanceHashcode + \"_\"\n\t\t\t\t\t\t+ (passNumber - 1) + \"_\" + i;\n\t\t\t\tFile file = new File(filename);\n\t\t\t\tfile.delete();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"protected void clearCaches() {\n DescriptorFactory.clearInstance();\n ObjectTypeFactory.clearInstance();\n TypeQualifierApplications.clearInstance();\n TypeQualifierAnnotation.clearInstance();\n TypeQualifierValue.clearInstance();\n // Make sure the codebases on the classpath are closed\n AnalysisContext.removeCurrentAnalysisContext();\n Global.removeAnalysisCacheForCurrentThread();\n MethodInfo.clearCaches();\n if (classPath != null) {\n classPath.close();\n }\n }",
"public void clean();",
"private void cleanReporter(){\n File file = new File(\"test-report.html\");\n file.delete();\n\n }",
"void deleteCoverDirectory() {\n\n try {\n\n Log.i(\"Deleting Covr Directory\", cover_directory.toString());\n FileUtils.deleteDirectory(cover_directory);\n } catch (IOException e) {\n\n }\n\n }",
"private void prune(java.io.File localDir, List<File> driveFiles) {\n java.io.File[] localArray = localDir.listFiles();\n for (java.io.File f : localArray) {\n boolean found = false;\n String lname = f.getName();\n for (File gf : driveFiles) {\n String gname = gf.getTitle();\n if (lname.equals(gname))\n found = true;\n }\n if (!found) {\n Log.e(\"DELETE PRUNE\", f.getParentFile().getName() + \"/\" + f.getName());\n deleteFile(f);\n }\n }\n }",
"private static void doUnloading() {\n stopJit();\n // Do multiple GCs to prevent rare flakiness if some other thread is keeping the\n // classloader live.\n for (int i = 0; i < 5; ++i) {\n Runtime.getRuntime().gc();\n }\n startJit();\n }",
"protected static void deleteTrash() {\n\t\tArrays.stream(new File(\".\").listFiles())\n\t\t\t.filter(f -> f.getName().startsWith(\"_tmp.\"))\n\t\t\t.forEach(File::delete);\n\t}"
] | [
"0.66725254",
"0.65390986",
"0.6385411",
"0.63556814",
"0.623226",
"0.62136734",
"0.6175278",
"0.61626655",
"0.6158646",
"0.6143703",
"0.6141315",
"0.61209863",
"0.6114738",
"0.6106242",
"0.59802645",
"0.5954164",
"0.5938345",
"0.590639",
"0.5905594",
"0.5900617",
"0.58443946",
"0.5842684",
"0.5817852",
"0.5810857",
"0.579082",
"0.5784627",
"0.5777536",
"0.5771758",
"0.574242",
"0.5717312",
"0.56963044",
"0.56915694",
"0.56818014",
"0.5675679",
"0.5675552",
"0.5662659",
"0.56369686",
"0.5629291",
"0.5611791",
"0.5605979",
"0.5605139",
"0.56021523",
"0.5594202",
"0.5579281",
"0.55658644",
"0.55551803",
"0.55496985",
"0.553417",
"0.5525199",
"0.55235803",
"0.5510023",
"0.55082965",
"0.5494662",
"0.54927105",
"0.548641",
"0.548305",
"0.54824376",
"0.54824376",
"0.54824376",
"0.547883",
"0.54764056",
"0.546113",
"0.54594976",
"0.545847",
"0.545818",
"0.54549783",
"0.5450107",
"0.5446125",
"0.5440064",
"0.5413743",
"0.53991044",
"0.539437",
"0.53883624",
"0.53807366",
"0.53804123",
"0.5377397",
"0.5365801",
"0.5365801",
"0.5365801",
"0.5365801",
"0.53559035",
"0.534798",
"0.53435355",
"0.53361183",
"0.5333725",
"0.5332811",
"0.53311914",
"0.5324223",
"0.53225565",
"0.53141993",
"0.5304603",
"0.52754414",
"0.5270881",
"0.52696663",
"0.5267177",
"0.5265252",
"0.5264881",
"0.5257163",
"0.5255604",
"0.5253693"
] | 0.65876967 | 1 |
todo retrieve from KMS | @Override
public PropertySource<?> locate(Environment environment) {
return new MapPropertySource("secretKey", Collections.<String, Object>singletonMap("auth.secret-key", "Sup3rS3cr37"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public java.lang.String getKSDM() {\r\n return localKSDM;\r\n }",
"public java.lang.String getKs() {\r\n return localKs;\r\n }",
"@Override\r\n\tpublic Object CXT_getByKey(String jsk)\r\n\t{\n\t\treturn null;\r\n\t}",
"public ECP getPublicKGCKey(){return pkS;}",
"public String getNomorSK2();",
"public java.lang.String getKsdmE() {\r\n return localKsdmE;\r\n }",
"@Override\r\n\t\t\tpublic Object getKey() {\n\t\t\t\treturn service;\r\n\t\t\t}",
"public void getK_Gelisir(){\n K_Gelistir();\r\n }",
"public String[] get(String k) throws RemoteException, Error;",
"public Object run(){\n\t\t\t List nameList = keyRing.getX500NameFromNameMapping(name);\n\t\t\t //List nameList = keyRing.findDNFromNS(name);\n\t\t\t if (log.isDebugEnabled()) {\n\t\t\t log.debug(\"List of names for \" + name + \": \" + nameList);\n\t\t\t }\n\t\t\t List keyList = new ArrayList();\n\t\t\t for (int i = 0; i < nameList.size(); i++) {\n\t\t\t X500Name dname = (X500Name)nameList.get(i);\n\t\t\t List pkCerts = keyRing.findPrivateKey(dname);\n\t\t\t if (pkCerts == null) {\n\t\t\t\t return keyList;\n\t\t\t }\n keyList.addAll(pkCerts);\n\t\t\t }\n\t\t\t return keyList;\n\t\t }",
"String getDescriptionKey();",
"public java.lang.String getKey(){\n return localKey;\n }",
"String getNameKeySpace();",
"public abstract Object getMetadata(String key);",
"public String getKetuInfo() {\n\t\treturn null;\r\n\t}",
"public java.lang.String getDataFromLMS();",
"public String getKm() {\n return km;\n }",
"java.lang.String getClientKey();",
"public KVCommInterface getStore();",
"com.hps.july.persistence.WorkerKey getTechStuffKey() throws java.rmi.RemoteException;",
"public java.lang.String getKP() {\n return KP;\n }",
"Map<String,Object> getMasterData(String language)throws EOTException;",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"Map getSPEXDataMap();",
"public String getKey() { return \"thaumcraft.CLOUD\"; }",
"String getSettingByKey(HawkularUser user, String key);",
"private Kontakt ZeigeEinenKontakt(Kontakt k) throws Exception {\n\t\tKontaktService service = (KontaktService) Naming.lookup (\"rmi://localhost:1099/KontaktService\");\r\n\t\t\r\n\t\tk = service.getKontakt(k);\r\n\r\n\t\tSystem.out.println(\"ID: \" + k.getcId());\r\n\t\tSystem.out.println(\"Nachname: \" + k.getcNName());\r\n\t\tSystem.out.println(\"Vorname: \" + k.getcVName());\r\n\t\t// Restliche Felder ausgeben\t\r\n\t\treturn k;\r\n\t\t\r\n\t}",
"public double getControl(String k) {\n\t\t\n\t\tdouble value=0;\n\t\t\n\t\tif (quantData.containsKey(k)) {\n\t\t\tvalue = quantData.get(k);\n\t\t} else {\n\t\t\tSystem.out.println(\"Key not found\");\n\t\t\tvalue = 0.0;\n\t\t}\n\t\t\n\t\treturn value;\n\t\t\t\n\t}",
"private String getVal(String ky) {\n return bookDB.get(ky).getTitle();\n }",
"public String getKmsAccessKey() {return this.databaseConfig.getProperty(\"kmsAccessKey\");}",
"public String getUserPart(String key);",
"public byte [] getKos()\n {\n return kosBytes;\n }",
"int getProductKey();",
"Object getAuthInfoKey();",
"String getMyNoteTextByKey(Key verse);",
"KeyMetadata metadata();",
"public static void getWorkspace1 () {\n //Create retriever\n retriever = new ItemRetriever();\n //Set class and item information\n retriever.setItemClassName(\"KB-WORKSPACE\");\n retriever.setItemName(\"WKSP-1\"); \n retriever.setHost(\"localhost\");\n retriever.setPort(\"1112\");\n try {\n kbWorkspace = (KbWorkspace)retriever.retrieveItem();\n System.out.println(kbWorkspace);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n public TestingCenterInfo retrieveInfo() {\n return testingCenterInfo.deserialize();\n }",
"Object getMetadata(String key);",
"String getRetrieveKeysQuery();",
"public String getMcKey ()\n\t{\n\t\tString mcKey = getContent().substring(OFF_ID27_MCKEY, OFF_ID27_MCKEY + LEN_ID27_MCKEY) ;\n\t\treturn (mcKey);\n\t}",
"public Object getKey() { return name; }",
"void getPersonQrData(String storeCode);",
"DataStoreInfo getUserDataStoreInfo();",
"public org.pentaho.pms.cwm.pentaho.meta.instance.CwmObject getObject();",
"private IKBox retrieveGenericKBox(String kboxURI) throws ThinklabException {\r\n\t\r\n\t\tIKBox ret = null;\r\n\t\tURL sourceURL = null;\r\n\t\tInputStream input = null;\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\t\t/* see if we have a metadata document in the corresponding file: url */\r\n\t\t\tsourceURL = new URL(\"file\" + kboxURI.substring(4));\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tinput = sourceURL.openStream();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tinput = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (input == null) {\r\n\r\n\t\t\t\t/* try http: */\r\n\t\t\t\tsourceURL = new URL(\"http\" + kboxURI.substring(4));\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tinput = sourceURL.openStream();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tinput = null;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t}\r\n\t\t\r\n\t\tif (input == null) {\r\n\t\t\tthrow new ThinklabUndefinedKBoxException(\"url \" + kboxURI + \" does not point to a valid metadata document\");\r\n\t\t}\r\n\r\n\t\t\r\n\t\t/* we have a metadata document; extract protocol, url, and all parameters */\r\n\t\tProperties properties = new Properties();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tproperties.load(input);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new ThinklabIOException(e);\r\n\t\t}\r\n\t\t\r\n\t\tString protocol = properties.getProperty(IKBox.KBOX_PROTOCOL_PROPERTY);\r\n\t\tString dataUri = properties.getProperty(IKBox.KBOX_URI_PROPERTY);\r\n\t\tString ontologies = properties.getProperty(IKBox.KBOX_ONTOLOGIES_PROPERTY);\r\n\t\tString wrapperCls = properties.getProperty(IKBox.KBOX_WRAPPER_PROPERTY);\r\n\t\t\r\n\t\tThinklab.get().logger().info(\"opening kbox \" + kboxURI + \" with data uri \" + dataUri);\r\n\t\t\r\n\t\tif (protocol == null || protocol.equals(\"\"))\r\n\t\t\tthrow new ThinklabUndefinedKBoxException(\"kbox metadata for \" + kboxURI + \" don't specify a protocol\");\r\n\t\t\r\n\t\t/* handle \"internal\" protocol for OWL kboxes separately */\r\n\t\tif (protocol.equals(\"owl\")) {\r\n\t\t\treturn new OntologyKBox(dataUri);\r\n\t\t}\r\n\t\t\r\n\t\t/* load plugin for protocol; create kbox */\r\n\t\tKBoxHandler plu = kboxPlugins.get(protocol);\r\n\t\tif (plu == null)\r\n\t\t\tthrow new ThinklabUndefinedKBoxException(\"kbox protocol \" \r\n\t\t\t\t\t+ protocol + \" referenced in \" +\r\n\t\t\t\t\tkboxURI + \" is undefined\");\r\n\t\t\r\n\t\t/* \r\n\t\t * see if kbox requires ontologies that are not loaded and import them as necessary. \r\n\t\t * FIXME these should probably be considered temporary and loaded in the current session, not\r\n\t\t * imported. \r\n\t\t */\r\n\t\tif (ontologies != null && !ontologies.trim().equals(\"\")) {\r\n\t\t\tString[] onts = ontologies.split(\",\");\r\n\t\t\tfor (String ourl : onts) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tKnowledgeManager.get().getKnowledgeRepository().refreshOntology(new URL(ourl), null, false);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\tthrow new ThinklabIOException(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tret = plu.createKBox(kboxURI, protocol, dataUri, properties);\r\n\t\t\r\n\t\tif (ret != null && wrapperCls != null) {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tClass<?> cls = Class.forName(wrapperCls);\r\n\t\t\t\tKBoxWrapper wrapper = (KBoxWrapper) cls.newInstance();\r\n\t\t\t\tif (wrapper != null) {\r\n\t\t\t\t\twrapper.initialize(ret);\r\n\t\t\t\t\tret = wrapper;\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tthrow new ThinklabIOException(\"kbox wrapper error: \" + e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn ret;\r\n\t}",
"private void get(String key){\n KeyValueObj obj = this.handler.getObj(key);\n if (obj == null){\n System.out.println(\"[User] value with key \" + key + \" was not found\");\n return;\n }\n System.out.println(obj.toString());\n }",
"Object getKey();",
"public Object get(String key){ \r\n\t\treturn this.context.getValue(key);\r\n\t}",
"DataStore getDataStore ();",
"@Override\n public Object getMetadata(String key) {\n return null;\n }",
"public K get()\n {\n\treturn current.data(); \n }",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"abstract public String getKey();",
"public static void getWorkspace2 () {\n //Create a connection info object\n TwConnectionInfo connectionInfo = new TwConnectionInfo (\"localhost\", \"1112\"); \t\n //Create retriever\n retriever = new ItemRetriever(connectionInfo, \"KB-WORKSPACE\", \"WKSP-2\");\n try {\n //Retrieve item and cast result\n kbWorkspace = (KbWorkspace)retriever.retrieveItem();\n System.out.println(kbWorkspace);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public String getKmsSecretKey() {return this.databaseConfig.getProperty(\"kmsSecretKey\");}",
"private String getKey() {\r\n if (key == null) {\r\n key = getURI();\r\n }\r\n return key;\r\n }",
"@Override\r\n\t\t\t\t\t\tprotected Object handleGetObject(String key) {\n\t\t\t\t\t\t\tHashMap<String, Object>map = new HashMap<>();\r\n\t\t\t\t\t\t\tmap.put(\"title\",\"클라이언트\");\r\n\t\t\t\t\t\t\tmap.put(\"socket\",socket);\r\n\t\t\t\t\t\t\treturn map.get(key);\r\n\t\t\t\t\t\t}",
"Object getCurrentData();",
"protected abstract String getUseProjectKey();",
"protected abstract Object _get(String key);",
"public String getKcUnit() {\n return kcUnit;\n }",
"public abstract String getRefKey();",
"public K data()\n {\n\treturn this.data;\n }",
"public String getXkwjmc() {\n\t\treturn xkwjmc;\n\t}",
"com.soa.SolicitarCreditoDocument.SolicitarCredito getSolicitarCredito();",
"public java.lang.Integer getStoredem() throws java.rmi.RemoteException;",
"@Override\n\tpublic String getKey() {\n\t\t LiuLiang_Key = Util.getMaiYuanConfig(\"LiuLiang_Key\");\n\t\treturn LiuLiang_Key;\n\t}",
"public Klinik getKlinik() {\r\n return klinik;\r\n }",
"private IKBox retrieveOntologyKBox(String kboxURI) throws ThinklabException {\r\n\r\n\t\tString kURI = \r\n\t\t\tMiscUtilities.changeProtocol(kboxURI, \"owl\");\r\n\r\n\t\tIKBox ret = kBoxes.get(kURI); \r\n\t\t\r\n\t\tif (ret == null) {\r\n\r\n\t\t\tret = new OntologyKBox(kboxURI);\r\n\t\t\tkBoxes.put(kURI, ret);\r\n\t\t}\r\n\t\t\r\n\t\treturn ret;\r\n\t\r\n\t}",
"private String getKey()\r\n\t\t{\r\n\t\t\tif (key != null)\r\n\t\t\t{\r\n\t\t\t\treturn key.toString();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\treturn \"The key has not been found\";\r\n\t\t\t}\r\n\t\t}",
"public String getKey() {\n return this.key;\n }",
"public final /* synthetic */ Object retrieve(String str) {\n AppMethodBeat.m2504i(89541);\n Long l = GservicesValue.zzmu.getLong(this.mKey, (Long) this.mDefaultValue);\n AppMethodBeat.m2505o(89541);\n return l;\n }",
"private void retrieve() {\r\n\t\ttry {\r\n\t\t\tif (store == null) {\r\n\t\t\t\tstore = Store.retrieve();\r\n\t\t\t\tif (store != null) {\r\n\t\t\t\t\tSystem.out.println(\" The store has been successfully retrieved from the file StoreData. \\n\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tstore = Store.instance();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception cnfe) {\r\n\t\t\tcnfe.printStackTrace();\r\n\t\t}\r\n\t}",
"public SCDataSpec get(String key) throws IOException;",
"public String getKakarinm() {\r\n return kakarinm;\r\n }",
"com.hps.july.persistence.OrganizationKey getOrganizationKey() throws java.rmi.RemoteException;",
"ISObject get(String key);",
"com.soa.SolicitarServicioDocument.SolicitarServicio getSolicitarServicio();",
"Kingdom getKingdom(KingdomUser user);",
"@Override\n\tpublic byte[] get(String key, String cat ) throws RemoteException {\n\t\treturn null;\n\t}",
"double getActualKm();",
"public Object get(String chave);",
"String getLongNameKey();",
"public p getConfig() {\n return c.K();\n }",
"private byte[] getSystemKey() throws InternalSkiException {\n return sysKey(SYSTEM_KEY);\n }"
] | [
"0.581497",
"0.5782993",
"0.56662554",
"0.56398016",
"0.5533022",
"0.55212027",
"0.55011743",
"0.5486217",
"0.5471155",
"0.54607654",
"0.5438156",
"0.5432388",
"0.54308426",
"0.54307014",
"0.5420762",
"0.5414246",
"0.5389399",
"0.5384962",
"0.5377721",
"0.5371755",
"0.5361764",
"0.53573465",
"0.53568685",
"0.53568685",
"0.53568685",
"0.53568685",
"0.534362",
"0.5334175",
"0.5329808",
"0.53170943",
"0.53058344",
"0.5292513",
"0.5282695",
"0.52785003",
"0.5270189",
"0.5224851",
"0.52066404",
"0.52020246",
"0.5183491",
"0.51800454",
"0.5179986",
"0.51784205",
"0.51694673",
"0.51614505",
"0.51561505",
"0.5138051",
"0.51338804",
"0.5133432",
"0.5128994",
"0.5122608",
"0.5115255",
"0.5113945",
"0.5108777",
"0.51058954",
"0.5105333",
"0.51044434",
"0.51044434",
"0.51044434",
"0.51044434",
"0.51044434",
"0.51044434",
"0.51044434",
"0.51044434",
"0.51044434",
"0.51044434",
"0.51044434",
"0.51044434",
"0.51044434",
"0.51043266",
"0.51033205",
"0.5102822",
"0.50957924",
"0.5068458",
"0.5068104",
"0.5063064",
"0.5062541",
"0.50579554",
"0.5057593",
"0.5052952",
"0.5046011",
"0.5040477",
"0.50345516",
"0.50338155",
"0.5029759",
"0.502882",
"0.5023393",
"0.5010564",
"0.50029826",
"0.4998241",
"0.49877813",
"0.49820068",
"0.49800602",
"0.49792936",
"0.49758542",
"0.49743173",
"0.496731",
"0.49668258",
"0.4965882",
"0.49586785",
"0.49571216",
"0.49561673"
] | 0.0 | -1 |
this method is called when all data were received from sever and saved in telemetryModel | @SuppressLint("SetTextI18n")
@Override
protected void onGetDataSuccess() {
TextView temperatureTextView = root.findViewById(R.id.temperature_now);
temperatureTextView.setText(telemetryModel.Temperature.toString() + "°C");
TextView pressureValueTextView = root.findViewById(R.id.pressure_value_now);
pressureValueTextView.setText(telemetryModel.Pressure.toString() + " mm Hg");
TextView moistureValueTextView = root.findViewById(R.id.moisture_value_now);
moistureValueTextView.setText(telemetryModel.Moisture.toString() + " %");
TextView luminosityValueTextView = root.findViewById(R.id.luminosity_value_now);
luminosityValueTextView.setText(telemetryModel.Luminosity.toString() + " lx");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void sendTelemetry(HttpRecordable recordable) {\n }",
"protected void updateTelemetry(){\n telemetry.addData(\"Runtime\", this.getRuntime());\n Robot.outputToTelemetry(this);\n telemetry.update();\n }",
"@Override\n public void robotPeriodic() {\n putTelemetry();\n }",
"private void saveSensor() {\n new SensorDataSerializer(sensorID, rawData);\n rawData.clear();\n }",
"@Override\n public void onDataChanged() {\n\n }",
"@Override\n public void onTrafficStatusUpdate() {\n\n }",
"@Override\n protected void onDataChanged() {\n }",
"public void notifyState() {\n\t\tList<T> alldata = new ArrayList<T>(this.dataMap.values());\t\r\n\t\t// call them with the current data\r\n\t\t// for each observer call them\r\n\t\tfor( ModelEvents<T> observer : this.ObserverList){\r\n\t\t\tobserver.dataState(alldata);\r\n\t\t}\r\n\r\n\t}",
"@Override\n public void saveData() {\n System.out.println(\"GateWay\");\n }",
"public void updateDataModel() {\n //this.dataModel = new TelemetryChartDataModel();\n this.dataModel.\n setModel(getStartDate(), getEndDate(), selectedProjects, telemetryName, parameters);\n Thread thread = new Thread() {\n @Override\n public void run() {\n dataModel.loadData();\n }\n };\n thread.start();\n }",
"@Override\n\tpublic void saveDataSource() {\n\t\tsaveServerOffline();\n\t}",
"public void dataSent(LLRPDataSentEvent event);",
"public void logSensorData () {\n\t}",
"@Override public void run() {\n\t\t\t\tsaveLogCache();\n\t\t\t\tserverToken = null;\n\t\t\t\toffline = true;\n\t\t\t}",
"private void collectData() {\n this.collectContest();\n this.collectProblems();\n this.collectPreCollegeParticipants();\n this.collectObservers();\n }",
"@Override\n public void onDataChanged() {\n }",
"@Override\n public void onDataChanged() {\n }",
"private void reportData() {\n getSender().tell(new GameRoomDataMessage(gameRoomName, capacity, players), this.getSelf());\n }",
"public void outputTelemetry() {\n }",
"@Override\n public void onDataChanged(DataEventBuffer dataEventBuffer) {\n for (DataEvent event : dataEventBuffer) {\n if (event.getType() == DataEvent.TYPE_CHANGED) {\n // DataItem changed\n DataItem item = event.getDataItem();\n if (item.getUri().getPath().compareTo(\"/latlnglist\") == 0) {\n\n DataMap dataMap = DataMapItem.fromDataItem(item).getDataMap();\n\n Log.d(\"hudwear\", \"new data, sending message to handler\");\n\n Message m = new Message();\n Bundle b = new Bundle();\n b.putDouble(\"latitude\", dataMap.getDouble(\"latitude\"));\n b.putDouble(\"longitude\", dataMap.getDouble(\"longitude\"));\n m.setData(b);\n handler.sendMessage(m);\n }\n\n } else if (event.getType() == DataEvent.TYPE_DELETED) {\n // DataItem deleted\n }\n }\n }",
"@Override\r\n\tpublic void onTrafficStatusUpdate() {\n\r\n\t}",
"public void dataChanged() {\n\t\tif (wijzigInfo)\n\t\t\twijzigInfo();\n\n\t\tsetChanged();\n\t\tnotifyObservers(\"dataChanged\");\n\t}",
"@Override\n public void onCompleted() {\n builder.setMessage(\"All request data received completely!\");\n responseObserver.onNext(builder.build());\n responseObserver.onCompleted();\n }",
"private void saveData() {\n }",
"private void receive() {\n\t\t\ttry{\n\t\t\t\twhile(true){\n\t\t\t\t\tsuper.store(generateSimulateData());\n\t\t\t\t\tSystem.out.println(\"模拟接收数据\");\n\t\t\t\t\tThread.sleep(10000);\n\t\t\t\t}\n\t\t\t}catch(Exception ex){\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t }",
"private void fetchData() {\n mNest.addGlobalListener(new NestListener.GlobalListener() {\n @Override\n public void onUpdate(@NonNull GlobalUpdate update) {\n mThermostat = update.getThermostats().get(0);\n mStructure = update.getStructures().get(0);\n if(!Auth.isSignedIn){\n Log.d(TAG, \"GlobalListener: onUpdate: User is not signed in, signing in\");\n Auth.signIn(mThermostat,mStructure);\n }\n updateViews();\n }\n });\n }",
"@Override\n\tpublic void onTrafficStatusUpdate() {\n\n\t}",
"private void save() {\n // Get the current measurement\n final LiveData<Measurement> ldm = mViewModel.getMeasurementById(mMeasurementId);\n ldm.observe(getViewLifecycleOwner(), new Observer<Measurement>() {\n @Override\n public void onChanged(final Measurement measurement) {\n ldm.removeObserver(this);\n updateMeasurement(measurement);\n snackBar(\"Measurement updated!\");\n }\n });\n }",
"@Override\n public void onCompleted() {\n System.out.println(\"Server has completed sending us response\");\n // on completed will be called right after onNext\n // Whenever server is done sending data latch is going down by 1\n latch.countDown();\n }",
"@Override\n\tprotected void initData() {\n\t\tnew OrderInterface(this) {\n\n\t\t\t@Override\n\t\t\tpublic void SuccCallBack(JSONObject responseJson) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tJSONObject nDataJsonObject = responseJson.optJSONObject(\"data\");\n\t\t\t\tif (nDataJsonObject != null) {\n\t\t\t\t\tJSONArray nArray = nDataJsonObject.optJSONArray(\"data\");\n\t\t\t\t\tparseStatisticsData(nArray);\n\t\t\t\t}\n\t\t\t}\n\t\t}.RunRequest();\n\t}",
"private void initData() {\n requestServerToGetInformation();\n }",
"public void trackNewSession() {\n if(isTelemetryEnabled()){\n new CreateDataTask(CreateDataTask.DataType.NEW_SESSION).execute();\n }\n }",
"@Override\n public void onConnected(@Nullable Bundle bundle) {\n readPreviousStoredDataAPI();\n Wearable.DataApi.addListener(mGoogleApiClient, this);\n }",
"@Override\n public void eventoCargarData() {\n }",
"void onFetchDataStarted();",
"public void store() {\r\n\t\tdata = busExt.get();\r\n\t}",
"public void onDataChanged(){}",
"private void writeMetrics() {\n if (metrics.size() > 0) {\n try {\n String payload = pickleMetrics(metrics);\n int length = payload.length();\n byte[] header = ByteBuffer.allocate(4).putInt(length).array();\n socket.getOutputStream().write(header);\n writer.write(payload);\n writer.flush();\n } catch (Exception e) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Error writing to Graphite\", e);\n } else {\n LOGGER.warn(\"Error writing to Graphite: {}\", e.getMessage());\n }\n }\n\n // if there was an error, we might miss some data. for now, drop those on the floor and\n // try to keep going.\n LOGGER.debug(\"Wrote {} metrics\", metrics.size());\n\n metrics.clear();\n }\n }",
"public synchronized void onNewRequest() {\r\n\t\tallRequestsTracker.onNewRequest();\r\n\t\trecentRequestsTracker.onNewRequest();\r\n\t}",
"void saveData() throws SerializerException;",
"void onBeaconDataResult(List<BeaconResultEntity> beaconResultEntities);",
"public void saveData(){\n SerializableManager.saveSerializable(this,user,\"userInfo.data\");\n SerializableManager.saveSerializable(this,todayCollectedID,\"todayCollectedCoinID.data\");\n SerializableManager.saveSerializable(this,CollectedCoins,\"collectedCoin.data\");\n uploadUserData uploadUserData = new uploadUserData(this);\n uploadUserData.execute(this.Uid);\n System.out.println(Uid);\n\n }",
"void onDataLoaded(int requestId, Object data);",
"@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n if (messageEvent.getPath().equals(\"/watch/newSmokeEvents\")) {\n\n /* ...retrieve the message */\n final byte[] receivedEvents = messageEvent.getData();\n\n Intent messageIntent = new Intent();\n messageIntent.setAction(Intent.ACTION_SEND);\n messageIntent.putExtra(\"NEW_EVENTS_DATA\", receivedEvents);\n\n /* Broadcast the received Data Layer messages locally -> send to Synchronize */\n LocalBroadcastManager.getInstance(this).sendBroadcast(messageIntent);\n }\n else if (messageEvent.getPath().equals(\"/watch/newSensorData\")){\n\n Intent synchronizeServiceIntent = new Intent(this, SynchronizeService.class);\n synchronizeServiceIntent.putExtra(\"RECEIVED_SYNC_HASH_LIST_REQUEST\", true);\n SynchronizeService.enqueueWork(this, synchronizeServiceIntent);\n\n }\n else {\n super.onMessageReceived(messageEvent);\n }\n\n }",
"@Test\n\tpublic void storeLogDataTest() {\n\n\t\tStatisticsRequest request = new StatisticsRequest(\"testingid\", \"testing\", 200, 3);\n\t\twebTestClient.post().uri(\"/logginResponseTime\").contentType(MediaType.APPLICATION_JSON)\n\t\t\t\t.accept(MediaType.APPLICATION_JSON).body(Mono.just(request), StatisticsRequest.class).exchange()\n\t\t\t\t.expectStatus().isOk().expectBody(String.class).consumeWith(res -> {\n\t\t\t\t\tassertTrue(res.getResponseBody().equalsIgnoreCase(\"saved\"));\n\t\t\t\t});\n\n\t}",
"protected void saveHistoryData() throws RemoteHomeManagerException {\n int expected = (isCurrentState()) ? 1 : 0;\n if (isEnabledScheduler()) {\n Boolean action = getLightSchedule().getCurrentSchedule();\n expected = action?1:0;\n }\n HistoryData history = new HistoryData();\n history.setDeviceId(getDeviceId());\n history.setDataName(\"ONOFF\");\n history.setDataValue(((isCurrentState())?1:0)+\"|\"+expected);\n history.setDataTimestamp();\n m.getPersistance().addHistoryData(history);\n RemoteHomeManager.log.debug(\"Saved history data: \"+history.toString());\n }",
"private TelemetryMessageHandler(){\n super();\n messageList = new TelemetryMessageList();\n telemetryArrivalMap = new TelemetryArrivalMap();\n }",
"private void handleModelResponse(ServiceTransferEntity stEntity, BaseHttpService calledService) {\n \t\tOpenGLModelConfiguration model = entityConverter.toOpenGLModelFrom(stEntity, calledService, this.currentTarget.getLatestModelVersion());\r\n \t\tcacheManager.insertOrUpdateModelAsync(model);\r\n \t\tthis.fireOnModelDataEvent(model, false);\r\n \t}",
"public void PushEventStatisticsFromDB() {\n\t\tmyDBUtil.open();\n\t\tCursor mCursor = myDBUtil.queryMarkIsZero();\n\t\tmCursor.moveToFirst();\n\t\tdo {\n\t\t\tfinal EventStatisticsData eventStatisticsData = new EventStatisticsData();\n\t\t\tString[] colums = new String[]{\n\t\t\t\t\t\"behavior\", \"appId\", \"appSrc\", \"packageName\", \"client\", \"listenArea\",\n\t\t\t\t\t\"listenContextId\", \"listenContextSrc\", \"clientVersion\", \"referenceId\",\n\t\t\t\t\t\"appName\", \"appVersion\"};\n\t\t\tint index;\n\t\t\tString value;\n\t\t\tfor (int i = 0; i < colums.length; i++) {\n\t\t\t\tindex = mCursor.getColumnIndex(colums[i]);\n\t\t\t\tvalue = mCursor.getString(index);\n\t\t\t\teventStatisticsData.SetParamFromApp(i, value);\n\t\t\t}\n\t\t\tindex = mCursor.getColumnIndex(\"_id\");\n\t\t\tfinal int id = mCursor.getInt(index);\n\t\t\tGetIPFromServer(new GetIpCallback() {\n\t\t\t\t@Override\n\t\t\t\tpublic void solve(String result) {\n\t\t\t\t\tif (result != null && eventStatisticsData != null) {\n\t\t\t\t\t\tpushStatisticsEvent(eventStatisticsData, false, id);\n\t\t\t\t\t\tLog.d(TAG, \"im here don't insert to db,just update\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t} while (mCursor.moveToNext());\n\t\tmCursor.close();\n\t\tmyDBUtil.close();\n\t}",
"@SubscribeEvent\n public static void onServerStopped(ServerStoppedEvent event) {\n // mainly used to reload data while changing single-player saves, unnecessary on dedicated server\n FluxNetworkData.release();\n }",
"public void logData(){\n }",
"public static void setData() \n\t{\n\t\tsetCustomerData();\n\t\ttry\n\t\t{\n\t\t\tsetSensorData();\n\t\t}\n\t\tcatch (SensorNotFoundException e)\n\t\t{\n\t\t\tstatusBar.setText(e.getMessage());\n\t\t}\n\n\t}",
"public void restAPIToGetData(RetrofitClient retrofit) {\n requestLyricInterface = retrofit.getClientRxJava(BASE_URL).create(RequestLyricInterface.class);\n requestLyricInterface.register()\n .observeOn(Schedulers.newThread())\n .subscribeOn(Schedulers.io())\n .subscribe((new Observer<List<MusicLyric>>(){\n @Override\n public void onError(Throwable e) {\n //Toast.makeText(getBaseContext(), \"Error \" + e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n //Log.e(\"Debug\", \": \" + e.getLocalizedMessage());\n }\n @Override\n public void onComplete() {\n //Toast.makeText(getBaseContext(), \"Get data success! \", Toast.LENGTH_SHORT).show();\n //Log.e(\"Debug\", \": \" + \"Get data success! \");\n }\n\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(List<MusicLyric> musicLyric) {\n setMusicLyrics(musicLyric);\n //Log.i(\"Debug\", \"post submitted to API: \" + musicLyrics.toString());\n //Save file By FileWriter\n JSONManager.JsonSimpleWriter(musicLyrics);\n }\n })) ;\n requestLyricInterface.recorchart()\n .observeOn(Schedulers.newThread())\n .subscribeOn(Schedulers.io())\n .subscribe((new Observer<List<RecordChart>>(){\n @Override\n public void onError(Throwable e) {\n //Toast.makeText(getBaseContext(), \"Error \" + e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n //Log.e(\"Debug\", \": \" + e.getLocalizedMessage());\n }\n @Override\n public void onComplete() {\n //Toast.makeText(getBaseContext(), \"Get data success! \", Toast.LENGTH_SHORT).show();\n //Log.e(\"Debug\", \": \" + \"Get data success! \");\n }\n\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(List<RecordChart> recordCharts) {\n //Log.i(\"Debug\", \"post submitted to API: \" + recordCharts.get(0).getName());\n //Save file By FileWriter\n JSONManager.JsonRecordChartWriter(recordCharts);\n }\n })) ;\n requestLyricInterface.track()\n .observeOn(Schedulers.newThread())\n .subscribeOn(Schedulers.io())\n .subscribe((new Observer<List<Track>>(){\n @Override\n public void onError(Throwable e) {\n //Toast.makeText(getBaseContext(), \"Error \" + e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n //Log.e(\"Debug\", \": \" + e.getLocalizedMessage());\n }\n @Override\n public void onComplete() {\n //Toast.makeText(getBaseContext(), \"Get data success! \", Toast.LENGTH_SHORT).show();\n //Log.e(\"Debug\", \": \" + \"Get data success! \");\n }\n\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(List<Track> tracks) {\n //Log.i(\"Debug\", \"post submitted to API: \" + tracks.get(0).getDescription());\n //Save file By FileWriter\n JSONManager.JsonTrackWriter(tracks);\n }\n })) ;\n }",
"protected void addFinishedData() throws ModelException {\n int i;\n \n //Harvest data\n ArrayList<Behavior> p_oBehs = m_oDisturbanceBehaviors.getBehaviorByParameterFileTag(\"Harvest\");\n if (mp_oHarvestData.size() == 0) {\n if (p_oBehs.size() > 0) {\n m_oDisturbanceBehaviors.removeBehavior(p_oBehs.get(0));\n }\n } else {\n Harvest oHarvest;\n if (p_oBehs.size() > 0) {\n oHarvest = (Harvest) p_oBehs.get(0);\n oHarvest.clearHarvestEvents();\n } else {\n oHarvest = (Harvest) m_oDisturbanceBehaviors.createBehaviorFromParameterFileTag(\"Harvest\");\n }\n for (i = 0; i < mp_oHarvestData.size(); i++) {\n oHarvest.addHarvestEvent(mp_oHarvestData.get(i));\n }\n }\n \n //Mortality episode data\n p_oBehs = m_oDisturbanceBehaviors.getBehaviorByParameterFileTag(\"EpisodicMortality\");\n if (mp_oMortEpisodeData.size() == 0) {\n if (p_oBehs.size() > 0) {\n m_oDisturbanceBehaviors.removeBehavior(p_oBehs.get(0));\n }\n } else {\n EpisodicMortality oEp;\n if (p_oBehs.size() > 0) {\n oEp = (EpisodicMortality) p_oBehs.get(0);\n oEp.clearMortalityEpisodes();\n } else {\n oEp = (EpisodicMortality) m_oDisturbanceBehaviors.createBehaviorFromParameterFileTag(\"EpisodicMortality\");\n }\n for (i = 0; i < mp_oMortEpisodeData.size(); i++) {\n oEp.addMortalityEpisode(mp_oMortEpisodeData.get(i));\n }\n }\n\n //Planting data\n p_oBehs = m_oPlantBehaviors.getBehaviorByParameterFileTag(\"Plant\");\n if (mp_oPlantingData.size() == 0) {\n if (p_oBehs.size() > 0) {\n m_oDisturbanceBehaviors.removeBehavior(p_oBehs.get(0));\n }\n } else {\n Planting oPlant;\n if (p_oBehs.size() > 0) {\n oPlant = (Planting) p_oBehs.get(0);\n oPlant.clearPlantingEvents();\n } else {\n oPlant = (Planting) m_oPlantBehaviors.createBehaviorFromParameterFileTag(\"Plant\");\n }\n for (i = 0; i < mp_oPlantingData.size(); i++) {\n oPlant.addPlantingEvent(mp_oPlantingData.get(i));\n }\n }\n }",
"public void receivedUpdateFromServer();",
"protected void saveData(DataModel[] models) throws Exception {\n }",
"@Override\n public void runTask() {\n final String aid = agencyId();\n // Make API call\n final Value payload = NextBusApi.getVehiclesForAgency(Assets.httpClient(), aid, this.lastTime);\n // Extract information for all vehicles and the payload's timestamp\n final List<Value> vehicleInfos = new ArrayList<>(payload.length());\n for (Item i : payload) {\n if (i.head() instanceof Attr) {\n final String label = i.head().key().stringValue(null);\n if (\"vehicle\".equals(label)) {\n vehicleInfos.add(i.head().toValue());\n } else if (\"lastTime\".equals(label)) {\n this.lastTime = i.head().toValue().get(\"time\").longValue();\n }\n }\n }\n // Relay each vehicleInfo to the appropriate VehicleAgent\n int i = 0;\n for (Value vehicleInfo : vehicleInfos) {\n command(\"/vehicle/\" + aid + \"/\" + vehicleInfo.get(\"id\").stringValue(),\n \"addMessage\",\n // lastTime came separately, manually add it to each vehicleInfo\n vehicleInfo.updatedSlot(\"timestamp\", this.lastTime));\n i++;\n }\n System.out.println(nodeUri() + \": relayed info for \" + i + \" vehicles\");\n }",
"public void getData() {\n\t\tcurrentDate = model.getCurrentDate();\n\t\tLocalDate firstDateOfMonth = LocalDate.of(currentDate.getYear(), currentDate.getMonthValue(), 1);\n\t\tevents = EventProcessor.filterEvents(model.getEvents(), firstDateOfMonth, firstDateOfMonth.plusMonths(1).minusDays(1));\n\t}",
"public void treatment()\n {\n\t\tCommunicationManagerServer cms = CommunicationManagerServer.getInstance();\n\t\tDataServerToComm dataInterface = cms.getDataInterface();\n\t\t/** On récupère et stocke l'adresse IP du serveur\n\t\t */\n\t\tdataInterface.updateUserChanges(user);\n\n\t /** Création du message pour le broadcast des informations**/\n\t updatedAccountMsg message = new updatedAccountMsg(this.user);\n\t\tmessage.setPort(this.getPort());\n\t cms.broadcast(message);\n\t}",
"private void saveData() {\n\t\tdataSaver.save(data);\n\t}",
"private void sendInfo() {\n Log.v(TAG, \"sendInfo() contentListSize \"+this.contentList.size()+\" interestListSize \"+this.interestList.size());\n\n D2DAddContentNotificationEvent addContentEvent = new D2DAddContentNotificationEvent(false);\n addContentEvent.contentList = this.contentList;\n this.sendEvent(addContentEvent);\n\n D2DAddInterestNotificationEvent addInterestEvent = new D2DAddInterestNotificationEvent(false);\n addInterestEvent.interestList = this.interestList;\n this.sendEvent(addInterestEvent);\n }",
"@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}",
"private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}",
"@Override\n public void onSave(MessageContainer messages) {\n }",
"private void data(Messenger replyTo, int encoderId, Bundle data) {\n\n // obtain new message\n Message message = obtainMessage(Geotracer.MESSAGE_TYPE_DATA, encoderId, 0);\n message.setData(data);\n\n // send response\n send(replyTo, message);\n }",
"private void onDataSendBegin() {\n Observable<Location> observable = ObservableFactory.from(SmartLocation.with(this).location().oneFix());\n observable.timeout(8, TimeUnit.SECONDS)\n .subscribeOn(Schedulers.newThread())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Observer<Location>() {\n @Override\n public void onSubscribe(Disposable d) {\n currentLocation = null;\n }\n\n @Override\n public void onNext(Location loc) {\n currentLocation = loc;\n }\n\n @Override\n public void onError(Throwable e) {\n Log.e(\"onDataSendBegin\", \"onError: yes\", e);\n Toast.makeText(PanelActivity.this, \"Unable to fetch precise location, try in another way.\", Toast.LENGTH_SHORT).show();\n currentLocation = locationUtils.getLocation();\n if (currentLocation == null) {\n Log.e(\"TAG\", \"无法获取设备定位信息(包括最近一次成功定位)!\");\n }\n sendLocation();\n }\n\n @Override\n public void onComplete() {\n sendLocation();\n }\n });\n }",
"@Override\n public void onResponse(String response) {\n finalData(response);\n }",
"@Override\n\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onResponseReceived(Request request, Response response) {\n\t\t\t\t\t\n\t\t\t\t}",
"private void subscribeToModel() {\n subscribeToDestinationResponse(R.id.markupEditFreeHandPolygonFragment, PICK_COLOR_REQUEST, (DestinationResponse<Integer>) color -> {\n if (color != null) {\n mViewModel.setColor(color);\n }\n });\n\n // When the view model's color changes, update the polyline's color on the map.\n mViewModel.getColor().observe(mLifecycleOwner, this::setColor);\n\n // When the view model's stroke width changes, update the polyline's stroke width on the map.\n mViewModel.getStrokeWidth().observe(mLifecycleOwner, this::setStrokeWidth);\n\n // When the view model's comment changes, update the polyline's comment.\n mViewModel.getComment().observe(mLifecycleOwner, this::setComment);\n\n // When drawing mode is on, the user can draw on the map, if not they can use normal map gestures.\n mViewModel.isDrawingMode().observe(mLifecycleOwner, isDrawingMode -> {\n if (isDrawingMode) {\n turnOnDrawingMode();\n } else {\n turnOffDrawingMode();\n }\n });\n\n // Toggle the measurement info marker.\n mViewModel.isMeasuring().observe(mLifecycleOwner, measuring -> {\n if (measuring) {\n createMarkerInfoWindow();\n } else {\n removeInfoWindow();\n }\n });\n }",
"public void saveData ( ) {\n\t\tinvokeSafe ( \"saveData\" );\n\t}",
"public void saveResults(){\n //Tell adapter to save gathered data\n //Call appropriate function\n }",
"@Override\n protected void onStop() {\n super.onStop();\n saveData();\n }",
"private void saveData() {\n\t\tlogger.trace(\"saveData() is called\");\n\t\t\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFileOutputStream fileOut = new FileOutputStream(\"server-info.dat\");\n\t\t\tout = new ObjectOutputStream(fileOut);\n\t\t\tout.writeObject(jokeFile);\n\t\t\tout.writeObject(kkServerPort);\n\t\t\tout.flush();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\t\n\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t} \n\t\tfinally {\n\t\t\tif (out != null){\n\t\t\t\ttry{\n\t\t\t\t\tout.close();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e){\n\t\t\t\t\tSystem.err.println(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\t\tlogger.error(\"saving server-info.dat file is encountering an error for some reason.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void saveData(){\n\t\tsynchronized(onlineAllInfoList){\n\t\t\tRecorder.save(onlineAllInfoList, onlineAllInfoListFileName);\n\t\t}\n\t\t//System.out.println(\"Saving onlineCompetitionInfoList...\");System.out.flush();\n\t\tsynchronized(onlineCompetitionInfoList){\n\t\t\tRecorder.save(onlineCompetitionInfoList, onlineCompetitionInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving competitionList...\");System.out.flush();\n\t\tsynchronized(competitionList){\n\t\t\tRecorder.save(competitionList, competitionInfoListFileName);\n\t\t}\n\t\t//System.out.println(\"Saving allAIInfoList...\");System.out.flush();\n\t\tsynchronized(allAIInfoList){\n\t\t\tRecorder.save(allAIInfoList, allInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving waitingInfoList...\");System.out.flush();\n\t\tsynchronized(waitingInfoList){\n\t\t\tRecorder.save(waitingInfoList, waitingInfoListFileName);\t\t\t\n\t\t}\n\t\t//System.out.println(\"Saving sortedAIInfoPool...\");System.out.flush();\n\t\tsynchronized(sortedAIInfoPool){\n\t\t\tRecorder.save(sortedAIInfoPool, sortedInfoListFileName);\t\t\t\n\t\t}\n\t}",
"public void updateData() {\n List<Device> devices = Lists.newArrayList();\n CustomAdapter customAdapter = (CustomAdapter) deviceListView.getAdapter();\n for (int i = 0; i < customAdapter.getCount(); i++) {\n Model model = customAdapter.getItem(i);\n if (model.isChecked()) {\n devices.add(model.getDevice());\n }\n }\n\n SensorDao sensorDao = new SensorDao(parentActivity);\n Map<Device, List<Sensor>> sensorDeviceMap = sensorDao.fetchDeviceSpecificSensors(devices);\n\n // Aggregate the information about sensor and devices based on unique\n // Map<BluetoothDevice, Map<FileName, List<SensorLabels>>>\n Map<BluetoothDevice, Map<String, List<String>>> rearrangedSensorDeviceInfo = Maps.newHashMap();\n for (Map.Entry<Device, List<Sensor>> elem : sensorDeviceMap.entrySet()) {\n Device device = elem.getKey();\n BluetoothDevice bluetoothDevice = CommonUtils.getBluetoothAdapter(\n parentActivity, REQUEST_BT_ENABLE).getRemoteDevice(device.getDeviceId());\n Map<String, List<String>> fileNameSensorNameMap = rearrangedSensorDeviceInfo.get(bluetoothDevice);\n List<Sensor> sensors = elem.getValue();\n\n if (fileNameSensorNameMap == null) {\n fileNameSensorNameMap = Maps.newHashMap();\n rearrangedSensorDeviceInfo.put(bluetoothDevice, fileNameSensorNameMap);\n }\n\n for(Sensor sensor : sensors) {\n String dataFilePath = sensor.getSensorDataFilePath();\n String sensorName = sensor.getSensorLabel();\n List<String> sensorNames = fileNameSensorNameMap.get(dataFilePath);\n if (sensorNames == null) {\n fileNameSensorNameMap.put(dataFilePath, Lists.newArrayList(sensorName));\n } else {\n sensorNames.add(sensorName);\n }\n }\n }\n\n IntentFilter intentFilter = new IntentFilter();\n intentFilter.addAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA_STARTED);\n intentFilter.addAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA_FINISHED);\n intentFilter.addAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA_ENDED);\n intentFilter.addAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA_INITIATED);\n parentActivity.registerReceiver(broadcastReceiver, intentFilter);\n\n //Start service for every device.\n for (Map.Entry<BluetoothDevice, Map<String, List<String>>> elem : rearrangedSensorDeviceInfo.entrySet()) {\n BluetoothDevice device = elem.getKey();\n Map<String, List<String>> fileNameSensorsMap = elem.getValue();\n if (fileNameSensorsMap.size() > 0) {\n Bundle bundle = new Bundle();\n bundle.putParcelable(ServerActionsService.PARAM_BLUETOOTH_DEVICE, device);\n bundle.putSerializable(PARAM_FILENAME_SENSOR_INFO, (Serializable) fileNameSensorsMap);\n\n Intent intent = new Intent(parentActivity, ServerActionsService.class);\n intent.setAction(ServerActionsService.ACTION_TRANSFER_FILE_AND_INSERT_DATA);\n intent.putExtras(bundle);\n\n parentActivity.startService(intent);\n }\n }\n }",
"public void setTrip(final String flag, final String tag, final String locationSubmissionURL, final OnAtsTripSetterListeners onAtsTripSetterListeners) throws Exception{\n\n\n try{\n Log.d(TAG , \"STATUS : \"+AppInfoManager.getAppStatusEncode());\n APPORIOLOGS.appStateLog(AppInfoManager.getAppStatusEncode());}catch (Exception e){}\n AndroidNetworking.post(\"\"+ AtsApplication.EndPoint_add_logs)\n .addBodyParameter(\"timezone\", TimeZone.getDefault().getID())\n .addBodyParameter(\"key\", AtsApplication.getGson().toJson(HyperLog.getDeviceLogs(false)))\n .setTag(\"log_sync\")\n .setPriority(Priority.HIGH)\n .build()\n .getAsJSONObject(new JSONObjectRequestListener() {\n @Override\n public void onResponse(JSONObject response) {\n try{\n ModelResultChecker modelResultChecker = AtsApplication.getGson().fromJson(\"\"+response,ModelResultChecker.class);\n if(modelResultChecker.getResult() == 1 ){\n Log.i(TAG, \"Logs Synced Successfully while setting trip.\");\n startSettingFlagNow(flag, tag, locationSubmissionURL, onAtsTripSetterListeners);\n }else{\n Log.e(TAG, \"Logs Not synced from server while setting trip got message \"+modelResultChecker.getMessage());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n onAtsTripSetterListeners.onTripSetFail(\"Logs Not synced from server while setting trip got message \"+modelResultChecker.getMessage());\n }\n }catch (Exception e){\n Log.e(TAG, \"Logs Not synced with error code: \"+e.getMessage());\n onAtsTripSetterListeners.onTripSetFail(\"Logs Not synced while setting trip with error code: \"+e.getMessage());\n }\n }\n @Override\n public void onError(ANError error) {\n Log.e(TAG, \"Logs Not synced with error code: \"+error.getErrorCode());\n onSync.onSyncError(\"\"+AtsConstants.SYNC_EXISTING_LOGS_ERROR);\n }\n });\n\n }",
"@Override\n\tpublic void getData() {\n\t\t\n\t}",
"private void subscribeVariantData() {\n mProductDetailsViewModel.getVariants().observe(this, integerObjectHashMap -> {\n mUnitId = (String) integerObjectHashMap.get(ONE);\n mStoreId = (String) integerObjectHashMap.get(TWO);\n ArrayList<VariantsData> variantsData = (ArrayList<VariantsData>) integerObjectHashMap.get(\n THREE);\n mOffersListData = (PdpOfferData) integerObjectHashMap.get(FOUR);\n mAvailableCount = (Integer) integerObjectHashMap.get(FIVE);\n // mCartCount=(Integer)integerObjectHashMap.get(SIX);\n mAvailableCount = (Integer) integerObjectHashMap.get(FIVE);\n if (variantsData != null) {\n mVariantsData.clear();\n mVariantsData.addAll(variantsData);\n mPdpVariantsAdapter.notifyDataSetChanged();\n }\n });\n }",
"@Override\n public void onFeedbackServerStarted() {\n }",
"public static void processGraphInformation () {\n\n for (int i = 0; i < data.length(); i++) {\n if (data.charAt(i) == ',')\n cutPoints.add(i);\n }\n if(isNumeric(data.substring(1, cutPoints.get(0))))\n tempPPGWaveBuffer.add(Double.parseDouble(data.substring(1, cutPoints.get(0))));\n for (int j = 0; j < cutPoints.size(); j++) {\n\n if (j==cutPoints.size()-1){\n if(isNumeric(data.substring(cutPoints.get(j)+1,endOfLineIndex )))\n tempPPGWaveBuffer.add(Double.parseDouble(data.substring(cutPoints.get(j)+1,endOfLineIndex )));\n } else{\n if(isNumeric(data.substring(cutPoints.get(j) + 1, cutPoints.get(j+1))))\n tempPPGWaveBuffer.add(Double.parseDouble(data.substring(cutPoints.get(j) + 1, cutPoints.get(j+1))));\n }\n\n }\n graphIn.obtainMessage(handlerState4, Integer.toString(tempSampleTime)).sendToTarget(); //Comment this part to run junit tests\n if (tempSampleTime != 0) {\n tempReceived = true;\n graphIn.obtainMessage(handlerState2, Boolean.toString(tempReceived)).sendToTarget(); //Comment this part to run junit tests\n graphIn.obtainMessage(handlerState1, tempPPGWaveBuffer).sendToTarget(); //Comment this part to run junit tests\n } else {\n tempReceived = false;\n graphIn.obtainMessage(handlerState2, Boolean.toString(tempReceived)).sendToTarget(); //Comment this part to run junit tests\n }\n }",
"void updateLocalCallLogs() {\n setIncludePairedCallLogs();\n buildCallLogsList();\n\n notifyCallDataChanged();\n }",
"void assignDataReceived(Serializable dataReceived);",
"public void record() {\n stats.record();\n }",
"@Override\n public void onNext(RequestData request) {\n System.out.println(\"Requestor:\" + request.getName());\n System.out.println(\"Request Message:\" + request.getMessage());\n responseObserver.onNext(ResponseData.newBuilder().setMessage(request.getMessage() + \" - \" + request.getName()).build());\n }",
"protected void loadData() {\n refreshview.setRefreshing(true);\n //小区ID\\t帐号\\t消息类型ID\\t开始时间\\t结束时间\n // ZganLoginService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n //ZganCommunityService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n ZganCommunityService.toGetServerData(40, String.format(\"%s\\t%s\\t%s\\t%s\", PreferenceUtil.getUserName(), funcPage.gettype_id(), String.format(\"@id=22,@page_id=%s,@page=%s\",funcPage.getpage_id(),pageindex), \"22\"), handler);\n }",
"@Override\n\tpublic void SendAndReceiveData() throws APIException \n\t{\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.beforeSendAndReceiveData();\n\t\ttry\n\t\t{\n\t\t\tapi.SendAndReceiveData();\n\t\t}\n\t\tcatch(APIException e)\n\t\t{\n\t\t\tfor (Listener listen : listeners1)\n\t\t\t\tlisten.onError(e);\n\t\t\tthrow new APIException(e);\n\t\t}\n\t\tfor (Listener listen : listeners1)\n\t\t\tlisten.afterSendAndReceiveData();\n\t}",
"public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }",
"private void initData() {\n\n MyLog.log(\"调用录音上传接口\");\n MosHelper.startCheck(new MosHelper.mosSourceListener() {\n\n @Override\n public void getMosSource(String testTest, ArrayList<String> source) {\n // TODO Auto-generated method stub\n\n }\n\n @Override\n public void getMosIMEIAndId(String IMEI,\n String sourceId) {\n // TODO Auto-generated method stub\n MyLog.log(\"IMEI::\" + IMEI);\n Message message = handler.obtainMessage();\n message.obj = \"IMEI::\" + IMEI + \"\\n\" + \"sourceID:\\n\" + sourceId;\n message.what = 8;\n handler.sendMessage(message);\n\n }\n });\n }",
"public void flush() {\n // all getAndSet will not be synchronous but it's ok since metrics will\n // be spread out among processor worker and we flush every 5s by\n // default\n\n processor.send(new TelemetryMessage(this.metricsSentMetric, this.metricsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.eventsSentMetric, this.eventsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.serviceChecksSentMetric, this.serviceChecksSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.bytesSentMetric, this.bytesSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.bytesDroppedMetric, this.bytesDropped.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsSentMetric, this.packetsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsDroppedMetric, this.packetsDropped.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsDroppedQueueMetric, this.packetsDroppedQueue.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.aggregatedContextsMetric, this.aggregatedContexts.getAndSet(0), tags));\n }",
"private void getMasechtotListFromServer() {\n\n\n RequestManager.getMasechtotList().subscribe(new Observer<Result<MasechetList>>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(Result<MasechetList> masechetListResult) {\n\n saveMasechtotList(masechetListResult.getData());\n mMasechtotList = masechetListResult.getData();\n\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 }",
"@Override\n public void saveValues() {\n \n }",
"@Override\n public void onDataFinish(Object object) {\n mExtraInfoProgressBar_II.setVisibility(View.GONE);\n updateStockAnnouncementViews((List<NewsFlashItem>) object);\n\n mbLoadedReportsView = true;\n }",
"@Override\n public void onResponse(String response) {\n loadSentMessages();\n }",
"@Override\n public void onContextCreated() {\n HeartbeatJob.updateBinaryServiceClusterChanges(serversService);\n registersHeartbeatJob();\n registerCallHomeJob();\n }",
"@Override\n public void onFeedbackServerStopped() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"private void dataSubmission() {\n getPreferences(); // reload all the data\n\n String jsonObjectString = createJsonObject();\n StringBuilder url = new StringBuilder();\n url.append(serverUrl);\n\n if (vslaName == null || numberOfCycles == null || representativeName == null || representativePost == null\n || repPhoneNumber == null || grpBankAccount == null || physAddress == null\n || grpPhoneNumber == null || grpSupportType == null) {\n flashMessage(\"Please Fill all Fields\");\n\n } else if (IsEditing.equalsIgnoreCase(\"1\")) {\n url.append(\"editVsla\");\n new HttpAsyncTaskClass().execute(url.toString(), jsonObjectString);\n saveVslaInformation();\n\n } else { // Creating a new VSLA\n url.append(\"addNewVsla\");\n new HttpAsyncTaskClass().execute(url.toString(), jsonObjectString);\n saveVslaInformation();\n }\n }",
"public abstract void getDataFromDataLogger();",
"void onDataChanged();"
] | [
"0.62143826",
"0.60195696",
"0.59844863",
"0.5893138",
"0.5880509",
"0.5849271",
"0.5842391",
"0.5827106",
"0.5770699",
"0.5731759",
"0.5728503",
"0.56521165",
"0.5637337",
"0.562588",
"0.5623826",
"0.5599668",
"0.5599668",
"0.55868834",
"0.55771375",
"0.5559106",
"0.55389714",
"0.5536724",
"0.5526197",
"0.55199444",
"0.55142957",
"0.547712",
"0.5474118",
"0.5441412",
"0.54333365",
"0.54260343",
"0.54255867",
"0.5393268",
"0.5353001",
"0.5340502",
"0.53402853",
"0.53369045",
"0.53321934",
"0.5325413",
"0.53214276",
"0.53212297",
"0.53166646",
"0.53103566",
"0.5303048",
"0.52954876",
"0.52880985",
"0.5277359",
"0.5274948",
"0.5271992",
"0.52647984",
"0.5261612",
"0.52588147",
"0.52587295",
"0.5258467",
"0.5256821",
"0.525669",
"0.5254234",
"0.5251387",
"0.5247398",
"0.5241525",
"0.5236764",
"0.5233733",
"0.52304196",
"0.52260107",
"0.52187085",
"0.5216772",
"0.5207455",
"0.5201475",
"0.518859",
"0.51854473",
"0.5185304",
"0.51841116",
"0.5179921",
"0.5173683",
"0.5173369",
"0.51666903",
"0.5158",
"0.51517725",
"0.5151448",
"0.51498544",
"0.5148538",
"0.5144925",
"0.5143305",
"0.51432055",
"0.5140848",
"0.5137001",
"0.51356965",
"0.5134477",
"0.51208466",
"0.5120723",
"0.5107993",
"0.5107377",
"0.5102545",
"0.51002574",
"0.50945437",
"0.5089453",
"0.508917",
"0.507534",
"0.50746095",
"0.5069309",
"0.50661063"
] | 0.53987586 | 31 |
this method is called when error response received from server | @Override
protected void onGetDataFailed(String message) {
Toast.makeText(getContext(), message, Toast.LENGTH_LONG).show();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\t\t\t\tpublic void onErrorResponse(String errorResponse) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onErrorResponse(String errorMessage) {\n\r\n\t\t\t}",
"@Override\n\t\t\tpublic void handleError(ClientHttpResponse response) throws IOException {\n\t\t\t\t\n\t\t\t}",
"void errorResponse( String error );",
"@Override\n public void onResponceError(final ErrorCode errorCode) {\n }",
"@Override\n\t\t\t\t\t\tpublic void onErrorResponse(VolleyError error) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tLog.e(\"Exception json\", \"\"+error);;\n\t\t\t\t\t\t\tshowProgress(false);\n\t\t\t\t\t\t\tToast.makeText(getBaseContext(), \"Error in connecting to Server\", Toast.LENGTH_LONG).show();\n\t\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\t\t}",
"@Override\n\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\n\t\t}",
"@Override\n public void onErrorResponse(VolleyError arg0) {\n }",
"@Override\n public void onErrorResponse(VolleyError arg0) {\n }",
"public void handleError(ClientHttpResponse response) throws IOException {\n }",
"@Override\n\t\t\tpublic void onNetworkError() {\n\n\t\t\t}",
"@Override\n public void onErrorResponse(VolleyError error) {\n\n NetworkResponse networkResponse = error.networkResponse;\n Log.i(\"Checking\", new String(error.networkResponse.data));\n if(networkResponse != null && networkResponse.data != null)\n {\n switch (networkResponse.statusCode)\n {\n\n default:\n break;\n }\n }\n }",
"@Override\r\n\t\t\t\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\r\n\t\t\t\t\t\t}",
"@Override\n public void onErrorResponse(VolleyError error) {\n handleVolleyError(error);\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n Log.i(\"TAG\", \"onErrorResponse=\" + error.getMessage());\n progress.dismissAllowingStateLoss();\n if (error instanceof TimeoutError)\n ToastUtils.showToast(ResetActivity.this, \"请求超时\");\n else if (error instanceof NoConnectionError)\n ToastUtils.showToast(ResetActivity.this, \"没有网络连接\");\n else if (error instanceof ServerError)\n ToastUtils.showToast(ResetActivity.this, \"服务器异常 注册失败\");\n if (tag == 0) {\n\n }\n }",
"protected void onConnectionError() {\n\t}",
"@Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Error!!\",\"Connection To server error \"+error.toString());\n }",
"@Override\r\n\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\tonMyError(arg0);\r\n\t\t\t}",
"@Override\n public void onErrorResponse(VolleyError error) {\n System.out.println(\"ERRO: \"+ error.getMessage());\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n try{\n Log.d(\"wsrong\",error.getMessage());\n }catch(NullPointerException ex)\n {\n Toast.makeText(context,\"Server issue try later\", Toast.LENGTH_LONG).show();\n Log.d(\"wsrong\",ex.getMessage());\n }\n }",
"@Override\n\tpublic void onError(ErrorResponse errorResponse) {\n\t\t\n\t}",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\r\n public void onErrorResponse(VolleyError error) {\n }",
"public void onReceivedError();",
"@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n error.printStackTrace();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(TAG, \"getDataFromUrl.onErrorResponse: \" + error);\n\n }",
"@Override\n public void onErrorResponse(VolleyError volleyError) { //when error listener is activated\n Log.i(\"volley\", volleyError.toString());\n }",
"@Override\n public void onErrorResponse(VolleyError volleyError) { //when error listener is activated\n Log.i(\"volley\", volleyError.toString());\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n }",
"@Override\n\t\t\t\t\tpublic void onErrorResponse(VolleyError arg0) {\n\t\t\t\t\t\tToast.makeText(GetPersonalInfoActivity.this, \"网络连接异常!\",\n\t\t\t\t\t\t\t\t1000).show();\n\t\t\t\t\t}",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"public void onConnectionError()\n\t\t{\n\t\t}",
"@Override\n\tpublic void onErrorResponse(VolleyError error) {\n\n\t}",
"@Override\n\t\t\tpublic void onError(int httpcode) {\n\t\t\t\t\n\t\t\t}",
"protected void serverError() throws IOException {\n cleanup();\n throw new IOException(\"Recieved error message from server:\\n\" + new String(_text_buffer));\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n\n NetworkResponse networkResponse = error.networkResponse;\n if (networkResponse != null) {\n String statusCode = String.valueOf(networkResponse.statusCode);\n switch (statusCode) {\n case \"400\":\n Toast.makeText(CreateTour.this, \"ERROR 400\", Toast.LENGTH_SHORT).show();\n break;\n case \"500\":\n Toast.makeText(CreateTour.this, \"ERROR 500\", Toast.LENGTH_SHORT).show();\n break;\n default:\n Toast.makeText(CreateTour.this, \"ERROR\", Toast.LENGTH_SHORT).show();\n }\n }\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"ParentInfo\", \"ERROR.._---\" + error.getCause());\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"ParentInfo\", \"ERROR.._---\" + error.getCause());\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(getActivity(), \"Error Servidor: \" + error.getMessage(), Toast.LENGTH_LONG).show();\n if (error.getMessage() != null) {\n Log.i(\"Error Servidor: \", error.getMessage());\n } else {\n Log.i(\"Error Servidor: \", \"Error desconocido\");\n }\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n\n }",
"@Override\n public void errorReceived(Exception ex) {\n }",
"@Override\n public void errorReceived(Exception ex) {\n }",
"@Override\n\tprotected void onResponseFailure(ReqTag tag, MamaHaoServerError error,\n\t\t\tMamaHaoError clientError) {\n\t\tsuper.onResponseFailure(tag, error, clientError);\n\t}",
"@Override\n protected void handleErrorResponseCode(int code, String message) {\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"WAFAA\", error.toString());\n }",
"@Override\n public void visitError(@NonNull ServerError error) {\n Log.d(\"Serv err\", error.toString());\n }",
"@Override\r\n\t\t\t\t\tpublic void onError(Exception e) {\n\t\t\t\t\t\tLog.e(\"HttpPost\", \"LIES \" + e.getMessage());\r\n\r\n\t\t\t\t\t}",
"@Override\r\n\t\tpublic void error(ResponseError error) {\n\t\t\tTools.toastShow(error.getMessage());\r\n\t\t}",
"@Override\r\n\t\tpublic void error(ResponseError error) {\n\t\t\tTools.toastShow(error.getMessage());\r\n\t\t}",
"@Override\n public void onErrorResponse(VolleyError volleyError) {\n\n }",
"private void failedClientResponse(String error) {\n JSONObject j = new JSONObject();\n j.put(\"statuscode\", 400);\n j.put(\"sequence\", ++sequence);\n j.put(\"response\", new JSONArray().add(error));\n output.println(j);\n output.flush();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n try {\n//\t\t\t\t\t\t\tSystem.out.println(\"--error---------------->\"+error);\n Log.e(\"LOGIN-ERROR\", error.getMessage(), error);\n byte[] htmlBodyBytes = error.networkResponse.data;\n Log.e(\"LOGIN-ERROR\", new String(htmlBodyBytes), error);\n//\t\t\t\t \tSystem.out.println(error.networkResponse.statusCode+\"----------------------->\"+new String(htmlBodyBytes));\n } catch (Exception e) {\n // TODO: handle exception\n } finally {\n if (error.networkResponse == null) {\n callback.getResult(\"error\");\n } else {\n callback.getResult(\"\");\n }\n }\n\n }",
"@Override\n\t\t\t\tpublic void onNetworkError(Request request, IOException e) {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public void onVolleyError(VolleyError error) {\n\n }",
"@Override\n\t\tpublic void onFailure(HttpException error, String msg) {\n\t\t\t\n\t\t}",
"@Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"ERROR111\", \"error => \" + error.toString());\n\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n onApiError();\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n System.out.println(error.toString());\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n //This code is executed if there is an error.\n System.out.println(error.toString());\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n\n }",
"@Override\n\t\t\t\t\tpublic void httpFail(String response) {\n\t\t\t\t\t}",
"@Override\r\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(MyQuestionActivity.this, \"网络请求失败\", Toast.LENGTH_SHORT).show();\r\n }",
"@Override\n public void onErrorResponse(VolleyError error){\n }",
"@Override\n public void onErrorResponse(VolleyError error){\n }"
] | [
"0.78976697",
"0.78607553",
"0.76497436",
"0.7640729",
"0.7634966",
"0.75955796",
"0.75413716",
"0.7509095",
"0.7504448",
"0.7504448",
"0.74879164",
"0.74625593",
"0.74625593",
"0.7458826",
"0.7456179",
"0.7448769",
"0.7444727",
"0.7437023",
"0.7418839",
"0.74164796",
"0.7410405",
"0.741036",
"0.7392749",
"0.73889065",
"0.73826236",
"0.7369693",
"0.7369693",
"0.7369693",
"0.7369693",
"0.7369693",
"0.7369693",
"0.7369693",
"0.7369693",
"0.7360851",
"0.735414",
"0.7350601",
"0.7350601",
"0.7350601",
"0.7350601",
"0.7350601",
"0.7350601",
"0.7350601",
"0.7350601",
"0.7350601",
"0.7350601",
"0.7350601",
"0.7350601",
"0.73450404",
"0.7318371",
"0.7318371",
"0.73134613",
"0.73134613",
"0.73134613",
"0.73134613",
"0.7304863",
"0.7294587",
"0.7294587",
"0.7285745",
"0.7285701",
"0.7271665",
"0.72630686",
"0.72506946",
"0.7237933",
"0.7216264",
"0.7216264",
"0.7216264",
"0.7216264",
"0.72129184",
"0.71969527",
"0.71969527",
"0.7193369",
"0.7193369",
"0.7193369",
"0.7192761",
"0.71570414",
"0.71570414",
"0.71570414",
"0.7155453",
"0.7155453",
"0.7145102",
"0.7136467",
"0.71245086",
"0.712119",
"0.71152186",
"0.711145",
"0.711145",
"0.71101665",
"0.7098565",
"0.7098036",
"0.7092483",
"0.70787144",
"0.7076122",
"0.70638716",
"0.7041183",
"0.70270586",
"0.70270586",
"0.70250624",
"0.7020798",
"0.7019045",
"0.70070356",
"0.70070356"
] | 0.0 | -1 |
An interface that represents a shortest path algorithm | public interface Dijkstra<V,E>
{
/**
* Sets the graph to use in computation
*/
public void setGraph(Graph<V,E> graph);
/**
* Sets the start vertex the algorithm will use in computation
* @throws IllegalArgumentException if the start vertex does not exist in the graph
* @throws IllegalStateException if no graph has been set
*/
public void setStart(int startId) throws IllegalArgumentException, IllegalStateException;
/**
* Sets the weighing to be used in computing the cost of traversing an edge
*/
public void setWeighing(Weighing<E> weighing);
/**
* Computes the shortest path to all vertices from the start vertex in the graph
* using the weighing function
* @throws IllegalStateException if the graph, start vertex, or weighing object have not been set
*/
public void computeShortestPath() throws IllegalStateException;
/**
* Returns the path from the start vertex to the end vertex provided
* @return a list representing the shortest path. The first element is the start vertex, and the last
* is the end vertex.
* @throws IllegalArgumentException if endId is not a vertex in the graph
* @throws IllegalStateException if computeShortestPath has not been called since any of the set methods
* were last called
*/
public List<Integer> getPath(int endId) throws IllegalArgumentException, IllegalStateException;
/**
* Returns the cost of the shortest path from the start vertex to the end vertex where
* cost is defined by the sum of the weights of all the edges that connects the path as
* defined by the weighing object.
* @throws IllegalArgumentException if endId is not a vertex in the graph
* @throws IllegalStateException if computeShortestPath has not been called since any of the set methods
* were last called
*/
public double getCost(int endId) throws IllegalArgumentException, IllegalStateException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<node_info> shortestPath(int src, int dest);",
"public interface RoutingAlgorithm {\n public void initMapInfo(int[][] map);\n public int getShortestPath(int start,int end);\n}",
"public interface PathCalculationStrategy {\n\t\n\t/**\n\t * Returns the shortest path for a Journey.\n\t * \n\t * @param grid the traffic grid.\n\t * @param src the source location.\n\t * @param dest the destination location.\n\t * \n\t * @return a List containing the path for the Journey.\n\t */\n\tList<Point> getPath(int grid[][], Point src, Point dest);\n}",
"public interface Dijkstra<V> {\r\n\t// Constructor: public Dijkstra(DiGraph<V> graph);\r\n\r\n\t/**\r\n\t * Uses Dijkstra's shortest path algorithm to calculate and store the shortest\r\n\t * paths to every vertex in the graph as well as the total costs of each of\r\n\t * those paths. This should run in O(E log V) time, where E is the size of the\r\n\t * edge set, and V is the size of the vertex set.\r\n\t * \r\n\t * @param start the vertex from which shortest paths should be calculated\r\n\t */\r\n\tvoid run(V start);\r\n\r\n\t/**\r\n\t * Retrieve, in O(V) time, the pre-calculated shortest path to the given node.\r\n\t * \r\n\t * @param vertex the vertex to which the shortest path, from the start vertex,\r\n\t * is being requested\r\n\t * @return a list of vertices comprising the shortest path from the start vertex\r\n\t * to the given destination vertex, both inclusive\r\n\t */\r\n\tList<V> getShortestPath(V vertex);\r\n\r\n\t/**\r\n\t * Retrieve, in constant time, the total cost to reach the given vertex from the\r\n\t * start vertex via the shortest path. If there is no path, this value is\r\n\t * Integer.MAX_VALUE.\r\n\t * \r\n\t * @param vertex the vertex to which the cost of the shortest path, from the\r\n\t * start vertex, is desired\r\n\t * @return the cost of the shortest path to the given vertex from the start\r\n\t * vertex or Integer.MAX_VALUE if there is path\r\n\t */\r\n\tint getShortestDistance(V vertex);\r\n}",
"void shortestPath( final VertexType fromNode, Integer node );",
"interface GraphSearchEngine {\n\t/**\n\t * Finds a shortest path, if one exists, between nodes s and t. The path will be\n\t * a list: (s, ..., t). If no path exists, then this method will return null.\n\t * \n\t * @param s\n\t * the start node.\n\t * @param t\n\t * the target node.\n\t * @return a shortest path in the form of a List of Node objects or null if no\n\t * path exists.\n\t */\n\tpublic List<Node> findShortestPath(Node s, Node t);\n}",
"public interface AllPairsShortestPathAlgo\n{\n long[][]getDistances(Graph g);\n}",
"public interface OneToNAlgorithm {\n\t/**\n\t * Runs the algorithm.\n\t * @param source Source to start the algorithm.\n\t * @param request Request for which the algorithm has to run.\n\t */\n\tvoid computePathsToAnyNodeFrom(Node source, Request request);\n\n\t/**\n\t * Gets the Path obtained by the algorithm to a given destination.\n\t * @param destination Destination of the Path that must be returned.\n\t * @return The found shortest path or null if PATH found.\n\t * @throws RoutingException if 'computePathsToAnyNodeFrom' has never been\n\t * called before.\n\t */\n\tPath getPathFromNodeTo(Node destination);\n}",
"public interface SearchSolver {\n\n /**\n * initializes the algorithm. This method has to be called before calling any other method\n * @param graph the graph of the map where the search takes place\n * @param targetStart the start position for the target (in our case the thief)\n * @param searchStart the start position for the searcher (in our case the police)\n * @param counter the counter object that counts the expanded nodes\n */\n void initialize(Graph graph, Node targetStart, Node searchStart, ExpandCounter counter);\n\n /**\n * gets the shortest path from search start to target\n * @return list of edges that describe the path\n * @throws NoPathFoundException if there is no path to the target\n */\n List<Edge> getPath() throws NoPathFoundException;\n}",
"public interface GraphSearchAlgorythm<T> {\n List<GraphEdge<T>> getPath(GraphVerticesStore<T> Vertices, T from, T to);\n}",
"public interface GraphInterface {\n\n\t/**\n\t * Finds the shortest path between the start and end vertices.\n\t * @param start -- The starting node\n\t * @param end -- The target node\n\t * @return A list representing the desired path, or NULL if the vertices are not connected.\n\t * @throws GraphException if start and end are not in the graph\n\t */\n\tIterable<Vertex> computePath(Vertex start, Vertex end) throws GraphException;\n\t\n\t/**\n\t * Finds the shortest path between the start and end vertices, given that start is not in the graph\n\t * @param start -- The starting node\n\t * @param end -- The target node\n\t * @return A list representing the desired path, or NULL if the vertices are not connected.\n\t * @throws GraphException if end is not in the graph\n\t */\n\tIterable<Vertex> computePathToGraph(Loc start, Vertex end) throws GraphException;\n\t\n\t/**\n\t * Finds the closest vertex to pos in the graph\n\t * @param pos -- The position not on the graph.\n\t * @return closest vertex to pos in the graph.\n\t */\n\tPair<Vertex, Double> closestVertexToPath(Loc pos);\n\t\n\t/**\n\t * adds a single unconnected vertex v \n\t * @param v -- The vertex to be added\n\t */\n\tvoid addVertex(Vertex v);\n\t\n\t/**\n\t * Adds a single vertex with edges (v, neighbor) for each neighbor\n\t * @param v -- The vertex to be added\n\t * @param neighbors -- The neighbors of v\n\t * @param weights -- The corresponding weights of each (v, neighbor)\n\t * @throws VertexNotInGraphException if neighbors are not in the graph\n\t */\n\tvoid addVertex(Vertex v, ArrayList<Vertex> neighbors, ArrayList<Double> weights) throws VertexNotInGraphException;\n\t\n\t/**\n\t * Removes v from the Graph\n\t * @param v -- The vertex to be removed\n\t * @throws VertexNotInGraphException if v is not in the graph\n\t */\n\tvoid removeVertex(Vertex v) throws GraphException;\n\t\n\t/**\n\t * Adds an edge between v1 and v2 in the graph\n\t * @param v1 -- The first vertex the edge is incident to\n\t * @param v2 -- The second vertex the edge is incident to\n\t * @param w -- The weight of the edge\n\t * @throws VertexNotInGraphException if v1 or v2 are not in the graph\n\t */\n\tvoid addEdge(Vertex v1, Vertex v2, Double w) throws VertexNotInGraphException;\n\t\n\t/**\n\t * Removes the edge (v1, v2) in the graph\n\t * @param v1 -- The first vertex the edge is incident to\n\t * @param v2 -- The second vertex the edge is incident to\n\t * @throws VertexNotInGraphException if v1 or v2 are not in the graph\n\t */\n\tvoid removeEdge(Vertex v1, Vertex v2) throws GraphException;\n}",
"@Override\n public List dijkstrasShortestPath(T start, T end) {\n Vertex<T> origin = new Vertex<>(start);\n Vertex<T> destination = new Vertex<>(end);\n List<Vertex<T>> path;\n\n settledNodes = new HashSet<>();\n unSettledNodes = new HashSet<>();\n distancesBetweenNodes = new HashMap<>();\n predecessors = new HashMap<>();\n\n distancesBetweenNodes.put(origin,0);\n unSettledNodes.add(origin);\n\n while(unSettledNodes.size() > 0){\n Vertex<T> minimumWeightedVertex = getMinimum(unSettledNodes);\n settledNodes.add(minimumWeightedVertex);\n unSettledNodes.remove(minimumWeightedVertex);\n findMinimumDistance(minimumWeightedVertex);\n }\n path = getPath(destination);\n return path;\n\n }",
"ShortestPath(UndirectedWeightedGraph graph, String startNodeId, String endNodeId) throws NotFoundNodeException {\r\n\t\t\r\n\t\tif (!graph.containsNode(startNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, startNodeId);\r\n\t\t}\t\t\r\n\t\tif (!graph.containsNode(endNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, endNodeId);\r\n\t\t}\t\r\n\r\n\t\tsrc = startNodeId;\r\n\t\tdst = endNodeId;\r\n\t\t\r\n\t\tif (endNodeId.equals(startNodeId)) {\r\n\t\t\tlength = 0;\r\n\t\t\tnumOfPath = 1;\r\n\t\t\tArrayList<String> path = new ArrayList<String>();\r\n\t\t\tpath.add(startNodeId);\r\n\t\t\tpathList.add(path);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// create a HashMap of updated distance from the starting node to every node\r\n\t\t\t// initially it is 0, inf, inf, inf, ...\r\n\t\t\tHashMap<String, Double> distance = new HashMap<String, Double>();\t\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif (nodeId.equals(startNodeId)) {\r\n\t\t\t\t\t// the starting node will always have 0 distance from itself\r\n\t\t\t\t\tdistance.put(nodeId, 0.0);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// the others have initial distance is infinity\r\n\t\t\t\t\tdistance.put(nodeId, Double.MAX_VALUE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// a HashMap of preceding node of each node\r\n\t\t\tHashMap<String, HashSet<String>> precedence = new HashMap<String, HashSet<String>>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif ( nodeId.equals(startNodeId) ) {\r\n\t\t\t\t\tprecedence.put(nodeId, null);\t// the start node will have no preceding node\r\n\t\t\t\t}\r\n\t\t\t\telse { \r\n\t\t\t\t\tprecedence.put(nodeId, new HashSet<String>());\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\tSet<String> unvisitedNode = new HashSet<String>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tunvisitedNode.add(nodeId);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdouble minUnvisitedLength;\r\n\t\t\tString minUnvisitedNode;\r\n\t\t\t// run loop while not all node is visited\r\n\t\t\twhile ( unvisitedNode.size() != 0 ) {\r\n\t\t\t\t// find the unvisited node with minimum current distance in distance list\r\n\t\t\t\tminUnvisitedLength = Double.MAX_VALUE;\r\n\t\t\t\tminUnvisitedNode = \"\";\r\n\t\t\t\tfor (String nodeId : unvisitedNode) {\r\n\t\t\t\t\tif (distance.get(nodeId) < minUnvisitedLength) {\r\n\t\t\t\t\t\tminUnvisitedNode = nodeId;\r\n\t\t\t\t\t\tminUnvisitedLength = distance.get(nodeId); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// if there are no node that can be visited from the unvisitedNode, break the loop \r\n\t\t\t\tif (minUnvisitedLength == Double.MAX_VALUE) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// remove the node from unvisitedNode\r\n\t\t\t\tunvisitedNode.remove(minUnvisitedNode);\r\n\t\t\t\t\r\n\t\t\t\t// update the distance of its neighbors\r\n\t\t\t\tfor (Node neighborNode : graph.getNodeList().get(minUnvisitedNode).getNeighbors().keySet()) {\r\n\t\t\t\t\tdouble distanceFromTheMinNode = distance.get(minUnvisitedNode) + graph.getNodeList().get(minUnvisitedNode).getNeighbors().get(neighborNode).getWeight();\r\n\t\t\t\t\t// if the distance of the neighbor can be shorter from the current node, change \r\n\t\t\t\t\t// its details in distance and precedence\r\n\t\t\t\t\tif ( distanceFromTheMinNode < distance.get(neighborNode.getId()) ) {\r\n\t\t\t\t\t\tdistance.replace(neighborNode.getId(), distanceFromTheMinNode);\r\n\t\t\t\t\t\t// renew the precedence of the neighbor node\r\n\t\t\t\t\t\tprecedence.put(neighborNode.getId(), new HashSet<String>());\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (distanceFromTheMinNode == distance.get(neighborNode.getId())) {\r\n\t\t\t\t\t\t// unlike dijkstra's algorithm, multiple path should be update into the precedence\r\n\t\t\t\t\t\t// if from another node the distance is the same, add it to the precedence\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// if the current node in the process is the end node, we can stop the while loop here\r\n\t\t\t\tif (minUnvisitedNode == endNodeId) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (distance.get(endNodeId) == Double.MAX_VALUE) {\r\n\t\t\t\t// in case there is no shortest path between the 2 nodes\r\n\t\t\t\tlength = 0;\r\n\t\t\t\tnumOfPath = 0;\r\n\t\t\t\tpathList = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// other wise we have these information\r\n\t\t\t\tlength = distance.get(endNodeId);\r\n\t\t\t\t//numOfPath = this.getNumPath(precedence, startNodeId, endNodeId);\r\n\t\t\t\tpathList = this.findPathList(precedence, startNodeId, endNodeId);\r\n\t\t\t\tnumOfPath = pathList.size();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\t// END ELSE\t\t\r\n\t}",
"void shortestPaths( Set<Integer> nodes );",
"public int doDijkstras(String startVertex, String endVertex, ArrayList<String> shortestPath)\r\n\t{\r\n\t\tif(!this.dataMap.containsKey(startVertex) || !this.dataMap.containsKey(endVertex))\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"Vertex does not exist in the graph!\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSet<String> visited = new HashSet<String>();\r\n\t\t\r\n\t\tPriorityQueue<Vertex> minDist = new PriorityQueue<Vertex>();\r\n\t\t\r\n\t\tVertex firstV = new Vertex(startVertex,startVertex,0);\r\n\t\tminDist.add(firstV);\r\n\t\t\r\n\t\tfor(String V : this.adjacencyMap.get(startVertex).keySet())\r\n\t\t{\r\n\t\t\tminDist.add(new Vertex(V,startVertex,this.getCost(startVertex, V)));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//map of vertexName --> VertexObject\r\n\t\tHashMap<String, Vertex> mapV = new HashMap<String,Vertex>();\r\n\t\tmapV.put(startVertex, firstV);\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Init keys-->costs\r\n\t\t */\r\n\t\tfor(String key : this.getVertices())\r\n\t\t{\r\n\t\t\tif(key.equals(startVertex))\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,0));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,Integer.MAX_VALUE));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t/*\r\n\t\t * Init List for shortest path\r\n\t\t */\r\n\t\tLinkedList<String> list = new LinkedList<String>();\r\n\t\tlist.add(startVertex);\r\n\r\n\t\tHashMap<String,List<String>> path = new HashMap<String,List<String>>();\r\n\t\tpath.put(startVertex, list);\r\n\t\t\r\n\t\twhile(!minDist.isEmpty())\r\n\t\t{\r\n\t\t\tVertex node = minDist.poll();\r\n\t\t\tString V = node.current;\r\n\t\t\tint minimum = node.cost;\r\n\t\t\tSystem.out.println(minDist.toString());\r\n\t\t\t\r\n\t\t\t\tvisited.add(V);\r\n\t\t\t\t\r\n\t\t\t\tTreeSet<String> adj = new TreeSet<String>(this.adjacencyMap.get(V).keySet());\r\n\t\t\t\t\r\n\t\t\t\tfor(String successor : adj)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(!visited.contains(successor) && !V.equals(successor))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint newCost = this.getCost(V, successor)+minimum;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(newCost < mapV.get(successor).cost)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tminDist.remove(mapV.get(successor));\r\n\t\t\t\t\t\t\t\tminDist.add(new Vertex(successor,V,newCost));\r\n\t\t\t\t\t\t\t\tmapV.put(successor, new Vertex(successor,V,newCost));\r\n\r\n\t\t\t\t\t\t\t\tLinkedList<String> newList = new LinkedList<String>(path.get(V));\r\n\t\t\t\t\t\t\t\tnewList.add(successor);\r\n\t\t\t\t\t\t\t\tpath.put(successor, newList);\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\t\r\n\t\t}\r\n\t\t\r\n\t\tint smallestPath = mapV.get(endVertex).cost == Integer.MAX_VALUE ? -1 : mapV.get(endVertex).cost;\r\n\t\t\r\n\t\tif(smallestPath == -1)\r\n\t\t{\r\n\t\t\tshortestPath.add(\"None\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(String node : path.get(endVertex))\r\n\t\t\t{\r\n\t\t\t\tshortestPath.add(node);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn smallestPath;\r\n\t}",
"public Stack<Point> shortestPath() {\n\t\tresetVisited();\n\t\tStack <Point> shortestPath = new Stack<Point>();\n\t\tprev = new HashMap<Point,Point>();\n\t\tCompass[] direction = Compass.values();\n\t\tQueue <Point> path = new LinkedList<Point>();\n\t\tpath.add(playerStart);\n\t\twhile(!path.isEmpty()) {\n\t\t\tPoint current = path.poll();\n\t\t\tfor (Compass pointing: direction) {\n\t\t\t\tif (current.equals(goal)) {\n\t\t\t\t\tshortestPath.push(current);\n\t\t\t\t\twhile (prev.containsKey(shortestPath.peek()) && !shortestPath.peek().equals(playerStart)){\n\t\t\t\t\t\tshortestPath.push(prev.get(shortestPath.peek()));\n\t\t\t\t\t}\n\t\t\t\t\treturn shortestPath;\n\t\t\t\t}\n\t\t\t\tint nextW = (int)current.getX() + pointing.mapX;\n\t\t\t\tint nextH = (int)current.getY() + pointing.mapY;\n\t\t\t\tPoint nextPoint = new Point(nextW, nextH);\n\t\t\t\tif (arrayBounds(nextW, width) && arrayBounds (nextH, height) && maze[nextW][nextH] == 0 && !visited.contains(nextPoint)) {\n\t\t\t\t\tpath.add(nextPoint);\n\t\t\t\t\tvisited.add(nextPoint);\n\t\t\t\t\tprev.put(nextPoint, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shortestPath;\t\t\n\t}",
"public interface AStarGraph {\n List<WeightedEdge> neighbors(Position v);\n double estimatedDistanceToGoal(Position s, Position goal);\n}",
"private static void shortestPath(Graph graph, Character startNode, int algorithm) {\n Node currentNode = graph.getNode(startNode);\n\n // keep track of the nodes visited\n List<Character> nodesVisited = new ArrayList<>();\n\n // add the current node\n nodesVisited.add(currentNode.getName());\n\n // breadth first search to help keep track of the nodes we have already visited\n // helps with backtracking\n Stack<Node> visitingNodes = new Stack<>();\n\n // loop through the graph\n while (currentNode != graph.getNode('Z')) {\n // we have visited a node\n // add it to the stack\n // set true to since its been visited and it will be in the shortest path\n visitingNodes.add(currentNode);\n currentNode.setNodeVisited(true);\n currentNode.setInShortestPath(true);\n\n // get all the edges that are connected to the current node we are on\n List<Edge> adjacentNodes = currentNode.getNeighbors();\n\n // temp for next node\n Node nextNode = null;\n int weightDistanceTotal = Integer.MAX_VALUE;\n\n for (Edge i: adjacentNodes) {\n // testing\n // System.out.println(i.destination.getName());\n // System.out.println(i.destination.getDistanceToZ());\n\n // 1. always check to see if we have visited the node\n if (i.destination.isNodeVisited()) {\n // System.out.println(i.destination.getName() + \" is already in the path\");\n continue;\n }\n\n // 2. assign the next node to the destination\n if (nextNode == null) {\n nextNode = i.destination;\n }\n\n // compare distances\n if (algorithm == 1) {\n nextNode = updateNextNodeAlgo1(nextNode, i.destination);\n } else {\n NodeWithWeightDistanceTotal nodeWithWeightDistanceTotal = updateNextNodeAlgo2(nextNode, i, weightDistanceTotal);\n nextNode = nodeWithWeightDistanceTotal.node;\n weightDistanceTotal = nodeWithWeightDistanceTotal.weightDistanceTotal;\n }\n //if (nextNode.getDistanceToZ() > i.destination.getDistanceToZ()) {\n // nextNode = i.destination;\n //}\n }\n\n // next has no other edges\n if (nextNode == null) {\n // System.out.println(\"There no place to go from \" + currentNode.getName());\n // pop off the node we just visited\n nextNode = visitingNodes.pop();\n // its not in the shortest path to Z\n nextNode.setInShortestPath(false);\n // set the next node to the previous node\n nextNode = visitingNodes.pop();\n }\n\n // add the nodes we visit to keep track of the path\n nodesVisited.add(nextNode.getName());\n\n // System.out.println(Arrays.toString(nodesVisited.toArray()));\n // testing purposes to see if the node is on the shortest path\n\n// for (Character node: nodesVisited) {\n// Node boolVisit = graph.getNode(node);\n// System.out.println(boolVisit.isInShortestPath());\n// }\n\n // progress to the next node\n currentNode = nextNode;\n // when visiting the last node mark z in the shortest path\n if (currentNode.getName() == 'Z') {\n currentNode.setInShortestPath(true);\n }\n // testing\n // System.out.println(\"next node = \" + currentNode.getName());\n }\n\n // keep track of the path visited and the total addition of weights\n int pathCounter = 0;\n\n // construct the shortest path\n List<Node> shortestPath = new ArrayList<>();\n\n for (Character nodeVisitor: nodesVisited) {\n // get the node\n Node node = graph.getNode(nodeVisitor);\n\n // add to the shortest path\n if (node.isInShortestPath() && !shortestPath.contains(node)) {\n shortestPath.add(node);\n }\n }\n\n // print the shortest path\n for (int i = 0; i < shortestPath.size() - 1; i++) {\n currentNode = shortestPath.get(i);\n Node nextNode = shortestPath.get(i + 1);\n\n // find the weight of that node\n int weight = currentNode.findWeight(nextNode);\n pathCounter += weight;\n\n // System.out.println(\"weight \" + weight);\n // System.out.println(\"path total \" + pathCounter);\n }\n\n // final output\n String fullPathSequence = \"\";\n String shortestPathSequence = \"\";\n\n for (int i = 0; i < nodesVisited.size(); i++) {\n if (i != nodesVisited.size() - 1) {\n fullPathSequence += nodesVisited.get(i) + \" -> \";\n }\n }\n\n fullPathSequence += nodesVisited.get(nodesVisited.size() - 1);\n\n for (int i = 0; i < shortestPath.size(); i++) {\n if (i != shortestPath.size() - 1) {\n shortestPathSequence += shortestPath.get(i).getName() + \" -> \";\n }\n }\n\n if (currentNode.getName() == 'Z') {\n shortestPathSequence += \"Z\";\n } else {\n shortestPathSequence += shortestPath.get(shortestPath.size() - 1).getName();\n }\n\n System.out.println(\"Algorithm \" + algorithm + \" : \");\n System.out.println(\"Sequence of all nodes \" + fullPathSequence);\n System.out.println(\"Shortest path: \" + shortestPathSequence);\n System.out.println(\"Shortest path length: \" + pathCounter);\n System.out.println(\"\\n\");\n\n // reset the graph\n graph.graphReset();\n\n }",
"@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tList<node_data> ans = new ArrayList<>();\n\t\tthis.shortestPathDist(src, dest);\n\t\tif(this.GA.getNode(src).getWeight() == Integer.MAX_VALUE || this.GA.getNode(dest).getWeight() == Integer.MAX_VALUE){\n\t\t\tSystem.out.print(\"There is not a path between the nodes.\");\n\t\t\treturn null;\n\t\t}\n\t\tgraph copied = this.copy();\n\t\ttransPose(copied);\n\t\tnode_data first = copied.getNode(dest);\n\t\tans.add(first);\n\t\twhile (first.getKey() != src) {\n\t\t\tCollection<edge_data> temp = copied.getE(first.getKey());\n\t\t\tdouble check= first.getWeight();\n\t\t\tif(temp!=null) {\n\t\t\t\tfor (edge_data edge : temp) {\n\t\t\t\t\tif (copied.getNode(edge.getDest()).getWeight() + edge.getWeight() == check) {\n\t\t\t\t\t\tfirst = copied.getNode(edge.getDest());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tans.add(first);\n\t\t}\n\t\tList<node_data> ans2 = new ArrayList<>();\n\t\tfor (int i = ans.size()-1;i>=0;i--){\n\t\t\tans2.add(ans.get(i));\n\t\t}\n\t\treturn ans2;\n\t}",
"public List<Node> findPath(Vector2i start, Vector2i goal) {\n\t\tList<Node> openList = new ArrayList<Node>(); //All possible Nodes(tiles) that could be shortest path\n\t\tList<Node> closedList = new ArrayList<Node>(); //All no longer considered Nodes(tiles)\n\t\tNode current = new Node(start,null, 0, getDistance(start, goal)); //Current Node that is being considered(first tile)\n\t\topenList.add(current);\n\t\twhile(openList.size() > 0) {\n\t\t\tCollections.sort(openList, nodeSorter); // will sort open list based on what's specified in the comparator\n\t\t\tcurrent = openList.get(0); // sets current Node to first possible element in openList\n\t\t\tif(current.tile.equals(goal)) {\n\t\t\t\tList<Node> path = new ArrayList<Node>(); //adds the nodes that make the path \n\t\t\t\twhile(current.parent != null) { //retraces steps from finish back to start\n\t\t\t\t\tpath.add(current); // add current node to list\n\t\t\t\t\tcurrent = current.parent; //sets current node to previous node to strace path back to start\n\t\t\t\t}\n\t\t\t\topenList.clear(); //erases from memory since algorithm is finished, ensures performance is not affected since garbage collection may not be called\n\t\t\t\tclosedList.clear();\n\t\t\t\treturn path; //returns the desired result shortest/quickest path\n\t\t\t}\n\t\t\topenList.remove(current); //if current Node is not part of path to goal remove\n\t\t\tclosedList.add(current); //and puts it in closedList, because it's not used\n\t\t\tfor(int i = 0; i < 9; i++ ) { //8-adjacent tile possibilities\n\t\t\t\tif(i == 4) continue; //index 4 is the middle tile (tile player currently stands on), no reason to check it\n\t\t\t\tint x = (int)current.tile.getX();\n\t\t\t\tint y = (int)current.tile.getY();\n\t\t\t\tint xi = (i % 3) - 1; //will be either -1, 0 or 1\n\t\t\t\tint yi = (i / 3) - 1; // sets up a coordinate position for Nodes (tiles)\n\t\t\t\tTile at = getTile(x + xi, y + yi); // at tile be all surrounding tiles when iteration is run\n\t\t\t\tif(at == null) continue; //if empty tile skip it\n\t\t\t\tif(at.solid()) continue; //if solid cant pass through so skip/ don't consider this tile\n\t\t\t\tVector2i a = new Vector2i(x + xi, y + yi); //Same thing as node(tile), but changed to a vector\n\t\t\t\tdouble gCost = current.gCost + (getDistance(current.tile, a) == 1 ? 1 : 0.95); //*calculates only adjacent nodes* current tile (initial start is 0) plus distance between current tile to tile being considered (a)\n\t\t\t\tdouble hCost = getDistance(a, goal);\t\t\t\t\t\t\t\t// conditional piece above for gCost makes a more realist chasing, because without it mob will NOT use diagonals because higher gCost\n\t\t\t\tNode node = new Node(a, current, gCost, hCost);\n\t\t\t\tif(vecInList(closedList, a) && gCost >= node.gCost) continue; //is node has already been checked \n\t\t\t\tif(!vecInList(openList, a) || gCost < node.gCost) openList.add(node);\n\t\t\t}\n\t\t}\n\t\tclosedList.clear(); //clear the list, openList will have already been clear if no path was found\n\t\treturn null; //a default return if no possible path was found\n\t}",
"public Path getShortestPath() {\n\t\tNodeRecord startRecord = new NodeRecord(start, null, 0.0f, (float) heuristic.estimate(start), Category.OPEN);\n\n\t\t// Initialize the open list\n\t\tPathFindingList open = new PathFindingList();\n\t\topen.addRecordByEstimatedTotalCost(startRecord);\n\t\trecords.set(Integer.parseInt(startRecord.node.id), startRecord);\n\t\tNodeRecord current = null;\n\t\t\n\t\t// Iterate through processing each node\n\t\twhile (!open.isEmpty()) {\n\t\t\t// Find smallest element in the open list using estimatedTotalCost\n\t\t\tcurrent = open.getSmallestNodeRecordByEstimatedTotalCost();\n\n\t\t\t// If its the goal node, terminate\n\t\t\tif (current.node.equals(end)) break;\n\n\t\t\t// Otherwise get its outgoing connections\n\t\t\tArrayList<DefaultWeightedEdge> connections = g.getConnections(current.node);\n\t\t\t\n\t\t\t// Loop through each connection\n\t\t\tfor (DefaultWeightedEdge connection : connections) {\n\t\t\t\t// Get the cost and other information for end node\n\t\t\t Vertex endNode = g.graph.getEdgeTarget(connection);\n\t\t\t int endNodeRecordIndex = Integer.parseInt(endNode.id);\n NodeRecord endNodeRecord = records.get(endNodeRecordIndex); // this is potentially null but we handle it\n\t\t\t\tdouble newEndNodeCost = current.costSoFar + g.graph.getEdgeWeight(connection);\n\t\t\t\tdouble endNodeHeuristic = 0;\n\t\t\t\t\n\t\t\t\t// if node is closed we may have to skip, or remove it from closed list\t\n\t\t\t\tif( endNodeRecord != null && endNodeRecord.category == Category.CLOSED ){ \n\t\t\t\t\t// Find the record corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If we didn't find a shorter route, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Otherwise remove it from closed list\n\t\t\t\t\trecords.get(endNodeRecordIndex).category = Category.OPEN;\n\n\t\t\t\t\t// Use node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Skip if node is open and we've not found a better route\n\t\t\t\t} else if( endNodeRecord != null && endNodeRecord.category == Category.OPEN ){ \n\t\t\t\t\t// Here we find the record in the open list corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If our route isn't better, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Use the node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Otherwise we know we've got an unvisited node, so make a new record\n\t\t\t\t} else { // if endNodeRecord.category == Category.UNVISITED\n\t\t\t\t endNodeRecord = new NodeRecord();\n\t\t\t\t\tendNodeRecord.node = endNode;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\n\t\t\t\t\t// Need to calculate heuristic since this is new\n\t\t\t\t\tendNodeHeuristic = heuristic.estimate(endNode);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// We're here if we need to update the node\n\t\t\t\t// update the cost, estimate, and connection\n\t\t\t\tendNodeRecord.costSoFar = newEndNodeCost;\n\t\t\t\tendNodeRecord.edge = connection;\n\t\t\t\tendNodeRecord.estimatedTotalCost = newEndNodeCost + endNodeHeuristic;\n\n\t\t\t\t// Add it to the open list\n\t\t\t\tif ( endNodeRecord.category != Category.OPEN ) {\n\t\t\t\t\topen.addRecordByEstimatedTotalCost(endNodeRecord);\n\t\t\t\t\tendNodeRecord.category = Category.OPEN;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// We’ve finished looking at the connections for\n\t\t\t// the current node, so add it to the closed list\n\t\t\t// and remove it from the open list\n\t\t\topen.removeRecord(current);\n\t\t\tcurrent.category = Category.CLOSED;\n\t\t\trecords.set(Integer.parseInt(current.node.id), current);\n\t\t}\n\t\t\n\t\t// We’re here if we’ve either found the goal, or\n\t\t// if we’ve no more nodes to search, find which.\n\t\tif (!current.node.equals(end)) {\n\t\t\t// Ran out of nodes without finding the goal, no solution\n\t\t\treturn null;\n\t\t} else {\n\t\t // Compile the list of connections in the path\n\t\t\tArrayList<DefaultWeightedEdge> path = new ArrayList<>();\n\n\t\t\twhile (!current.node.equals(start)) {\n\t\t\t\tpath.add(current.edge);\n\t\t\t\t// Set current (NodeRecord) to is source.\n\t\t\t\tcurrent = records.get( Integer.parseInt(g.graph.getEdgeSource(current.edge).id) );\n\t\t\t}\n\n\t\t\t// Reverse the path, and return it\n\t\t\tCollections.reverse(path);\n\t\t\treturn new Path(g, path);\n\t\t}\n\n\t}",
"@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tint[] prev = new int[dwg.nodeSize()];\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\tprev[src%dwg.nodeSize()] = -1;\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t\tprev[u.getKey()%dwg.nodeSize()] = v.getKey();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tList<node_data> ans = new ArrayList<node_data>();\n\t\tint run = dest;\n\t\twhile(run != src) {\n\t\t\tans.add(0,dwg.getNode(run));\n\t\t\trun = prev[run%dwg.nodeSize()];\n\t\t}\n\t\tans.add(0, dwg.getNode(src));\n\n\t\treturn ans;\n\t}",
"@Override\n public List<node_info> shortestPath(int src, int dest) {\n int counter=0;//counter for index of listPath\n List<node_info> listPath=new ArrayList<node_info>();//The reverse list that is returned\n List<node_info> listResult=new ArrayList<node_info>();//the returned list\n if(!DijkstraHelp(src,dest)) return null;//if there is no path from src to dest\n if(src==dest) {\n listPath.add(this.ga.getNode(src));\n return listPath;\n }\n //the other case:\n node_info d=this.ga.getNode(dest);\n listPath.add(counter,d);//insert the dest in order to go from destination to source\n //counter++;\n weighted_graph gCopy=copy();\n Iterator<node_info> it=gCopy.getV().iterator();//run on the whole graph\n while(it.hasNext()){\n if(listPath.get(counter).getKey()==src) break;//if we finished\n if(gCopy.getV(listPath.get(counter).getKey()).contains(it.next())) {//remove the nodes that we were already checked if\n //they need to be insert to listPath\n continue;\n }\n Iterator<node_info> currentIt=gCopy.getV(listPath.get(counter).getKey()).iterator();//iterator on the ni-list of the\n //last node were insert to the listPath\n if(currentIt!=null) {\n node_info min=null;\n while (currentIt.hasNext()){\n node_info currentLoop=currentIt.next();\n if(currentLoop.getTag()+gCopy.getEdge(listPath.get(counter).getKey(),currentLoop.getKey())==\n listPath.get(counter).getTag()){//check if this is the node that appropriate to the shortest path\n min=currentLoop;\n }\n }\n listPath.add(min);//insert to listPath\n counter++;\n }\n }\n for(int i=listPath.size()-1;i>=0;i--){\n listResult.add(listPath.size()-i-1,listPath.get(i));//reverse the list\n }\n return listResult;\n }",
"@Override\r\n public List<V> shortestPath(V start, V destination) {\r\n Vertex a = null, b = null;\r\n try {\r\n Iterator<Vertex> vertexIterator = map.values().iterator();\r\n\r\n while (vertexIterator.hasNext()) {\r\n Vertex v = vertexIterator.next();\r\n if (start.compareTo(v.vertexName) == 0)\r\n a = v;\r\n if (destination.compareTo(v.vertexName) == 0)\r\n b = v;\r\n }\r\n if (a == null || b == null) {\r\n vertexIterator.next();\r\n }\r\n\r\n } catch (NoSuchElementException e) {\r\n throw e;\r\n }\r\n\r\n computePaths(map.get(start), destination);\r\n return getShortestPathTo(destination, start);\r\n }",
"private static void shortestPath(Map<Integer, DistanceInfo> distanceTable,\n int source, int destination)\n {\n // Backtrack using a stack, using the destination node\n Stack<Integer> stack = new Stack<>();\n stack.push(destination);\n\n // Backtrack by getting the previous node of every node and putting it on the stack.\n // Start at the destination.\n int previousVertex = distanceTable.get(destination).getLastVertex();\n while (previousVertex != -1 && previousVertex != source)\n {\n stack.push(previousVertex);\n previousVertex = distanceTable.get(previousVertex).getLastVertex();\n }\n\n if (previousVertex ==-1)\n {\n System.err.println(\"No path\");\n }\n else\n {\n System.err.println(\"Shortest path: \");\n while (! stack.isEmpty())\n {\n System.err.println(stack.pop());\n }\n }\n }",
"private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = new LinkedList<>();\n Path newPath = new Path(start, destination, newPathComposition);\n newPathComposition.add(seg);\n while (!seg.getOrigin().equals(start)) {\n Intersection s = seg.getOrigin();\n seg = pi.get(s);\n if(seg == null){\n throw new Exception();\n }\n newPathComposition.add(seg);\n }\n Collections.reverse(newPathComposition);\n newPath.setSegmentsOfPath(newPathComposition);\n return newPath;\n }",
"@Override\n public List<node_data> shortestPath(int src, int dest) {\n reset();\n for (node_data node : G.getV()) {\n node.setWeight(Double.POSITIVE_INFINITY);\n }\n\n DWGraph_DS.Node currentNode = (DWGraph_DS.Node) G.getNode(src);\n currentNode.setWeight(0);\n PriorityQueue<node_data> unvisitedNodes = new PriorityQueue(G.nodeSize(), weightComperator);\n unvisitedNodes.addAll(G.getV());\n HashMap<Integer, node_data> parent = new HashMap<>();\n parent.put(src, null);\n\n while (currentNode.getWeight() != Double.POSITIVE_INFINITY) {\n if (G.getNode(dest).getTag() == 1) {\n break;\n }\n for (edge_data edge : G.getE(currentNode.getKey())) {\n DWGraph_DS.Node neighbor = (DWGraph_DS.Node) G.getNode(edge.getDest());\n double tmpWeight = currentNode.getWeight() + edge.getWeight();\n if (tmpWeight < neighbor.getWeight()) {\n neighbor.setWeight(tmpWeight);\n unvisitedNodes.remove(neighbor);\n unvisitedNodes.add(neighbor);\n parent.put(neighbor.getKey(), currentNode);\n }\n }\n currentNode.setTag(1);\n if(currentNode.getKey()==dest) break;\n unvisitedNodes.remove(currentNode);\n currentNode = (DWGraph_DS.Node) unvisitedNodes.poll();\n }\n /*\n Rebuild the path list\n */\n if (!parent.keySet().contains(dest)) return null;\n List<node_data> pathList = new ArrayList<>();\n currentNode = (DWGraph_DS.Node) G.getNode(dest);\n while (parent.get(currentNode.getKey()) != null) {\n pathList.add(currentNode);\n currentNode = (DWGraph_DS.Node) parent.get(currentNode.getKey());\n }\n Collections.reverse(pathList);\n return pathList;\n }",
"public interface AStarGraph<Vertex> {\n /** Returns the list of outgoing edges from the given vertex. */\n List<WeightedEdge<Vertex>> neighbors(Vertex v);\n\n /**\n * Returns an estimated distance from vertex s to the goal vertex according to\n * the A* heuristic function for this graph.\n */\n double estimatedDistanceToGoal(Vertex s, Vertex goal);\n}",
"private void computeShortestPath(){\n T current = start;\n boolean atEnd = false;\n while (!unvisited.isEmpty()&& !atEnd){\n int currentIndex = vertexIndex(current);\n LinkedList<T> neighbors = getUnvisitedNeighbors(current); // getting unvisited neighbors\n \n //what is this doing here???\n if (neighbors.isEmpty()){\n \n }\n \n // looping through to find distances from start to neighbors\n for (T neighbor : neighbors){ \n int neighborIndex = vertexIndex(neighbor); \n int d = distances[currentIndex] + getEdgeWeight(current, neighbor);\n \n if (d < distances[neighborIndex]){ // if this distance is less than previous distance\n distances[neighborIndex] = d;\n closestPredecessor[neighborIndex] = current; // now closest predecessor is current\n }\n }\n \n if (current.equals(end)){\n atEnd = true;\n }\n else{\n // finding unvisited node that is closest to start node\n T min = getMinUnvisited();\n if (min != null){\n unvisited.remove(min); // remove minimum neighbor from unvisited\n visited.add(min); // add minimum neighbor to visited\n current = min;\n }\n }\n }\n computePath();\n totalDistance = distances[vertexIndex(end)];\n }",
"public LinkedList<Node> shortestPath() throws PathNotFoundException {\n // Which strategy shall we use?\n ApplicationConfiguration config = ApplicationConfiguration.getInstance();\n switch(config.getCurrentSearchAlgorithm()) {\n case A_STAR:\n return aStarPath();\n case BFS:\n return bfsPath();\n case DFS:\n return dfsPath();\n default:\n return null;\n }\n }",
"public void computeAllPaths(String source)\r\n {\r\n Vertex sourceVertex = network_topology.get(source);\r\n Vertex u,v;\r\n double distuv;\r\n\r\n Queue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\r\n \r\n \r\n // Switch between methods and decide what to do\r\n if(routing_method.equals(\"SHP\"))\r\n {\r\n // SHP, weight of each edge is 1\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + 1;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n else if (routing_method.equals(\"SDP\"))\r\n {\r\n // SDP, weight of each edge is it's propagation delay\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + u.adjacentVertices.get(key).propDelay;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n } \r\n }\r\n }\r\n else if (routing_method.equals(\"LLP\"))\r\n {\r\n // LLP, weight each edge is activeCircuits/AvailableCircuits\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = Math.max(u.minDistance,u.adjacentGet(key).load());\r\n //System.out.println(u.adjacentGet(key).load());\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n }\r\n }\r\n }",
"public Path shortestPath(Vertex a, Vertex b) {\n // If a or b aren't present in the set of vertices throw an exception\n if (!myGraph.containsKey(b) || !myGraph.containsKey(a)) {\n throw new IllegalArgumentException(\"One of the vertices isn't valid\");\n }\n /* Create a map of Vertices to VertexInfos. Fill it with VertexInfos for all\n vertices that each have no previous vertex and and a cost of INFINITY */\n Map<Vertex, VertexInfo> vertInfos = new HashMap<Vertex, VertexInfo>();\n for (Vertex v : vertices()) {\n vertInfos.put(v, new VertexInfo(v, null, INFINITY));\n }\n /* Create a PriorityQueue for VertexInfos */\n PriorityQueue<VertexInfo> viQueue = new PriorityQueue<VertexInfo>();\n /* Create a VertexInfo for the start Vertex 'a' with a cost of 0. This uses a copy of Vertex a&b for immutability */\n Vertex copyA = new Vertex(a.getLabel());\n Vertex copyB = new Vertex(b.getLabel());\n\n VertexInfo vi_a = new VertexInfo(copyA, null, 0);\n /* Add VerxtexInfo for a to PQ and map it to it's VertexInfo */\n viQueue.add(vi_a);\n vertInfos.put(a, vi_a);\n while(!viQueue.isEmpty()) {\n /* Remove the VertexInfo with lowest cost */\n Vertex curr = viQueue.poll().getVertex();\n /* Check all adjacent Vertices of curr Vertex */\n for (Vertex v : adjacentVertices(curr)) {\n /* Calculate cost to get to v through curr */\n int cost = vertInfos.get(curr).getCost() + edgeCost(curr, v);\n /* If cost through curr is lower than previous */\n if (cost < vertInfos.get(v).getCost()) {\n /* Remove v's VertexInfo from PQ */\n viQueue.remove(vertInfos.get(v));\n /* Overwrite previous value of v in map\n Add updated VerexInfo to PQ */\n VertexInfo vi = new VertexInfo(v, curr, cost);\n vertInfos.put(v,vi);\n viQueue.add(vi);\n }\n }\n }\n /* Create ArrayList for path */\n List<Vertex> path = new ArrayList<Vertex>();\n \n /* Add each vertex and it's previous vertex to path until a null vertex is reached */\n for (Vertex vert = copyB; vert != null; vert = vertInfos.get(vert).getPrev()) {\n path.add(vert);\n }\n\n /* Reverse order of path */ \n Collections.reverse(path);\n /* Create new Path object with corresponding parameters */\n if(path.contains(copyA)){\n Path pathToB = new Path(path, vertInfos.get(copyB).getCost());\n return pathToB;\n } else {\n return null;\n }\n }",
"public void shortestRouteDijkstra(){\n int landmark1 = l1.getSelectionModel().getSelectedIndex();\n int landmark2 = l2.getSelectionModel().getSelectedIndex();\n GraphNodeAL<MapPoint> lm1 = landmarkList.get(landmark1);\n GraphNodeAL<MapPoint> lm2 = landmarkList.get(landmark2);\n\n shortestRouteDij(lm1, lm2);\n }",
"@Override\n\tpublic List<Path> getShortestRoute(Location src, Location dest, String edgePropertyName) {\n\t\t//array to keep track of visited vertexes\n\t\tboolean[] visited = new boolean[locations.size()];\n\t\t//array to store weights\n\t\tdouble[] weight = new double[locations.size()];\n\t\t//array to store predecessors\n\t\tLocation[] pre = new Location[locations.size()];\n\t\t//creates priority queue\n\t\tPriorityQueue<LocWeight> pq = new PriorityQueue<LocWeight>();\n\t\t// initializes every vertex misted mark to false\n\t\tfor (int i = 0; i < visited.length; i++)\n\t\t\tvisited[i] = false;\n\t\t// initializes every vertex's total weight to infinity\n\t\tfor (int i = 0; i < weight.length; i++)\n\t\t\tweight[i] = Double.POSITIVE_INFINITY;\n\t\t// initializes every vertex's predecessor to null\n\t\tfor (int i = 0; i < pre.length; i++)\n\t\t\tpre[i] = null;\n\t\t//sets start vertex's total weight to 0\n\t\tweight[locations.indexOf(src)] = 0;\n\t\t//insert start vertex in priroty queue\n\t\tpq.add(new LocWeight(src, 0.0));\n\t\t\n\t\tString[] edgeNames = getEdgePropertyNames();\n\t\tint indexProp = 0;\n\t\tfor (int i = 0; i < edgeNames.length; i++) {\n\t\t\tif (edgeNames[i].equalsIgnoreCase(edgePropertyName))\n\t\t\t\tindexProp = i;\n\t\t}\n\t\twhile (!pq.isEmpty()) {\n\t\t\tLocWeight c = pq.remove();\n\t\t\t//set C's visited mark to true\n\t\t\tvisited[locations.indexOf(c)] = true;\n\n\t\t\tList<Location> neighbors = getNeighbors(c.getLocation());\n\t\t\t//for each unvisited successor adjacent to C\n\t\t\tfor (int i = 0; i < neighbors.size(); i++) {\n\t\t\t\tif (visited[locations.indexOf(neighbors.get(i))] == false) {\n\t\t\t\t\t//change successor's total weight to equal C's weight + edge weight from C to successor\n\t\t\t\t\tweight[locations.indexOf(neighbors.get(i))] = c.getWeight() + getEdgeIfExists(c.getLocation(), neighbors.get(i)).getProperties().get(indexProp);\n\t\t\t\t\tpre[locations.indexOf(neighbors.get(i))] = c.getLocation();\n\t\t\t\t\tLocWeight succ = new LocWeight(neighbors.get(i), weight[locations.indexOf(neighbors.get(i))]);\n\t\t\t\t\t//if successor is already in pq, update its total weight\n\t\t\t\t\tif (pq.contains(succ)) {\n\t\t\t\t\t\tpq.remove(succ);\n\t\t\t\t\t}\n\t\t\t\t\t//if not already there, add\n\t\t\t\t\tpq.add(succ);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\n\t\t}\n\t\t\n\t\tArrayList<Path> path = new ArrayList<Path>();\n\t\t//find predecessor of each vertex and construct shortest path then return it\n\t\tLocation curr1 = dest;\n\t\twhile (pre[locations.indexOf(curr1)] != null) {\n\t\t\tpath.add(getEdgeIfExists(pre[locations.indexOf(curr1)], curr1));\n\t\t\tcurr1 = pre[locations.indexOf(curr1)];\n\t\t}\n\t\t//to show path from the start\n\t\tfor (int i = path.size() - 1; i >= 0; i--)\n\t\t\tpath.add(path.remove(i));\n\n\n\t\treturn path;\n\t}",
"public interface weighted_graph_algorithms {\r\n /**\r\n * Init the graph on which this set of algorithms operates on.\r\n * @param g\r\n */\r\n public void init(weighted_graph g);\r\n\r\n /**\r\n * Return the underlying graph of which this class works.\r\n * @return\r\n */\r\n public weighted_graph getGraph();\r\n /**\r\n * Compute a deep copy of this weighted graph.\r\n * @return\r\n */\r\n public weighted_graph copy();\r\n /**\r\n * Returns true if and only if (iff) there is a valid path from EVREY node to each\r\n * other node. NOTE: assume ubdirectional graph.\r\n * @return\r\n */\r\n public boolean isConnected();\r\n /**\r\n * returns the length of the shortest path between src to dest\r\n * Note: if no such path --> returns -1\r\n * @param src - start node\r\n * @param dest - end (target) node\r\n * @return\r\n */\r\n public double shortestPathDist(int src, int dest);\r\n /**\r\n * returns the the shortest path between src to dest - as an ordered List of nodes:\r\n * src--> n1-->n2-->...dest\r\n * see: https://en.wikipedia.org/wiki/Shortest_path_problem\r\n * Note if no such path --> returns null;\r\n * @param src - start node\r\n * @param dest - end (target) node\r\n * @return\r\n */\r\n public List<node_info> shortestPath(int src, int dest);\r\n\r\n /**\r\n * Saves this weighted (undirected) graph to the given\r\n * file name\r\n * @param file - the file name (may include a relative path).\r\n * @return true - iff the file was successfully saved\r\n */\r\n public boolean save(String file);\r\n\r\n /**\r\n * This method load a graph to this graph algorithm.\r\n * if the file was successfully loaded - the underlying graph\r\n * of this class will be changed (to the loaded one), in case the\r\n * graph was not loaded the original graph should remain \"as is\".\r\n * @param file - file name\r\n * @return true - iff the graph was successfully loaded.\r\n */\r\n public boolean load(String file);\r\n}",
"public void computeShortestPath() throws IllegalStateException;",
"private static void computePaths(Vertex source) {\n source.minDistance = 0;\n // retrieves with log(n) time\n PriorityQueue<Vertex> vertexPriorityQueue = new PriorityQueue<>();\n\n //BFS traversal\n vertexPriorityQueue.add(source);\n\n // O((v + e) * log(v))\n while (!vertexPriorityQueue.isEmpty()) {\n // this poll always returns the shortest distance vertex at log(v) time\n Vertex vertex = vertexPriorityQueue.poll();\n\n //visit each edge exiting vertex (adjacencies)\n for (Edge edgeInVertex : vertex.adjacencies) {\n // calculate new distance between edgeInVertex and target\n Vertex targetVertex = edgeInVertex.target;\n double edgeWeightForThisVertex = edgeInVertex.weight;\n double distanceThruVertex = vertex.minDistance + edgeWeightForThisVertex;\n if (distanceThruVertex < targetVertex.minDistance) {\n // modify the targetVertex with new calculated minDistance and previous vertex\n // by removing the old vertex and add new vertex with updates\n vertexPriorityQueue.remove(targetVertex);\n targetVertex.minDistance = distanceThruVertex;\n // update previous with the shortest distance vertex\n targetVertex.previous = vertex;\n vertexPriorityQueue.add(targetVertex);// adding takes log(v) time because needs to heapify\n }\n }\n }\n }",
"@Override\n public Double calculateShortestPathFromSource(String from, String to) {\n Node source = graph.getNodeByName(from);\n Node destination = graph.getNodeByName(to);\n source.setDistance(0d);\n Set<Node> settledNodes = new HashSet<>();\n PriorityQueue<Node> unsettledNodes = new PriorityQueue<>(Comparator.comparing(Node::getDistance));\n unsettledNodes.add(source);\n while (unsettledNodes.size() != 0) {\n Node currentNode = unsettledNodes.poll();\n for (Map.Entry<Node, Double> adjacencyPair : currentNode.getAdjacentNodes().entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Double distance = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n calculateMinimumDistance(adjacentNode, distance, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return destination.getDistance() == Double.MAX_VALUE ? -9999d : destination.getDistance();\n }",
"@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }",
"List<V> getShortestPath(V vertex);",
"public void shortestPathsNodes() {\n for (int sourceNode = 0; sourceNode < wordGraph.V(); sourceNode++) {\n BreadthFirstDirectedPaths bfs = new BreadthFirstDirectedPaths(wordGraph, sourceNode);\n\n for (int goalNode = 0; goalNode < wordGraph.V(); goalNode++) {\n Iterable<Integer> shortestPath = bfs.pathTo(goalNode);\n int pathLength = -1;\n if (shortestPath != null) {\n for (int edge : shortestPath) {\n pathLength++;\n }\n }\n if (pathLength != -1) {\n }\n System.out.println(pathLength);\n }\n }\n }",
"public InTree<V,E> generalShortestPathFromSource(V source);",
"public static void getShortestPath()\r\n\t{\r\n\t\tScanner scan = new Scanner(System.in); //instance for input declared\r\n\t\tSystem.out.print(\"\\nPlease enter the Source node for shortest path: \");\r\n\t\tint src = scan.nextInt() - 1;\r\n\t\twhile(src < 0 || src > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered source node is out of range, please enter again: \"); // Printing error\r\n\t\t\tsrc = scan.nextInt() - 1;\t//re-input source\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.print(\"Please enter the destination node for shortest path: \");\r\n\t\tint dest = scan.nextInt() - 1;\r\n\t\twhile(dest < 0 || dest > routers-1)\r\n {\r\n\t\t\tSystem.out.println(\"The entered destination node is out of range, please enter again: \"); // Printing error\r\n\t\t\tdest = scan.nextInt() - 1;\t//re-input destination\r\n\t\t}\r\n\t\t\r\n\t\tconnectNetwork(src, dest, true);\r\n\t}",
"public interface SimplexSolutionTransferringNode {\n\n\tpublic double getTransfer();\n\t\n}",
"interface AdjListWeightedInterfaceWithCities \r\n{ \r\n List<String> getShortestPathTo(wVertex v);\r\n AdjListWeighted graphFromEdgeListData(File vertexNames, File edgeListData) throws FileNotFoundException ;\r\n}",
"public static void computePaths(Vertex source){\n\t\tsource.minDistance=0;\n\t\t//visit each vertex u, always visiting vertex with smallest minDistance first\n\t\tPriorityQueue<Vertex> vertexQueue=new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(source);\n\t\twhile(!vertexQueue.isEmpty()){\n\t\t\tVertex u = vertexQueue.poll();\n\t\t\tSystem.out.println(\"For: \"+u);\n\t\t\tfor (Edge e: u.adjacencies){\n\t\t\t\tVertex v = e.target;\n\t\t\t\tSystem.out.println(\"Checking: \"+u+\" -> \"+v);\n\t\t\t\tdouble weight=e.weight;\n\t\t\t\t//relax the edge (u,v)\n\t\t\t\tdouble distanceThroughU=u.minDistance+weight;\n\t\t\t\tif(distanceThroughU<v.minDistance){\n\t\t\t\t\tSystem.out.println(\"Updating minDistance to \"+distanceThroughU);\n\t\t\t\t\tv.minDistance=distanceThroughU;\n\t\t\t\t\tv.previous=u;\n\t\t\t\t\t//move the vertex v to the top of the queue\n\t\t\t\t\tvertexQueue.remove(v);\n\t\t\t\t\tvertexQueue.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Queue<Station> approxShortestPath(Station start, Station end)\n {\n //Create a hash from station IDs to extra data needed for this algorithm.\n HashMap<String, ApproxSearchExtra> station_extras =\n new HashMap<String, ApproxSearchExtra>();\n for (Station station : getStations())\n station_extras.put(station.getId(), new ApproxSearchExtra());\n\n HashSet<Station> closed = new HashSet<Station>();\n HashSet<Station> open = new HashSet<Station>();\n open.add(start);\n\n while (open.size() > 0)\n {\n //Current is the item in the open set with the lowest estimated cost.\n Station current = null;\n ApproxSearchExtra current_extra = null;\n for (Station element : open)\n {\n if (current == null && current_extra == null)\n {\n current = element;\n current_extra = station_extras.get(element.getId());\n }\n else\n {\n ApproxSearchExtra extra = station_extras.get(element.getId());\n if (extra.estimated_cost < current_extra.estimated_cost)\n {\n current = element;\n current_extra = extra;\n }\n }\n }\n\n //If the current station is the end station, then we're done.\n if (current == end)\n return buildApproxShortestPathResult(end, station_extras);\n\n //Station is no longer in the open set and is now in the closed set\n //because it was traversed.\n open.remove(current);\n closed.add(current);\n\n for (Station neighbour : getAdjacentStations(current))\n {\n //Do nothing if neighbour is already in the closed set.\n if (closed.contains(neighbour))\n continue;\n\n ApproxSearchExtra neighbour_extra =\n station_extras.get(neighbour.getId());\n\n //Cost of movement to this neighbour.\n float attempt_cost = current_extra.cost + current.distance(neighbour);\n\n //If not in the open set, add the neighbour to the open set so that it\n //will be traversed later.\n if (!open.contains(neighbour))\n open.add(neighbour);\n //If this path is more costly than another path to this station, then\n //this path cannot be optimal.\n else if (attempt_cost >= neighbour_extra.cost)\n continue;\n\n //This is now the best path to this neighbour. Store this information.\n neighbour_extra.came_from = current;\n neighbour_extra.cost = attempt_cost;\n neighbour_extra.estimated_cost = attempt_cost +\n neighbour.distance(end);\n }\n }\n\n return null;\n }",
"@Test public void testPublic14() {\n Graph<String> graph= TestGraphs.testGraph2();\n List<String> shortestPath= new ArrayList<String>();\n\n assertEquals(1, graph.Dijkstra(\"apple\", \"banana\", shortestPath));\n assertEquals(\"apple banana\", TestGraphs.listToString(shortestPath));\n\n assertEquals(2, graph.Dijkstra(\"apple\", \"cherry\", shortestPath));\n assertEquals(\"apple banana cherry\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(3, graph.Dijkstra(\"apple\", \"date\", shortestPath));\n assertEquals(\"apple banana cherry date\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(4, graph.Dijkstra(\"apple\", \"elderberry\", shortestPath));\n assertEquals(\"apple banana cherry date elderberry\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(5, graph.Dijkstra(\"apple\", \"fig\", shortestPath));\n assertEquals(\"apple banana cherry date elderberry fig\",\n TestGraphs.listToString(shortestPath));\n\n assertEquals(6, graph.Dijkstra(\"apple\", \"guava\", shortestPath));\n assertEquals(\"apple banana cherry date elderberry fig guava\",\n TestGraphs.listToString(shortestPath));\n }",
"public interface IRealTimeSearchAlgorithm {\n\n /**\n * This function will calculate a prefix from the start node to the goal node path\n * @param start - The start node\n * @param goal - The goal node\n * @param numOfNodesToDevelop - The number of nodes to develop in the search\n * @param agent - The agent\n * @return - A prefix from the start node to the goal node path\n */\n public List<Node> calculatePrefix(Node start, Node goal, int numOfNodesToDevelop, Agent agent);\n}",
"public interface Algorithm {\r\n\r\n public static Point2D newPosition(Point2D currentXY, Point2D gp, Integer id){return null;};\r\n\r\n public static Point2D lineTrajectory(Point2D xy, Point2D goalPoint){return null;};\r\n\r\n public static Double getXforLine(Point2D xy, Point2D gp){return null;};\r\n}",
"private void calculateShortestDistances (GraphStructure graph,int startVertex,int destinationVertex) {\r\n\t\t//traverseRecursively(graph, startVertex);\r\n\t\tif(pathList.contains(destinationVertex)) {\r\n\t\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\t\tdistanceArray[startVertex]=0;\r\n\t\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\t\tList<Edge> list;\r\n\t\t\tlist = graph.getAdjacencyList()[startVertex];\r\n\t\t\tif(startVertex==destinationVertex) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\tif(! isVisited[value.getVertex()]) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[startVertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t\tshortestPathList.add(value.getVertex());\r\n\t\t\t\t\t\t\tcalculateShortestDistances(graph,value.getVertex(), distanceValueOfDestinationVertex);\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*for(Integer value : spanningTreeSet) {\r\n\t\t\t\tSystem.out.print(value+\" \");\r\n\t\t\t}*/\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No route is present between given vertices !\");\r\n\t\t}\r\n\t}",
"public interface Search {\n public List<Node> find(Node start, Node finish);\n public Node selectNode(List<Node> nodes);\n public List<Node> getPath(Node node);\n public List<Node> getAdjacent(Node node);\n}",
"@Override\r\n public List<node_info> shortestPath(int src, int dest) {\r\n double i = shortestPathDist(src, dest);\r\n double j, k, s, mark = 1;\r\n ArrayList<node_info> Rlist = new ArrayList<>();\r\n ArrayList<node_info> Llist = new ArrayList<>();\r\n Rlist.clear();\r\n Llist.clear();\r\n j = i;\r\n for (node_info curr : this.Graph.getV()) {\r\n curr.setInfo(\"clear\");\r\n }\r\n this.Graph.getNode(src).setInfo(\"tmp\");\r\n Rlist.add(this.Graph.getNode(dest));\r\n node_info nd = this.Graph.getNode(dest);\r\n node_info temp = this.Graph.getNode(dest);\r\n while (j != 0 && j > 0) {\r\n for (node_info curr0 : this.Graph.getV(nd.getKey())) {\r\n if (curr0.getInfo() != null) {\r\n temp = curr0;\r\n k = this.Graph.getEdge(nd.getKey(), curr0.getKey());\r\n s = j - k;\r\n if ((s - curr0.getTag() < 0.001 && s - curr0.getTag() > -0.001) && nd.getInfo() != null) {\r\n Rlist.add(curr0);\r\n j = curr0.getTag();\r\n curr0.setInfo(\"tmp\");\r\n mark = 1;\r\n nd = curr0;\r\n }\r\n }\r\n }\r\n if (mark == 0) {\r\n i = j;\r\n temp.setInfo(null);\r\n Rlist.clear();\r\n Rlist.add(this.Graph.getNode(dest));\r\n mark = 1;\r\n }\r\n mark = 0;\r\n }\r\n for (int t = (Rlist.size() - 1); t >= 0; t--) {\r\n Llist.add(Rlist.get(t));\r\n }\r\n return Llist;\r\n }",
"public interface Heuristic\r\n{\r\n\r\n double calcStartToGoalCost(State currentState, State goalState);\r\n}",
"public interface Edge\n extends Comparable\n{\n Vertex getV0 ();\n Vertex getV1 ();\n Object getWeight ();\n boolean isDirected ();\n Vertex getMate (Vertex vertex);\n}",
"public void findShortestPath(String startName, String endName) {\n checkValidEndpoint(startName);\n checkValidEndpoint(endName);\n\n Vertex<String> start = vertices.get(startName);\n Vertex<String> end = vertices.get(endName);\n\n double totalDist; // totalDist must be update below\n\n Map<Vertex<String>, Double> distance = new HashMap<>();\n Map<Vertex<String>, Vertex<String>> previous = new HashMap<>();\n Set<Vertex<String>> explored = new HashSet<>();\n PriorityQueue<VertexDistancePair> pq = new PriorityQueue<>();\n\n\n\n addPQ(distance, start, pq, previous);\n\n\n\n dijkstraHelper(pq, end, explored, distance, previous);\n\n\n\n\n\n\n totalDist = distance.get(end);\n List<Edge<String>> path = getPath(end, start);\n printPath(path, totalDist);\n }",
"private void computePaths(Vertex source, Vertex target, ArrayList<Vertex> vs)\n {\n \tfor (Vertex v : vs)\n \t{\n \t\tv.minDistance = Double.POSITIVE_INFINITY;\n \t\tv.previous = null;\n \t}\n source.minDistance = 0.;\t\t// distance to self is zero\n IndexMinPQ<Vertex> vertexQueue = new IndexMinPQ<Vertex>(vs.size());\n \n for (Vertex v : vs) vertexQueue.insert(Integer.parseInt(v.id), v);\n\n\t\twhile (!vertexQueue.isEmpty()) \n\t\t{\n\t \t// retrieve vertex with shortest distance to source\n\t \tVertex u = vertexQueue.minKey();\n\t \tvertexQueue.delMin();\n\t\t\tif (u == target)\n\t\t\t{\n\t\t\t\t// trace back\n\t\t\t\twhile (u.previous != null)\n\t\t\t\t{;\n\t\t\t\t\tu = u.previous;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t// Visit each edge exiting u\n \tfor (Edge e : u.adjacencies)\n \t\t{\n \t\tVertex v = e.target;\n\t\t\t\tdouble weight = e.weight;\n \tdouble distanceThroughU = u.minDistance + weight;\n\t\t\t\tif (distanceThroughU < v.minDistance) \n\t\t\t\t{\n\t\t\t\t\tint vid = Integer.parseInt(v.id);\n\t\t \t\tvertexQueue.delete(vid);\n\t\t \t\tv.minDistance = distanceThroughU;\n\t\t \t\tv.previous = u;\n\t\t \t\tvertexQueue.insert(vid,v);\n\t\t\t\t}\n\t\t\t}\n }\n }",
"public abstract int shortestPathDistance(String vertLabel1, String vertLabel2);",
"public double shortestPathDist(int src, int dest);",
"public interface IGraph {\n\t// Adds a new edge between 'from' and 'to' nodes with a cost obeying the\n\t// triangle in-equality\n\tpublic IEdge addEdge(String from, String to, Double cost);\n\t\n\t// Returns a node, creates if not exists, corresponding to the label\n\tpublic INode addOrGetNode(String label);\n\t\n\t// Returns a list of all nodes present in the graph\n\tpublic List<INode> getAllNodes();\n\t\n\t// Returns a list of all edges present in the graph\n\tpublic List<IEdge> getAllEdges();\n\t\n\t// Joins two graphs that operate on the same cost interval and \n\t// disjoint sets of nodes\n\tpublic void joinGraph(IGraph graph);\n\t\n\t// Returns the maximum cost allowed for the edges\n\tpublic Double getCostInterval();\n\t\n\t// Returns a Path with cost between 'from' and 'to' nodes\n\tpublic String getPath(String from, String to, String pathAlgo);\n}",
"@Nullable\n private NodeWithCost<V, A> findShortestPath(@Nonnull DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n PriorityQueue< NodeWithCost<V, A>> frontier = new PriorityQueue<>(61);\n Map<V, NodeWithCost<V, A>> frontierMap = new HashMap<>(61);\n // Size of explored is the expected number of nextArrows that we need to explore.\n Set<V> explored = new HashSet<>(61);\n return doFindShortestPath(start, frontier, frontierMap, goal, explored, graph, costf);\n }",
"public List<String> computeBestPath(String source, String dest)\r\n {\r\n Vertex v;\r\n List<String>shortestPath = new LinkedList<String>();\r\n \r\n // First, relax all nodes\r\n computeAllPaths(source);\r\n \r\n // Then go through each one and return the path as a list of strings\r\n for (v= network_topology.get(dest); v != null; v = v.previous)\r\n { \r\n shortestPath.add(v.name);\r\n }\r\n \r\n Collections.reverse(shortestPath);\r\n \r\n // Clear the relaxed values so that they can be recalculated with each term\r\n clearPathData();\r\n \r\n return shortestPath;\r\n }",
"@Override\r\n\tpublic List<Entity> getShortestPath(Entity source, Entity target,\r\n\t\t\tDirectionMode mode)\r\n\t{\n\t\tif (source.equals(target)) {\r\n\t\t\tList<Entity> resultList = new ArrayList<Entity>();\r\n\t\t\tresultList.add(source);\r\n\t\t\treturn resultList;\r\n\t\t}\r\n\r\n\t\tGraph<Entity, EntityGraphEdge> graph;\r\n\t\tif (mode.equals(DirectionMode.directed)) {\r\n\t\t\tgraph = directedGraph;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgraph = undirectedGraph;\r\n\t\t}\r\n\r\n\t\tif (containsVertex(source) && containsVertex(target)\r\n\t\t\t\t&& !source.equals(target)) {\r\n\r\n\t\t\t// Create an instance of DijkstraShortestPath for the directed graph\r\n\t\t\t// which caches results locally.\r\n\t\t\t// Distances thus calculated may be invalidated by changes to the\r\n\t\t\t// graph, in which case reset() should be\r\n\t\t\t// invoked so that the distances are recalculated.\r\n\t\t\tDijkstraShortestPath<Entity, EntityGraphEdge> dijkstraPath = new DijkstraShortestPath<Entity, EntityGraphEdge>(\r\n\t\t\t\t\tgraph, true);\r\n\t\t\tList<EntityGraphEdge> edgeList = dijkstraPath.getPath(source,\r\n\t\t\t\t\ttarget);\r\n\t\t\tList<Entity> entityList = new ArrayList<Entity>();\r\n\r\n\t\t\tfor (int i = 0; i < edgeList.size(); i++) {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tEntity fromNode = edgeList.get(i).getSource();\r\n\t\t\t\t\tEntity toNode = edgeList.get(i).getTarget();\r\n\t\t\t\t\tentityList.add(fromNode);\r\n\t\t\t\t\tentityList.add(toNode);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tEntity toNode = edgeList.get(i).getTarget();\r\n\t\t\t\t\tentityList.add(toNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn entityList;\r\n\t\t}\r\n\t\t// if either source or target are not contained in the graph define the\r\n\t\t// path as null\r\n\t\t// this is different than the empty path, which occurs if source =\r\n\t\t// target\r\n\t\telse {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public int shortestPath(Village startVillage, Village targetVillage) {\n// setting the initial point 's minimum distance to zera\n startVillage.setMinDistance(0);\n// accourting to bellman ford if there are n number of dots then n-1 iterations to be done to find the minimum distances of every dot from one initial dot\n int length = this.villageList.size();\n// looping n-1 times\n for (int i = 0; i < length - 1; i++) {\n// looping through all the roads and mark the minimum distances of all the possible points\n for (Road road : roadList) {\n\n\n// if the road is a main road then skip the path\n if (road.getWeight() == 900)\n continue; //why 900 ? : just a random hightest number as a minimum distance and same 900 is used as a mix number\n Village v = road.getStartVertex();\n Village u = road.getTargetVertex();\n// if the newly went path is less than the path it used to be the update the min distance of the reached vertex\n int newLengtha = v.getMinDistance() + road.getWeight();\n if (newLengtha < u.getMinDistance()) {\n u.setMinDistance(newLengtha);\n u.setPreviousVertex(v);\n }\n int newLengthb = u.getMinDistance() + road.getWeight();\n if (newLengthb < v.getMinDistance()) {\n v.setMinDistance(newLengthb);\n v.setPreviousVertex(v);\n }\n }\n }\n// finally return the minimum distance\n return targetVillage.getMinDistance();\n }",
"private static void simpleDijikstra(final DirectedGraph directedGraph,\n final Map<String, Integer> currentShortestPaths,\n final String start, final Set<String> visitedSet, final String destination) {\n // Terminate when we have visited all the nodes or if our start value isn't in our dijikstra table\n if (containsAndNotNull(currentShortestPaths, start) && visitedSet.size() != currentShortestPaths.keySet().size()) {\n compareDistanceAndReplace(directedGraph, currentShortestPaths, start);\n visitedSet.add(start);\n // Calculate the next current smallest node that hasn't been visited and not infinity\n final Optional<Map.Entry<String, Integer>> optionalSmallest =\n currentShortestPaths.entrySet().stream()\n .filter(node -> !visitedSet.contains(node.getKey()) && node.getValue() != null)\n .min(Comparator.comparingInt(Map.Entry::getValue));\n // Continue to next node if there is one available\n optionalSmallest.ifPresent(smallest -> {\n // No need to continue if the next smallest node is our destination\n if (!smallest.getKey().equals(destination)) {\n simpleDijikstra(directedGraph, currentShortestPaths, smallest.getKey(), visitedSet, destination);\n }\n });\n }\n }",
"public void findShortestRoute(Point2D start, Point2D end){\n fastestPath = null;\n try {\n RouteFinder routeFinder = new RouteFinder(start, end);\n travelMethod(routeFinder);\n routeFinder.setShortestRoute();\n shortestPath = routeFinder.getShortestPath();\n setTravelInfo(routeFinder);\n RoutePlanner routePlanner = new RoutePlanner(shortestPath);\n addToDirectionPane(routePlanner.getDirections());\n }catch(IllegalArgumentException | NullPointerException e){\n addToDirectionPane(new String[]{\"No shortest path between the two locations was found\"});\n setTravelInfo(null);\n shortestPath = null;\n }\n\n repaint();\n\n }",
"public static <N,E> ShortestPath<N, E> calculateFor(IWeightedGraph<N, E> g, int startNode){\n\t\treturn new ShortestPath<>(g, startNode);\n\t}",
"public List<Eventable> getShortestPath(StateVertex start, StateVertex end) {\n\t\treturn DijkstraShortestPath.findPathBetween(sfg, start, end);\n\t}",
"public interface OnResultPath {\n // Reports which nodes have been added to the frontier or removed from the frontier\n void reportProgress(List<Node> update);\n\n // Called when a path finding algorithm is finished running, should return null if no path is found\n void pathFound(Node node);\n}",
"public DijkstraAlg(){\n \n }",
"private Path aStar(AStarNode start, AStarNode end) {\n\n\t/*pre-search setup*/\n astarSetup(end);\n AStarNode current = start;\n current.updateDist(0.0F);\n ArrayList<AStarNode> openSet = new ArrayList<>(getNodes().size());\n addNode(openSet, start);\n start.setFound(true);\n\n while (!openSet.isEmpty()) { // While there are nodes to evaluate\n if (current.equals(end)) // When reached the destination\n return createPath(start, end);\n openSet.remove(current); // Removes the node whose shortest distance from start position is determined\n current.setVisited(true); // marking the field that is added to closedSet\n \n for (AStarNode neighbor : current.getConnections()) { \n if (!neighbor.isVisited() && !neighbor.found()) { // if it is not seen before, add to open list\n addNode(openSet,neighbor);\n neighbor.setFound(true);\n neighbor.setPrevious(current);\n neighbor.setHeruistic(end);\n neighbor.updateDist(current.getDist() + current.getDistTo(neighbor));\n }\n else if(!neighbor.isVisited()){ //If seen before, update cost.\n double tempGScore = current.getDist() + current.getDistTo(neighbor);\n if (neighbor.getDist() > tempGScore) {\n neighbor.updateDist(tempGScore);\n neighbor.setPrevious(current);\n neighbor.setHeruistic(end);\n }\n }\n }\n current = getMinFScore(openSet); // setting next node as a node with minimum fScore.\n }\n\t\n\t/*If search ends without returning a path, there is no possible path.*/\n throw new PathFindingAlgorithm.AlgorithmFailureException();\n }",
"public void shortestPaths(int source) {\n\n\t\tlong start = 0;\n\t\tlong stop;\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tedgeList[v] = new Edge(vertexList[v].id, rand, 5000);\n\t\t}\n\t\t// creating object of fibonacci\n\t\tFHeap pq = new FHeap();\n\t\t// creating a map for checking\n\t\tMap<Integer, FHeap.Node> check = new HashMap<Integer, FHeap.Node>();\n\t\t// storing the mst costs\n\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tcheck.put(vertexList[v].id,\n\t\t\t\t\tpq.enqueue(vertexList[v].id, Double.POSITIVE_INFINITY));\n\t\t}\n\t\tstart = System.currentTimeMillis();\n\t\t// allot cost 0 to initial node\n\t\tpq.decreaseKey(check.get(vertexList[source].id), 0.0);\n\n\t\twhile (!pq.isEmpty()) {\n\t\t\t// take the current node and get its minimum cost\n\t\t\tFHeap.Node current = pq.dequeueMin();\n\n\t\t\t// store the values in the table\n\t\t\tresult.put(current.getValue(), current.getCost());\n\n\t\t\t// update the costs\n\t\t\tfor (Neighbor nbr = vertexList[current.getValue()].adjList; nbr != null; nbr = nbr.next) {\n\n\t\t\t\t// edge is not added if shortest cost is known\n\t\t\t\tif (result.containsKey(vertexList[nbr.vertexNumber].id))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// update cost to shortest\n\t\t\t\tFHeap.Node finalCost = check\n\t\t\t\t\t\t.get(vertexList[nbr.vertexNumber].id);\n\t\t\t\tif (nbr.weight < finalCost.getCost())\n\t\t\t\t\tpq.decreaseKey(finalCost, nbr.weight);\n\t\t\t}\n\t\t}\n\t\tstop = System.currentTimeMillis();\n\t\t// computing the time\n\t\ttime = stop - start;\n\n\t\t// calculate the MST cost\n\t\tfor (int i = 0; i < vertexList.length; i++) {\n\t\t\tsumHeapCost = (int) (sumHeapCost + result.get(i));\n\t\t}\n\t\t// for printing in case of input from file in fibonacci mode\n\t\n\t\t// System.out.println(sumHeapCost);\n\t}",
"private PathCostFlow findCheapestPath(int start, int end, double max_flow) throws Exception {\n if (getNode(start) == null || getNode(end) == null\n || !getNode(start).isSource() || getNode(end).isSource()) {\n throw new IllegalArgumentException(\"start must be the index of a source and end must be the index of a sink\");\n }\n double amount = Math.min(Math.min(getNode(start).getResidualCapacity(),\n getNode(end).getResidualCapacity()), max_flow);\n\n boolean[] visited = new boolean[n];\n int[] parent = new int[n];\n for (int i = 0; i < n; i++) {\n parent[i] = -1;\n }\n double[] cost = new double[n];\n for (int i = 0; i < n; i++) {\n cost[i] = Integer.MAX_VALUE;\n }\n cost[start] = 0;\n\n PriorityQueue<IndexCostTuple> queue = new PriorityQueue<IndexCostTuple>();\n queue.add(new IndexCostTuple(start, 0));\n\n while (!queue.isEmpty()) {\n IndexCostTuple current = queue.poll();\n\n // we found the target node\n if (current.getIndex() == end) {\n ArrayList<Integer> path = new ArrayList<Integer>();\n path.add(new Integer(end));\n while (path.get(path.size() - 1) != start) {\n path.add(parent[path.get(path.size() - 1)]);\n }\n Collections.reverse(path);\n if ((path.get(0) != start) || (path.get(path.size() - 1) != end)) {\n throw new Exception(\"I fucked up coding Dijkstra's\");\n }\n return new PathCostFlow(path, cost[end], amount);\n }\n\n // iterate through all possible neighbors of the current node\n for (int i = 0; i < n; i++) {\n SingleEdge e = matrix[current.getIndex()][i];\n if ((!visited[i]) && (e != null)\n && (current.getCost() + e.getCost(amount) < cost[i])) {\n cost[i] = current.getCost() + e.getCost(amount);\n parent[i] = current.getIndex();\n\n // update the entry for this node in the queue\n IndexCostTuple newCost = new IndexCostTuple(i, cost[i]);\n queue.remove(newCost);\n queue.add(newCost);\n }\n }\n visited[current.getIndex()] = true;\n }\n\n return null; //the target node was unreachable\n }",
"public List<GeographicPoint> dijkstra(GeographicPoint start, \n\t\t\t\t\t\t\t\t\t\t GeographicPoint goal, Consumer<GeographicPoint> nodeSearched)\n\t{\n\t\t// TODO: Implement this method in WEEK 4\n\n\t\t// Hook for visualization. See writeup.\n\t\t//nodeSearched.accept(next.getLocation());\n\t\t\n\t\t//initialize distance of each MapNode from start to infinity\n\t\t\n\t\tSet<GeographicPoint> visited = new HashSet<GeographicPoint>();\n\t\tPriorityQueue<MapNode> queue = new PriorityQueue<MapNode>();\n\t\tHashMap<GeographicPoint, List<GeographicPoint>> path = new HashMap<GeographicPoint, List<GeographicPoint>>();\n\t\tint count = 0;\n\t\t\n\t\tif (!map.containsKey(start) || !map.containsKey(goal))\n\t\t\treturn null;\n\t\t\n\t\tfor (GeographicPoint temp : map.keySet())\n\t\t\tpath.put(temp, new ArrayList<GeographicPoint>());\n\t\t\n\t\tMapNode startNode = map.get(start);\n\t\tstartNode.setTimeToStart(0.0);\n\t\tstartNode.setDistanceToStart(0.0);\n\t\tqueue.add(startNode);\n\t\t\n\t\twhile (!queue.isEmpty()) {\n\t\t\tMapNode currNode = queue.poll();\n\t\t\tnodeSearched.accept(currNode.getLocation());\n\t\t\t\n\t\t\tif (!visited.contains(currNode.getLocation())) {\n\t\t\t\tvisited.add(currNode.getLocation());\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tif (currNode.getLocation().equals(goal))\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tHashMap<MapEdge, GeographicPoint> neighbours = currNode.getNeighbours();\n\t\t\t\tfor (MapEdge edge : neighbours.keySet()) {\n\t\t\t\t\t\n\t\t\t\t\tif (!visited.contains(edge.getEnd())) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tMapNode addNode = map.get(neighbours.get(edge));\n\t\t\t\t\t\tdouble tempTime = currNode.getTimeToStart() + ((edge.getDistance())/(edge.getSpeedLimit()));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tempTime < addNode.getTimeToStart()) {\n\t\t\t\t\t\t\taddNode.setTimeToStart(tempTime);\n\t\t\t\t\t\t\tqueue.add(addNode);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tList<GeographicPoint> temp = path.get(neighbours.get(edge));\n\t\t\t\t\t\t\ttemp.add(currNode.getLocation());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Dijkstra: \" + count);\n\t\treturn backTrack(path,goal);\n\t}",
"@Override\n public List<Node> findShortestPath(Node s, Node t)\n {\n nodeDists.clear(); //clear previously calculated distances\n\n recordNodeDistances(s, t); //record node distances to target\n\n LinkedList<Node> shortestPath = new LinkedList<Node>();\n\n shortestPath.addLast(s);\n\n boolean reachedEnd = false;\n\n if(s==t) reachedEnd = true; // \"That was easy\"\n\n while(!reachedEnd)\n {\n //get the neighbors from the most recent step on the path\n Collection<? extends Node> neighbors = shortestPath.getLast().getNeighbors();\n\n //minimum cost from neighbors\n Node minNode = null;\n\n for(Node n: neighbors)\n {\n if(minNode == null || nodeDists.get(n) < nodeDists.get(minNode))\n {\n minNode = n;\n\n if(nodeDists.get(n) == 0)\n {\n reachedEnd = true;\n break;\n }\n }\n }\n\n if(nodeDists.get(minNode) == Integer.MAX_VALUE) return null; //no path\n else shortestPath.addLast(minNode);\n }\n\n return shortestPath;\n }",
"private void findPath1(List<Coordinate> path) {\n\n // records the start coordinate in a specific sequence.\n ArrayList<Coordinate> starts = new ArrayList<>();\n // records the end coordinate in a specific sequence.\n ArrayList<Coordinate> ends = new ArrayList<>();\n // records the total cost of the path in a specific sequence.\n ArrayList<Integer> cost = new ArrayList<>();\n\n for (Coordinate o1 : originCells) {\n for (Coordinate d1 : destCells) {\n Graph graph = new Graph(getEdge(map));\n graph.dijkstra(o1);\n graph.printPath(d1);\n starts.add(o1);\n ends.add(d1);\n cost.add(graph.getPathCost(d1));\n }\n }\n int index = getMinIndex(cost);\n\n Graph graph = new Graph(getEdge(map));\n graph.dijkstra(starts.get(index));\n graph.printPath(ends.get(index));\n for (Graph.Node node : graph.getPathReference()) {\n path.add(node.coordinate);\n }\n setSuccess(path);\n }",
"private LinkedList<Node> aStarPath() throws PathNotFoundException {\n\n // Set of nodes already evaluated\n List<Node> closedSet = new ArrayList<Node>();\n\n // Set of nodes visited, but not evaluated\n List<Node> openSet = new ArrayList<Node>();\n openSet.add(start);\n\n\n // Map of node with shortest path leading to it\n Map<Node, Node> cameFrom = new HashMap<>();\n\n // Map of cost of navigating from start to node\n Map<Node, Double> costFromStart = new HashMap<>();\n costFromStart.put(start, 0.0);\n\n // Map of cost of navigating path from start to end through node\n Map<Node, Double> costThrough = new HashMap<>();\n costThrough.put(start, heuristic(start, end));\n\n while (!openSet.isEmpty()){\n\n Node current = lowestCostThrough(openSet, costThrough);\n\n if(current.equals(end)){\n return reconstructPath(cameFrom, current);\n }\n\n openSet.remove(current);\n closedSet.add(current);\n\n for(Node neighbor: current.getNodes()) {\n if (closedSet.contains(neighbor)) {\n continue;\n }\n\n double tentativeCost = costFromStart.get(current) + distanceBetween(current, neighbor);\n\n if (!openSet.contains(neighbor)) { // found new neighbor\n openSet.add(neighbor);\n } else if (tentativeCost >= costFromStart.get(neighbor)) { // not a better path\n continue;\n }\n\n cameFrom.put(neighbor, current);\n costFromStart.put(neighbor, tentativeCost);\n costThrough.put(neighbor, tentativeCost + heuristic(neighbor, end));\n\n }\n }\n // no path\n throw pathNotFound;\n }",
"public List<Node> findShortestPath(Node s, Node t);",
"public List<Long> getPath(Long start, Long finish){\n \n \n List<Long> res = new ArrayList<>();\n // auxiliary list\n List<DeixtraObj> serving = new ArrayList<>();\n// nearest vertexes map \n Map<Long,DeixtraObj> optimMap = new HashMap<>();\n// thread save reading \n synchronized (vertexes){ \n // preparation\n for (Map.Entry<Long, Vertex> entry : vertexes.entrySet()) {\n Vertex userVertex = entry.getValue();\n // If it`s start vertex weight = 0 and the nereast vertex is itself \n if(userVertex.getID().equals(start)){\n serving.add(new DeixtraObj(start, 0.0, start));\n }else{\n // For other vertex weight = infinity and the nereast vertex is unknown \n serving.add(new DeixtraObj(userVertex.getID(), Double.MAX_VALUE, null));\n }\n\n } \n // why auxiliary is not empty \n while(serving.size()>0 ){\n // sort auxiliary by weight \n Collections.sort(serving);\n\n \n // remove shortes fom auxiliary and put in to answer \n DeixtraObj minObj = serving.remove(0);\n optimMap.put(minObj.getID(), minObj);\n\n Vertex minVertex = vertexes.get(minObj.getID());\n\n // get all edges from nearest \n for (Map.Entry<Long, Edge> entry : minVertex.allEdges().entrySet()) {\n Long dest = entry.getKey();\n Double wieght = entry.getValue().getWeight();\n // by all remain vertexes \n for(DeixtraObj dx : serving){\n if(dx.getID().equals(dest)){\n // if in checking vertex weight more then nearest vertex weight plus path to cheking \n // then change in checking weight and nearest\n if( (minObj.getWeight()+wieght) < dx.getWeight()){\n dx.setNearest(minVertex.getID());\n dx.setWeight((minObj.getWeight()+wieght));\n }\n }\n }\n }\n\n }\n }\n \n // create output list\n res.add(finish);\n Long point = finish;\n while(!point.equals(start)){\n \n point = ((DeixtraObj)optimMap.get(point)).getNearest();\n res.add(point);\n }\n \n Collections.reverse(res);\n \n \n return res;\n \n }",
"private void computeShortestPathsFromSource(V source) {\n\t\tBFSDistanceLabeler<V, E> labeler = new BFSDistanceLabeler<V, E>();\n\t\tlabeler.labelDistances(mGraph, source);\n\t\tdistances = labeler.getDistanceDecorator();\n\t\tMap<V, Number> currentSourceSPMap = new HashMap<V, Number>();\n\t\tMap<V, E> currentSourceEdgeMap = new HashMap<V, E>();\n\n\t\tfor (V vertex : mGraph.getVertices()) {\n\n\t\t\tNumber distanceVal = distances.get(vertex);\n\t\t\t// BFSDistanceLabeler uses -1 to indicate unreachable vertices;\n\t\t\t// don't bother to store unreachable vertices\n\t\t\tif (distanceVal != null && distanceVal.intValue() >= 0) {\n\t\t\t\tcurrentSourceSPMap.put(vertex, distanceVal);\n\t\t\t\tint minDistance = distanceVal.intValue();\n\t\t\t\tfor (E incomingEdge : mGraph.getInEdges(vertex)) {\n\t\t\t\t\tfor (V neighbor : mGraph\n\t\t\t\t\t\t\t.getIncidentVertices(incomingEdge)) {\n\t\t\t\t\t\tif (neighbor.equals(vertex))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t// V neighbor = mGraph.getOpposite(vertex,\n\t\t\t\t\t\t// incomingEdge);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNumber predDistanceVal = distances.get(neighbor);\n\n\t\t\t\t\t\tint pred_distance = predDistanceVal.intValue();\n\t\t\t\t\t\tif (pred_distance < minDistance && pred_distance >= 0) {\n\t\t\t\t\t\t\tminDistance = predDistanceVal.intValue();\n\t\t\t\t\t\t\tcurrentSourceEdgeMap.put(vertex, incomingEdge);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tmDistanceMap.put(source, currentSourceSPMap);\n\t\tmIncomingEdgeMap.put(source, currentSourceEdgeMap);\n\t}",
"public List<GeographicPoint> dijkstra(GeographicPoint start, GeographicPoint goal) {\n\t\t// Dummy variable for calling the search algorithms\n\t\t// You do not need to change this method.\n Consumer<GeographicPoint> temp = (x) -> {};\n return dijkstra(start, goal, temp);\n\t}",
"public ShortestPath(IWeightedGraph<N,E> graph, int startNode) {\n\t\tthis.graph = graph;\n\t\tthis.startNode = startNode;\n\t\tthis.shortestPaths = new double[graph.numberOfNodes()];\n\t\tthis.previousNode = new int[graph.numberOfNodes()];\n\t\tbellmanFord(this.graph, this.startNode);\n\t}",
"interface OptimizationStrategy<L, T extends Number> {\n\n /** Returns what the concrete strategy finds to be the shortest Hamiltonian Cycle.\n *\n * Note, this may differ from the actual best cycle.\n */\n Cycle getOptimalCycle(Graph<L, T> graph);\n}",
"public interface FriendshipGraph extends MyGraph\n{\n /** Distance value for source and target vertex pairs that are disconnected. */\n public static final int disconnectedDist = -1;\n \n \n /**\n * Returns the set of neighbours for a vertex. If vertex doesn't exist, then a warning to System.err should be issued.\n *\n * @param vertLabel Vertex to find the neighbourhood for.\n *\n * @returns The set of neighbours of vertex 'vertLabel'.\n */\n public abstract ArrayList<String> neighbours(String vertLabel);\n\t\n\t\n\t/**\n\t * Computes the shortest path distance between two vertices. If one or both of the vertices doesn't exist, then a warning to System.err should be issued.\n\t *\n\t * Note for undirected graph, which vertex is the origin and which is the destination doesn't matter, i.e., distance(A,B) = distance (B,A).\n\t *\n\t * @param vertLabel1 Origin vertex to compute shortest path distance from. \n\t * @param vertLabel2 Destination vertex to compute shortest path distance to.\n\t *\n\t * @returns Shortest path distance. If there is no path between the vertices, then the value of FriendshipGraph.disconnectedDist should be returned.\n\t */\n\tpublic abstract int shortestPathDistance(String vertLabel1, String vertLabel2);\n\t\n}",
"public interface IRoutableEdge<N extends INode> extends IEdge<N> {\n /**\n * Set the shape of the path taken for the edge\n * @param route path\n */\n void setRoute(Shape route);\n}",
"@Test\n void testShortestPath(){\n weighted_graph g = new WGraph_DS();\n for(int i = 1; i <= 7; i++){\n g.addNode(i);\n }\n g.connect(1,2,20);\n g.connect(1,5,15);\n g.connect(2,3,20);\n g.connect(5,6,15);\n g.connect(3,4,20);\n g.connect(6,4,15);\n g.connect(1,7,2);\n g.connect(7,4,1);\n weighted_graph_algorithms ga = new WGraph_Algo();\n ga.init(g);\n LinkedList<node_info> expectedPath = new LinkedList<>(Arrays.asList(g.getNode(1),g.getNode(7),g.getNode(4)));\n assertNull(ga.shortestPath(1,10));\n assertEquals(expectedPath,ga.shortestPath(1,4));\n assertEquals(1,ga.shortestPath(1,1).size());\n }",
"public Paths(Graph G, int s)\n {\n ...\n }",
"Iterable<Vertex> computePath(Vertex start, Vertex end) throws GraphException;",
"public interface WeightedGraph<V,E extends WeightedEdge<V>> extends Graph<V,E> {\n/**\n * Uses the\n * Floyd-Warshall all-pairs shortest path algorithm to compute and return a shortest\n * path matrix.\n**/\n\n\tpublic ShortestPathMatrix<V,E> allPairsShortestPaths();\n/**\n * Uses\n * the Bellman-Ford shortest path algorithm to compute and return a shortest path tree\n * for the given source vertex. This algorithm will yield the correct answer if there are\n * negative weight edges, provided that there is no negative weight cycle.\n**/\n\n\tpublic InTree<V,E> generalShortestPathFromSource(V source);\n/**\n * Uses Kruskal's minimum spanning tree to\n * return a set of edges that form a minimum spanning tree for this graph.\n * It throws a <code>DisconnectedGraphException</code> when the graph is not connected,\n * a <code>NegativeWeightEdgeException</code> when a negative weight edge\n * is encountered, and a <code>GraphException</code> when the graph is directed.\n**/\n\n\tpublic Set<E> kruskalMST() throws NegativeWeightEdgeException, DisconnectedGraphException;\n/**\n * Uses the\n * Edmonds-Karp implementation of the basic Ford-Fulkerson augmenting path\n * method to find a maximum flow (and a minimum cut) for the flow network\n * defined by the provided source and sink.\n**/\n\n\tpublic AbstractWeightedGraph<V,E>.FlowGraph maximumFlow(V source, V sink);\n/**\n * Uses Prim's minimum spanning tree to\n * return a set of edges that forms a minimum spanning tree for this graph.\n * It throws a <code>DisconnectedGraphException</code> when the graph is not connected,\n * a <code>NegativeWeightEdgeException</code> when a negative weight edge\n * is encountered, and an <code>IllegalArgumentException</code> when the graph is directed.\n**/\n\n\tpublic Set<E> primMST() throws NegativeWeightEdgeException, DisconnectedGraphException;\n/**\n * Uses\n * Dijkstra's shortest path algorithm to compute and return a shortest path tree\n * for the given source vertex. It throws a <code>NegativeWeightEdgeException</code> when the\n * graph has a negative weight edge reachable from the source.\n**/\n\n\tpublic InTree<V,E> weightedShortestPaths(V source)\n\t\tthrows NegativeWeightEdgeException, DisconnectedGraphException;\n}",
"private void calculateShortestRoute(String strSourceTerminal){\n\t\tshortestTravelTime = new HashMap<>();\n\n //stores parent of every terminal in shortest travel time\n parent = new HashMap<>();\n \n //heap + map data structure\n MinimumHeap<BaggageTerminal> minHeap = new MinimumHeap<>();\n\n //initialize all terminal with infinite distance from source terminal\n for(BaggageTerminal baggageTerminal : graph.getTerminals()){\n minHeap.add(Integer.MAX_VALUE, baggageTerminal);\n }\n \n BaggageTerminal sourceTerminal = graph.getTerminal(strSourceTerminal);\n \n //set distance of source terminal to itself 0\n minHeap.decrease(sourceTerminal, 0);\n\n //put it in map\n shortestTravelTime.put(sourceTerminal, 0);\n\n //source terminal parent is null\n parent.put(sourceTerminal, null);\n\n //iterate till heap is not empty\n while(!minHeap.empty()){\n //get the min value from heap node which has vertex and distance of that vertex from source vertex.\n MinimumHeap<BaggageTerminal>.Node heapNode = minHeap.extractMinNode();\n BaggageTerminal currentTerminal = heapNode.key;\n\n //update shortest distance of current vertex from source vertex\n shortestTravelTime.put(currentTerminal, heapNode.weight);\n\n //iterate through all connections of current terminal\n for(Connection connection : currentTerminal.getConnections()){\n\n //get the adjacent terminal\n BaggageTerminal adjacent = getConnectingTerminal(currentTerminal, connection);\n\n //if heap does not contain adjacent vertex means adjacent vertex already has shortest distance from source vertex\n if(!minHeap.containsData(adjacent)){\n continue;\n }\n\n //add distance of current vertex to edge weight to get distance of adjacent vertex from source vertex\n //when it goes through current vertex\n int newDistance = shortestTravelTime.get(currentTerminal) + connection.getWeight();\n\n //see if this above calculated distance is less than current distance stored for adjacent vertex from source vertex\n if(minHeap.getWeight(adjacent) > newDistance) {\n minHeap.decrease(adjacent, newDistance);\n parent.put(adjacent, currentTerminal);\n }\n }\n }\n return;\n }",
"public List<Node> computeDijkstraShortestPath(Node source, Node destination) {\n\n source.minDistance = 0.;\n PriorityQueue<Node> nodeQueue = new PriorityQueue<Node>();\n nodeQueue.add(source);\n\n int destinationGroup = destination._groupID;\n\n while (!nodeQueue.isEmpty()) {\n Node v = nodeQueue.poll();\n\n Log.i(\"bbb\", \"In dijsk node name \"+ v._waypointName);\n //Stop searching when reach the destination node\n\n\n if(destinationGroup!=0){\n\n if(v._groupID==destinationGroup){\n destination = navigationGraph.get(navigationGraph.size()-1).nodesInSubgraph.get(v._waypointID);\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n break;\n }\n\n }\n\n if (v._waypointID.equals(destination._waypointID))\n break;\n\n\n // Visit each edge that is adjacent to v\n for (Edge e : v._edges) {\n Node a = e.target;\n Log.i(\"bbb\", \"node a \"+a._waypointName);\n double weight = e.weight;\n double distanceThroughU = v.minDistance + weight;\n if (distanceThroughU < a.minDistance) {\n nodeQueue.remove(a);\n a.minDistance = distanceThroughU;\n a.previous = v;\n Log.i(\"bbb\", \"set previous\");\n nodeQueue.add(a);\n }\n }\n }\n\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n return getShortestPathToDestination(destination);\n }",
"private static ArrayList<Connection> pathFindDijkstra(Graph graph, int start, int goal) {\n\t\tNodeRecord startRecord = new NodeRecord();\r\n\t\tstartRecord.setNode(start);\r\n\t\tstartRecord.setConnection(null);\r\n\t\tstartRecord.setCostSoFar(0);\r\n\t\tstartRecord.setCategory(OPEN);\r\n\t\t\r\n\t\tArrayList<NodeRecord> open = new ArrayList<NodeRecord>();\r\n\t\tArrayList<NodeRecord> close = new ArrayList<NodeRecord>();\r\n\t\topen.add(startRecord);\r\n\t\tNodeRecord current = null;\r\n\t\tdouble endNodeCost = 0;\r\n\t\twhile(open.size() > 0){\r\n\t\t\tcurrent = getSmallestCSFElementFromList(open);\r\n\t\t\tif(current.getNode() == goal){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tGraphNode node = graph.getNodeById(current.getNode());\r\n\t\t\tArrayList<Connection> connections = node.getConnection();\r\n\t\t\tfor( Connection connection :connections){\r\n\t\t\t\t// get the cost estimate for end node\r\n\t\t\t\tint endNode = connection.getToNode();\r\n\t\t\t\tendNodeCost = current.getCostSoFar() + connection.getCost();\r\n\t\t\t\tNodeRecord endNodeRecord = new NodeRecord();\r\n\t\t\t\t// if node is closed skip it\r\n\t\t\t\tif(listContains(close, endNode))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t// or if the node is in open list\r\n\t\t\t\telse if (listContains(open,endNode)){\r\n\t\t\t\t\tendNodeRecord = findInList(open, endNode);\r\n\t\t\t\t\t// print\r\n\t\t\t\t\t// if we didn't get shorter route then skip\r\n\t\t\t\t\tif(endNodeRecord.getCostSoFar() <= endNodeCost) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// else node is not visited yet\r\n\t\t\t\telse {\r\n\t\t\t\t\tendNodeRecord = new NodeRecord();\r\n\t\t\t\t\tendNodeRecord.setNode(endNode);\r\n\t\t\t\t}\r\n\t\t\t\t//update the node\r\n\t\t\t\tendNodeRecord.setCostSoFar(endNodeCost);\r\n\t\t\t\tendNodeRecord.setConnection(connection);\r\n\t\t\t\t// add it to open list\r\n\t\t\t\tif(!listContains(open, endNode)){\r\n\t\t\t\t\topen.add(endNodeRecord);\r\n\t\t\t\t}\r\n\t\t\t}// end of for loop for connection\r\n\t\t\topen.remove(current);\r\n\t\t\tclose.add(current);\r\n\t\t}// end of while loop for open list\r\n\t\tif(current.getNode() != goal)\r\n\t\t\treturn null;\r\n\t\telse { //get the path\r\n\t\t\tArrayList<Connection> path = new ArrayList<>();\r\n\t\t\twhile(current.getNode() != start){\r\n\t\t\t\tpath.add(current.getConnection());\r\n\t\t\t\tint newNode = current.getConnection().getFromNode();\r\n\t\t\t\tcurrent = findInList(close, newNode);\r\n\t\t\t}\r\n\t\t\tCollections.reverse(path);\r\n\t\t\treturn path;\r\n\t\t}\r\n\t}",
"public interface Graph {\n\n\t/**\n\t * Method to add the edge from start to end to the graph.\n\t * Adding self-loops is not allowed.\n\t * @param start start vertex\n\t * @param end end vertex\n\t */\n\tpublic void addEdge(int start, int end);\n\n\t/**\n\t * Method to add the edge with the given weight to the graph from start to end.\n\t * Adding self-loops is not allowed.\n\t * @param start number of start vertex\n\t * @param end number of end vertex\n\t * @param weight weight of edge\n\t */\n\tpublic void addEdge(int start, int end, double weight);\n\n\t/**\n\t * Method to add a vertex to the graph.\n\t */\n\tpublic void addVertex();\n\t\n\t/**\n\t * Method to add multiple vertices to the graph.\n\t * @param n number of vertices to add\n\t */\n\tpublic void addVertices(int n);\n\n\t/**\n\t * Returns all neighbors of the given vertex v (all vertices i with {i,v} in E or (i,v) or (v,i) in E).\n\t * @param v vertex whose neighbors shall be returned\n\t * @return List of vertices adjacent to v\n\t */\n\tpublic List<Integer> getNeighbors(int v);\n\n\t/**\n\t * Returns a list containing all predecessors of v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all predecessors of v\n\t */\n\tpublic List<Integer> getPredecessors(int v);\n\n\t/**\n\t * Returns a list containing all successors v. In an undirected graph all neighbors are returned.\n\t * @param v vertex id\n\t * @return list containing all edges starting in v\n\t */\n\tpublic List<Integer> getSuccessors(int v);\n\n\t/**\n\t * Method to get the number of vertices.\n\t * @return number of vertices\n\t */\n\tpublic int getVertexCount();\n\n\t/**\n\t * Method to get the weight of the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of edge / arc\n\t * @param end end vertex of edge / arc\n\t * @return Double.POSITIVE_INFINITY, if the edge does not exist, c_{start, end} otherwise\n\t */\n\tpublic double getEdgeWeight(int start, int end);\n\n\t/**\n\t * Method to test whether the graph contains the edge {start, end} / the arc (start, end).\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic boolean hasEdge(int start, int end);\n\n\t/**\n\t * Method to remove an edge from the graph, defined by the vertices start and end.\n\t * @param start start vertex of the edge\n\t * @param end end vertex of the edge\n\t */\n\tpublic void removeEdge(int start, int end);\n\n\t/**\n\t * Method to remove the last vertex from the graph.\n\t */\n\tpublic void removeVertex();\n\n\t/**\n\t * Returns whether the graph is weighted.\n\t * A graph is weighted if an edge with weight different from 1.0 has been added to the graph.\n\t * @return true if the graph is weighted\n\t */\n\tpublic boolean isWeighted();\n\n\t/**\n\t * Returns whether the graph is directed.\n\t * @return true if the graph is directed\n\t */\n\tpublic boolean isDirected();\n\n}",
"public interface GNode{\n\n\tpublic String getName();\n\tpublic GNode[] getChildren();\n\tpublic ArrayList<GNode> walkGraph(GNode parent);\n\tpublic ArrayList<ArrayList<GNode>> paths(GNode parent);\n\n}",
"public interface Vertex<V extends Vertex<V, E>, E extends Edge<V, E>> {\n\n /**\n * Getter for the vertex's neighbors.\n *\n * @return A set of edges, representing all the edge of neighbors to the\n * vertex.\n */\n Set<E> getForwardNeighbors();\n\n Set<E> getBackwardNeighbors();\n\n /**\n * Getter for the ID of the vertex.\n *\n * @return A string, representing the ID of the vertex.\n */\n String getID();\n\n\n /**\n * Get edge that will be used in best path to get to this node\n * @return best edge\n */\n E getBestIncoming();\n\n /**\n * set edge that will be used in best path to get to this node\n * @return best edge\n */\n void setBestIncoming(E edge);\n\n}",
"public String findShortestRoute(char start, char finish) {\r\n PriorityQueue<Vertex> Q = new PriorityQueue<>(new Comparator<Vertex>() {\r\n @Override\r\n public int compare(Vertex v1, Vertex v2) {\r\n return Integer.compare(v1.getDistanceFromStart(), v2.getDistanceFromStart());\r\n }\r\n });\r\n\r\n Vertex startVert = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == start) {\r\n v.setDistanceFromStart(0);\r\n v.setPrevious(v);\r\n startVert = v;\r\n }\r\n else {\r\n v.setDistanceFromStart(Integer.MAX_VALUE);\r\n v.setPrevious(null);\r\n }\r\n Q.add(v);\r\n }\r\n if(startVert == null) {\r\n throw new IllegalArgumentException(\"start vertex is not in graph\");\r\n }\r\n\r\n Vertex finishVert = null;\r\n while(!Q.isEmpty()) {\r\n Vertex v = Q.remove(); // remove first vertex in queue, the shortest path has been found to this vertex\r\n if(v.getName() == finish) {\r\n finishVert = v;\r\n break; // finish quicker\r\n }\r\n for(Edge incidentEdge : v.getIncidentEdges()) {\r\n Vertex adjacentVertex = incidentEdge.getOppositeVertex(v);\r\n int alt = v.getDistanceFromStart() + incidentEdge.getDistance();\r\n if(alt < adjacentVertex.getDistanceFromStart()) { // if going through this edge shortens the route to adjacentVertex\r\n adjacentVertex.setDistanceFromStart(alt);\r\n adjacentVertex.setPrevious(v);\r\n Q.remove(adjacentVertex); // increase the priority of adjacent vertices if this vertex shortens their route\r\n Q.add(adjacentVertex);\r\n }\r\n }\r\n }\r\n \r\n // throw exception if finish vertex not found\r\n if(finishVert == null) {\r\n throw new IllegalArgumentException(\"finish vertex is not in graph\");\r\n }\r\n \r\n // build the return value by adding vertex names from finish to start,\r\n // reversing the string, then concatenating the distance\r\n StringBuilder sb = new StringBuilder();\r\n for(Vertex v = finishVert; v != startVert; v = v.getPrevious()) {\r\n sb.append(v.getName());\r\n }\r\n return sb.append(start).reverse().append(finishVert.getDistanceFromStart()).toString();\r\n }",
"private void computePath(){\n LinkedStack<T> reversePath = new LinkedStack<T>();\n // adding end vertex to reversePath\n T current = end; // first node is the end one\n while (!current.equals(start)){\n reversePath.push(current); // adding current to path\n current = closestPredecessor[vertexIndex(current)]; // changing to closest predecessor to current\n }\n reversePath.push(current); // adding the start vertex\n \n while (!reversePath.isEmpty()){\n path.enqueue(reversePath.pop());\n }\n }",
"@Override\n\tpublic boolean findPath(PathfindingNode start, PathfindingNode end, ArrayList<PathfindingNode> path) \n\t{\n\t\tpath.clear();\n\t\t\n\t\t_visited.clear();\n\t\t_toVisit.clear();\n\t\t_parents.clear();\n\t\t_costsFromStart.clear();\n\t\t_totalCosts.clear();\n\n\t\t_costsFromStart.put(start, 0);\n\t\t_toVisit.add(start);\n\t\t_parents.put(start, null);\n\t\t\n\t\twhile (!_toVisit.isEmpty() && !_toVisit.contains(end))\n\t\t{\n\t\t\tPathfindingNode m = _toVisit.remove();\n\t\t\t\n\t\t\tint mCost = _costsFromStart.get(m);\n\t\t\t\n\t\t\tfor (int i = 0; i < m.getNeighbors().size(); ++i)\n\t\t\t{\n\t\t\t\tPathfindingNodeEdge n = m.getNeighbors().get(i);\n\t\t\t\tif (n.getNeighbor() != null && !_visited.contains(n.getNeighbor()))\n\t\t\t\t{\n\t\t\t\t\tint costFromSource = mCost + n.getCost();\n\t\t\t\t\tint totalCost = costFromSource + _estimator.estimate(n.getNeighbor(), end);\n\t\t\t\t\tif (!_toVisit.contains(n.getNeighbor()) || totalCost < _totalCosts.get(n.getNeighbor()))\n\t\t\t\t\t{\n\t\t\t\t\t\t_parents.put(n.getNeighbor(), m);\n\t\t\t\t\t\t_costsFromStart.put(n.getNeighbor(), costFromSource);\n\t\t\t\t\t\t_totalCosts.put(n.getNeighbor(), totalCost);\n\t\t\t\t\t\tif (_toVisit.contains(n.getNeighbor()))\n\t\t\t\t\t\t\t_toVisit.remove(n.getNeighbor());\n\t\t\t\t\t\t_toVisit.add(n.getNeighbor());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t_visited.add(m);\n\t\t}\n\t\t\n\t\tif (_toVisit.contains(end))\n\t\t{\n\t\t\t_reversePath.clear();\n\t\t\t\n\t\t\tPathfindingNode current = end;\n\t\t\twhile (current != null)\n\t\t\t{\n\t\t\t\t_reversePath.push(current);\n\t\t\t\tcurrent = _parents.get(current);\n\t\t\t}\n\t\t\t\n\t\t\twhile (!_reversePath.isEmpty())\n\t\t\t\tpath.add(_reversePath.pop());\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpath.add(start);\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\tpublic void search() {\n\t\tpq = new IndexMinPQ<>(graph.getNumberOfStations());\n\t\tpq.insert(startIndex, distTo[startIndex]);\n\t\twhile (!pq.isEmpty()) {\n\t\t\tint v = pq.delMin();\n\t\t\tnodesVisited.add(graph.getStation(v));\n\t\t\tnodesVisitedAmount++;\n\t\t\tfor (Integer vertex : graph.getAdjacentVertices(v)) {\t\n\t\t\t\trelax(graph.getConnection(v, vertex));\n\t\t\t}\n\t\t}\n\t\tpathWeight = distTo[endIndex];\n\t\tpathTo(endIndex);\n\t}",
"private String getShortestPath(final Pair<Long, Long> src, final Pair<Long, Long> dst,\n final String passCode, final boolean first) {\n final var queue = new LinkedList<Node>();\n final var seen = new HashSet<Node>();\n //start from source\n final var srcNode = new Node( src, \"\" );\n queue.add( srcNode );\n seen.add( srcNode );\n\n int max = 0;\n while ( !queue.isEmpty() ) {\n final var curr = queue.remove();\n if ( curr.pos.equals( dst ) ) {\n if ( first ) {\n //shortest path\n return curr.path;\n } else {\n //store path length\n max = curr.path.length();\n //stop this path\n }\n } else {\n for ( final var neighbour : getNeighbours( curr, passCode ) ) {\n //unseen neighbour\n if ( seen.add( neighbour ) ) {\n //add to the queue\n queue.add( neighbour );\n }\n }\n }\n }\n\n return itoa( max );\n }"
] | [
"0.7322763",
"0.7245171",
"0.72441834",
"0.71992856",
"0.71552336",
"0.7088728",
"0.7058405",
"0.69642055",
"0.6953122",
"0.69362044",
"0.687703",
"0.67570764",
"0.67023677",
"0.66885924",
"0.6654853",
"0.6642864",
"0.6552314",
"0.65258914",
"0.65221685",
"0.6510579",
"0.6509646",
"0.6502253",
"0.6499212",
"0.6490034",
"0.6477482",
"0.64598006",
"0.64525306",
"0.6450318",
"0.63796514",
"0.63716274",
"0.6354692",
"0.633249",
"0.6331651",
"0.6318843",
"0.63144815",
"0.6313049",
"0.6309715",
"0.63080347",
"0.62992936",
"0.6286236",
"0.6261806",
"0.625007",
"0.62451833",
"0.6239959",
"0.6235764",
"0.62258106",
"0.6224252",
"0.6189961",
"0.6179563",
"0.6173981",
"0.6146667",
"0.61427665",
"0.6136182",
"0.6135421",
"0.61146903",
"0.61088854",
"0.61082345",
"0.6107606",
"0.6103056",
"0.61005795",
"0.60889864",
"0.60815245",
"0.6081481",
"0.60652006",
"0.6060539",
"0.6057057",
"0.6052835",
"0.60320115",
"0.60219246",
"0.60205257",
"0.601577",
"0.6011137",
"0.6004662",
"0.59975123",
"0.59900934",
"0.59874696",
"0.59858406",
"0.5980213",
"0.5976708",
"0.59693635",
"0.5967077",
"0.5964233",
"0.59638214",
"0.59611005",
"0.5960928",
"0.59602994",
"0.59597766",
"0.5958807",
"0.5955035",
"0.59520465",
"0.59443974",
"0.5942479",
"0.5922316",
"0.59203017",
"0.5917748",
"0.5913526",
"0.590555",
"0.59016216",
"0.58999586",
"0.5898441"
] | 0.7252015 | 1 |
Sets the graph to use in computation | public void setGraph(Graph<V,E> graph); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setGraph(){\r\n setDisplay(currentGraph);\r\n }",
"public void setGraph(String graph) {\n this.graph = graph;\n }",
"public void setNewGraph() {\n\tresetHints();\r\n Random random = new Random();\r\n if (graphMode == 1) {\r\n if (selectedSize == 1) {\r\n currentGraph = chromaticManager.calculate(random.nextInt(myInformation.smallGraph) + 1, -1);\r\n }\r\n if (selectedSize == 2) {\r\n currentGraph = chromaticManager.calculate(random.nextInt(myInformation.middleGraph - myInformation.smallGraph) + myInformation.smallGraph + 1, -1);\r\n }\r\n if (selectedSize == 3) {\r\n currentGraph = chromaticManager.calculate(random.nextInt(myInformation.bigGraph - myInformation.middleGraph) + myInformation.middleGraph + 1, -1);\r\n }\r\n }\r\n if (graphMode == 2) {\r\n currentGraph = chromaticManager.calculate(myGraph);\r\n }\r\n if (graphMode == 3) {\r\n try {\r\n stackPane.getChildren().removeAll(textFieldHBox, backPane);\r\n myVertices = Integer.parseInt(textFieldVertices.getText());\r\n myEdges = Integer.parseInt(textFieldEdges.getText());\r\n currentGraph = chromaticManager.calculate(myVertices, myEdges);\r\n setDisplay(currentGraph);\r\n } catch (NumberFormatException e) {\r\n\r\n }\r\n }\r\n threadPoolExecutor.execute(() -> {\r\n NewForce newForce = new NewForce();\r\n currentGraph.setCNumer(newForce.doNewForce(currentGraph,currentGraph.getUpperBound(),currentGraph.getLowerBound()));\r\n });\r\n }",
"public void setGraph(Graph2D graph) {\n mBI = null;\n mGraph = graph;\n updateUI();\n }",
"public void setCurrentGraph(GraphConfig config) {\n WorkspaceConfig workspace = mvc.model.getWorkspace();\n if (workspace != null) {\n workspace.graph = config;\n notifyListeners(Type.CURRENT_GRAPH);\n }\n }",
"public void setGraphModel(GraphModel m)\n {\n getGraphPane().setGraphModel(m);\n }",
"T setGraphs(List<Graph> graphs);",
"public void buildGraph() {\n //System.err.println(\"Build Graph \"+this);\n if (node instanceof eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)\n ((eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)node).restoreSceneGraphObjectReferences( control.getSymbolTable() );\n }",
"private void setGraphParameters()\r\n\t{\r\n\r\n\t\tlogger.info(\"Setting graph parameters.\");\r\n\t\tlogger.info(\"Treating the graph as undirected.\");\r\n\r\n\t\t// Diameter is the maximum of all shortest path lengths\r\n\t\t// Average shortest path length is (as the name says) the average of the\r\n\t\t// shortest path length between all node pairs\r\n\r\n\t\tdouble maxPathLength = 0.0;\r\n\t\tdouble shortestPathLengthSum = 0.0;\r\n\t\tdouble degreeSum = 0.0;\r\n\t\tdouble clusterCoefficientSum = 0.0;\r\n\r\n\t\t// iterate over all node pairs\r\n\t\tCollection<Entity> nodes = undirectedGraph.getVertices();\r\n\r\n\t\t// a hashset of the nodes which have been the start node of the\r\n\t\t// computation process\r\n\t\t// for such nodes all path lengths have been already computed\r\n\t\tSet<Entity> wasSource = new HashSet<Entity>();\r\n\r\n\t\tint progress = 0;\r\n\t\tfor (Entity node : nodes) {\r\n\r\n\t\t\tprogress++;\r\n\t\t\tLoggingUtils.printProgressInfo(progress, nodes.size(), 100,\r\n\t\t\t\t\tLoggingUtils.ProgressInfoMode.TEXT,\r\n\t\t\t\t\t\"Getting graph parameters\");\r\n\r\n\t\t\tint nodeDegree = getDegree(node);\r\n\t\t\t// degreeSum += nodeDegree;\r\n\r\n\t\t\t// logger.info(\"Updating degree distribution.\");\r\n\t\t\t// updateDegreeDistribution(nodeDegree);\r\n\r\n\t\t\t// cluster coefficient C_v of a node v is the fraction of the\r\n\t\t\t// connections that exist between the\r\n\t\t\t// neighbor nodes (k_v) of this node and all allowable connections\r\n\t\t\t// between the neighbors (k_v(k_v -1)/2)\r\n\t\t\t// for degrees 0 or 1 there is no cluster coefficient, as there can\r\n\t\t\t// be no connections between neighbors\r\n\t\t\tif (nodeDegree > 1) {\r\n\t\t\t\tdouble numberOfNeighborConnections = getNumberOfNeighborConnections(node);\r\n\t\t\t\tclusterCoefficientSum += (numberOfNeighborConnections / (nodeDegree * (nodeDegree - 1)));\r\n\t\t\t}\r\n\r\n\t\t\t// Returns the new shortestPathLengthSum and the new maxPathLength.\r\n\t\t\t// They are returned as an double array for performance reasons.\r\n\t\t\t// I do not want to create an object, as this function is called\r\n\t\t\t// *very* often\r\n\t\t\t// logger.info(\"Computing shortest path lengths.\");\r\n\t\t\tdouble[] returnValues = computeShortestPathLengths(node,\r\n\t\t\t\t\tshortestPathLengthSum, maxPathLength, wasSource);\r\n\t\t\tshortestPathLengthSum = returnValues[0];\r\n\t\t\tmaxPathLength = returnValues[1];\r\n\r\n\t\t\t// save the info that the node was already used as the source of\r\n\t\t\t// path computation\r\n\t\t\twasSource.add(node);\r\n\t\t}\r\n\r\n\t\tif (nodes.size() > 1) {\r\n\t\t\tthis.averageShortestPathLength = shortestPathLengthSum\r\n\t\t\t\t\t/ (nodes.size() * (nodes.size() - 1) / 2);\r\n\t\t\t// sum of path lengths / (number of node pairs)\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthis.averageShortestPathLength = 0; // there is only one node\r\n\t\t}\r\n\t\tthis.diameter = maxPathLength;\r\n\t\tthis.averageDegree = degreeSum / nodes.size();\r\n\t\tthis.clusterCoefficient = clusterCoefficientSum / nodes.size();\r\n\t}",
"public void buildGraph(){\n\t}",
"public Graph() {\r\n\t\tinit();\r\n\t}",
"Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}",
"private void initializeFromGraph(Graph<HyperNode, DefaultEdge> graph) {\n Map<HyperNode, Node> nodesMap = addNodes(graph);\n addEdges(graph, nodesMap);\n }",
"public Graph() {\r\n\t\tthis.matrix = new Matrix();\r\n\t\tthis.listVertex = new ArrayList<Vertex>();\r\n\t}",
"private void setupGraph() {\n graph = new DualGraph(SchemaFactoryUtilities.getSchemaFactory(VisualSchemaFactory.VISUAL_SCHEMA_ID).createSchema());\n try {\n\n WritableGraph wg = graph.getWritableGraph(\"\", true);\n\n // Create LayerMask attributes\n layerMaskV = LayersConcept.VertexAttribute.LAYER_MASK.ensure(wg);\n layerMaskT = LayersConcept.TransactionAttribute.LAYER_MASK.ensure(wg);\n\n // Create LayerVisilibity Attributes\n layerVisibilityV = LayersConcept.VertexAttribute.LAYER_VISIBILITY.ensure(wg);\n layerVisibilityT = LayersConcept.TransactionAttribute.LAYER_VISIBILITY.ensure(wg);\n\n // Create Selected Attributes\n selectedV = VisualConcept.VertexAttribute.SELECTED.ensure(wg);\n selectedT = VisualConcept.TransactionAttribute.SELECTED.ensure(wg);\n\n // Adding 2 Vertices - not selected, layer 1, visible\n vxId1 = wg.addVertex();\n wg.setIntValue(layerMaskV, vxId1, 1);\n wg.setFloatValue(layerVisibilityV, vxId1, 1.0f);\n wg.setBooleanValue(selectedV, vxId1, false);\n\n vxId2 = wg.addVertex();\n wg.setIntValue(layerMaskV, vxId2, 1);\n wg.setFloatValue(layerVisibilityV, vxId2, 1.0f);\n wg.setBooleanValue(selectedV, vxId2, false);\n\n // Adding 2 Transactions - not selected, layer 1, visible\n txId1 = wg.addTransaction(vxId1, vxId2, true);\n wg.setIntValue(layerMaskT, txId1, 1);\n wg.setFloatValue(layerVisibilityT, txId1, 1.0f);\n wg.setBooleanValue(selectedT, txId1, false);\n\n txId2 = wg.addTransaction(vxId1, vxId2, false);\n wg.setIntValue(layerMaskT, txId2, 1);\n wg.setFloatValue(layerVisibilityT, vxId2, 1.0f);\n wg.setBooleanValue(selectedT, vxId2, false);\n\n wg.commit();\n\n } catch (final InterruptedException ex) {\n Exceptions.printStackTrace(ex);\n Thread.currentThread().interrupt();\n }\n }",
"public StockEvent setGraph(String graph) {\n this.graph = graph;\n return this;\n }",
"private static void setGraph()\n\t\t{\n\t\t\tmap = new HashMap();\n\t\t\t\n\t\t\twordNum = 0;\n\t\t\twordList = new String[txtStr.length()];\n\t\t\tfor(int i = 0; i<strList.length; i++)\n\t\t\t{\n\t\t\t\tif(!map.containsKey(strList[i]))\n\t\t\t\t{\n\t\t\t\t\tmap.put(strList[i], wordNum);\n\t\t\t\t\twordList[wordNum] = strList[i];\n\t\t\t\t\twordNum++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tg = new MyGraph(wordNum);\n\t\t\tfor(int i=0; i<strList.length - 1; i++)\n\t\t\t{\n\t\t\t\tint v0 = (int)(map.get(strList[i]));\n\t\t\t\tint v1 = (int)(map.get(strList[i+1]));\n\t\t\t\tint cost = g.getEdge(v0, v1);\n\t\t\t\t\n\t\t\t\tg.setEdge(v0, v1, cost+1);\n\t\t\t}\n\t\t//\treturn g;\n\t\t\t\t\t\n\t\t}",
"public Graph(){\r\n this.listEdges = new ArrayList<>();\r\n this.listNodes = new ArrayList<>();\r\n this.shown = true;\r\n }",
"void setGraphLabel(String label);",
"public void initGraph(GraphView graph) {\n graph.getViewport().setXAxisBoundsManual(true);\n graph.getViewport().setMinX(0);\n graph.getViewport().setMaxX(graphWidth); //ici il faut setter maxWidth\n\n graph.getGridLabelRenderer().setLabelVerticalWidth(100);\n for(CustomPair<String, CustomPair<Integer, Integer>> can:cans)\n {\n graph.addSeries(series.get(can.getKey()));\n series.get(can.getKey()).setTitle(can.getKey());\n }\n graph.getLegendRenderer().setVisible(true);\n graph.getLegendRenderer().setBackgroundColor(Color.TRANSPARENT);\n graph.setTitle(name);\n graph.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.MIDDLE);\n graph.getLegendRenderer().setAlign(LegendRenderer.LegendAlign.BOTTOM);\n\n graph.getGridLabelRenderer().setGridColor(themeColor);\n graph.getGridLabelRenderer().setHorizontalLabelsColor(themeColor);\n graph.getGridLabelRenderer().setVerticalLabelsColor(themeColor);\n graph.getGridLabelRenderer().setVerticalAxisTitleColor(themeColor);\n graph.getLegendRenderer().setTextColor(themeColor);\n }",
"public BegsBuilder(Graph graph) {\n this.graph = graph;\n }",
"public void drawGraph(Graph graph);",
"public Graphs() {\n graph = new HashMap<>();\n }",
"public Graph() {\r\n\t\tnodePos = new HashMap<Integer, Vec2D>();\r\n\t\tconnectionLists = new HashMap<Integer, List<Connection>>();\r\n\t\t//screenWidth = Config.SCREEN_WIDTH;\r\n\t}",
"public void updateGraph(){\n\t\tgraph.update(updatePopulations(), iteration);\n\t\titeration++;\n\t}",
"public void putGraph(GraphConfig graph) {\n List<GraphConfig> graphs = getGraphs();\n if (graphs != null) {\n int cur = graphs.indexOf(graph);\n if (cur >= 0) {\n graphs.set(cur, graph);\n } else {\n graphs.add(graph);\n }\n notifyListeners(Type.GRAPHS);\n }\n }",
"public void setGraphPath(String graphPath) {\n this.graphPath = graphPath;\n if(graphPath == null)\n System.err.println(\"Null path\");\n else {\n File dir = new File(graphPath + MAIN_PATH);\n if(!dir.exists()) {\n dir.mkdir();\n //TODO questo va fatto nella creazione del grafo non nel settaggio del path\n System.out.println(\"Directory to save the graph created\");\n }\n }\n }",
"public Graph()\r\n\t{\r\n\t\tthis.adjacencyMap = new HashMap<String, HashMap<String,Integer>>();\r\n\t\tthis.dataMap = new HashMap<String,E>();\r\n\t}",
"public Graph()\n\t{\n\t\tthis.total_verts = null;\n\t\tthis.total_edges = null;\n\t\tnodes = new HashMap<String, Node>();\n\t}",
"private void setGraph(int step) {\r\n\t\tif (this.gragraNames.getSelectedValue() == null)\r\n\t\t\treturn;\r\n\t\tif (step == StepPanel.STEP_HOST_GRAPH\r\n\t\t\t\t|| step == StepPanel.STEP_STOP_GRAPH) {\r\n\t\t\tString name = (String) this.gragraNames.getSelectedValue();\r\n\t\t\tboolean found = false;\r\n\t\t\tfor (int i = 0; i < this.treeView.getGraGras().size() && !found; i++) {\r\n\t\t\t\tEdGraGra gragra = this.treeView.getGraGras().elementAt(i);\r\n\t\t\t\tif (name.equals(gragra.getName())) {\r\n\t\t\t\t\tfound = true;\r\n\t\t\t\t\tswitch (step) {\r\n\t\t\t\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\t\t\t\tthis.hostGraph = gragra;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\t\t\t\tthis.stopGraph = gragra;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\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}\r\n\t\t}\r\n\t}",
"public MutableNodeSet(Graph graph) {\n\t\tsuper(graph);\n\t\tthis.members = new TreeSet<Integer>();\n\t\tinitializeInOutWeights();\n\t}",
"private void buildGraph()\n\t{\n\t\taddVerticesToGraph();\n\t\taddLinkesToGraph();\n\t}",
"@Override\n public void setGraphData(Object o) {\n\n }",
"public void setGraphName(String name) {\n this.graphname = name;\n }",
"Graph(){\n\t\tadjlist = new HashMap<String, Vertex>();\n\t\tvertices = 0;\n\t\tedges = 0;\n\t\tkeys = new ArrayList<String>();\n\t}",
"public void resetGraph(){\n removeAllSeries();\n removeSeries(xySeries);\n removeSeries(currentPoint);\n xySeries = new PointsGraphSeries<>();\n currentPoint = new PointsGraphSeries<>();\n initGraph();\n }",
"@Override\r\n public void init(weighted_graph g) {\r\n this.Graph = g;\r\n }",
"public void startGraph() {\r\n this.setStatus(false);\r\n this.isGraphStarted = true;\r\n\r\n // if (Alg not started yet or Alg started, but not ready for graph) or\r\n // (Alg started but (already read from DB but now fileSelected) or (DB\r\n // selected but not read yet))\r\n if ((!this.is_alg_started || !this.isAlgStartedForGraph)\r\n || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this.UseDB.isSelected())))) {\r\n this.dBInError = false;\r\n this.startALG(false);\r\n } else {\r\n try {\r\n Thread t1 = new Thread(new MyGraphGUI(this.display_sub_current, (ChineseWhispers) this.cw.clone(),\r\n this.display_edges_temp, this.scale_temp, 30, this.display_degree_temp));\r\n t1.start();\r\n } catch (CloneNotSupportedException e) {\r\n e.printStackTrace();\r\n }\r\n this.setStatus(true);\r\n this.isGraphStarted = false;\r\n this.isAlgStartedForGraph = true;\r\n }\r\n }",
"@Override\n\tpublic void init(graph g) {\n\t\tthis.GA = g;\n\t}",
"public Graph() {\n\t\tthis(new PApplet());\n\t}",
"public Graph(){\n\t\tthis.sizeE = 0;\n\t\tthis.sizeV = 0;\n\t}",
"public void plotGraphUsingPlotPreferences(){\n drawGraph();\n }",
"public void setGraph(Graphics2D g2D) {\n\t\tthis.g2D = g2D;\n\t\tg2D.setColor(Color.RED);\n\t\tmodel.loadPoints();\n\t\tfor (Model.Point point : model.loadPointList()) {\n\t\t\tpoint.xValue = point.xValue;\n\t\t\tpoint.yValue = point.yValue;\n\t\t\tg2D.fillRect((int) point.xValue, (int) point.yValue, 4, 4);\n\t\t}\n\t}",
"public Graph() {\n\t\ttowns = new HashSet<Town>();\n\t\troads = new HashSet<Road>();\n\t\tprevVertex = new HashMap<String, Town>();\n\t}",
"@Override protected void onPreExecute() { g = new UndirectedGraph(10); }",
"public Population(Graph graph)\r\n/* 13: */ {\r\n/* 14:36 */ g = graph.cloneGraph();\r\n/* 15: */ }",
"public abstract void setNodes();",
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic Graph() {\r\n \tthis.vertex = new HashMap<T, Vertex>();\r\n \tthis.edge = new HashMap<Integer, Edge>();\r\n }",
"public GraphWrapper() {\n\t\tthis.graph = new Graph<T,E>();\n\t}",
"public void setGraphElement(GraphElement element) {\n this.graphElement = element;\n }",
"public Graph() {\n }",
"@Override\n public Graph getGraph() {\n return graph;\n }",
"public void clearGraph(){\n\t\tthis.tools.clearGraph(graph);\n\t}",
"void addAll(Graph graph);",
"@RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void initializeGraph() {\n checkpointPrefix = Tensors.create((getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS).getAbsolutePath() + \"final_model.ckpt\").toString());\n checkpointDir = getApplicationContext().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS).getAbsolutePath();\n graph = new Graph();\n sess = new Session(graph);\n InputStream inputStream;\n try {\n inputStream = getAssets().open(\"final_graph_hdd.pb\");\n byte[] buffer = new byte[inputStream.available()];\n int bytesRead;\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n output.write(buffer, 0, bytesRead);\n }\n graphDef = output.toByteArray();\n } catch (IOException e) {\n e.printStackTrace();\n }\n graph.importGraphDef(graphDef);\n try {\n sess.runner().feed(\"save/Const\", checkpointPrefix).addTarget(\"save/restore_all\").run();\n Toast.makeText(this, \"Checkpoint Found and Loaded!\", Toast.LENGTH_SHORT).show();\n }\n catch (Exception e) {\n sess.runner().addTarget(\"init\").run();\n Log.i(\"Checkpoint: \", \"Graph Initialized\");\n }\n }",
"protected void resetGraph() {\n for (List<Edge> path : graph) {\r\n for (Edge e : path) {\r\n e.flow = 0;\r\n }\r\n }\r\n }",
"private void createGraph() {\n \t\t\n \t\t// Check capacity\n \t\tCytoscape.ensureCapacity(nodes.size(), edges.size());\n \n \t\t// Extract nodes\n \t\tnodeIDMap = new OpenIntIntHashMap(nodes.size());\n \t\tginy_nodes = new IntArrayList(nodes.size());\n \t\t// OpenIntIntHashMap gml_id2order = new OpenIntIntHashMap(nodes.size());\n \n \t\tfinal HashMap gml_id2order = new HashMap(nodes.size());\n \n \t\tSet nodeNameSet = new HashSet(nodes.size());\n \n \t\tnodeMap = new HashMap(nodes.size());\n \n \t\t// Add All Nodes to Network\n \t\tfor (int idx = 0; idx < nodes.size(); idx++) {\n \t\t\t\n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(1,\n \t\t\t\t\t\tidx, nodes.size()));\n \t\t\t}\n \n \t\t\t// Get a node object (NOT a giny node. XGMML node!)\n \t\t\tfinal cytoscape.generated2.Node curNode = (cytoscape.generated2.Node) nodes\n \t\t\t\t\t.get(idx);\n \t\t\tfinal String nodeType = curNode.getName();\n \t\t\tfinal String label = (String) curNode.getLabel();\n \n \t\t\treadAttributes(label, curNode.getAtt(), NODE);\n \n \t\t\tnodeMap.put(curNode.getId(), label);\n \n \t\t\tif (nodeType != null) {\n \t\t\t\tif (nodeType.equals(\"metaNode\")) {\n \t\t\t\t\tfinal Iterator it = curNode.getAtt().iterator();\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tfinal Att curAttr = (Att) it.next();\n \t\t\t\t\t\tif (curAttr.getName().equals(\"metanodeChildren\")) {\n \t\t\t\t\t\t\tmetanodeMap.put(label, ((Graph) curAttr.getContent()\n \t\t\t\t\t\t\t\t\t.get(0)).getNodeOrEdge());\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (nodeNameSet.add(curNode.getId())) {\n \t\t\t\tfinal Node node = (Node) Cytoscape.getCyNode(label, true);\n \n \t\t\t\tginy_nodes.add(node.getRootGraphIndex());\n \t\t\t\tnodeIDMap.put(idx, node.getRootGraphIndex());\n \n \t\t\t\t// gml_id2order.put(Integer.parseInt(curNode.getId()), idx);\n \n \t\t\t\tgml_id2order.put(curNode.getId(), Integer.toString(idx));\n \n \t\t\t\t// ((KeyValue) node_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// node.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\"XGMML id \" + nodes.get(idx)\n \t\t\t\t\t\t+ \" has a duplicated label: \" + label);\n \t\t\t\t// ((KeyValue)node_root_index_pairs.get(idx)).value = null;\n \t\t\t}\n \t\t}\n \t\tnodeNameSet = null;\n \n \t\t// Extract edges\n \t\tginy_edges = new IntArrayList(edges.size());\n \t\tSet edgeNameSet = new HashSet(edges.size());\n \n \t\tfinal CyAttributes edgeAttributes = Cytoscape.getEdgeAttributes();\n \n \t\t// Add All Edges to Network\n \t\tfor (int idx = 0; idx < edges.size(); idx++) {\n \n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(2,\n \t\t\t\t\t\tidx, edges.size()));\n \t\t\t}\n \t\t\tfinal cytoscape.generated2.Edge curEdge = (cytoscape.generated2.Edge) edges\n \t\t\t\t\t.get(idx);\n \n \t\t\tif (gml_id2order.containsKey(curEdge.getSource())\n \t\t\t\t\t&& gml_id2order.containsKey(curEdge.getTarget())) {\n \n \t\t\t\tString edgeName = curEdge.getLabel();\n \n \t\t\t\tif (edgeName == null) {\n \t\t\t\t\tedgeName = \"N/A\";\n \t\t\t\t}\n \n \t\t\t\tint duplicate_count = 1;\n \t\t\t\twhile (!edgeNameSet.add(edgeName)) {\n \t\t\t\t\tedgeName = edgeName + \"_\" + duplicate_count;\n \t\t\t\t\tduplicate_count += 1;\n \t\t\t\t}\n \n \t\t\t\tEdge edge = Cytoscape.getRootGraph().getEdge(edgeName);\n \n \t\t\t\tif (edge == null) {\n \n \t\t\t\t\tfinal String sourceName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getSource());\n \t\t\t\t\tfinal String targetName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getTarget());\n \n \t\t\t\t\tfinal Node node_1 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\tsourceName);\n \t\t\t\t\tfinal Node node_2 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\ttargetName);\n \n \t\t\t\t\tfinal Iterator it = curEdge.getAtt().iterator();\n \t\t\t\t\tAtt interaction = null;\n \t\t\t\t\tString itrValue = \"unknown\";\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tinteraction = (Att) it.next();\n \t\t\t\t\t\tif (interaction.getName().equals(\"interaction\")) {\n \t\t\t\t\t\t\titrValue = interaction.getValue();\n \t\t\t\t\t\t\tif (itrValue == null) {\n \t\t\t\t\t\t\t\titrValue = \"unknown\";\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tedge = Cytoscape.getCyEdge(node_1, node_2,\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue, true);\n \n \t\t\t\t\t// Add interaction to CyAttributes\n \t\t\t\t\tedgeAttributes.setAttribute(edge.getIdentifier(),\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue);\n \t\t\t\t}\n \n \t\t\t\t// Set correct ID, canonical name and interaction name\n \t\t\t\tedge.setIdentifier(edgeName);\n \n \t\t\t\treadAttributes(edgeName, curEdge.getAtt(), EDGE);\n \n \t\t\t\tginy_edges.add(edge.getRootGraphIndex());\n \t\t\t\t// ((KeyValue) edge_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// edge.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\n \t\t\t\t\t\t\"Non-existant source/target node for edge with gml (source,target): \"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getSource()) + \",\"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getTarget()));\n \t\t\t}\n \t\t}\n \t\tedgeNameSet = null;\n \n \t\tif (metanodeMap.size() != 0) {\n \t\t\tfinal Iterator it = metanodeMap.keySet().iterator();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tfinal String key = (String) it.next();\n \t\t\t\tcreateMetaNode(key, (List) metanodeMap.get(key));\n \t\t\t}\n \t\t}\n \t}",
"public Graph(){//constructor\n //edgemap\n srcs=new LinkedList<>();\n maps=new LinkedList<>();\n chkIntegrity(\"edgemap\");\n \n nodes=new LinkedList<>();\n //m=new EdgeMap();\n }",
"void createGraphForDistributedSingleLoad();",
"public void displayGraph() {\r\n\t\tgraph.display();\r\n\t}",
"public Graph(Map<Vertex<? extends Position>, List<Vertex<? extends Position>>> graph){\n\t\tthis.mapGraph = graph;\n\t}",
"public void setGraphWriter(File graphOutputPath) {\n this.graphOutputPath = graphOutputPath;\n }",
"public Graph() {\n\t\tdictionary=new HashMap<>();\n\t}",
"public Graph(boolean p_isDirectedGraph) {\n\t\tisDirectedGraph = p_isDirectedGraph;\n\t}",
"@Override\n\tpublic void init() {\n\t\tGraph<Number,Number> ig = Graphs.<Number,Number>synchronizedDirectedGraph(new DirectedSparseMultigraph<Number,Number>());\n\t\tObservableGraph<Number,Number> og = new ObservableGraph<Number,Number>(ig);\n\t\tog.addGraphEventListener(new GraphEventListener<Number,Number>() {\n\n\t\t\tpublic void handleGraphEvent(GraphEvent<Number, Number> evt) {\n\t\t\t\tSystem.err.println(\"got \"+evt);\n\n\t\t\t}});\n\t\tthis.g = og;\n\n\t\tthis.timer = new Timer();\n\t\tthis.layout = new FRLayout2<Number,Number>(g);\n\t\t// ((FRLayout)layout).setMaxIterations(200);\n\t\t// create a simple pickable layout\n\t\tthis.vv = new VisualizationViewer<Number,Number>(layout, new Dimension(600,600));\n\n\n\n\t}",
"public void set(Configuration conf, GraphType graphType, T language) {\n get(graphType).set(conf, language);\n }",
"public SimAbstractGraph(GraphConfig graphConfig, SimpleDirectedGraph innerGraph) {\n super(innerGraph);\n referenceGraph = new JungAdapterGraph<Agent, TestbedEdge>((SimpleDirectedGraph) innerGraph.clone());\n this.graphConfig = graphConfig;\n }",
"public void setGraphListener(BiConsumer<Graph<WFGNode>, Integer> consumer) {\n\n }",
"public Graph()\n\t{\n\t\tthis.map = new HashMap<Object, SinglyLinkedList>();\n\t}",
"public void startGraph (String graph) throws NotExistingGraphException {\n // Check if an execution handler is associated to this graph\n executionHandlers.computeIfAbsent(graph, k -> new FlowExecutionHandler(graph, this, this.flow));\n FlowExecutionHandler executionHandler = executionHandlers.get(graph);\n\n executionHandler.run();\n }",
"public void showGraphInSwingWindow() {\n GraphModel model = new DefaultGraphModel();\n JGraph graph = new JGraph(model);\n // Control-drag should clone selection\n graph.setCloneable(true);\n\n // Enable edit without final RETURN keystroke\n graph.setInvokesStopCellEditing(true);\n\n // When over a cell, jump to its default port (we only have one, anyway)\n graph.setJumpToDefaultPort(true);\n\n // Insert all three cells in one call, so we need an array to store them\n List<DefaultGraphCell> cellsList = new ArrayList<DefaultGraphCell>();\n Map<String, Integer> conformityMap = new HashMap<String, Integer>();\n\n\n // Create vertex\n int vertexNumber = 0;\n for (String loopVertex : undirectedGraph.keySet()) {\n cellsList.add(createVertex(loopVertex, 40 * (vertexNumber + 1) + 20 * ((vertexNumber + 1) % 2),\n 20 * (vertexNumber + 2) + 50 * ((vertexNumber + 1) % 2), 80, 20, null, false));\n conformityMap.put(loopVertex, vertexNumber);\n vertexNumber++;\n }\n\n int firstVertexNumber;\n int secondVertexNumber;\n for (String loopVertex : undirectedGraph.keySet()) {\n\n firstVertexNumber = conformityMap.get(loopVertex);\n for (String loopCorrespondingVertex : undirectedGraph.get(loopVertex)) {\n secondVertexNumber = conformityMap.get(loopCorrespondingVertex);\n if (secondVertexNumber <= firstVertexNumber) {\n continue;\n }\n // Create Edge\n DefaultEdge edge = new DefaultEdge();\n // Fetch the ports from the new vertices, and connect them with the edge\n edge.setSource(cellsList.get(firstVertexNumber).getChildAt(0));\n edge.setTarget(cellsList.get(secondVertexNumber).getChildAt(0));\n cellsList.add(edge);\n int arrow = GraphConstants.ARROW_SIMPLE;\n GraphConstants.setLineEnd(edge.getAttributes(), arrow);\n GraphConstants.setEndFill(edge.getAttributes(), true);\n }\n }\n\n\n // Set Arrow Style for edge\n// int arrow = GraphConstants.ARROW_NONE;\n// GraphConstants.setLineEnd(edge.getAttributes(), arrow);\n// GraphConstants.setEndFill(edge.getAttributes(), true);\n\n // Insert the cells via the cache, so they get selected\n\n DefaultGraphCell[] cells = new DefaultGraphCell[cellsList.size()];\n for (int i = 0; i < cellsList.size(); i++) {\n cells[i] = cellsList.get(i);\n }\n graph.getGraphLayoutCache().insert(cells);\n\n // Show in Frame\n JFrame frame = new JFrame();\n frame.getContentPane().add(new JScrollPane(graph));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n }",
"void graph2() {\n\t\tconnect(\"1\", \"7\");\n\t\tconnect(\"1\", \"8\");\n\t\tconnect(\"1\", \"9\");\n\t\tconnect(\"9\", \"1\");\n\t\tconnect(\"9\", \"0\");\n\t\tconnect(\"9\", \"4\");\n\t\tconnect(\"4\", \"8\");\n\t\tconnect(\"4\", \"3\");\n\t\tconnect(\"3\", \"4\");\n\t}",
"public samJGraph()\n {\n super(new GraphPane( new GraphModel(), new samGraphController() ) );\n }",
"private void initializeGraph() {\r\n map = new HashMap<>();\r\n graph = new List[n];\r\n for (int i = 0; i < n; i++) graph[i] = new ArrayList<>();\r\n\r\n\r\n }",
"public void setDepsgraph(CPointer<Object> depsgraph) throws IOException\n\t{\n\t\tlong __address = ((depsgraph == null) ? 0 : depsgraph.getAddress());\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeLong(__io__address + 120, __address);\n\t\t} else {\n\t\t\t__io__block.writeLong(__io__address + 100, __address);\n\t\t}\n\t}",
"void createGraphForSingleLoad();",
"public MapGraph()\n {\n this.nodes = new HashMap<Integer, MapNode>();\n this.edges = new HashMap<Integer, Set<MapEdge>>();\n this.nodesByName = new HashMap<String, Set<Integer>>();\n }",
"public Graph getGraph();",
"protected void addGraph(IGraph graph) {\n\n if (graph != null) {\n\n this.ids.add(graph.getID());\n this.graphMap.put(graph.getID(), graph);\n }\n }",
"public void loadOrCreateGraph() {\n if(new File(graphPath + OVERLAY_GRAPH).exists())\n loadGraph();\n else {\n System.out.println(\"No file with the graph exists\");\n createGraph();\n }\n //graph.print();\n }",
"public void updateGraph(){\n int cont=contador;\n eliminar(0);\n construir(cont);\n }",
"public static Graph makeMeAGraph(Set<Operation> operations, State init){\n Graph graph = new implementGraph(operations , init) ;\n return graph;\n\n\t //\t throw new NotImplementedException();\n }",
"public DotGraph(String graphname) {\n this.graphname = graphname;\n this.isSubGraph = false;\n this.nodes = new HashMap<String, DotGraphNode>(100);\n this.drawElements = new LinkedList<Renderable>();\n this.attributes = new LinkedList<DotGraphAttribute>();\n }",
"void graph3() {\n\t\tconnect(\"0\", \"0\");\n\t\tconnect(\"2\", \"2\");\n\t\tconnect(\"2\", \"3\");\n\t\tconnect(\"3\", \"0\");\n\t}",
"public ProcessingTarget buildGraph(){\n \t\tgetTibbrGraph();\n \n \t\t//Init a project - and therefore a workspace\n \t\tProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n \t\tpc.newProject();\n \t\tWorkspace workspace = pc.getCurrentWorkspace();\n \n \t\t//Get a graph model - it exists because we have a workspace\n \t\tGraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n \t\tAttributeModel attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel();\n \t\tImportController importController = Lookup.getDefault().lookup(ImportController.class);\n \n \t\t//Import file \n \t\tContainer container;\n \t\ttry {\n \t\t\tFile f = new File(this.filename);\n \t\t\tcontainer = importController.importFile(f);\n \t\t\tcontainer.getLoader().setEdgeDefault(EdgeDefault.DIRECTED); //Force DIRECTED\n \t\t container.setAllowAutoNode(false); //Don't create missing nodes\n \t\t} catch (Exception ex) {\n \t\t\tex.printStackTrace();\n \t\t\treturn null;\n \t\t}\n \n \t\t//Append imported data to GraphAPI\n \t\timportController.process(container, new DefaultProcessor(), workspace);\n \n \t\t//See if graph is well imported\n \t\t//DirectedGraph graph = graphModel.getDirectedGraph();\n \t\t//---------------------------\n \n \t\t//Layout for 1 minute\n \t\tAutoLayout autoLayout = new AutoLayout(5, TimeUnit.SECONDS);\n \t\tautoLayout.setGraphModel(graphModel);\n \t\t//YifanHuLayout firstLayout = new YifanHuLayout(null, new StepDisplacement(1f));\n \t\tForceAtlasLayout secondLayout = new ForceAtlasLayout(null);\n \t\tAutoLayout.DynamicProperty adjustBySizeProperty = AutoLayout.createDynamicProperty(\"forceAtlas.adjustSizes.name\", Boolean.TRUE, 0.1f);//True after 10% of layout time\n \t\tAutoLayout.DynamicProperty repulsionProperty = AutoLayout.createDynamicProperty(\"forceAtlas.repulsionStrength.name\", new Double(10000.), 0f);//500 for the complete period\n \t\t//autoLayout.addLayout( firstLayout, 0.5f );\n \t\tautoLayout.addLayout(secondLayout, 1f, new AutoLayout.DynamicProperty[]{adjustBySizeProperty, repulsionProperty});\n \t\tautoLayout.execute();\n \n \n \n \n \n \t\t//Rank color by Degree\n \t\tRankingController rankingController = Lookup.getDefault().lookup(RankingController.class);\n\t\tRanking<?> degreeRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, Ranking.DEGREE_RANKING);\n\t\tAbstractColorTransformer<?> colorTransformer = (AbstractColorTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_COLOR);\n \n \t\tcolorTransformer.setColors(new Color[]{new Color(0xFEF0D9), new Color(0xB30000)});\n \t\trankingController.transform(degreeRanking,colorTransformer);\n \n \t\t//Get Centrality\n \t\tGraphDistance distance = new GraphDistance();\n \t\tdistance.setDirected(true);\n \t\tdistance.execute(graphModel, attributeModel);\n \n \t\t//Rank size by centrality\n \t\tAttributeColumn centralityColumn = attributeModel.getNodeTable().getColumn(GraphDistance.BETWEENNESS);\n\t\tRanking<?> centralityRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> sizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_SIZE);\n \t\tsizeTransformer.setMinSize(3);\n \t\tsizeTransformer.setMaxSize(20);\n \t\trankingController.transform(centralityRanking,sizeTransformer);\n \n \t\t//Rank label size - set a multiplier size\n\t\tRanking<?> centralityRanking2 = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> labelSizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.LABEL_SIZE);\n \t\tlabelSizeTransformer.setMinSize(1);\n \t\tlabelSizeTransformer.setMaxSize(3);\n \t\trankingController.transform(centralityRanking2,labelSizeTransformer);\n \n \t\tfloat[] positions = {0f,0.33f,0.66f,1f};\n \t\tcolorTransformer.setColorPositions(positions);\n \t\tColor[] colors = new Color[]{new Color(0x0000FF), new Color(0xFFFFFF),new Color(0x00FF00),new Color(0xFF0000)};\n \t\tcolorTransformer.setColors(colors);\n \n \t\t\n \t\t//---------------------------------\n \t\t//Preview configuration\n \t\tPreviewController previewController = Lookup.getDefault().lookup(PreviewController.class);\n \t\tPreviewModel previewModel = previewController.getModel();\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.DIRECTED, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.BACKGROUND_COLOR, Color.BLACK);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.SHOW_NODE_LABELS, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.NODE_LABEL_COLOR, new DependantOriginalColor(Color.YELLOW));\n \t\t\n \t\t\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_CURVED, Boolean.TRUE);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_OPACITY, 100);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_RADIUS, 1f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_THICKNESS,0.2f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.ARROW_SIZE,0.2f);\n \n \t\tpreviewController.refreshPreview();\n \n \t\t//----------------------------\n \n \t\t//New Processing target, get the PApplet\n \t\tProcessingTarget target = (ProcessingTarget) previewController.getRenderTarget(RenderTarget.PROCESSING_TARGET);\n \t\t\n \t\tPApplet applet = target.getApplet();\n \t\tapplet.init();\n \n \t\t// Add .1 second delay to fix stability issue - per Gephi forums\n try {\n \t\t\t\tThread.sleep(100);\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \n \t\t\n \t\t//Refresh the preview and reset the zoom\n \t\tpreviewController.render(target);\n \t\ttarget.refresh();\n \t\ttarget.resetZoom();\n \t\ttarget.zoomMinus();\n \t\ttarget.zoomMinus();\n \t\t\n \t\treturn target;\n \t\t\n \n \t}",
"public void graphRepaint() {\r\n \t\tgraph.repaint();\r\n \t}",
"public void setGraphPane(GraphPane p) {\n setCanvasPane(p);\n }",
"public void joinGraph(IGraph graph);",
"protected void fillDataset(Dataset dataset) {\n dataset.getDefaultModel().getGraph().add(SSE.parseTriple(\"(<x> <p> 'Default graph')\")) ;\n \n Model m1 = dataset.getNamedModel(graph1) ;\n m1.getGraph().add(SSE.parseTriple(\"(<x> <p> 'Graph 1')\")) ;\n m1.getGraph().add(SSE.parseTriple(\"(<x> <p> 'ZZZ')\")) ;\n \n Model m2 = dataset.getNamedModel(graph2) ;\n m2.getGraph().add(SSE.parseTriple(\"(<x> <p> 'Graph 2')\")) ;\n m2.getGraph().add(SSE.parseTriple(\"(<x> <p> 'ZZZ')\")) ;\n calcUnion.add(m1) ;\n calcUnion.add(m2) ;\n }",
"IGraphEngine getGraphEngine();",
"private void initGraph() {\n nodeMap = Maps.newIdentityHashMap();\n stream.forEach(t -> {\n Object sourceKey = sourceId.extractValue(t.get(sourceId.getTableId()));\n Object targetKey = targetId.extractValue(t.get(targetId.getTableId()));\n ClosureNode sourceNode = nodeMap.get(sourceKey);\n ClosureNode targetNode = nodeMap.get(targetKey);\n if (sourceNode == null) {\n sourceNode = new ClosureNode(sourceKey);\n nodeMap.put(sourceKey, sourceNode);\n }\n if (targetNode == null) {\n targetNode = new ClosureNode(targetKey);\n nodeMap.put(targetKey, targetNode);\n }\n sourceNode.next.add(targetNode);\n });\n\n }",
"public Graph getGraph()\n\t{\n\t\treturn graph;\n\t}",
"Graph(List<Edge> edges) {\n\n //one pass to find all vertices\n // this step avoid add isolated coordinates to the graph\n for (Edge e : edges) {\n if (!graph.containsKey(e.startNode)) {\n graph.put(e.startNode, new Node(e.startNode));\n }\n if (!graph.containsKey(e.endNode)) {\n graph.put(e.endNode, new Node(e.endNode));\n }\n }\n\n //another pass to set neighbouring vertices\n for (Edge e : edges) {\n graph.get(e.startNode).neighbours.put(graph.get(e.endNode), e.weight);\n //graph.get(e.v2).neighbours.put(graph.get(e.v1), e.dist); // also do this for an undirected graph\n }\n }",
"void createGraphForMassiveLoad();",
"public void setGraphLabel(String label) {\n label = DotGraphUtility.replaceQuotes(label);\n label = DotGraphUtility.replaceReturns(label);\n this.setGraphAttribute(\"label\", \"\\\"\" + label + \"\\\"\");\n }",
"public GraphImpl(int[][] g) {\n\t\tanzKnoten = g.length;\n\t\tgraph = g;\n\t}",
"public void setGraphName(String graphName) {\r\n\t\tthis.graphName = graphName;\r\n\t}",
"public Graph()\r\n {\r\n this( \"x\", \"y\" );\r\n }",
"public GraphFrame(Graph graph) {\r\n super(deriveTitleFrom(graph));\r\n setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n\r\n URL iconURL = Thread.currentThread().getContextClassLoader().getResource(\"icon.png\");\r\n Image icon = Toolkit.getDefaultToolkit().getImage(iconURL);\r\n setIconImage(icon);\r\n\r\n GraphPanel panel = new GraphPanel(graph);\r\n add(panel);\r\n\r\n setJMenuBar(new MenuBar(graph, panel));\r\n new SelectionController(graph, panel);\r\n new KeyboardController(graph, panel, this);\r\n\r\n Properties lastSession = GraphIO.loadLastSession();\r\n int width, height;\r\n if (lastSession == null) {\r\n width = DEFAULT_WIDTH;\r\n height = DEFAULT_HEIGHT;\r\n } else {\r\n try {\r\n width = Integer.parseInt(lastSession.getProperty(\"windowWidth\", String.valueOf(DEFAULT_WIDTH)));\r\n height = Integer.parseInt(lastSession.getProperty(\"windowHeight\", String.valueOf(DEFAULT_HEIGHT)));\r\n String backgroundRGB = lastSession.getProperty(\"backgroundColor\", null);\r\n if (backgroundRGB != null)\r\n panel.setBackground(new Color((int)Long.parseLong(backgroundRGB, 16)));\r\n } catch (NumberFormatException e) {\r\n width = DEFAULT_WIDTH;\r\n height = DEFAULT_HEIGHT;\r\n }\r\n }\r\n\r\n setPreferredSize(new Dimension(width, height));\r\n pack();\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\r\n addWindowListener(new WindowAdapter() {\r\n @Override\r\n public void windowClosing(WindowEvent e) {\r\n GraphIO.saveSession(graph, GraphFrame.this, panel);\r\n if (graph.hasUnsavedChanges())\r\n promptToSaveBeforeClosing();\r\n else\r\n dispose();\r\n }\r\n });\r\n\r\n this.graph = graph;\r\n graph.addObserver(this);\r\n graph.clearChangedSinceLastSave();\r\n\r\n panel.centerViewOnGraph();\r\n\r\n Animation.Manager.startAnimating();\r\n }",
"protected void setGraphDesc(GraphDesc gd) {\n this.gd = gd;\n this.acl = gd.getACL();\n }"
] | [
"0.74951255",
"0.7436619",
"0.7161638",
"0.71301806",
"0.6896207",
"0.66159767",
"0.65338355",
"0.65212005",
"0.6488871",
"0.64768225",
"0.63635206",
"0.63218594",
"0.62543464",
"0.62169844",
"0.6215847",
"0.6207825",
"0.61924547",
"0.6188621",
"0.61051595",
"0.61022073",
"0.60952705",
"0.60661197",
"0.605224",
"0.60200095",
"0.60197306",
"0.5991824",
"0.5973455",
"0.5951786",
"0.59102666",
"0.5906378",
"0.58951366",
"0.58735675",
"0.58731294",
"0.58665335",
"0.5857699",
"0.58574396",
"0.5842352",
"0.5833282",
"0.5830289",
"0.58271104",
"0.58168906",
"0.5774209",
"0.5772178",
"0.57719946",
"0.57499313",
"0.5730971",
"0.5718176",
"0.5716423",
"0.5710965",
"0.5705707",
"0.5682936",
"0.5682905",
"0.5658751",
"0.5646699",
"0.56441575",
"0.5638723",
"0.56272155",
"0.56247455",
"0.5624411",
"0.56216353",
"0.56118536",
"0.5604045",
"0.56032753",
"0.5602563",
"0.559923",
"0.5594667",
"0.5592637",
"0.5590988",
"0.5584049",
"0.5582874",
"0.55826306",
"0.5581742",
"0.5579425",
"0.55715376",
"0.55684704",
"0.5568302",
"0.55652165",
"0.5555668",
"0.5546109",
"0.55460525",
"0.5532555",
"0.55245864",
"0.5522087",
"0.5519196",
"0.5500944",
"0.55000097",
"0.54983276",
"0.5496617",
"0.5484514",
"0.54790545",
"0.5464348",
"0.5463772",
"0.5459147",
"0.54475725",
"0.5428163",
"0.54261774",
"0.5422228",
"0.5392148",
"0.53877336",
"0.5378483"
] | 0.79199505 | 0 |
Sets the start vertex the algorithm will use in computation | public void setStart(int startId) throws IllegalArgumentException, IllegalStateException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStartVertex(int s) {\n\t\tstartVertex = s;\n\t}",
"public void setStartVertex(int v){\n if (v < vertexCount && v >= 0){\n startVertex = v;\n } else {\n throw new IllegalArgumentException(\"Cannot set iteration start vertex to \" + v + \".\");\n }\n }",
"public void setStartVertex(int v){\n if (v < myVertexCount && v >= 0){\n myStartVertex = v;\n } else {\n throw new IllegalArgumentException(\"Cannot set iteration start vertex to \" + v + \".\");\n }\n }",
"public void setStartVertex(int v){\r\n if (v < myVertexCount && v >= 0){\r\n myStartVertex = v;\r\n } else {\r\n throw new IllegalArgumentException(\"Cannot set iteration start vertex to \" + v + \".\");\r\n }\r\n }",
"public int getStartVertex() {\n\t\treturn startVertex;\n\t}",
"void setDistan˝eFromStartVertex(int distan˝eFromStartVertex) {\r\n\t\tthis.distan˝eFromStartVertex = distan˝eFromStartVertex;\r\n\t}",
"private void setStartingVertexCity(CityByDegrees vertexCity) {\r\n\t\tthis.startingVertexCity = vertexCity;\r\n\t}",
"public void setStartPoint(CartesianCoordinate startPoint) {\r\n\t\tthis.startPoint = startPoint;\r\n\t}",
"public Vertex getStart()\n\t{\n\t\treturn start.copy();\n\t}",
"public void setFrom(Vertex<VV> vertex)\r\n { this.from = vertex; }",
"void setVertices(int vertices);",
"public void initializeSingleSource(Vertex start) {\n\t\tfor (Vertex v : adjlist.values()){\n\t\t\tv.dist = Integer.MAX_VALUE;\n\t\t\tv.setParent(null);\n\t\t}\n\t\t//sets distance of the starter vertex to 0\n\t\tstart.dist = 0;\n\t}",
"public StartVertexPanel(Algorithm alg) {\n initComponents();\n selectedAlgorithm = alg;\n }",
"public ArrayList<Vertex> initStart() {\r\n\t\tArrayList<Vertex> startPoint = new ArrayList<>();\r\n\t\tstartPoint.add(new Vertex(17, 2));\r\n\t\tstartPoint.add(new Vertex(16, 14));\r\n\t\tstartPoint.add(new Vertex(15, 14));\r\n\t\tstartPoint.add(new Vertex(11, 22));\r\n\t\tstartPoint.add(new Vertex(11, 21));\r\n\t\tstartPoint.add(new Vertex(22, 3));\r\n\t\tstartPoint.add(new Vertex(22, 2));\r\n\t\tstartPoint.add(new Vertex(20, 3));\r\n\t\tstartPoint.add(new Vertex(17, 21));\r\n\t\tstartPoint.add(new Vertex(17, 20));\r\n\t\tstartPoint.add(new Vertex(15, 21));\r\n\t\tstartPoint.add(new Vertex(12, 21));\r\n\t\treturn startPoint;\r\n\t}",
"public void setStart(int start) {\r\n this.start = start;\r\n }",
"public void setStartPoint(int s) {\r\n\t\tstartPoint = s;\r\n\t}",
"public void setStart(int start) {\n\t\tthis.start = start;\n\t}",
"public void setStartX(float startX) {this.startX = startX;}",
"public void setStart(Point point) {\n mStart = point;\n }",
"public void setVertexNumber(Integer num) {\n\t\t_vertexId = num;\n\t}",
"public void setStart(int start) {\n this.start=start;\n }",
"private void setStartingVertexCityName(String vertexCityName) {\r\n\t\tthis.startingVertexCityName = vertexCityName;\r\n\t}",
"private void shortestPath_init(char start){\n\n visited = new boolean[numVertices];\n for(int i = 0;i < numVertices;i++){\n distList[i] = Integer.MAX_VALUE;\n }\n //distance to starting point is always zero\n\n try {\n distList[getIdx(start)] = 0;\n }catch(Exception e){\n System.out.println(\"can not find starting point\");\n }\n\n pqNode s = new pqNode(distList[0],getIdx(start));\n pq.offer(s);\n\n }",
"public void setStartLine(int startLine) {\r\n this.startLine = startLine;\r\n }",
"Vertex(){}",
"public void setAsStartingPoint() {\n\t\tnodeStatus = Status.occupied;\n\t}",
"public void setBegin(int begin) {\n\t\tthis.begin = begin;\n\t}",
"public void setEndVertex(int e) {\n\t\tendVertex = e;\n\t}",
"void setStartSegment(int startSegment);",
"public Vertex(int val)\r\n\t{\r\n\t\tthis.value=val;\r\n\t}",
"public void setStartLine(final int startLine) {\n this.startLine = startLine;\n }",
"public void setStartX(double val) {\r\n startx = val;\r\n }",
"public void setVertexAt(int i, Vertex vertex) {\n vertexPositions[3*i] = vertex.position.x;\n vertexPositions[3*i+1] = vertex.position.y;\n vertexPositions[3*i+2] = vertex.position.z;\n vertexNormals[3*i] = vertex.normal.x;\n vertexNormals[3*i+1] = vertex.normal.y;\n vertexNormals[3*i+2] = vertex.normal.z;\n vertexBinormals[3*i] = vertex.binormal.x;\n vertexBinormals[3*i+1] = vertex.binormal.y;\n vertexBinormals[3*i+2] = vertex.binormal.z;\n vertexTangents[3*i] = vertex.tangent.x;\n vertexTangents[3*i+1] = vertex.tangent.y;\n vertexTangents[3*i+2] = vertex.tangent.z;\n vertexUvs[2*i] = vertex.u;\n vertexUvs[2*i+1] = vertex.v;\n\n boundingVolume = null;\n }",
"@Override\r\n\tpublic void setPredecessor(VertexInterface<T> predecessor) {\n\r\n\t}",
"public void setStart(int start)\n {\n if(start >= 0)\n {\n this.start = start;\n }\n else\n {\n System.out.println(\"Cannot be negative.\");\n }\n }",
"public static void setStart(Node n) {\n if (n == null) {\n } else {\n startLabel.setBackground(Color.white);\n n.setBackground(Color.green);\n startLabel = n;\n //startSet = true;\n }\n }",
"public Vertex(int value) {\n this(value, null);\n }",
"public void setVertex(Object vertex2){\r\n this.vertex = vertex2;\r\n }",
"public void moveStart(\n )\n {\n index = StartIndex;\n if(state == null)\n {\n if(parentLevel == null)\n {state = new GraphicsState(this);}\n else\n {state = parentLevel.state.clone(this);}\n }\n else\n {\n if(parentLevel == null)\n {state.initialize();}\n else\n {parentLevel.state.copyTo(state);}\n }\n\n notifyStart();\n\n refresh();\n }",
"public void setStart( GeoPoint start ){\n this.setOrigin(start);\n }",
"public void setMinimumVertexCount(int aCount)\r\n {\r\n\t theMinimumVertexCount = aCount;\r\n if (theMinimumVertexCountField != null)\r\n {\r\n \t theMinimumVertexCountField.setValue(theMinimumVertexCount);\r\n theMinimumVertexCountField.updateUI(); \r\n }\r\n }",
"public void setStartPoint(int x) {\n\t\tthis.x = x;\n\n\t}",
"public static void bgfx_set_vertex_buffer(@NativeType(\"uint8_t\") int _stream, @NativeType(\"bgfx_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _startVertex, @NativeType(\"uint32_t\") int _numVertices) {\n nbgfx_set_vertex_buffer((byte)_stream, _handle, _startVertex, _numVertices);\n }",
"public final void setStartRow(java.lang.Integer startrow)\r\n\t{\r\n\t\tsetStartRow(getContext(), startrow);\r\n\t}",
"public void setStartX(double x)\n {\n startxcoord=x; \n }",
"public final native void setStartIndex(double startIndex) /*-{\n this.setStartIndex(startIndex);\n }-*/;",
"public void setVertexA(E3DTexturedVertex vertex){\r\n\t\tthis.vertices[0] = vertex;\r\n\t\tneedNormalRecalc = true;\r\n\t\tneedPlaneEquationRecalc = true;\r\n\t}",
"public void setTo(Vertex<VV> vertex)\r\n { this.to = vertex; }",
"public void setVertexC(E3DTexturedVertex vertex){\r\n\t\tthis.vertices[2] = vertex;\r\n\t\tneedNormalRecalc = true;\r\n\t\tneedPlaneEquationRecalc = true;\r\n\t}",
"public static void bgfx_encoder_set_vertex_buffer(@NativeType(\"bgfx_encoder_t *\") long _this, @NativeType(\"uint8_t\") int _stream, @NativeType(\"bgfx_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _startVertex, @NativeType(\"uint32_t\") int _numVertices) {\n nbgfx_encoder_set_vertex_buffer(_this, (byte)_stream, _handle, _startVertex, _numVertices);\n }",
"public void setMin(Vect3d min) {\r\n this.min = min;\r\n }",
"public void setStartIndex(java.math.BigInteger startIndex)\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(STARTINDEX$10);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(STARTINDEX$10);\n }\n target.setBigIntegerValue(startIndex);\n }\n }",
"public void xsetStartIndex(com.a9.spec.opensearch.x11.QueryType.StartIndex startIndex)\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.StartIndex target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.StartIndex)get_store().find_attribute_user(STARTINDEX$10);\n if (target == null)\n {\n target = (com.a9.spec.opensearch.x11.QueryType.StartIndex)get_store().add_attribute_user(STARTINDEX$10);\n }\n target.set(startIndex);\n }\n }",
"public void setPrevious(Vertex v){\n previous = v;\n }",
"public void start( )\r\n {\r\n if (cursor != head){\r\n \t cursor = head; // Implemented by student.\r\n \t precursor = null;\r\n }\r\n }",
"public CL_Agent(directed_weighted_graph g, int start_node) {\n\t\t\tgraph = g;\n\t\t\tsetValue(0);\n\t\t\tthis.currNode = graph.getNode(start_node);\n\t\t\tpos = currNode.getLocation();\n\t\t\tid = -1;\n\t\t\tsetSpeed(0);\n\t}",
"public void startGraph() {\r\n this.setStatus(false);\r\n this.isGraphStarted = true;\r\n\r\n // if (Alg not started yet or Alg started, but not ready for graph) or\r\n // (Alg started but (already read from DB but now fileSelected) or (DB\r\n // selected but not read yet))\r\n if ((!this.is_alg_started || !this.isAlgStartedForGraph)\r\n || (this.is_alg_started && ((this.is_already_read_from_DB && this.UseFile.isSelected())\r\n || (!this.is_already_read_from_DB && this.UseDB.isSelected())))) {\r\n this.dBInError = false;\r\n this.startALG(false);\r\n } else {\r\n try {\r\n Thread t1 = new Thread(new MyGraphGUI(this.display_sub_current, (ChineseWhispers) this.cw.clone(),\r\n this.display_edges_temp, this.scale_temp, 30, this.display_degree_temp));\r\n t1.start();\r\n } catch (CloneNotSupportedException e) {\r\n e.printStackTrace();\r\n }\r\n this.setStatus(true);\r\n this.isGraphStarted = false;\r\n this.isAlgStartedForGraph = true;\r\n }\r\n }",
"@Override\n\tpublic void setStartPoint(Point startPoint) {\n\t\tthis.startPoint=startPoint;\n\t}",
"public Vertex(int u, int minDistance) {\n this.u = u;\n this.minDistance = minDistance;\n }",
"public void setEdge(int start, int target){\n\t\tthis.graph.elementAt(start).insert(target);\n\t}",
"public void setStart(long start) { this.start = start; }",
"public void setBeginPosition(FPointType fpt) {\n fptStart.x = fpt.x;\n fptStart.y = fpt.y;\n }",
"Vertex(int id, Vertex prev, int costToReach) {\n this.id = id;\n this.prev = prev;\n this.costToReach = costToReach;\n }",
"private void setVertices(){\n \tdouble[] xs = new double[numOfSides];\n \tdouble[] ys = new double[numOfSides];\n \tif (numOfSides%2==1){\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(2*i*Math.PI/numOfSides);\n \t\t\tys[i]=radius*Math.sin(2*i*Math.PI/numOfSides);\n \t\t\t}\n \t}\n \telse{\n \t\tdouble start=Math.PI/numOfSides;\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(start+2*i*(Math.PI)/numOfSides);\n \t\t\tys[i]=radius*Math.sin(start+2*i*(Math.PI)/numOfSides);\n \t\t\t}\n \t}\n \tsetXLocal(xs);\n \tsetYLocal(ys);\n }",
"public void addStart(Point point) {\n\t\tmaze[point.x][point.y] = Block.START;\n\t}",
"private void setStart()\n {\n for(int i = 0; i < cities.size(); i++)\n System.out.println(\"Location: \"+i+\" \"+cities.get(i).getSourceName());\n \n System.out.println(\"Which city would you like to start at? Enter the location number\"); \n computePaths(cities.get(input.nextInt()));\n printMenu(); \n }",
"public static void bgfx_set_instance_data_from_vertex_buffer(@NativeType(\"bgfx_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _start, @NativeType(\"uint32_t\") int _num) {\n long __functionAddress = Functions.set_instance_data_from_vertex_buffer;\n invokeCV(_handle, _start, _num, __functionAddress);\n }",
"private CityByDegrees getStartingVertexCity() {\r\n\t\treturn this.startingVertexCity;\r\n\t}",
"public void setxBegin(Float xBegin) {\r\n this.xBegin = xBegin;\r\n }",
"public void addVertex();",
"public void setStartNode(String startNode)\r\n\t{\r\n\t\tthis.startNode = startNode;\r\n\t\tthrow new UnsupportedOperationException(\"Še ne dela, poišči lokacijo od vozlišča z imaneom\" + startNode);\r\n\t}",
"public void setBegin(int v) {\n if (Span_Type.featOkTst && ((Span_Type)jcasType).casFeat_Begin == null)\n jcasType.jcas.throwFeatMissing(\"Begin\", \"Span\");\n jcasType.ll_cas.ll_setIntValue(addr, ((Span_Type)jcasType).casFeatCode_Begin, v);}",
"public void setNext(Vertex next) {\n\t\tthis.next = next;\n\t}",
"private void setStartFragment() {\n Fragment startFragment = getFragment(APPLICATION_FRAGMENTS[0]);\n changeFragment(startFragment);\n }",
"protected void handleInitialVertex() {\r\n\t\tVertex v = nextUnvisited();\r\n\t\tif(v != null){\r\n\t\t\tsetHasBeenVisited(v);\r\n\t\t\tprocessVertex(v);\r\n\t\t\tstack.push(v);\r\n\t\t}\r\n\t}",
"public int getBaseVertex() {\n return baseVertex;\n }",
"public void setSourceStart(int x)\n\t{\n\t\tsourceStart = x;\n\t}",
"public void setVertices(ProcessVertex inVertex, ProcessVertex outVertex) {\n\t\tthis.inVertex = inVertex;\n\t\tthis.outVertex = outVertex;\n\t}",
"private void setStart(int a_x, int a_y)\n {\n if(!isObstacle(m_grid[a_x][a_y]))\n {\n if(m_startPoint != null)\n m_grid[(int)m_startPoint.x][(int)m_startPoint.y] = Map.NIL;\n\n m_startPoint = new Vector2d(a_x,a_y);\n m_grid[(int)m_startPoint.x][(int)m_startPoint.y] = Map.START;\n }\n }",
"protected Vertex() {\n\t\tisInDepot = false;\n\t}",
"public void setBeginLineNumber(int beginLine) {\n this.beginLine = beginLine;\n }",
"public Vertex(final Vertex vertex){\n\t\tID = vertex.getID();\n\t}",
"Vertex createVertex();",
"public void setMinimumPoint(BlockVector pt) {\r\n setMinMaxPoints(pt, this.getMaximumPoint());\r\n }",
"public Vertex(int label) {\r\n isVisited = false;\r\n this.label = label;\r\n }",
"public final void setStartRow(com.mendix.systemwideinterfaces.core.IContext context, java.lang.Integer startrow)\r\n\t{\r\n\t\tgetMendixObject().setValue(context, MemberNames.StartRow.toString(), startrow);\r\n\t}",
"public GameObject setPosition(Vertex v) {\n\t\tposition.x = v.x;\n\t\tposition.y = v.y;\n\t\treturn this;\n\t}",
"@Override\n\tpublic void init(GraphBackend g,Vertex start,Vertex end) {\n\t\tthis.g = g;\n\t\tthis.start = start;\n\t\tthis.end = end;\n\t\tthis.state = AlgoState.Init;\n\t\tweigths = new HashMap<>();\n\t\tvisited = new HashSet<>();\n\t\tselectedFrom = new HashMap<>();\n\t\tfor(Edge e: g.edgesByGraphx.values()){\n\t\t\tweigths.put(e, Integer.MAX_VALUE);\n\t\t}\n\t\tcurrentPathLength = 0;\n\t}",
"public void initStartPoint(GeoPointND p, int number);",
"public NodeIterator setStartNode(int node) {\n\n\n\tif ((_source instanceof KeyIndex) && (_data != null)) return this;\n\n\tif ((_data == null) || (node != _startNode)) {\n\n\t _startNode = node;\n\t _last = 0;\n\t _source.setStartNode(node);\n\t _data = new int[INIT_DATA_SIZE];\n\n\t while ((node = _source.next()) != END) {\n\t\tif (_last == _data.length) {\n\t\t int[] newArray = new int[_data.length * 2];\n\t\t System.arraycopy(_data, 0, newArray, 0, _last);\n\t\t _data = newArray;\n\t\t}\n\n\t\tfor (i=0; i<_last; i++) {\n\t\t if (_data[i] == node) {\n\t\t\tbreak;\n\t\t }\n\t\t else if (_data[i] > node) {\n\t\t\tfor (j = _last++; j>i; j--)\n\t\t\t _data[j] = _data[j-1];\n\t\t\t_data[i] = node;\n\t\t\tbreak;\n\t\t }\n\t\t}\n\t\tif (i == _last) _data[_last++] = node;\n\t }\n\t}\n\n\treturn this;\n }",
"void setStartSearch(int startSearch);",
"public void start(Point p);",
"@Override\n\tpublic Boolean initTool() {\n\t\tHalfEdgeDataStructure<CPMVertex, CPMEdge, CPMFace> graph = controller.getEditedGraph();\n\t\tdouble scale = 100.0;\n\t\tint n = graph.getNumVertices();\n\t\tint count = 0;\n\t\tfor (CPMVertex v : graph.getVertices()){\n\t\t\tv.setXY(new Point2d(scale * cos(-count * 2*PI/n), scale * sin(-count * 2*PI/n)));\n\t\t\tcount++;\n\t\t}\n\t\t/*\n\t\tfor (CPMVertex v : graph.getVertices())\n\t\t\tv.setXY(new Point2d(scale * rnd.nextDouble(), scale * rnd.nextDouble()));\n\t\t*/\n\t\tcontroller.setEditedGraph(graph);\n\t\treturn false;\n\t}",
"public void breadthFirstTraversal(final int startPoint) {\n\t\tfinal boolean[] isVerticesVisited = new boolean[adjacencyList.length];\n\t\tfinal Queue<Integer> queue = new LinkedList<>();\n\n\t\tisVerticesVisited[startPoint] = true;\n\t\tqueue.add(startPoint);\n\n\t\tint selectedVertice;\n\t\tint vertice;\n\t\twhile (!queue.isEmpty()) {\n\t\t\tselectedVertice = queue.poll();\n\n\t\t\tSystem.out.print(selectedVertice + \" \");\n\n\t\t\tIterator<Integer> edgeIterator = adjacencyList[selectedVertice].listIterator();\n\n\t\t\twhile (edgeIterator.hasNext()) {\n\t\t\t\tvertice = edgeIterator.next();\n\t\t\t\tif (!isVerticesVisited[vertice]) {\n\t\t\t\t\tqueue.add(vertice);\n\t\t\t\t\tisVerticesVisited[vertice] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void beginSelecting() {\r\n selecting = true;\r\n minX = 0;\r\n maxX = 0;\r\n }",
"public void newVertex(String name)\r\n\t{\r\n\t\t// new vertex initialized here\r\n\t\tmyGraph[graphSize] = new Vertex();\r\n\t\tmyGraph[graphSize].name = name;\r\n\t\tmyGraph[graphSize].adjVertexHead = null;\r\n\t\t// maintain the size counter\r\n\t\tgraphSize++;\r\n\t}",
"public Vertex (String name)\n\t{\n\t vertexName = name ;\n\t adjacencyList = new DoublyLinkedList<>();\n\t indegree = 0;\n\t\t\n\t}",
"public ConnectVertexView(Stage primaryStage, HashSet<Integer> vertexesCurrentlyOnScreen) {\n this.primaryStage = primaryStage;\n this.vertexesCurrentlyOnScreen = vertexesCurrentlyOnScreen;\n setupElements();\n positionElementsInsideView();\n }",
"public void setSeriesStart(int aValue) { _dataSet.setSeriesStart(aValue); }",
"public void setVertices(){\n\t\tvertices = new ArrayList<V>();\n\t\tfor (E e : edges){\n\t\t\tV v1 = e.getOrigin();\n\t\t\tV v2 = e.getDestination();\n\t\t\tif (!vertices.contains(v1))\n\t\t\t\tvertices.add(v1);\n\t\t\tif (!vertices.contains(v2))\n\t\t\t\tvertices.add(v2);\n\t\t}\n\t}",
"public void start(Node n) {}"
] | [
"0.81891483",
"0.7941943",
"0.7876755",
"0.78730196",
"0.69936574",
"0.6792774",
"0.67381656",
"0.6539742",
"0.6364549",
"0.6314574",
"0.6311248",
"0.628852",
"0.62884",
"0.62156826",
"0.61649144",
"0.6093636",
"0.60912836",
"0.60822666",
"0.60757744",
"0.60514367",
"0.6030089",
"0.60233814",
"0.6006705",
"0.60010976",
"0.59983313",
"0.5990499",
"0.59761083",
"0.59548074",
"0.59480345",
"0.5937832",
"0.59368056",
"0.59203506",
"0.59143203",
"0.5903588",
"0.5885908",
"0.5867631",
"0.5824498",
"0.58195305",
"0.5813313",
"0.57863545",
"0.5783979",
"0.57779115",
"0.5750778",
"0.5745712",
"0.57366145",
"0.5722052",
"0.5721917",
"0.56999093",
"0.5671706",
"0.5653592",
"0.5650926",
"0.56501776",
"0.5644041",
"0.56348914",
"0.56194615",
"0.5618651",
"0.5589319",
"0.5574908",
"0.55715525",
"0.5564892",
"0.5557131",
"0.55526876",
"0.55511546",
"0.55479723",
"0.5544408",
"0.5542088",
"0.5539896",
"0.5531898",
"0.5530926",
"0.55301064",
"0.55269724",
"0.5524625",
"0.55100423",
"0.5508669",
"0.55082124",
"0.5500232",
"0.5498099",
"0.54966015",
"0.54959255",
"0.54878396",
"0.54850805",
"0.54799855",
"0.5478771",
"0.5467584",
"0.5463376",
"0.546142",
"0.54610085",
"0.54586893",
"0.5453769",
"0.54473704",
"0.5430131",
"0.54270357",
"0.5424994",
"0.542258",
"0.5416756",
"0.541058",
"0.5406468",
"0.5398669",
"0.53985447",
"0.53833973",
"0.53807724"
] | 0.0 | -1 |
Sets the weighing to be used in computing the cost of traversing an edge | public void setWeighing(Weighing<E> weighing); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getEdgeWeight();",
"public void setWeight(int weightIn){\n\t\tthis.edgeWeight = weightIn;\n\t}",
"public void setEdgeWeight(double edgeWeight) {\n this.edgeWeight = edgeWeight;\n }",
"public void setEdgeWeighter(EdgeWeighter edgeWeighter) {\n\tthis.edgeWeighter = edgeWeighter;\n }",
"@Override\n public double getEdgeWeight() {\n return edgeWeight;\n }",
"public void setEdgeWeight(Edge p_edge, double p_weight) {\n\t\tint id = p_edge.hashCode();\n\t\tweights.put(id, p_weight);\n\t}",
"void setBestIncoming(E edge);",
"public int getWeight(){\n\t\treturn this.edgeWeight;\n\t}",
"public int getWeight()\r\n\t{\r\n\t\treturn edgeWeight;\t\t\r\n\t}",
"public void setEdgeWeight(Node p_a, Node p_b, double p_weight) {\n\t\t\n\t\t// We need to use the makeEdge method to make a new edge\n\t\t// So we can ensure we generate an edge with consistent hashCodes\n\t\tEdge edge = makeEdge(p_a, p_b);\n\t\tint id = edge.hashCode();\n\t\tweights.put(id, p_weight);\n\t}",
"public void updateBottomWeight(){\r\n\t \tif(this.bottomNode != null)\r\n\t \t{\r\n\t \t\tif( this.bottomNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.bottomWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.bottomNode.isRoad() == true && this.bottomNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.bottomWeight = this.bottomNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.bottomWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }",
"void addEdge(int source, int destination, int weight);",
"public void setWeight(double w){\n weight = w;\n }",
"public void addEdge(int start, int end, double weight);",
"private void setWeight(float weight){\n this.weight = weight;\n }",
"public void calculateEdgeWeights() {\n\n\t// Use a ListIterator so that we can modify the list\n\t// as we go\n\tListIterator<LayoutEdge>iter = edgeList.listIterator();\n\twhile (iter.hasNext()) {\n\t LayoutEdge edge = iter.next();\n\n\t // If we're only dealing with selected nodes, drop any edges\n\t // that don't have any selected nodes\n\t if (edge.getSource().isLocked() && edge.getTarget().isLocked()) {\n\t\titer.remove();\n\t } else if (edgeWeighter != null && edgeWeighter.normalizeWeight(edge) == false)\n\t\titer.remove();\n\n\t //logger.debug(\"Edge \"+edge.getEdge().getIdentifier()+\" now has weight \"+edge.getWeight());\n\t // logger.info( edge.toString() + \" now has weight \"+edge.getWeight());\n\t}\n }",
"private void setWeight() {\n \tthis.trainWeight = (this.trainCars*TRAIN_WEIGHT) + (this.crew + this.numPassengers) * AVE_PASSENGER_WEIGHT;\n }",
"public void setWeight(int x)\n {\n weightCarried=x;\n }",
"public void setWeight(float w) {\n weight = w;\n }",
"public void setGradingWeight(double weight){\n \tgradingWeight = weight;\n }",
"public WeightedEdge(){\n\t\t\n\t}",
"public void setEdge(int i, int j, int wt){\r\n\t\tif(wt!=0){\r\n\t\t\tSystem.out.println(\"Cannot set weight to 0!\");\r\n\t\t}\r\n\t\telse{\r\n\t\t\tif(matrix[i][j]==0){\r\n\t\t\t\tnumEdge++;\r\n\t\t\t\tmatrix[i][j]=wt;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"@Override public int set(L source, L target, int weight) {\r\n \r\n \tif(weight>0) {\r\n \t\tboolean flag=false;\r\n \t\tif(!vertices.contains(source)) {\r\n \t\t\tvertices.add(source);\r\n \t\t\tflag=true;\r\n \t\t}\r\n \tif(!vertices.contains(target)) {\r\n \t\tvertices.add(target);\r\n \t\tflag=true;\r\n \t}\r\n \tEdge<L> e=new Edge<L>(source,target,weight);\r\n \tif(flag==true) {//加点,直接把新边写入,\r\n \t\t\r\n \tedges.add(e);\r\n \tcheckRep();\r\n \treturn 0;\r\n \t}\r\n \telse {//点已经在了,可能边已经在了,考虑重复问题\r\n \t\tint n=edges.size();\r\n \t\tif(n==0) {\r\n \t\t\t\r\n \tedges.add(e);\r\n \tcheckRep();\r\n \treturn 0;\r\n \t\t}\r\n \t\telse {\r\n \t\t\tboolean tag=false;\t\r\n \t\t\tfor(int i=0;i<n;i++) {\r\n \t\t\t\t//这一步太关键了,之前一直判断是false\r\n \t\t\t\tif(edges.get(i).getSource().equals(source) && edges.get(i).getTarget().equals(target)) {\r\n \t\t\t//\tif(edges.get(i).getSource()==source && edges.get(i).getTarget()==target) {\r\n \t\t\t\t\tint res=edges.get(i).getWeight();\r\n \t\t\t\t\tedges.set(i,e);\r\n \t\t\t\t\tcheckRep();\r\n \t\t\t\t\ttag=true;\r\n \t\t\t\t\treturn res;//边已经在了,重新写权重\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t//边不在里面,直接写入\r\n \t\t\tif(tag==false) {\r\n \t\t\t\tedges.add(e);\r\n \t\t\t\tcheckRep();\r\n \t\t\t\treturn 0;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \t\r\n \t}\r\n \telse if(weight==0) {\r\n \t\tif(!vertices.contains(source)||!vertices.contains(target)) return 0;\r\n \t\tint n=edges.size();\r\n \t\tfor(int i=0;i<n;i++) {\r\n \t\t\t//改了\r\n\t\t\t\tif(edges.get(i).getSource().equals(source) && edges.get(i).getTarget().equals(target)) {\r\n \t\t\t//if(edges.get(i).getSource()==source && edges.get(i).getTarget()==target) {\t\r\n \t\t\t//把已经在的边移除\r\n\t\t\t\t\tint res=edges.get(i).getWeight();\r\n\t\t\t\t\tedges.remove(i);\r\n\t\t\t\t\tcheckRep();\r\n\t\t\t\t\treturn res;\r\n\t\t\t\t}\r\n\t\t\t}\r\n \t\treturn 0;\r\n \t}\r\n \tcheckRep();\r\n \treturn 0;\r\n \t\r\n }",
"@Override\n public void setWeight(double w) {\n this.weight = w;\n\n }",
"@Override\r\n\tpublic void setWeight(double weight) {\n\t\t\r\n\t}",
"public AverageEdgeWeight() {\n super(\"avrgEdgeWeight\");\n }",
"public Double getEdgeWeight(Edge p_edge) {\n\t\tint id = p_edge.hashCode();\n\t\treturn weights.get(id);\n\t}",
"public void updateTopWeight(){\r\n\t \tif(this.topNode != null)\r\n\t \t{\r\n\t \t\tif(this.topNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.topWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.topNode.road == true && this.topNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.topWeight = this.topNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.topWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }",
"public void setWeight(float value) {\n this.weight = value;\n }",
"public void setWeight(int w){\n\t\tweight = w;\n\t}",
"public Edge(int weight){\n\t\tthis.EDGE_ID = IDToGive;\n\t\tthis.edgeWeight = weight;\n\t\tIDToGive++;\n\t}",
"public void setThigh(double thigh) {\n this.thigh = thigh;\n }",
"public void setWeight(int newWeight) {\n weight = newWeight;\n }",
"public void setMaxWeight(String newValue);",
"public void updateWeightEdge(String srcLabel, String tarLabel, int weight) {\n // Implement me!\n\n String e = srcLabel + tarLabel;\n if (indexOf(e, edges) < 0) {\n return;\n }\n\n\n int srcInt = indexOf(srcLabel, vertices);\n int tarInt = indexOf(tarLabel, vertices);\n weights[srcInt][edges.get(e)] = weight;\n weights[tarInt][edges.get(e)] = weight * (-1);\n\n if (weight == 0) {\n edges.remove(e);\n return;\n }\n\n\n\n }",
"public void addSize(double edgeSize)\r\n\t{\r\n\t\tsize= size + edgeSize;\r\n\t}",
"public void setWeight(final double pWeight){this.aWeight = pWeight;}",
"public void setWeight(double weight) {\r\n this.weight = weight;\r\n }",
"public void setEdgeCost(int from, int to, double newCost) {\n //make sure the nodes given are valid\n assert (from < nodeVector.size()) && (to < nodeVector.size()) :\n \"<SparseGraph::SetEdgeCost>: invalid index\";\n\n //visit each neighbour and erase any edges leading to this node\n ListIterator<edge_type> it = edgeListVector.get(from).listIterator();\n while (it.hasNext()) {\n edge_type curEdge = it.next();\n if (curEdge.getTo() == to) {\n curEdge.setCost(newCost);\n break;\n }\n }\n }",
"public void setEdgeLen(double len) {\n fEdgeLen = len;\n }",
"public void setWeight(int w) {\n\t\tweight = w;\n\t}",
"public Edge(wVertex argTarget, double argWeight) \r\n {\r\n target = argTarget;\r\n weight = argWeight;\r\n }",
"public void setWeight(double weight){\n\t\tthis.weight = weight;\n\t}",
"public void setWeight(double weight) {\n this.weight = weight;\n }",
"@Override\n\tpublic void setWeight(final double weight) {\n\n\t}",
"double setCost(double cost);",
"public ConditionTargetWeight(int weight)\n\t{\n\t\t_weight = weight;\n\t}",
"private void relax(SiteEdge e) {\n int v = e.from(), w = e.to();\n if (distTo[w] > distTo[v] + e.weight()) {\n distTo[w] = distTo[v] + e.weight();\n edgeTo[w] = e;\n if (pq.contains(w)) pq.decreaseKey(w, distTo[w]);\n else pq.insert(w, distTo[w]);\n }\n }",
"public GraphEdge()\r\n {\r\n cost = 1.0;\r\n indexFrom = -1;\r\n indexTo = -1;\r\n }",
"private void modifyFringe(int v, int w) {\n\t\tgetEdge(v, w).setSelected(true);\n\t\tgetEdge(getVertex(w).getParent(), w).setSelected(false);\n\t\tdouble cost = newCost(v, w);\n\t\tGreedyVertex vertex = getVertex(w);\n\t\tvertex.setParent(v);\n\t\tvertex.setCost(cost);\n\t\tp.promote(vertex);\n\t}",
"public void addEdge(int source, int target, Cost w) {\n\t\tedges[source][target] = w;\n\t}",
"abstract void setWeight(int i, int j, Double weight);",
"private double costOf(int w) {\n\t\treturn getVertex(w).getCost();\n\t}",
"public void setNetworth(int value);",
"static double addHeuristic2(GameState c, boolean isMaxNode) {\n\t\tint i;\n\t\tint self_total_weight = 0;\n\t\tint opponent_total_weight = 0;\n\n\t\tfor (i = 1; i <= GameState.MAX_WEIGHT; i = i + 1) {\n\t\t\tif (c.IHaveWeight(i)) {\n\t\t\t\tself_total_weight += i;\n\t\t\t}\n\t\t\tif (c.opponentHasWeight(i)) {\n\t\t\t\topponent_total_weight += i;\n\t\t\t}\n\t\t}\n\n\t\treturn (double) (-self_total_weight + opponent_total_weight) / 78.0;\n\t}",
"public int weight ();",
"public void setWeight(Double weight) {\n this.weight = weight;\n }",
"@Override\n\tpublic void setTow(float tow) {\n\t\t\n\t}",
"public void updateWeights() {\n\t\t\n\t}",
"public void setWeight(double weight){\n\t\tthis._weight = weight;\n\t}",
"public void setWeight(String newValue);",
"public void setEdgeCapacity(double capacity) {\n\t\tthis.capacity = capacity;\r\n\r\n\t}",
"private int getWeight(Node source, Node target) {\n LinkedList<Edge> edges = source.getEdges();\n for (Edge edge : edges) {\n if (edge.getDestination() == target) {\n return edge.getWeight();\n }\n }\n return 0;\n }",
"public Double getEdgeWeight(Node p_a, Node p_b) {\n\t\tEdge edge = makeEdge(p_a, p_b);\n\t\tint id = edge.hashCode();\n\t\treturn weights.get(id);\n\t}",
"public void setWeight(float value) {\n\t\t\tthis.weight = value;\n\t\t}",
"double setEstimatedCost(double cost);",
"private void heuristicSetter(Node node){\n int goalNodeFirstDigit = Integer.parseInt(goalNode.getDigit().getFirst_digit());\n int goalNodeSecondDigit = Integer.parseInt(goalNode.getDigit().getSecond_digit());\n int goalNodeThirdDigit = Integer.parseInt(goalNode.getDigit().getThird_digit());\n\n int nodeFirstDigit = Integer.parseInt(node.getDigit().getFirst_digit());\n int nodeSecondDigit = Integer.parseInt(node.getDigit().getSecond_digit());\n int nodeThirdDigit = Integer.parseInt(node.getDigit().getThird_digit());\n\n int heuristic = Math.abs(goalNodeFirstDigit - nodeFirstDigit)+\n Math.abs(goalNodeSecondDigit - nodeSecondDigit)+\n Math.abs(goalNodeThirdDigit - nodeThirdDigit);\n\n node.setHeuristic(heuristic);\n }",
"public void setEdge(Student curr, Student neighbor, Integer price) {\n curr.setNeighborAndPrice(neighbor, price);\n }",
"private void discount(Edge edge) {\n\t\tedge.setElement(edge.getElement()*Constants.DISCOUNT);\n\t}",
"public void setshippingcost() {\r\n\t\tshippingcost = getweight() * 3;\r\n\t}",
"void setCost(double cost);",
"@Test\n public void test_shortcut_needed_bidirectional() {\n CHPreparationGraph graph = CHPreparationGraph.edgeBased(5, 4, (in, via, out) -> in == out ? 10 : 0);\n int edge = 0;\n graph.addEdge(0, 1, edge++, 10, 10);\n graph.addEdge(1, 2, edge++, 10, 10);\n graph.addEdge(2, 3, edge++, 10, 10);\n graph.addEdge(3, 4, edge++, 10, 10);\n graph.prepareForContraction();\n EdgeBasedWitnessPathSearcher searcher = new EdgeBasedWitnessPathSearcher(graph);\n searcher.initSearch(0, 1, 2, new EdgeBasedWitnessPathSearcher.Stats());\n double weight = searcher.runSearch(3, 6, 20.0, 100);\n assertTrue(Double.isInfinite(weight));\n }",
"public float getWeight();",
"public void addWeight(){\n\t\tweight++;\n\t}",
"public void setWeight(double weight) {\n\t\tthis.weight = weight;\n\t}",
"public void setObjectWeight(short weight) { this.objectWeight=weight; }",
"boolean addEdge(V v, V w, double weight);",
"@Test\n public void restrictedEdges() {\n int costlySource = graph.edge(0, 1).setDistance(5).set(speedEnc, 10, 10).getEdge();\n graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(2, 3).setDistance(1).set(speedEnc, 10, 10);\n int costlyTarget = graph.edge(3, 4).setDistance(5).set(speedEnc, 10, 10).getEdge();\n int cheapSource = graph.edge(0, 5).setDistance(1).set(speedEnc, 10, 10).getEdge();\n graph.edge(5, 6).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(6, 7).setDistance(1).set(speedEnc, 10, 10);\n int cheapTarget = graph.edge(7, 4).setDistance(1).set(speedEnc, 10, 10).getEdge();\n graph.edge(2, 6).setDistance(1).set(speedEnc, 10, 10);\n\n assertPath(calcPath(0, 4, cheapSource, cheapTarget), 0.4, 4, 400, nodes(0, 5, 6, 7, 4));\n assertPath(calcPath(0, 4, cheapSource, costlyTarget), 0.9, 9, 900, nodes(0, 5, 6, 2, 3, 4));\n assertPath(calcPath(0, 4, costlySource, cheapTarget), 0.9, 9, 900, nodes(0, 1, 2, 6, 7, 4));\n assertPath(calcPath(0, 4, costlySource, costlyTarget), 1.2, 12, 1200, nodes(0, 1, 2, 3, 4));\n }",
"public void showWeight(Edge edge){\n textView = new TextView(this);\n textView.setX(edge.getMidX());\n textView.setY(edge.getMidY());\n textView.setBackgroundColor(Color.WHITE);\n textView.setText(String.valueOf(Math.round(edge.getWeight()))); //round weight to display ints\n primsLayout.addView(textView);\n\n addWeight(textView);\n }",
"int getWeight();",
"int getWeight();",
"public void updateRightWeight(){\r\n\t \tif(this.rightNode != null)\r\n\t \t{\r\n\t \t\tif( this.rightNode.isNoGoZone() == true)\r\n\t \t{\r\n\t \t\t\t//set edge weight to 9999 if the next node is NO go zone or\r\n\t \t\t\t//boundary node\r\n\t \t\tthis.rightWeight = weightOfNoGoZone;\r\n\t \t}\r\n\t \telse if(this.rightNode.isRoad() == true && this.rightNode.isNoGoZone() == false)\r\n\t \t{\r\n\t \t\t//set edge weight to 1 if the next node is a road node\r\n\t \t\tthis.rightWeight = this.rightNode.getOwnElevation();\r\n\t \t}\r\n\t \t}\r\n\t \telse\r\n\t \t{\r\n\t \t\t//set edge weight to INF if the next node is NULL\r\n\t \t\tthis.rightWeight = weightOfMapEdge;\r\n\t \t}\r\n\t }",
"public void setWeight(int weight){\n\t\tthis.weight = weight;\n\t}",
"public void setRiversAlongEdges(int value) {\n this.riversAlongEdges = value;\n }",
"public int weight() {\n \treturn weight;\n }",
"@Test\n public void test_witness_bidirectional() {\n CHPreparationGraph graph = CHPreparationGraph.edgeBased(6, 6, (in, via, out) -> in == out ? 10 : 0);\n int edge = 0;\n graph.addEdge(0, 1, edge++, 10, 10);\n graph.addEdge(1, 2, edge++, 10, 10);\n graph.addEdge(2, 3, edge++, 20, 20);\n graph.addEdge(3, 4, edge++, 10, 10);\n graph.addEdge(1, 5, edge++, 10, 10);\n graph.addEdge(5, 3, edge++, 10, 10);\n graph.prepareForContraction();\n EdgeBasedWitnessPathSearcher searcher = new EdgeBasedWitnessPathSearcher(graph);\n searcher.initSearch(0, 1, 2, new EdgeBasedWitnessPathSearcher.Stats());\n double weight = searcher.runSearch(3, 6, 30.0, 100);\n assertEquals(20, weight, 1.e-6);\n }",
"private void relax(DirectedEdge e) {\n int v = e.from(), w = e.to();\n if (distTo[w] > distTo[v] + e.weight()) {\n distTo[w] = distTo[v] + e.weight();\n edgeTo[w] = e;\n if (pq.contains(w)) pq.change(w, distTo[w]);\n else pq.insert(w, distTo[w]);\n }\n }",
"private int populateEdges(List<Graph.Edge> edges) {\n expand(source, null);\n graph.enableGraphVertices();\n int weight = 0;\n for (Graph.Vertex v : graph) {\n\n Graph.Edge edge = ((XGraph.XVertex) v).stEdge;\n if (edge != null) {\n weight += edge.getWeight();\n }\n edges.add(edge);\n }\n return weight;\n }",
"@Test\n public void worksWithTurnCosts() {\n graph.edge(0, 1).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(1, 2).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(1, 4).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(0, 3).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(3, 4).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(4, 5).setDistance(1).set(speedEnc, 10, 10);\n graph.edge(5, 2).setDistance(1).set(speedEnc, 10, 10);\n\n setRestriction(0, 3, 4);\n setTurnCost(4, 5, 2, 6);\n\n // due to the restrictions we have to take the expensive path with turn costs\n assertPath(calcPath(0, 2, 0, 6), 6.4, 4, 6400, nodes(0, 1, 4, 5, 2));\n // enforcing going south from node 0 yields no path, because of the restricted turn 0->3->4\n assertNotFound(calcPath(0, 2, 3, ANY_EDGE));\n // without the restriction its possible\n assertPath(calcPath(0, 2, ANY_EDGE, ANY_EDGE), 0.2, 2, 200, nodes(0, 1, 2));\n }",
"public void setWeights(GraphNode pNode, double pWeight){\n ArrayList<ArcGraph> conections = pNode.getConections();\n \n for (int i = 0; i < conections.size(); i++){\n GraphNode destiny_node = conections.get(i).getDestiny();\n GraphNode source_node = conections.get(i).getSource();\n int pos_node = findNode(destiny_node); //returns the pos of the destiny node\n if (!MinDistanceStatus.get(pos_node)){ //if the weight isn't final we change it\n MinDistance.set(pos_node, conections.get(i).getWeight() + pWeight); // we change the min weight of the node\n References.set(pos_node, conections.get(i)); //Bueno\n }\n }\n }",
"@Override\n public double cost(){\n return 1 + super.sandwich.cost();\n }",
"@Test\n\tpublic void testGetWeight() {\n\t\tEdge edge1 = new Edge(\"a\", \"b\", 1);\n\t\tEdge edge2 = new Edge(\"b\", \"c\", 2);\n\t\tEdge edge3 = new Edge(\"c\", \"a\", 3);\n\t\tassertEquals(1, edge1.getWeight());\n\t\tassertEquals(2, edge2.getWeight());\n\t\tassertEquals(3, edge3.getWeight());\n\t}",
"public static void reweight(List<List<Pair>> edges, List<List<Pair>> newEdges, int h[]) {\n\t\tint V = edges.size();\n\t\tfor (int i =1; i < V; i++) {\n\t\t\tList<Pair> cur = edges.get(i);\n\t\t\tfor (int j = 0; j< cur.size(); j++) {\n\t\t\t\tint formerWeight = cur.get(j).weight;\n\t\t\t\tint newWeight = formerWeight + h[i] - h[cur.get(j).to]; \n\t\t\t\tnewEdges.get(i).add(new Pair(cur.get(j).to, newWeight));\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public int compareTo(Edge edge) {\n return Integer.compare(this.weight, edge.weight);\n }",
"public void addWeight(int weightToMerge) {\n this.weight += weightToMerge;\n }",
"public void setMaxWeight(double inMaxWeight) {\n maxWeight = inMaxWeight;\n }",
"public void removeEdgeWeight(Edge p_edge) {\n\t\tweights.remove(p_edge);\n\t}",
"public void setDirectedEdge(Vertex start, Vertex end, int weight) \n\t{\n\t\ttry {\n\t\t\tint vI = vertices.indexOf(start);\n\t\t\tint uI = vertices.indexOf(end);\n\t\t\tedges[vI][uI] = weight;\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\n\t}",
"@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}",
"public Edge(Node source, Node sink, Object weight) {\n\t\tthis(source, sink);\n\t\tsetWeight(weight);\n\t}"
] | [
"0.6784723",
"0.6597935",
"0.6424173",
"0.6350454",
"0.6333791",
"0.6321541",
"0.6226505",
"0.6106319",
"0.6069602",
"0.6026191",
"0.59179187",
"0.59051067",
"0.5873673",
"0.5862691",
"0.58181375",
"0.5780542",
"0.5767582",
"0.5727226",
"0.5713779",
"0.56965005",
"0.56960285",
"0.5693745",
"0.56739813",
"0.56593597",
"0.56562537",
"0.56491965",
"0.56206524",
"0.56205535",
"0.56178224",
"0.557158",
"0.5560959",
"0.5545997",
"0.5543483",
"0.55328476",
"0.55265445",
"0.55225945",
"0.5490482",
"0.5420792",
"0.5399063",
"0.5386689",
"0.5375037",
"0.5362028",
"0.5360612",
"0.5359136",
"0.53511363",
"0.53443205",
"0.5343451",
"0.5342631",
"0.53421694",
"0.53322375",
"0.5325767",
"0.53076893",
"0.5303226",
"0.52955294",
"0.52938026",
"0.52890426",
"0.52859956",
"0.52595514",
"0.5257481",
"0.52557427",
"0.52416694",
"0.5240507",
"0.52333957",
"0.52322143",
"0.5232116",
"0.52302754",
"0.5223703",
"0.5211618",
"0.5209913",
"0.52002084",
"0.5197087",
"0.5193948",
"0.5191548",
"0.51828396",
"0.51618046",
"0.51570356",
"0.5152216",
"0.5149421",
"0.5147425",
"0.51427794",
"0.51427794",
"0.5138314",
"0.5127518",
"0.512435",
"0.5120647",
"0.5118441",
"0.5111434",
"0.5110217",
"0.51061887",
"0.51034755",
"0.5101843",
"0.50917697",
"0.5089909",
"0.50890976",
"0.508902",
"0.5078498",
"0.5071776",
"0.5069507",
"0.5069207",
"0.506675"
] | 0.7417749 | 0 |
Computes the shortest path to all vertices from the start vertex in the graph using the weighing function | public void computeShortestPath() throws IllegalStateException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void computeShortestPath(){\n T current = start;\n boolean atEnd = false;\n while (!unvisited.isEmpty()&& !atEnd){\n int currentIndex = vertexIndex(current);\n LinkedList<T> neighbors = getUnvisitedNeighbors(current); // getting unvisited neighbors\n \n //what is this doing here???\n if (neighbors.isEmpty()){\n \n }\n \n // looping through to find distances from start to neighbors\n for (T neighbor : neighbors){ \n int neighborIndex = vertexIndex(neighbor); \n int d = distances[currentIndex] + getEdgeWeight(current, neighbor);\n \n if (d < distances[neighborIndex]){ // if this distance is less than previous distance\n distances[neighborIndex] = d;\n closestPredecessor[neighborIndex] = current; // now closest predecessor is current\n }\n }\n \n if (current.equals(end)){\n atEnd = true;\n }\n else{\n // finding unvisited node that is closest to start node\n T min = getMinUnvisited();\n if (min != null){\n unvisited.remove(min); // remove minimum neighbor from unvisited\n visited.add(min); // add minimum neighbor to visited\n current = min;\n }\n }\n }\n computePath();\n totalDistance = distances[vertexIndex(end)];\n }",
"private static void computePaths(Vertex source) {\n source.minDistance = 0;\n // retrieves with log(n) time\n PriorityQueue<Vertex> vertexPriorityQueue = new PriorityQueue<>();\n\n //BFS traversal\n vertexPriorityQueue.add(source);\n\n // O((v + e) * log(v))\n while (!vertexPriorityQueue.isEmpty()) {\n // this poll always returns the shortest distance vertex at log(v) time\n Vertex vertex = vertexPriorityQueue.poll();\n\n //visit each edge exiting vertex (adjacencies)\n for (Edge edgeInVertex : vertex.adjacencies) {\n // calculate new distance between edgeInVertex and target\n Vertex targetVertex = edgeInVertex.target;\n double edgeWeightForThisVertex = edgeInVertex.weight;\n double distanceThruVertex = vertex.minDistance + edgeWeightForThisVertex;\n if (distanceThruVertex < targetVertex.minDistance) {\n // modify the targetVertex with new calculated minDistance and previous vertex\n // by removing the old vertex and add new vertex with updates\n vertexPriorityQueue.remove(targetVertex);\n targetVertex.minDistance = distanceThruVertex;\n // update previous with the shortest distance vertex\n targetVertex.previous = vertex;\n vertexPriorityQueue.add(targetVertex);// adding takes log(v) time because needs to heapify\n }\n }\n }\n }",
"public static void computePaths(Vertex source){\n\t\tsource.minDistance=0;\n\t\t//visit each vertex u, always visiting vertex with smallest minDistance first\n\t\tPriorityQueue<Vertex> vertexQueue=new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(source);\n\t\twhile(!vertexQueue.isEmpty()){\n\t\t\tVertex u = vertexQueue.poll();\n\t\t\tSystem.out.println(\"For: \"+u);\n\t\t\tfor (Edge e: u.adjacencies){\n\t\t\t\tVertex v = e.target;\n\t\t\t\tSystem.out.println(\"Checking: \"+u+\" -> \"+v);\n\t\t\t\tdouble weight=e.weight;\n\t\t\t\t//relax the edge (u,v)\n\t\t\t\tdouble distanceThroughU=u.minDistance+weight;\n\t\t\t\tif(distanceThroughU<v.minDistance){\n\t\t\t\t\tSystem.out.println(\"Updating minDistance to \"+distanceThroughU);\n\t\t\t\t\tv.minDistance=distanceThroughU;\n\t\t\t\t\tv.previous=u;\n\t\t\t\t\t//move the vertex v to the top of the queue\n\t\t\t\t\tvertexQueue.remove(v);\n\t\t\t\t\tvertexQueue.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void calcSP(Graph g, Vertex source){\n // Algorithm:\n // 1. Take the unvisited node with minimum weight.\n // 2. Visit all its neighbours.\n // 3. Update the distances for all the neighbours (In the Priority Queue).\n // Repeat the process till all the connected nodes are visited.\n\n // clear existing info\n// System.out.println(\"Calc SP from vertex:\" + source.name);\n g.resetMinDistance();\n source.minDistance = 0;\n PriorityQueue<Vertex> queue = new PriorityQueue<Vertex>();\n queue.add(source);\n\n while(!queue.isEmpty()){\n Vertex u = queue.poll();\n for(Edge neighbour:u.neighbours){\n// System.out.println(\"Scanning vector: \"+neighbour.target.name);\n Double newDist = u.minDistance+neighbour.weight;\n\n // get new shortest path, empty existing path info\n if(neighbour.target.minDistance>newDist){\n // Remove the node from the queue to update the distance value.\n queue.remove(neighbour.target);\n neighbour.target.minDistance = newDist;\n\n // Take the path visited till now and add the new node.s\n neighbour.target.path = new ArrayList<>(u.path);\n neighbour.target.path.add(u);\n// System.out.println(\"Path\");\n// for (Vertex vv: neighbour.target.path) {\n// System.out.print(vv.name);\n// }\n// System.out.print(\"\\n\");\n\n// System.out.println(\"Paths\");\n neighbour.target.pathCnt = 0;\n neighbour.target.paths = new ArrayList<ArrayList<Vertex>>();\n if (u.paths.size() == 0) {\n ArrayList<Vertex> p = new ArrayList<Vertex>();\n p.add(u);\n neighbour.target.paths.add(p);\n neighbour.target.pathCnt++;\n } else {\n for (ArrayList<Vertex> p : u.paths) {\n ArrayList<Vertex> p1 = new ArrayList<>(p);\n p1.add(u);\n// for (Vertex vv : p1) {\n// System.out.print(vv.name);\n// }\n// System.out.print(\"\\n\");\n neighbour.target.paths.add(p1);\n neighbour.target.pathCnt++;\n }\n }\n\n //Reenter the node with new distance.\n queue.add(neighbour.target);\n }\n // get equal cost path, add into path list\n else if (neighbour.target.minDistance == newDist) {\n queue.remove(neighbour.target);\n for(ArrayList<Vertex> p: u.paths) {\n ArrayList<Vertex> p1 = new ArrayList<>(p);\n p1.add(u);\n neighbour.target.paths.add(p1);\n neighbour.target.pathCnt++;\n }\n queue.add(neighbour.target);\n }\n }\n }\n }",
"@Override\n public List dijkstrasShortestPath(T start, T end) {\n Vertex<T> origin = new Vertex<>(start);\n Vertex<T> destination = new Vertex<>(end);\n List<Vertex<T>> path;\n\n settledNodes = new HashSet<>();\n unSettledNodes = new HashSet<>();\n distancesBetweenNodes = new HashMap<>();\n predecessors = new HashMap<>();\n\n distancesBetweenNodes.put(origin,0);\n unSettledNodes.add(origin);\n\n while(unSettledNodes.size() > 0){\n Vertex<T> minimumWeightedVertex = getMinimum(unSettledNodes);\n settledNodes.add(minimumWeightedVertex);\n unSettledNodes.remove(minimumWeightedVertex);\n findMinimumDistance(minimumWeightedVertex);\n }\n path = getPath(destination);\n return path;\n\n }",
"public int shortestPath(Village startVillage, Village targetVillage) {\n// setting the initial point 's minimum distance to zera\n startVillage.setMinDistance(0);\n// accourting to bellman ford if there are n number of dots then n-1 iterations to be done to find the minimum distances of every dot from one initial dot\n int length = this.villageList.size();\n// looping n-1 times\n for (int i = 0; i < length - 1; i++) {\n// looping through all the roads and mark the minimum distances of all the possible points\n for (Road road : roadList) {\n\n\n// if the road is a main road then skip the path\n if (road.getWeight() == 900)\n continue; //why 900 ? : just a random hightest number as a minimum distance and same 900 is used as a mix number\n Village v = road.getStartVertex();\n Village u = road.getTargetVertex();\n// if the newly went path is less than the path it used to be the update the min distance of the reached vertex\n int newLengtha = v.getMinDistance() + road.getWeight();\n if (newLengtha < u.getMinDistance()) {\n u.setMinDistance(newLengtha);\n u.setPreviousVertex(v);\n }\n int newLengthb = u.getMinDistance() + road.getWeight();\n if (newLengthb < v.getMinDistance()) {\n v.setMinDistance(newLengthb);\n v.setPreviousVertex(v);\n }\n }\n }\n// finally return the minimum distance\n return targetVillage.getMinDistance();\n }",
"public int doDijkstras(String startVertex, String endVertex, ArrayList<String> shortestPath)\r\n\t{\r\n\t\tif(!this.dataMap.containsKey(startVertex) || !this.dataMap.containsKey(endVertex))\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"Vertex does not exist in the graph!\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSet<String> visited = new HashSet<String>();\r\n\t\t\r\n\t\tPriorityQueue<Vertex> minDist = new PriorityQueue<Vertex>();\r\n\t\t\r\n\t\tVertex firstV = new Vertex(startVertex,startVertex,0);\r\n\t\tminDist.add(firstV);\r\n\t\t\r\n\t\tfor(String V : this.adjacencyMap.get(startVertex).keySet())\r\n\t\t{\r\n\t\t\tminDist.add(new Vertex(V,startVertex,this.getCost(startVertex, V)));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//map of vertexName --> VertexObject\r\n\t\tHashMap<String, Vertex> mapV = new HashMap<String,Vertex>();\r\n\t\tmapV.put(startVertex, firstV);\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Init keys-->costs\r\n\t\t */\r\n\t\tfor(String key : this.getVertices())\r\n\t\t{\r\n\t\t\tif(key.equals(startVertex))\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,0));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,Integer.MAX_VALUE));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t/*\r\n\t\t * Init List for shortest path\r\n\t\t */\r\n\t\tLinkedList<String> list = new LinkedList<String>();\r\n\t\tlist.add(startVertex);\r\n\r\n\t\tHashMap<String,List<String>> path = new HashMap<String,List<String>>();\r\n\t\tpath.put(startVertex, list);\r\n\t\t\r\n\t\twhile(!minDist.isEmpty())\r\n\t\t{\r\n\t\t\tVertex node = minDist.poll();\r\n\t\t\tString V = node.current;\r\n\t\t\tint minimum = node.cost;\r\n\t\t\tSystem.out.println(minDist.toString());\r\n\t\t\t\r\n\t\t\t\tvisited.add(V);\r\n\t\t\t\t\r\n\t\t\t\tTreeSet<String> adj = new TreeSet<String>(this.adjacencyMap.get(V).keySet());\r\n\t\t\t\t\r\n\t\t\t\tfor(String successor : adj)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(!visited.contains(successor) && !V.equals(successor))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint newCost = this.getCost(V, successor)+minimum;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(newCost < mapV.get(successor).cost)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tminDist.remove(mapV.get(successor));\r\n\t\t\t\t\t\t\t\tminDist.add(new Vertex(successor,V,newCost));\r\n\t\t\t\t\t\t\t\tmapV.put(successor, new Vertex(successor,V,newCost));\r\n\r\n\t\t\t\t\t\t\t\tLinkedList<String> newList = new LinkedList<String>(path.get(V));\r\n\t\t\t\t\t\t\t\tnewList.add(successor);\r\n\t\t\t\t\t\t\t\tpath.put(successor, newList);\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\t\r\n\t\t}\r\n\t\t\r\n\t\tint smallestPath = mapV.get(endVertex).cost == Integer.MAX_VALUE ? -1 : mapV.get(endVertex).cost;\r\n\t\t\r\n\t\tif(smallestPath == -1)\r\n\t\t{\r\n\t\t\tshortestPath.add(\"None\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(String node : path.get(endVertex))\r\n\t\t\t{\r\n\t\t\t\tshortestPath.add(node);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn smallestPath;\r\n\t}",
"void shortestPath( final VertexType fromNode, Integer node );",
"public void shortestPaths(int source) {\n\n\t\tlong start = 0;\n\t\tlong stop;\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tedgeList[v] = new Edge(vertexList[v].id, rand, 5000);\n\t\t}\n\t\t// creating object of fibonacci\n\t\tFHeap pq = new FHeap();\n\t\t// creating a map for checking\n\t\tMap<Integer, FHeap.Node> check = new HashMap<Integer, FHeap.Node>();\n\t\t// storing the mst costs\n\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tcheck.put(vertexList[v].id,\n\t\t\t\t\tpq.enqueue(vertexList[v].id, Double.POSITIVE_INFINITY));\n\t\t}\n\t\tstart = System.currentTimeMillis();\n\t\t// allot cost 0 to initial node\n\t\tpq.decreaseKey(check.get(vertexList[source].id), 0.0);\n\n\t\twhile (!pq.isEmpty()) {\n\t\t\t// take the current node and get its minimum cost\n\t\t\tFHeap.Node current = pq.dequeueMin();\n\n\t\t\t// store the values in the table\n\t\t\tresult.put(current.getValue(), current.getCost());\n\n\t\t\t// update the costs\n\t\t\tfor (Neighbor nbr = vertexList[current.getValue()].adjList; nbr != null; nbr = nbr.next) {\n\n\t\t\t\t// edge is not added if shortest cost is known\n\t\t\t\tif (result.containsKey(vertexList[nbr.vertexNumber].id))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// update cost to shortest\n\t\t\t\tFHeap.Node finalCost = check\n\t\t\t\t\t\t.get(vertexList[nbr.vertexNumber].id);\n\t\t\t\tif (nbr.weight < finalCost.getCost())\n\t\t\t\t\tpq.decreaseKey(finalCost, nbr.weight);\n\t\t\t}\n\t\t}\n\t\tstop = System.currentTimeMillis();\n\t\t// computing the time\n\t\ttime = stop - start;\n\n\t\t// calculate the MST cost\n\t\tfor (int i = 0; i < vertexList.length; i++) {\n\t\t\tsumHeapCost = (int) (sumHeapCost + result.get(i));\n\t\t}\n\t\t// for printing in case of input from file in fibonacci mode\n\t\n\t\t// System.out.println(sumHeapCost);\n\t}",
"public InTree<V,E> weightedShortestPaths(V source)\n\t\tthrows NegativeWeightEdgeException, DisconnectedGraphException;",
"public static <N,E> ShortestPath<N, E> calculateFor(IWeightedGraph<N, E> g, int startNode){\n\t\treturn new ShortestPath<>(g, startNode);\n\t}",
"private void calculateShortestDistances (GraphStructure graph,int startVertex,int destinationVertex) {\r\n\t\t//traverseRecursively(graph, startVertex);\r\n\t\tif(pathList.contains(destinationVertex)) {\r\n\t\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\t\tdistanceArray[startVertex]=0;\r\n\t\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\t\tList<Edge> list;\r\n\t\t\tlist = graph.getAdjacencyList()[startVertex];\r\n\t\t\tif(startVertex==destinationVertex) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\tif(! isVisited[value.getVertex()]) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[startVertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t\tshortestPathList.add(value.getVertex());\r\n\t\t\t\t\t\t\tcalculateShortestDistances(graph,value.getVertex(), distanceValueOfDestinationVertex);\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*for(Integer value : spanningTreeSet) {\r\n\t\t\t\tSystem.out.print(value+\" \");\r\n\t\t\t}*/\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No route is present between given vertices !\");\r\n\t\t}\r\n\t}",
"public void computeAllPaths(String source)\r\n {\r\n Vertex sourceVertex = network_topology.get(source);\r\n Vertex u,v;\r\n double distuv;\r\n\r\n Queue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\r\n \r\n \r\n // Switch between methods and decide what to do\r\n if(routing_method.equals(\"SHP\"))\r\n {\r\n // SHP, weight of each edge is 1\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + 1;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n else if (routing_method.equals(\"SDP\"))\r\n {\r\n // SDP, weight of each edge is it's propagation delay\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + u.adjacentVertices.get(key).propDelay;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n } \r\n }\r\n }\r\n else if (routing_method.equals(\"LLP\"))\r\n {\r\n // LLP, weight each edge is activeCircuits/AvailableCircuits\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = Math.max(u.minDistance,u.adjacentGet(key).load());\r\n //System.out.println(u.adjacentGet(key).load());\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n }\r\n }\r\n }",
"@Override\n\tpublic List<Path> getShortestRoute(Location src, Location dest, String edgePropertyName) {\n\t\t//array to keep track of visited vertexes\n\t\tboolean[] visited = new boolean[locations.size()];\n\t\t//array to store weights\n\t\tdouble[] weight = new double[locations.size()];\n\t\t//array to store predecessors\n\t\tLocation[] pre = new Location[locations.size()];\n\t\t//creates priority queue\n\t\tPriorityQueue<LocWeight> pq = new PriorityQueue<LocWeight>();\n\t\t// initializes every vertex misted mark to false\n\t\tfor (int i = 0; i < visited.length; i++)\n\t\t\tvisited[i] = false;\n\t\t// initializes every vertex's total weight to infinity\n\t\tfor (int i = 0; i < weight.length; i++)\n\t\t\tweight[i] = Double.POSITIVE_INFINITY;\n\t\t// initializes every vertex's predecessor to null\n\t\tfor (int i = 0; i < pre.length; i++)\n\t\t\tpre[i] = null;\n\t\t//sets start vertex's total weight to 0\n\t\tweight[locations.indexOf(src)] = 0;\n\t\t//insert start vertex in priroty queue\n\t\tpq.add(new LocWeight(src, 0.0));\n\t\t\n\t\tString[] edgeNames = getEdgePropertyNames();\n\t\tint indexProp = 0;\n\t\tfor (int i = 0; i < edgeNames.length; i++) {\n\t\t\tif (edgeNames[i].equalsIgnoreCase(edgePropertyName))\n\t\t\t\tindexProp = i;\n\t\t}\n\t\twhile (!pq.isEmpty()) {\n\t\t\tLocWeight c = pq.remove();\n\t\t\t//set C's visited mark to true\n\t\t\tvisited[locations.indexOf(c)] = true;\n\n\t\t\tList<Location> neighbors = getNeighbors(c.getLocation());\n\t\t\t//for each unvisited successor adjacent to C\n\t\t\tfor (int i = 0; i < neighbors.size(); i++) {\n\t\t\t\tif (visited[locations.indexOf(neighbors.get(i))] == false) {\n\t\t\t\t\t//change successor's total weight to equal C's weight + edge weight from C to successor\n\t\t\t\t\tweight[locations.indexOf(neighbors.get(i))] = c.getWeight() + getEdgeIfExists(c.getLocation(), neighbors.get(i)).getProperties().get(indexProp);\n\t\t\t\t\tpre[locations.indexOf(neighbors.get(i))] = c.getLocation();\n\t\t\t\t\tLocWeight succ = new LocWeight(neighbors.get(i), weight[locations.indexOf(neighbors.get(i))]);\n\t\t\t\t\t//if successor is already in pq, update its total weight\n\t\t\t\t\tif (pq.contains(succ)) {\n\t\t\t\t\t\tpq.remove(succ);\n\t\t\t\t\t}\n\t\t\t\t\t//if not already there, add\n\t\t\t\t\tpq.add(succ);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\n\t\t}\n\t\t\n\t\tArrayList<Path> path = new ArrayList<Path>();\n\t\t//find predecessor of each vertex and construct shortest path then return it\n\t\tLocation curr1 = dest;\n\t\twhile (pre[locations.indexOf(curr1)] != null) {\n\t\t\tpath.add(getEdgeIfExists(pre[locations.indexOf(curr1)], curr1));\n\t\t\tcurr1 = pre[locations.indexOf(curr1)];\n\t\t}\n\t\t//to show path from the start\n\t\tfor (int i = path.size() - 1; i >= 0; i--)\n\t\t\tpath.add(path.remove(i));\n\n\n\t\treturn path;\n\t}",
"private void computePaths(Vertex source, Vertex target, ArrayList<Vertex> vs)\n {\n \tfor (Vertex v : vs)\n \t{\n \t\tv.minDistance = Double.POSITIVE_INFINITY;\n \t\tv.previous = null;\n \t}\n source.minDistance = 0.;\t\t// distance to self is zero\n IndexMinPQ<Vertex> vertexQueue = new IndexMinPQ<Vertex>(vs.size());\n \n for (Vertex v : vs) vertexQueue.insert(Integer.parseInt(v.id), v);\n\n\t\twhile (!vertexQueue.isEmpty()) \n\t\t{\n\t \t// retrieve vertex with shortest distance to source\n\t \tVertex u = vertexQueue.minKey();\n\t \tvertexQueue.delMin();\n\t\t\tif (u == target)\n\t\t\t{\n\t\t\t\t// trace back\n\t\t\t\twhile (u.previous != null)\n\t\t\t\t{;\n\t\t\t\t\tu = u.previous;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t// Visit each edge exiting u\n \tfor (Edge e : u.adjacencies)\n \t\t{\n \t\tVertex v = e.target;\n\t\t\t\tdouble weight = e.weight;\n \tdouble distanceThroughU = u.minDistance + weight;\n\t\t\t\tif (distanceThroughU < v.minDistance) \n\t\t\t\t{\n\t\t\t\t\tint vid = Integer.parseInt(v.id);\n\t\t \t\tvertexQueue.delete(vid);\n\t\t \t\tv.minDistance = distanceThroughU;\n\t\t \t\tv.previous = u;\n\t\t \t\tvertexQueue.insert(vid,v);\n\t\t\t\t}\n\t\t\t}\n }\n }",
"ShortestPath(UndirectedWeightedGraph graph, String startNodeId, String endNodeId) throws NotFoundNodeException {\r\n\t\t\r\n\t\tif (!graph.containsNode(startNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, startNodeId);\r\n\t\t}\t\t\r\n\t\tif (!graph.containsNode(endNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, endNodeId);\r\n\t\t}\t\r\n\r\n\t\tsrc = startNodeId;\r\n\t\tdst = endNodeId;\r\n\t\t\r\n\t\tif (endNodeId.equals(startNodeId)) {\r\n\t\t\tlength = 0;\r\n\t\t\tnumOfPath = 1;\r\n\t\t\tArrayList<String> path = new ArrayList<String>();\r\n\t\t\tpath.add(startNodeId);\r\n\t\t\tpathList.add(path);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// create a HashMap of updated distance from the starting node to every node\r\n\t\t\t// initially it is 0, inf, inf, inf, ...\r\n\t\t\tHashMap<String, Double> distance = new HashMap<String, Double>();\t\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif (nodeId.equals(startNodeId)) {\r\n\t\t\t\t\t// the starting node will always have 0 distance from itself\r\n\t\t\t\t\tdistance.put(nodeId, 0.0);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// the others have initial distance is infinity\r\n\t\t\t\t\tdistance.put(nodeId, Double.MAX_VALUE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// a HashMap of preceding node of each node\r\n\t\t\tHashMap<String, HashSet<String>> precedence = new HashMap<String, HashSet<String>>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif ( nodeId.equals(startNodeId) ) {\r\n\t\t\t\t\tprecedence.put(nodeId, null);\t// the start node will have no preceding node\r\n\t\t\t\t}\r\n\t\t\t\telse { \r\n\t\t\t\t\tprecedence.put(nodeId, new HashSet<String>());\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\tSet<String> unvisitedNode = new HashSet<String>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tunvisitedNode.add(nodeId);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdouble minUnvisitedLength;\r\n\t\t\tString minUnvisitedNode;\r\n\t\t\t// run loop while not all node is visited\r\n\t\t\twhile ( unvisitedNode.size() != 0 ) {\r\n\t\t\t\t// find the unvisited node with minimum current distance in distance list\r\n\t\t\t\tminUnvisitedLength = Double.MAX_VALUE;\r\n\t\t\t\tminUnvisitedNode = \"\";\r\n\t\t\t\tfor (String nodeId : unvisitedNode) {\r\n\t\t\t\t\tif (distance.get(nodeId) < minUnvisitedLength) {\r\n\t\t\t\t\t\tminUnvisitedNode = nodeId;\r\n\t\t\t\t\t\tminUnvisitedLength = distance.get(nodeId); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// if there are no node that can be visited from the unvisitedNode, break the loop \r\n\t\t\t\tif (minUnvisitedLength == Double.MAX_VALUE) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// remove the node from unvisitedNode\r\n\t\t\t\tunvisitedNode.remove(minUnvisitedNode);\r\n\t\t\t\t\r\n\t\t\t\t// update the distance of its neighbors\r\n\t\t\t\tfor (Node neighborNode : graph.getNodeList().get(minUnvisitedNode).getNeighbors().keySet()) {\r\n\t\t\t\t\tdouble distanceFromTheMinNode = distance.get(minUnvisitedNode) + graph.getNodeList().get(minUnvisitedNode).getNeighbors().get(neighborNode).getWeight();\r\n\t\t\t\t\t// if the distance of the neighbor can be shorter from the current node, change \r\n\t\t\t\t\t// its details in distance and precedence\r\n\t\t\t\t\tif ( distanceFromTheMinNode < distance.get(neighborNode.getId()) ) {\r\n\t\t\t\t\t\tdistance.replace(neighborNode.getId(), distanceFromTheMinNode);\r\n\t\t\t\t\t\t// renew the precedence of the neighbor node\r\n\t\t\t\t\t\tprecedence.put(neighborNode.getId(), new HashSet<String>());\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (distanceFromTheMinNode == distance.get(neighborNode.getId())) {\r\n\t\t\t\t\t\t// unlike dijkstra's algorithm, multiple path should be update into the precedence\r\n\t\t\t\t\t\t// if from another node the distance is the same, add it to the precedence\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// if the current node in the process is the end node, we can stop the while loop here\r\n\t\t\t\tif (minUnvisitedNode == endNodeId) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (distance.get(endNodeId) == Double.MAX_VALUE) {\r\n\t\t\t\t// in case there is no shortest path between the 2 nodes\r\n\t\t\t\tlength = 0;\r\n\t\t\t\tnumOfPath = 0;\r\n\t\t\t\tpathList = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// other wise we have these information\r\n\t\t\t\tlength = distance.get(endNodeId);\r\n\t\t\t\t//numOfPath = this.getNumPath(precedence, startNodeId, endNodeId);\r\n\t\t\t\tpathList = this.findPathList(precedence, startNodeId, endNodeId);\r\n\t\t\t\tnumOfPath = pathList.size();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\t// END ELSE\t\t\r\n\t}",
"public void shortestPathsNodes() {\n for (int sourceNode = 0; sourceNode < wordGraph.V(); sourceNode++) {\n BreadthFirstDirectedPaths bfs = new BreadthFirstDirectedPaths(wordGraph, sourceNode);\n\n for (int goalNode = 0; goalNode < wordGraph.V(); goalNode++) {\n Iterable<Integer> shortestPath = bfs.pathTo(goalNode);\n int pathLength = -1;\n if (shortestPath != null) {\n for (int edge : shortestPath) {\n pathLength++;\n }\n }\n if (pathLength != -1) {\n }\n System.out.println(pathLength);\n }\n }\n }",
"List<V> getShortestPath(V vertex);",
"public void dijkstra(int graphWeight[][], int source){\r\n\t\t\r\n\t\tint queue[] = new int[vertices]; //The array which will hold the shortest distance from source to node i\r\n\t\tboolean set[] = new boolean[vertices]; //It will store true for node i if the shortest path to that vertex or node is found\r\n\t\t\r\n\t\t//Initialize distances to infinity and set[] array to false \r\n\t\tfor(int i=0;i<vertices;i++){\r\n\t\t\tqueue[i] = Integer.MAX_VALUE; \r\n\t\t\tset[i] = false;\r\n\t\t}\r\n\t\t\r\n\t\t//Distance of source vertex from itself is always 0\r\n\t\tqueue[source] = 0;\r\n\r\n\t\t//Find shortest path of all the vertices\r\n\t\tfor(int count=0;count<vertices-1;count++){\r\n\t\t\t\r\n\t\t\t//Pick the minimum distance vertex from the from the set of vertices \r\n\t\t\t//not processed. u is equal to source in first iteration\r\n\t\t\tint u = extractMinDistance(queue, set);\r\n\t\t\t\r\n\t\t\t//Mark the picked vertex processed\r\n\t\t\tset[u] = true;\r\n\t\t\t//Update queue value of the adjacent vertices of the picked vertex\r\n\t\t\tfor(int v=0;v<vertices;v++)\r\n\t\t\t{\r\n\t\t\t\t//Update queue[v] only if\r\n\t\t\t\t// 1. It is not in set true in the Set Array\r\n\t\t\t\t// 2. There is an edge from u to v\r\n\t\t\t\t// 3. Total weight of path from source to v through u is smaller than current value of queue[v]\r\n\t\t\t\tif((graphWeight[u][v] > 0) && set[v] == false){\r\n\t\t\t\t\t\tif(queue[u] + graphWeight[u][v] < queue[v]){\r\n\t\t\t\t\t\t\tqueue[v] = queue[u] + graphWeight[u][v];\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//printSolution(queue, vertices);\r\n\t\t}\r\n\t\t//Print the constructed distance array\r\n\t\tprintSolution(queue, vertices);\r\n\t}",
"@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tint[] prev = new int[dwg.nodeSize()];\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\tprev[src%dwg.nodeSize()] = -1;\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t\tprev[u.getKey()%dwg.nodeSize()] = v.getKey();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tList<node_data> ans = new ArrayList<node_data>();\n\t\tint run = dest;\n\t\twhile(run != src) {\n\t\t\tans.add(0,dwg.getNode(run));\n\t\t\trun = prev[run%dwg.nodeSize()];\n\t\t}\n\t\tans.add(0, dwg.getNode(src));\n\n\t\treturn ans;\n\t}",
"private void computeShortestPathsFromSource(V source) {\n\t\tBFSDistanceLabeler<V, E> labeler = new BFSDistanceLabeler<V, E>();\n\t\tlabeler.labelDistances(mGraph, source);\n\t\tdistances = labeler.getDistanceDecorator();\n\t\tMap<V, Number> currentSourceSPMap = new HashMap<V, Number>();\n\t\tMap<V, E> currentSourceEdgeMap = new HashMap<V, E>();\n\n\t\tfor (V vertex : mGraph.getVertices()) {\n\n\t\t\tNumber distanceVal = distances.get(vertex);\n\t\t\t// BFSDistanceLabeler uses -1 to indicate unreachable vertices;\n\t\t\t// don't bother to store unreachable vertices\n\t\t\tif (distanceVal != null && distanceVal.intValue() >= 0) {\n\t\t\t\tcurrentSourceSPMap.put(vertex, distanceVal);\n\t\t\t\tint minDistance = distanceVal.intValue();\n\t\t\t\tfor (E incomingEdge : mGraph.getInEdges(vertex)) {\n\t\t\t\t\tfor (V neighbor : mGraph\n\t\t\t\t\t\t\t.getIncidentVertices(incomingEdge)) {\n\t\t\t\t\t\tif (neighbor.equals(vertex))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t// V neighbor = mGraph.getOpposite(vertex,\n\t\t\t\t\t\t// incomingEdge);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNumber predDistanceVal = distances.get(neighbor);\n\n\t\t\t\t\t\tint pred_distance = predDistanceVal.intValue();\n\t\t\t\t\t\tif (pred_distance < minDistance && pred_distance >= 0) {\n\t\t\t\t\t\t\tminDistance = predDistanceVal.intValue();\n\t\t\t\t\t\t\tcurrentSourceEdgeMap.put(vertex, incomingEdge);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tmDistanceMap.put(source, currentSourceSPMap);\n\t\tmIncomingEdgeMap.put(source, currentSourceEdgeMap);\n\t}",
"public ShortestPath(IWeightedGraph<N,E> graph, int startNode) {\n\t\tthis.graph = graph;\n\t\tthis.startNode = startNode;\n\t\tthis.shortestPaths = new double[graph.numberOfNodes()];\n\t\tthis.previousNode = new int[graph.numberOfNodes()];\n\t\tbellmanFord(this.graph, this.startNode);\n\t}",
"private static void shortestPath(Graph graph, Character startNode, int algorithm) {\n Node currentNode = graph.getNode(startNode);\n\n // keep track of the nodes visited\n List<Character> nodesVisited = new ArrayList<>();\n\n // add the current node\n nodesVisited.add(currentNode.getName());\n\n // breadth first search to help keep track of the nodes we have already visited\n // helps with backtracking\n Stack<Node> visitingNodes = new Stack<>();\n\n // loop through the graph\n while (currentNode != graph.getNode('Z')) {\n // we have visited a node\n // add it to the stack\n // set true to since its been visited and it will be in the shortest path\n visitingNodes.add(currentNode);\n currentNode.setNodeVisited(true);\n currentNode.setInShortestPath(true);\n\n // get all the edges that are connected to the current node we are on\n List<Edge> adjacentNodes = currentNode.getNeighbors();\n\n // temp for next node\n Node nextNode = null;\n int weightDistanceTotal = Integer.MAX_VALUE;\n\n for (Edge i: adjacentNodes) {\n // testing\n // System.out.println(i.destination.getName());\n // System.out.println(i.destination.getDistanceToZ());\n\n // 1. always check to see if we have visited the node\n if (i.destination.isNodeVisited()) {\n // System.out.println(i.destination.getName() + \" is already in the path\");\n continue;\n }\n\n // 2. assign the next node to the destination\n if (nextNode == null) {\n nextNode = i.destination;\n }\n\n // compare distances\n if (algorithm == 1) {\n nextNode = updateNextNodeAlgo1(nextNode, i.destination);\n } else {\n NodeWithWeightDistanceTotal nodeWithWeightDistanceTotal = updateNextNodeAlgo2(nextNode, i, weightDistanceTotal);\n nextNode = nodeWithWeightDistanceTotal.node;\n weightDistanceTotal = nodeWithWeightDistanceTotal.weightDistanceTotal;\n }\n //if (nextNode.getDistanceToZ() > i.destination.getDistanceToZ()) {\n // nextNode = i.destination;\n //}\n }\n\n // next has no other edges\n if (nextNode == null) {\n // System.out.println(\"There no place to go from \" + currentNode.getName());\n // pop off the node we just visited\n nextNode = visitingNodes.pop();\n // its not in the shortest path to Z\n nextNode.setInShortestPath(false);\n // set the next node to the previous node\n nextNode = visitingNodes.pop();\n }\n\n // add the nodes we visit to keep track of the path\n nodesVisited.add(nextNode.getName());\n\n // System.out.println(Arrays.toString(nodesVisited.toArray()));\n // testing purposes to see if the node is on the shortest path\n\n// for (Character node: nodesVisited) {\n// Node boolVisit = graph.getNode(node);\n// System.out.println(boolVisit.isInShortestPath());\n// }\n\n // progress to the next node\n currentNode = nextNode;\n // when visiting the last node mark z in the shortest path\n if (currentNode.getName() == 'Z') {\n currentNode.setInShortestPath(true);\n }\n // testing\n // System.out.println(\"next node = \" + currentNode.getName());\n }\n\n // keep track of the path visited and the total addition of weights\n int pathCounter = 0;\n\n // construct the shortest path\n List<Node> shortestPath = new ArrayList<>();\n\n for (Character nodeVisitor: nodesVisited) {\n // get the node\n Node node = graph.getNode(nodeVisitor);\n\n // add to the shortest path\n if (node.isInShortestPath() && !shortestPath.contains(node)) {\n shortestPath.add(node);\n }\n }\n\n // print the shortest path\n for (int i = 0; i < shortestPath.size() - 1; i++) {\n currentNode = shortestPath.get(i);\n Node nextNode = shortestPath.get(i + 1);\n\n // find the weight of that node\n int weight = currentNode.findWeight(nextNode);\n pathCounter += weight;\n\n // System.out.println(\"weight \" + weight);\n // System.out.println(\"path total \" + pathCounter);\n }\n\n // final output\n String fullPathSequence = \"\";\n String shortestPathSequence = \"\";\n\n for (int i = 0; i < nodesVisited.size(); i++) {\n if (i != nodesVisited.size() - 1) {\n fullPathSequence += nodesVisited.get(i) + \" -> \";\n }\n }\n\n fullPathSequence += nodesVisited.get(nodesVisited.size() - 1);\n\n for (int i = 0; i < shortestPath.size(); i++) {\n if (i != shortestPath.size() - 1) {\n shortestPathSequence += shortestPath.get(i).getName() + \" -> \";\n }\n }\n\n if (currentNode.getName() == 'Z') {\n shortestPathSequence += \"Z\";\n } else {\n shortestPathSequence += shortestPath.get(shortestPath.size() - 1).getName();\n }\n\n System.out.println(\"Algorithm \" + algorithm + \" : \");\n System.out.println(\"Sequence of all nodes \" + fullPathSequence);\n System.out.println(\"Shortest path: \" + shortestPathSequence);\n System.out.println(\"Shortest path length: \" + pathCounter);\n System.out.println(\"\\n\");\n\n // reset the graph\n graph.graphReset();\n\n }",
"@Nullable\n public VertexPath<V> findShortestVertexPath(DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n if (graph instanceof IntDirectedGraph) {\n return doFindIntShortestVertexPath(graph, start, goal, costf);\n } else {\n return doFindShortestVertexPath(graph, start, goal, costf);\n }\n }",
"private static void simpleDijikstra(final DirectedGraph directedGraph,\n final Map<String, Integer> currentShortestPaths,\n final String start, final Set<String> visitedSet, final String destination) {\n // Terminate when we have visited all the nodes or if our start value isn't in our dijikstra table\n if (containsAndNotNull(currentShortestPaths, start) && visitedSet.size() != currentShortestPaths.keySet().size()) {\n compareDistanceAndReplace(directedGraph, currentShortestPaths, start);\n visitedSet.add(start);\n // Calculate the next current smallest node that hasn't been visited and not infinity\n final Optional<Map.Entry<String, Integer>> optionalSmallest =\n currentShortestPaths.entrySet().stream()\n .filter(node -> !visitedSet.contains(node.getKey()) && node.getValue() != null)\n .min(Comparator.comparingInt(Map.Entry::getValue));\n // Continue to next node if there is one available\n optionalSmallest.ifPresent(smallest -> {\n // No need to continue if the next smallest node is our destination\n if (!smallest.getKey().equals(destination)) {\n simpleDijikstra(directedGraph, currentShortestPaths, smallest.getKey(), visitedSet, destination);\n }\n });\n }\n }",
"void shortestPaths( Set<Integer> nodes );",
"@Override\n public List<node_data> shortestPath(int src, int dest) {\n reset();\n for (node_data node : G.getV()) {\n node.setWeight(Double.POSITIVE_INFINITY);\n }\n\n DWGraph_DS.Node currentNode = (DWGraph_DS.Node) G.getNode(src);\n currentNode.setWeight(0);\n PriorityQueue<node_data> unvisitedNodes = new PriorityQueue(G.nodeSize(), weightComperator);\n unvisitedNodes.addAll(G.getV());\n HashMap<Integer, node_data> parent = new HashMap<>();\n parent.put(src, null);\n\n while (currentNode.getWeight() != Double.POSITIVE_INFINITY) {\n if (G.getNode(dest).getTag() == 1) {\n break;\n }\n for (edge_data edge : G.getE(currentNode.getKey())) {\n DWGraph_DS.Node neighbor = (DWGraph_DS.Node) G.getNode(edge.getDest());\n double tmpWeight = currentNode.getWeight() + edge.getWeight();\n if (tmpWeight < neighbor.getWeight()) {\n neighbor.setWeight(tmpWeight);\n unvisitedNodes.remove(neighbor);\n unvisitedNodes.add(neighbor);\n parent.put(neighbor.getKey(), currentNode);\n }\n }\n currentNode.setTag(1);\n if(currentNode.getKey()==dest) break;\n unvisitedNodes.remove(currentNode);\n currentNode = (DWGraph_DS.Node) unvisitedNodes.poll();\n }\n /*\n Rebuild the path list\n */\n if (!parent.keySet().contains(dest)) return null;\n List<node_data> pathList = new ArrayList<>();\n currentNode = (DWGraph_DS.Node) G.getNode(dest);\n while (parent.get(currentNode.getKey()) != null) {\n pathList.add(currentNode);\n currentNode = (DWGraph_DS.Node) parent.get(currentNode.getKey());\n }\n Collections.reverse(pathList);\n return pathList;\n }",
"private static void findShortestPath(ArrayList<WeightedEdge> edges, int start, int dest, int nNodes) {\n int costs[] = new int[nNodes];\n int parents[] = new int[nNodes];\n boolean doneWithNode[] = new boolean[nNodes];\n\n // cost[i] has the cost of getting to node number i or is UNKNOWN if no cost figure out yet.\n // parent[i] contains the parent (or the way) we got to node i.\n // done[i] is true if we've already worked on all the children of node i.\n\n // Initialize the arrays.\n for (int i = 0; i<nNodes; i++) {\n costs[i] = UNKNOWN;\n parents[i] = UNKNOWN;\n doneWithNode[i] = false;\n }\n\n int node = start; // This is the node we are working on. Let's start with start node.\n costs[node] = 0; // The cost of getting to the start node is 0!\n\n // While not done processing all the nodes...\n\n // Loop through all the edges (edges array list).\n // Skip those edges whose source is doesn't match the node we're working on.\n\n // For edge (that has source of current node) figure out potential to\n // get it. (How much does it cost to get to node we're on? Add to\n // that the cost of the edge. That's the new price to set to dest of edge.\n\n // Is that a new low cost for that dest edge node?\n // Or is the dest edge node cost currently UNKNOWN? That means we have no cost.\n // If so, store the cost. Store the parent.\n\n // Once done with all the edges, mark the current node as\n // done being processed.\n doneWithNode[node] = true;\n\n // Get next node to work on.\n node = getLowestCostUnprocessedNode(costs, doneWithNode);\n\n // Done with while loop\n\n for (int i=0; i<parents.length; i++) {\n System.out.println(\"Node: \" + i + \" Cost: \" + costs[i] + \" Backtrace Parent: \" + parents[i]);\n }\n\n backtrace(dest, parents);\n }",
"private double dijkstraSingleTarget(Map<Integer, List<Node>> graph, int vertices, int source, int target) {\n Queue<Node> minHeap = new PriorityQueue<>(\n Comparator.comparingDouble(a -> a.weight)\n );\n\n double[] dist = new double[vertices + 1]; //shortest distance for each vertex\n Arrays.fill(dist, 0.0);\n\n boolean visited[] = new boolean[vertices + 1];\n\n // Distance for starting node is 0\n dist[source] = -1;\n minHeap.add((new Node(-1,source)));\n\n while (!minHeap.isEmpty()) {\n Node topPair = minHeap.remove();\n int currNode = topPair.vertex;\n double currDistance = topPair.weight;\n\n if (!graph.containsKey(currNode)) {\n continue;\n }\n\n if (visited[currNode]) continue;\n visited[currNode] = true;\n\n\n for (Node edge : graph.get(currNode)) {\n double weight = edge.weight;\n int neighborNode = edge.vertex;\n double nextDist = currDistance * weight;\n\n if (!visited[neighborNode] && nextDist < dist[neighborNode]) {\n dist[neighborNode] = nextDist;\n minHeap.add((new Node(nextDist, neighborNode)));\n\n }\n\n }\n\n\n }\n\n return -dist[target];\n }",
"@Override\r\n public List<V> shortestPath(V start, V destination) {\r\n Vertex a = null, b = null;\r\n try {\r\n Iterator<Vertex> vertexIterator = map.values().iterator();\r\n\r\n while (vertexIterator.hasNext()) {\r\n Vertex v = vertexIterator.next();\r\n if (start.compareTo(v.vertexName) == 0)\r\n a = v;\r\n if (destination.compareTo(v.vertexName) == 0)\r\n b = v;\r\n }\r\n if (a == null || b == null) {\r\n vertexIterator.next();\r\n }\r\n\r\n } catch (NoSuchElementException e) {\r\n throw e;\r\n }\r\n\r\n computePaths(map.get(start), destination);\r\n return getShortestPathTo(destination, start);\r\n }",
"public void Djkstra(int source) {\n\t\tfor (int i = 0; i < vertices; i++) {\n\t\t\tdist[i] = Integer.MAX_VALUE; // added infinity to all ,\n\t\t}\n\t\t\n\t\tdist[source] = 0;\n\n\t\t// add source vertex to priority queue\n\t\tq.add(new Node(source, 0));\n\n\n\t\t// while my all vertices are not selected as a min among smallest one time\n\t\t// refracted in visited\n\t\twhile (visited.size() != vertices) {\n\n\t\t\t// pick from priority queue the smallest/min distance\n\t\t\tint i = q.remove().node;\n\n\t\t\t// once node is removed from queue add to set\n\t\t\tvisited.add(i);\n\n\t\t\t// relax adjacent vertex of this node;\n\t\t\t// And add the new node to queue bcoz distance has got updated so add new node as i dont have any method to update \n\t\t\t// already present node and its distance\n\t\t\t\n\n\t\t\tfor (Node v : graph[i]) {\n\t\t\t\tif (!visited.contains(v.node)) {\n\t\t\t\t\tif (dist[i] + v.cost < dist[v.node]) {\n\t\t\t\t\t\tdist[v.node] = dist[i] + v.cost;\n\t\t\t\t\t\tq.add(new Node(v.node, dist[v.node]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}",
"public Path getShortestPath() {\n\t\tNodeRecord startRecord = new NodeRecord(start, null, 0.0f, (float) heuristic.estimate(start), Category.OPEN);\n\n\t\t// Initialize the open list\n\t\tPathFindingList open = new PathFindingList();\n\t\topen.addRecordByEstimatedTotalCost(startRecord);\n\t\trecords.set(Integer.parseInt(startRecord.node.id), startRecord);\n\t\tNodeRecord current = null;\n\t\t\n\t\t// Iterate through processing each node\n\t\twhile (!open.isEmpty()) {\n\t\t\t// Find smallest element in the open list using estimatedTotalCost\n\t\t\tcurrent = open.getSmallestNodeRecordByEstimatedTotalCost();\n\n\t\t\t// If its the goal node, terminate\n\t\t\tif (current.node.equals(end)) break;\n\n\t\t\t// Otherwise get its outgoing connections\n\t\t\tArrayList<DefaultWeightedEdge> connections = g.getConnections(current.node);\n\t\t\t\n\t\t\t// Loop through each connection\n\t\t\tfor (DefaultWeightedEdge connection : connections) {\n\t\t\t\t// Get the cost and other information for end node\n\t\t\t Vertex endNode = g.graph.getEdgeTarget(connection);\n\t\t\t int endNodeRecordIndex = Integer.parseInt(endNode.id);\n NodeRecord endNodeRecord = records.get(endNodeRecordIndex); // this is potentially null but we handle it\n\t\t\t\tdouble newEndNodeCost = current.costSoFar + g.graph.getEdgeWeight(connection);\n\t\t\t\tdouble endNodeHeuristic = 0;\n\t\t\t\t\n\t\t\t\t// if node is closed we may have to skip, or remove it from closed list\t\n\t\t\t\tif( endNodeRecord != null && endNodeRecord.category == Category.CLOSED ){ \n\t\t\t\t\t// Find the record corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If we didn't find a shorter route, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Otherwise remove it from closed list\n\t\t\t\t\trecords.get(endNodeRecordIndex).category = Category.OPEN;\n\n\t\t\t\t\t// Use node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Skip if node is open and we've not found a better route\n\t\t\t\t} else if( endNodeRecord != null && endNodeRecord.category == Category.OPEN ){ \n\t\t\t\t\t// Here we find the record in the open list corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If our route isn't better, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Use the node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Otherwise we know we've got an unvisited node, so make a new record\n\t\t\t\t} else { // if endNodeRecord.category == Category.UNVISITED\n\t\t\t\t endNodeRecord = new NodeRecord();\n\t\t\t\t\tendNodeRecord.node = endNode;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\n\t\t\t\t\t// Need to calculate heuristic since this is new\n\t\t\t\t\tendNodeHeuristic = heuristic.estimate(endNode);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// We're here if we need to update the node\n\t\t\t\t// update the cost, estimate, and connection\n\t\t\t\tendNodeRecord.costSoFar = newEndNodeCost;\n\t\t\t\tendNodeRecord.edge = connection;\n\t\t\t\tendNodeRecord.estimatedTotalCost = newEndNodeCost + endNodeHeuristic;\n\n\t\t\t\t// Add it to the open list\n\t\t\t\tif ( endNodeRecord.category != Category.OPEN ) {\n\t\t\t\t\topen.addRecordByEstimatedTotalCost(endNodeRecord);\n\t\t\t\t\tendNodeRecord.category = Category.OPEN;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// We’ve finished looking at the connections for\n\t\t\t// the current node, so add it to the closed list\n\t\t\t// and remove it from the open list\n\t\t\topen.removeRecord(current);\n\t\t\tcurrent.category = Category.CLOSED;\n\t\t\trecords.set(Integer.parseInt(current.node.id), current);\n\t\t}\n\t\t\n\t\t// We’re here if we’ve either found the goal, or\n\t\t// if we’ve no more nodes to search, find which.\n\t\tif (!current.node.equals(end)) {\n\t\t\t// Ran out of nodes without finding the goal, no solution\n\t\t\treturn null;\n\t\t} else {\n\t\t // Compile the list of connections in the path\n\t\t\tArrayList<DefaultWeightedEdge> path = new ArrayList<>();\n\n\t\t\twhile (!current.node.equals(start)) {\n\t\t\t\tpath.add(current.edge);\n\t\t\t\t// Set current (NodeRecord) to is source.\n\t\t\t\tcurrent = records.get( Integer.parseInt(g.graph.getEdgeSource(current.edge).id) );\n\t\t\t}\n\n\t\t\t// Reverse the path, and return it\n\t\t\tCollections.reverse(path);\n\t\t\treturn new Path(g, path);\n\t\t}\n\n\t}",
"@Nullable\n private NodeWithCost<V, A> findShortestPath(@Nonnull DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n PriorityQueue< NodeWithCost<V, A>> frontier = new PriorityQueue<>(61);\n Map<V, NodeWithCost<V, A>> frontierMap = new HashMap<>(61);\n // Size of explored is the expected number of nextArrows that we need to explore.\n Set<V> explored = new HashSet<>(61);\n return doFindShortestPath(start, frontier, frontierMap, goal, explored, graph, costf);\n }",
"private int[] runDijkstra(int graph[][], int source) {\r\n\r\n // Stores the best estimate of the shortest distance from\r\n // the source to each node \r\n int d[] = new int[graph.length];\r\n \r\n // Initialized with infinite value.\r\n // Value of -1 means the node has been settled \r\n int dC[] = new int[graph.length];\r\n \r\n // Stores the predecessor of each node on the shortest path \r\n // from the source\r\n int p[] = new int[graph.length];\r\n\r\n // Initialize\r\n for (int i = 0; i < graph.length; i++ ) {\r\n d[i] = this.INFINITE;\r\n dC[i] = this.INFINITE;\r\n p[i] = -1;\r\n }\r\n \r\n // We start knowning the distance of the source from itself (zero)\r\n d[source] = 0;\r\n dC[source] = 0;\r\n\r\n int i = 0;\r\n int min = this.INFINITE;\r\n int pos = 0;\r\n\r\n while (i < graph.length) {\r\n //extract minimum distance\r\n for (int j = 0; j < dC.length; j++ ){\r\n if( min > d[j] && dC[j] != -1 ){\r\n min = d[j];\r\n pos = j;\r\n }\r\n }\r\n // This node is settled\r\n dC[pos] = -1;\r\n\r\n // relax its neighbours\r\n for (int j = 0; j < graph.length; j++ ) {\r\n if ( (graph[pos][j] != -1) && (d[j] > graph[pos][j] + d[pos]) ) {\r\n d[j] = graph[pos][j] + d[pos];\r\n p[j] = pos;\r\n }\r\n }\r\n i++;\r\n min = this.INFINITE;\r\n }\r\n\r\n return p;\r\n }",
"public void findShortestPath(String startName, String endName) {\n checkValidEndpoint(startName);\n checkValidEndpoint(endName);\n\n Vertex<String> start = vertices.get(startName);\n Vertex<String> end = vertices.get(endName);\n\n double totalDist; // totalDist must be update below\n\n Map<Vertex<String>, Double> distance = new HashMap<>();\n Map<Vertex<String>, Vertex<String>> previous = new HashMap<>();\n Set<Vertex<String>> explored = new HashSet<>();\n PriorityQueue<VertexDistancePair> pq = new PriorityQueue<>();\n\n\n\n addPQ(distance, start, pq, previous);\n\n\n\n dijkstraHelper(pq, end, explored, distance, previous);\n\n\n\n\n\n\n totalDist = distance.get(end);\n List<Edge<String>> path = getPath(end, start);\n printPath(path, totalDist);\n }",
"@Override\n\tpublic void search() {\n\t\tpq = new IndexMinPQ<>(graph.getNumberOfStations());\n\t\tpq.insert(startIndex, distTo[startIndex]);\n\t\twhile (!pq.isEmpty()) {\n\t\t\tint v = pq.delMin();\n\t\t\tnodesVisited.add(graph.getStation(v));\n\t\t\tnodesVisitedAmount++;\n\t\t\tfor (Integer vertex : graph.getAdjacentVertices(v)) {\t\n\t\t\t\trelax(graph.getConnection(v, vertex));\n\t\t\t}\n\t\t}\n\t\tpathWeight = distTo[endIndex];\n\t\tpathTo(endIndex);\n\t}",
"@Override\n\tpublic void bellmanFord(IWeightedGraph<N, E> graph, int startnode) {\n\t\tif(graph == null){\n\t\t\tthrow new NullPointerException();\n\t\t}else if (startnode < 0 || startnode > graph.numberOfNodes()-1){\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\n\t\tfor(int i= 0; i<shortestPaths.length;i++){\n\t\t\tshortestPaths[i] = Double.POSITIVE_INFINITY;\n\t\t}\n\t\tshortestPaths[startnode] = 0;\n\n\t\tfor(int i= 1; i<graph.numberOfNodes(); i++){\n\t\t\tIterator<IEdge<E>> edgesIterator = graph.edgeIterator();\n\t\t\twhile(edgesIterator.hasNext()){\n\t\t\t\tIEdge<E> edge = edgesIterator.next();\n\t\t\t\tif(shortestPaths[edge.getSource()] + edge.getWeight() < shortestPaths[edge.getDestination()]){\n\t\t\t\t\tshortestPaths[edge.getDestination()] = shortestPaths[edge.getSource()] + edge.getWeight();\n\t\t\t\t\tpreviousNode[edge.getDestination()] = edge.getSource();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"@Override\n public Double calculateShortestPathFromSource(String from, String to) {\n Node source = graph.getNodeByName(from);\n Node destination = graph.getNodeByName(to);\n source.setDistance(0d);\n Set<Node> settledNodes = new HashSet<>();\n PriorityQueue<Node> unsettledNodes = new PriorityQueue<>(Comparator.comparing(Node::getDistance));\n unsettledNodes.add(source);\n while (unsettledNodes.size() != 0) {\n Node currentNode = unsettledNodes.poll();\n for (Map.Entry<Node, Double> adjacencyPair : currentNode.getAdjacentNodes().entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Double distance = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n calculateMinimumDistance(adjacentNode, distance, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return destination.getDistance() == Double.MAX_VALUE ? -9999d : destination.getDistance();\n }",
"public int[] shortestReach(int startId) {\n System.out.println(\"Graph with startId: \"+startId);\n for(int i=0 ; i<size ; i++){\n for(int j=0 ; j<size ; j++){\n System.out.print(graph[i][j]);\n }\n System.out.println(\"\");\n }\n\n int[] dist = new int[size];\n boolean[] srg = new boolean[size];\n\n //intialize dist and srg\n for(int i=0 ; i<size ; i++){\n dist[i] = Integer.MAX_VALUE;\n srg[i] = false;\n }\n\n //Start node\n dist[startId] = 0;\n\n for(int i=0 ; i<size ; i++){\n int u = minDist(dist, srg);\n\n srg[u] = true;\n\n for( int v=0; v<size ; v++){\n if(!srg[v] && graph[u][v]!=0 && dist[u]!=Integer.MAX_VALUE && dist[u] + graph[u][v] < dist[v]){\n dist[v] = dist[u] + graph[u][v];\n }\n }\n }\n\n int[] result = new int[size-1];\n int indx = 0;\n for(int i=0 ; i<size ; i++){\n if(i != startId){\n if(dist[i] == Integer.MAX_VALUE)\n result[indx] = -1;\n else{\n result[indx] = dist[i];\n }\n indx++;\n }\n\n }\n\n return result;\n }",
"private List<routerNode> getPathVertexList(routerNode beginNode, routerNode endNode) {\r\n\t\tTransformer<routerLink, Integer> wtTransformer; // transformer for getting edge weight\r\n\t\twtTransformer = new Transformer<routerLink, Integer>() {\r\n public Integer transform(routerLink link) {\r\n return link.getWeight();\r\n \t}\r\n };\t\t\r\n\r\n\t\t\r\n\t\tList<routerNode> vlist;\r\n\t\tDijkstraShortestPath<routerNode, routerLink> DSPath = \r\n\t \t new DijkstraShortestPath<routerNode, routerLink>(gGraph, wtTransformer);\r\n \t// get the shortest path in the form of edge list \r\n List<routerLink> elist = DSPath.getPath(beginNode, endNode);\r\n\t\t\r\n \t\t// get the node list form the shortest path\r\n\t Iterator<routerLink> ebIter = elist.iterator();\r\n\t vlist = new ArrayList<routerNode>(elist.size() + 1);\r\n \tvlist.add(0, beginNode);\r\n\t for(int i=0; i<elist.size(); i++){\r\n\t\t routerLink aLink = ebIter.next();\r\n\t \t \t// get the nodes corresponding to the edge\r\n \t\tPair<routerNode> endpoints = gGraph.getEndpoints(aLink);\r\n\t routerNode V1 = endpoints.getFirst();\r\n\t routerNode V2 = endpoints.getSecond();\r\n\t \tif(vlist.get(i) == V1)\r\n\t \t vlist.add(i+1, V2);\r\n\t else\r\n\t \tvlist.add(i+1, V1);\r\n\t }\r\n\t return vlist;\r\n\t}",
"protected void startBuilding(IVertex<String> source){\n\n for(int i =0 ; i < Constants.MAX_THREADS; i++){\n shortestThread[i] = new ShortestPathFinderThread(this.weightedGraph, source,\n this.settledNodes, this.unSettledNodes,\n this.predecessors, this.distance);\n shortestThread[i].start();\n }\n }",
"void dijkstra(int graph[][], int src) {\n int dist[] = new int[V]; // The output array. dist[i] will hold\n // the shortest distance from src to i\n\n // sptSet[i] will true if vertex i is included in shortest\n Boolean sptSet[] = new Boolean[V];\n\n for (int i = 0; i < V; i++) {\n dist[i] = Integer.MAX_VALUE;\n sptSet[i] = false;\n }\n\n dist[src] = 0;\n\n // Find shortest path for all vertices\n for (int count = 0; count < V-1; count++) {\n\n int u = minDistance(dist, sptSet);\n\n // Mark the picked vertex as processed\n sptSet[u] = true;\n\n // Update dist value of the adjacent vertices of the\n // picked vertex.\n for (int v = 0; v < V; v++)\n\n\n if (!sptSet[v] && graph[u][v]!=0 &&\n dist[u] != Integer.MAX_VALUE &&\n dist[u]+graph[u][v] < dist[v])\n dist[v] = dist[u] + graph[u][v];\n }\n\n printSolution(dist, V);\n }",
"public List<node_info> shortestPath(int src, int dest);",
"public static <G extends BaseWeightedGraph<V,E,W>,V,E extends WeightedEdge<V,W>, W extends Number & Comparable<W>> List<E> findShortestPathInt(G graph, V source, V sink){\r\n\t\t// check graph contains source and sink\r\n\t\tSet<V> vertecies = graph.getVertices();\r\n\t\tif( !(vertecies.contains(source) && vertecies.contains(sink)) ){\r\n\t\t\tthrow new IllegalArgumentException(\"BaseGraph must contain both source and sink\");\r\n\t\t}\r\n\t\t\r\n\t\tPriorityQueue<WeightedPathChain<V,E,W,Integer>> pq = new PriorityQueue<WeightedPathChain<V,E,W,Integer>>(); \r\n\t\tHashSet<V> checked = new HashSet<V>();\r\n\t\tHashMap<V,WeightedPathChain<V,E,W,Integer>> map = new HashMap<V,WeightedPathChain<V,E,W,Integer>>();\r\n\t\taddOrUpdate(map,pq,source,Integer.valueOf(0));\r\n\t\twhile(!pq.isEmpty()&&!sink.equals(pq.peek().vertex)){\r\n\t\t\tWeightedPathChain<V,E,W,Integer> current = pq.poll(); // poll lowest level vertex\r\n\t\t\tchecked.add(current.vertex); // add vertex to checked set\r\n\t\t\tfor (E edge :graph.getOutgoingEdges(current.vertex)){\t// for each outgoing edge \r\n\t\t\t\tif(!checked.contains(edge.getOpposingVertex(current.vertex))){\t\t// if opposing vertex has not been checked \r\n\t\t\t\t\taddOrUpdate(map,\r\n\t\t\t\t\t\t\t\tpq,\r\n\t\t\t\t\t\t\t\tedge.getOpposingVertex(current.vertex),\r\n\t\t\t\t\t\t\t\tInteger.valueOf(map.get(current.vertex).val+edge.getWeight().intValue() ) ,\r\n\t\t\t\t\t\t\t\tedge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<V> path = new ArrayList<V>(); // vertex path \r\n\t\tArrayList<E> edgePath = new ArrayList<E>(); // edge path\r\n\t\tboolean run = true; \r\n\t\tif(!pq.isEmpty()&&pq.peek().vertex.equals(sink)) { // \r\n\t\t\tWeightedPathChain<V,E,W,Integer> vv = pq.poll();\r\n\t\t\tpath.add(vv.vertex);\r\n\t\t\tedgePath.add(vv.edge);\r\n\t\t\twhile(run) {\r\n\t\t\t\tvv = map.get(vv.edge.getOpposingVertex(vv.vertex));\r\n\t\t\t\tif(vv.vertex.equals(source)) {\r\n\t\t\t\t\trun=false;\r\n\t\t\t\t\tpath.add(vv.vertex);\r\n\t\t\t\t}\r\n\t\t\t\telse {\t\r\n\t\t\t\t\tedgePath.add(vv.edge);\r\n\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return path;\r\n\t\t\r\n\t\tCollections.reverse(edgePath);\r\n\t\treturn edgePath;\r\n\t}",
"private void calculate() {\n\t\tList<Edge> path = new ArrayList<>();\n\t\tPriorityQueue<Vert> qv = new PriorityQueue<>();\n\t\tverts[s].dist = 0;\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tif (e.w==0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist < L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t} else if (verts[t].dist == L) {\n\t\t\tok = true;\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tif (edges[i].w == 0) {\n\t\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// replace 0 with 1, adding to za list\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (edges[i].w == 0) {\n\t\t\t\tza[i] = true;\n\t\t\t\tedges[i].w = 1;\n\t\t\t} else {\n\t\t\t\tza[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// looking for shortest path from s to t with 0\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tif (i != s) {\n\t\t\t\tverts[i].dist = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tqv.clear();\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist > L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t}\n\t\tVert v = verts[t];\n\t\twhile (v.dist > 0) {\n\t\t\tlong minDist = MAX_DIST;\n\t\t\tVert vMin = null;\n\t\t\tEdge eMin = null;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(v.idx)];\n\t\t\t\tif (vo.dist+e.w < minDist) {\n\t\t\t\t\tvMin = vo;\n\t\t\t\t\teMin = e;\n\t\t\t\t\tminDist = vMin.dist+e.w;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tv = vMin;\t\n\t\t\tpath.add(eMin);\n\t\t}\n\t\tCollections.reverse(path);\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (za[i]) {\n\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tlong totLen=0;\n\t\tboolean wFixed = false;\n\t\tfor (Edge e : path) {\n\t\t\ttotLen += (za[e.idx] ? 1 : e.w);\n\t\t}\n\t\tfor (Edge e : path) {\n\t\t\tif (za[e.idx]) {\n\t\t\t\tif (!wFixed) {\n\t\t\t\t\te.w = L - totLen + 1;\n\t\t\t\t\twFixed = true;\n\t\t\t\t} else {\n\t\t\t\t\te.w = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tok = true;\n\t}",
"private static ArrayList<Connection> pathFindDijkstra(Graph graph, int start, int goal) {\n\t\tNodeRecord startRecord = new NodeRecord();\r\n\t\tstartRecord.setNode(start);\r\n\t\tstartRecord.setConnection(null);\r\n\t\tstartRecord.setCostSoFar(0);\r\n\t\tstartRecord.setCategory(OPEN);\r\n\t\t\r\n\t\tArrayList<NodeRecord> open = new ArrayList<NodeRecord>();\r\n\t\tArrayList<NodeRecord> close = new ArrayList<NodeRecord>();\r\n\t\topen.add(startRecord);\r\n\t\tNodeRecord current = null;\r\n\t\tdouble endNodeCost = 0;\r\n\t\twhile(open.size() > 0){\r\n\t\t\tcurrent = getSmallestCSFElementFromList(open);\r\n\t\t\tif(current.getNode() == goal){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tGraphNode node = graph.getNodeById(current.getNode());\r\n\t\t\tArrayList<Connection> connections = node.getConnection();\r\n\t\t\tfor( Connection connection :connections){\r\n\t\t\t\t// get the cost estimate for end node\r\n\t\t\t\tint endNode = connection.getToNode();\r\n\t\t\t\tendNodeCost = current.getCostSoFar() + connection.getCost();\r\n\t\t\t\tNodeRecord endNodeRecord = new NodeRecord();\r\n\t\t\t\t// if node is closed skip it\r\n\t\t\t\tif(listContains(close, endNode))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t// or if the node is in open list\r\n\t\t\t\telse if (listContains(open,endNode)){\r\n\t\t\t\t\tendNodeRecord = findInList(open, endNode);\r\n\t\t\t\t\t// print\r\n\t\t\t\t\t// if we didn't get shorter route then skip\r\n\t\t\t\t\tif(endNodeRecord.getCostSoFar() <= endNodeCost) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// else node is not visited yet\r\n\t\t\t\telse {\r\n\t\t\t\t\tendNodeRecord = new NodeRecord();\r\n\t\t\t\t\tendNodeRecord.setNode(endNode);\r\n\t\t\t\t}\r\n\t\t\t\t//update the node\r\n\t\t\t\tendNodeRecord.setCostSoFar(endNodeCost);\r\n\t\t\t\tendNodeRecord.setConnection(connection);\r\n\t\t\t\t// add it to open list\r\n\t\t\t\tif(!listContains(open, endNode)){\r\n\t\t\t\t\topen.add(endNodeRecord);\r\n\t\t\t\t}\r\n\t\t\t}// end of for loop for connection\r\n\t\t\topen.remove(current);\r\n\t\t\tclose.add(current);\r\n\t\t}// end of while loop for open list\r\n\t\tif(current.getNode() != goal)\r\n\t\t\treturn null;\r\n\t\telse { //get the path\r\n\t\t\tArrayList<Connection> path = new ArrayList<>();\r\n\t\t\twhile(current.getNode() != start){\r\n\t\t\t\tpath.add(current.getConnection());\r\n\t\t\t\tint newNode = current.getConnection().getFromNode();\r\n\t\t\t\tcurrent = findInList(close, newNode);\r\n\t\t\t}\r\n\t\t\tCollections.reverse(path);\r\n\t\t\treturn path;\r\n\t\t}\r\n\t}",
"@Nullable\n public EdgePath<A> findShortestEdgePath(DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n\n if (graph instanceof IntDirectedGraph) {\n @SuppressWarnings(\"unchecked\")\n AttributedIntDirectedGraph<V,A> intGraph = (AttributedIntDirectedGraph<V,A>) graph;\n int startIndex = -1, goalIndex = -1;\n {int i=0;\n for (V v:graph.getVertices()) {\n if (v == start) {\n startIndex = i;\n if (goalIndex != -1) {\n break;\n }\n }\n if (v == goal) {\n goalIndex = i;\n if (startIndex != -1) {\n break;\n }\n }\n i++;\n }}\n return findIntShortestEdgePath(intGraph, startIndex, goalIndex, costf);\n } else {\n return doFindShortestEdgePath(graph, start, goal, costf);\n }\n }",
"public static void calculateMinimumDistance(Node evaluationNode, Integer edgeWeigh, Node sourceNode) {\n Integer sourceDistance = sourceNode.distance;\n if (sourceDistance + edgeWeigh < evaluationNode.distance) {\n evaluationNode.distance = sourceDistance + edgeWeigh;\n LinkedList<Node> shortestPath = new LinkedList<>(sourceNode.shortestPath);\n shortestPath.add(sourceNode);\n evaluationNode.shortestPath = shortestPath;\n }\n }",
"void prim(AdjacencyLists g, int start)\r\n\t{\r\n\t\t// whether the node is in the tree or not.\r\n\t\tboolean[] intree = new boolean[g.nvertices];\r\n\t\t\r\n\t\t// the cost of adding the edge to the tree\r\n\t\tint[] distance = new int[g.nvertices];\r\n\t\t\r\n\t\tint[] parent = new int[g.nvertices]; \r\n\t\t\r\n\t\tfor (int i = 0; i < g.nvertices; ++i) {\r\n\t\t\tintree[i] = false;\r\n\t\t\tdistance[i] = Integer.MAX_VALUE;\r\n\t\t\tparent[i] = -1;\r\n\t\t}\r\n\t\t\r\n\t\tdistance[start] = 0;\r\n\t\t\r\n\t\t// current vertex to process\r\n\t\tint v = start;\r\n\t\t// candidate next vertex\r\n\t\tint w; \r\n\t\t// edge weight\r\n\t\tint weight;\r\n\t\t// best current distance from start\r\n\t\tint dist;\r\n\t\t\r\n\t\twhile (!intree[v]) {\r\n\t\t\tintree[v] = true;\r\n\t\t\t\r\n\t\t\tEdgeNode p = g.edges[v];\r\n\t\t\t\r\n\t\t\t// for each node w that is not in the tree\r\n\t\t\t// identify the lowest cost\r\n\t\t\twhile (p != null) {\r\n\t\t\t\tw = p.y;\r\n\t\t\t\tweight = p.weight;\r\n\t\t\t\tif (!intree[w] && distance[w] > weight) {\r\n\t\t\t\t\t// pick the edge that is lowest cost from v.\r\n\t\t\t\t\tdistance[w] = weight;\r\n\t\t\t\t\tparent[w] = v;\r\n\t\t\t\t}\r\n\t\t\t\tp = p.next;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// find the node that is not in the list, \r\n\t\t\t// and has the smallest distance value.\r\n\t\t\tv = 0;\r\n\t\t\tdist = Integer.MAX_VALUE;\r\n\t\t\tfor (int i = 0; i < g.nvertices; ++i) {\r\n\t\t\t\tif (!intree[i] && dist > distance[i]) {\r\n\t\t\t\t\tdist = distance[i];\r\n\t\t\t\t\tv = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public List<node_info> shortestPath(int src, int dest) {\n int counter=0;//counter for index of listPath\n List<node_info> listPath=new ArrayList<node_info>();//The reverse list that is returned\n List<node_info> listResult=new ArrayList<node_info>();//the returned list\n if(!DijkstraHelp(src,dest)) return null;//if there is no path from src to dest\n if(src==dest) {\n listPath.add(this.ga.getNode(src));\n return listPath;\n }\n //the other case:\n node_info d=this.ga.getNode(dest);\n listPath.add(counter,d);//insert the dest in order to go from destination to source\n //counter++;\n weighted_graph gCopy=copy();\n Iterator<node_info> it=gCopy.getV().iterator();//run on the whole graph\n while(it.hasNext()){\n if(listPath.get(counter).getKey()==src) break;//if we finished\n if(gCopy.getV(listPath.get(counter).getKey()).contains(it.next())) {//remove the nodes that we were already checked if\n //they need to be insert to listPath\n continue;\n }\n Iterator<node_info> currentIt=gCopy.getV(listPath.get(counter).getKey()).iterator();//iterator on the ni-list of the\n //last node were insert to the listPath\n if(currentIt!=null) {\n node_info min=null;\n while (currentIt.hasNext()){\n node_info currentLoop=currentIt.next();\n if(currentLoop.getTag()+gCopy.getEdge(listPath.get(counter).getKey(),currentLoop.getKey())==\n listPath.get(counter).getTag()){//check if this is the node that appropriate to the shortest path\n min=currentLoop;\n }\n }\n listPath.add(min);//insert to listPath\n counter++;\n }\n }\n for(int i=listPath.size()-1;i>=0;i--){\n listResult.add(listPath.size()-i-1,listPath.get(i));//reverse the list\n }\n return listResult;\n }",
"public static void djikstra(int[][] graph, int src) {\n\t\t/* output array */\n\t\tint[] dist = new int[graph.length];\n\t\tboolean[] visited = new boolean[graph.length];\n\n\t\tfor (int i = 0; i < graph.length; i++) {\n\t\t\tdist[i] = Integer.MAX_VALUE;\n\t\t\tvisited[i] = false;\n\t\t}\n\n\t\tdist[src] = 0;\n\n\t\tfor (int i = 0; i < graph.length - 1; i++) {\n\n\t\t\t// Pick the minimum distance vertex from the set of vertices not\n\t\t\t// yet processed. u is always equal to src in first iteration.\n\t\t\tint u = findMinDistanceVertex(dist, visited);\n\t\t\t// Mark the picked vertex as processed\n\t\t\tvisited[u] = true;\n\t\t\t\n\t\t\tfor(int j = 0; j < graph.length; j++) {\n\t\t\t\t\n\t\t\t\t// Update dist[v] only if is not in sptSet, there is an edge from \n\t\t // u to v, and total weight of path from src to v through u is \n\t\t // smaller than current value of dist[v]\n\t\t\t\tif(!visited[j] && graph[u][j] != 0\n\t\t\t\t\t\t&& dist[u] != Integer.MAX_VALUE\n\t\t\t\t\t\t&& dist[u] + graph[u][j] < dist[j]) {\n\t\t\t\t\tdist[j] = dist[u] + graph[u][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tprintSolution(dist, graph.length);\n\t}",
"@Override\r\n\tpublic void getMinimumSpanningTree(GraphStructure graph) {\r\n\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\tdistanceArray[0]=0;\r\n\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\tList<Edge> list;\r\n\t\twhile(spanningTreeSet.size()!=numberOfVertices) {\r\n\t\t\tfor (int vertex=0; vertex<numberOfVertices;vertex++) {\r\n\t\t\t\tif(! spanningTreeSet.contains(vertex)) {\r\n\t\t\t\t\tspanningTreeSet.add(vertex);\r\n\t\t\t\t\tlist = adjacencyList[vertex];\r\n\t\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[vertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"\\nvertex\\tdistance from source\");\r\n\t\tfor (int i=0;i<numberOfVertices;i++) {\r\n\t\t\tSystem.out.println(i+\"\\t\"+distanceArray[i]);\r\n\t\t}\r\n\t}",
"void dijkstra(int[][] graph){\r\n int dist[] = new int[rideCount];\r\n Boolean sptSet[] = new Boolean[rideCount];\r\n\r\n for(int i = 0; i< rideCount; i++){\r\n dist[i] = Integer.MAX_VALUE;\r\n sptSet[i] = false;\r\n }\r\n\r\n dist[0] = 0;\r\n\r\n for(int count = 0; count< rideCount -1; count++){\r\n int u = minWeight(dist, sptSet);\r\n sptSet[u] = true;\r\n for(int v = 0; v< rideCount; v++){\r\n if (!sptSet[v] && graph[u][v] != 0 && dist[u] + graph[u][v] < dist[v]){\r\n dist[v] = dist[u] + graph[u][v];\r\n }\r\n }\r\n }\r\n printSolution(dist);\r\n }",
"public DijkstraSP(EdgeWeightedDigraph G, int s){\n edgeTo = new DirectedEdge[G.V()];\n distTo = new double[G.V()];\n pq = new IndexMinPQ<>(G.V());\n\n for (int v=0; v<G.V(); v++)\n distTo[v] = Double.POSITIVE_INFINITY;\n distTo[s] = 0;\n\n pq.insert(s, 0.0);\n // relax vertices in order of distance from s\n while (!pq.isEmpty())\n relax(G, pq.delMin());\n }",
"@Override\r\n\tpublic void Dijkstra(E src) {\r\n\t\tPriorityQueue<Vertex<E>> pq = new PriorityQueue<Vertex<E>>();\r\n\t\tif(containsVertex(src)) {\r\n\t\t\tlastSrc = vertices.get(src);\r\n\t\t\tvertices.forEach((E t, Vertex<E> u) -> {\r\n\t\t\t\tu.setDistance(Integer.MAX_VALUE);\r\n\t\t\t\tu.setPredecessor(null);\r\n\t\t\t\tpq.offer(u);\r\n\t\t\t});\r\n\t\t\tpq.remove(lastSrc);\r\n\t\t\tlastSrc.setDistance(0);\r\n\t\t\tpq.offer(lastSrc);\r\n\t\t\twhile(!pq.isEmpty()) {\r\n\t\t\t\tVertex<E> u = pq.poll();\r\n\t\t\t\tfor(Edge<E> ale : adjacencyLists.get(u.getElement())) {\r\n\t\t\t\t\tVertex<E> s = vertices.get(ale.getSrc());\r\n\t\t\t\t\tVertex<E> d = vertices.get(ale.getDst());\r\n\t\t\t\t\tif(d.getDistance() > (long)s.getDistance() + (long)ale.getWeight()) {\r\n\t\t\t\t\t\tpq.remove(ale.getDst());\r\n\t\t\t\t\t\td.setDistance(s.getDistance() + ale.getWeight());\r\n\t\t\t\t\t\td.setPredecessor(s);\r\n\t\t\t\t\t\tpq.offer(d);\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}",
"@Override\r\n public List<T> breadthFirstPath(T start, T end) {\r\n\r\n Vertex<T> startV = vertices.get(start);\r\n Vertex<T> endV = vertices.get(end);\r\n\r\n LinkedList<Vertex<T>> vertexList = new LinkedList<>();\r\n //Set<Vertex<T>> visited = new HashSet<>();\r\n ArrayList<Vertex<T>> visited = new ArrayList<>();\r\n\r\n LinkedList<Vertex<T>> pred = new LinkedList<>();\r\n int currIndex = 0;\r\n\r\n pred.add(null);\r\n\r\n vertexList.add(startV);\r\n visited.add(startV);\r\n\r\n LinkedList<T> path = new LinkedList<>();\r\n\r\n if (breadthFirstSearch(start, end) == false) {\r\n path = new LinkedList<>();\r\n return path;\r\n } else {\r\n while (vertexList.size() > 0) {\r\n Vertex<T> next = vertexList.poll();\r\n if(next == null){\r\n continue;\r\n }\r\n if (next == endV) {\r\n path.add(endV.getValue());\r\n break;\r\n }\r\n for (Vertex<T> neighbor : next.getNeighbors()) {\r\n if (!visited.contains(neighbor)) {\r\n pred.add(next);\r\n visited.add(neighbor);\r\n vertexList.add(neighbor);\r\n }\r\n }\r\n currIndex++;\r\n //path.add(next.getValue());\r\n\r\n }\r\n while (currIndex != 0) {\r\n Vertex<T> parent = pred.get(currIndex);\r\n path.add(parent.getValue());\r\n currIndex = visited.indexOf(parent);\r\n }\r\n }\r\n Collections.reverse(path);\r\n return path;\r\n }",
"public Path shortestPath(Vertex a, Vertex b) {\n // If a or b aren't present in the set of vertices throw an exception\n if (!myGraph.containsKey(b) || !myGraph.containsKey(a)) {\n throw new IllegalArgumentException(\"One of the vertices isn't valid\");\n }\n /* Create a map of Vertices to VertexInfos. Fill it with VertexInfos for all\n vertices that each have no previous vertex and and a cost of INFINITY */\n Map<Vertex, VertexInfo> vertInfos = new HashMap<Vertex, VertexInfo>();\n for (Vertex v : vertices()) {\n vertInfos.put(v, new VertexInfo(v, null, INFINITY));\n }\n /* Create a PriorityQueue for VertexInfos */\n PriorityQueue<VertexInfo> viQueue = new PriorityQueue<VertexInfo>();\n /* Create a VertexInfo for the start Vertex 'a' with a cost of 0. This uses a copy of Vertex a&b for immutability */\n Vertex copyA = new Vertex(a.getLabel());\n Vertex copyB = new Vertex(b.getLabel());\n\n VertexInfo vi_a = new VertexInfo(copyA, null, 0);\n /* Add VerxtexInfo for a to PQ and map it to it's VertexInfo */\n viQueue.add(vi_a);\n vertInfos.put(a, vi_a);\n while(!viQueue.isEmpty()) {\n /* Remove the VertexInfo with lowest cost */\n Vertex curr = viQueue.poll().getVertex();\n /* Check all adjacent Vertices of curr Vertex */\n for (Vertex v : adjacentVertices(curr)) {\n /* Calculate cost to get to v through curr */\n int cost = vertInfos.get(curr).getCost() + edgeCost(curr, v);\n /* If cost through curr is lower than previous */\n if (cost < vertInfos.get(v).getCost()) {\n /* Remove v's VertexInfo from PQ */\n viQueue.remove(vertInfos.get(v));\n /* Overwrite previous value of v in map\n Add updated VerexInfo to PQ */\n VertexInfo vi = new VertexInfo(v, curr, cost);\n vertInfos.put(v,vi);\n viQueue.add(vi);\n }\n }\n }\n /* Create ArrayList for path */\n List<Vertex> path = new ArrayList<Vertex>();\n \n /* Add each vertex and it's previous vertex to path until a null vertex is reached */\n for (Vertex vert = copyB; vert != null; vert = vertInfos.get(vert).getPrev()) {\n path.add(vert);\n }\n\n /* Reverse order of path */ \n Collections.reverse(path);\n /* Create new Path object with corresponding parameters */\n if(path.contains(copyA)){\n Path pathToB = new Path(path, vertInfos.get(copyB).getCost());\n return pathToB;\n } else {\n return null;\n }\n }",
"double estimatedDistanceToGoal(Vertex s, Vertex goal);",
"public static void computePaths(Point source) {\n\n\t\tsource.setMinimumDistance(0.0);\n\t\tPriorityQueue<Point> pointQueue = new PriorityQueue<Point>();\n\t\tpointQueue.add(source);\n\t\twhile (!pointQueue.isEmpty()) {\n\t\t\tPoint u = pointQueue.poll();\n\t\t\tif (u.getAdjacencies() != null) {\n\t\t\t\tfor (Edge e : u.getAdjacencies()) {\n\n\t\t\t\t\tPoint target = e.getTarget();\n\t\t\t\t\tdouble weight = e.getWeight();\n\t\t\t\t\tdouble distanceThroughP = weight + u.getMinimumDistance();\n\n\t\t\t\t\tif (distanceThroughP < target.getMinimumDistance()) {\n\t\t\t\t\t\tpointQueue.remove(target);\n\n\t\t\t\t\t\ttarget.setMinimumDistance(distanceThroughP);\n\t\t\t\t\t\ttarget.setPrevious(u);\n\t\t\t\t\t\tpointQueue.add(target);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public List<Vertex> shortestPath(Vertex start, Vertex end) {\r\n\t\tMap<Vertex, Vertex> backRefs = new HashMap<Vertex, Vertex>();\r\n\r\n\t\t// Create a queue for BFS\r\n\t\tQueue<Vertex> queue = new LinkedList<Vertex>();\r\n\r\n\t\t// Mark the current node as visited and enqueue it. Use backRef as\r\n\t\t// visited set\r\n\t\tqueue.offer(start);\r\n\t\tbackRefs.put(start, null);\r\n\r\n\t\tVertex currentNode;\r\n\t\tSet<Vertex> neighbors;\r\n\r\n\t\twhile (queue.size() != 0) { // or !queue.isEmpty()\r\n\t\t\t// Dequeue a vertex from queue and print it\r\n\t\t\tcurrentNode = queue.poll();\r\n\r\n\t\t\tif (currentNode.equals(end)) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\t// Get all adjacent vertices of the dequeued vertex s\r\n\t\t\t// If a adjacent has not been visited, then mark it\r\n\t\t\t// visited and enqueue it\r\n\t\t\tneighbors = currentNode.getNeighbors();\r\n\r\n\t\t\tfor (Vertex n : neighbors) {\r\n\t\t\t\tif (!backRefs.containsKey(n)) {\r\n\t\t\t\t\tqueue.offer(n);\r\n\t\t\t\t\tbackRefs.put(n, currentNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!backRefs.containsKey(end))\r\n\t\t\treturn null;\r\n\r\n\t\tList<Vertex> path = new ArrayList<Vertex>();\r\n\t\tcurrentNode = end;\r\n\r\n\t\twhile (currentNode != null) {\r\n\t\t\tpath.add(currentNode);\r\n\t\t\tcurrentNode = backRefs.get(currentNode);\r\n\t\t}\r\n\r\n\t\tCollections.reverse(path);\r\n\r\n\t\treturn path;\r\n\t}",
"@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tList<node_data> ans = new ArrayList<>();\n\t\tthis.shortestPathDist(src, dest);\n\t\tif(this.GA.getNode(src).getWeight() == Integer.MAX_VALUE || this.GA.getNode(dest).getWeight() == Integer.MAX_VALUE){\n\t\t\tSystem.out.print(\"There is not a path between the nodes.\");\n\t\t\treturn null;\n\t\t}\n\t\tgraph copied = this.copy();\n\t\ttransPose(copied);\n\t\tnode_data first = copied.getNode(dest);\n\t\tans.add(first);\n\t\twhile (first.getKey() != src) {\n\t\t\tCollection<edge_data> temp = copied.getE(first.getKey());\n\t\t\tdouble check= first.getWeight();\n\t\t\tif(temp!=null) {\n\t\t\t\tfor (edge_data edge : temp) {\n\t\t\t\t\tif (copied.getNode(edge.getDest()).getWeight() + edge.getWeight() == check) {\n\t\t\t\t\t\tfirst = copied.getNode(edge.getDest());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tans.add(first);\n\t\t}\n\t\tList<node_data> ans2 = new ArrayList<>();\n\t\tfor (int i = ans.size()-1;i>=0;i--){\n\t\t\tans2.add(ans.get(i));\n\t\t}\n\t\treturn ans2;\n\t}",
"public static <G extends BaseWeightedGraph<V,E,W>,V,E extends WeightedEdge<V,W>, W extends Number & Comparable<W>> List<E> findShortestPathDouble(G graph, V source, V sink){\r\n\t\t// check graph contains source and sink\r\n\t\tSet<V> vertecies = graph.getVertices();\r\n\t\tif( !(vertecies.contains(source) && vertecies.contains(sink)) ){\r\n\t\t\tthrow new IllegalArgumentException(\"BaseGraph must contain both source and sink\");\r\n\t\t}\r\n\t\t\r\n\t\tPriorityQueue<WeightedPathChain<V,E,W,Double>> pq = new PriorityQueue<WeightedPathChain<V,E,W,Double>>(); \r\n\t\tHashSet<V> checked = new HashSet<V>();\r\n\t\tHashMap<V,WeightedPathChain<V,E,W,Double>> map = new HashMap<V,WeightedPathChain<V,E,W,Double>>();\r\n\t\taddOrUpdate(map,pq,source,Double.valueOf(0));\r\n\t\twhile(!pq.isEmpty()&&!sink.equals(pq.peek().vertex)){\r\n\t\t\tWeightedPathChain<V,E,W,Double> current = pq.poll(); // poll lowest level vertex\r\n\t\t\tchecked.add(current.vertex); // add vertex to checked set\r\n\t\t\tfor (E edge :graph.getOutgoingEdges(current.vertex)){\t// for each outgoing edge \r\n\t\t\t\tif(!checked.contains(edge.getOpposingVertex(current.vertex))){\t\t// if opposing vertex has not been checked \r\n\t\t\t\t\taddOrUpdate(map,\r\n\t\t\t\t\t\t\t\tpq,\r\n\t\t\t\t\t\t\t\tedge.getOpposingVertex(current.vertex),\r\n\t\t\t\t\t\t\t\tDouble.valueOf(map.get(current.vertex).val+edge.getWeight().doubleValue() ) ,\r\n\t\t\t\t\t\t\t\tedge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<V> path = new ArrayList<V>(); // vertex path \r\n\t\tArrayList<E> edgePath = new ArrayList<E>(); // edge path\r\n\t\tboolean run = true; \r\n\t\tif(!pq.isEmpty()&&pq.peek().vertex.equals(sink)) { // \r\n\t\t\tWeightedPathChain<V,E,W,Double> vv = pq.poll();\r\n\t\t\tpath.add(vv.vertex);\r\n\t\t\tedgePath.add(vv.edge);\r\n\t\t\twhile(run) {\r\n\t\t\t\tvv = map.get(vv.edge.getOpposingVertex(vv.vertex));\r\n\t\t\t\tif(vv.vertex.equals(source)) {\r\n\t\t\t\t\trun=false;\r\n\t\t\t\t\tpath.add(vv.vertex);\r\n\t\t\t\t}\r\n\t\t\t\telse {\t\r\n\t\t\t\t\tedgePath.add(vv.edge);\r\n\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return path;\r\n\t\t\r\n\t\tCollections.reverse(edgePath);\r\n\t\treturn edgePath;\r\n\t}",
"public List<Long> getPath(Long start, Long finish){\n \n \n List<Long> res = new ArrayList<>();\n // auxiliary list\n List<DeixtraObj> serving = new ArrayList<>();\n// nearest vertexes map \n Map<Long,DeixtraObj> optimMap = new HashMap<>();\n// thread save reading \n synchronized (vertexes){ \n // preparation\n for (Map.Entry<Long, Vertex> entry : vertexes.entrySet()) {\n Vertex userVertex = entry.getValue();\n // If it`s start vertex weight = 0 and the nereast vertex is itself \n if(userVertex.getID().equals(start)){\n serving.add(new DeixtraObj(start, 0.0, start));\n }else{\n // For other vertex weight = infinity and the nereast vertex is unknown \n serving.add(new DeixtraObj(userVertex.getID(), Double.MAX_VALUE, null));\n }\n\n } \n // why auxiliary is not empty \n while(serving.size()>0 ){\n // sort auxiliary by weight \n Collections.sort(serving);\n\n \n // remove shortes fom auxiliary and put in to answer \n DeixtraObj minObj = serving.remove(0);\n optimMap.put(minObj.getID(), minObj);\n\n Vertex minVertex = vertexes.get(minObj.getID());\n\n // get all edges from nearest \n for (Map.Entry<Long, Edge> entry : minVertex.allEdges().entrySet()) {\n Long dest = entry.getKey();\n Double wieght = entry.getValue().getWeight();\n // by all remain vertexes \n for(DeixtraObj dx : serving){\n if(dx.getID().equals(dest)){\n // if in checking vertex weight more then nearest vertex weight plus path to cheking \n // then change in checking weight and nearest\n if( (minObj.getWeight()+wieght) < dx.getWeight()){\n dx.setNearest(minVertex.getID());\n dx.setWeight((minObj.getWeight()+wieght));\n }\n }\n }\n }\n\n }\n }\n \n // create output list\n res.add(finish);\n Long point = finish;\n while(!point.equals(start)){\n \n point = ((DeixtraObj)optimMap.get(point)).getNearest();\n res.add(point);\n }\n \n Collections.reverse(res);\n \n \n return res;\n \n }",
"public static Graph dijkstra(Graph graph, Node source) {\n source.distance = 0;\n Set<Node> settledNodes = new HashSet<>();\n Set<Node> unsettledNodes = new HashSet<>();\n unsettledNodes.add(source);\n \n while (unsettledNodes.size() != 0) {\n Node currentNode = Graph.getLowestDistanceNode(unsettledNodes);\n unsettledNodes.remove(currentNode);\n for (Map.Entry<Node, Integer> adjacencyPair: \n currentNode.adjacentNodes.entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Integer edgeWeight = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n Graph.calculateMinimumDistance(adjacentNode, edgeWeight, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return graph;\n }",
"@Nullable\n public VertexPath<V> findAnyVertexPath(@Nonnull DirectedGraph<V, A> graph,\n V start, V goal) {\n Deque<V> vertices = new ArrayDeque<>();\n BackLinkWithArrow<V, A> current = breadthFirstSearch(graph, start, goal);\n if (current == null) {\n return null;\n }\n for (BackLinkWithArrow<V, A> i = current; i != null; i = i.parent) {\n vertices.addFirst(i.vertex);\n }\n return new VertexPath<>(vertices);\n }",
"public List<Node> computeDijkstraShortestPath(Node source, Node destination) {\n\n source.minDistance = 0.;\n PriorityQueue<Node> nodeQueue = new PriorityQueue<Node>();\n nodeQueue.add(source);\n\n int destinationGroup = destination._groupID;\n\n while (!nodeQueue.isEmpty()) {\n Node v = nodeQueue.poll();\n\n Log.i(\"bbb\", \"In dijsk node name \"+ v._waypointName);\n //Stop searching when reach the destination node\n\n\n if(destinationGroup!=0){\n\n if(v._groupID==destinationGroup){\n destination = navigationGraph.get(navigationGraph.size()-1).nodesInSubgraph.get(v._waypointID);\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n break;\n }\n\n }\n\n if (v._waypointID.equals(destination._waypointID))\n break;\n\n\n // Visit each edge that is adjacent to v\n for (Edge e : v._edges) {\n Node a = e.target;\n Log.i(\"bbb\", \"node a \"+a._waypointName);\n double weight = e.weight;\n double distanceThroughU = v.minDistance + weight;\n if (distanceThroughU < a.minDistance) {\n nodeQueue.remove(a);\n a.minDistance = distanceThroughU;\n a.previous = v;\n Log.i(\"bbb\", \"set previous\");\n nodeQueue.add(a);\n }\n }\n }\n\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n return getShortestPathToDestination(destination);\n }",
"private static void shortestPath(Map<Integer, DistanceInfo> distanceTable,\n int source, int destination)\n {\n // Backtrack using a stack, using the destination node\n Stack<Integer> stack = new Stack<>();\n stack.push(destination);\n\n // Backtrack by getting the previous node of every node and putting it on the stack.\n // Start at the destination.\n int previousVertex = distanceTable.get(destination).getLastVertex();\n while (previousVertex != -1 && previousVertex != source)\n {\n stack.push(previousVertex);\n previousVertex = distanceTable.get(previousVertex).getLastVertex();\n }\n\n if (previousVertex ==-1)\n {\n System.err.println(\"No path\");\n }\n else\n {\n System.err.println(\"Shortest path: \");\n while (! stack.isEmpty())\n {\n System.err.println(stack.pop());\n }\n }\n }",
"private PathCostFlow findCheapestPath(int start, int end, double max_flow) throws Exception {\n if (getNode(start) == null || getNode(end) == null\n || !getNode(start).isSource() || getNode(end).isSource()) {\n throw new IllegalArgumentException(\"start must be the index of a source and end must be the index of a sink\");\n }\n double amount = Math.min(Math.min(getNode(start).getResidualCapacity(),\n getNode(end).getResidualCapacity()), max_flow);\n\n boolean[] visited = new boolean[n];\n int[] parent = new int[n];\n for (int i = 0; i < n; i++) {\n parent[i] = -1;\n }\n double[] cost = new double[n];\n for (int i = 0; i < n; i++) {\n cost[i] = Integer.MAX_VALUE;\n }\n cost[start] = 0;\n\n PriorityQueue<IndexCostTuple> queue = new PriorityQueue<IndexCostTuple>();\n queue.add(new IndexCostTuple(start, 0));\n\n while (!queue.isEmpty()) {\n IndexCostTuple current = queue.poll();\n\n // we found the target node\n if (current.getIndex() == end) {\n ArrayList<Integer> path = new ArrayList<Integer>();\n path.add(new Integer(end));\n while (path.get(path.size() - 1) != start) {\n path.add(parent[path.get(path.size() - 1)]);\n }\n Collections.reverse(path);\n if ((path.get(0) != start) || (path.get(path.size() - 1) != end)) {\n throw new Exception(\"I fucked up coding Dijkstra's\");\n }\n return new PathCostFlow(path, cost[end], amount);\n }\n\n // iterate through all possible neighbors of the current node\n for (int i = 0; i < n; i++) {\n SingleEdge e = matrix[current.getIndex()][i];\n if ((!visited[i]) && (e != null)\n && (current.getCost() + e.getCost(amount) < cost[i])) {\n cost[i] = current.getCost() + e.getCost(amount);\n parent[i] = current.getIndex();\n\n // update the entry for this node in the queue\n IndexCostTuple newCost = new IndexCostTuple(i, cost[i]);\n queue.remove(newCost);\n queue.add(newCost);\n }\n }\n visited[current.getIndex()] = true;\n }\n\n return null; //the target node was unreachable\n }",
"public List<Eventable> getShortestPath(StateVertex start, StateVertex end) {\n\t\treturn DijkstraShortestPath.findPathBetween(sfg, start, end);\n\t}",
"void dijkstra(Coordinate startName) {\n if (!graph.containsKey(startName)) {\n //test use print statement\n //System.out.printf(\"Graph doesn't contain start vertex \\\"%s\\\"\\n\", startName);\n return;\n }\n final Node source = graph.get(startName);\n NavigableSet<Node> queue = new TreeSet<>();\n\n // set-up vertices\n for (Node node : graph.values()) {\n node.previous = node == source ? source : null;\n node.dist = node == source ? 0 : Integer.MAX_VALUE;\n queue.add(node);\n }\n dijkstra(queue);\n }",
"private static void disjkstraAlgorithm(Node sourceNode, GraphBuilder graph){\n PriorityQueue<Node> smallestDisQueue = new PriorityQueue<>(graph.nodeArr.size(), new Comparator<Node>() {\n @Override\n public int compare(Node first, Node sec) {\n if(first.distance == Integer.MAX_VALUE && sec.distance == Integer.MAX_VALUE){\n return 0;\n }\n else if(first.distance == Integer.MAX_VALUE && sec.distance != Integer.MAX_VALUE){\n return 1;\n } else if(first.distance != Integer.MAX_VALUE && sec.distance == Integer.MAX_VALUE){\n return -1;\n }\n else\n return (int) (first.distance - sec.distance);\n }\n });\n\n smallestDisQueue.add(sourceNode); //add the node to the queue\n\n // until all vertices are know get the vertex with smallest distance\n\n while(!smallestDisQueue.isEmpty()) {\n\n Node currNode = smallestDisQueue.poll();\n// System.out.println(\"Curr: \");\n// System.out.println(currNode);\n if(currNode.known)\n continue; //do nothing if the currNode is known\n\n currNode.known = true; // otherwise, set it to be known\n\n for(Edge connectedEdge : currNode.connectingEdges){\n Node nextNode = connectedEdge.head;\n if(!nextNode.known){ // Visit all neighbors that are unknown\n\n long weight = connectedEdge.weight;\n if(currNode.distance == Integer.MAX_VALUE){\n continue;\n }\n else if(nextNode.distance == Integer.MAX_VALUE && currNode.distance == Integer.MAX_VALUE) {\n continue;\n }\n\n else if(nextNode.distance> weight + currNode.distance){//Update their distance and path variable\n smallestDisQueue.remove(nextNode); //remove it from the queue\n nextNode.distance = weight + currNode.distance;\n\n smallestDisQueue.add(nextNode); //add it again to the queue\n nextNode.pathFromSouce = currNode;\n\n// System.out.println(\"Next: \");\n// System.out.println(nextNode);\n }\n }\n }\n// System.out.println(\"/////////////\");\n }\n }",
"public static int p413ComputeShortestPathNumber(Vertex start, Vertex end){\n\t Queue<Vertex> queue=new LinkedList<Vertex>();\n\t Map<Vertex, Status> statusMap=new HashMap<Vertex, Status>();\n\t Map<Vertex, Integer> levelMap=new HashMap<Vertex, Integer>();\n\t List<List<Vertex>> allLevelList=new LinkedList<List<Vertex>>();\n\t \n\t queue.offer(start);\n\t statusMap.put(start, Status.Queued);\n\t levelMap.put(start, 0);\n\t \n\t Vertex vertex;\n\t int lastLevel=-1;\n\t List<Vertex> levelList = null;\n\t\twhile ((vertex = queue.poll()) != null) {\n\t\t\tint currentLevel = levelMap.get(vertex);\n\n\t\t\tif (currentLevel != lastLevel) {\n\t\t\t\tlastLevel = currentLevel;\n\t\t\t\tlevelList = new LinkedList<Vertex>();\n\n\t\t\t\tallLevelList.add(levelList);\n\t\t\t}\n\n\t\t\tlevelList.add(vertex);\n\n\t\t\tif (vertex.equals(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tSet<Vertex> adjacentVertexes = vertex.getAdjacentVertexes();\n\t\t\tfor (Iterator iterator = adjacentVertexes.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex adjacent = (Vertex) iterator.next();\n\n\t\t\t\tif (statusMap.get(adjacent) == null) {\n\t\t\t\t\tqueue.offer(adjacent);\n\t\t\t\t\tstatusMap.put(adjacent, Status.Queued);\n\t\t\t\t\tlevelMap.put(adjacent, currentLevel + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t \n\t int max=Integer.MIN_VALUE;\n\t List<Vertex> targetList=new LinkedList<Vertex>();\n\t targetList.add(end);\n\t for(int index=lastLevel-1;index>0;index--){\n\t\t List<Vertex> lastLevelList = allLevelList.get(index);\n\t\t List<Vertex> tmpList=new LinkedList<Vertex>();\n\n\t\t int count=0;\n\t\t for (Iterator iterator = lastLevelList.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex lastLevelVertex = (Vertex) iterator.next();\n\t\t\t\tfor (Iterator iterator2 = targetList.iterator(); iterator2.hasNext();) {\n\t\t\t\t\tVertex vertex2 = (Vertex) iterator2.next();\n\t\t\t\t\tif(lastLevelVertex.getAdjacentVertexes().contains(vertex2)){\n\t\t\t\t\t count++;\n\t\t\t\t\t tmpList.add(lastLevelVertex);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t }\n\t\t \n\t\t targetList=tmpList;\n\t\t \n\t\t if(count>max){\n\t\t \tmax=count;\n\t\t }\n\t }\n\t \n\t return max;\n\t}",
"Iterable<Vertex> computePath(Vertex start, Vertex end) throws GraphException;",
"public static void exampleWeightedGraph() {\n\t\t\n\t\t// create unidrected topology\n\t\tTopology topology = new Topology();\n\t\t\n\t\t// Create edge with high weight and edge with low weight\n\t\tEdge edgeHighWeight = new Edge();\n\t\tedgeHighWeight.setWeight(1000);\n\t\t\n\t\tEdge edgeLowWeight = new Edge();\n\t\tedgeLowWeight.setWeight(1);\n\t\t\n\t\t// Assign edges to topology\n\t\ttopology.addEdge(\"1\", \"4\", edgeHighWeight);\n\t\ttopology.addEdge(\"2\", \"3\", edgeLowWeight);\n\t\ttopology.addEdge(\"1\", \"2\", edgeLowWeight);\n\t\ttopology.addEdge(\"4\", \"3\", edgeLowWeight);\n\t\t\n\t\t// convert to JGraphT\n\t\tWeightedGraph<String, DefaultWeightedEdge> graph = \n\t\t\t\tJGraphTConverter.getWeightedGraph(topology);\n\t\t\n\t\t// Find shortest paths\n\t\tString source = \"1\";\n\t\tString destination = \"3\";\n\t\tList<DefaultWeightedEdge> sp = \n\t\t\t\tDijkstraShortestPath.findPathBetween(graph, source, destination);\n\t\t\n\t\t// Print results\n\t\tSystem.out.println(\"Shortest path from \" + source + \" to \" + destination + \":\");\n\t\tfor (DefaultWeightedEdge e : sp) {\n\t\t\tSystem.out.println(graph.getEdgeSource(e) + \" -> \" + graph.getEdgeTarget(e));\n\t\t}\n\t}",
"public interface Dijkstra<V,E>\n{\n\t/**\n\t * Sets the graph to use in computation\n\t */\n\tpublic void setGraph(Graph<V,E> graph);\n\t\n\t/**\n\t * Sets the start vertex the algorithm will use in computation\n\t * @throws IllegalArgumentException if the start vertex does not exist in the graph\n\t * @throws IllegalStateException if no graph has been set\n\t */\n\tpublic void setStart(int startId) throws IllegalArgumentException, IllegalStateException;\n\t\n\t/**\n\t * Sets the weighing to be used in computing the cost of traversing an edge\n\t */\n\tpublic void setWeighing(Weighing<E> weighing);\n\t\n\t/**\n\t * Computes the shortest path to all vertices from the start vertex in the graph\n\t * using the weighing function\n\t * @throws IllegalStateException if the graph, start vertex, or weighing object have not been set\n\t */\n\tpublic void computeShortestPath() throws IllegalStateException;\n\t\n\t/**\n\t * Returns the path from the start vertex to the end vertex provided\n\t * @return a list representing the shortest path. The first element is the start vertex, and the last\n\t * is the end vertex.\n\t * @throws IllegalArgumentException if endId is not a vertex in the graph\n\t * @throws IllegalStateException if computeShortestPath has not been called since any of the set methods\n\t * were last called\n\t */\n\tpublic List<Integer> getPath(int endId) throws IllegalArgumentException, IllegalStateException;\n\t\n\t/**\n\t * Returns the cost of the shortest path from the start vertex to the end vertex where\n\t * cost is defined by the sum of the weights of all the edges that connects the path as\n\t * defined by the weighing object.\n\t * @throws IllegalArgumentException if endId is not a vertex in the graph\n\t * @throws IllegalStateException if computeShortestPath has not been called since any of the set methods\n\t * were last called\n\t */\n\tpublic double getCost(int endId) throws IllegalArgumentException, IllegalStateException;\n}",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n public List<Edge<T>> viterbiPath() {\n final int numNodes = nodeList.size();\n double[] d_v = new double[numNodes];\n Arrays.fill(d_v, annihilator());\n d_v[ROOT_ID] = identity();\n Edge[] p_v = new Edge[numNodes]; \n \n // Forward pass\n for (int v = ROOT_ID+1; v < numNodes; ++v) {\n List<Edge<T>> edgeList = nodeList.get(v).backwardStar();\n for (Edge<T> edge : edgeList) {\n int u = edge.start().id();\n double bestCost = d_v[v];\n double transitionCost = score(d_v[u], edge.weight());\n if (compare(bestCost, transitionCost) == transitionCost) {\n // Do an update to the best cost\n d_v[v] = transitionCost;\n p_v[v] = edge;\n }\n }\n }\n \n // Backout the solution\n List<Edge<T>> bestPath = new LinkedList<Edge<T>>();\n Edge<T> bestEdge = p_v[numNodes-1];\n bestEdge = p_v[bestEdge.start().id()]; // Skip the goal node\n while(bestEdge.start().id() != ROOT_ID) {\n bestPath.add(0, bestEdge); // O(c) pre-pend\n bestEdge = p_v[bestEdge.start().id()];\n }\n\n return bestPath;\n }",
"@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }",
"@Override\r\n\tpublic void FloydWarshall() {\r\n\t\tgraphForWarshall = new AdjacencyMatrixGraph<>(getOrder(), isDirected);\r\n\t\tvertices.forEach((E t, Vertex<E> u) -> {\r\n\t\t\tgraphForWarshall.insertVertex(t);\r\n\t\t});\r\n\t\tadjacencyLists.forEach((E t, ArrayList<Edge<E>> u) -> {\r\n\t\t\tfor(Edge<E> ale : u) {\r\n\t\t\t\tgraphForWarshall.link(ale.getSrc(), ale.getDst(), ale.getWeight());\r\n\t\t\t}\r\n\t\t});\r\n\t\tgraphForWarshall.FloydWarshall();\r\n\t}",
"public Dijkstra(EdgeWeightedDigraph G, int s) {\r\n int V = G.V();\r\n distTo = new double[V];\r\n edgeTo = new DirectedEdge[V];\r\n distTo[0] = 0.0;\r\n for (int i = 1; i < V; i++) {\r\n distTo[i] = Double.POSITIVE_INFINITY;\r\n }\r\n pq.insert(s, 0.0);\r\n while (!pq.isEmpty()) {\r\n int v = pq.deleteMin();\r\n for (DirectedEdge e : G.adj(v)) {\r\n relax(e);\r\n }\r\n }\r\n }",
"private void calculateShortestRoute(String strSourceTerminal){\n\t\tshortestTravelTime = new HashMap<>();\n\n //stores parent of every terminal in shortest travel time\n parent = new HashMap<>();\n \n //heap + map data structure\n MinimumHeap<BaggageTerminal> minHeap = new MinimumHeap<>();\n\n //initialize all terminal with infinite distance from source terminal\n for(BaggageTerminal baggageTerminal : graph.getTerminals()){\n minHeap.add(Integer.MAX_VALUE, baggageTerminal);\n }\n \n BaggageTerminal sourceTerminal = graph.getTerminal(strSourceTerminal);\n \n //set distance of source terminal to itself 0\n minHeap.decrease(sourceTerminal, 0);\n\n //put it in map\n shortestTravelTime.put(sourceTerminal, 0);\n\n //source terminal parent is null\n parent.put(sourceTerminal, null);\n\n //iterate till heap is not empty\n while(!minHeap.empty()){\n //get the min value from heap node which has vertex and distance of that vertex from source vertex.\n MinimumHeap<BaggageTerminal>.Node heapNode = minHeap.extractMinNode();\n BaggageTerminal currentTerminal = heapNode.key;\n\n //update shortest distance of current vertex from source vertex\n shortestTravelTime.put(currentTerminal, heapNode.weight);\n\n //iterate through all connections of current terminal\n for(Connection connection : currentTerminal.getConnections()){\n\n //get the adjacent terminal\n BaggageTerminal adjacent = getConnectingTerminal(currentTerminal, connection);\n\n //if heap does not contain adjacent vertex means adjacent vertex already has shortest distance from source vertex\n if(!minHeap.containsData(adjacent)){\n continue;\n }\n\n //add distance of current vertex to edge weight to get distance of adjacent vertex from source vertex\n //when it goes through current vertex\n int newDistance = shortestTravelTime.get(currentTerminal) + connection.getWeight();\n\n //see if this above calculated distance is less than current distance stored for adjacent vertex from source vertex\n if(minHeap.getWeight(adjacent) > newDistance) {\n minHeap.decrease(adjacent, newDistance);\n parent.put(adjacent, currentTerminal);\n }\n }\n }\n return;\n }",
"static void FindPath(vertex s, vertex[] array){\r\n\t\tvertex v; \r\n\t\tint min = Integer.MAX_VALUE;\r\n\t\t//node wN; vertex wV; //wN= adjacent node in LinkedList; wV= find the values in the vertices for wL\r\n\t\tint j =0;\r\n\t\ts.known = true;\r\n\t\ts.dist = 0;\r\n\t\tShortestPath(s, array);\r\n\t\r\n\t\twhile(j<array.length-1 ){ //&& array[j].known== false){\r\n\t\t\tint count = 0; \r\n\t\t\tmin = Integer.MAX_VALUE;\r\n\t\t\tfor(int i = 0; i<array.length; i++){\r\n\t\t\t\tif(array[i].known== false && array[i].dist < min){\r\n\t\t\t\t\tmin = array[i].dist;\r\n\t\t\t\t\tcount = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tv = array[count];\r\n //System.out.println(\"count: \" + count + \"Next v: \" + v.name);\r\n\t\t\tShortestPath(v, array);\r\n\t\t\tj++; \t\t\r\n }\r\n\t}",
"public DijkstraSP(EdgeWeightedDigraph G, int s)\n {\n edgeTo = new DirectedEdge[G.V()];\n distTo = new double[G.V()];\n pq = new IndexMinPQ<Double>(G.V());\n for (int v = 0; v < G.V(); v++)\n distTo[v] = Double.POSITIVE_INFINITY;\n distTo[s] = 0.0;\n pq.insert(s, 0.0);\n while (!pq.isEmpty())\n relax(G, pq.delMin());\n }",
"public List<GeographicPoint> dijkstra(GeographicPoint start, \n\t\t\t\t\t\t\t\t\t\t GeographicPoint goal, Consumer<GeographicPoint> nodeSearched)\n\t{\n\t\t// TODO: Implement this method in WEEK 4\n\n\t\t// Hook for visualization. See writeup.\n\t\t//nodeSearched.accept(next.getLocation());\n\t\t\n\t\t//initialize distance of each MapNode from start to infinity\n\t\t\n\t\tSet<GeographicPoint> visited = new HashSet<GeographicPoint>();\n\t\tPriorityQueue<MapNode> queue = new PriorityQueue<MapNode>();\n\t\tHashMap<GeographicPoint, List<GeographicPoint>> path = new HashMap<GeographicPoint, List<GeographicPoint>>();\n\t\tint count = 0;\n\t\t\n\t\tif (!map.containsKey(start) || !map.containsKey(goal))\n\t\t\treturn null;\n\t\t\n\t\tfor (GeographicPoint temp : map.keySet())\n\t\t\tpath.put(temp, new ArrayList<GeographicPoint>());\n\t\t\n\t\tMapNode startNode = map.get(start);\n\t\tstartNode.setTimeToStart(0.0);\n\t\tstartNode.setDistanceToStart(0.0);\n\t\tqueue.add(startNode);\n\t\t\n\t\twhile (!queue.isEmpty()) {\n\t\t\tMapNode currNode = queue.poll();\n\t\t\tnodeSearched.accept(currNode.getLocation());\n\t\t\t\n\t\t\tif (!visited.contains(currNode.getLocation())) {\n\t\t\t\tvisited.add(currNode.getLocation());\n\t\t\t\tcount++;\n\t\t\t\t\n\t\t\t\tif (currNode.getLocation().equals(goal))\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tHashMap<MapEdge, GeographicPoint> neighbours = currNode.getNeighbours();\n\t\t\t\tfor (MapEdge edge : neighbours.keySet()) {\n\t\t\t\t\t\n\t\t\t\t\tif (!visited.contains(edge.getEnd())) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tMapNode addNode = map.get(neighbours.get(edge));\n\t\t\t\t\t\tdouble tempTime = currNode.getTimeToStart() + ((edge.getDistance())/(edge.getSpeedLimit()));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tempTime < addNode.getTimeToStart()) {\n\t\t\t\t\t\t\taddNode.setTimeToStart(tempTime);\n\t\t\t\t\t\t\tqueue.add(addNode);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tList<GeographicPoint> temp = path.get(neighbours.get(edge));\n\t\t\t\t\t\t\ttemp.add(currNode.getLocation());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Dijkstra: \" + count);\n\t\treturn backTrack(path,goal);\n\t}",
"private int BFS() {\n adjList.cleanNodeFields();\n\n //Queue for storing current shortest path\n Queue<Node<Integer, Integer>> q = new LinkedList<>();\n\n //Set source node value to 0\n q.add(adjList.getNode(startNode));\n q.peek().key = 0;\n q.peek().d = 0;\n q.peek().visited = true;\n\n //Helper variables\n LinkedList<Pair<Node<Integer, Integer>, Integer>> neighbors;//Array of pairs <neighborKey, edgeWeight>\n Node<Integer, Integer> neighbor, u;\n long speed = (long) (cellSideLength * 1.20);\n\n while (!isCancelled() && q.size() != 0) {\n u = q.poll();\n\n //Marks node as checked\n checkedNodesGC.fillRect((u.value >> 16) * cellSideLength + 0.5f,\n (u.value & 0x0000FFFF) * cellSideLength + 0.5f,\n (int) cellSideLength - 1, (int) cellSideLength - 1);\n\n //endNode found\n if (u.value == endNode) {\n //Draws shortest path\n Node<Integer, Integer> current = u, prev = u;\n\n while ((current = current.prev) != null) {\n shortestPathGC.strokeLine((prev.value >> 16) * cellSideLength + cellSideLength / 2,\n (prev.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2,\n (current.value >> 16) * cellSideLength + cellSideLength / 2,\n (current.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2);\n prev = current;\n }\n return u.d;\n }\n\n //Wait after checking node\n try {\n Thread.sleep(speed);\n } catch (InterruptedException interrupted) {\n if (isCancelled())\n break;\n }\n\n //Checking Neighbors\n neighbors = adjList.getNeighbors(u.value);\n for (Pair<Node<Integer, Integer>, Integer> neighborKeyValuePair : neighbors) {\n neighbor = neighborKeyValuePair.getKey();\n //Relaxation step\n //Checks if neighbor hasn't been checked, if so the assign the shortest path\n if (!neighbor.visited) {\n //Adds checked neighbor to queue\n neighbor.key = u.d + 1;\n neighbor.d = u.d + 1; //Assign shorter path found to neighbor\n neighbor.prev = u;\n neighbor.visited = true;\n q.add(neighbor);\n }\n }\n }\n return Integer.MAX_VALUE;\n }",
"public Dijkstra(Graph graph, int firstVertexPortNum)\n {\n this.graph = graph;\n Set<String> vertexKeys = this.graph.vertexKeys();\n \n this.initialVertexPortNum = firstVertexPortNum;\n this.predecessors = new HashMap<String, String>();\n this.distances = new HashMap<String, Integer>();\n this.availableVertices = new PriorityQueue<Vertex>(vertexKeys.size(), new Comparator<Vertex>()\n {\n // compare weights of these two vertices.\n public int compare(Vertex v1, Vertex v2)\n {\n \t// errors are here.\n int weightOne = Dijkstra.this.distances.get(v1.convertToString(v1.getVertexPortNum())); // distances stored by portnum in string form.\n int weightTwo = Dijkstra.this.distances.get(v2.convertToString(v2.getVertexPortNum())); // distances stored by portnum in string form.\n return weightOne - weightTwo; // return the modified weight of the two vertices.\n }\n });\n \n this.visitedVertices = new HashSet<Vertex>();\n \n // for each Vertex in the graph\n for(String key: vertexKeys)\n {\n this.predecessors.put(key, null);\n this.distances.put(key, Integer.MAX_VALUE); // assuming that the distance of this is infinity.\n }\n \n \n //the distance from the initial vertex to itself is 0\n this.distances.put(convertToString(initialVertexPortNum), 0); \n \n //and seed initialVertex's neighbors\n Vertex initialVertex = this.graph.getVertex(convertToString(initialVertexPortNum)); // converted portnum to String to make this work.\n ArrayList<Edge> initialVertexNeighbors = initialVertex.getSquad();\n for(Edge e : initialVertexNeighbors)\n {\n Vertex other = e.getNeighbor(initialVertex);\n this.predecessors.put(convertToString(other.getVertexPortNum()), convertToString(initialVertexPortNum));\n this.distances.put(convertToString(other.getVertexPortNum()), e.getWeight()); // converted portnum to String to make this work.\n this.availableVertices.add(other); // add to available vertices.\n }\n \n this.visitedVertices.add(initialVertex); // add to list of visited vertices.\n \n // apply Dijkstra's algorithm to the overlay.\n processOverlay();\n \n }",
"public Stack<Point> shortestPath() {\n\t\tresetVisited();\n\t\tStack <Point> shortestPath = new Stack<Point>();\n\t\tprev = new HashMap<Point,Point>();\n\t\tCompass[] direction = Compass.values();\n\t\tQueue <Point> path = new LinkedList<Point>();\n\t\tpath.add(playerStart);\n\t\twhile(!path.isEmpty()) {\n\t\t\tPoint current = path.poll();\n\t\t\tfor (Compass pointing: direction) {\n\t\t\t\tif (current.equals(goal)) {\n\t\t\t\t\tshortestPath.push(current);\n\t\t\t\t\twhile (prev.containsKey(shortestPath.peek()) && !shortestPath.peek().equals(playerStart)){\n\t\t\t\t\t\tshortestPath.push(prev.get(shortestPath.peek()));\n\t\t\t\t\t}\n\t\t\t\t\treturn shortestPath;\n\t\t\t\t}\n\t\t\t\tint nextW = (int)current.getX() + pointing.mapX;\n\t\t\t\tint nextH = (int)current.getY() + pointing.mapY;\n\t\t\t\tPoint nextPoint = new Point(nextW, nextH);\n\t\t\t\tif (arrayBounds(nextW, width) && arrayBounds (nextH, height) && maze[nextW][nextH] == 0 && !visited.contains(nextPoint)) {\n\t\t\t\t\tpath.add(nextPoint);\n\t\t\t\t\tvisited.add(nextPoint);\n\t\t\t\t\tprev.put(nextPoint, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn shortestPath;\t\t\n\t}",
"public Map<Node<T>, Cost> dijkstra(T start) throws NodeNotFoundException {\n Node<T> origin = findNode(start);\n Map<Node<T>, Cost> costs = new HashMap<>();\n List<Node<T>> alreadyVisited = new ArrayList<>();\n\n // Step 1 : Initialization\n // Set every cost to infinity, except for the starting summit which is set to 0\n for(Node<T> node : getNodes()) {\n if(origin.equals(node)) { costs.put(node, new Cost(0.0)); }\n else { costs.put(node, new Cost()); }\n }\n\n while(ArrayMethods.similarity(getNodes(), alreadyVisited) != order()) {\n // Step 2 : Taking the node with the smallest cost\n Node<T> reference = Cost.findMin(costs, alreadyVisited);\n\n // Step 3 : Updating the table with the costs from that node\n for(WeightedLink link : findLinks(reference.getData())) {\n Node<T> other = (Node<T>) link.getOther(reference);\n Cost oldCost = costs.get(other);\n double old = oldCost.getCost();\n double cost = link.getWeight() + costs.get(reference).getCost();\n\n costs.put(other, (cost < old) ? new Cost(cost, reference) : oldCost);\n }\n\n // Step 4 : Repeat with the smallest costing summit that wasn't visited already\n alreadyVisited.add(reference);\n }\n\n return costs;\n }",
"public List<String> getShortestRoute(String start, String end) {\n\t\tif (!vertices.contains(start)) return null;\n\t\tMap<String, Vertex> verticesWithDistance = new HashMap<String, Vertex>();\n\t\tVertex starting = new Vertex(start, 0);\n\t\tverticesWithDistance.put(start, starting);\n\t\tstarting.route.add(starting.name);\n\t\tfor (String v : vertices) {\n\t\t\tif (!v.equals(start))\n\t\t\t\tverticesWithDistance.put(v, new Vertex(v, -1));\n\t\t}\n\t\treturn searchByDijkstra(starting, end , verticesWithDistance);\n\t}",
"private HashMap<String, Integer> getShortestPathBetweenDifferentNodes(Node start, Node end) {\n HashMap<Node, Node> parentChildMap = new HashMap<>();\n parentChildMap.put(start, null);\n\n // Shortest path between nodes\n HashMap<Node, Integer> shortestPathMap = new HashMap<>();\n\n for (Node node : getNodes()) {\n if (node == start)\n shortestPathMap.put(start, 0);\n else shortestPathMap.put(node, Integer.MAX_VALUE);\n }\n\n for (Edge edge : start.getEdges()) {\n shortestPathMap.put(edge.getDestination(), edge.getWeight());\n parentChildMap.put(edge.getDestination(), start);\n }\n\n while (true) {\n Node currentNode = closestUnvisitedNeighbour(shortestPathMap);\n\n if (currentNode == null) {\n return null;\n }\n\n // Save path to nearest unvisited node\n if (currentNode == end) {\n Node child = end;\n String path = end.getName();\n while (true) {\n Node parent = parentChildMap.get(child);\n if (parent == null) {\n break;\n }\n\n // Create path using previous(parent) and current(child) node\n path = parent.getName() + \"\" + path;\n child = parent;\n }\n HashMap<String,Integer> hm= new HashMap<>();\n hm.put(path, shortestPathMap.get(end));\n return hm;\n }\n currentNode.visit();\n\n // Go trough edges and find nearest\n for (Edge edge : currentNode.getEdges()) {\n if (edge.getDestination().isVisited())\n continue;\n\n if (shortestPathMap.get(currentNode) + edge.getWeight() < shortestPathMap.get(edge.getDestination())) {\n shortestPathMap.put(edge.getDestination(), shortestPathMap.get(currentNode) + edge.getWeight());\n parentChildMap.put(edge.getDestination(), currentNode);\n }\n }\n }\n }",
"@Test\n void testShortestPath(){\n weighted_graph g = new WGraph_DS();\n for(int i = 1; i <= 7; i++){\n g.addNode(i);\n }\n g.connect(1,2,20);\n g.connect(1,5,15);\n g.connect(2,3,20);\n g.connect(5,6,15);\n g.connect(3,4,20);\n g.connect(6,4,15);\n g.connect(1,7,2);\n g.connect(7,4,1);\n weighted_graph_algorithms ga = new WGraph_Algo();\n ga.init(g);\n LinkedList<node_info> expectedPath = new LinkedList<>(Arrays.asList(g.getNode(1),g.getNode(7),g.getNode(4)));\n assertNull(ga.shortestPath(1,10));\n assertEquals(expectedPath,ga.shortestPath(1,4));\n assertEquals(1,ga.shortestPath(1,1).size());\n }",
"@Test\n void testShortestPathDist(){\n weighted_graph g = new WGraph_DS();\n for(int i = 1; i <= 7; i++){\n g.addNode(i);\n }\n g.connect(1,2,20);\n g.connect(1,5,15);\n g.connect(2,3,20);\n g.connect(5,6,15);\n g.connect(3,4,20);\n g.connect(6,4,15);\n g.connect(1,7,2);\n g.connect(7,4,50);\n weighted_graph_algorithms ga = new WGraph_Algo();\n ga.init(g);\n assertTrue(Double.compare(45,ga.shortestPathDist(1,4)) == 0);\n assertEquals(0,ga.shortestPathDist(1,1));\n assertEquals(-1,ga.shortestPathDist(1,200));\n }",
"public static void main(String[] args) {\n int vertices = Integer.parseInt(StdIn.readLine());\n //Storing vertex weights\n double[] vertW = new double[vertices];\n for(int i=0;i<vertices;i++)\n vertW[i] = Double.parseDouble(StdIn.readLine());\n //Reading in new graph, G**\n String[] Gstarstar = StdIn.readAllLines();\n //Making graph\n EdgeWeightedDigraph G = new EdgeWeightedDigraph(Gstarstar);\n //Dijkstra All Pairs\n DijkstraAllPairsSP DAP = new DijkstraAllPairsSP(G);\n //Printing output of paths\n for(int i=0; i<G.V(); i++){\n for(int j=0; j<G.V(); j++){\n if(!DAP.hasPath(i,j))\n StdOut.print(i+\" to \"+j+\"\\t\\tno path\");\n else{\n double newEW;\n double EW;\n Iterable<DirectedEdge> path = DAP.path(i,j);\n double totalWeight = 0;\n String sp = \"\"; //String that's going to form the path\n for(DirectedEdge x : path){\n newEW = x.weight();\n EW = newEW + vertW[x.to()] - vertW[x.from()]; //reverse calibrate\n totalWeight += EW;\n sp += \"\\t\"+x.from()+\"->\"+x.to()+\" \"+String.format(\"%.2f\",EW); //adding to path\n }\n StdOut.print(i+\" to \"+j+\"\\t(\"+String.format(\"%.2f\",totalWeight)+\") \");\n StdOut.print(sp);\n }\n StdOut.println();\n }\n StdOut.println();\n }\n }",
"public List<Vertex> getShortestPathTo(Vertex target)\n {\n List<Vertex> path = new ArrayList<Vertex>();\n for (Vertex vertex = target; vertex != null; vertex = vertex.previous)\n path.add(vertex);\n Collections.reverse(path);\n return path;\n }",
"public String findShortestRoute(char start, char finish) {\r\n PriorityQueue<Vertex> Q = new PriorityQueue<>(new Comparator<Vertex>() {\r\n @Override\r\n public int compare(Vertex v1, Vertex v2) {\r\n return Integer.compare(v1.getDistanceFromStart(), v2.getDistanceFromStart());\r\n }\r\n });\r\n\r\n Vertex startVert = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == start) {\r\n v.setDistanceFromStart(0);\r\n v.setPrevious(v);\r\n startVert = v;\r\n }\r\n else {\r\n v.setDistanceFromStart(Integer.MAX_VALUE);\r\n v.setPrevious(null);\r\n }\r\n Q.add(v);\r\n }\r\n if(startVert == null) {\r\n throw new IllegalArgumentException(\"start vertex is not in graph\");\r\n }\r\n\r\n Vertex finishVert = null;\r\n while(!Q.isEmpty()) {\r\n Vertex v = Q.remove(); // remove first vertex in queue, the shortest path has been found to this vertex\r\n if(v.getName() == finish) {\r\n finishVert = v;\r\n break; // finish quicker\r\n }\r\n for(Edge incidentEdge : v.getIncidentEdges()) {\r\n Vertex adjacentVertex = incidentEdge.getOppositeVertex(v);\r\n int alt = v.getDistanceFromStart() + incidentEdge.getDistance();\r\n if(alt < adjacentVertex.getDistanceFromStart()) { // if going through this edge shortens the route to adjacentVertex\r\n adjacentVertex.setDistanceFromStart(alt);\r\n adjacentVertex.setPrevious(v);\r\n Q.remove(adjacentVertex); // increase the priority of adjacent vertices if this vertex shortens their route\r\n Q.add(adjacentVertex);\r\n }\r\n }\r\n }\r\n \r\n // throw exception if finish vertex not found\r\n if(finishVert == null) {\r\n throw new IllegalArgumentException(\"finish vertex is not in graph\");\r\n }\r\n \r\n // build the return value by adding vertex names from finish to start,\r\n // reversing the string, then concatenating the distance\r\n StringBuilder sb = new StringBuilder();\r\n for(Vertex v = finishVert; v != startVert; v = v.getPrevious()) {\r\n sb.append(v.getName());\r\n }\r\n return sb.append(start).reverse().append(finishVert.getDistanceFromStart()).toString();\r\n }",
"public List<GeographicPoint> dijkstra(GeographicPoint start, GeographicPoint goal) {\n\t\t// Dummy variable for calling the search algorithms\n\t\t// You do not need to change this method.\n Consumer<GeographicPoint> temp = (x) -> {};\n return dijkstra(start, goal, temp);\n\t}",
"int[] bfs(int[][] graph,int source){\n int len=graph.length;\n int shortest_path[]=new int[len];\n int parent[]=new int[len];\n Arrays.fill(shortest_path, Integer.MAX_VALUE/2);\n shortest_path[source]=0;\n Queue<Integer> q=new LinkedList<>();\n q.add(source);\n while (!q.isEmpty()) { \n int u=q.poll();\n for(int v:graph[u]){\n if(shortest_path[v]==Integer.MAX_VALUE/2){\n q.add(v);\n shortest_path[v]=shortest_path[u]+1;\n parent[v]=u;\n }\n }\n }\n return shortest_path;\n }",
"private void shortestPath_init(char start){\n\n visited = new boolean[numVertices];\n for(int i = 0;i < numVertices;i++){\n distList[i] = Integer.MAX_VALUE;\n }\n //distance to starting point is always zero\n\n try {\n distList[getIdx(start)] = 0;\n }catch(Exception e){\n System.out.println(\"can not find starting point\");\n }\n\n pqNode s = new pqNode(distList[0],getIdx(start));\n pq.offer(s);\n\n }",
"private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = new LinkedList<>();\n Path newPath = new Path(start, destination, newPathComposition);\n newPathComposition.add(seg);\n while (!seg.getOrigin().equals(start)) {\n Intersection s = seg.getOrigin();\n seg = pi.get(s);\n if(seg == null){\n throw new Exception();\n }\n newPathComposition.add(seg);\n }\n Collections.reverse(newPathComposition);\n newPath.setSegmentsOfPath(newPathComposition);\n return newPath;\n }",
"private Paths sap(int v, int w) {\n validate(v);\n validate(w);\n BreadthFirstDirectedPaths fromV = new BreadthFirstDirectedPaths(this.G, v);\n BreadthFirstDirectedPaths fromW = new BreadthFirstDirectedPaths(this.G, w);\n return processPaths(fromV, fromW);\n }",
"public List<String> computeBestPath(String source, String dest)\r\n {\r\n Vertex v;\r\n List<String>shortestPath = new LinkedList<String>();\r\n \r\n // First, relax all nodes\r\n computeAllPaths(source);\r\n \r\n // Then go through each one and return the path as a list of strings\r\n for (v= network_topology.get(dest); v != null; v = v.previous)\r\n { \r\n shortestPath.add(v.name);\r\n }\r\n \r\n Collections.reverse(shortestPath);\r\n \r\n // Clear the relaxed values so that they can be recalculated with each term\r\n clearPathData();\r\n \r\n return shortestPath;\r\n }"
] | [
"0.7224515",
"0.71078897",
"0.69294155",
"0.68365294",
"0.674481",
"0.6740152",
"0.6709252",
"0.670193",
"0.66556066",
"0.662494",
"0.65866184",
"0.6585081",
"0.6580236",
"0.6567791",
"0.6547201",
"0.6536236",
"0.6507359",
"0.6496294",
"0.64787894",
"0.64576465",
"0.64566255",
"0.6454679",
"0.6383881",
"0.63722336",
"0.6367643",
"0.63613594",
"0.630815",
"0.6280679",
"0.6262764",
"0.6255079",
"0.6233778",
"0.6191725",
"0.6183489",
"0.6173212",
"0.6169081",
"0.6167957",
"0.6165608",
"0.61473143",
"0.61440265",
"0.6127625",
"0.61101854",
"0.61071944",
"0.6080187",
"0.6079688",
"0.60777974",
"0.60595703",
"0.6027554",
"0.60136026",
"0.6010441",
"0.6009164",
"0.6008837",
"0.6004625",
"0.59963715",
"0.5984861",
"0.59842604",
"0.5975066",
"0.5966566",
"0.59655935",
"0.5955465",
"0.5950755",
"0.5946954",
"0.59428126",
"0.59404606",
"0.59369856",
"0.5902643",
"0.5900856",
"0.5899066",
"0.5896944",
"0.5895628",
"0.5887845",
"0.58826745",
"0.5877646",
"0.5870997",
"0.5854126",
"0.58441997",
"0.58383393",
"0.5831211",
"0.5826174",
"0.58200926",
"0.5815534",
"0.58071977",
"0.5795449",
"0.57905436",
"0.57835996",
"0.578312",
"0.57818747",
"0.5759388",
"0.57517815",
"0.5745715",
"0.5744727",
"0.5743398",
"0.5742599",
"0.57395625",
"0.573735",
"0.5719086",
"0.57181174",
"0.5713101",
"0.57052016",
"0.5701509",
"0.5688119"
] | 0.56915003 | 99 |
Returns the path from the start vertex to the end vertex provided | public List<Integer> getPath(int endId) throws IllegalArgumentException, IllegalStateException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Iterable<Vertex> computePath(Vertex start, Vertex end) throws GraphException;",
"private List<Edge<String>> getPath(Vertex<String> end,\n Vertex<String> start) {\n if (graph.label(end) != null) {\n List<Edge<String>> path = new ArrayList<>();\n\n Vertex<String> cur = end;\n Edge<String> road;\n while (cur != start) {\n road = (Edge<String>) graph.label(cur); // unchecked cast ok\n path.add(road);\n cur = graph.from(road);\n }\n return path;\n }\n return null;\n }",
"Iterable<Vertex> computePathToGraph(Loc start, Vertex end) throws GraphException;",
"@Override\n\tpublic ArrayList<Edge<Object>> getPath(String startNode, String endNode) {\n\t\treturn null;\n\t}",
"private void computePath(){\n LinkedStack<T> reversePath = new LinkedStack<T>();\n // adding end vertex to reversePath\n T current = end; // first node is the end one\n while (!current.equals(start)){\n reversePath.push(current); // adding current to path\n current = closestPredecessor[vertexIndex(current)]; // changing to closest predecessor to current\n }\n reversePath.push(current); // adding the start vertex\n \n while (!reversePath.isEmpty()){\n path.enqueue(reversePath.pop());\n }\n }",
"private Path createPath(AStarNode start, AStarNode end) {\n Path path = new Path();\n AStarNode ptr = end;\n while (!ptr.equals(start)) {\n path.addFirst(ptr);\n ptr = ptr.getPrevious();\n }\n path.addFirst(start);\n\n return path;\n }",
"public ArrayList<Integer> path(int startVertex, int stopVertex) {\n \tArrayList<Integer> toReturn = new ArrayList<Integer>();\n \tArrayList<Integer> temporary = new ArrayList<Integer>();\n \tif (!pathExists(startVertex, stopVertex)) {\n \t\treturn toReturn;\n \t}\n \tif (startVertex == stopVertex) {\n \t\ttoReturn.add(startVertex);\n \t\treturn toReturn;\n \t}\n \tIterator<Integer> iter = new DFSIterator(startVertex);\n \twhile (iter.hasNext()) {\n \t\tInteger toAdd = iter.next();\n \t\ttemporary.add(toAdd);\n \t\tif (toAdd.equals(stopVertex)) {\n \t\t\tbreak;\n \t\t}\n \t}\n \ttoReturn.add(0, stopVertex);\n \treturn pathHelper(temporary, toReturn);\n }",
"@Override\r\n public List<T> breadthFirstPath(T start, T end) {\r\n\r\n Vertex<T> startV = vertices.get(start);\r\n Vertex<T> endV = vertices.get(end);\r\n\r\n LinkedList<Vertex<T>> vertexList = new LinkedList<>();\r\n //Set<Vertex<T>> visited = new HashSet<>();\r\n ArrayList<Vertex<T>> visited = new ArrayList<>();\r\n\r\n LinkedList<Vertex<T>> pred = new LinkedList<>();\r\n int currIndex = 0;\r\n\r\n pred.add(null);\r\n\r\n vertexList.add(startV);\r\n visited.add(startV);\r\n\r\n LinkedList<T> path = new LinkedList<>();\r\n\r\n if (breadthFirstSearch(start, end) == false) {\r\n path = new LinkedList<>();\r\n return path;\r\n } else {\r\n while (vertexList.size() > 0) {\r\n Vertex<T> next = vertexList.poll();\r\n if(next == null){\r\n continue;\r\n }\r\n if (next == endV) {\r\n path.add(endV.getValue());\r\n break;\r\n }\r\n for (Vertex<T> neighbor : next.getNeighbors()) {\r\n if (!visited.contains(neighbor)) {\r\n pred.add(next);\r\n visited.add(neighbor);\r\n vertexList.add(neighbor);\r\n }\r\n }\r\n currIndex++;\r\n //path.add(next.getValue());\r\n\r\n }\r\n while (currIndex != 0) {\r\n Vertex<T> parent = pred.get(currIndex);\r\n path.add(parent.getValue());\r\n currIndex = visited.indexOf(parent);\r\n }\r\n }\r\n Collections.reverse(path);\r\n return path;\r\n }",
"public List<Vertex> shortestPath(Vertex start, Vertex end) {\r\n\t\tMap<Vertex, Vertex> backRefs = new HashMap<Vertex, Vertex>();\r\n\r\n\t\t// Create a queue for BFS\r\n\t\tQueue<Vertex> queue = new LinkedList<Vertex>();\r\n\r\n\t\t// Mark the current node as visited and enqueue it. Use backRef as\r\n\t\t// visited set\r\n\t\tqueue.offer(start);\r\n\t\tbackRefs.put(start, null);\r\n\r\n\t\tVertex currentNode;\r\n\t\tSet<Vertex> neighbors;\r\n\r\n\t\twhile (queue.size() != 0) { // or !queue.isEmpty()\r\n\t\t\t// Dequeue a vertex from queue and print it\r\n\t\t\tcurrentNode = queue.poll();\r\n\r\n\t\t\tif (currentNode.equals(end)) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\t// Get all adjacent vertices of the dequeued vertex s\r\n\t\t\t// If a adjacent has not been visited, then mark it\r\n\t\t\t// visited and enqueue it\r\n\t\t\tneighbors = currentNode.getNeighbors();\r\n\r\n\t\t\tfor (Vertex n : neighbors) {\r\n\t\t\t\tif (!backRefs.containsKey(n)) {\r\n\t\t\t\t\tqueue.offer(n);\r\n\t\t\t\t\tbackRefs.put(n, currentNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!backRefs.containsKey(end))\r\n\t\t\treturn null;\r\n\r\n\t\tList<Vertex> path = new ArrayList<Vertex>();\r\n\t\tcurrentNode = end;\r\n\r\n\t\twhile (currentNode != null) {\r\n\t\t\tpath.add(currentNode);\r\n\t\t\tcurrentNode = backRefs.get(currentNode);\r\n\t\t}\r\n\r\n\t\tCollections.reverse(path);\r\n\r\n\t\treturn path;\r\n\t}",
"private List<routerNode> getPathVertexList(routerNode beginNode, routerNode endNode) {\r\n\t\tTransformer<routerLink, Integer> wtTransformer; // transformer for getting edge weight\r\n\t\twtTransformer = new Transformer<routerLink, Integer>() {\r\n public Integer transform(routerLink link) {\r\n return link.getWeight();\r\n \t}\r\n };\t\t\r\n\r\n\t\t\r\n\t\tList<routerNode> vlist;\r\n\t\tDijkstraShortestPath<routerNode, routerLink> DSPath = \r\n\t \t new DijkstraShortestPath<routerNode, routerLink>(gGraph, wtTransformer);\r\n \t// get the shortest path in the form of edge list \r\n List<routerLink> elist = DSPath.getPath(beginNode, endNode);\r\n\t\t\r\n \t\t// get the node list form the shortest path\r\n\t Iterator<routerLink> ebIter = elist.iterator();\r\n\t vlist = new ArrayList<routerNode>(elist.size() + 1);\r\n \tvlist.add(0, beginNode);\r\n\t for(int i=0; i<elist.size(); i++){\r\n\t\t routerLink aLink = ebIter.next();\r\n\t \t \t// get the nodes corresponding to the edge\r\n \t\tPair<routerNode> endpoints = gGraph.getEndpoints(aLink);\r\n\t routerNode V1 = endpoints.getFirst();\r\n\t routerNode V2 = endpoints.getSecond();\r\n\t \tif(vlist.get(i) == V1)\r\n\t \t vlist.add(i+1, V2);\r\n\t else\r\n\t \tvlist.add(i+1, V1);\r\n\t }\r\n\t return vlist;\r\n\t}",
"public Path select(int start, int end)\n\t{\n\t\tString newPath = \"\";\n\t\t\n\t\t\n\t\tif(this.isAbsolute() && start == 0){\n\t\t\tnewPath = \"/\";\n\t\t}\n\t\t\n\t\tfor(int i = start; i <= end; i++)\n\t\t{\n\t\t\tnewPath += this.elements.get(i) + \"/\";\n\t\t}\n\t\t\n\t\treturn new Path(newPath);\n\t}",
"public String getShortestPath(T begin, T end);",
"public ArrayList<Integer> path(int startVertex, int stopVertex) {\r\n ArrayList<Integer> paths = new ArrayList<Integer>();\r\n Iterator<Integer> iter = new DFSIterator(startVertex);\r\n while (!paths.contains(stopVertex) && pathExists(startVertex, stopVertex)) {\r\n Integer thisVertex = iter.next();\r\n if (pathExists(thisVertex, stopVertex)) {\r\n \tpaths.add(thisVertex);\r\n }\r\n } \r\n return paths;\r\n }",
"protected LinkedList<IVertex<String>> getPath(IVertex<String> target) {\n\n LinkedList<IVertex<String>> path = new LinkedList<IVertex<String>>();\n\n IVertex<String> step = target;\n\n // check if a path exists\n if (predecessors.get(step) == null) {\n return null;\n }\n path.add(step);\n while (predecessors.get(step) != null) {\n step = predecessors.get(step);\n path.add(step);\n }\n // Put it into the correct order\n Collections.reverse(path);\n return path;\n }",
"public List<Node> findPath(Node start);",
"private Square[] returnPath(Vertex v, GameBoard b) {\n // because we're starting at the end point,\n // we need build the path in 'reverse'\n Stack<Square> path = new Stack<Square>();\n\n // while we're not at the start point\n while ( v.dist != 0 ) {\n path.push(vertexToSquare(v,b));\n v = v.path;\n }\n\n // place the locations in the proper order\n Square[] road = new Square[path.size()];\n for ( int i = 0; i < path.size(); i++ )\n road[i] = path.pop();\n\n return road;\n }",
"private List<Edge<T>> getPath(T target) {\n List<Edge<T>> path = new LinkedList<>();\n T step = target;\n // check if a path exists\n if (predecessors.get(step) == null) {\n return path;\n }\n while (predecessors.get(step) != null) {\n T endVertex = step;\n step = predecessors.get(step);\n T startVertex = step;\n path.add(getEdge(startVertex, endVertex));\n }\n // Put it into the correct order\n Collections.reverse(path);\n return path;\n }",
"private Stack path(Graph graph, GraphNode start, GraphNode end) throws GraphException {\n\t\tGraph g = graph;\n\t\tGraphNode b = start;\n\t\tGraphNode e = end;\n\t\tGraphNode temp;\n\t\tStack p;\n\n\t\t// mark the beginning point and push it to the stack.\n\t\tb.setMark(true);\n\t\tedgeStack.push(b);\n\n\t\t// check if the starting and end point are equal.\n\t\tif (b == e) {\n\t\t\treturn edgeStack;\n\t\t}\n\t\t// iterates until it reaches the end point\n\t\telse {\n\t\t\t// initializes edges to the edges incident on node b\n\t\t\tIterator<GraphEdge> edges = graph.incidentEdges(b);\n\n\t\t\t// iterates until it reaches the end of nodes\n\t\t\twhile (edges.hasNext()) {\n\t\t\t\ttemp = edges.next().secondEndpoint();\n\n\t\t\t\t// checks if the second point of the edge has been discovered\n\t\t\t\tif (temp.getMark() == false ) {\n\t\t\t\t\tp = path(g, temp, e);\n\n\t\t\t\t\t// if the path ends return null\n\t\t\t\t\tif (p != null) {\n\t\t\t\t\t\treturn p;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tedgeStack.pop();\n\t\t}\n\t\treturn null;\n\t}",
"public ArrayList<Vertex> getPath(Vertex target) {\n\t\tArrayList<Vertex> path = new ArrayList<Vertex>();\n\t\tVertex step = target;\n\t\t// check if a path exists\n\t\tif (predecessors.get(step) == null) {\n\t\t\treturn null;\n\t\t}\n\t\tpath.add(step);\n\t\twhile (predecessors.get(step) != null) {\n\t\t\tstep = predecessors.get(step);\n\t\t\tpath.add(step);\n\t\t}\n\t\t// Put it into the correct order\n\t\tCollections.reverse(path);\n\n\n\t\tVertex current=null;\n\t\tVertex next=null;\n\t\tint length = path.size();\n\t\tfor(int i=0;i<length-1;i++){\n current = path.get(i);\n\t\t\t next = path.get(i+1);\n\t\t\tif(!rapid && (nodeColor_map.get(current.getName()).equalsIgnoreCase(\"dB\")||\n\t\t\t\t\tnodeColor_map.get(next.getName()).equalsIgnoreCase(\"dB\")))\n\t\t\t\trapid = true;\n\t\t\troute_length+= edge_length_map.get(new Pair(current,next));\n\t\t}\n\n\t\treturn path;\n\t}",
"@Override\r\n\tpublic Path findSeaPath(Point start, Point end) {\n\t\treturn null;\r\n\t}",
"public List<Eventable> getShortestPath(StateVertex start, StateVertex end) {\n\t\treturn DijkstraShortestPath.findPathBetween(sfg, start, end);\n\t}",
"public LinkedList<Vertex> getPath(Vertex target) {\n LinkedList<Vertex> path = new LinkedList<Vertex>();\n Vertex step = target;\n // check if a path exists\n if (predecessors.get(step) == null) {\n return null;\n }\n path.add(step);\n while (predecessors.get(step) != null) {\n step = predecessors.get(step);\n path.add(step);\n }\n // Put it into the correct order\n Collections.reverse(path);\n return path;\n }",
"private List<Vertex> findPathForOutputAsset(Vertex endingVertex, GraphTraversalSource g, Vertex startingVertex) {\n //add null check for endingVertex\n if (endingVertex == null) {\n return null;\n }\n\n List<Vertex> endVertices = new ArrayList<>();\n try {\n if (isEndColumn(g, endingVertex)) {\n endVertices.add(endingVertex);\n } else {\n List<Vertex> nextVertices = g.V(endingVertex.id()).out(LINEAGE_MAPPING).toList();\n\n for (Vertex vertex : nextVertices) {\n if (vertex.equals(startingVertex)) {\n continue;\n }\n Optional.ofNullable(findPathForOutputAsset(vertex, g, endingVertex)).ifPresent(endVertices::addAll);\n }\n\n }\n return endVertices;\n } catch (Exception e) {\n if (log.isDebugEnabled()) {\n log.debug(VERTEX_NOT_FOUND, startingVertex.id(),\n startingVertex.property(PROPERTY_KEY_DISPLAY_NAME).value());\n }\n return null;\n }\n }",
"public Path findLandPath(Point start, Point end) {\n\t\treturn null;\r\n\t}",
"public String findFromToEnd(int end) {\n StringBuilder sb = new StringBuilder() ;\n ArrayList paths = new ArrayList() ;\n while (end != start) {\n\n paths.add(\"From \" + pred[end] + \" go to \" + end + \"\\n\") ;\n end = pred[end] ;\n\n }\n int count = paths.size() ;\n while (count > 0) {\n sb.append(paths.get(count-1)) ;\n count-- ;\n }\n return sb.toString() ;\n\n }",
"private List<Edge> getPath(Vertex source) {\n\t\tint [] predecessors = new ShortestPath().findShortestPath(this.residualNetwork, source);\n\t\tList<Edge> path = retrieveEdgesFromPredecessorArray(predecessors);\n\t\treturn path;\n\t}",
"public String getPath(String from, String to, String pathAlgo);",
"PathSegments getPath();",
"private void generatePath(List<Coordinate> source, List<Coordinate> path) {\n for (int i = 0; i < source.size() - 1; i++) {\n Graph graph = new Graph(getEdge(map));\n Coordinate start = source.get(i);\n Coordinate end = source.get(i + 1);\n graph.dijkstra(start);\n graph.printPath(end);\n for (Graph.Node node : graph.getPathReference()) {\n path.add(node.coordinate);\n }\n }\n }",
"ArrayList<Node> DFSIter( Graph graph, final Node start, final Node end)\n {\n boolean visited[] = new boolean[graph.numNodes];\n Stack<Node> stack = new Stack<Node>();\n Map< Node,Node> parentPath = new HashMap< Node,Node>(); \n stack.push(start);\n\n while ( !stack.isEmpty() )\n {\n Node currNode = stack.pop();\n // end loop when goal node is found\n if ( currNode == end )\n break;\n // If node has already been visited, skip it\n if ( visited[currNode.id] )\n continue;\n else\n {\n visited[currNode.id] = true;\n int numEdges = currNode.connectedNodes.size();\n\n for ( int i = 0; i < numEdges; i++ )\n {\n Node edgeNode = currNode.connectedNodes.get(i);\n if ( !visited[edgeNode.id] )\n {\n stack.push( edgeNode );\n parentPath.put( edgeNode, currNode);\n }\n }\n \n }\n }\n\n ArrayList<Node> path = new ArrayList<Node>();\n Node currNode = end;\n while ( currNode != null )\n {\n path.add(0, currNode);\n currNode = parentPath.get(currNode);\n }\n\n return path;\n }",
"public List<Vertex> getPathTo(int targetVertexPortnum){\n LinkedList<Vertex> path = new LinkedList<Vertex>();\n path.add(graph.getVertex(convertToString(targetVertexPortnum))); // use string version of the port num.\n \n while(targetVertexPortnum != this.initialVertexPortNum)\n {\n Vertex predecessor = graph.getVertex(this.predecessors.get(convertToString(targetVertexPortnum))); // use string version of the portnum.\n targetVertexPortnum = predecessor.getVertexPortNum(); // get the int representation of the vertex portnum.\n path.add(0, predecessor); // add the vertex to our shortest path.\n }\n \n return path; // return the shortest path to the target vertex.\n }",
"public static List<CampusGraph.Edges<String, String>> findPath(CampusGraph<String, String> cg, String start, String destination) {\n if (cg == null || start == null || destination == null) {\n throw new IllegalArgumentException();\n }\n Queue<String> visitedNodes = new LinkedList<>();\n Map<String, List<CampusGraph.Edges<String, String>>> paths = new HashMap<>();\n visitedNodes.add(start); // Add start to Q\n paths.put(start, new LinkedList<>()); // Add start->[] to M (start mapped to an empty list)\n\n while (!visitedNodes.isEmpty()) {\n String currentNode = visitedNodes.remove();\n if (currentNode.equals(destination)) { // found the path\n return paths.get(currentNode);\n } else {\n List<CampusGraph.Edges<String, String>> neighbors = cg.getAllChildren(currentNode);\n neighbors.sort(new Comparator<CampusGraph.Edges<String, String>>() {\n @Override\n public int compare(CampusGraph.Edges<String, String> o1, CampusGraph.Edges<String, String> o2) {\n int cmpEndNode = o1.getEndTag().compareTo(o2.getEndTag());\n if (cmpEndNode == 0) {\n return o1.getEdgeLabel().compareTo(o2.getEdgeLabel());\n }\n return cmpEndNode;\n }\n }); // ascending list. Sort characters and books names all at once??\n\n for (CampusGraph.Edges<String, String> e: neighbors) {\n String neighbor = e.getEndTag();\n if (!paths.containsKey(neighbor)) { // i.e. if the neighbor is unvisited\n List<CampusGraph.Edges<String, String>> pathCopy = new LinkedList<>(paths.get(currentNode));\n pathCopy.add(e);\n paths.put(neighbor, pathCopy); // add the path exclusive to this neighbor\n visitedNodes.add(neighbor); // then, mark the neighbor as visited\n }\n }\n }\n }\n return null; // No destination found\n }",
"List<V> getShortestPath(V vertex);",
"public List<String> getShortestRoute(String start, String end) {\n\t\tif (!vertices.contains(start)) return null;\n\t\tMap<String, Vertex> verticesWithDistance = new HashMap<String, Vertex>();\n\t\tVertex starting = new Vertex(start, 0);\n\t\tverticesWithDistance.put(start, starting);\n\t\tstarting.route.add(starting.name);\n\t\tfor (String v : vertices) {\n\t\t\tif (!v.equals(start))\n\t\t\t\tverticesWithDistance.put(v, new Vertex(v, -1));\n\t\t}\n\t\treturn searchByDijkstra(starting, end , verticesWithDistance);\n\t}",
"private NodePath<T> collectPathNodes( WeightedGraph<T> graph, Object startNodeId, Object endNodeId ) {\n\t\tArrayDeque<Node<T>> deque = new ArrayDeque<>( searchNodes.size() );\n\t\tNode<T> startNode = graph.getNode( startNodeId );\n\t\tNode<T> endNode = graph.getNode( endNodeId );\n\t\tSearchNode<T> node = getSearchNode( endNode );\n\n\t\t//\tkeep this before we flush the maps\n\t\tfinal int finalDistance = node.getDistance();\n\n\t\t//\twalk backwards through the \"previous\" links\n\t\tdo {\n\t\t\tdeque.push( node.getNode() );\n\t\t}\n\t\twhile ( (node = getSearchNode( node.getPrevious() )) != null && ! node.equals( startNode ) );\n\t\tdeque.push( startNode );\n\n\t\tclearSearchNodes();\n\t\treturn new NodePath<>( new ArrayList<>( deque ), finalDistance );\n\t}",
"public Path findPath( Mover mover, Vector2i start, Vector2i end ) {\n return findPath( mover, start.x, start.y, end.x, end.y );\n }",
"public List<Vertex> getShortestPathTo(Vertex target)\n {\n List<Vertex> path = new ArrayList<Vertex>();\n for (Vertex vertex = target; vertex != null; vertex = vertex.previous)\n path.add(vertex);\n Collections.reverse(path);\n return path;\n }",
"@Override\n\tpublic boolean findPath(PathfindingNode start, PathfindingNode end, ArrayList<PathfindingNode> path) \n\t{\n\t\tpath.clear();\n\t\t\n\t\t_visited.clear();\n\t\t_toVisit.clear();\n\t\t_parents.clear();\n\t\t_costsFromStart.clear();\n\t\t_totalCosts.clear();\n\n\t\t_costsFromStart.put(start, 0);\n\t\t_toVisit.add(start);\n\t\t_parents.put(start, null);\n\t\t\n\t\twhile (!_toVisit.isEmpty() && !_toVisit.contains(end))\n\t\t{\n\t\t\tPathfindingNode m = _toVisit.remove();\n\t\t\t\n\t\t\tint mCost = _costsFromStart.get(m);\n\t\t\t\n\t\t\tfor (int i = 0; i < m.getNeighbors().size(); ++i)\n\t\t\t{\n\t\t\t\tPathfindingNodeEdge n = m.getNeighbors().get(i);\n\t\t\t\tif (n.getNeighbor() != null && !_visited.contains(n.getNeighbor()))\n\t\t\t\t{\n\t\t\t\t\tint costFromSource = mCost + n.getCost();\n\t\t\t\t\tint totalCost = costFromSource + _estimator.estimate(n.getNeighbor(), end);\n\t\t\t\t\tif (!_toVisit.contains(n.getNeighbor()) || totalCost < _totalCosts.get(n.getNeighbor()))\n\t\t\t\t\t{\n\t\t\t\t\t\t_parents.put(n.getNeighbor(), m);\n\t\t\t\t\t\t_costsFromStart.put(n.getNeighbor(), costFromSource);\n\t\t\t\t\t\t_totalCosts.put(n.getNeighbor(), totalCost);\n\t\t\t\t\t\tif (_toVisit.contains(n.getNeighbor()))\n\t\t\t\t\t\t\t_toVisit.remove(n.getNeighbor());\n\t\t\t\t\t\t_toVisit.add(n.getNeighbor());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t_visited.add(m);\n\t\t}\n\t\t\n\t\tif (_toVisit.contains(end))\n\t\t{\n\t\t\t_reversePath.clear();\n\t\t\t\n\t\t\tPathfindingNode current = end;\n\t\t\twhile (current != null)\n\t\t\t{\n\t\t\t\t_reversePath.push(current);\n\t\t\t\tcurrent = _parents.get(current);\n\t\t\t}\n\t\t\t\n\t\t\twhile (!_reversePath.isEmpty())\n\t\t\t\tpath.add(_reversePath.pop());\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpath.add(start);\n\t\t\treturn false;\n\t\t}\n\t}",
"@Nullable\n public VertexPath<V> findAnyVertexPath(@Nonnull DirectedGraph<V, A> graph,\n V start, V goal) {\n Deque<V> vertices = new ArrayDeque<>();\n BackLinkWithArrow<V, A> current = breadthFirstSearch(graph, start, goal);\n if (current == null) {\n return null;\n }\n for (BackLinkWithArrow<V, A> i = current; i != null; i = i.parent) {\n vertices.addFirst(i.vertex);\n }\n return new VertexPath<>(vertices);\n }",
"private List<Node> getIntermediatePath(final Node source, final Node target) {\n if (P[source.id][target.id] == null) {\n return new ArrayList<Node>();\n }\n final List<Node> path = new ArrayList<Node>();\n path.addAll(getIntermediatePath(source, P[source.id][target.id]));\n path.add(P[source.id][target.id]);\n path.addAll(getIntermediatePath(P[source.id][target.id], target));\n return path;\n }",
"public void findShortestPath(String startName, String endName) {\n checkValidEndpoint(startName);\n checkValidEndpoint(endName);\n\n Vertex<String> start = vertices.get(startName);\n Vertex<String> end = vertices.get(endName);\n\n double totalDist; // totalDist must be update below\n\n Map<Vertex<String>, Double> distance = new HashMap<>();\n Map<Vertex<String>, Vertex<String>> previous = new HashMap<>();\n Set<Vertex<String>> explored = new HashSet<>();\n PriorityQueue<VertexDistancePair> pq = new PriorityQueue<>();\n\n\n\n addPQ(distance, start, pq, previous);\n\n\n\n dijkstraHelper(pq, end, explored, distance, previous);\n\n\n\n\n\n\n totalDist = distance.get(end);\n List<Edge<String>> path = getPath(end, start);\n printPath(path, totalDist);\n }",
"public void findPath(Vertex v, Graph g)\n {\n \tQueue<Vertex> q = new LinkedList<Vertex>();\n \tSet<String> visited= new HashSet<String>();\n \tSet<String> edges= new TreeSet<String>();\n \t\n \t \tq.add(v);\n \t \tvisited.add(v.name);\n \t \t\n \t \twhile(!q.isEmpty()){\n \t \t\tVertex vertex = q.poll();\n \t \t\t \n \t for(Edge adjEdge: vertex.adjEdge.values()){\n \t\t if(!visited.contains(adjEdge.adjVertex.name) && !adjEdge.adjVertex.isDown && !adjEdge.isDown){\n \t\t\t q.offer(adjEdge.adjVertex);\n \t\t\t visited.add(adjEdge.adjVertex.name);\n \t\t\t \n \t\t\t edges.add(adjEdge.adjVertex.name);\n \t\t\t \n \t\t }\n \t }\n \t \n \t }\n \t \tfor(String str: edges){\n \t\t System.out.print('\\t');\n \t\t System.out.println(str);\n \t }\n \t \t\n }",
"@Override\n public List dijkstrasShortestPath(T start, T end) {\n Vertex<T> origin = new Vertex<>(start);\n Vertex<T> destination = new Vertex<>(end);\n List<Vertex<T>> path;\n\n settledNodes = new HashSet<>();\n unSettledNodes = new HashSet<>();\n distancesBetweenNodes = new HashMap<>();\n predecessors = new HashMap<>();\n\n distancesBetweenNodes.put(origin,0);\n unSettledNodes.add(origin);\n\n while(unSettledNodes.size() > 0){\n Vertex<T> minimumWeightedVertex = getMinimum(unSettledNodes);\n settledNodes.add(minimumWeightedVertex);\n unSettledNodes.remove(minimumWeightedVertex);\n findMinimumDistance(minimumWeightedVertex);\n }\n path = getPath(destination);\n return path;\n\n }",
"ArrayList<Node> DFSRec(Graph graph, final Node start, final Node end )\n {\n ArrayList<Node> path = new ArrayList<Node>();\n\n if ( start == end )\n {\n return path;\n }\n\n boolean visited[] = new boolean[graph.numNodes];\n visited[start.id] = true;\n\n path.addAll(DFSRec_helper(graph, start, end, visited)); \n\n return path;\n }",
"ShortestPath(UndirectedWeightedGraph graph, String startNodeId, String endNodeId) throws NotFoundNodeException {\r\n\t\t\r\n\t\tif (!graph.containsNode(startNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, startNodeId);\r\n\t\t}\t\t\r\n\t\tif (!graph.containsNode(endNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, endNodeId);\r\n\t\t}\t\r\n\r\n\t\tsrc = startNodeId;\r\n\t\tdst = endNodeId;\r\n\t\t\r\n\t\tif (endNodeId.equals(startNodeId)) {\r\n\t\t\tlength = 0;\r\n\t\t\tnumOfPath = 1;\r\n\t\t\tArrayList<String> path = new ArrayList<String>();\r\n\t\t\tpath.add(startNodeId);\r\n\t\t\tpathList.add(path);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// create a HashMap of updated distance from the starting node to every node\r\n\t\t\t// initially it is 0, inf, inf, inf, ...\r\n\t\t\tHashMap<String, Double> distance = new HashMap<String, Double>();\t\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif (nodeId.equals(startNodeId)) {\r\n\t\t\t\t\t// the starting node will always have 0 distance from itself\r\n\t\t\t\t\tdistance.put(nodeId, 0.0);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// the others have initial distance is infinity\r\n\t\t\t\t\tdistance.put(nodeId, Double.MAX_VALUE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// a HashMap of preceding node of each node\r\n\t\t\tHashMap<String, HashSet<String>> precedence = new HashMap<String, HashSet<String>>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif ( nodeId.equals(startNodeId) ) {\r\n\t\t\t\t\tprecedence.put(nodeId, null);\t// the start node will have no preceding node\r\n\t\t\t\t}\r\n\t\t\t\telse { \r\n\t\t\t\t\tprecedence.put(nodeId, new HashSet<String>());\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\tSet<String> unvisitedNode = new HashSet<String>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tunvisitedNode.add(nodeId);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdouble minUnvisitedLength;\r\n\t\t\tString minUnvisitedNode;\r\n\t\t\t// run loop while not all node is visited\r\n\t\t\twhile ( unvisitedNode.size() != 0 ) {\r\n\t\t\t\t// find the unvisited node with minimum current distance in distance list\r\n\t\t\t\tminUnvisitedLength = Double.MAX_VALUE;\r\n\t\t\t\tminUnvisitedNode = \"\";\r\n\t\t\t\tfor (String nodeId : unvisitedNode) {\r\n\t\t\t\t\tif (distance.get(nodeId) < minUnvisitedLength) {\r\n\t\t\t\t\t\tminUnvisitedNode = nodeId;\r\n\t\t\t\t\t\tminUnvisitedLength = distance.get(nodeId); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// if there are no node that can be visited from the unvisitedNode, break the loop \r\n\t\t\t\tif (minUnvisitedLength == Double.MAX_VALUE) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// remove the node from unvisitedNode\r\n\t\t\t\tunvisitedNode.remove(minUnvisitedNode);\r\n\t\t\t\t\r\n\t\t\t\t// update the distance of its neighbors\r\n\t\t\t\tfor (Node neighborNode : graph.getNodeList().get(minUnvisitedNode).getNeighbors().keySet()) {\r\n\t\t\t\t\tdouble distanceFromTheMinNode = distance.get(minUnvisitedNode) + graph.getNodeList().get(minUnvisitedNode).getNeighbors().get(neighborNode).getWeight();\r\n\t\t\t\t\t// if the distance of the neighbor can be shorter from the current node, change \r\n\t\t\t\t\t// its details in distance and precedence\r\n\t\t\t\t\tif ( distanceFromTheMinNode < distance.get(neighborNode.getId()) ) {\r\n\t\t\t\t\t\tdistance.replace(neighborNode.getId(), distanceFromTheMinNode);\r\n\t\t\t\t\t\t// renew the precedence of the neighbor node\r\n\t\t\t\t\t\tprecedence.put(neighborNode.getId(), new HashSet<String>());\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (distanceFromTheMinNode == distance.get(neighborNode.getId())) {\r\n\t\t\t\t\t\t// unlike dijkstra's algorithm, multiple path should be update into the precedence\r\n\t\t\t\t\t\t// if from another node the distance is the same, add it to the precedence\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// if the current node in the process is the end node, we can stop the while loop here\r\n\t\t\t\tif (minUnvisitedNode == endNodeId) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (distance.get(endNodeId) == Double.MAX_VALUE) {\r\n\t\t\t\t// in case there is no shortest path between the 2 nodes\r\n\t\t\t\tlength = 0;\r\n\t\t\t\tnumOfPath = 0;\r\n\t\t\t\tpathList = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// other wise we have these information\r\n\t\t\t\tlength = distance.get(endNodeId);\r\n\t\t\t\t//numOfPath = this.getNumPath(precedence, startNodeId, endNodeId);\r\n\t\t\t\tpathList = this.findPathList(precedence, startNodeId, endNodeId);\r\n\t\t\t\tnumOfPath = pathList.size();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\t// END ELSE\t\t\r\n\t}",
"public Vertex getEnd()\n\t{\n\t\treturn end.copy();\n\t}",
"public static ExecutionResult getShortestPathBetweenTwoPeople(Universe universe, Node startNode, Node endNode) {\n ExecutionEngine engine = new ExecutionEngine(universe.getGraphDb());\n String query = \"START startNode=node(\" + startNode.getId() + \"), endNode=node(\" + endNode.getId() + \") MATCH shortestPath = shortestPath(startNode-[*..10]->endNode) RETURN shortestPath\";\n return engine.execute(query);\n }",
"@Override\r\n\tpublic ArrayList<E> getPath(E src, E dst) {\r\n\t\treturn graphForWarshall.getPath(src, dst);\r\n\t}",
"public ArrayList<Integer> path(int startVertex, int stopVertex) {\n// you supply the body of this method\n int start = startVertex;\n int stop = stopVertex;\n int previous;\n ArrayList<Integer> list = new ArrayList<>();\n HashMap<Integer, Integer> route = new HashMap<>();\n Stack<Integer> visited = new Stack<>();\n Stack<Integer> reverse = new Stack<>();\n int parent;\n if(!pathExists(startVertex,stopVertex)){\n return new ArrayList<Integer>();\n }\n else if(startVertex == stopVertex){\n list.add(startVertex);\n return list;\n }\n else{\n while(!neighbors(start).contains(stopVertex)){\n List neighbor = neighbors(start);\n for (Object a: neighbor) {\n if(!pathExists((int)a,stopVertex)){\n continue;\n }\n if(visited.contains(a)){\n continue;\n }\n else {\n route.put((int) a, start);\n visited.push(start);\n start = (int) a;\n break;\n }\n }\n }\n route.put(stopVertex,start);\n list.add(stopVertex);\n previous = route.get(stopVertex);\n list.add(previous);\n while(previous!=startVertex){\n int temp = route.get(previous);\n list.add(temp);\n previous = temp;\n }\n for(int i=0; i<list.size(); i++){\n reverse.push(list.get(i));\n }\n int i=0;\n while(!reverse.empty()){\n int temp = reverse.pop();\n list.set(i,temp);\n i++;\n }\n//list.add(startVertex);\n return list;\n }\n }",
"Path getPathFromNodeTo(Node destination);",
"public Iterable<DirectedEdge> pathTo(int v){\n\t\tvalidateVertex(v);\n\t\tif(!hasPathTo(v)) return null;\n\n\t\tLinkedStack<DirectedEdge> stack=new LinkedStack<>();\n\t\twhile(edgeTo[v]!=null){\n\t\t\tstack.push(edgeTo[v]);\n\t\t\tv=edgeTo[v].from();\n\t\t}\n\t\treturn stack;\n\t}",
"public LinkedList<City> getPath(City target) {\r\n\r\n\t\tLinkedList<City> path = new LinkedList<City>();\r\n \t\tCity step = target;\r\n\t\t// check if a path exists\r\n\t\tif (predecessors.get(step) == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tpath.add(step);\r\n\t\twhile (predecessors.get(step) != null) {\r\n\t\t\tstep = predecessors.get(step);\r\n\t\t\tpath.add(step);\r\n\t\t}\r\n\t\t// Put it into the correct order\r\n\t\tCollections.reverse(path);\r\n\t\treturn path;\r\n\t}",
"Iterable<DirectedEdge> pathTo(int v)\n\t{\n\t\tStack<DirectedEdge> path=new Stack<>();\n\t\tfor(DirectedEdge e=edgeTo[v]; e!=null; e=edgeTo[e.from()])\n\t\t{\n\t\t\tpath.push(e);\n\t\t}\n\t\treturn path;\n\t}",
"private Stack<MapLocation> returnPath(MapLocation goal, MapLocation start) {\n\t\tStack<MapLocation> path = new Stack<MapLocation>();\n\n\t\tMapLocation iter = goal;\n\t\twhile (iter.cameFrom != null) {\n\t\t\tpath.add(iter.cameFrom);\n\t\t\titer = iter.cameFrom;\n\t\t}\n\t\t// to remove start\n\n\t\tif (path.isEmpty()) {\n\t\t\treturn path;\n\t\t}\n\n\t\tpath.pop();\n\n\t\treturn path;\n\t}",
"public Iterable<Integer> pathTo(int v)\n {\n if (!hasPathTo(v)) return null;\n Stack<Integer> path = new Stack<Integer>();\n for (int x = v; x != s; x = edgeTo[x])\n path.push(x);\n path.push(s);\n return path;\n }",
"private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = new LinkedList<>();\n Path newPath = new Path(start, destination, newPathComposition);\n newPathComposition.add(seg);\n while (!seg.getOrigin().equals(start)) {\n Intersection s = seg.getOrigin();\n seg = pi.get(s);\n if(seg == null){\n throw new Exception();\n }\n newPathComposition.add(seg);\n }\n Collections.reverse(newPathComposition);\n newPath.setSegmentsOfPath(newPathComposition);\n return newPath;\n }",
"public ArrayList<Grid> findShortestPath(int startIndex,int endIndex){\r\n resetFValue();\r\n _startIndex = startIndex;\r\n _endIndex = endIndex;\r\n // add the first node into the open set first\r\n int currentF = findF(_startIndex);\r\n _map.get_grid(_startIndex).set_Fnum(currentF);\r\n _openSet.add(_startIndex);\r\n // call this recursive method to get the whole path\r\n findPath(_startIndex);\r\n setPath();\r\n return _path;\r\n }",
"@Override\r\n public List<V> shortestPath(V start, V destination) {\r\n Vertex a = null, b = null;\r\n try {\r\n Iterator<Vertex> vertexIterator = map.values().iterator();\r\n\r\n while (vertexIterator.hasNext()) {\r\n Vertex v = vertexIterator.next();\r\n if (start.compareTo(v.vertexName) == 0)\r\n a = v;\r\n if (destination.compareTo(v.vertexName) == 0)\r\n b = v;\r\n }\r\n if (a == null || b == null) {\r\n vertexIterator.next();\r\n }\r\n\r\n } catch (NoSuchElementException e) {\r\n throw e;\r\n }\r\n\r\n computePaths(map.get(start), destination);\r\n return getShortestPathTo(destination, start);\r\n }",
"public static ArrayList<String> getPaths(int rstart, int cstart, int rend, int cend){\n if(rstart==rend && cstart==cend){\n ArrayList<String> base = new ArrayList<>();\n base.add(\"\");\n return base;\n };\n\n ArrayList<String> allPaths = new ArrayList<>();\n\n if(rstart!=rend){\n for(int i=1 ;i<=rend-rstart; i++ ) {\n ArrayList<String> pathsVt = getPaths(rstart + i, cstart, rend, cend);\n for(String path:pathsVt){\n allPaths.add(i+\"v\"+path);\n }\n }\n\n }\n if(cstart!=cend){\n for(int i=1 ;i<=cend-cstart; i++ ) {\n ArrayList<String> pathsHz = getPaths(rstart , cstart+i, rend, cend);\n for(String path:pathsHz){\n allPaths.add(i+\"h\"+path);\n }\n }\n }\n if(rstart!=rend && cstart!=cend){\n int jump = (rend<cend)? rend-rstart : cend-cstart ;\n for(int i=1 ;i<=jump; i++ ) {\n ArrayList<String> pathsDg = getPaths(rstart + i, cstart+i, rend, cend);\n for(String path:pathsDg){\n allPaths.add(i+\"d\"+path);\n }\n }\n }\n\n return allPaths;\n }",
"public int doDijkstras(String startVertex, String endVertex, ArrayList<String> shortestPath)\r\n\t{\r\n\t\tif(!this.dataMap.containsKey(startVertex) || !this.dataMap.containsKey(endVertex))\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"Vertex does not exist in the graph!\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSet<String> visited = new HashSet<String>();\r\n\t\t\r\n\t\tPriorityQueue<Vertex> minDist = new PriorityQueue<Vertex>();\r\n\t\t\r\n\t\tVertex firstV = new Vertex(startVertex,startVertex,0);\r\n\t\tminDist.add(firstV);\r\n\t\t\r\n\t\tfor(String V : this.adjacencyMap.get(startVertex).keySet())\r\n\t\t{\r\n\t\t\tminDist.add(new Vertex(V,startVertex,this.getCost(startVertex, V)));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//map of vertexName --> VertexObject\r\n\t\tHashMap<String, Vertex> mapV = new HashMap<String,Vertex>();\r\n\t\tmapV.put(startVertex, firstV);\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Init keys-->costs\r\n\t\t */\r\n\t\tfor(String key : this.getVertices())\r\n\t\t{\r\n\t\t\tif(key.equals(startVertex))\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,0));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,Integer.MAX_VALUE));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t/*\r\n\t\t * Init List for shortest path\r\n\t\t */\r\n\t\tLinkedList<String> list = new LinkedList<String>();\r\n\t\tlist.add(startVertex);\r\n\r\n\t\tHashMap<String,List<String>> path = new HashMap<String,List<String>>();\r\n\t\tpath.put(startVertex, list);\r\n\t\t\r\n\t\twhile(!minDist.isEmpty())\r\n\t\t{\r\n\t\t\tVertex node = minDist.poll();\r\n\t\t\tString V = node.current;\r\n\t\t\tint minimum = node.cost;\r\n\t\t\tSystem.out.println(minDist.toString());\r\n\t\t\t\r\n\t\t\t\tvisited.add(V);\r\n\t\t\t\t\r\n\t\t\t\tTreeSet<String> adj = new TreeSet<String>(this.adjacencyMap.get(V).keySet());\r\n\t\t\t\t\r\n\t\t\t\tfor(String successor : adj)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(!visited.contains(successor) && !V.equals(successor))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint newCost = this.getCost(V, successor)+minimum;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(newCost < mapV.get(successor).cost)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tminDist.remove(mapV.get(successor));\r\n\t\t\t\t\t\t\t\tminDist.add(new Vertex(successor,V,newCost));\r\n\t\t\t\t\t\t\t\tmapV.put(successor, new Vertex(successor,V,newCost));\r\n\r\n\t\t\t\t\t\t\t\tLinkedList<String> newList = new LinkedList<String>(path.get(V));\r\n\t\t\t\t\t\t\t\tnewList.add(successor);\r\n\t\t\t\t\t\t\t\tpath.put(successor, newList);\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\t\r\n\t\t}\r\n\t\t\r\n\t\tint smallestPath = mapV.get(endVertex).cost == Integer.MAX_VALUE ? -1 : mapV.get(endVertex).cost;\r\n\t\t\r\n\t\tif(smallestPath == -1)\r\n\t\t{\r\n\t\t\tshortestPath.add(\"None\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(String node : path.get(endVertex))\r\n\t\t\t{\r\n\t\t\t\tshortestPath.add(node);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn smallestPath;\r\n\t}",
"List<Edge> getPath() throws NoPathFoundException;",
"void shortestPath( final VertexType fromNode, Integer node );",
"protected String printablePath(IVertex<String> target){\n\n String lineout = \"\";\n\n LinkedList<IVertex<String>> path = this.getPath(target);\n\n IVertex<String> previous = null;\n\n IVertex<String> next = null;\n\n if(path!=null) {\n Iterator<IVertex<String>> it = path.iterator();\n\n while (it.hasNext()) {\n\n previous = next;\n\n next = it.next();\n\n IWeightedEdge<String> prevedge = null;\n\n if(previous!=null && next!=null){\n prevedge = this.weightedGraph.getEdge(previous,next);\n }\n\n if(prevedge!=null)\n lineout+= \" \" +prevedge.getWeight() + \" \";\n\n lineout += \" \" + next.getValue() + \" \";\n }\n }\n return lineout;\n }",
"private List<Point> getPath(int index) {\n\t\t \n\t \n\t\t Node fromNode = oEdge.fromNode;\n\t\t Node toNode = oEdge.toNode;\n\t\t float x1 = fromNode.longitude;\n\t\t float x2 = toNode.longitude;\n\t\t float y1 = fromNode.latitude;\n\t\t float y2 = toNode.latitude;\n\t\t double slope, angle;\n\t\t if(x1!=x2) {\n\t\t\t slope = (y2-y1)/(x2-x1);\n\t\t\t \tangle = Math.atan(slope);\n\t\t\t \t} else {\n\t\t\t \t\tangle = Math.PI/2;\n\t\t\t \t}\n\t\t Double L = Math.sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));\n\t\t float offsetPixels=0;\n\t\t if(Math.toDegrees(angle)>Math.toDegrees(90)) {\n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=roadWidth*1/10;\n\t\t\t }\n\t\t\t \n\t\t } else {\n\t\t\t \n\t\t\t if (index==0){\n\t\t\t\t offsetPixels=-roadWidth*6/10;\n\t\t\t }\n\t\t\t else if(index==1){\n\t\t\t\t offsetPixels=-roadWidth*11/10;\n\t\t\t }\n\t\t\t else if(index==-1){\n\t\t\t\t offsetPixels=-roadWidth*1/10;\n\t\t\t }\n\t\t }\n\t\t \n\t\t // This is the first parallel line\n\t\t float x1p1 = x1 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float x2p1 = x2 + offsetPixels * (y2-y1) / L.floatValue();\n\t\t float y1p1 = y1 + offsetPixels * (x1-x2) / L.floatValue();\n\t\t float y2p1 = y2 + offsetPixels * (x1-x2) / L.floatValue();\n//\t\t if(oEdge.edgeID==16) {\n//\t\t\t System.out.println(\"testing\");\n//\t\t }\n\t\t \n\t\t Point P1 = new Point(x1p1,y1p1);\n\t\t Point P2 = new Point(x2p1,y2p1);\n\t\t List<Point> gP = GetPoints(P1, P2);\n\t\t return gP;\n\t \n\t}",
"public String findShortestRoute(char start, char finish) {\r\n PriorityQueue<Vertex> Q = new PriorityQueue<>(new Comparator<Vertex>() {\r\n @Override\r\n public int compare(Vertex v1, Vertex v2) {\r\n return Integer.compare(v1.getDistanceFromStart(), v2.getDistanceFromStart());\r\n }\r\n });\r\n\r\n Vertex startVert = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == start) {\r\n v.setDistanceFromStart(0);\r\n v.setPrevious(v);\r\n startVert = v;\r\n }\r\n else {\r\n v.setDistanceFromStart(Integer.MAX_VALUE);\r\n v.setPrevious(null);\r\n }\r\n Q.add(v);\r\n }\r\n if(startVert == null) {\r\n throw new IllegalArgumentException(\"start vertex is not in graph\");\r\n }\r\n\r\n Vertex finishVert = null;\r\n while(!Q.isEmpty()) {\r\n Vertex v = Q.remove(); // remove first vertex in queue, the shortest path has been found to this vertex\r\n if(v.getName() == finish) {\r\n finishVert = v;\r\n break; // finish quicker\r\n }\r\n for(Edge incidentEdge : v.getIncidentEdges()) {\r\n Vertex adjacentVertex = incidentEdge.getOppositeVertex(v);\r\n int alt = v.getDistanceFromStart() + incidentEdge.getDistance();\r\n if(alt < adjacentVertex.getDistanceFromStart()) { // if going through this edge shortens the route to adjacentVertex\r\n adjacentVertex.setDistanceFromStart(alt);\r\n adjacentVertex.setPrevious(v);\r\n Q.remove(adjacentVertex); // increase the priority of adjacent vertices if this vertex shortens their route\r\n Q.add(adjacentVertex);\r\n }\r\n }\r\n }\r\n \r\n // throw exception if finish vertex not found\r\n if(finishVert == null) {\r\n throw new IllegalArgumentException(\"finish vertex is not in graph\");\r\n }\r\n \r\n // build the return value by adding vertex names from finish to start,\r\n // reversing the string, then concatenating the distance\r\n StringBuilder sb = new StringBuilder();\r\n for(Vertex v = finishVert; v != startVert; v = v.getPrevious()) {\r\n sb.append(v.getName());\r\n }\r\n return sb.append(start).reverse().append(finishVert.getDistanceFromStart()).toString();\r\n }",
"public Iterable<Vertex> findShortestPath(Vertex v1, Vertex v2){\n\t\treturn null;\n\t}",
"int getPathCost(Coordinate end) {\n if (!graph.containsKey(end)) {\n // test use display point\n // System.err.printf(\"Graph doesn't contain end vertex \\\"%s\\\"\\n\", end);\n return Integer.MAX_VALUE;\n }\n int weight = Integer.MAX_VALUE;\n for (Coordinate key : graph.keySet()) {\n if (key.equals(end)) {\n weight = graph.get(key).dist;\n }\n }\n return weight;\n }",
"@Nullable\n public EdgePath<A> findAnyEdgePath(@Nonnull DirectedGraph<V, A> graph,\n V start, V goal) {\n Deque<A> arrows = new ArrayDeque<>();\n BackLinkWithArrow<V, A> current = breadthFirstSearch(graph, start, goal);\n if (current == null) {\n return null;\n }\n for (BackLinkWithArrow<V, A> i = current; i.arrow != null; i = i.parent) {\n arrows.addFirst(i.arrow);\n }\n return new EdgePath<>(arrows);\n }",
"public List<E> createEdgeListPath()\r\n/* */ {\r\n/* 146 */ List<E> path = new ArrayList();\r\n/* 147 */ AbstractPathElement<V, E> pathElement = this;\r\n/* */ \r\n/* */ \r\n/* 150 */ while (pathElement.getPrevEdge() != null) {\r\n/* 151 */ path.add(pathElement.getPrevEdge());\r\n/* */ \r\n/* 153 */ pathElement = pathElement.getPrevPathElement();\r\n/* */ }\r\n/* */ \r\n/* 156 */ Collections.reverse(path);\r\n/* */ \r\n/* 158 */ return path;\r\n/* */ }",
"public static int p413ComputeShortestPathNumber(Vertex start, Vertex end){\n\t Queue<Vertex> queue=new LinkedList<Vertex>();\n\t Map<Vertex, Status> statusMap=new HashMap<Vertex, Status>();\n\t Map<Vertex, Integer> levelMap=new HashMap<Vertex, Integer>();\n\t List<List<Vertex>> allLevelList=new LinkedList<List<Vertex>>();\n\t \n\t queue.offer(start);\n\t statusMap.put(start, Status.Queued);\n\t levelMap.put(start, 0);\n\t \n\t Vertex vertex;\n\t int lastLevel=-1;\n\t List<Vertex> levelList = null;\n\t\twhile ((vertex = queue.poll()) != null) {\n\t\t\tint currentLevel = levelMap.get(vertex);\n\n\t\t\tif (currentLevel != lastLevel) {\n\t\t\t\tlastLevel = currentLevel;\n\t\t\t\tlevelList = new LinkedList<Vertex>();\n\n\t\t\t\tallLevelList.add(levelList);\n\t\t\t}\n\n\t\t\tlevelList.add(vertex);\n\n\t\t\tif (vertex.equals(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tSet<Vertex> adjacentVertexes = vertex.getAdjacentVertexes();\n\t\t\tfor (Iterator iterator = adjacentVertexes.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex adjacent = (Vertex) iterator.next();\n\n\t\t\t\tif (statusMap.get(adjacent) == null) {\n\t\t\t\t\tqueue.offer(adjacent);\n\t\t\t\t\tstatusMap.put(adjacent, Status.Queued);\n\t\t\t\t\tlevelMap.put(adjacent, currentLevel + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t \n\t int max=Integer.MIN_VALUE;\n\t List<Vertex> targetList=new LinkedList<Vertex>();\n\t targetList.add(end);\n\t for(int index=lastLevel-1;index>0;index--){\n\t\t List<Vertex> lastLevelList = allLevelList.get(index);\n\t\t List<Vertex> tmpList=new LinkedList<Vertex>();\n\n\t\t int count=0;\n\t\t for (Iterator iterator = lastLevelList.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex lastLevelVertex = (Vertex) iterator.next();\n\t\t\t\tfor (Iterator iterator2 = targetList.iterator(); iterator2.hasNext();) {\n\t\t\t\t\tVertex vertex2 = (Vertex) iterator2.next();\n\t\t\t\t\tif(lastLevelVertex.getAdjacentVertexes().contains(vertex2)){\n\t\t\t\t\t count++;\n\t\t\t\t\t tmpList.add(lastLevelVertex);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t }\n\t\t \n\t\t targetList=tmpList;\n\t\t \n\t\t if(count>max){\n\t\t \tmax=count;\n\t\t }\n\t }\n\t \n\t return max;\n\t}",
"public static Vector2D fromLine(Point2D start, Point2D end) {\n \n double dx = end.getX() - start.getX();\n double dy = end.getY() - start.getY();\n return new Vector2D(dx,dy);\n \n }",
"private HashMap<String, Integer> getShortestPath(Node start, Node end){\n if(start.equals(end)) {\n return getShortestPath(start);\n }\n return getShortestPathBetweenDifferentNodes(start,end);\n }",
"public ArrayList<String> shortestPath(String u, String v)\n {\n ArrayList<String> path = new ArrayList<>();\n HashMap<String, Boolean> flag = new HashMap<>();\n HashMap<String, String> prev = new HashMap<>();\n\n Queue<GraphVertex> queue = new LinkedList<>();\n HashMap<String, Boolean> visited = new HashMap<>();\n\n GraphVertex src = graphVertexHashMap.get(u);\n flag.put(src.getVertexName(), true);\n queue.add(src);\n visited.put(src.getVertexName(), true);\n\n while(!queue.isEmpty()){\n GraphVertex node = queue.poll();\n\n HashMap<String, GraphVertex> edges = node.getOutDegrees();\n Iterator it = edges.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry pair = (Map.Entry)it.next();\n if(flag.get(pair.getKey()) == null || flag.get(pair.getKey()) == false){\n String vertex = (String)pair.getKey();\n flag.put(vertex, true);\n prev.put(vertex, node.getVertexName());\n queue.add(edges.get(pair.getKey()));\n }\n }\n\n }\n path = backTrackPath(prev, u, v);\n return path;\n }",
"private HashMap<String, Integer> getShortestPathBetweenDifferentNodes(Node start, Node end) {\n HashMap<Node, Node> parentChildMap = new HashMap<>();\n parentChildMap.put(start, null);\n\n // Shortest path between nodes\n HashMap<Node, Integer> shortestPathMap = new HashMap<>();\n\n for (Node node : getNodes()) {\n if (node == start)\n shortestPathMap.put(start, 0);\n else shortestPathMap.put(node, Integer.MAX_VALUE);\n }\n\n for (Edge edge : start.getEdges()) {\n shortestPathMap.put(edge.getDestination(), edge.getWeight());\n parentChildMap.put(edge.getDestination(), start);\n }\n\n while (true) {\n Node currentNode = closestUnvisitedNeighbour(shortestPathMap);\n\n if (currentNode == null) {\n return null;\n }\n\n // Save path to nearest unvisited node\n if (currentNode == end) {\n Node child = end;\n String path = end.getName();\n while (true) {\n Node parent = parentChildMap.get(child);\n if (parent == null) {\n break;\n }\n\n // Create path using previous(parent) and current(child) node\n path = parent.getName() + \"\" + path;\n child = parent;\n }\n HashMap<String,Integer> hm= new HashMap<>();\n hm.put(path, shortestPathMap.get(end));\n return hm;\n }\n currentNode.visit();\n\n // Go trough edges and find nearest\n for (Edge edge : currentNode.getEdges()) {\n if (edge.getDestination().isVisited())\n continue;\n\n if (shortestPathMap.get(currentNode) + edge.getWeight() < shortestPathMap.get(edge.getDestination())) {\n shortestPathMap.put(edge.getDestination(), shortestPathMap.get(currentNode) + edge.getWeight());\n parentChildMap.put(edge.getDestination(), currentNode);\n }\n }\n }\n }",
"public Path getShortestPath() {\n\t\tNodeRecord startRecord = new NodeRecord(start, null, 0.0f, (float) heuristic.estimate(start), Category.OPEN);\n\n\t\t// Initialize the open list\n\t\tPathFindingList open = new PathFindingList();\n\t\topen.addRecordByEstimatedTotalCost(startRecord);\n\t\trecords.set(Integer.parseInt(startRecord.node.id), startRecord);\n\t\tNodeRecord current = null;\n\t\t\n\t\t// Iterate through processing each node\n\t\twhile (!open.isEmpty()) {\n\t\t\t// Find smallest element in the open list using estimatedTotalCost\n\t\t\tcurrent = open.getSmallestNodeRecordByEstimatedTotalCost();\n\n\t\t\t// If its the goal node, terminate\n\t\t\tif (current.node.equals(end)) break;\n\n\t\t\t// Otherwise get its outgoing connections\n\t\t\tArrayList<DefaultWeightedEdge> connections = g.getConnections(current.node);\n\t\t\t\n\t\t\t// Loop through each connection\n\t\t\tfor (DefaultWeightedEdge connection : connections) {\n\t\t\t\t// Get the cost and other information for end node\n\t\t\t Vertex endNode = g.graph.getEdgeTarget(connection);\n\t\t\t int endNodeRecordIndex = Integer.parseInt(endNode.id);\n NodeRecord endNodeRecord = records.get(endNodeRecordIndex); // this is potentially null but we handle it\n\t\t\t\tdouble newEndNodeCost = current.costSoFar + g.graph.getEdgeWeight(connection);\n\t\t\t\tdouble endNodeHeuristic = 0;\n\t\t\t\t\n\t\t\t\t// if node is closed we may have to skip, or remove it from closed list\t\n\t\t\t\tif( endNodeRecord != null && endNodeRecord.category == Category.CLOSED ){ \n\t\t\t\t\t// Find the record corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If we didn't find a shorter route, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Otherwise remove it from closed list\n\t\t\t\t\trecords.get(endNodeRecordIndex).category = Category.OPEN;\n\n\t\t\t\t\t// Use node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Skip if node is open and we've not found a better route\n\t\t\t\t} else if( endNodeRecord != null && endNodeRecord.category == Category.OPEN ){ \n\t\t\t\t\t// Here we find the record in the open list corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If our route isn't better, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Use the node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Otherwise we know we've got an unvisited node, so make a new record\n\t\t\t\t} else { // if endNodeRecord.category == Category.UNVISITED\n\t\t\t\t endNodeRecord = new NodeRecord();\n\t\t\t\t\tendNodeRecord.node = endNode;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\n\t\t\t\t\t// Need to calculate heuristic since this is new\n\t\t\t\t\tendNodeHeuristic = heuristic.estimate(endNode);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// We're here if we need to update the node\n\t\t\t\t// update the cost, estimate, and connection\n\t\t\t\tendNodeRecord.costSoFar = newEndNodeCost;\n\t\t\t\tendNodeRecord.edge = connection;\n\t\t\t\tendNodeRecord.estimatedTotalCost = newEndNodeCost + endNodeHeuristic;\n\n\t\t\t\t// Add it to the open list\n\t\t\t\tif ( endNodeRecord.category != Category.OPEN ) {\n\t\t\t\t\topen.addRecordByEstimatedTotalCost(endNodeRecord);\n\t\t\t\t\tendNodeRecord.category = Category.OPEN;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// We’ve finished looking at the connections for\n\t\t\t// the current node, so add it to the closed list\n\t\t\t// and remove it from the open list\n\t\t\topen.removeRecord(current);\n\t\t\tcurrent.category = Category.CLOSED;\n\t\t\trecords.set(Integer.parseInt(current.node.id), current);\n\t\t}\n\t\t\n\t\t// We’re here if we’ve either found the goal, or\n\t\t// if we’ve no more nodes to search, find which.\n\t\tif (!current.node.equals(end)) {\n\t\t\t// Ran out of nodes without finding the goal, no solution\n\t\t\treturn null;\n\t\t} else {\n\t\t // Compile the list of connections in the path\n\t\t\tArrayList<DefaultWeightedEdge> path = new ArrayList<>();\n\n\t\t\twhile (!current.node.equals(start)) {\n\t\t\t\tpath.add(current.edge);\n\t\t\t\t// Set current (NodeRecord) to is source.\n\t\t\t\tcurrent = records.get( Integer.parseInt(g.graph.getEdgeSource(current.edge).id) );\n\t\t\t}\n\n\t\t\t// Reverse the path, and return it\n\t\t\tCollections.reverse(path);\n\t\t\treturn new Path(g, path);\n\t\t}\n\n\t}",
"public Iterator trip() {\n\t\tStack path = new Stack();\n\t\ttry {\n\t\t\t// initializes path to the stack of nodes from starting point to end\n\t\t\t// point\n\t\t\tpath = path(BusLines, BusLines.getNode(start), BusLines.getNode(dest));\n\n\t\t\t// checks if there is a path, otherwise return null\n\t\t\tif (path == null) {\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn path.iterator();\n\t\t\t}\n\t\t} catch (GraphException e) {\n\t\t\tSystem.out.println(\"Error: the path does not exists.\");\n\t\t}\n\t\treturn null;\n\n\t}",
"public static String pathModifier(String path, int start, int end) {\n\t\t\n\t\tStringBuilder builder = new StringBuilder(path);\n\t\tbuilder.delete(start, end);\n\t\tString newPath = builder.toString();\n\t\t\n\t\treturn newPath;\n\t\t\n\t}",
"public List<WeightedPoint> getPath()\n {\n return getPath(this.tail);\n }",
"public List<node_info> shortestPath(int src, int dest);",
"public Path shortestPath(Vertex a, Vertex b) {\n // If a or b aren't present in the set of vertices throw an exception\n if (!myGraph.containsKey(b) || !myGraph.containsKey(a)) {\n throw new IllegalArgumentException(\"One of the vertices isn't valid\");\n }\n /* Create a map of Vertices to VertexInfos. Fill it with VertexInfos for all\n vertices that each have no previous vertex and and a cost of INFINITY */\n Map<Vertex, VertexInfo> vertInfos = new HashMap<Vertex, VertexInfo>();\n for (Vertex v : vertices()) {\n vertInfos.put(v, new VertexInfo(v, null, INFINITY));\n }\n /* Create a PriorityQueue for VertexInfos */\n PriorityQueue<VertexInfo> viQueue = new PriorityQueue<VertexInfo>();\n /* Create a VertexInfo for the start Vertex 'a' with a cost of 0. This uses a copy of Vertex a&b for immutability */\n Vertex copyA = new Vertex(a.getLabel());\n Vertex copyB = new Vertex(b.getLabel());\n\n VertexInfo vi_a = new VertexInfo(copyA, null, 0);\n /* Add VerxtexInfo for a to PQ and map it to it's VertexInfo */\n viQueue.add(vi_a);\n vertInfos.put(a, vi_a);\n while(!viQueue.isEmpty()) {\n /* Remove the VertexInfo with lowest cost */\n Vertex curr = viQueue.poll().getVertex();\n /* Check all adjacent Vertices of curr Vertex */\n for (Vertex v : adjacentVertices(curr)) {\n /* Calculate cost to get to v through curr */\n int cost = vertInfos.get(curr).getCost() + edgeCost(curr, v);\n /* If cost through curr is lower than previous */\n if (cost < vertInfos.get(v).getCost()) {\n /* Remove v's VertexInfo from PQ */\n viQueue.remove(vertInfos.get(v));\n /* Overwrite previous value of v in map\n Add updated VerexInfo to PQ */\n VertexInfo vi = new VertexInfo(v, curr, cost);\n vertInfos.put(v,vi);\n viQueue.add(vi);\n }\n }\n }\n /* Create ArrayList for path */\n List<Vertex> path = new ArrayList<Vertex>();\n \n /* Add each vertex and it's previous vertex to path until a null vertex is reached */\n for (Vertex vert = copyB; vert != null; vert = vertInfos.get(vert).getPrev()) {\n path.add(vert);\n }\n\n /* Reverse order of path */ \n Collections.reverse(path);\n /* Create new Path object with corresponding parameters */\n if(path.contains(copyA)){\n Path pathToB = new Path(path, vertInfos.get(copyB).getCost());\n return pathToB;\n } else {\n return null;\n }\n }",
"public static Tile[] getPath(Tile origin, Tile target) {\n\t\tint dist = getDistance(origin, target);\n\t\tTile[] path = new Tile[dist];\n\t\tswitch (getDirection(origin, target)) {\n\t\t\tcase East:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX(), origin.getY() + (i + 1));\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase North:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX() - (i + 1), origin.getY());\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase NorthEast:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX() - (i + 1), origin.getY() + (i + 1));\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase NorthWest:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX() - (i + 1), origin.getY() - (i + 1));\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase South:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX() + (i + 1), origin.getY());\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase SouthEast:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX() + (i + 1), origin.getY() + (i + 1));\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase SouthWest:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX() + (i + 1), origin.getY() - (i + 1));\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t\tcase West:\n\t\t\t\tfor (int i = 0; i < dist; i++) {\n\t\t\t\t\tpath[i] = Chess.getBoard().getTile(origin.getX(), origin.getY() + (i + 1));\n\t\t\t\t}\n\t\t\t\treturn path;\n\t\t}\n\t\treturn null;\n\t}",
"public static List<Edge<String,String>> findPath(Graph<String,String> temp, String char1, String char2) {\n\t Node<String> firstCharacter = new Node<String>(char1);\n\t Node<String> endCharacter = new Node<String>(char2);\n\t Queue<Node<String>> worklist = new LinkedList<Node<String>>();\n\t Map<Node<String>, List<Edge<String,String>>> nodeToPath = \n\t \t\tnew HashMap<Node<String>, List<Edge<String,String>>>();\n\t \n\t worklist.add(firstCharacter);\n\t nodeToPath.put(firstCharacter, new ArrayList<Edge<String,String>>());\n\t \t \n\t // Uses BFS algorithm here\n\t while(!worklist.isEmpty()) {\n\t \tNode<String> current = worklist.remove();\n\t \tif(current.equals(endCharacter)) {\n\t \t\treturn nodeToPath.get(current);\n\t \t}\n\t \tfor(Edge<String,String> value : temp.getChildren(current)) { \n\t \t\tNode<String> valueChild = value.getChild(); \n\t \t if(!nodeToPath.containsKey(valueChild)) { \n\t \t \tList<Edge<String,String>> newPath = \n\t \t \t\t\tnew ArrayList<Edge<String,String>>(nodeToPath.get(current)); \n\t \t \tnewPath.add(value);\n\t \t \tnodeToPath.put(valueChild, newPath);\n\t \t \tworklist.add(valueChild);\n\t \t }\n\t \t}\n\n\t }\n\t //return pathToString(null, char1, char2);\n\t return null;\n\t}",
"public List<Long> getPath(Long start, Long finish){\n \n \n List<Long> res = new ArrayList<>();\n // auxiliary list\n List<DeixtraObj> serving = new ArrayList<>();\n// nearest vertexes map \n Map<Long,DeixtraObj> optimMap = new HashMap<>();\n// thread save reading \n synchronized (vertexes){ \n // preparation\n for (Map.Entry<Long, Vertex> entry : vertexes.entrySet()) {\n Vertex userVertex = entry.getValue();\n // If it`s start vertex weight = 0 and the nereast vertex is itself \n if(userVertex.getID().equals(start)){\n serving.add(new DeixtraObj(start, 0.0, start));\n }else{\n // For other vertex weight = infinity and the nereast vertex is unknown \n serving.add(new DeixtraObj(userVertex.getID(), Double.MAX_VALUE, null));\n }\n\n } \n // why auxiliary is not empty \n while(serving.size()>0 ){\n // sort auxiliary by weight \n Collections.sort(serving);\n\n \n // remove shortes fom auxiliary and put in to answer \n DeixtraObj minObj = serving.remove(0);\n optimMap.put(minObj.getID(), minObj);\n\n Vertex minVertex = vertexes.get(minObj.getID());\n\n // get all edges from nearest \n for (Map.Entry<Long, Edge> entry : minVertex.allEdges().entrySet()) {\n Long dest = entry.getKey();\n Double wieght = entry.getValue().getWeight();\n // by all remain vertexes \n for(DeixtraObj dx : serving){\n if(dx.getID().equals(dest)){\n // if in checking vertex weight more then nearest vertex weight plus path to cheking \n // then change in checking weight and nearest\n if( (minObj.getWeight()+wieght) < dx.getWeight()){\n dx.setNearest(minVertex.getID());\n dx.setWeight((minObj.getWeight()+wieght));\n }\n }\n }\n }\n\n }\n }\n \n // create output list\n res.add(finish);\n Long point = finish;\n while(!point.equals(start)){\n \n point = ((DeixtraObj)optimMap.get(point)).getNearest();\n res.add(point);\n }\n \n Collections.reverse(res);\n \n \n return res;\n \n }",
"public BlockPath getPath() {\n BlockPath path = new BlockPath();\n path.addPathNodeToPathFront(this);\n CourseComponent nodeAbove = parent;\n while (nodeAbove != null) {\n path.addPathNodeToPathFront(nodeAbove);\n nodeAbove = nodeAbove.getParent();\n }\n return path;\n }",
"private void computeShortestPath(){\n T current = start;\n boolean atEnd = false;\n while (!unvisited.isEmpty()&& !atEnd){\n int currentIndex = vertexIndex(current);\n LinkedList<T> neighbors = getUnvisitedNeighbors(current); // getting unvisited neighbors\n \n //what is this doing here???\n if (neighbors.isEmpty()){\n \n }\n \n // looping through to find distances from start to neighbors\n for (T neighbor : neighbors){ \n int neighborIndex = vertexIndex(neighbor); \n int d = distances[currentIndex] + getEdgeWeight(current, neighbor);\n \n if (d < distances[neighborIndex]){ // if this distance is less than previous distance\n distances[neighborIndex] = d;\n closestPredecessor[neighborIndex] = current; // now closest predecessor is current\n }\n }\n \n if (current.equals(end)){\n atEnd = true;\n }\n else{\n // finding unvisited node that is closest to start node\n T min = getMinUnvisited();\n if (min != null){\n unvisited.remove(min); // remove minimum neighbor from unvisited\n visited.add(min); // add minimum neighbor to visited\n current = min;\n }\n }\n }\n computePath();\n totalDistance = distances[vertexIndex(end)];\n }",
"private void backTrack(String start, AdjVertex end, Vertex parent){\r\n\t\tif(parent.name.compareToIgnoreCase(start) == 0){ \r\n\t\t\t//if we have found our way back to the start, then we print the result\r\n\t\t\tif(pathStack.isEmpty()){\r\n\t\t\t\tSystem.out.println(start + \" -- \" + end.name);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.print(start + \" -- \" + end.name);\r\n\t\t\t\twhile(!pathStack.isEmpty()){\r\n\t\t\t\t\tSystem.out.print(\" -- \" + pathStack.pop());\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if we still have to find our way back to the first person,\r\n\t\t//we push the end name into the stack, \r\n\t\telse{ \r\n\t\t\tpathStack.push(end.name);\r\n\t\t\tconnector(start, parent.name);\r\n\t\t}\r\n\t}",
"public Line drawLine(double startx, double starty, double endx, double endy, int[][] vertices) throws IOException {\n int ind = 0;\n int[] coord = new int[4];\n while (ind < 36) {\n if (vertices[ind][0] <= startx && startx <= vertices[ind][1] && vertices[ind][2] >= starty && starty >= vertices[ind][3]) {\n coord[0] = vertices[ind][4];\n coord[1] = vertices[ind][5];\n return endVali(coord[0],coord[1],endx,endy,vertices);\n }\n ind++;\n }\n return null;\n }",
"@Override\n public Path computePath(Position startPosition, Position endPosition) {\n start = new AStarNode(startPosition);\n start.setHeading(startPosition.getHeading());\n end = new AStarNode(endPosition);\n start.connect(end);\n end.connect(start);\n addNode(getNodes(), start);\n addNode(getNodes(), end);\n\t\n\t/*Calls aStar method*/\n Path result = aStar(start, end);\n\t\n\t/*Post processing*/\n setAngles(result);\n return result;\n }",
"public StringBuffer pathTo(int v) {\n if (!hasPathTo(v)) return null;\n StringBuffer pathInfo = new StringBuffer();\n for (SiteEdge e = edgeTo[v]; e != null; e = edgeTo[e.from()]) {\n \tpathInfo.insert(0, siteMap.get(e.from()).getSiteNo()+\",\");\n }\n pathInfo.append(siteMap.get(v).getSiteNo());\n return pathInfo;\n }",
"public static final ArrayList<Orientation> getPath(Map map, Entity startEntity, Location endLocation) {\n\n Location startLocation = startEntity.getLocation();\n TileLocationTuple startTuple = new TileLocationTuple(map.getTile(startLocation), startLocation);\n TileNode startNode = new TileNode(startTuple, null, map);\n\n TileLocationTuple endTuple = new TileLocationTuple(map.getTile(endLocation), endLocation);\n TileNode endNode = new TileNode(endTuple, null, map);\n\n RawAStarPathFinding pathing = new RawAStarPathFinding(startNode, endNode);\n pathing.run();\n\n if (!pathing.pathFound) {\n\n return new ArrayList<>();\n\n }\n\n return convertNodeToOrientation((TileNode) pathing.path(), startNode);\n\n }",
"public ArrayList<Location> getRoute(Location start, Location end) throws LocationNotFound{\n ArrayList<Location> route = new ArrayList<>();\n Location currentLoc = end;\n route.add(end);\n while (!currentLoc.equals(start)) {\n Location parentLoc = currentLoc.getParentLoc();\n route.add(parentLoc);\n currentLoc = parentLoc;\n }\n Collections.reverse(route);\n return route;\n }",
"public void findCheapestPath(int begin, int end) throws Exception\n\t{\n\t\tresult.clear();\n\t\tresult.add(begin);\n\t\tfindPath(begin, end);\n\t\tresult.add(end);\n\t}",
"private String computeAirPath(Position source, Position destination) {\n\n\t\t\t\tboolean toRight = false;\n\t\t\t\tboolean toBottom = false;\n\n\t\t\t\tint xSteps = source.getColumn() - destination.getColumn();\n\t\t\t\tint ySteps = source.getRow() - destination.getRow();\n\n\t\t\t\tif (xSteps < 0) {\n\t\t\t\t\ttoRight = true;\n\t\t\t\t}\n\n\t\t\t\tif (ySteps < 0) {\n\t\t\t\t\ttoBottom = true;\n\t\t\t\t}\n\n\t\t\t\tString path = \"\";\n\n\t\t\t\tfor (int i = 0; i < Math.abs(xSteps); i++) {\n\t\t\t\t\tif (toRight) {\n\t\t\t\t\t\tpath += \"\\u2192 \"; // right\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpath += \"\\u2190 \"; // left\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < Math.abs(ySteps); i++) {\n\t\t\t\t\tif (toBottom) {\n\t\t\t\t\t\tpath += \"\\u2193 \"; // down\n\t\t\t\t\t} else {\n\t\t\t\t\t\tpath += \"\\u2191 \"; // up\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (Math.abs(xSteps) + Math.abs(ySteps) == 0) {\n\t\t\t\t\tpath = \"in place\";\n\t\t\t\t}\n\n\t\t\t\treturn path;\n\t\t\t}",
"public Path findPathUsingPixels( Mover mover, Vector2f start, Vector2f end ) {\n return findPathUsingPixels( mover, start.x, start.y, end.x, end.y );\n }",
"IPath getPath();",
"public void addEdge(int start, int end);",
"ArrayList<Node> DFSRec_helper(Graph graph, final Node start, final Node end, boolean visited[] )\n {\n if ( start == end )\n {\n ArrayList<Node> path = new ArrayList<Node>();\n path.add(end);\n return path;\n }\n\n int numEdges = start.connectedNodes.size();\n for ( int i = 0; i < numEdges; i++ )\n {\n // Create a new array each loop and add the start node\n ArrayList<Node> path = new ArrayList<Node>();\n path.add(start);\n Node nodeToCheck = start.connectedNodes.get(i);\n\n if ( !visited[nodeToCheck.id] )\n {\n visited[nodeToCheck.id] = true;\n path.addAll(DFSRec_helper(graph, nodeToCheck, end, visited));\n }\n\n if ( path.get(path.size() - 1) == end )\n return path;\n \n // If the path doesnt contain 'end' then discard path, what was returned in recursive call\n }\n\n // return an empty array if path not found.\n ArrayList<Node> path = new ArrayList<Node>();\n\n return path;\n\n }",
"public RMPath getPathInBounds() { return getPath().getPathInRect(getBoundsInside()); }",
"private void setPath(){\r\n // get the reversed path\r\n ArrayList<Grid> reversedPath = new ArrayList<>();\r\n int index = _endIndex;\r\n reversedPath.add(_map.get_grid(index));\r\n while(index != _startIndex){\r\n index = _map.get_grid(index).get_parent();\r\n reversedPath.add(_map.get_grid(index));\r\n }\r\n\r\n // get the final path in the correct order\r\n int length = reversedPath.size();\r\n for(int i=length-1;i>=0;i--){\r\n _path.add(reversedPath.get(i));\r\n }\r\n }",
"List<Point> getPath(int grid[][], Point src, Point dest);"
] | [
"0.8078013",
"0.751707",
"0.73941326",
"0.7259412",
"0.691277",
"0.6863506",
"0.6786473",
"0.6694486",
"0.66305524",
"0.6605195",
"0.6602964",
"0.6585401",
"0.65777314",
"0.6517653",
"0.6514452",
"0.6501205",
"0.64661336",
"0.6445873",
"0.6426506",
"0.6327093",
"0.6303019",
"0.6299899",
"0.6275484",
"0.6252579",
"0.61707973",
"0.61495",
"0.61191404",
"0.6112827",
"0.60910654",
"0.60741144",
"0.6067234",
"0.6037714",
"0.602844",
"0.60260355",
"0.60248613",
"0.60176533",
"0.5952951",
"0.59276885",
"0.59206593",
"0.5918863",
"0.58765715",
"0.5871901",
"0.5865165",
"0.58603376",
"0.5839668",
"0.5825824",
"0.5813776",
"0.5761497",
"0.5748934",
"0.5748029",
"0.5740964",
"0.572357",
"0.5715589",
"0.56705785",
"0.5653172",
"0.56510663",
"0.5647274",
"0.56417507",
"0.5626379",
"0.56225777",
"0.561921",
"0.56087065",
"0.5584513",
"0.5565195",
"0.55607",
"0.55597204",
"0.55555326",
"0.5554078",
"0.5547174",
"0.5539445",
"0.55303407",
"0.54979265",
"0.54887885",
"0.5484335",
"0.54826194",
"0.54787827",
"0.5472839",
"0.54708636",
"0.5465278",
"0.54546815",
"0.5447219",
"0.5443352",
"0.5430657",
"0.5428465",
"0.5423419",
"0.54019195",
"0.54014486",
"0.5395539",
"0.5379098",
"0.5376848",
"0.53748256",
"0.5373621",
"0.53609604",
"0.5357573",
"0.5355203",
"0.53496975",
"0.5343218",
"0.53406864",
"0.5338481",
"0.5333936"
] | 0.63000613 | 21 |
Returns the cost of the shortest path from the start vertex to the end vertex where cost is defined by the sum of the weights of all the edges that connects the path as defined by the weighing object. | public double getCost(int endId) throws IllegalArgumentException, IllegalStateException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getPathCost(Coordinate end) {\n if (!graph.containsKey(end)) {\n // test use display point\n // System.err.printf(\"Graph doesn't contain end vertex \\\"%s\\\"\\n\", end);\n return Integer.MAX_VALUE;\n }\n int weight = Integer.MAX_VALUE;\n for (Coordinate key : graph.keySet()) {\n if (key.equals(end)) {\n weight = graph.get(key).dist;\n }\n }\n return weight;\n }",
"private void computeShortestPath(){\n T current = start;\n boolean atEnd = false;\n while (!unvisited.isEmpty()&& !atEnd){\n int currentIndex = vertexIndex(current);\n LinkedList<T> neighbors = getUnvisitedNeighbors(current); // getting unvisited neighbors\n \n //what is this doing here???\n if (neighbors.isEmpty()){\n \n }\n \n // looping through to find distances from start to neighbors\n for (T neighbor : neighbors){ \n int neighborIndex = vertexIndex(neighbor); \n int d = distances[currentIndex] + getEdgeWeight(current, neighbor);\n \n if (d < distances[neighborIndex]){ // if this distance is less than previous distance\n distances[neighborIndex] = d;\n closestPredecessor[neighborIndex] = current; // now closest predecessor is current\n }\n }\n \n if (current.equals(end)){\n atEnd = true;\n }\n else{\n // finding unvisited node that is closest to start node\n T min = getMinUnvisited();\n if (min != null){\n unvisited.remove(min); // remove minimum neighbor from unvisited\n visited.add(min); // add minimum neighbor to visited\n current = min;\n }\n }\n }\n computePath();\n totalDistance = distances[vertexIndex(end)];\n }",
"public int doDijkstras(String startVertex, String endVertex, ArrayList<String> shortestPath)\r\n\t{\r\n\t\tif(!this.dataMap.containsKey(startVertex) || !this.dataMap.containsKey(endVertex))\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"Vertex does not exist in the graph!\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tSet<String> visited = new HashSet<String>();\r\n\t\t\r\n\t\tPriorityQueue<Vertex> minDist = new PriorityQueue<Vertex>();\r\n\t\t\r\n\t\tVertex firstV = new Vertex(startVertex,startVertex,0);\r\n\t\tminDist.add(firstV);\r\n\t\t\r\n\t\tfor(String V : this.adjacencyMap.get(startVertex).keySet())\r\n\t\t{\r\n\t\t\tminDist.add(new Vertex(V,startVertex,this.getCost(startVertex, V)));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//map of vertexName --> VertexObject\r\n\t\tHashMap<String, Vertex> mapV = new HashMap<String,Vertex>();\r\n\t\tmapV.put(startVertex, firstV);\t\r\n\t\t\r\n\t\t/*\r\n\t\t * Init keys-->costs\r\n\t\t */\r\n\t\tfor(String key : this.getVertices())\r\n\t\t{\r\n\t\t\tif(key.equals(startVertex))\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,0));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmapV.put(key, new Vertex(key,null,Integer.MAX_VALUE));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t/*\r\n\t\t * Init List for shortest path\r\n\t\t */\r\n\t\tLinkedList<String> list = new LinkedList<String>();\r\n\t\tlist.add(startVertex);\r\n\r\n\t\tHashMap<String,List<String>> path = new HashMap<String,List<String>>();\r\n\t\tpath.put(startVertex, list);\r\n\t\t\r\n\t\twhile(!minDist.isEmpty())\r\n\t\t{\r\n\t\t\tVertex node = minDist.poll();\r\n\t\t\tString V = node.current;\r\n\t\t\tint minimum = node.cost;\r\n\t\t\tSystem.out.println(minDist.toString());\r\n\t\t\t\r\n\t\t\t\tvisited.add(V);\r\n\t\t\t\t\r\n\t\t\t\tTreeSet<String> adj = new TreeSet<String>(this.adjacencyMap.get(V).keySet());\r\n\t\t\t\t\r\n\t\t\t\tfor(String successor : adj)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(!visited.contains(successor) && !V.equals(successor))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\tint newCost = this.getCost(V, successor)+minimum;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif(newCost < mapV.get(successor).cost)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tminDist.remove(mapV.get(successor));\r\n\t\t\t\t\t\t\t\tminDist.add(new Vertex(successor,V,newCost));\r\n\t\t\t\t\t\t\t\tmapV.put(successor, new Vertex(successor,V,newCost));\r\n\r\n\t\t\t\t\t\t\t\tLinkedList<String> newList = new LinkedList<String>(path.get(V));\r\n\t\t\t\t\t\t\t\tnewList.add(successor);\r\n\t\t\t\t\t\t\t\tpath.put(successor, newList);\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\t\r\n\t\t}\r\n\t\t\r\n\t\tint smallestPath = mapV.get(endVertex).cost == Integer.MAX_VALUE ? -1 : mapV.get(endVertex).cost;\r\n\t\t\r\n\t\tif(smallestPath == -1)\r\n\t\t{\r\n\t\t\tshortestPath.add(\"None\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor(String node : path.get(endVertex))\r\n\t\t\t{\r\n\t\t\t\tshortestPath.add(node);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn smallestPath;\r\n\t}",
"public Path getShortestPath() {\n\t\tNodeRecord startRecord = new NodeRecord(start, null, 0.0f, (float) heuristic.estimate(start), Category.OPEN);\n\n\t\t// Initialize the open list\n\t\tPathFindingList open = new PathFindingList();\n\t\topen.addRecordByEstimatedTotalCost(startRecord);\n\t\trecords.set(Integer.parseInt(startRecord.node.id), startRecord);\n\t\tNodeRecord current = null;\n\t\t\n\t\t// Iterate through processing each node\n\t\twhile (!open.isEmpty()) {\n\t\t\t// Find smallest element in the open list using estimatedTotalCost\n\t\t\tcurrent = open.getSmallestNodeRecordByEstimatedTotalCost();\n\n\t\t\t// If its the goal node, terminate\n\t\t\tif (current.node.equals(end)) break;\n\n\t\t\t// Otherwise get its outgoing connections\n\t\t\tArrayList<DefaultWeightedEdge> connections = g.getConnections(current.node);\n\t\t\t\n\t\t\t// Loop through each connection\n\t\t\tfor (DefaultWeightedEdge connection : connections) {\n\t\t\t\t// Get the cost and other information for end node\n\t\t\t Vertex endNode = g.graph.getEdgeTarget(connection);\n\t\t\t int endNodeRecordIndex = Integer.parseInt(endNode.id);\n NodeRecord endNodeRecord = records.get(endNodeRecordIndex); // this is potentially null but we handle it\n\t\t\t\tdouble newEndNodeCost = current.costSoFar + g.graph.getEdgeWeight(connection);\n\t\t\t\tdouble endNodeHeuristic = 0;\n\t\t\t\t\n\t\t\t\t// if node is closed we may have to skip, or remove it from closed list\t\n\t\t\t\tif( endNodeRecord != null && endNodeRecord.category == Category.CLOSED ){ \n\t\t\t\t\t// Find the record corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If we didn't find a shorter route, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Otherwise remove it from closed list\n\t\t\t\t\trecords.get(endNodeRecordIndex).category = Category.OPEN;\n\n\t\t\t\t\t// Use node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Skip if node is open and we've not found a better route\n\t\t\t\t} else if( endNodeRecord != null && endNodeRecord.category == Category.OPEN ){ \n\t\t\t\t\t// Here we find the record in the open list corresponding to the endNode\n\t\t\t\t\tendNodeRecord = records.get(endNodeRecordIndex);\n\n\t\t\t\t\t// If our route isn't better, skip\n\t\t\t\t\tif (endNodeRecord.costSoFar <= newEndNodeCost) continue;\n\n\t\t\t\t\t// Use the node's old cost values to calculate its heuristic to save computation\n\t\t\t\t\tendNodeHeuristic = endNodeRecord.estimatedTotalCost - endNodeRecord.costSoFar;\n\n\t\t\t\t// Otherwise we know we've got an unvisited node, so make a new record\n\t\t\t\t} else { // if endNodeRecord.category == Category.UNVISITED\n\t\t\t\t endNodeRecord = new NodeRecord();\n\t\t\t\t\tendNodeRecord.node = endNode;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\n\t\t\t\t\t// Need to calculate heuristic since this is new\n\t\t\t\t\tendNodeHeuristic = heuristic.estimate(endNode);\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\t// We're here if we need to update the node\n\t\t\t\t// update the cost, estimate, and connection\n\t\t\t\tendNodeRecord.costSoFar = newEndNodeCost;\n\t\t\t\tendNodeRecord.edge = connection;\n\t\t\t\tendNodeRecord.estimatedTotalCost = newEndNodeCost + endNodeHeuristic;\n\n\t\t\t\t// Add it to the open list\n\t\t\t\tif ( endNodeRecord.category != Category.OPEN ) {\n\t\t\t\t\topen.addRecordByEstimatedTotalCost(endNodeRecord);\n\t\t\t\t\tendNodeRecord.category = Category.OPEN;\n\t\t\t\t\trecords.set(endNodeRecordIndex, endNodeRecord);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t// We’ve finished looking at the connections for\n\t\t\t// the current node, so add it to the closed list\n\t\t\t// and remove it from the open list\n\t\t\topen.removeRecord(current);\n\t\t\tcurrent.category = Category.CLOSED;\n\t\t\trecords.set(Integer.parseInt(current.node.id), current);\n\t\t}\n\t\t\n\t\t// We’re here if we’ve either found the goal, or\n\t\t// if we’ve no more nodes to search, find which.\n\t\tif (!current.node.equals(end)) {\n\t\t\t// Ran out of nodes without finding the goal, no solution\n\t\t\treturn null;\n\t\t} else {\n\t\t // Compile the list of connections in the path\n\t\t\tArrayList<DefaultWeightedEdge> path = new ArrayList<>();\n\n\t\t\twhile (!current.node.equals(start)) {\n\t\t\t\tpath.add(current.edge);\n\t\t\t\t// Set current (NodeRecord) to is source.\n\t\t\t\tcurrent = records.get( Integer.parseInt(g.graph.getEdgeSource(current.edge).id) );\n\t\t\t}\n\n\t\t\t// Reverse the path, and return it\n\t\t\tCollections.reverse(path);\n\t\t\treturn new Path(g, path);\n\t\t}\n\n\t}",
"@Override\n public List dijkstrasShortestPath(T start, T end) {\n Vertex<T> origin = new Vertex<>(start);\n Vertex<T> destination = new Vertex<>(end);\n List<Vertex<T>> path;\n\n settledNodes = new HashSet<>();\n unSettledNodes = new HashSet<>();\n distancesBetweenNodes = new HashMap<>();\n predecessors = new HashMap<>();\n\n distancesBetweenNodes.put(origin,0);\n unSettledNodes.add(origin);\n\n while(unSettledNodes.size() > 0){\n Vertex<T> minimumWeightedVertex = getMinimum(unSettledNodes);\n settledNodes.add(minimumWeightedVertex);\n unSettledNodes.remove(minimumWeightedVertex);\n findMinimumDistance(minimumWeightedVertex);\n }\n path = getPath(destination);\n return path;\n\n }",
"@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn Double.parseDouble(dwg.getNode(dest).getInfo());\n\t}",
"@Override\n\tpublic List<Path> getShortestRoute(Location src, Location dest, String edgePropertyName) {\n\t\t//array to keep track of visited vertexes\n\t\tboolean[] visited = new boolean[locations.size()];\n\t\t//array to store weights\n\t\tdouble[] weight = new double[locations.size()];\n\t\t//array to store predecessors\n\t\tLocation[] pre = new Location[locations.size()];\n\t\t//creates priority queue\n\t\tPriorityQueue<LocWeight> pq = new PriorityQueue<LocWeight>();\n\t\t// initializes every vertex misted mark to false\n\t\tfor (int i = 0; i < visited.length; i++)\n\t\t\tvisited[i] = false;\n\t\t// initializes every vertex's total weight to infinity\n\t\tfor (int i = 0; i < weight.length; i++)\n\t\t\tweight[i] = Double.POSITIVE_INFINITY;\n\t\t// initializes every vertex's predecessor to null\n\t\tfor (int i = 0; i < pre.length; i++)\n\t\t\tpre[i] = null;\n\t\t//sets start vertex's total weight to 0\n\t\tweight[locations.indexOf(src)] = 0;\n\t\t//insert start vertex in priroty queue\n\t\tpq.add(new LocWeight(src, 0.0));\n\t\t\n\t\tString[] edgeNames = getEdgePropertyNames();\n\t\tint indexProp = 0;\n\t\tfor (int i = 0; i < edgeNames.length; i++) {\n\t\t\tif (edgeNames[i].equalsIgnoreCase(edgePropertyName))\n\t\t\t\tindexProp = i;\n\t\t}\n\t\twhile (!pq.isEmpty()) {\n\t\t\tLocWeight c = pq.remove();\n\t\t\t//set C's visited mark to true\n\t\t\tvisited[locations.indexOf(c)] = true;\n\n\t\t\tList<Location> neighbors = getNeighbors(c.getLocation());\n\t\t\t//for each unvisited successor adjacent to C\n\t\t\tfor (int i = 0; i < neighbors.size(); i++) {\n\t\t\t\tif (visited[locations.indexOf(neighbors.get(i))] == false) {\n\t\t\t\t\t//change successor's total weight to equal C's weight + edge weight from C to successor\n\t\t\t\t\tweight[locations.indexOf(neighbors.get(i))] = c.getWeight() + getEdgeIfExists(c.getLocation(), neighbors.get(i)).getProperties().get(indexProp);\n\t\t\t\t\tpre[locations.indexOf(neighbors.get(i))] = c.getLocation();\n\t\t\t\t\tLocWeight succ = new LocWeight(neighbors.get(i), weight[locations.indexOf(neighbors.get(i))]);\n\t\t\t\t\t//if successor is already in pq, update its total weight\n\t\t\t\t\tif (pq.contains(succ)) {\n\t\t\t\t\t\tpq.remove(succ);\n\t\t\t\t\t}\n\t\t\t\t\t//if not already there, add\n\t\t\t\t\tpq.add(succ);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\n\n\t\t}\n\t\t\n\t\tArrayList<Path> path = new ArrayList<Path>();\n\t\t//find predecessor of each vertex and construct shortest path then return it\n\t\tLocation curr1 = dest;\n\t\twhile (pre[locations.indexOf(curr1)] != null) {\n\t\t\tpath.add(getEdgeIfExists(pre[locations.indexOf(curr1)], curr1));\n\t\t\tcurr1 = pre[locations.indexOf(curr1)];\n\t\t}\n\t\t//to show path from the start\n\t\tfor (int i = path.size() - 1; i >= 0; i--)\n\t\t\tpath.add(path.remove(i));\n\n\n\t\treturn path;\n\t}",
"@Nullable\n public EdgePath<A> findShortestEdgePath(DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n\n if (graph instanceof IntDirectedGraph) {\n @SuppressWarnings(\"unchecked\")\n AttributedIntDirectedGraph<V,A> intGraph = (AttributedIntDirectedGraph<V,A>) graph;\n int startIndex = -1, goalIndex = -1;\n {int i=0;\n for (V v:graph.getVertices()) {\n if (v == start) {\n startIndex = i;\n if (goalIndex != -1) {\n break;\n }\n }\n if (v == goal) {\n goalIndex = i;\n if (startIndex != -1) {\n break;\n }\n }\n i++;\n }}\n return findIntShortestEdgePath(intGraph, startIndex, goalIndex, costf);\n } else {\n return doFindShortestEdgePath(graph, start, goal, costf);\n }\n }",
"public static <N,E> ShortestPath<N, E> calculateFor(IWeightedGraph<N, E> g, int startNode){\n\t\treturn new ShortestPath<>(g, startNode);\n\t}",
"@Nullable\n public VertexPath<V> findShortestVertexPath(DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n if (graph instanceof IntDirectedGraph) {\n return doFindIntShortestVertexPath(graph, start, goal, costf);\n } else {\n return doFindShortestVertexPath(graph, start, goal, costf);\n }\n }",
"public void findShortestPath(String startName, String endName) {\n checkValidEndpoint(startName);\n checkValidEndpoint(endName);\n\n Vertex<String> start = vertices.get(startName);\n Vertex<String> end = vertices.get(endName);\n\n double totalDist; // totalDist must be update below\n\n Map<Vertex<String>, Double> distance = new HashMap<>();\n Map<Vertex<String>, Vertex<String>> previous = new HashMap<>();\n Set<Vertex<String>> explored = new HashSet<>();\n PriorityQueue<VertexDistancePair> pq = new PriorityQueue<>();\n\n\n\n addPQ(distance, start, pq, previous);\n\n\n\n dijkstraHelper(pq, end, explored, distance, previous);\n\n\n\n\n\n\n totalDist = distance.get(end);\n List<Edge<String>> path = getPath(end, start);\n printPath(path, totalDist);\n }",
"private static void computePaths(Vertex source) {\n source.minDistance = 0;\n // retrieves with log(n) time\n PriorityQueue<Vertex> vertexPriorityQueue = new PriorityQueue<>();\n\n //BFS traversal\n vertexPriorityQueue.add(source);\n\n // O((v + e) * log(v))\n while (!vertexPriorityQueue.isEmpty()) {\n // this poll always returns the shortest distance vertex at log(v) time\n Vertex vertex = vertexPriorityQueue.poll();\n\n //visit each edge exiting vertex (adjacencies)\n for (Edge edgeInVertex : vertex.adjacencies) {\n // calculate new distance between edgeInVertex and target\n Vertex targetVertex = edgeInVertex.target;\n double edgeWeightForThisVertex = edgeInVertex.weight;\n double distanceThruVertex = vertex.minDistance + edgeWeightForThisVertex;\n if (distanceThruVertex < targetVertex.minDistance) {\n // modify the targetVertex with new calculated minDistance and previous vertex\n // by removing the old vertex and add new vertex with updates\n vertexPriorityQueue.remove(targetVertex);\n targetVertex.minDistance = distanceThruVertex;\n // update previous with the shortest distance vertex\n targetVertex.previous = vertex;\n vertexPriorityQueue.add(targetVertex);// adding takes log(v) time because needs to heapify\n }\n }\n }\n }",
"ShortestPath(UndirectedWeightedGraph graph, String startNodeId, String endNodeId) throws NotFoundNodeException {\r\n\t\t\r\n\t\tif (!graph.containsNode(startNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, startNodeId);\r\n\t\t}\t\t\r\n\t\tif (!graph.containsNode(endNodeId)) {\r\n\t\t\tthrow new NotFoundNodeException(graph, endNodeId);\r\n\t\t}\t\r\n\r\n\t\tsrc = startNodeId;\r\n\t\tdst = endNodeId;\r\n\t\t\r\n\t\tif (endNodeId.equals(startNodeId)) {\r\n\t\t\tlength = 0;\r\n\t\t\tnumOfPath = 1;\r\n\t\t\tArrayList<String> path = new ArrayList<String>();\r\n\t\t\tpath.add(startNodeId);\r\n\t\t\tpathList.add(path);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// create a HashMap of updated distance from the starting node to every node\r\n\t\t\t// initially it is 0, inf, inf, inf, ...\r\n\t\t\tHashMap<String, Double> distance = new HashMap<String, Double>();\t\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif (nodeId.equals(startNodeId)) {\r\n\t\t\t\t\t// the starting node will always have 0 distance from itself\r\n\t\t\t\t\tdistance.put(nodeId, 0.0);\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\t// the others have initial distance is infinity\r\n\t\t\t\t\tdistance.put(nodeId, Double.MAX_VALUE);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// a HashMap of preceding node of each node\r\n\t\t\tHashMap<String, HashSet<String>> precedence = new HashMap<String, HashSet<String>>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tif ( nodeId.equals(startNodeId) ) {\r\n\t\t\t\t\tprecedence.put(nodeId, null);\t// the start node will have no preceding node\r\n\t\t\t\t}\r\n\t\t\t\telse { \r\n\t\t\t\t\tprecedence.put(nodeId, new HashSet<String>());\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\tSet<String> unvisitedNode = new HashSet<String>();\r\n\t\t\tfor (String nodeId : graph.getNodeList().keySet()) {\r\n\t\t\t\tunvisitedNode.add(nodeId);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdouble minUnvisitedLength;\r\n\t\t\tString minUnvisitedNode;\r\n\t\t\t// run loop while not all node is visited\r\n\t\t\twhile ( unvisitedNode.size() != 0 ) {\r\n\t\t\t\t// find the unvisited node with minimum current distance in distance list\r\n\t\t\t\tminUnvisitedLength = Double.MAX_VALUE;\r\n\t\t\t\tminUnvisitedNode = \"\";\r\n\t\t\t\tfor (String nodeId : unvisitedNode) {\r\n\t\t\t\t\tif (distance.get(nodeId) < minUnvisitedLength) {\r\n\t\t\t\t\t\tminUnvisitedNode = nodeId;\r\n\t\t\t\t\t\tminUnvisitedLength = distance.get(nodeId); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// if there are no node that can be visited from the unvisitedNode, break the loop \r\n\t\t\t\tif (minUnvisitedLength == Double.MAX_VALUE) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// remove the node from unvisitedNode\r\n\t\t\t\tunvisitedNode.remove(minUnvisitedNode);\r\n\t\t\t\t\r\n\t\t\t\t// update the distance of its neighbors\r\n\t\t\t\tfor (Node neighborNode : graph.getNodeList().get(minUnvisitedNode).getNeighbors().keySet()) {\r\n\t\t\t\t\tdouble distanceFromTheMinNode = distance.get(minUnvisitedNode) + graph.getNodeList().get(minUnvisitedNode).getNeighbors().get(neighborNode).getWeight();\r\n\t\t\t\t\t// if the distance of the neighbor can be shorter from the current node, change \r\n\t\t\t\t\t// its details in distance and precedence\r\n\t\t\t\t\tif ( distanceFromTheMinNode < distance.get(neighborNode.getId()) ) {\r\n\t\t\t\t\t\tdistance.replace(neighborNode.getId(), distanceFromTheMinNode);\r\n\t\t\t\t\t\t// renew the precedence of the neighbor node\r\n\t\t\t\t\t\tprecedence.put(neighborNode.getId(), new HashSet<String>());\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (distanceFromTheMinNode == distance.get(neighborNode.getId())) {\r\n\t\t\t\t\t\t// unlike dijkstra's algorithm, multiple path should be update into the precedence\r\n\t\t\t\t\t\t// if from another node the distance is the same, add it to the precedence\r\n\t\t\t\t\t\tprecedence.get(neighborNode.getId()).add(minUnvisitedNode);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// if the current node in the process is the end node, we can stop the while loop here\r\n\t\t\t\tif (minUnvisitedNode == endNodeId) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (distance.get(endNodeId) == Double.MAX_VALUE) {\r\n\t\t\t\t// in case there is no shortest path between the 2 nodes\r\n\t\t\t\tlength = 0;\r\n\t\t\t\tnumOfPath = 0;\r\n\t\t\t\tpathList = null;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// other wise we have these information\r\n\t\t\t\tlength = distance.get(endNodeId);\r\n\t\t\t\t//numOfPath = this.getNumPath(precedence, startNodeId, endNodeId);\r\n\t\t\t\tpathList = this.findPathList(precedence, startNodeId, endNodeId);\r\n\t\t\t\tnumOfPath = pathList.size();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\t// END ELSE\t\t\r\n\t}",
"@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tfor(node_data vertex : dwg.getV()) {\n\t\t\tvertex.setInfo(\"\"+Double.MAX_VALUE);\n\t\t}\n\t\tint[] prev = new int[dwg.nodeSize()];\n\t\tnode_data start = dwg.getNode(src);\n\t\tstart.setInfo(\"0.0\");\n\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\tq.add(start);\n\t\tprev[src%dwg.nodeSize()] = -1;\n\t\twhile(!q.isEmpty()) {\n\t\t\tnode_data v = q.poll();\n\t\t\tCollection<edge_data> edgesV = dwg.getE(v.getKey());\n\t\t\tfor(edge_data edgeV : edgesV) {\n\t\t\t\tdouble newSumPath = Double.parseDouble(v.getInfo()) +edgeV.getWeight();\n\t\t\t\tint keyU = edgeV.getDest();\n\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\tif(newSumPath < Double.parseDouble(u.getInfo())) {\n\t\t\t\t\tu.setInfo(\"\"+newSumPath);\n\t\t\t\t\tq.remove(u);\n\t\t\t\t\tq.add(u);\n\t\t\t\t\tprev[u.getKey()%dwg.nodeSize()] = v.getKey();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tList<node_data> ans = new ArrayList<node_data>();\n\t\tint run = dest;\n\t\twhile(run != src) {\n\t\t\tans.add(0,dwg.getNode(run));\n\t\t\trun = prev[run%dwg.nodeSize()];\n\t\t}\n\t\tans.add(0, dwg.getNode(src));\n\n\t\treturn ans;\n\t}",
"private static void findShortestPath(ArrayList<WeightedEdge> edges, int start, int dest, int nNodes) {\n int costs[] = new int[nNodes];\n int parents[] = new int[nNodes];\n boolean doneWithNode[] = new boolean[nNodes];\n\n // cost[i] has the cost of getting to node number i or is UNKNOWN if no cost figure out yet.\n // parent[i] contains the parent (or the way) we got to node i.\n // done[i] is true if we've already worked on all the children of node i.\n\n // Initialize the arrays.\n for (int i = 0; i<nNodes; i++) {\n costs[i] = UNKNOWN;\n parents[i] = UNKNOWN;\n doneWithNode[i] = false;\n }\n\n int node = start; // This is the node we are working on. Let's start with start node.\n costs[node] = 0; // The cost of getting to the start node is 0!\n\n // While not done processing all the nodes...\n\n // Loop through all the edges (edges array list).\n // Skip those edges whose source is doesn't match the node we're working on.\n\n // For edge (that has source of current node) figure out potential to\n // get it. (How much does it cost to get to node we're on? Add to\n // that the cost of the edge. That's the new price to set to dest of edge.\n\n // Is that a new low cost for that dest edge node?\n // Or is the dest edge node cost currently UNKNOWN? That means we have no cost.\n // If so, store the cost. Store the parent.\n\n // Once done with all the edges, mark the current node as\n // done being processed.\n doneWithNode[node] = true;\n\n // Get next node to work on.\n node = getLowestCostUnprocessedNode(costs, doneWithNode);\n\n // Done with while loop\n\n for (int i=0; i<parents.length; i++) {\n System.out.println(\"Node: \" + i + \" Cost: \" + costs[i] + \" Backtrace Parent: \" + parents[i]);\n }\n\n backtrace(dest, parents);\n }",
"public int shortestPath(Village startVillage, Village targetVillage) {\n// setting the initial point 's minimum distance to zera\n startVillage.setMinDistance(0);\n// accourting to bellman ford if there are n number of dots then n-1 iterations to be done to find the minimum distances of every dot from one initial dot\n int length = this.villageList.size();\n// looping n-1 times\n for (int i = 0; i < length - 1; i++) {\n// looping through all the roads and mark the minimum distances of all the possible points\n for (Road road : roadList) {\n\n\n// if the road is a main road then skip the path\n if (road.getWeight() == 900)\n continue; //why 900 ? : just a random hightest number as a minimum distance and same 900 is used as a mix number\n Village v = road.getStartVertex();\n Village u = road.getTargetVertex();\n// if the newly went path is less than the path it used to be the update the min distance of the reached vertex\n int newLengtha = v.getMinDistance() + road.getWeight();\n if (newLengtha < u.getMinDistance()) {\n u.setMinDistance(newLengtha);\n u.setPreviousVertex(v);\n }\n int newLengthb = u.getMinDistance() + road.getWeight();\n if (newLengthb < v.getMinDistance()) {\n v.setMinDistance(newLengthb);\n v.setPreviousVertex(v);\n }\n }\n }\n// finally return the minimum distance\n return targetVillage.getMinDistance();\n }",
"public double shortestPathDist(int src, int dest);",
"private PathCostFlow findCheapestPath(int start, int end, double max_flow) throws Exception {\n if (getNode(start) == null || getNode(end) == null\n || !getNode(start).isSource() || getNode(end).isSource()) {\n throw new IllegalArgumentException(\"start must be the index of a source and end must be the index of a sink\");\n }\n double amount = Math.min(Math.min(getNode(start).getResidualCapacity(),\n getNode(end).getResidualCapacity()), max_flow);\n\n boolean[] visited = new boolean[n];\n int[] parent = new int[n];\n for (int i = 0; i < n; i++) {\n parent[i] = -1;\n }\n double[] cost = new double[n];\n for (int i = 0; i < n; i++) {\n cost[i] = Integer.MAX_VALUE;\n }\n cost[start] = 0;\n\n PriorityQueue<IndexCostTuple> queue = new PriorityQueue<IndexCostTuple>();\n queue.add(new IndexCostTuple(start, 0));\n\n while (!queue.isEmpty()) {\n IndexCostTuple current = queue.poll();\n\n // we found the target node\n if (current.getIndex() == end) {\n ArrayList<Integer> path = new ArrayList<Integer>();\n path.add(new Integer(end));\n while (path.get(path.size() - 1) != start) {\n path.add(parent[path.get(path.size() - 1)]);\n }\n Collections.reverse(path);\n if ((path.get(0) != start) || (path.get(path.size() - 1) != end)) {\n throw new Exception(\"I fucked up coding Dijkstra's\");\n }\n return new PathCostFlow(path, cost[end], amount);\n }\n\n // iterate through all possible neighbors of the current node\n for (int i = 0; i < n; i++) {\n SingleEdge e = matrix[current.getIndex()][i];\n if ((!visited[i]) && (e != null)\n && (current.getCost() + e.getCost(amount) < cost[i])) {\n cost[i] = current.getCost() + e.getCost(amount);\n parent[i] = current.getIndex();\n\n // update the entry for this node in the queue\n IndexCostTuple newCost = new IndexCostTuple(i, cost[i]);\n queue.remove(newCost);\n queue.add(newCost);\n }\n }\n visited[current.getIndex()] = true;\n }\n\n return null; //the target node was unreachable\n }",
"public Queue<Station> approxShortestPath(Station start, Station end)\n {\n //Create a hash from station IDs to extra data needed for this algorithm.\n HashMap<String, ApproxSearchExtra> station_extras =\n new HashMap<String, ApproxSearchExtra>();\n for (Station station : getStations())\n station_extras.put(station.getId(), new ApproxSearchExtra());\n\n HashSet<Station> closed = new HashSet<Station>();\n HashSet<Station> open = new HashSet<Station>();\n open.add(start);\n\n while (open.size() > 0)\n {\n //Current is the item in the open set with the lowest estimated cost.\n Station current = null;\n ApproxSearchExtra current_extra = null;\n for (Station element : open)\n {\n if (current == null && current_extra == null)\n {\n current = element;\n current_extra = station_extras.get(element.getId());\n }\n else\n {\n ApproxSearchExtra extra = station_extras.get(element.getId());\n if (extra.estimated_cost < current_extra.estimated_cost)\n {\n current = element;\n current_extra = extra;\n }\n }\n }\n\n //If the current station is the end station, then we're done.\n if (current == end)\n return buildApproxShortestPathResult(end, station_extras);\n\n //Station is no longer in the open set and is now in the closed set\n //because it was traversed.\n open.remove(current);\n closed.add(current);\n\n for (Station neighbour : getAdjacentStations(current))\n {\n //Do nothing if neighbour is already in the closed set.\n if (closed.contains(neighbour))\n continue;\n\n ApproxSearchExtra neighbour_extra =\n station_extras.get(neighbour.getId());\n\n //Cost of movement to this neighbour.\n float attempt_cost = current_extra.cost + current.distance(neighbour);\n\n //If not in the open set, add the neighbour to the open set so that it\n //will be traversed later.\n if (!open.contains(neighbour))\n open.add(neighbour);\n //If this path is more costly than another path to this station, then\n //this path cannot be optimal.\n else if (attempt_cost >= neighbour_extra.cost)\n continue;\n\n //This is now the best path to this neighbour. Store this information.\n neighbour_extra.came_from = current;\n neighbour_extra.cost = attempt_cost;\n neighbour_extra.estimated_cost = attempt_cost +\n neighbour.distance(end);\n }\n }\n\n return null;\n }",
"@Override\n\tpublic double shortestPathDist(int src, int dest) {\n\t\tif(src== dest ) return 0;\n\t\tif(this.GA.getNode(src)==null || this.GA.getNode(dest)==null) throw new RuntimeException(\"Wrong input,Missing nodes.\");\n\t\tsetNodes();\n\t\tnode_data temp = this.GA.getNode(src);\n\t\ttemp.setWeight(0);\n\t\tSTPRec(temp, this.GA.getNode(dest));\n\t\tdouble ans = this.GA.getNode(dest).getWeight();\n\t\treturn ans;\n\t}",
"public int getCost(String startVertex, String endVertex)\r\n\t{\r\n\t\tif(!this.dataMap.containsKey(startVertex) || !this.dataMap.containsKey(endVertex))\r\n\t\t{\r\n\t\t\tthrow new IllegalArgumentException(\"Vertex does not exist in the graph!\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn startVertex.equals(endVertex) ? 0 : this.adjacencyMap.get(startVertex).get(endVertex);\r\n\t}",
"Integer cost(PathFindingNode node, PathFindingNode neighbour);",
"public void shortestPathsNodes() {\n for (int sourceNode = 0; sourceNode < wordGraph.V(); sourceNode++) {\n BreadthFirstDirectedPaths bfs = new BreadthFirstDirectedPaths(wordGraph, sourceNode);\n\n for (int goalNode = 0; goalNode < wordGraph.V(); goalNode++) {\n Iterable<Integer> shortestPath = bfs.pathTo(goalNode);\n int pathLength = -1;\n if (shortestPath != null) {\n for (int edge : shortestPath) {\n pathLength++;\n }\n }\n if (pathLength != -1) {\n }\n System.out.println(pathLength);\n }\n }\n }",
"@Nullable\n private NodeWithCost<V, A> findShortestPath(@Nonnull DirectedGraph<V, A> graph,\n V start, V goal, @Nonnull ToDoubleFunction<A> costf) {\n PriorityQueue< NodeWithCost<V, A>> frontier = new PriorityQueue<>(61);\n Map<V, NodeWithCost<V, A>> frontierMap = new HashMap<>(61);\n // Size of explored is the expected number of nextArrows that we need to explore.\n Set<V> explored = new HashSet<>(61);\n return doFindShortestPath(start, frontier, frontierMap, goal, explored, graph, costf);\n }",
"@Override\n public Double calculateShortestPathFromSource(String from, String to) {\n Node source = graph.getNodeByName(from);\n Node destination = graph.getNodeByName(to);\n source.setDistance(0d);\n Set<Node> settledNodes = new HashSet<>();\n PriorityQueue<Node> unsettledNodes = new PriorityQueue<>(Comparator.comparing(Node::getDistance));\n unsettledNodes.add(source);\n while (unsettledNodes.size() != 0) {\n Node currentNode = unsettledNodes.poll();\n for (Map.Entry<Node, Double> adjacencyPair : currentNode.getAdjacentNodes().entrySet()) {\n Node adjacentNode = adjacencyPair.getKey();\n Double distance = adjacencyPair.getValue();\n if (!settledNodes.contains(adjacentNode)) {\n calculateMinimumDistance(adjacentNode, distance, currentNode);\n unsettledNodes.add(adjacentNode);\n }\n }\n settledNodes.add(currentNode);\n }\n return destination.getDistance() == Double.MAX_VALUE ? -9999d : destination.getDistance();\n }",
"double estimatedDistanceToGoal(Vertex s, Vertex goal);",
"double getRouteCost(Graph g){\n double totalCost = 0;\n double matrixWeights[][] = g.getMatrixOfWeights(); //get the matrix of weights from the class Graph\n for(int i=0;i<cityIndex.size()-1;i++){\n //the cost is calculated by computing the route from one index to the next since the representation is\n // a permutation\n totalCost = totalCost + matrixWeights[cityIndex.get(i)][cityIndex.get(i+1)];\n }\n totalCost = totalCost+matrixWeights[cityIndex.get(cityIndex.size()-1)][cityIndex.get(0)]; //To Return back from the\n // last to the first city\n return totalCost;\n }",
"private void calculateShortestDistances (GraphStructure graph,int startVertex,int destinationVertex) {\r\n\t\t//traverseRecursively(graph, startVertex);\r\n\t\tif(pathList.contains(destinationVertex)) {\r\n\t\t\tdistanceArray = new int [graph.getNumberOfVertices()];\r\n\t\t\tint numberOfVertices=graph.getNumberOfVertices();\r\n\t\t\tSet<Integer> spanningTreeSet = new HashSet<Integer>();\r\n\t\t\tArrays.fill(distanceArray,Integer.MAX_VALUE);\r\n\t\t\tdistanceArray[startVertex]=0;\r\n\t\t\tadjacencyList = graph.getAdjacencyList();\r\n\t\t\tList<Edge> list;\r\n\t\t\tlist = graph.getAdjacencyList()[startVertex];\r\n\t\t\tif(startVertex==destinationVertex) {\r\n\t\t\t\treturn;\r\n\t\t\t} else {\r\n\t\t\t\tfor(Edge value : list) {\r\n\t\t\t\t\tif(! isVisited[value.getVertex()]) {\r\n\t\t\t\t\t\tint sumOfWeightAndSourceVertexDistanceValue = distanceArray[startVertex] + value.getWeight();\r\n\t\t\t\t\t\tint distanceValueOfDestinationVertex = distanceArray[value.getVertex()];\r\n\t\t\t\t\t\tif( sumOfWeightAndSourceVertexDistanceValue < distanceValueOfDestinationVertex ) {\r\n\t\t\t\t\t\t\tdistanceArray[value.getVertex()] = sumOfWeightAndSourceVertexDistanceValue;\r\n\t\t\t\t\t\t\tshortestPathList.add(value.getVertex());\r\n\t\t\t\t\t\t\tcalculateShortestDistances(graph,value.getVertex(), distanceValueOfDestinationVertex);\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t} \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/*for(Integer value : spanningTreeSet) {\r\n\t\t\t\tSystem.out.print(value+\" \");\r\n\t\t\t}*/\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No route is present between given vertices !\");\r\n\t\t}\r\n\t}",
"public Path shortestPath(Vertex a, Vertex b) {\n // If a or b aren't present in the set of vertices throw an exception\n if (!myGraph.containsKey(b) || !myGraph.containsKey(a)) {\n throw new IllegalArgumentException(\"One of the vertices isn't valid\");\n }\n /* Create a map of Vertices to VertexInfos. Fill it with VertexInfos for all\n vertices that each have no previous vertex and and a cost of INFINITY */\n Map<Vertex, VertexInfo> vertInfos = new HashMap<Vertex, VertexInfo>();\n for (Vertex v : vertices()) {\n vertInfos.put(v, new VertexInfo(v, null, INFINITY));\n }\n /* Create a PriorityQueue for VertexInfos */\n PriorityQueue<VertexInfo> viQueue = new PriorityQueue<VertexInfo>();\n /* Create a VertexInfo for the start Vertex 'a' with a cost of 0. This uses a copy of Vertex a&b for immutability */\n Vertex copyA = new Vertex(a.getLabel());\n Vertex copyB = new Vertex(b.getLabel());\n\n VertexInfo vi_a = new VertexInfo(copyA, null, 0);\n /* Add VerxtexInfo for a to PQ and map it to it's VertexInfo */\n viQueue.add(vi_a);\n vertInfos.put(a, vi_a);\n while(!viQueue.isEmpty()) {\n /* Remove the VertexInfo with lowest cost */\n Vertex curr = viQueue.poll().getVertex();\n /* Check all adjacent Vertices of curr Vertex */\n for (Vertex v : adjacentVertices(curr)) {\n /* Calculate cost to get to v through curr */\n int cost = vertInfos.get(curr).getCost() + edgeCost(curr, v);\n /* If cost through curr is lower than previous */\n if (cost < vertInfos.get(v).getCost()) {\n /* Remove v's VertexInfo from PQ */\n viQueue.remove(vertInfos.get(v));\n /* Overwrite previous value of v in map\n Add updated VerexInfo to PQ */\n VertexInfo vi = new VertexInfo(v, curr, cost);\n vertInfos.put(v,vi);\n viQueue.add(vi);\n }\n }\n }\n /* Create ArrayList for path */\n List<Vertex> path = new ArrayList<Vertex>();\n \n /* Add each vertex and it's previous vertex to path until a null vertex is reached */\n for (Vertex vert = copyB; vert != null; vert = vertInfos.get(vert).getPrev()) {\n path.add(vert);\n }\n\n /* Reverse order of path */ \n Collections.reverse(path);\n /* Create new Path object with corresponding parameters */\n if(path.contains(copyA)){\n Path pathToB = new Path(path, vertInfos.get(copyB).getCost());\n return pathToB;\n } else {\n return null;\n }\n }",
"public InTree<V,E> weightedShortestPaths(V source)\n\t\tthrows NegativeWeightEdgeException, DisconnectedGraphException;",
"private HashMap<String, Integer> getShortestPathBetweenDifferentNodes(Node start, Node end) {\n HashMap<Node, Node> parentChildMap = new HashMap<>();\n parentChildMap.put(start, null);\n\n // Shortest path between nodes\n HashMap<Node, Integer> shortestPathMap = new HashMap<>();\n\n for (Node node : getNodes()) {\n if (node == start)\n shortestPathMap.put(start, 0);\n else shortestPathMap.put(node, Integer.MAX_VALUE);\n }\n\n for (Edge edge : start.getEdges()) {\n shortestPathMap.put(edge.getDestination(), edge.getWeight());\n parentChildMap.put(edge.getDestination(), start);\n }\n\n while (true) {\n Node currentNode = closestUnvisitedNeighbour(shortestPathMap);\n\n if (currentNode == null) {\n return null;\n }\n\n // Save path to nearest unvisited node\n if (currentNode == end) {\n Node child = end;\n String path = end.getName();\n while (true) {\n Node parent = parentChildMap.get(child);\n if (parent == null) {\n break;\n }\n\n // Create path using previous(parent) and current(child) node\n path = parent.getName() + \"\" + path;\n child = parent;\n }\n HashMap<String,Integer> hm= new HashMap<>();\n hm.put(path, shortestPathMap.get(end));\n return hm;\n }\n currentNode.visit();\n\n // Go trough edges and find nearest\n for (Edge edge : currentNode.getEdges()) {\n if (edge.getDestination().isVisited())\n continue;\n\n if (shortestPathMap.get(currentNode) + edge.getWeight() < shortestPathMap.get(edge.getDestination())) {\n shortestPathMap.put(edge.getDestination(), shortestPathMap.get(currentNode) + edge.getWeight());\n parentChildMap.put(edge.getDestination(), currentNode);\n }\n }\n }\n }",
"private double[] computeShortestPathLengths(Entity pStartNode,\r\n\t\t\tdouble pShortestPathLengthSum, double pMaxPathLength,\r\n\t\t\tSet<Entity> pWasSource)\r\n\t{\r\n\r\n\t\tint pStartNodeMaxPathLength = 0;\r\n\r\n\t\t// a set of nodes that have already been expanded -> algorithm should\r\n\t\t// expand nodes monotonically and not go back\r\n\t\tSet<Entity> alreadyExpanded = new HashSet<Entity>();\r\n\r\n\t\t// a queue holding the newly discovered nodes with their and their\r\n\t\t// distance to the start node\r\n\t\tList<Entity[]> queue = new ArrayList<Entity[]>();\r\n\r\n\t\t// initialize queue with start node\r\n\t\tEntity[] innerList = new Entity[2];\r\n\t\tinnerList[0] = pStartNode; // the node\r\n\t\tinnerList[1] = new Entity(\"0\"); // the distance to the start node\r\n\t\tqueue.add(innerList);\r\n\r\n\t\t// while the queue is not empty\r\n\t\twhile (!queue.isEmpty()) {\r\n\t\t\t// remove first element from queue\r\n\t\t\tEntity[] queueElement = queue.get(0);\r\n\t\t\tEntity currentNode = queueElement[0];\r\n\t\t\tEntity distance = queueElement[1];\r\n\t\t\tqueue.remove(0);\r\n\r\n\t\t\t// if the node was not already expanded\r\n\t\t\tif (!alreadyExpanded.contains(currentNode)) {\r\n\r\n\t\t\t\t// the node gets expanded now\r\n\t\t\t\talreadyExpanded.add(currentNode);\r\n\r\n\t\t\t\t// if the node was a source node in a previous run, we already\r\n\t\t\t\t// have added this path\r\n\t\t\t\tif (!pWasSource.contains(currentNode)) {\r\n\t\t\t\t\t// add the distance of this node to shortestPathLengthSum\r\n\t\t\t\t\t// check if maxPathLength must be updated\r\n\t\t\t\t\tint tmpDistance = new Integer(distance.getFirstLexeme());\r\n\t\t\t\t\tpShortestPathLengthSum += tmpDistance;\r\n\t\t\t\t\tif (tmpDistance > pMaxPathLength) {\r\n\t\t\t\t\t\tpMaxPathLength = tmpDistance;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// even if the node was a source node in a previous run there\r\n\t\t\t\t// can be a path to\r\n\t\t\t\t// other nodes over this node, so go on:\r\n\r\n\t\t\t\t// get the neighbors of the queue element\r\n\t\t\t\tSet<Entity> neighbors = getNeighbors(currentNode);\r\n\r\n\t\t\t\t// iterate over all neighbors\r\n\t\t\t\tfor (Entity neighbor : neighbors) {\r\n\t\t\t\t\t// if the node was not already expanded\r\n\t\t\t\t\tif (!alreadyExpanded.contains(neighbor)) {\r\n\t\t\t\t\t\t// add the node to the queue, increase node distance by\r\n\t\t\t\t\t\t// one\r\n\t\t\t\t\t\tEntity[] tmpList = new Entity[2];\r\n\t\t\t\t\t\ttmpList[0] = neighbor;\r\n\t\t\t\t\t\tInteger tmpDistance = new Integer(\r\n\t\t\t\t\t\t\t\tdistance.getFirstLexeme()) + 1;\r\n\t\t\t\t\t\ttmpList[1] = new Entity(tmpDistance.toString());\r\n\t\t\t\t\t\tqueue.add(tmpList);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tpStartNodeMaxPathLength = new Integer(distance.getFirstLexeme());\r\n\t\t}\r\n\t\teccentricityMap.put(pStartNode, pStartNodeMaxPathLength);\r\n\r\n\t\tdouble returnArray[] = { pShortestPathLengthSum, pMaxPathLength };\r\n\t\treturn returnArray;\r\n\t}",
"public Map<Node<T>, Cost> dijkstra(T start) throws NodeNotFoundException {\n Node<T> origin = findNode(start);\n Map<Node<T>, Cost> costs = new HashMap<>();\n List<Node<T>> alreadyVisited = new ArrayList<>();\n\n // Step 1 : Initialization\n // Set every cost to infinity, except for the starting summit which is set to 0\n for(Node<T> node : getNodes()) {\n if(origin.equals(node)) { costs.put(node, new Cost(0.0)); }\n else { costs.put(node, new Cost()); }\n }\n\n while(ArrayMethods.similarity(getNodes(), alreadyVisited) != order()) {\n // Step 2 : Taking the node with the smallest cost\n Node<T> reference = Cost.findMin(costs, alreadyVisited);\n\n // Step 3 : Updating the table with the costs from that node\n for(WeightedLink link : findLinks(reference.getData())) {\n Node<T> other = (Node<T>) link.getOther(reference);\n Cost oldCost = costs.get(other);\n double old = oldCost.getCost();\n double cost = link.getWeight() + costs.get(reference).getCost();\n\n costs.put(other, (cost < old) ? new Cost(cost, reference) : oldCost);\n }\n\n // Step 4 : Repeat with the smallest costing summit that wasn't visited already\n alreadyVisited.add(reference);\n }\n\n return costs;\n }",
"private static ArrayList<Connection> pathFindDijkstra(Graph graph, int start, int goal) {\n\t\tNodeRecord startRecord = new NodeRecord();\r\n\t\tstartRecord.setNode(start);\r\n\t\tstartRecord.setConnection(null);\r\n\t\tstartRecord.setCostSoFar(0);\r\n\t\tstartRecord.setCategory(OPEN);\r\n\t\t\r\n\t\tArrayList<NodeRecord> open = new ArrayList<NodeRecord>();\r\n\t\tArrayList<NodeRecord> close = new ArrayList<NodeRecord>();\r\n\t\topen.add(startRecord);\r\n\t\tNodeRecord current = null;\r\n\t\tdouble endNodeCost = 0;\r\n\t\twhile(open.size() > 0){\r\n\t\t\tcurrent = getSmallestCSFElementFromList(open);\r\n\t\t\tif(current.getNode() == goal){\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tGraphNode node = graph.getNodeById(current.getNode());\r\n\t\t\tArrayList<Connection> connections = node.getConnection();\r\n\t\t\tfor( Connection connection :connections){\r\n\t\t\t\t// get the cost estimate for end node\r\n\t\t\t\tint endNode = connection.getToNode();\r\n\t\t\t\tendNodeCost = current.getCostSoFar() + connection.getCost();\r\n\t\t\t\tNodeRecord endNodeRecord = new NodeRecord();\r\n\t\t\t\t// if node is closed skip it\r\n\t\t\t\tif(listContains(close, endNode))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t// or if the node is in open list\r\n\t\t\t\telse if (listContains(open,endNode)){\r\n\t\t\t\t\tendNodeRecord = findInList(open, endNode);\r\n\t\t\t\t\t// print\r\n\t\t\t\t\t// if we didn't get shorter route then skip\r\n\t\t\t\t\tif(endNodeRecord.getCostSoFar() <= endNodeCost) {\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// else node is not visited yet\r\n\t\t\t\telse {\r\n\t\t\t\t\tendNodeRecord = new NodeRecord();\r\n\t\t\t\t\tendNodeRecord.setNode(endNode);\r\n\t\t\t\t}\r\n\t\t\t\t//update the node\r\n\t\t\t\tendNodeRecord.setCostSoFar(endNodeCost);\r\n\t\t\t\tendNodeRecord.setConnection(connection);\r\n\t\t\t\t// add it to open list\r\n\t\t\t\tif(!listContains(open, endNode)){\r\n\t\t\t\t\topen.add(endNodeRecord);\r\n\t\t\t\t}\r\n\t\t\t}// end of for loop for connection\r\n\t\t\topen.remove(current);\r\n\t\t\tclose.add(current);\r\n\t\t}// end of while loop for open list\r\n\t\tif(current.getNode() != goal)\r\n\t\t\treturn null;\r\n\t\telse { //get the path\r\n\t\t\tArrayList<Connection> path = new ArrayList<>();\r\n\t\t\twhile(current.getNode() != start){\r\n\t\t\t\tpath.add(current.getConnection());\r\n\t\t\t\tint newNode = current.getConnection().getFromNode();\r\n\t\t\t\tcurrent = findInList(close, newNode);\r\n\t\t\t}\r\n\t\t\tCollections.reverse(path);\r\n\t\t\treturn path;\r\n\t\t}\r\n\t}",
"private void computePaths(Vertex source, Vertex target, ArrayList<Vertex> vs)\n {\n \tfor (Vertex v : vs)\n \t{\n \t\tv.minDistance = Double.POSITIVE_INFINITY;\n \t\tv.previous = null;\n \t}\n source.minDistance = 0.;\t\t// distance to self is zero\n IndexMinPQ<Vertex> vertexQueue = new IndexMinPQ<Vertex>(vs.size());\n \n for (Vertex v : vs) vertexQueue.insert(Integer.parseInt(v.id), v);\n\n\t\twhile (!vertexQueue.isEmpty()) \n\t\t{\n\t \t// retrieve vertex with shortest distance to source\n\t \tVertex u = vertexQueue.minKey();\n\t \tvertexQueue.delMin();\n\t\t\tif (u == target)\n\t\t\t{\n\t\t\t\t// trace back\n\t\t\t\twhile (u.previous != null)\n\t\t\t\t{;\n\t\t\t\t\tu = u.previous;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n \t// Visit each edge exiting u\n \tfor (Edge e : u.adjacencies)\n \t\t{\n \t\tVertex v = e.target;\n\t\t\t\tdouble weight = e.weight;\n \tdouble distanceThroughU = u.minDistance + weight;\n\t\t\t\tif (distanceThroughU < v.minDistance) \n\t\t\t\t{\n\t\t\t\t\tint vid = Integer.parseInt(v.id);\n\t\t \t\tvertexQueue.delete(vid);\n\t\t \t\tv.minDistance = distanceThroughU;\n\t\t \t\tv.previous = u;\n\t\t \t\tvertexQueue.insert(vid,v);\n\t\t\t\t}\n\t\t\t}\n }\n }",
"private double costOf(int w) {\n\t\treturn getVertex(w).getCost();\n\t}",
"int bfs(Vertex start, Vertex goal) {\n // Create queue for holding upcoming vertices to check.\n Queue<Vertex> queue = new LinkedList<>();\n // Create list of vertices that have been checked.\n ArrayList<Vertex> visited = new ArrayList<>(verticesAndTheirEdges.size());\n\n // Create map for storing distance from start to each vertex.\n // Defaults to -1 (since we want to return -1 if no path can be found)\n HashMap<Vertex, Integer> distance = new HashMap<>();\n for (Map.Entry<Vertex, LinkedList<Vertex>> vertex : verticesAndTheirEdges.entrySet()) {\n distance.put(vertex.getKey(), -1);\n }\n distance.put(start, 0);\n\n // Add start vertex to queue to initiate search,\n // then add it to the 'visited' list so that we don't check it again.\n queue.add(start);\n visited.add(start);\n while (!queue.isEmpty()) {\n // Take the first vertex from the queue.\n Vertex v = queue.remove();\n // Get all the vertexes edges.\n List<Vertex> neighbours = verticesAndTheirEdges.get(v);\n for (Vertex n : neighbours) {\n // If we haven't visited the neighboring vertex:\n if (n != null && !visited.contains(n)) {\n // Save the neighbors distance as the previous vertex distance +1.\n distance.put(n, distance.get(v) + 1);\n // Add the vertex to the queue of upcoming vertices to check.\n queue.add(n);\n // Mark vertex as visited.\n visited.add(n);\n }\n }\n }\n // Return the distance between start and goal vertices in the graph.\n return distance.get(goal);\n }",
"public static int dijkstra(AdjList<String> adjList, String startNode, String endNode, LinkedList<String> pathList) {\n //Valid AdjList\n if (adjList == null || adjList.size() == 0 || adjList.hasNegativeEdges())\n return Integer.MAX_VALUE;\n\n //Checks if start and end nodes exist in adjList\n if (!adjList.contains(startNode) || !adjList.contains(endNode))\n return Integer.MAX_VALUE;\n\n //Checks if graph is suitable for BFS\n if (!adjList.isWeighted())\n return BFS(adjList, startNode, endNode, pathList);\n\n //Sets all node objects in adjList to defaults\n adjList.cleanNodeFields();\n\n //Fibonacci heap for storing current shortest path\n FibHeap<Integer, String> q = new FibHeap<>();\n\n //Set source node value to 0\n q.insert(adjList.getNode(startNode), 0);\n q.peek().d = 0;\n q.peek().visited = true;\n\n //Helper variables\n LinkedList<Pair<Node<Integer, String>, Integer>> neighbors;//Array of pairs <neighborKey, edgeWeight>\n Node<Integer, String> neighbor, u;//Current Node with shortest path / top of min-queue\n int edgeWeight;\n while (q.size() != 0) {\n u = q.extractMin();\n u.closed = true;\n\n //endNode found\n if (Objects.equals(u.value, endNode)) {\n //Build path of vertexes\n Node<Integer, String> current = adjList.getNode(endNode);\n pathList.add(current.value);\n while ((current = current.prev) != null)\n pathList.addFirst(current.value);\n return u.d;\n }\n\n neighbors = adjList.getNeighbors(u.value);\n for (Pair<Node<Integer, String>, Integer> neighborKeyValuePair : neighbors) {//Loops through every neighbor\n neighbor = neighborKeyValuePair.getKey();\n edgeWeight = neighborKeyValuePair.getValue();\n //Relaxation step\n //Checks if distance to neighbor node is less than the min distance already found\n if (!neighbor.visited || neighbor.d > u.d + edgeWeight) {\n //Assign shorter path found to neighbor in out array\n neighbor.d = u.d + edgeWeight;\n\n //Assigns previous shortest node to neighbor\n neighbor.prev = u;\n\n //Inserts or decrease key\n if (!neighbor.visited) {\n q.insert(neighbor, u.d + edgeWeight);\n neighbor.visited = true;\n } else {\n q.decreaseKey(neighbor, u.d + edgeWeight);\n }\n }\n }\n }\n return Integer.MAX_VALUE;\n }",
"public double calculateCostInclusive() {\n\t\tdouble accumulatedCost = 0;\n\t\taccumulatedCost += calculateEuclideanDistance(host.grid.getLocation(host), solutionRepresentation.get(0));\n\t\taccumulatedCost += calculateCostExclusive();\n\t\t\n\t\treturn accumulatedCost;\n\t}",
"public static void computePaths(Vertex source){\n\t\tsource.minDistance=0;\n\t\t//visit each vertex u, always visiting vertex with smallest minDistance first\n\t\tPriorityQueue<Vertex> vertexQueue=new PriorityQueue<Vertex>();\n\t\tvertexQueue.add(source);\n\t\twhile(!vertexQueue.isEmpty()){\n\t\t\tVertex u = vertexQueue.poll();\n\t\t\tSystem.out.println(\"For: \"+u);\n\t\t\tfor (Edge e: u.adjacencies){\n\t\t\t\tVertex v = e.target;\n\t\t\t\tSystem.out.println(\"Checking: \"+u+\" -> \"+v);\n\t\t\t\tdouble weight=e.weight;\n\t\t\t\t//relax the edge (u,v)\n\t\t\t\tdouble distanceThroughU=u.minDistance+weight;\n\t\t\t\tif(distanceThroughU<v.minDistance){\n\t\t\t\t\tSystem.out.println(\"Updating minDistance to \"+distanceThroughU);\n\t\t\t\t\tv.minDistance=distanceThroughU;\n\t\t\t\t\tv.previous=u;\n\t\t\t\t\t//move the vertex v to the top of the queue\n\t\t\t\t\tvertexQueue.remove(v);\n\t\t\t\t\tvertexQueue.add(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"static long dijkstras(State start, State goal) {\n\t\tPriorityQueue<State> pq = new PriorityQueue<State>(\n\t\t\tnew Comparator<State>() {\n\t\t\t\t@Override\n\t\t\t\tpublic int compare(State a, State b) {\n\t\t\t\t\treturn Long.compare(a.dist, b.dist);\n\t\t\t\t}\n\t\t\t});\n\n\t\tHashMap<State, Long> dist = new HashMap<>(); \n\n\t\tpq.offer(start);\n\t\tdist.put(start, start.dist);\n\n\t\twhile (!pq.isEmpty()) {\n\t\t\tState cur = pq.poll();\n\n\t\t\tif (cur.isDestination(goal)) // abort if target is reached\n\t\t\t\treturn cur.dist;\n\n\t\t\t// avoid relaxation if a shorter path to 'cur' is pending in queue\n\t\t\tif (Long.compare(dist.get(cur), cur.dist) < 0)\n\t\t\t\tcontinue;\n\n\t\t\tfor (State adj : cur.adj()) {\n\t\t\t\tLong bestSoFar = dist.get(adj);\n\t\t\t\tif (bestSoFar == null || Long.compare(adj.dist, bestSoFar) < 0) {\n\t\t\t\t\tpq.offer(adj);\n\t\t\t\t\tdist.put(adj, adj.dist);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// no path to target\n\t\treturn -1;\n\t}",
"public int getPathCost(List<String> path) {\n\t\tif (path.size() == 1 || path.size() == 0)\n\t\t\treturn 0;\n\t\tint cost = 0;\n\t\tfor (int i = 1; i < path.size(); i++) {\n\t\t\tInteger weight = edges.get(path.get(i) + \" \" + path.get(i - 1));\n\t\t\tif (weight == null)\n\t\t\t\treturn -1;\n\t\t\tcost += weight;\n\t\t}\n\t\treturn cost;\n\t}",
"public String findShortestRoute(char start, char finish) {\r\n PriorityQueue<Vertex> Q = new PriorityQueue<>(new Comparator<Vertex>() {\r\n @Override\r\n public int compare(Vertex v1, Vertex v2) {\r\n return Integer.compare(v1.getDistanceFromStart(), v2.getDistanceFromStart());\r\n }\r\n });\r\n\r\n Vertex startVert = null;\r\n for(Vertex v : listOfVertices) {\r\n if(v.getName() == start) {\r\n v.setDistanceFromStart(0);\r\n v.setPrevious(v);\r\n startVert = v;\r\n }\r\n else {\r\n v.setDistanceFromStart(Integer.MAX_VALUE);\r\n v.setPrevious(null);\r\n }\r\n Q.add(v);\r\n }\r\n if(startVert == null) {\r\n throw new IllegalArgumentException(\"start vertex is not in graph\");\r\n }\r\n\r\n Vertex finishVert = null;\r\n while(!Q.isEmpty()) {\r\n Vertex v = Q.remove(); // remove first vertex in queue, the shortest path has been found to this vertex\r\n if(v.getName() == finish) {\r\n finishVert = v;\r\n break; // finish quicker\r\n }\r\n for(Edge incidentEdge : v.getIncidentEdges()) {\r\n Vertex adjacentVertex = incidentEdge.getOppositeVertex(v);\r\n int alt = v.getDistanceFromStart() + incidentEdge.getDistance();\r\n if(alt < adjacentVertex.getDistanceFromStart()) { // if going through this edge shortens the route to adjacentVertex\r\n adjacentVertex.setDistanceFromStart(alt);\r\n adjacentVertex.setPrevious(v);\r\n Q.remove(adjacentVertex); // increase the priority of adjacent vertices if this vertex shortens their route\r\n Q.add(adjacentVertex);\r\n }\r\n }\r\n }\r\n \r\n // throw exception if finish vertex not found\r\n if(finishVert == null) {\r\n throw new IllegalArgumentException(\"finish vertex is not in graph\");\r\n }\r\n \r\n // build the return value by adding vertex names from finish to start,\r\n // reversing the string, then concatenating the distance\r\n StringBuilder sb = new StringBuilder();\r\n for(Vertex v = finishVert; v != startVert; v = v.getPrevious()) {\r\n sb.append(v.getName());\r\n }\r\n return sb.append(start).reverse().append(finishVert.getDistanceFromStart()).toString();\r\n }",
"public void shortestPaths(int source) {\n\n\t\tlong start = 0;\n\t\tlong stop;\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tedgeList[v] = new Edge(vertexList[v].id, rand, 5000);\n\t\t}\n\t\t// creating object of fibonacci\n\t\tFHeap pq = new FHeap();\n\t\t// creating a map for checking\n\t\tMap<Integer, FHeap.Node> check = new HashMap<Integer, FHeap.Node>();\n\t\t// storing the mst costs\n\n\t\tfor (int v = 0; v < vertexList.length; v++) {\n\t\t\tcheck.put(vertexList[v].id,\n\t\t\t\t\tpq.enqueue(vertexList[v].id, Double.POSITIVE_INFINITY));\n\t\t}\n\t\tstart = System.currentTimeMillis();\n\t\t// allot cost 0 to initial node\n\t\tpq.decreaseKey(check.get(vertexList[source].id), 0.0);\n\n\t\twhile (!pq.isEmpty()) {\n\t\t\t// take the current node and get its minimum cost\n\t\t\tFHeap.Node current = pq.dequeueMin();\n\n\t\t\t// store the values in the table\n\t\t\tresult.put(current.getValue(), current.getCost());\n\n\t\t\t// update the costs\n\t\t\tfor (Neighbor nbr = vertexList[current.getValue()].adjList; nbr != null; nbr = nbr.next) {\n\n\t\t\t\t// edge is not added if shortest cost is known\n\t\t\t\tif (result.containsKey(vertexList[nbr.vertexNumber].id))\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// update cost to shortest\n\t\t\t\tFHeap.Node finalCost = check\n\t\t\t\t\t\t.get(vertexList[nbr.vertexNumber].id);\n\t\t\t\tif (nbr.weight < finalCost.getCost())\n\t\t\t\t\tpq.decreaseKey(finalCost, nbr.weight);\n\t\t\t}\n\t\t}\n\t\tstop = System.currentTimeMillis();\n\t\t// computing the time\n\t\ttime = stop - start;\n\n\t\t// calculate the MST cost\n\t\tfor (int i = 0; i < vertexList.length; i++) {\n\t\t\tsumHeapCost = (int) (sumHeapCost + result.get(i));\n\t\t}\n\t\t// for printing in case of input from file in fibonacci mode\n\t\n\t\t// System.out.println(sumHeapCost);\n\t}",
"public static <G extends BaseWeightedGraph<V,E,W>,V,E extends WeightedEdge<V,W>, W extends Number & Comparable<W>> List<E> findShortestPathInt(G graph, V source, V sink){\r\n\t\t// check graph contains source and sink\r\n\t\tSet<V> vertecies = graph.getVertices();\r\n\t\tif( !(vertecies.contains(source) && vertecies.contains(sink)) ){\r\n\t\t\tthrow new IllegalArgumentException(\"BaseGraph must contain both source and sink\");\r\n\t\t}\r\n\t\t\r\n\t\tPriorityQueue<WeightedPathChain<V,E,W,Integer>> pq = new PriorityQueue<WeightedPathChain<V,E,W,Integer>>(); \r\n\t\tHashSet<V> checked = new HashSet<V>();\r\n\t\tHashMap<V,WeightedPathChain<V,E,W,Integer>> map = new HashMap<V,WeightedPathChain<V,E,W,Integer>>();\r\n\t\taddOrUpdate(map,pq,source,Integer.valueOf(0));\r\n\t\twhile(!pq.isEmpty()&&!sink.equals(pq.peek().vertex)){\r\n\t\t\tWeightedPathChain<V,E,W,Integer> current = pq.poll(); // poll lowest level vertex\r\n\t\t\tchecked.add(current.vertex); // add vertex to checked set\r\n\t\t\tfor (E edge :graph.getOutgoingEdges(current.vertex)){\t// for each outgoing edge \r\n\t\t\t\tif(!checked.contains(edge.getOpposingVertex(current.vertex))){\t\t// if opposing vertex has not been checked \r\n\t\t\t\t\taddOrUpdate(map,\r\n\t\t\t\t\t\t\t\tpq,\r\n\t\t\t\t\t\t\t\tedge.getOpposingVertex(current.vertex),\r\n\t\t\t\t\t\t\t\tInteger.valueOf(map.get(current.vertex).val+edge.getWeight().intValue() ) ,\r\n\t\t\t\t\t\t\t\tedge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<V> path = new ArrayList<V>(); // vertex path \r\n\t\tArrayList<E> edgePath = new ArrayList<E>(); // edge path\r\n\t\tboolean run = true; \r\n\t\tif(!pq.isEmpty()&&pq.peek().vertex.equals(sink)) { // \r\n\t\t\tWeightedPathChain<V,E,W,Integer> vv = pq.poll();\r\n\t\t\tpath.add(vv.vertex);\r\n\t\t\tedgePath.add(vv.edge);\r\n\t\t\twhile(run) {\r\n\t\t\t\tvv = map.get(vv.edge.getOpposingVertex(vv.vertex));\r\n\t\t\t\tif(vv.vertex.equals(source)) {\r\n\t\t\t\t\trun=false;\r\n\t\t\t\t\tpath.add(vv.vertex);\r\n\t\t\t\t}\r\n\t\t\t\telse {\t\r\n\t\t\t\t\tedgePath.add(vv.edge);\r\n\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return path;\r\n\t\t\r\n\t\tCollections.reverse(edgePath);\r\n\t\treturn edgePath;\r\n\t}",
"private double dijkstraSingleTarget(Map<Integer, List<Node>> graph, int vertices, int source, int target) {\n Queue<Node> minHeap = new PriorityQueue<>(\n Comparator.comparingDouble(a -> a.weight)\n );\n\n double[] dist = new double[vertices + 1]; //shortest distance for each vertex\n Arrays.fill(dist, 0.0);\n\n boolean visited[] = new boolean[vertices + 1];\n\n // Distance for starting node is 0\n dist[source] = -1;\n minHeap.add((new Node(-1,source)));\n\n while (!minHeap.isEmpty()) {\n Node topPair = minHeap.remove();\n int currNode = topPair.vertex;\n double currDistance = topPair.weight;\n\n if (!graph.containsKey(currNode)) {\n continue;\n }\n\n if (visited[currNode]) continue;\n visited[currNode] = true;\n\n\n for (Node edge : graph.get(currNode)) {\n double weight = edge.weight;\n int neighborNode = edge.vertex;\n double nextDist = currDistance * weight;\n\n if (!visited[neighborNode] && nextDist < dist[neighborNode]) {\n dist[neighborNode] = nextDist;\n minHeap.add((new Node(nextDist, neighborNode)));\n\n }\n\n }\n\n\n }\n\n return -dist[target];\n }",
"public ShortestPath(IWeightedGraph<N,E> graph, int startNode) {\n\t\tthis.graph = graph;\n\t\tthis.startNode = startNode;\n\t\tthis.shortestPaths = new double[graph.numberOfNodes()];\n\t\tthis.previousNode = new int[graph.numberOfNodes()];\n\t\tbellmanFord(this.graph, this.startNode);\n\t}",
"public void calculateCost(AStarNode parentNode, AStarNode endNode)\n \t{\n \t\tthis.costFromStart = parentNode.getCostFromStart() + node.getCost();\n \t\tthis.heuristic = ModelUtils.INSTANCE.getDistance(this.getPosition(), endNode.getPosition());\n \t\tthis.totalCost = this.costFromStart + this.heuristic;\n \t\tthis.parent = parentNode;\n \t}",
"public void computeAllPaths(String source)\r\n {\r\n Vertex sourceVertex = network_topology.get(source);\r\n Vertex u,v;\r\n double distuv;\r\n\r\n Queue<Vertex> vertexQueue = new PriorityQueue<Vertex>();\r\n \r\n \r\n // Switch between methods and decide what to do\r\n if(routing_method.equals(\"SHP\"))\r\n {\r\n // SHP, weight of each edge is 1\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + 1;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n \r\n }\r\n \r\n }\r\n \r\n else if (routing_method.equals(\"SDP\"))\r\n {\r\n // SDP, weight of each edge is it's propagation delay\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = u.minDistance + u.adjacentVertices.get(key).propDelay;\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n } \r\n }\r\n }\r\n else if (routing_method.equals(\"LLP\"))\r\n {\r\n // LLP, weight each edge is activeCircuits/AvailableCircuits\r\n sourceVertex.minDistance = 0;\r\n vertexQueue.add(sourceVertex);\r\n while(!vertexQueue.isEmpty())\r\n {\r\n u = vertexQueue.remove();\r\n for (String key : u.adjacentVertices.keySet())\r\n {\r\n v = network_topology.get(key);\r\n distuv = Math.max(u.minDistance,u.adjacentGet(key).load());\r\n //System.out.println(u.adjacentGet(key).load());\r\n if(distuv < v.minDistance)\r\n {\r\n v.minDistance = distuv;\r\n v.previous = u;\r\n vertexQueue.add(v);\r\n }\r\n }\r\n }\r\n }\r\n }",
"public double cost(Path<T> p) throws LinkNotFoundException, NodeNotFoundException {\n double cost = 0.0;\n\n for(int i = 0 ; i < p.size() - 1 ; i++) {\n Node<T> start = p.get(i);\n Node<T> end = p.get(i + 1);\n\n WeightedLink l = findLink(start.getData(), end.getData());\n\n cost += l.getWeight();\n }\n\n return cost;\n }",
"@Override\n\tpublic List<node_data> shortestPath(int src, int dest) {\n\t\tList<node_data> ans = new ArrayList<>();\n\t\tthis.shortestPathDist(src, dest);\n\t\tif(this.GA.getNode(src).getWeight() == Integer.MAX_VALUE || this.GA.getNode(dest).getWeight() == Integer.MAX_VALUE){\n\t\t\tSystem.out.print(\"There is not a path between the nodes.\");\n\t\t\treturn null;\n\t\t}\n\t\tgraph copied = this.copy();\n\t\ttransPose(copied);\n\t\tnode_data first = copied.getNode(dest);\n\t\tans.add(first);\n\t\twhile (first.getKey() != src) {\n\t\t\tCollection<edge_data> temp = copied.getE(first.getKey());\n\t\t\tdouble check= first.getWeight();\n\t\t\tif(temp!=null) {\n\t\t\t\tfor (edge_data edge : temp) {\n\t\t\t\t\tif (copied.getNode(edge.getDest()).getWeight() + edge.getWeight() == check) {\n\t\t\t\t\t\tfirst = copied.getNode(edge.getDest());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tans.add(first);\n\t\t}\n\t\tList<node_data> ans2 = new ArrayList<>();\n\t\tfor (int i = ans.size()-1;i>=0;i--){\n\t\t\tans2.add(ans.get(i));\n\t\t}\n\t\treturn ans2;\n\t}",
"public static <G extends BaseWeightedGraph<V,E,W>,V,E extends WeightedEdge<V,W>, W extends Number & Comparable<W>> List<E> findShortestPathDouble(G graph, V source, V sink){\r\n\t\t// check graph contains source and sink\r\n\t\tSet<V> vertecies = graph.getVertices();\r\n\t\tif( !(vertecies.contains(source) && vertecies.contains(sink)) ){\r\n\t\t\tthrow new IllegalArgumentException(\"BaseGraph must contain both source and sink\");\r\n\t\t}\r\n\t\t\r\n\t\tPriorityQueue<WeightedPathChain<V,E,W,Double>> pq = new PriorityQueue<WeightedPathChain<V,E,W,Double>>(); \r\n\t\tHashSet<V> checked = new HashSet<V>();\r\n\t\tHashMap<V,WeightedPathChain<V,E,W,Double>> map = new HashMap<V,WeightedPathChain<V,E,W,Double>>();\r\n\t\taddOrUpdate(map,pq,source,Double.valueOf(0));\r\n\t\twhile(!pq.isEmpty()&&!sink.equals(pq.peek().vertex)){\r\n\t\t\tWeightedPathChain<V,E,W,Double> current = pq.poll(); // poll lowest level vertex\r\n\t\t\tchecked.add(current.vertex); // add vertex to checked set\r\n\t\t\tfor (E edge :graph.getOutgoingEdges(current.vertex)){\t// for each outgoing edge \r\n\t\t\t\tif(!checked.contains(edge.getOpposingVertex(current.vertex))){\t\t// if opposing vertex has not been checked \r\n\t\t\t\t\taddOrUpdate(map,\r\n\t\t\t\t\t\t\t\tpq,\r\n\t\t\t\t\t\t\t\tedge.getOpposingVertex(current.vertex),\r\n\t\t\t\t\t\t\t\tDouble.valueOf(map.get(current.vertex).val+edge.getWeight().doubleValue() ) ,\r\n\t\t\t\t\t\t\t\tedge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tArrayList<V> path = new ArrayList<V>(); // vertex path \r\n\t\tArrayList<E> edgePath = new ArrayList<E>(); // edge path\r\n\t\tboolean run = true; \r\n\t\tif(!pq.isEmpty()&&pq.peek().vertex.equals(sink)) { // \r\n\t\t\tWeightedPathChain<V,E,W,Double> vv = pq.poll();\r\n\t\t\tpath.add(vv.vertex);\r\n\t\t\tedgePath.add(vv.edge);\r\n\t\t\twhile(run) {\r\n\t\t\t\tvv = map.get(vv.edge.getOpposingVertex(vv.vertex));\r\n\t\t\t\tif(vv.vertex.equals(source)) {\r\n\t\t\t\t\trun=false;\r\n\t\t\t\t\tpath.add(vv.vertex);\r\n\t\t\t\t}\r\n\t\t\t\telse {\t\r\n\t\t\t\t\tedgePath.add(vv.edge);\r\n\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return path;\r\n\t\t\r\n\t\tCollections.reverse(edgePath);\r\n\t\treturn edgePath;\r\n\t}",
"public int edgeCost(Vertex a, Vertex b) {\n if (!myGraph.containsKey(b) || !myGraph.containsKey(a)) {\n throw new IllegalArgumentException(\"Vertex is not valid\");\n }\n int cost = -1;\n if (adjacentVertices(a).contains(b)) {\n //create a copy of all the edges at the passed in Vertex a\n //to restrict any reference to interals of this class\n Collection<Edge> copyOfEdges = new ArrayList<Edge>();\n copyOfEdges.addAll(myGraph.get(a));\n\n Iterator<Edge> edges = copyOfEdges.iterator();\n while(edges.hasNext()){\n Edge currEdge = edges.next();\n if(currEdge.getDestination().equals(b)) {\n cost = currEdge.getWeight();\n }\n }\n }\n return cost;\n }",
"@Override\n public List<node_data> shortestPath(int src, int dest) {\n reset();\n for (node_data node : G.getV()) {\n node.setWeight(Double.POSITIVE_INFINITY);\n }\n\n DWGraph_DS.Node currentNode = (DWGraph_DS.Node) G.getNode(src);\n currentNode.setWeight(0);\n PriorityQueue<node_data> unvisitedNodes = new PriorityQueue(G.nodeSize(), weightComperator);\n unvisitedNodes.addAll(G.getV());\n HashMap<Integer, node_data> parent = new HashMap<>();\n parent.put(src, null);\n\n while (currentNode.getWeight() != Double.POSITIVE_INFINITY) {\n if (G.getNode(dest).getTag() == 1) {\n break;\n }\n for (edge_data edge : G.getE(currentNode.getKey())) {\n DWGraph_DS.Node neighbor = (DWGraph_DS.Node) G.getNode(edge.getDest());\n double tmpWeight = currentNode.getWeight() + edge.getWeight();\n if (tmpWeight < neighbor.getWeight()) {\n neighbor.setWeight(tmpWeight);\n unvisitedNodes.remove(neighbor);\n unvisitedNodes.add(neighbor);\n parent.put(neighbor.getKey(), currentNode);\n }\n }\n currentNode.setTag(1);\n if(currentNode.getKey()==dest) break;\n unvisitedNodes.remove(currentNode);\n currentNode = (DWGraph_DS.Node) unvisitedNodes.poll();\n }\n /*\n Rebuild the path list\n */\n if (!parent.keySet().contains(dest)) return null;\n List<node_data> pathList = new ArrayList<>();\n currentNode = (DWGraph_DS.Node) G.getNode(dest);\n while (parent.get(currentNode.getKey()) != null) {\n pathList.add(currentNode);\n currentNode = (DWGraph_DS.Node) parent.get(currentNode.getKey());\n }\n Collections.reverse(pathList);\n return pathList;\n }",
"public void calcSP(Graph g, Vertex source){\n // Algorithm:\n // 1. Take the unvisited node with minimum weight.\n // 2. Visit all its neighbours.\n // 3. Update the distances for all the neighbours (In the Priority Queue).\n // Repeat the process till all the connected nodes are visited.\n\n // clear existing info\n// System.out.println(\"Calc SP from vertex:\" + source.name);\n g.resetMinDistance();\n source.minDistance = 0;\n PriorityQueue<Vertex> queue = new PriorityQueue<Vertex>();\n queue.add(source);\n\n while(!queue.isEmpty()){\n Vertex u = queue.poll();\n for(Edge neighbour:u.neighbours){\n// System.out.println(\"Scanning vector: \"+neighbour.target.name);\n Double newDist = u.minDistance+neighbour.weight;\n\n // get new shortest path, empty existing path info\n if(neighbour.target.minDistance>newDist){\n // Remove the node from the queue to update the distance value.\n queue.remove(neighbour.target);\n neighbour.target.minDistance = newDist;\n\n // Take the path visited till now and add the new node.s\n neighbour.target.path = new ArrayList<>(u.path);\n neighbour.target.path.add(u);\n// System.out.println(\"Path\");\n// for (Vertex vv: neighbour.target.path) {\n// System.out.print(vv.name);\n// }\n// System.out.print(\"\\n\");\n\n// System.out.println(\"Paths\");\n neighbour.target.pathCnt = 0;\n neighbour.target.paths = new ArrayList<ArrayList<Vertex>>();\n if (u.paths.size() == 0) {\n ArrayList<Vertex> p = new ArrayList<Vertex>();\n p.add(u);\n neighbour.target.paths.add(p);\n neighbour.target.pathCnt++;\n } else {\n for (ArrayList<Vertex> p : u.paths) {\n ArrayList<Vertex> p1 = new ArrayList<>(p);\n p1.add(u);\n// for (Vertex vv : p1) {\n// System.out.print(vv.name);\n// }\n// System.out.print(\"\\n\");\n neighbour.target.paths.add(p1);\n neighbour.target.pathCnt++;\n }\n }\n\n //Reenter the node with new distance.\n queue.add(neighbour.target);\n }\n // get equal cost path, add into path list\n else if (neighbour.target.minDistance == newDist) {\n queue.remove(neighbour.target);\n for(ArrayList<Vertex> p: u.paths) {\n ArrayList<Vertex> p1 = new ArrayList<>(p);\n p1.add(u);\n neighbour.target.paths.add(p1);\n neighbour.target.pathCnt++;\n }\n queue.add(neighbour.target);\n }\n }\n }\n }",
"private List<routerNode> getPathVertexList(routerNode beginNode, routerNode endNode) {\r\n\t\tTransformer<routerLink, Integer> wtTransformer; // transformer for getting edge weight\r\n\t\twtTransformer = new Transformer<routerLink, Integer>() {\r\n public Integer transform(routerLink link) {\r\n return link.getWeight();\r\n \t}\r\n };\t\t\r\n\r\n\t\t\r\n\t\tList<routerNode> vlist;\r\n\t\tDijkstraShortestPath<routerNode, routerLink> DSPath = \r\n\t \t new DijkstraShortestPath<routerNode, routerLink>(gGraph, wtTransformer);\r\n \t// get the shortest path in the form of edge list \r\n List<routerLink> elist = DSPath.getPath(beginNode, endNode);\r\n\t\t\r\n \t\t// get the node list form the shortest path\r\n\t Iterator<routerLink> ebIter = elist.iterator();\r\n\t vlist = new ArrayList<routerNode>(elist.size() + 1);\r\n \tvlist.add(0, beginNode);\r\n\t for(int i=0; i<elist.size(); i++){\r\n\t\t routerLink aLink = ebIter.next();\r\n\t \t \t// get the nodes corresponding to the edge\r\n \t\tPair<routerNode> endpoints = gGraph.getEndpoints(aLink);\r\n\t routerNode V1 = endpoints.getFirst();\r\n\t routerNode V2 = endpoints.getSecond();\r\n\t \tif(vlist.get(i) == V1)\r\n\t \t vlist.add(i+1, V2);\r\n\t else\r\n\t \tvlist.add(i+1, V1);\r\n\t }\r\n\t return vlist;\r\n\t}",
"public abstract int shortestPathDistance(String vertLabel1, String vertLabel2);",
"private double getTotalWeightOnPath(SimpleDirectedWeightedGraph<Attraction, DefaultWeightedEdge> graph, \r\n\t\t\t GraphPath<Attraction, DefaultWeightedEdge> path) {\r\n\t\t\r\n\t\t double totalWeight = 0;\r\n\t\t List<DefaultWeightedEdge> edgeList= path.getEdgeList();\r\n\t\t for (DefaultWeightedEdge edge: edgeList) {\r\n\t\t\t Attraction source = graph.getEdgeSource(edge);\r\n\t\t\t Attraction end = graph.getEdgeTarget(edge);\r\n\t\t\t double weight= graph.getEdgeWeight(edge);\r\n\t\t\t // System.out.println(\"The weight from \" + source.getName() + \" to \" + end.getName() + \" is \" + weight);\r\n\t\t\t totalWeight += weight;\r\n\t\t }\r\n\t\treturn totalWeight;\r\n\t}",
"public List<Vertex> shortestPath(Vertex start, Vertex end) {\r\n\t\tMap<Vertex, Vertex> backRefs = new HashMap<Vertex, Vertex>();\r\n\r\n\t\t// Create a queue for BFS\r\n\t\tQueue<Vertex> queue = new LinkedList<Vertex>();\r\n\r\n\t\t// Mark the current node as visited and enqueue it. Use backRef as\r\n\t\t// visited set\r\n\t\tqueue.offer(start);\r\n\t\tbackRefs.put(start, null);\r\n\r\n\t\tVertex currentNode;\r\n\t\tSet<Vertex> neighbors;\r\n\r\n\t\twhile (queue.size() != 0) { // or !queue.isEmpty()\r\n\t\t\t// Dequeue a vertex from queue and print it\r\n\t\t\tcurrentNode = queue.poll();\r\n\r\n\t\t\tif (currentNode.equals(end)) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\t// Get all adjacent vertices of the dequeued vertex s\r\n\t\t\t// If a adjacent has not been visited, then mark it\r\n\t\t\t// visited and enqueue it\r\n\t\t\tneighbors = currentNode.getNeighbors();\r\n\r\n\t\t\tfor (Vertex n : neighbors) {\r\n\t\t\t\tif (!backRefs.containsKey(n)) {\r\n\t\t\t\t\tqueue.offer(n);\r\n\t\t\t\t\tbackRefs.put(n, currentNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (!backRefs.containsKey(end))\r\n\t\t\treturn null;\r\n\r\n\t\tList<Vertex> path = new ArrayList<Vertex>();\r\n\t\tcurrentNode = end;\r\n\r\n\t\twhile (currentNode != null) {\r\n\t\t\tpath.add(currentNode);\r\n\t\t\tcurrentNode = backRefs.get(currentNode);\r\n\t\t}\r\n\r\n\t\tCollections.reverse(path);\r\n\r\n\t\treturn path;\r\n\t}",
"public void dijkstra(int graphWeight[][], int source){\r\n\t\t\r\n\t\tint queue[] = new int[vertices]; //The array which will hold the shortest distance from source to node i\r\n\t\tboolean set[] = new boolean[vertices]; //It will store true for node i if the shortest path to that vertex or node is found\r\n\t\t\r\n\t\t//Initialize distances to infinity and set[] array to false \r\n\t\tfor(int i=0;i<vertices;i++){\r\n\t\t\tqueue[i] = Integer.MAX_VALUE; \r\n\t\t\tset[i] = false;\r\n\t\t}\r\n\t\t\r\n\t\t//Distance of source vertex from itself is always 0\r\n\t\tqueue[source] = 0;\r\n\r\n\t\t//Find shortest path of all the vertices\r\n\t\tfor(int count=0;count<vertices-1;count++){\r\n\t\t\t\r\n\t\t\t//Pick the minimum distance vertex from the from the set of vertices \r\n\t\t\t//not processed. u is equal to source in first iteration\r\n\t\t\tint u = extractMinDistance(queue, set);\r\n\t\t\t\r\n\t\t\t//Mark the picked vertex processed\r\n\t\t\tset[u] = true;\r\n\t\t\t//Update queue value of the adjacent vertices of the picked vertex\r\n\t\t\tfor(int v=0;v<vertices;v++)\r\n\t\t\t{\r\n\t\t\t\t//Update queue[v] only if\r\n\t\t\t\t// 1. It is not in set true in the Set Array\r\n\t\t\t\t// 2. There is an edge from u to v\r\n\t\t\t\t// 3. Total weight of path from source to v through u is smaller than current value of queue[v]\r\n\t\t\t\tif((graphWeight[u][v] > 0) && set[v] == false){\r\n\t\t\t\t\t\tif(queue[u] + graphWeight[u][v] < queue[v]){\r\n\t\t\t\t\t\t\tqueue[v] = queue[u] + graphWeight[u][v];\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//printSolution(queue, vertices);\r\n\t\t}\r\n\t\t//Print the constructed distance array\r\n\t\tprintSolution(queue, vertices);\r\n\t}",
"@Override\r\n public List<V> shortestPath(V start, V destination) {\r\n Vertex a = null, b = null;\r\n try {\r\n Iterator<Vertex> vertexIterator = map.values().iterator();\r\n\r\n while (vertexIterator.hasNext()) {\r\n Vertex v = vertexIterator.next();\r\n if (start.compareTo(v.vertexName) == 0)\r\n a = v;\r\n if (destination.compareTo(v.vertexName) == 0)\r\n b = v;\r\n }\r\n if (a == null || b == null) {\r\n vertexIterator.next();\r\n }\r\n\r\n } catch (NoSuchElementException e) {\r\n throw e;\r\n }\r\n\r\n computePaths(map.get(start), destination);\r\n return getShortestPathTo(destination, start);\r\n }",
"private Path aStar(AStarNode start, AStarNode end) {\n\n\t/*pre-search setup*/\n astarSetup(end);\n AStarNode current = start;\n current.updateDist(0.0F);\n ArrayList<AStarNode> openSet = new ArrayList<>(getNodes().size());\n addNode(openSet, start);\n start.setFound(true);\n\n while (!openSet.isEmpty()) { // While there are nodes to evaluate\n if (current.equals(end)) // When reached the destination\n return createPath(start, end);\n openSet.remove(current); // Removes the node whose shortest distance from start position is determined\n current.setVisited(true); // marking the field that is added to closedSet\n \n for (AStarNode neighbor : current.getConnections()) { \n if (!neighbor.isVisited() && !neighbor.found()) { // if it is not seen before, add to open list\n addNode(openSet,neighbor);\n neighbor.setFound(true);\n neighbor.setPrevious(current);\n neighbor.setHeruistic(end);\n neighbor.updateDist(current.getDist() + current.getDistTo(neighbor));\n }\n else if(!neighbor.isVisited()){ //If seen before, update cost.\n double tempGScore = current.getDist() + current.getDistTo(neighbor);\n if (neighbor.getDist() > tempGScore) {\n neighbor.updateDist(tempGScore);\n neighbor.setPrevious(current);\n neighbor.setHeruistic(end);\n }\n }\n }\n current = getMinFScore(openSet); // setting next node as a node with minimum fScore.\n }\n\t\n\t/*If search ends without returning a path, there is no possible path.*/\n throw new PathFindingAlgorithm.AlgorithmFailureException();\n }",
"private Path findShortestPath(Address start, Address destination) throws Exception{\n HashMap<Intersection, Segment> pi = dijkstra(start);\n Segment seg = pi.get(destination);\n if(seg == null){\n throw new Exception();\n }\n LinkedList<Segment> newPathComposition = new LinkedList<>();\n Path newPath = new Path(start, destination, newPathComposition);\n newPathComposition.add(seg);\n while (!seg.getOrigin().equals(start)) {\n Intersection s = seg.getOrigin();\n seg = pi.get(s);\n if(seg == null){\n throw new Exception();\n }\n newPathComposition.add(seg);\n }\n Collections.reverse(newPathComposition);\n newPath.setSegmentsOfPath(newPathComposition);\n return newPath;\n }",
"double getCostArc(K idVertexIni, K idVertexFin);",
"double getSolutionCost();",
"public List<String> computeBestPath(String source, String dest)\r\n {\r\n Vertex v;\r\n List<String>shortestPath = new LinkedList<String>();\r\n \r\n // First, relax all nodes\r\n computeAllPaths(source);\r\n \r\n // Then go through each one and return the path as a list of strings\r\n for (v= network_topology.get(dest); v != null; v = v.previous)\r\n { \r\n shortestPath.add(v.name);\r\n }\r\n \r\n Collections.reverse(shortestPath);\r\n \r\n // Clear the relaxed values so that they can be recalculated with each term\r\n clearPathData();\r\n \r\n return shortestPath;\r\n }",
"@Override\n public int findLowerCostPath(City src, City dest) {\n List<City> cityList = new ArrayList<>(cityManager.getAll());\n int[] travelCosts = new int[cityList.size()]; // accumulate minimum travel costs through each city\n boolean[] exploredCity = new boolean[cityList.size()];\n int currCityId = src.getId();\n Arrays.fill(travelCosts, INF); //All travel costs are INF\n travelCosts[currCityId - 1] = 0; //except src\n\n //Iterate\n for (int i = 0; i < cityList.size(); i++) {\n int minCost = INF;\n // if we get destination, ignore, it will be last explored city\n if (currCityId != dest.getId())\n exploredCity[currCityId - 1] = true;\n //find all paths of city to iterate\n Set<Path> paths = findAllPaths(cityList.get(currCityId - 1));\n for (Path path : paths) {\n if (exploredCity[path.getDestId() - 1])\n continue;\n //if from city cost + path cost < to city cost, then assign new value\n if (path.getCost() + travelCosts[path.getSrcId() - 1] < travelCosts[path.getDestId() - 1]) {\n travelCosts[path.getDestId() - 1] = travelCosts[path.getSrcId() - 1] + path.getCost();\n }\n //find minimum path cost of cur city\n if (path.getCost() < minCost) {\n minCost = path.getCost();\n currCityId = path.getDestId();\n }\n }\n //to find remaining not explored cities\n if (minCost == INF) {\n for (int j = 0; j < exploredCity.length; j++) {\n if (!exploredCity[j] && dest.getId() != (j + 1) && travelCosts[j] != INF) {\n currCityId = j + 1;\n }\n }\n }\n }\n //last explored city is destination\n exploredCity[dest.getId() - 1] = true;\n\n return travelCosts[dest.getId() - 1];\n }",
"public List<String> getShortestRoute(String start, String end) {\n\t\tif (!vertices.contains(start)) return null;\n\t\tMap<String, Vertex> verticesWithDistance = new HashMap<String, Vertex>();\n\t\tVertex starting = new Vertex(start, 0);\n\t\tverticesWithDistance.put(start, starting);\n\t\tstarting.route.add(starting.name);\n\t\tfor (String v : vertices) {\n\t\t\tif (!v.equals(start))\n\t\t\t\tverticesWithDistance.put(v, new Vertex(v, -1));\n\t\t}\n\t\treturn searchByDijkstra(starting, end , verticesWithDistance);\n\t}",
"public static int p413ComputeShortestPathNumber(Vertex start, Vertex end){\n\t Queue<Vertex> queue=new LinkedList<Vertex>();\n\t Map<Vertex, Status> statusMap=new HashMap<Vertex, Status>();\n\t Map<Vertex, Integer> levelMap=new HashMap<Vertex, Integer>();\n\t List<List<Vertex>> allLevelList=new LinkedList<List<Vertex>>();\n\t \n\t queue.offer(start);\n\t statusMap.put(start, Status.Queued);\n\t levelMap.put(start, 0);\n\t \n\t Vertex vertex;\n\t int lastLevel=-1;\n\t List<Vertex> levelList = null;\n\t\twhile ((vertex = queue.poll()) != null) {\n\t\t\tint currentLevel = levelMap.get(vertex);\n\n\t\t\tif (currentLevel != lastLevel) {\n\t\t\t\tlastLevel = currentLevel;\n\t\t\t\tlevelList = new LinkedList<Vertex>();\n\n\t\t\t\tallLevelList.add(levelList);\n\t\t\t}\n\n\t\t\tlevelList.add(vertex);\n\n\t\t\tif (vertex.equals(end)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tSet<Vertex> adjacentVertexes = vertex.getAdjacentVertexes();\n\t\t\tfor (Iterator iterator = adjacentVertexes.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex adjacent = (Vertex) iterator.next();\n\n\t\t\t\tif (statusMap.get(adjacent) == null) {\n\t\t\t\t\tqueue.offer(adjacent);\n\t\t\t\t\tstatusMap.put(adjacent, Status.Queued);\n\t\t\t\t\tlevelMap.put(adjacent, currentLevel + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t \n\t int max=Integer.MIN_VALUE;\n\t List<Vertex> targetList=new LinkedList<Vertex>();\n\t targetList.add(end);\n\t for(int index=lastLevel-1;index>0;index--){\n\t\t List<Vertex> lastLevelList = allLevelList.get(index);\n\t\t List<Vertex> tmpList=new LinkedList<Vertex>();\n\n\t\t int count=0;\n\t\t for (Iterator iterator = lastLevelList.iterator(); iterator.hasNext();) {\n\t\t\t\tVertex lastLevelVertex = (Vertex) iterator.next();\n\t\t\t\tfor (Iterator iterator2 = targetList.iterator(); iterator2.hasNext();) {\n\t\t\t\t\tVertex vertex2 = (Vertex) iterator2.next();\n\t\t\t\t\tif(lastLevelVertex.getAdjacentVertexes().contains(vertex2)){\n\t\t\t\t\t count++;\n\t\t\t\t\t tmpList.add(lastLevelVertex);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t }\n\t\t \n\t\t targetList=tmpList;\n\t\t \n\t\t if(count>max){\n\t\t \tmax=count;\n\t\t }\n\t }\n\t \n\t return max;\n\t}",
"private HashMap<String, Integer> getShortestPath(Node start, Node end){\n if(start.equals(end)) {\n return getShortestPath(start);\n }\n return getShortestPathBetweenDifferentNodes(start,end);\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\n public List<Edge<T>> viterbiPath() {\n final int numNodes = nodeList.size();\n double[] d_v = new double[numNodes];\n Arrays.fill(d_v, annihilator());\n d_v[ROOT_ID] = identity();\n Edge[] p_v = new Edge[numNodes]; \n \n // Forward pass\n for (int v = ROOT_ID+1; v < numNodes; ++v) {\n List<Edge<T>> edgeList = nodeList.get(v).backwardStar();\n for (Edge<T> edge : edgeList) {\n int u = edge.start().id();\n double bestCost = d_v[v];\n double transitionCost = score(d_v[u], edge.weight());\n if (compare(bestCost, transitionCost) == transitionCost) {\n // Do an update to the best cost\n d_v[v] = transitionCost;\n p_v[v] = edge;\n }\n }\n }\n \n // Backout the solution\n List<Edge<T>> bestPath = new LinkedList<Edge<T>>();\n Edge<T> bestEdge = p_v[numNodes-1];\n bestEdge = p_v[bestEdge.start().id()]; // Skip the goal node\n while(bestEdge.start().id() != ROOT_ID) {\n bestPath.add(0, bestEdge); // O(c) pre-pend\n bestEdge = p_v[bestEdge.start().id()];\n }\n\n return bestPath;\n }",
"public List<Eventable> getShortestPath(StateVertex start, StateVertex end) {\n\t\treturn DijkstraShortestPath.findPathBetween(sfg, start, end);\n\t}",
"@Override\n public List<Node> findShortestPath(Node s, Node t)\n {\n nodeDists.clear(); //clear previously calculated distances\n\n recordNodeDistances(s, t); //record node distances to target\n\n LinkedList<Node> shortestPath = new LinkedList<Node>();\n\n shortestPath.addLast(s);\n\n boolean reachedEnd = false;\n\n if(s==t) reachedEnd = true; // \"That was easy\"\n\n while(!reachedEnd)\n {\n //get the neighbors from the most recent step on the path\n Collection<? extends Node> neighbors = shortestPath.getLast().getNeighbors();\n\n //minimum cost from neighbors\n Node minNode = null;\n\n for(Node n: neighbors)\n {\n if(minNode == null || nodeDists.get(n) < nodeDists.get(minNode))\n {\n minNode = n;\n\n if(nodeDists.get(n) == 0)\n {\n reachedEnd = true;\n break;\n }\n }\n }\n\n if(nodeDists.get(minNode) == Integer.MAX_VALUE) return null; //no path\n else shortestPath.addLast(minNode);\n }\n\n return shortestPath;\n }",
"public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }",
"public interface Dijkstra<V,E>\n{\n\t/**\n\t * Sets the graph to use in computation\n\t */\n\tpublic void setGraph(Graph<V,E> graph);\n\t\n\t/**\n\t * Sets the start vertex the algorithm will use in computation\n\t * @throws IllegalArgumentException if the start vertex does not exist in the graph\n\t * @throws IllegalStateException if no graph has been set\n\t */\n\tpublic void setStart(int startId) throws IllegalArgumentException, IllegalStateException;\n\t\n\t/**\n\t * Sets the weighing to be used in computing the cost of traversing an edge\n\t */\n\tpublic void setWeighing(Weighing<E> weighing);\n\t\n\t/**\n\t * Computes the shortest path to all vertices from the start vertex in the graph\n\t * using the weighing function\n\t * @throws IllegalStateException if the graph, start vertex, or weighing object have not been set\n\t */\n\tpublic void computeShortestPath() throws IllegalStateException;\n\t\n\t/**\n\t * Returns the path from the start vertex to the end vertex provided\n\t * @return a list representing the shortest path. The first element is the start vertex, and the last\n\t * is the end vertex.\n\t * @throws IllegalArgumentException if endId is not a vertex in the graph\n\t * @throws IllegalStateException if computeShortestPath has not been called since any of the set methods\n\t * were last called\n\t */\n\tpublic List<Integer> getPath(int endId) throws IllegalArgumentException, IllegalStateException;\n\t\n\t/**\n\t * Returns the cost of the shortest path from the start vertex to the end vertex where\n\t * cost is defined by the sum of the weights of all the edges that connects the path as\n\t * defined by the weighing object.\n\t * @throws IllegalArgumentException if endId is not a vertex in the graph\n\t * @throws IllegalStateException if computeShortestPath has not been called since any of the set methods\n\t * were last called\n\t */\n\tpublic double getCost(int endId) throws IllegalArgumentException, IllegalStateException;\n}",
"public List<node_info> shortestPath(int src, int dest);",
"private void calculateShortestRoute(String strSourceTerminal){\n\t\tshortestTravelTime = new HashMap<>();\n\n //stores parent of every terminal in shortest travel time\n parent = new HashMap<>();\n \n //heap + map data structure\n MinimumHeap<BaggageTerminal> minHeap = new MinimumHeap<>();\n\n //initialize all terminal with infinite distance from source terminal\n for(BaggageTerminal baggageTerminal : graph.getTerminals()){\n minHeap.add(Integer.MAX_VALUE, baggageTerminal);\n }\n \n BaggageTerminal sourceTerminal = graph.getTerminal(strSourceTerminal);\n \n //set distance of source terminal to itself 0\n minHeap.decrease(sourceTerminal, 0);\n\n //put it in map\n shortestTravelTime.put(sourceTerminal, 0);\n\n //source terminal parent is null\n parent.put(sourceTerminal, null);\n\n //iterate till heap is not empty\n while(!minHeap.empty()){\n //get the min value from heap node which has vertex and distance of that vertex from source vertex.\n MinimumHeap<BaggageTerminal>.Node heapNode = minHeap.extractMinNode();\n BaggageTerminal currentTerminal = heapNode.key;\n\n //update shortest distance of current vertex from source vertex\n shortestTravelTime.put(currentTerminal, heapNode.weight);\n\n //iterate through all connections of current terminal\n for(Connection connection : currentTerminal.getConnections()){\n\n //get the adjacent terminal\n BaggageTerminal adjacent = getConnectingTerminal(currentTerminal, connection);\n\n //if heap does not contain adjacent vertex means adjacent vertex already has shortest distance from source vertex\n if(!minHeap.containsData(adjacent)){\n continue;\n }\n\n //add distance of current vertex to edge weight to get distance of adjacent vertex from source vertex\n //when it goes through current vertex\n int newDistance = shortestTravelTime.get(currentTerminal) + connection.getWeight();\n\n //see if this above calculated distance is less than current distance stored for adjacent vertex from source vertex\n if(minHeap.getWeight(adjacent) > newDistance) {\n minHeap.decrease(adjacent, newDistance);\n parent.put(adjacent, currentTerminal);\n }\n }\n }\n return;\n }",
"public static void exampleWeightedGraph() {\n\t\t\n\t\t// create unidrected topology\n\t\tTopology topology = new Topology();\n\t\t\n\t\t// Create edge with high weight and edge with low weight\n\t\tEdge edgeHighWeight = new Edge();\n\t\tedgeHighWeight.setWeight(1000);\n\t\t\n\t\tEdge edgeLowWeight = new Edge();\n\t\tedgeLowWeight.setWeight(1);\n\t\t\n\t\t// Assign edges to topology\n\t\ttopology.addEdge(\"1\", \"4\", edgeHighWeight);\n\t\ttopology.addEdge(\"2\", \"3\", edgeLowWeight);\n\t\ttopology.addEdge(\"1\", \"2\", edgeLowWeight);\n\t\ttopology.addEdge(\"4\", \"3\", edgeLowWeight);\n\t\t\n\t\t// convert to JGraphT\n\t\tWeightedGraph<String, DefaultWeightedEdge> graph = \n\t\t\t\tJGraphTConverter.getWeightedGraph(topology);\n\t\t\n\t\t// Find shortest paths\n\t\tString source = \"1\";\n\t\tString destination = \"3\";\n\t\tList<DefaultWeightedEdge> sp = \n\t\t\t\tDijkstraShortestPath.findPathBetween(graph, source, destination);\n\t\t\n\t\t// Print results\n\t\tSystem.out.println(\"Shortest path from \" + source + \" to \" + destination + \":\");\n\t\tfor (DefaultWeightedEdge e : sp) {\n\t\t\tSystem.out.println(graph.getEdgeSource(e) + \" -> \" + graph.getEdgeTarget(e));\n\t\t}\n\t}",
"Iterable<Vertex> computePath(Vertex start, Vertex end) throws GraphException;",
"private int getWeight(Node source, Node target) {\n LinkedList<Edge> edges = source.getEdges();\n for (Edge edge : edges) {\n if (edge.getDestination() == target) {\n return edge.getWeight();\n }\n }\n return 0;\n }",
"private void computeShortestPathsFromSource(V source) {\n\t\tBFSDistanceLabeler<V, E> labeler = new BFSDistanceLabeler<V, E>();\n\t\tlabeler.labelDistances(mGraph, source);\n\t\tdistances = labeler.getDistanceDecorator();\n\t\tMap<V, Number> currentSourceSPMap = new HashMap<V, Number>();\n\t\tMap<V, E> currentSourceEdgeMap = new HashMap<V, E>();\n\n\t\tfor (V vertex : mGraph.getVertices()) {\n\n\t\t\tNumber distanceVal = distances.get(vertex);\n\t\t\t// BFSDistanceLabeler uses -1 to indicate unreachable vertices;\n\t\t\t// don't bother to store unreachable vertices\n\t\t\tif (distanceVal != null && distanceVal.intValue() >= 0) {\n\t\t\t\tcurrentSourceSPMap.put(vertex, distanceVal);\n\t\t\t\tint minDistance = distanceVal.intValue();\n\t\t\t\tfor (E incomingEdge : mGraph.getInEdges(vertex)) {\n\t\t\t\t\tfor (V neighbor : mGraph\n\t\t\t\t\t\t\t.getIncidentVertices(incomingEdge)) {\n\t\t\t\t\t\tif (neighbor.equals(vertex))\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t// V neighbor = mGraph.getOpposite(vertex,\n\t\t\t\t\t\t// incomingEdge);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tNumber predDistanceVal = distances.get(neighbor);\n\n\t\t\t\t\t\tint pred_distance = predDistanceVal.intValue();\n\t\t\t\t\t\tif (pred_distance < minDistance && pred_distance >= 0) {\n\t\t\t\t\t\t\tminDistance = predDistanceVal.intValue();\n\t\t\t\t\t\t\tcurrentSourceEdgeMap.put(vertex, incomingEdge);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tmDistanceMap.put(source, currentSourceSPMap);\n\t\tmIncomingEdgeMap.put(source, currentSourceEdgeMap);\n\t}",
"public int length(int v, int w) {\r\n if (v < 0 || w < 0 || v >= G.V() || w >= G.V())\r\n throw new IndexOutOfBoundsException();\r\n BreadthFirstDirectedPaths bfdp1 = new BreadthFirstDirectedPaths(G, v);\r\n BreadthFirstDirectedPaths bfdp2 = new BreadthFirstDirectedPaths(G, w);\r\n int shortestDist = Integer.MAX_VALUE;\r\n for (int i = 0; i < G.V(); i++) {\r\n if (bfdp1.hasPathTo(i) && bfdp2.hasPathTo(i)) {\r\n shortestDist = (shortestDist <= bfdp1.distTo(i) + bfdp2.distTo(i)) ? shortestDist : bfdp1.distTo(i) + bfdp2.distTo(i);\r\n }\r\n }\r\n return (shortestDist == Integer.MAX_VALUE) ? -1: shortestDist;\r\n }",
"public String findDistanceOfPath(String[] vertices) {\r\n String source = vertices[0];\r\n int distance = 0;\r\n for (int i = 1; i < vertices.length; i++) {\r\n String target = vertices[i];\r\n Map<String, Integer> edgeMap = adj.get(source);\r\n if (edgeMap != null && edgeMap.containsKey(target)) {\r\n distance += edgeMap.get(target);\r\n } else {\r\n return \"NO SUCH ROUTE\";\r\n }\r\n source = target;\r\n }\r\n return String.valueOf(distance);\r\n }",
"public int getPathCost() {\r\n\t\treturn pathCost;\r\n\t}",
"void shortestPath( final VertexType fromNode, Integer node );",
"public List<Long> getPath(Long start, Long finish){\n \n \n List<Long> res = new ArrayList<>();\n // auxiliary list\n List<DeixtraObj> serving = new ArrayList<>();\n// nearest vertexes map \n Map<Long,DeixtraObj> optimMap = new HashMap<>();\n// thread save reading \n synchronized (vertexes){ \n // preparation\n for (Map.Entry<Long, Vertex> entry : vertexes.entrySet()) {\n Vertex userVertex = entry.getValue();\n // If it`s start vertex weight = 0 and the nereast vertex is itself \n if(userVertex.getID().equals(start)){\n serving.add(new DeixtraObj(start, 0.0, start));\n }else{\n // For other vertex weight = infinity and the nereast vertex is unknown \n serving.add(new DeixtraObj(userVertex.getID(), Double.MAX_VALUE, null));\n }\n\n } \n // why auxiliary is not empty \n while(serving.size()>0 ){\n // sort auxiliary by weight \n Collections.sort(serving);\n\n \n // remove shortes fom auxiliary and put in to answer \n DeixtraObj minObj = serving.remove(0);\n optimMap.put(minObj.getID(), minObj);\n\n Vertex minVertex = vertexes.get(minObj.getID());\n\n // get all edges from nearest \n for (Map.Entry<Long, Edge> entry : minVertex.allEdges().entrySet()) {\n Long dest = entry.getKey();\n Double wieght = entry.getValue().getWeight();\n // by all remain vertexes \n for(DeixtraObj dx : serving){\n if(dx.getID().equals(dest)){\n // if in checking vertex weight more then nearest vertex weight plus path to cheking \n // then change in checking weight and nearest\n if( (minObj.getWeight()+wieght) < dx.getWeight()){\n dx.setNearest(minVertex.getID());\n dx.setWeight((minObj.getWeight()+wieght));\n }\n }\n }\n }\n\n }\n }\n \n // create output list\n res.add(finish);\n Long point = finish;\n while(!point.equals(start)){\n \n point = ((DeixtraObj)optimMap.get(point)).getNearest();\n res.add(point);\n }\n \n Collections.reverse(res);\n \n \n return res;\n \n }",
"public void Djkstra(int source) {\n\t\tfor (int i = 0; i < vertices; i++) {\n\t\t\tdist[i] = Integer.MAX_VALUE; // added infinity to all ,\n\t\t}\n\t\t\n\t\tdist[source] = 0;\n\n\t\t// add source vertex to priority queue\n\t\tq.add(new Node(source, 0));\n\n\n\t\t// while my all vertices are not selected as a min among smallest one time\n\t\t// refracted in visited\n\t\twhile (visited.size() != vertices) {\n\n\t\t\t// pick from priority queue the smallest/min distance\n\t\t\tint i = q.remove().node;\n\n\t\t\t// once node is removed from queue add to set\n\t\t\tvisited.add(i);\n\n\t\t\t// relax adjacent vertex of this node;\n\t\t\t// And add the new node to queue bcoz distance has got updated so add new node as i dont have any method to update \n\t\t\t// already present node and its distance\n\t\t\t\n\n\t\t\tfor (Node v : graph[i]) {\n\t\t\t\tif (!visited.contains(v.node)) {\n\t\t\t\t\tif (dist[i] + v.cost < dist[v.node]) {\n\t\t\t\t\t\tdist[v.node] = dist[i] + v.cost;\n\t\t\t\t\t\tq.add(new Node(v.node, dist[v.node]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}",
"@Override\n public double shortestPathDist(int src, int dest) {\n if(shortestPath(src,dest)==null) return -1;\n double sum=0;\n return shortestPath(src,dest).get(shortestPath(src,dest).size()-1).getTag();\n }",
"public int getSolutionCost(){\r\n if (this.path_solution.size()==0)\r\n return 0;\r\n return this.path_solution.get(this.path_solution.size()-1).getCost();\r\n }",
"public List<Node> computeDijkstraShortestPath(Node source, Node destination) {\n\n source.minDistance = 0.;\n PriorityQueue<Node> nodeQueue = new PriorityQueue<Node>();\n nodeQueue.add(source);\n\n int destinationGroup = destination._groupID;\n\n while (!nodeQueue.isEmpty()) {\n Node v = nodeQueue.poll();\n\n Log.i(\"bbb\", \"In dijsk node name \"+ v._waypointName);\n //Stop searching when reach the destination node\n\n\n if(destinationGroup!=0){\n\n if(v._groupID==destinationGroup){\n destination = navigationGraph.get(navigationGraph.size()-1).nodesInSubgraph.get(v._waypointID);\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n break;\n }\n\n }\n\n if (v._waypointID.equals(destination._waypointID))\n break;\n\n\n // Visit each edge that is adjacent to v\n for (Edge e : v._edges) {\n Node a = e.target;\n Log.i(\"bbb\", \"node a \"+a._waypointName);\n double weight = e.weight;\n double distanceThroughU = v.minDistance + weight;\n if (distanceThroughU < a.minDistance) {\n nodeQueue.remove(a);\n a.minDistance = distanceThroughU;\n a.previous = v;\n Log.i(\"bbb\", \"set previous\");\n nodeQueue.add(a);\n }\n }\n }\n\n Log.i(\"bbb\", \"destination is: \"+destination._waypointName);\n\n return getShortestPathToDestination(destination);\n }",
"@Override\r\n\tpublic int calculateHCost(ArrayList<Job> jobList, ArrayList<Job> currPath, Town destTown) { // O(n^3)\r\n\t\tint heuristicCost = 0;\r\n\t\tboolean firstSearch = true;\r\n\t\tint minCost = 0;\r\n\t\t// checks each Job in Job List not in the current path \r\n\t\tfor (Job j : jobList) { // O(n)\r\n\t\t\tif (!currPath.contains(j)) { // O(n)\r\n\t\t\t\t// add travel cost only\r\n\t\t\t\theuristicCost += j.getTravelCost(); \r\n\t\t\t\t//+ j.getThisTown().getUnloadingCost(); // O(1) --> Faster heuristic (not sure if admissible)\r\n\t\t\t\tif (firstSearch) { // find minCost to the connecting towns\r\n\t\t\t\t\tminCost = destTown.getTravelCost(j.getThisTown()); // getTravelCost is O(n)\r\n\t\t\t\t\tfirstSearch = false;\r\n\t\t\t\t} else { // find minCost to the connecting towns\r\n\t\t\t\t\tif (destTown.getTravelCost(j.getThisTown()) < minCost) { // O(n)\r\n\t\t\t\t\t\tminCost = destTown.getTravelCost(j.getThisTown()); // O(n)\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn heuristicCost + minCost;\r\n\t}",
"public int length(Iterable<Integer> v, Iterable<Integer> w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n int shortestPath = -1;\n Deque<Integer> ancestors = new ArrayDeque<>();\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer integer : ancestors) {\n int path = bfsV.distTo(integer) + bfsW.distTo(integer);\n if (shortestPath == -1 || path < shortestPath) {\n shortestPath = path;\n }\n }\n return shortestPath;\n }",
"public void addEdge(int start, int end, double weight);",
"private static void shortestPath(Graph graph, Character startNode, int algorithm) {\n Node currentNode = graph.getNode(startNode);\n\n // keep track of the nodes visited\n List<Character> nodesVisited = new ArrayList<>();\n\n // add the current node\n nodesVisited.add(currentNode.getName());\n\n // breadth first search to help keep track of the nodes we have already visited\n // helps with backtracking\n Stack<Node> visitingNodes = new Stack<>();\n\n // loop through the graph\n while (currentNode != graph.getNode('Z')) {\n // we have visited a node\n // add it to the stack\n // set true to since its been visited and it will be in the shortest path\n visitingNodes.add(currentNode);\n currentNode.setNodeVisited(true);\n currentNode.setInShortestPath(true);\n\n // get all the edges that are connected to the current node we are on\n List<Edge> adjacentNodes = currentNode.getNeighbors();\n\n // temp for next node\n Node nextNode = null;\n int weightDistanceTotal = Integer.MAX_VALUE;\n\n for (Edge i: adjacentNodes) {\n // testing\n // System.out.println(i.destination.getName());\n // System.out.println(i.destination.getDistanceToZ());\n\n // 1. always check to see if we have visited the node\n if (i.destination.isNodeVisited()) {\n // System.out.println(i.destination.getName() + \" is already in the path\");\n continue;\n }\n\n // 2. assign the next node to the destination\n if (nextNode == null) {\n nextNode = i.destination;\n }\n\n // compare distances\n if (algorithm == 1) {\n nextNode = updateNextNodeAlgo1(nextNode, i.destination);\n } else {\n NodeWithWeightDistanceTotal nodeWithWeightDistanceTotal = updateNextNodeAlgo2(nextNode, i, weightDistanceTotal);\n nextNode = nodeWithWeightDistanceTotal.node;\n weightDistanceTotal = nodeWithWeightDistanceTotal.weightDistanceTotal;\n }\n //if (nextNode.getDistanceToZ() > i.destination.getDistanceToZ()) {\n // nextNode = i.destination;\n //}\n }\n\n // next has no other edges\n if (nextNode == null) {\n // System.out.println(\"There no place to go from \" + currentNode.getName());\n // pop off the node we just visited\n nextNode = visitingNodes.pop();\n // its not in the shortest path to Z\n nextNode.setInShortestPath(false);\n // set the next node to the previous node\n nextNode = visitingNodes.pop();\n }\n\n // add the nodes we visit to keep track of the path\n nodesVisited.add(nextNode.getName());\n\n // System.out.println(Arrays.toString(nodesVisited.toArray()));\n // testing purposes to see if the node is on the shortest path\n\n// for (Character node: nodesVisited) {\n// Node boolVisit = graph.getNode(node);\n// System.out.println(boolVisit.isInShortestPath());\n// }\n\n // progress to the next node\n currentNode = nextNode;\n // when visiting the last node mark z in the shortest path\n if (currentNode.getName() == 'Z') {\n currentNode.setInShortestPath(true);\n }\n // testing\n // System.out.println(\"next node = \" + currentNode.getName());\n }\n\n // keep track of the path visited and the total addition of weights\n int pathCounter = 0;\n\n // construct the shortest path\n List<Node> shortestPath = new ArrayList<>();\n\n for (Character nodeVisitor: nodesVisited) {\n // get the node\n Node node = graph.getNode(nodeVisitor);\n\n // add to the shortest path\n if (node.isInShortestPath() && !shortestPath.contains(node)) {\n shortestPath.add(node);\n }\n }\n\n // print the shortest path\n for (int i = 0; i < shortestPath.size() - 1; i++) {\n currentNode = shortestPath.get(i);\n Node nextNode = shortestPath.get(i + 1);\n\n // find the weight of that node\n int weight = currentNode.findWeight(nextNode);\n pathCounter += weight;\n\n // System.out.println(\"weight \" + weight);\n // System.out.println(\"path total \" + pathCounter);\n }\n\n // final output\n String fullPathSequence = \"\";\n String shortestPathSequence = \"\";\n\n for (int i = 0; i < nodesVisited.size(); i++) {\n if (i != nodesVisited.size() - 1) {\n fullPathSequence += nodesVisited.get(i) + \" -> \";\n }\n }\n\n fullPathSequence += nodesVisited.get(nodesVisited.size() - 1);\n\n for (int i = 0; i < shortestPath.size(); i++) {\n if (i != shortestPath.size() - 1) {\n shortestPathSequence += shortestPath.get(i).getName() + \" -> \";\n }\n }\n\n if (currentNode.getName() == 'Z') {\n shortestPathSequence += \"Z\";\n } else {\n shortestPathSequence += shortestPath.get(shortestPath.size() - 1).getName();\n }\n\n System.out.println(\"Algorithm \" + algorithm + \" : \");\n System.out.println(\"Sequence of all nodes \" + fullPathSequence);\n System.out.println(\"Shortest path: \" + shortestPathSequence);\n System.out.println(\"Shortest path length: \" + pathCounter);\n System.out.println(\"\\n\");\n\n // reset the graph\n graph.graphReset();\n\n }",
"public TrainRoute calculateShortestRoute(Train train) {\n\t\tSet<Integer> allVertices = layout.vertexSet();\n\t\tHashSet<Integer> visitedNodes = new HashSet<Integer>(layout.vertexSet().size());\n\t\tdouble totalWeight = ((DefaultBlock)blockData.get(train.currentBlock)).blockLength - train.distanceTraveledOnBlock;\n\t\tInteger currentBlock = null;\n\t\tInteger destinationBlock = null;\n\t\tLinkedList<Integer> path = new LinkedList<Integer>();\n\t\tHashMap<LinkedList<Integer>, Double> allSimplePaths = new HashMap<LinkedList<Integer>, Double>();\n\t\tfor (Integer i : allVertices) {\n\t\t\tif (i.equals(train.currentBlock)) {\n\t\t\t\tcurrentBlock = i;\n\t\t\t}\n\t\t\tif (i.equals(train.destination)) {\n\t\t\t\tdestinationBlock = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfindSimplePaths(currentBlock, destinationBlock, totalWeight, path, allVertices, visitedNodes, allSimplePaths);\n\t\t// Create a route object for all of the paths\n\t\tLinkedList<TrainRoute> allTrainRoutes = new LinkedList<TrainRoute>();\n\t\tfor (LinkedList<Integer> p : allSimplePaths.keySet()) {\n\t\t\tDouble pathDistance = allSimplePaths.get(p);\n\t\t\tp.add(0, currentBlock);\n\t\t\tpathDistance += ((DefaultBlock)blockData.get(currentBlock)).blockLength;\n\t\t\tpathDistance += ((DefaultBlock)blockData.get(p.get(p.size()-1))).blockLength/2;\n\t\t\t// create the TrainRoute Object\n\t\t\tdouble trainSpeed = ((DefaultBlock)blockData.get(train.currentBlock)).speedLimit;\n\t\t\tif (train.maxSpeed < trainSpeed) {\n\t\t\t\ttrainSpeed = train.maxSpeed;\n\t\t\t}\n\t\t\tdouble authority = train.authority;\n\t\t\tif (authority > pathDistance) {\n\t\t\t\tauthority = pathDistance;\n\t\t\t}\n\n\t\t\tallTrainRoutes.add(new TrainRoute(lineName, train.currentBlock, p, trainSpeed, authority, pathDistance));\n\t\t}\n\t\tCollections.sort(allTrainRoutes);\n\t\tblockToControllerMap.get(currentBlock).addRoute(allTrainRoutes.get(0));\n\t\treturn allTrainRoutes.get(0);\n\t}",
"public static int AStar(AdjList<Integer> adjList, int startNode, int endNode, LinkedList<String> pathList) {\n //Valid AdjList\n if (adjList == null || adjList.size() == 0 || adjList.hasNegativeEdges())\n return Integer.MAX_VALUE;\n\n //Checks if start and end nodes exist in adjList\n if (!adjList.contains(startNode) || !adjList.contains(endNode))\n return Integer.MAX_VALUE;\n\n //Sets all node objects in adjList to defaults\n adjList.cleanNodeFields();\n\n //Fibonacci Heap for storing current shortest path + heuristic value as direction for search\n FibHeap<Integer, Integer> qh = new FibHeap<>();\n\n //Set source node value to 0\n qh.insert(adjList.getNode(startNode), 0);\n qh.peek().d = 0;\n qh.peek().visited = true;\n\n //Helper variables\n LinkedList<Pair<Node<Integer, Integer>, Integer>> neighbors;//List of pairs <neighborKey, edgeWeight>\n Node<Integer, Integer> neighbor, u;//Current Node with shortest path / top of min-queue\n int edgeWeight;\n while (qh.size() != 0) {\n u = qh.extractMin();\n u.closed = true;\n\n //endNode found\n if (Objects.equals(u.value, endNode)) {\n //Build path of vertexes\n Node<Integer, Integer> current = adjList.getNode(endNode);\n pathList.add(Integer.toString(current.value));\n while ((current = current.prev) != null)\n pathList.addFirst(Integer.toString(current.value));\n return u.d;\n }\n\n neighbors = adjList.getNeighbors(u.value);\n for (Pair<Node<Integer, Integer>, Integer> neighborKeyValuePair : neighbors) {//Loops through every neighbor\n neighbor = neighborKeyValuePair.getKey();\n edgeWeight = neighborKeyValuePair.getValue();\n\n //Node already has his min path\n if (neighbor.closed)\n continue;\n\n //Relaxation step\n //Checks if node has been visited before\n //Checks if distance to neighbor node is less than the min distance already found\n if (!neighbor.visited || neighbor.d > u.d + edgeWeight) {\n //Assign shorter path found to neighbor in out array\n neighbor.d = u.d + edgeWeight;\n\n //Assigns previous shortest node to neighbor\n neighbor.prev = u;\n\n //Adds neighbor to queue\n if (!neighbor.visited) {\n qh.insert(neighbor, u.d + edgeWeight + diagonalDistance(neighbor.value, endNode));\n neighbor.visited = true;\n } else {\n //Decreases the key for neighbor in queue\n qh.decreaseKey(neighbor,\n u.d + edgeWeight + diagonalDistance(neighbor.value, endNode));\n }\n }\n }\n }\n return Integer.MAX_VALUE;\n }",
"public int length(int v, int w){\n shortestPath(v,w);\n return minPath;\n }",
"public int length(int v, int w) {\n if (!isValid(v, w)) {\n throw new IndexOutOfBoundsException();\n }\n\n BreadthFirstDirectedPaths bfsV = new BreadthFirstDirectedPaths(digraph, v);\n BreadthFirstDirectedPaths bfsW = new BreadthFirstDirectedPaths(digraph, w);\n\n int shortestPath = -1;\n Deque<Integer> ancestors = new ArrayDeque<>();\n\n for (int i = 0; i < this.digraph.V(); i++) {\n if (bfsV.hasPathTo(i) && bfsW.hasPathTo(i)) {\n ancestors.push(i);\n }\n }\n\n for (Integer integer : ancestors) {\n int path = bfsV.distTo(integer) + bfsW.distTo(integer);\n if (shortestPath == -1 || path < shortestPath) {\n shortestPath = path;\n }\n }\n return shortestPath;\n }",
"private static void simpleDijikstra(final DirectedGraph directedGraph,\n final Map<String, Integer> currentShortestPaths,\n final String start, final Set<String> visitedSet, final String destination) {\n // Terminate when we have visited all the nodes or if our start value isn't in our dijikstra table\n if (containsAndNotNull(currentShortestPaths, start) && visitedSet.size() != currentShortestPaths.keySet().size()) {\n compareDistanceAndReplace(directedGraph, currentShortestPaths, start);\n visitedSet.add(start);\n // Calculate the next current smallest node that hasn't been visited and not infinity\n final Optional<Map.Entry<String, Integer>> optionalSmallest =\n currentShortestPaths.entrySet().stream()\n .filter(node -> !visitedSet.contains(node.getKey()) && node.getValue() != null)\n .min(Comparator.comparingInt(Map.Entry::getValue));\n // Continue to next node if there is one available\n optionalSmallest.ifPresent(smallest -> {\n // No need to continue if the next smallest node is our destination\n if (!smallest.getKey().equals(destination)) {\n simpleDijikstra(directedGraph, currentShortestPaths, smallest.getKey(), visitedSet, destination);\n }\n });\n }\n }",
"@Override\n\tpublic boolean findPath(PathfindingNode start, PathfindingNode end, ArrayList<PathfindingNode> path) \n\t{\n\t\tpath.clear();\n\t\t\n\t\t_visited.clear();\n\t\t_toVisit.clear();\n\t\t_parents.clear();\n\t\t_costsFromStart.clear();\n\t\t_totalCosts.clear();\n\n\t\t_costsFromStart.put(start, 0);\n\t\t_toVisit.add(start);\n\t\t_parents.put(start, null);\n\t\t\n\t\twhile (!_toVisit.isEmpty() && !_toVisit.contains(end))\n\t\t{\n\t\t\tPathfindingNode m = _toVisit.remove();\n\t\t\t\n\t\t\tint mCost = _costsFromStart.get(m);\n\t\t\t\n\t\t\tfor (int i = 0; i < m.getNeighbors().size(); ++i)\n\t\t\t{\n\t\t\t\tPathfindingNodeEdge n = m.getNeighbors().get(i);\n\t\t\t\tif (n.getNeighbor() != null && !_visited.contains(n.getNeighbor()))\n\t\t\t\t{\n\t\t\t\t\tint costFromSource = mCost + n.getCost();\n\t\t\t\t\tint totalCost = costFromSource + _estimator.estimate(n.getNeighbor(), end);\n\t\t\t\t\tif (!_toVisit.contains(n.getNeighbor()) || totalCost < _totalCosts.get(n.getNeighbor()))\n\t\t\t\t\t{\n\t\t\t\t\t\t_parents.put(n.getNeighbor(), m);\n\t\t\t\t\t\t_costsFromStart.put(n.getNeighbor(), costFromSource);\n\t\t\t\t\t\t_totalCosts.put(n.getNeighbor(), totalCost);\n\t\t\t\t\t\tif (_toVisit.contains(n.getNeighbor()))\n\t\t\t\t\t\t\t_toVisit.remove(n.getNeighbor());\n\t\t\t\t\t\t_toVisit.add(n.getNeighbor());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t_visited.add(m);\n\t\t}\n\t\t\n\t\tif (_toVisit.contains(end))\n\t\t{\n\t\t\t_reversePath.clear();\n\t\t\t\n\t\t\tPathfindingNode current = end;\n\t\t\twhile (current != null)\n\t\t\t{\n\t\t\t\t_reversePath.push(current);\n\t\t\t\tcurrent = _parents.get(current);\n\t\t\t}\n\t\t\t\n\t\t\twhile (!_reversePath.isEmpty())\n\t\t\t\tpath.add(_reversePath.pop());\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tpath.add(start);\n\t\t\treturn false;\n\t\t}\n\t}",
"private List<Pair<Integer, Integer>> getBestPath(Pair<Integer, Integer> curLocation, Pair<Integer, Integer> dest) {\n\t\tList<Pair<Integer, Integer>> path = new LinkedList<Pair<Integer, Integer>>();\n\t\t\n\t\t\n\t\tNode current = new Node(curLocation.getX(), curLocation.getY(), getHitProbability(curLocation.getX(), curLocation.getY()));\n\t\tNode target = new Node(dest.getX(), dest.getY(), getHitProbability(dest.getX(), dest.getY()));\n\t\tList<Node> openSet = new ArrayList<>();\n List<Node> closedSet = new ArrayList<>();\n \n \n while (true) {\n openSet.remove(current);\n List<Node> adjacent = getAdjacentNodes(current, closedSet, target);\n\n // Find the adjacent node with the lowest heuristic cost.\n for (Node neighbor : adjacent) {\n \tboolean inOpenset = false;\n \tList<Node> openSetCopy = new ArrayList<>(openSet);\n \tfor (Node node : openSetCopy) {\n \t\tif (neighbor.equals(node)) {\n \t\t\tinOpenset = true;\n \t\t\tif (neighbor.getAccumulatedCost() < node.getAccumulatedCost()) {\n \t\t\t\topenSet.remove(node);\n \t\t\t\topenSet.add(neighbor);\n \t\t\t}\n \t\t}\n \t}\n \t\n \tif (!inOpenset) {\n \t\topenSet.add(neighbor);\n \t}\n }\n\n // Exit search if done.\n if (openSet.isEmpty()) {\n System.out.printf(\"Target (%d, %d) is unreachable from position (%d, %d).\\n\",\n target.getX(), target.getY(), curLocation.getX(), curLocation.getY());\n return null;\n } else if (/*isAdjacent(current, target)*/ current.equals(target)) {\n break;\n }\n\n // This node has been explored now.\n closedSet.add(current);\n\n // Find the next open node with the lowest cost.\n Node next = openSet.get(0);\n for (Node node : openSet) {\n if (node.getCost(target) < next.getCost(target)) {\n next = node;\n }\n }\n// System.out.println(\"Moving to node: \" + current);\n current = next;\n }\n \n // Rebuild the path using the node parents\n path.add(new Pair<Integer, Integer>(curLocation.getX(), curLocation.getY()));\n while(current.getParent() != null) {\n \tcurrent = current.getParent();\n \tpath.add(0, new Pair<Integer, Integer>(current.getX(), current.getY()));\n }\n \n if (path.size() > 1) {\n \tpath.remove(0);\n }\n \n\t\treturn path;\n\t}"
] | [
"0.73016006",
"0.6864384",
"0.67471313",
"0.67437017",
"0.6675954",
"0.66088563",
"0.6604295",
"0.6558782",
"0.6554973",
"0.65285534",
"0.6498602",
"0.64908785",
"0.6486924",
"0.64799476",
"0.6428812",
"0.6400465",
"0.63694125",
"0.6369401",
"0.63614863",
"0.6324462",
"0.6257308",
"0.6245009",
"0.6225759",
"0.62256444",
"0.62238234",
"0.6191394",
"0.6177006",
"0.61659265",
"0.61581916",
"0.6155824",
"0.61537504",
"0.61428136",
"0.6135204",
"0.6130793",
"0.6103966",
"0.60993516",
"0.6090411",
"0.6076212",
"0.6047977",
"0.60468286",
"0.60388",
"0.6030565",
"0.6018438",
"0.6014011",
"0.59917843",
"0.59789383",
"0.5969276",
"0.5927668",
"0.5896815",
"0.58834124",
"0.58797556",
"0.5851583",
"0.58483726",
"0.5845551",
"0.58439076",
"0.584238",
"0.58409077",
"0.5837301",
"0.5811857",
"0.58100176",
"0.5809966",
"0.5809762",
"0.5798958",
"0.5780442",
"0.5779451",
"0.5777088",
"0.57709795",
"0.5765715",
"0.5744078",
"0.5743784",
"0.5712238",
"0.56995094",
"0.5690329",
"0.56871593",
"0.56816185",
"0.5681054",
"0.56659764",
"0.5664907",
"0.5655297",
"0.56529784",
"0.56518894",
"0.56411165",
"0.5636975",
"0.5619676",
"0.5614653",
"0.5597915",
"0.55893123",
"0.55816",
"0.5560581",
"0.5557616",
"0.5549295",
"0.5545677",
"0.5542811",
"0.55427665",
"0.55396485",
"0.55369914",
"0.5535044",
"0.55347973",
"0.55333126",
"0.5532138",
"0.55304605"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public int idCheck(String id) {
return sqlSession.selectOne(NS+".idCheck", id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public MemberVO memberLogin(MemberVO member) {
return sqlSession.selectOne(NS+".memberLogin", member);
} | {
"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 |
The default period is one second. | ChangeObserver<T> setPeriod(TimeUnit timeUnit, int period); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"double getPeriod();",
"@Override\n\tpublic long getTimePeriod() {\n\t\treturn 0;\n\t}",
"int getPeriod();",
"@Override\r\n\tpublic void perSecond() {\n\r\n\t}",
"long getSamplePeriod();",
"public void clock(double period);",
"Period mo20733e();",
"public int getPeriod()\r\n\t{\r\n\t\treturn period;\r\n\t}",
"public Timer setPeriod(long millisecond) {\r\n this.period = millisecond;\r\n return this;\r\n }",
"public int getTimePeriod() {\n return timePeriod;\n }",
"public int getTimePeriod()\n\t{\n\t\treturn timePeriod;\n\t}",
"public void setPeriod(double value) {\n this.period = value;\n }",
"public double getPeriod() {\n return period;\n }",
"public int getPeriod() {\n return period;\n }",
"public Integer periodSeconds() {\n return this.periodSeconds;\n }",
"public void changeTimePeriod(int period)\n\t{\n\t\tthis.timePeriod = period;\n\t}",
"@Override\n\tpublic int withIntervalInSeconds() {\n\t\treturn 10;\n\t}",
"public long getSamplingPeriod();",
"public void setPeriod(int period) {\n this.period = period;\n }",
"public TimePeriod getPeriod();",
"@Override\n\tpublic void handlePeriod() {\n\t}",
"double getSignalPeriod();",
"public void period() {\n\t\tPeriod annually = Period.ofYears(1);\n\t\tPeriod quarterly = Period.ofMonths(3);\n\t\tPeriod everyThreeWeeks = Period.ofWeeks(3);\n\t\tPeriod everyOtherDay = Period.ofDays(2);\n\t\tPeriod everyYearAndAWeek = Period.of(1, 0, 7);\n\t\tLocalDate date = LocalDate.of(2014, Month.JANUARY, 20);\n\t\tdate = date.plus(annually);\n\t\tSystem.out.println(date);\n\t\tSystem.out.println(Period.of(0, 20, 47)); // P20M47D\n\t\tSystem.out.println(Period.of(2, 20, 47)); // P2Y20M47D\n\t}",
"public NaughtyModule(int period)\n\t{\n\t\tdelay = 2 * period;\n\t}",
"public long getMilliseconds()\n\t{\n\t\treturn unit.toMillis(period);\n\t}",
"long getIntervalInSeconds();",
"protected int getNumberOfPeriods()\n {\n return 2;\n }",
"public void setPeriod(Long Period) {\n this.Period = Period;\n }",
"BigInteger getPeriod();",
"public String getPeriod() {\n return period;\n }",
"@Override\r\n public void periodic() {\n }",
"Constant getCyclePeriodConstant();",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"@Override\n public void periodic() {\n }",
"public TimePeriod notWorking(TimePeriod period);",
"public double period()\n\t{\n\t\tdouble n = meanMotion();\n\t\tdouble period = 2.0 * Constants.pi / n;\n\t\treturn period;\n\t}",
"@Override\n\tpublic void periodic()\n\t{\n\t}",
"public Long getPeriod() {\n return this.Period;\n }",
"public Timer(long millisecond) {\r\n this.period = millisecond;\r\n reset();\r\n }",
"public String getPeriod() {\n return this.period;\n }",
"void delayForDesiredFPS(){\n delayMs=(int)Math.round(desiredPeriodMs-(float)getLastDtNs()/1000000);\n if(delayMs<0) delayMs=1;\n try {Thread.currentThread().sleep(delayMs);} catch (java.lang.InterruptedException e) {}\n }",
"long getInitialDelayInSeconds();",
"public void setPeriod(String period) {\n this.period = period;\n }",
"public void setPeriod(String period) {\n this.period = period;\n }",
"@Override\n\tpublic void periodic() {\n\t}",
"public int getHowManyInPeriod();",
"public float getFrameRate() { return 1000f/_interval; }",
"Duration getDefaultPollInterval();",
"public void interval() {\n APIlib.getInstance().addJSLine(jsBase + \".interval();\");\n }",
"public int getConfiguredPeriod() {\n return configuredPeriod;\n }",
"public Period getPeriod() {\n return period;\n }",
"public static double ParaTimer(){\n return (System.nanoTime() - timer)/(1000000000.);\n }",
"public float getMaxTimeSeconds() { return getMaxTime()/1000f; }",
"public synchronized void start(long period){\n\t\ttickHandle = scheduler.scheduleAtFixedRate(tickTask, 0, period, TimeUnit.MILLISECONDS);\t \n\t}",
"public void timer()\n {\n timer += .1; \n }",
"float getBlackoutPeriod();",
"public void setTimePeriod(int timePeriod) {\n this.timePeriod = timePeriod;\n }",
"@Override\n public long checkFrequencyMillis()\n {\n return TimeUnit.DAYS.toMillis( 1 );\n }"
] | [
"0.70976925",
"0.7082371",
"0.7020131",
"0.69981307",
"0.68803066",
"0.6764789",
"0.67574465",
"0.6626202",
"0.6609684",
"0.6569802",
"0.6558666",
"0.6542377",
"0.65303165",
"0.65290314",
"0.6512596",
"0.646974",
"0.64115477",
"0.640572",
"0.6388532",
"0.637364",
"0.6364455",
"0.6354431",
"0.63292575",
"0.6315482",
"0.6299466",
"0.62978834",
"0.6292062",
"0.62657964",
"0.61929923",
"0.617262",
"0.6170734",
"0.6166292",
"0.61398506",
"0.61398506",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6130921",
"0.6128139",
"0.6128139",
"0.6128139",
"0.6128139",
"0.612724",
"0.612724",
"0.612724",
"0.61261165",
"0.6124387",
"0.61003107",
"0.6068675",
"0.60682297",
"0.60658824",
"0.60621715",
"0.60445875",
"0.6043256",
"0.6043256",
"0.60392445",
"0.60297656",
"0.6019364",
"0.6006907",
"0.60035366",
"0.5982014",
"0.5974842",
"0.5969368",
"0.59346247",
"0.5925316",
"0.59202594",
"0.5903971",
"0.5903202",
"0.5900364"
] | 0.5988475 | 91 |
Limits the max changes loaded by observer. The default is 100. | ChangeObserver<T> limit(int maxChanges); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ChangeObserver<T> setInitialMaxValue(Object value);",
"private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }",
"@Value(\"${PhoneticPracticeG2.MaxHistory}\") public void setMaxHistory(int max) {this.MAX_HISTORY = max; }",
"public void setMaxRequestUrlsReported(int value) {\n this.maxRequestUrlsReported = value;\n }",
"public void setMaxConnections(int maxConnections)\n {\n _maxConnections = maxConnections;\n }",
"public void setMaxConcurrentAccessCount(String newValue);",
"public void setMaxConnections(int maxConnections) {\n this.maxConnections = maxConnections;\n saveProperties();\n }",
"public void setMaxLoadFactor(double loadFactor)\n {\n MAX_LOAD_FACTOR = loadFactor;\n }",
"public void setLimit(int limit) {\n\tLimit = limit;\n }",
"void setLimit(int limit);",
"public void setMaxConns(int value) {\n this.maxConns = value;\n }",
"public synchronized void updateMaxSize(int maxSize) {\n setMaxSize(maxSize);\n }",
"public void setMaxRecords(Integer maxRecords) {\n this.maxRecords = maxRecords;\n }",
"public void setMaxRecords(Integer maxRecords) {\n this.maxRecords = maxRecords;\n }",
"@Override\n\tpublic void setMaxNumOfUrls(int maxNumOfUrls) {\n\t\t\n\t}",
"public void setMaxOverflowConnections(int maxOverflowConnections)\n {\n _maxOverflowConnections = maxOverflowConnections;\n }",
"public double getLimit() {return limit;}",
"public void setMaxCacheEntries(int val) {\n this.mMaxCacheEntries = val;\n }",
"public void setMiterLimit(float limit);",
"public void setMaxBufferSize(int value) {\n this.maxBufferSize = value;\n }",
"public void setMaxCalls(int max);",
"public void setMaxRecords(int maxRecords) {\n this.maxRecords = maxRecords;\n }",
"private void updateMax(int val) {\n overallMax.updateMax(val);\n for (HistoryItem item : watchers.values()) {\n item.max.updateMax(val);\n }\n }",
"public void setLimit(Long Limit) {\n this.Limit = Limit;\n }",
"public void setLimit(Long Limit) {\n this.Limit = Limit;\n }",
"void setMaxValue();",
"public void setLimit(int limit) {\n this.limit = limit;\n }",
"public void setLimit(int limit) {\n this.limit=limit;\n }",
"public static double calculateLimit() {\n return 500;\n }",
"public void setMaximum() {\n getReel().setMaxValue(getVerticalScrollBar().getMaximum());\n }",
"public void setLimit(float value) {\n this.limit = value;\n }",
"public void setLimit(Integer limit) {\n this.limit = limit;\n }",
"public void requestEviction(int cMaximum);",
"public void setLimit(int limit) {\n this.limit = limit;\n }",
"public void setMax(int max) {\r\n\t\tif (!(max <= 0)) { // Check to make sure it's greater than zero\r\n\t\t\tif (max <= mProgress) {\r\n\t\t\t\tmProgress = 0; // If the new max is less than current progress, set progress to zero\r\n\t\t\t\tif (mOnCircularSeekBarChangeListener != null) {\r\n\t\t\t\t\tmOnCircularSeekBarChangeListener.onProgressChanged(this, mProgress, false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmMax = max;\r\n\r\n\t\t\trecalculateAll();\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}",
"public void setMaxSize(int maxSize) {\n this.maxSize = maxSize;\n }",
"public void setLimit(double limit) {\n\t\tthis.limit = limit;\n\t }",
"public void setMaxEntries(int maxEntries) {\n this.maxEntries = maxEntries;\n }",
"public void setMaxFrameRate(int maxFrameRate) {\n mMinimumMillisBetweenProgressUpdates = 1000 / maxFrameRate;\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 void setMaxAge(int age) {\n long old = getMaxAge();\n this.maxAge = age;\n firePropertyChange(\"maxAge\", old, getMaxAge());\n }",
"public void setMax(int max) {\n this.max = max;\n }",
"public void setMax(int max) {\n this.max = max;\n }",
"public void update(Limit limit);",
"public void setMaxEvictionQueueEntries(int val) {\n this.mMaxEvictionQueueEntries = val;\n }",
"public void markMaxRecordsPerPeriodReplace() throws JNCException {\n markLeafReplace(\"maxRecordsPerPeriod\");\n }",
"public void setMaxConcurrentConnection(Long MaxConcurrentConnection) {\n this.MaxConcurrentConnection = MaxConcurrentConnection;\n }",
"public void setMaxValue(int x) {\r\n\t\tmaxValue = x;\r\n\t}",
"public void setMaxIdleConns(int value) {\n this.maxIdleConns = value;\n }",
"public void setLimit(int limit) {\n\t\tthis.limit = limit;\n\t}",
"private void setMaxCacheMemSize(long maxSize) {\n\t\tif ( maxSize < 25 * 1024 ) {\n\t\t\tthrow new IllegalAccessError(\"Cache size must be at least 25 KB (\"+(25*1024)+\" bytes)\");\n\t\t}\n\t\tlog.info(\"setCacheSize(): New cache size: \"+maxSize+\" bytes.\");\n\t\tfinal boolean shrink = this.maxSize > maxSize;\n\t\tthis.maxSize = maxSize;\n\t\tif ( shrink ) {\n\t\t\tpurgeCache(true);\n\t\t}\n\t}",
"public void setMaxTrackingLostTime(long delta) {\n\t\tthis.maxTrkLostFor = delta;\t\n\t\tlogger.create().info().level(2).extractCallInfo()\n\t\t\t.msg(\"Max tracking lost time set to: \"+(delta/1000)+\"s\").send();\n\t}",
"private static int getApproximateMaxSize(int maxSizeFromConfig) {\n // because not to exceed the max size much we start eviction early.\n // so decrease the max size with ratio .95 below\n return maxSizeFromConfig * EVICTION_START_THRESHOLD_PERCENTAGE / ONE_HUNDRED_PERCENT;\n }",
"public static long getApiMaxInflightRequests() {\n return 5000L;\n }",
"public void setMaxValue(int maxValue) {\n this.maxValue = maxValue;\n }",
"public void setMaximumPagesToFetch(int max)\n\t{\n\t\tFrontier.setMaximumPagesToFetch(max);\n\t}",
"public void setFrameLimit(int value) {\n\t\tframeLimit = value;\n\t}",
"public int getLimit() {\n return limit;\n }",
"public void setLimit(Long limit) {\n this.limit = limit;\n }",
"public void setMaxLength(int max) {\n GtkEntry.setMaxLength(this, max);\n }",
"void setLinesLimit(int value);",
"public int getLimit() {\r\n return limit;\r\n }",
"public void setMaxAmount(int max) {\n _max = max;\n }",
"public static native void setMaxCache(int max);",
"public int getLimit() {\n return limit;\n }",
"public int getLimit() {\n return limit;\n }",
"public int getLimit() {\n return limit;\n }",
"public int getLimit() {\n\treturn Limit;\n }",
"public void setMaxVal(double maxVal) {\n this.maxVal = maxVal;\n }",
"public void setMaxValue(double x) {\r\n\t\tmaxValue = x;\r\n\t}",
"@JSProperty(\"max\")\n void setMax(double value);",
"public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n \t\t\t}",
"public void setMaxTransfer(double maxTransfer) {\n\t\tthis.maxTransfer = maxTransfer;\n\t}",
"public void setMax(int max) {\n\t\tif (max <= 0 || max < mProgress) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Max (%d) must be > 0 and >= %d\", max, mProgress));\n\t\t}\n\t\tmMax = max;\n\t\tinvalidate();\n\t}",
"static public void setMaxAsyncPollingRetries(int maxRetries) {\n maxAsyncPollingRetries = maxRetries;\n }",
"public void markMaxRecordsPerFileReplace() throws JNCException {\n markLeafReplace(\"maxRecordsPerFile\");\n }",
"public void setMaxActive(int maxActive);",
"public int getMaxOverflowConnections()\n {\n return _maxOverflowConnections;\n }",
"public int getLimit(){\r\n return limit;\r\n\r\n }",
"@Override\r\n public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n }",
"@Override\r\n public void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n }",
"public Double getLimit() {\n return limit;\n }",
"public Builder setMaxSize(int value) {\n \n maxSize_ = value;\n onChanged();\n return this;\n }",
"public void setMaxExternalMutations(int maxExternalMutations) {\n mMaxExternalMutations = maxExternalMutations;\n }",
"public void setMaxSize(int c) {\n maxSize = c;\n }",
"public void setMaxBufferSize(int maxBufferSize) {\r\n this.maxBufferSize = maxBufferSize;\r\n }",
"@Override\n\t\tpublic void onTrackLimitationNotice(int numberOfLimitedStatuses) {\n\t\t}",
"public int getMaxConnections()\n {\n return _maxConnections;\n }",
"public void setMaxLines(int maxLines) {\n if (mMaxLines == maxLines || maxLines <= 0) {\n return;\n }\n mMaxLines = maxLines;\n mNeedUpdateLayout = true;\n }",
"@Override\r\n\tpublic void setMaxEvaluations(int maxEvaluations) {\n\t\t\r\n\t}",
"public void temperatureMaxChanged(ValueChangeEvent event) {\n temperatureMax = Integer.valueOf(event.getNewValue().toString());\n updateTemperatureNormalisation();\n }",
"public void setMax( float max )\n { \n this.max = max;\n show_text();\n }",
"static public void setMaxMigrationAsyncPollingRetries(int maxRetries) {\n maxMigrationAsyncPollingRetries = maxRetries;\n }",
"public void setMaxLength(int value) {\n this.maxLength = value;\n }",
"void setStatisticsHistorySize(int historySize);",
"private int mobLimitPlacer(){\n if (gameWorld == GameWorld.NORMAL) return\n Api.getConfigManager().getWorldMobLimit();\n else return\n Api.getConfigManager().getNetherMobLimit();\n }",
"private void setLimit(\n com.google.protobuf.Int32Value.Builder builderForValue) {\n limit_ = builderForValue.build();\n \n }",
"Limits limits();",
"public void setMaxNumberOfHeartbeats(int maxHeartbeats) {\n this.maxHeartbeats = maxHeartbeats;\n }",
"public int getLimit() {\n\t\treturn limit;\n\t}"
] | [
"0.66215223",
"0.6470784",
"0.611884",
"0.60111356",
"0.5981117",
"0.59493124",
"0.5850537",
"0.58129746",
"0.58016413",
"0.5798896",
"0.5789402",
"0.5774583",
"0.5732161",
"0.5732161",
"0.5709601",
"0.5707345",
"0.5700804",
"0.56879175",
"0.568698",
"0.5678612",
"0.5670516",
"0.5670329",
"0.5664162",
"0.56597537",
"0.56597537",
"0.5628705",
"0.5626727",
"0.5626347",
"0.5609708",
"0.56049067",
"0.5604141",
"0.56036556",
"0.5600344",
"0.5580885",
"0.5570891",
"0.55595607",
"0.55582905",
"0.5557278",
"0.5556136",
"0.55560315",
"0.5548427",
"0.5533826",
"0.5533826",
"0.5531178",
"0.5530841",
"0.55227184",
"0.5514818",
"0.54973614",
"0.5492332",
"0.54855335",
"0.5461596",
"0.5460281",
"0.54484665",
"0.54483587",
"0.54448426",
"0.543475",
"0.54206055",
"0.54115444",
"0.53974867",
"0.5379039",
"0.537863",
"0.53748816",
"0.5371827",
"0.5359787",
"0.5357404",
"0.5357404",
"0.5357404",
"0.5348268",
"0.53423995",
"0.53357774",
"0.53289455",
"0.5320975",
"0.53134304",
"0.5307577",
"0.5301124",
"0.5300146",
"0.5298438",
"0.5297045",
"0.5297031",
"0.5295596",
"0.5295596",
"0.5292953",
"0.5279931",
"0.5277559",
"0.5274243",
"0.5272839",
"0.5254553",
"0.52529913",
"0.5251998",
"0.5248232",
"0.52478737",
"0.52433985",
"0.5237044",
"0.5236487",
"0.52355015",
"0.5230165",
"0.522975",
"0.5229297",
"0.52186173",
"0.5213673"
] | 0.8035917 | 0 |
Set the initial max value for watching the changes. | ChangeObserver<T> setInitialMaxValue(Object value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void SetMaxVal(int max_val);",
"void setMaximum(int max);",
"void setMaxValue();",
"public void setMaximum(Number max) {\n this.max = max;\n }",
"private void updateMax(int val) {\n overallMax.updateMax(val);\n for (HistoryItem item : watchers.values()) {\n item.max.updateMax(val);\n }\n }",
"public void setMaximumValue (double max) {\r\n\t\tmaxValue = new Double(max);\r\n\t}",
"public void setMaxVal(double maxVal) {\n this.maxVal = maxVal;\n }",
"public void setMaximum() {\n getReel().setMaxValue(getVerticalScrollBar().getMaximum());\n }",
"public void setMaxValue(int maxValue) {\n this.maxValue = maxValue;\n }",
"public void setMaxValue(int x) {\r\n\t\tmaxValue = x;\r\n\t}",
"public void setMax(int max) {\n this.max = max;\n }",
"public void setMax(int max) {\n this.max = max;\n }",
"public void setMaximumValue (Double max) {\r\n\t\tmaxValue = max;\r\n\t}",
"public void setMax(int max) {\r\n\t\tif (!(max <= 0)) { // Check to make sure it's greater than zero\r\n\t\t\tif (max <= mProgress) {\r\n\t\t\t\tmProgress = 0; // If the new max is less than current progress, set progress to zero\r\n\t\t\t\tif (mOnCircularSeekBarChangeListener != null) {\r\n\t\t\t\t\tmOnCircularSeekBarChangeListener.onProgressChanged(this, mProgress, false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmMax = max;\r\n\r\n\t\t\trecalculateAll();\r\n\t\t\tinvalidate();\r\n\t\t}\r\n\t}",
"public void setMaximum( final double max )\n\t{\n\t\tthis.max = max;\n\t\tthis.oneOverMax = 1d / this.max;\n\t}",
"protected final void setMax(Comparable max)\r\n {\r\n myMax = max;\r\n }",
"public void setMaximum(Number max) {\n ((ADocument) getDocument()).setMaximum(max);\n }",
"protected final void setMax() {\n\n\tint prevmax = this.max;\n\n\tint i1 = this.high;\n\tint i2 = left.max;\n\tint i3 = right.max;\n\n\tif ((i1 >= i2) && (i1 >= i3)) {\n\t this.max = i1;\n\t} else if ((i2 >= i1) && (i2 >= i3)) {\n\t this.max = i2;\n\t} else {\n\t this.max = i3;\n\t}\n\t\n\tif ((p != IntervalNode.nullIntervalNode) &&\n\t (prevmax != this.max)) {\n \t p.setMax();\n\t}\n }",
"private void setMax(int max) { this.max = new SimplePosition(false,false,max); }",
"public void setMaxValue(double x) {\r\n\t\tmaxValue = x;\r\n\t}",
"@JSProperty(\"max\")\n void setMax(double value);",
"public void setMax(int max)\n\t{\n\t\tif (max < 0)\n\t\t\tthrow new IllegalArgumentException(\"max < 0\");\n\t\tthis.max = max;\n\t}",
"public void setMaximum( final int value ) {\n checkWidget();\n if( 0 <= minimum && minimum < value ) {\n maximum = value;\n if( selection > maximum - thumb ) {\n selection = maximum - thumb;\n }\n }\n if( thumb >= maximum - minimum ) {\n thumb = maximum - minimum;\n selection = minimum;\n }\n }",
"public void setMax(int max) {\n\t\tif (max <= 0 || max < mProgress) {\n\t\t\tthrow new IllegalArgumentException(String.format(\"Max (%d) must be > 0 and >= %d\", max, mProgress));\n\t\t}\n\t\tmMax = max;\n\t\tinvalidate();\n\t}",
"public void setMaximumValue(double maximumValue)\n {\n this.maximumValue = maximumValue;\n }",
"@Value(\"${PhoneticPracticeG2.MaxHistory}\") public void setMaxHistory(int max) {this.MAX_HISTORY = max; }",
"public final void adjustLimits(int max) {\n this.invalid = false;\n if (this.value < 1) {\n this.value = 1;\n this.invalid = true;\n }\n if (max > 0) {\n if (this.value > max) {\n this.value = max;\n this.invalid = true;\n }\n }\n }",
"private void setMaxThreshold() {\n maxThreshold = value - value * postBoundChange / 100;\n }",
"public void setMaxAmount(int max) {\n _max = max;\n }",
"@Override\n\tpublic TxtRecordFactory maxTargetValue(int max) {\n\t\tmaxTargetValue = max;\n\t\treturn this;\n\t}",
"public static void setMaxAu(int max) {\n\t\tmaxAu = max;\n\t}",
"public void set_max(byte value) {\n setSIntBEElement(offsetBits_max(), 8, value);\n }",
"public void _setMax(float max)\r\n {\r\n if (valueClass.equals(Float.class))\r\n {\r\n setMaximum((int) (max * 100));\r\n } else\r\n {\r\n setMaximum((int) max);\r\n }\r\n }",
"public void setMax ( Point max ) {\r\n\r\n\tsetB ( max );\r\n }",
"@Raw\n private void setMaxVelocity(double max){\n \tif (!isValidMaxVelocity(max)) this.maxVelocity = SPEED_OF_LIGHT;\n \telse this.maxVelocity = max;\n }",
"private void updateMax(int next) {\n while (val < next) {\n val = next;\n }\n }",
"void setMaximum(java.math.BigDecimal maximum);",
"void setPruneMaximum(int max) {\n\t\tif(max >= maximumBound) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint newLargestWidth = getWidth(max - 1);\n\t\tint oldLargestWidth = getWidth(maximumBound - 1);\n\t\tmaximumBound = max;\n\t\t\n\t\tif(newLargestWidth < widthAfterQueue - 1) {\n\t\t\t//Don't prune the widths in the queue.\n\t\t\tnewLargestWidth = widthAfterQueue - 1;\n\t\t}\n\t\t\n\t\t//Prune useless widths\n\t\tfor(int i = newLargestWidth + 1; i < widths.size() && i <= oldLargestWidth; i++) {\n\t\t\tfor(ScheduleBlock block : widths.get(i)) {\n\t\t\t\tblock.remove();\n\t\t\t\twidthSize[i] -= block.size;\n\t\t\t}\n\t\t\t\n\t\t\twidths.get(i).clear();\n\t\t}\n\t}",
"public void setMax( float max )\n { \n this.max = max;\n show_text();\n }",
"public void setMaxMin(long maxMin) {\n\t\tthis.maxMin = maxMin;\r\n\t}",
"@JSProperty(\"maxRange\")\n void setMaxRange(double value);",
"public static void setRange(int max) {\r\n\t\tColors.max = max;\r\n\t}",
"public int getMaxValue(){\n\t\treturn maxValue;\n\t}",
"public void init()\r\n {\r\n myMax = null;\r\n }",
"public int getMaxValue() {\n return maxValue;\n }",
"public void temperatureMaxChanged(ValueChangeEvent event) {\n temperatureMax = Integer.valueOf(event.getNewValue().toString());\n updateTemperatureNormalisation();\n }",
"public void setMaximumAir ( int ticks ) {\n\t\texecute ( handle -> handle.setMaximumAir ( ticks ) );\n\t}",
"public void initMaxMin(){\n\t\tmax = dja.max();\n\t\tmin = dja.min();\n\t}",
"public void setMaxValue (String maxValue) {\n this.maxValue = maxValue;\n }",
"public void setMaximumPoints(int maximum);",
"void setNilMaximum();",
"public ProgressBar setMaxValue(double maxValue) {\n this.maxValue = maxValue;\n setValue(this.value);\n return this;\n }",
"public void setMaxRange(double maxRange) {\n this.maxRange = maxRange;\n }",
"public void setMaxUnit(int max) {\n maxUnit = max;\n }",
"public void setMaxprice(int value) {\n this.maxprice = value;\n }",
"public Builder setMaxMP(int value) {\n bitField0_ |= 0x00000040;\n maxMP_ = value;\n onChanged();\n return this;\n }",
"private ChangeListener createMaxListener()\r\n\t\t{\r\n\t\treturn new ChangeListener()\r\n\t\t\t{\r\n\r\n\t\t\t//called when the max spinner value is changed\r\n\t\t\t@Override\r\n\t\t\tpublic void stateChanged(ChangeEvent e)\r\n\t\t\t\t{\r\n\t\t\t\tint spinMinValue = (int)spinMin.getValue();\r\n\t\t\t\tint spinMaxValue = (int)spinMax.getValue();\r\n\r\n\t\t\t\tif (spinMaxValue <= spinMinValue) { // verify if the max spin goes under the min limit and adjust the value if necessary\r\n\t\t\t\t\tif (--spinMinValue < min)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tspinMax.setValue(spinMaxValue = (spinMinValue=min)+1);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tspinMin.setValue(spinMinValue);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (spinMaxValue > spinMinValue) // verify intervals are correct\r\n\t\t\t\t\t{\r\n\t\t\t\t\tdiceBuilder.setInterval(spinMinValue, spinMaxValue);\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}",
"public Long getMaxValue() {\n return maxValue;\n }",
"public void setMaxLagBackOffFactor(double value) {\n\t\tmaxLagBackOffFactor = value;\n\t}",
"public void setMaximum(int n) {\r\n int newMin = Math.min(n, min);\r\n int newValue = Math.min(n, getValue());\r\n int newExtent = Math.min(n - newValue, getExtent());\r\n setRangeProperties(newValue, newExtent, newMin, n, isAdjusting);\r\n }",
"public Builder setMaxMP(int value) {\n bitField0_ |= 0x00008000;\n maxMP_ = value;\n onChanged();\n return this;\n }",
"public static void SetMaxPassengers(double inLimit) \r\n {\r\n if (inLimit > 0) \r\n {\r\n maxPassengers = inLimit;\r\n } \r\n else \r\n {\r\n maxPassengers = 0;\r\n }\r\n }",
"public double getMaxVal() {\n return maxVal;\n }",
"@Override\n public void setMaxRange(int maxRange) {\n this.maxRange = maxRange;\n }",
"public void setMax(){\n for (int i = 0; i < Nodes.size(); i++){\n this.MinDistance.add(Double.MAX_VALUE);\n }\n }",
"public Builder setMaxMP(int value) {\n bitField0_ |= 0x00000080;\n maxMP_ = value;\n onChanged();\n return this;\n }",
"public DoubleGenerator max(double max) {\n this.max = max;\n return this;\n }",
"public void setMaxSpeed(double maxSpeed) {\r\n this.maxSpeed = maxSpeed;\r\n }",
"public M csmiStatusMax(Object max){this.put(\"csmiStatusMax\", max);return this;}",
"public void setMaxTime(int aMaxTime)\n{\n // Set max time\n _maxTime = aMaxTime;\n \n // If time is greater than max-time, reset time to max time\n if(getTime()>_maxTime)\n setTime(_maxTime);\n}",
"public void setMaxWeight(double inMaxWeight) {\n maxWeight = inMaxWeight;\n }",
"public Builder setMaxMP(int value) {\n bitField0_ |= 0x00000100;\n maxMP_ = value;\n onChanged();\n return this;\n }",
"public Builder setMaxMP(int value) {\n bitField0_ |= 0x00000100;\n maxMP_ = value;\n onChanged();\n return this;\n }",
"public Builder setMaxMP(int value) {\n bitField0_ |= 0x00000100;\n maxMP_ = value;\n onChanged();\n return this;\n }",
"public double getMaximumValue() { return this.maximumValue; }",
"public int setNitrateMax(Integer nitrateMax) {\n try {\n setNitrateMax(nitrateMax.floatValue());\n } catch (Exception e) {\n setNitrateMaxError(FLOATNULL, e, ERROR_SYSTEM);\n } // try\n return nitrateMaxError;\n }",
"protected final int getMax() {\n\treturn(this.max);\n }",
"public void setAdc_max (int max)\n {\n adc_max_ = max;\n }",
"public long maxValue() {\n return 0;\n }",
"public void setMaximumCategoryCount(int max) {\n/* 145 */ if (max < 0) {\n/* 146 */ throw new IllegalArgumentException(\"Requires 'max' >= 0.\");\n/* */ }\n/* 148 */ this.maximumCategoryCount = max;\n/* 149 */ fireDatasetChanged();\n/* */ }",
"public void setMaxRange(int max_range) {\n\t\t// Do not allow negative numbers\n\t\tthis.max_range = Math.max(0, max_range);\n\t}",
"ChangeObserver<T> limit(int maxChanges);",
"public Builder setMaximumCapacity(int value) {\n \n maximumCapacity_ = value;\n onChanged();\n return this;\n }",
"public void setMaxSpeed(double value) {\n super.setMaxSpeed(value);\n }",
"public void setMaxAlturaCM(float max);",
"public void SetMinVal(int min_val);",
"public Builder setMaxCount(int value) {\n bitField0_ |= 0x00000002;\n maxCount_ = value;\n onChanged();\n return this;\n }",
"void setNilWBMaximum();",
"public void setMAX_ITERACOES(int MAX_ITERACOES) \r\n {\r\n if(MAX_ITERACOES > 0)\r\n this.MAX_ITERACOES = MAX_ITERACOES;\r\n }",
"public void setmaxVolume(double maxVolume) {\n\t this.maxVolume = maxVolume;\n\t}",
"public void setMaxSpeed(int MaxSpeed) {\n this.MaxSpeed = MaxSpeed;\n }",
"public void setMaxTransfer(double maxTransfer) {\n\t\tthis.maxTransfer = maxTransfer;\n\t}",
"public void setVarimaxMaximumIterations(int max){\n this.nVarimaxMax = max;\n }",
"public void setMaxIfShift(long param) {\n if (param == java.lang.Long.MIN_VALUE) {\n localMaxIfShiftTracker = false;\n } else {\n localMaxIfShiftTracker = true;\n }\n this.localMaxIfShift = param;\n }",
"private void setConfigNumMaxTotalJobs(int value) {\n this.bitField0_ |= 1;\n this.configNumMaxTotalJobs_ = value;\n }",
"public final void ensureMax() {\n\t\tfinal int temp = findMax(lookupPrefix) + 1;\n\t\tif (temp > currentSequenceNumber) {\n\t\t\tcurrentSequenceNumber = temp;\n\t\t}\n\t}",
"public void setMaximumPagesToFetch(int max)\n\t{\n\t\tFrontier.setMaximumPagesToFetch(max);\n\t}",
"public void setMaxGenerations(int value) { maxGenerations = value; }",
"public int getMaximum() {\r\n return max;\r\n }",
"public void setInitialValue(int newInitialValue) {\n\t\tinitialValue = newInitialValue;\n\t}"
] | [
"0.7757612",
"0.7593248",
"0.75439703",
"0.7368829",
"0.7306986",
"0.73050433",
"0.7281599",
"0.72485906",
"0.7204901",
"0.71836406",
"0.71793115",
"0.71793115",
"0.71092236",
"0.70797884",
"0.70730734",
"0.706581",
"0.7045224",
"0.6990818",
"0.6934596",
"0.6918137",
"0.68548787",
"0.6845297",
"0.6808788",
"0.6808656",
"0.67104244",
"0.6696189",
"0.6687709",
"0.6685948",
"0.65854824",
"0.6583699",
"0.6497515",
"0.6495408",
"0.64843166",
"0.6469897",
"0.64584446",
"0.64352703",
"0.64214283",
"0.64035565",
"0.63958174",
"0.63941354",
"0.6391866",
"0.6348835",
"0.6308387",
"0.6300395",
"0.629954",
"0.6288182",
"0.62741935",
"0.6262034",
"0.62458146",
"0.6238357",
"0.62319374",
"0.6212632",
"0.62126106",
"0.6174848",
"0.61633193",
"0.615413",
"0.615097",
"0.61350095",
"0.6105533",
"0.6102334",
"0.6098764",
"0.6098107",
"0.6096834",
"0.608741",
"0.6078649",
"0.607397",
"0.60737765",
"0.60507756",
"0.60492504",
"0.6035012",
"0.6034584",
"0.6018021",
"0.6018021",
"0.60171676",
"0.6004016",
"0.59938407",
"0.59890187",
"0.5985099",
"0.5973764",
"0.5967669",
"0.5967095",
"0.5962973",
"0.596205",
"0.59526545",
"0.5947249",
"0.5947041",
"0.5945321",
"0.5943779",
"0.5942052",
"0.5935258",
"0.59351456",
"0.5933596",
"0.5926729",
"0.5924526",
"0.5912789",
"0.5911117",
"0.5909679",
"0.59085226",
"0.5907146",
"0.5906173"
] | 0.7912689 | 0 |
OnResume se llama siempre despues de OnStart y cada vez que se vuelve al fragment | @Override
public void onResume() {
super.onResume();
//progressPopup.show();
getAdapter().notifyDataSetChanged();
loadInscripciones();
((MainActivity) getActivity()).setToolbarName(getString(R.string.mis_inscripciones));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void onFragmentResume() {\n\t}",
"@Override\n public void onResume() {\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tif (Pending_Refresh) {\n\n\t\t\tFrag_Paused = false;\n\t\t\tOnHomeUpdateFinished();\n\n\t\t}\n\t\tLog.e(\"mainactivity\", \"resumed\");\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.i(TAG, module + \" Entra por onResume\");\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tUMengStatistticUtil.onResumeForFragmentActivity(this);\n\n\t}",
"public void onResume() {\n }",
"public void onResume();",
"@Override\n\tpublic void onResume() {\n\n\t}",
"@Override\n\tpublic void onResume() {\n\n\t}",
"@Override\n protected void onResume() {\n super.onResume();\n Log.i(\"LOG:\", \"ESTOY EN RESUME\");\n activarSensores();\n }",
"@Override\n protected void onResume() {\n super.onResume();\n justAfterPause = false;\n }",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tLog.i(TAG, \"onResume\");\n\t}",
"public void onResume() {\n super.onResume();\n }",
"public void onResume() {\n super.onResume();\n }",
"void onResume();",
"@Override\n\tprotected void onResume() {\n\t\t\n\t\tinit();\n\t\tsuper.onResume();\n\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\t\r\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLogUtils.d(\"onResume() is in\");\n\t}",
"@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t\tLog.d(TAG, \"onResume\");\n \t}",
"@Override\r\n protected void onResume() {\n super.onResume();\r\n Log.i(TAG, \"onResume\");\r\n\r\n }",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\n\t}",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\n\t}",
"@Override\n public void onResume() {\n super.onResume();\n updateUserAcount();\n showMainBottom();\n MobclickAgent.onPageStart(\"MyMainFragment\");\n }",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t}",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\r\n\t}",
"@Override\n public void onResume() {\n\n super.onResume();\n }",
"@Override\n protected void onResume() {\n super.onResume();\n\n Log.d(LOG_TAG, \"onResume()\");\n\n\n\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t \n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\t\t\t\n\t\t\t\t\n\t}",
"@Override\r\n\tpublic void onResume() {\n\t\tsuper.onResume();\r\n\t\tLog.d(TAG, \"SearchListFragment.onResume called\");\r\n\t}",
"@Override\n public void onResume() {\n super.onResume();\n }",
"@Override\n public void onResume() {\n super.onResume();\n }",
"@Override\n public void onResume() {\n super.onResume();\n }",
"@Override\n public void onResume() {\n super.onResume();\n }",
"@Override\n public void onResume() {\n super.onResume();\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.v(\"tag\",\"onResume\" );\n\t}",
"@Override\n\tprotected void onResume() {\n\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.e(TAG, \"onResume\");\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t\n\t}",
"@Override\n\t\tprotected void onResume() {\n\t\t\tsuper.onResume();\n\t\t}",
"@Override\n\tprotected void onResume() \n\t{\n\t\tsuper.onResume();\n\t}",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tifneedUpdate();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\n\t}",
"@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\t}",
"@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t}",
"@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t}",
"@Override\n protected void onResume() {\n super.onResume();\n Log.d(TAG, \"onResume() called\");\n }",
"@Override\r\n protected void onResume() {\r\n Log.i(TAG, \"onResume()\");\r\n \r\n super.onResume();\r\n }",
"@Override\n protected void onResume() {\n Log.i(\"G53MDP\", \"Main onResume\");\n super.onResume();\n }",
"@Override\n\tprotected void onResume()\n\t{\n\t\tsuper.onResume();\n\n\t}",
"@Override\r\n protected void onResume() {\n\tsuper.onResume();\r\n }",
"@Override\n protected void onResume() {\n super.onResume();\n }",
"@Override\n protected void onResume() {\n super.onResume();\n }",
"@Override\n protected void onResume() {\n super.onResume();\n }",
"@Override\n protected void onResume() {\n super.onResume();\n }",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tLog.v(\"huahua\", \"fragment1-->onResume()\");\n\t\t\n\t\t\n\t\t//延迟1秒 \n\t\tnew Handler().postDelayed(new Runnable(){\n\t\t\t@Override\n\t\t\tpublic void run(){\n\t\t\t\tpull_session.request(); \n\t\t\t}\n\t\t}, 1000);\n\t\t \n\t\t\n\t}",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tactivity = (MainActivity) getActivity();\n\t\tactivity.recommendSongNameFragment = this;\n\t\tmHandler.sendEmptyMessage(FragmentMessageConstant.FRAGMENT_MESSAGE_HIDE_SEARCHVIEW);\n\t\tcurrentPage = 1;\n\t\tlist_start = 0;\n\t\tMyApplication.isRecommendFragment = true;\n\t\tMyApplication.currentSinger = getResources().getString(R.string.home_4);\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tLog.v(TAG, \"onCreate\");\n\t}"
] | [
"0.8165882",
"0.77474326",
"0.7739001",
"0.772092",
"0.7715975",
"0.7715975",
"0.7715975",
"0.7715975",
"0.77067745",
"0.7703799",
"0.7701325",
"0.7676056",
"0.7676056",
"0.7648004",
"0.76139677",
"0.7611908",
"0.7610333",
"0.7580505",
"0.7580505",
"0.7580505",
"0.7568555",
"0.7562271",
"0.7562271",
"0.756087",
"0.75432795",
"0.753852",
"0.753852",
"0.7535785",
"0.75246537",
"0.75227904",
"0.7513232",
"0.7513232",
"0.75078917",
"0.7506651",
"0.7506651",
"0.7506651",
"0.7506651",
"0.7506651",
"0.7506651",
"0.7506651",
"0.7500078",
"0.7500078",
"0.7500078",
"0.7500078",
"0.7500078",
"0.7500078",
"0.7500078",
"0.7500078",
"0.7500078",
"0.7500078",
"0.74940705",
"0.74940705",
"0.74801856",
"0.7478334",
"0.74673754",
"0.74637055",
"0.7463233",
"0.74592686",
"0.74592686",
"0.74592686",
"0.74592686",
"0.74592686",
"0.74554735",
"0.74480456",
"0.744786",
"0.74445677",
"0.7436882",
"0.74320227",
"0.74318385",
"0.74285746",
"0.74285746",
"0.74285746",
"0.74285746",
"0.74285746",
"0.74285746",
"0.74285746",
"0.74285746",
"0.74285746",
"0.74285746",
"0.74285746",
"0.74285746",
"0.74285746",
"0.74285746",
"0.74224234",
"0.74224234",
"0.74224234",
"0.739778",
"0.7397449",
"0.7397449",
"0.7395397",
"0.7392468",
"0.7386018",
"0.73853177",
"0.73817784",
"0.7379109",
"0.7379109",
"0.7379109",
"0.7379109",
"0.73673165",
"0.73559946",
"0.7349181"
] | 0.0 | -1 |
Test of clear method, of class DotStar. | @Test
public void testClear() {
System.out.println("clear");
int numLEDs = 150;
DotStar instance = new MockDotStar(numLEDs);
instance.clear();
for (int i = 0; i < numLEDs; i++) {
assertEquals((byte) 0xFF, instance.data[4 * i]);
assertEquals((byte) 0x00, instance.data[(4 * i) + 1]);
assertEquals((byte) 0x00, instance.data[(4 * i) + 2]);
assertEquals((byte) 0x00, instance.data[(4 * i) + 3]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clear() ;",
"private void clear() {\n }",
"public void clear() {\n }",
"public void clear() {\n }",
"public void clear() {\n }",
"public void clear() {\n\t// Does nothing\n}",
"public void Clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public void clear();",
"public abstract void clear();",
"public abstract void clear();",
"public abstract void clear();",
"public abstract void clear();",
"public void clear() {\n\n\t}",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void clear();",
"void\tclear();",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"@Override\n\tpublic void clear() {\n\t\t\n\t}",
"private void clear() {\n\t\tSystem.out.println(\"Calling clear\");\n\t}",
"public void clear() {\n doClear();\n }",
"public void clear() {\n\t\t\r\n\t}"
] | [
"0.7674772",
"0.75851876",
"0.7519643",
"0.7519643",
"0.7439734",
"0.7428922",
"0.7406379",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.74029547",
"0.7402353",
"0.7402353",
"0.7402353",
"0.7402353",
"0.7380173",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7373559",
"0.7298489",
"0.728429",
"0.728429",
"0.728429",
"0.728429",
"0.728429",
"0.728429",
"0.728429",
"0.7253817",
"0.72522247",
"0.7244156"
] | 0.75832164 | 2 |
Test of setPixelColor method, of class DotStar. | @Test
public void testSetPixelColor() {
System.out.println("setPixelColor");
int numLEDs = 150;
Color color = new Color(63, 123, 255);
DotStar instance = new MockDotStar(numLEDs);
for (int i = 0; i < numLEDs; i++) {
instance.setPixelColor(i, color);
}
for (int i = 0; i < numLEDs; i++) {
assertEquals((byte) 0xFF, instance.data[4 * i]);
assertEquals((byte) color.getBlue(), instance.data[(4 * i) + 1]);
assertEquals((byte) color.getGreen(), instance.data[(4 * i) + 2]);
assertEquals((byte) color.getRed(), instance.data[(4 * i) + 3]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void testSetColor() {\n\n\t\tproc = new ByteProcessor(1,3,new byte[] {1,2,3},new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3}));\n\n\t\tif (IJInfo.RUN_ENHANCED_TESTS)\n\t\t{\n\t\t\t// this test crashes with a null ptr exception\n\t\t\tip = new ImagePlus(\"MyChemicalRomance\", proc);\n\t\t\tip.setColor(null);\n\t\t}\n\n\t\t// try to set color of ImagePlus with no processor\n\t\t// ... should do nothing\n\t\tip = new ImagePlus();\n\t\t// can't rely on as packages may change : assertNull(ip.ip);\n\t\tip.setColor(Color.yellow);\n\t\t// can't do due to access: assertEquals(ip.ip.drawingColor,Color.black);\n\n\t\t// try to set color of processor when it exists\n\t\t// ... should set something lower -> defers to ImageProcessor.setColor() -> test there\n\t\tip = new ImagePlus(\"MyChemicalRomance\", proc);\n\t\t// can't rely on as packages may change : assertEquals(proc,ip.ip);\n\t\tip.setColor(Color.magenta);\n\t\t// can't do due to access: assertEquals(ip.ip.drawingColor,Color.magenta);\n\t}",
"@Test\n\tpublic void testNewPaintPixelTest() {\n\t\tPixel[][] greenParray = new Pixel[5][5];\n\t\tfor (int x = 0; x < 5; x++) {\n\t\t\tfor (int y = 0; y < 5; y++) {\n\t\t\t\tgreenParray[x][y] = green;\n\t\t\t}\n\t\t}\n\t\t\n\t\tPixel[][] blueParray = new Pixel[5][5];\n\t\tfor (int x = 0; x < 5; x++) {\n\t\t\tfor (int y = 0; y < 5; y++) {\n\t\t\t\tblueParray[x][y] = blue;\n\t\t\t}\n\t\t}\n\t}",
"boolean canSetPixel();",
"public native void setBorderColor(PixelPacket color) throws MagickException;",
"public void drawPixel(int x, int y, int color);",
"void setRed(int x, int y, int value);",
"public void setPixel(int x, int y, Color color)\n\t{\n\t\tsetPixel(x, y, color, 1);\n\t}",
"@Override\n public void setPixelRGB(int x, int y, int value) {\n debugView.setPixel(x, y, value);\n repaint();\n }",
"public void setColor(int color) {\n/* 77 */ this.color = color;\n/* 78 */ this.paint.setColor(this.color);\n/* */ }",
"void setGreen(int x, int y, int value);",
"@Test(expected = IndexOutOfBoundsException.class)\n public void testLargerIndex() {\n int numLEDs = 150;\n Color color = Color.WHITE;\n DotStar instance = new MockDotStar(numLEDs);\n instance.setPixelColor(numLEDs + 1, color);\n fail(\"Index cannot be less than 0\");\n }",
"void setBlue(int x, int y, int value);",
"public static void assertPixelColor(final BufferedImage img, final int x, final int y, final int expectedRed, final int expectedGreen, final int expectedBlue){\n int rgb = img.getRGB(x, y);\n int r = (rgb >> 16) & 0xFF;\n int g = (rgb >> 8) & 0xFF;\n int b = (rgb & 0xFF);\n\t\n assertEquals(expectedRed, r);\n assertEquals(expectedGreen, g);\n assertEquals(expectedBlue, b);\n }",
"void setColor(int r, int g, int b);",
"private void paintPointInColor(int x, int y) {\n\t\traster.setDataElements(x, y, model.getDataElements(c.getRGB(), null));\t\t\n\t}",
"public void setPixel(int x, int y, short red, short green, short blue) {\n // Your solution here, but you should probably leave the following line\n // at the end.\n\t //if setPixel at the first location.\n\t if((x==0) && (y==0)) {\n\t\t if(red!=runs.getFirst().item[1]) {\n\t\t\t if(runs.getFirst().item[0]!=1) {\n\t\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t\t runs.getFirst().item[0]=runs.getFirst().item[0]-1;\n\t\t\t\t runs.addFirst(item);\n\t\t\t }\n\t\t\t else {\n\t\t\t\t if(red!=runs.getFirst().next.item[1]) {\n\t\t\t\t runs.remove(runs.nth(1));\n\t\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t\t runs.addFirst(item);\n\t\t\t\t System.out.println(runs.toString());\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t\t runs.remove(runs.nth(1));\n\t\t\t\t\t runs.getFirst().item[0]=runs.getFirst().item[0]+1;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t \n\t //if setPixel at the last location.\n\t else if((x==(width-1)) && (y==(height-1))) {\n\t\t if(runs.getLast().item[0]==1) {\n\t\t\t if(red!=runs.getLast().prev.item[1]) {\n\t\t\t\t int[] item= new int[] {1,red,green,blue}; \n\t\t\t\t runs.remove(runs.getLast());\n\t\t\t\t runs.addLast(item);\n\t\t }\n\t\t \n\t\t\t else {\n\t\t\t\t runs.remove(runs.getLast());\n\t\t\t\t runs.getLast().item[0]=runs.getLast().item[0]+1;\n\t\t\t }\n\t\t\t \n\t\t }\n\t\t else {\n\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t runs.addLast(item);\n\t\t\t runs.getLast().prev.item[0]=runs.getLast().prev.item[0]-1;\n\t\t }\n\t }\n\t \n\t //if Pixel is at a random location.\n//\t if(((x>0) && (y>0)) && ((x!=(width-1)) && (y!=(height-1))) ) {\n//\t if((x>0)&&(x!=(width-1))){\n\t else {\n\t int loc=y*(width)+x+1; \n\t int count=0;\n\t for(int i=0;i<runs.length();i++) {\n\t\t \n\t\tloc=loc-runs.nth(i+1).item[0] ;\n\t\tcount++;\n\t\tif (loc<=0) {\n\t\t\tbreak;\n\t\t}\n\t }\n\t if((loc==0) && (runs.nth(count).item[0]==1)){\n\t\t if((red!=runs.nth(count).next.item[1])&&(red!=runs.nth(count).prev.item[1])) { \n\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t runs.addAfter(runs.nth(count), item);\n\t\t\t runs.remove(runs.nth(count));\n\t\t }\n\t\t if((red==(runs.nth(count).next).item[1])&& (red!=runs.nth(count).prev.item[1])){\n\t\t\t runs.remove(runs.nth(count));\n\t\t\t runs.nth(count).item[0]=runs.nth(count).item[0]+1;\n\t\t }\t\n\t\t if((red==(runs.nth(count).prev).item[1])&&(red!=runs.nth(count).next.item[1])) {\n\t\t\t runs.remove(runs.nth(count));\n\t\t\t runs.nth(count).prev.item[0]=runs.nth(count).prev.item[0]+1;\n\t\t }\t\n\t\t if((red==(runs.nth(count).prev).item[1])&&(red==runs.nth(count).next.item[1])) {\n\t\t\t runs.nth(count).prev.item[0]=runs.nth(count).prev.item[0]+1+runs.nth(count).next.item[0];\n\t\t\t runs.remove(runs.nth(count));\n\t\t\t runs.remove(runs.nth(count));\n\t\t }\n\t }\n\t else if((loc==0) && (runs.nth(count).item[0]!=1)) {\n\t\t if(red!=runs.nth(count).next.item[1]) {\n\t\t\t runs.nth(count).item[0]=runs.nth(count).item[0]-1;\n\t\t\t int[] item= new int[] {1,red,green,blue};\n\t\t\t runs.addAfter(runs.nth(count), item);\t \n\t\t }\n\t\t else {\n\t\t\t runs.nth(count+1).item[0]=runs.nth(count+1).item[0]+1;\n\t\t }\t\t \n\t } \n\t else if(loc!=0) {\n\t\t \n\t\t int[] item= new int[] {1,red,green,blue};\n\n//\t\t DListNode<int[]> dup=runs.nth(count);\n//\t\t System.out.println(\"This is dup\"+dup.item[0]+\" \"+dup.item[1]+\" \"+dup.item[2]+\" \"+dup.item[0]);\t\t \n\t\t runs.addAfter(runs.nth(count), item);\n\t\t int[] dup=new int[] {runs.nth(count).item[0],runs.nth(count).item[1],runs.nth(count).item[2],runs.nth(count).item[3]};\n\t\t runs.addAfter(runs.nth(count).next, dup);\n\t\t System.out.println(runs.nth(count).item[0]+\"This is loc \"+loc+\"THis is count \"+count);\n\t\t runs.nth(count).item[0]=runs.nth(count).item[0]+loc-1;\n\t\t System.out.println(runs.nth(count).next.next.item[0]+\"This is loc \"+loc+\"THis is count \"+count);\n\t\t runs.nth(count).next.next.item[0]=runs.nth(count).next.next.item[0]+loc-1;\t\n\t\t }\n\t\t \n\t \n\t }\n check();\n}",
"void handlePixelStart(int x, int y, int color);",
"@Test(expected = IndexOutOfBoundsException.class)\n public void testNegativeIndex() {\n int numLEDs = 150;\n Color color = Color.WHITE;\n DotStar instance = new MockDotStar(numLEDs);\n instance.setPixelColor(-1, color);\n fail(\"Index cannot be less than 0\");\n }",
"@Test\n public void testGetColor() {\n assertEquals(r1.getColor(), new Color(255, 0, 0));\n assertEquals(r2.getColor(), new Color(255, 255, 255));\n assertEquals(r3.getColor(), new Color(255, 255, 0));\n assertEquals(r4.getColor(), new Color(200, 150, 133));\n }",
"@Override\r\n public void setPixel(int size, int x, int y, Color c) {\r\n int color = c.getRGB();\r\n\r\n for (int i = 0; i < size; i++) {\r\n for (int j = 0; j < size; j++) {\r\n canvas.setRGB(x + i, y + j, color);\r\n }\r\n }\r\n\r\n repaint();\r\n }",
"public void setColor(int color);",
"public void setColor(int color);",
"@Override\n public native Color getPixelColor(int x, int y);",
"void setColor(@ColorInt int color);",
"@org.junit.Test\r\n public void testPaint() {\r\n node.paintRed();\r\n assert(node.isRed());\r\n assert(!node.isBlack());\r\n \r\n node.paintBlack();\r\n assert(!node.isRed());\r\n assert(node.isBlack());\r\n \r\n node.paintBlack();\r\n assert(!node.isRed());\r\n assert(node.isBlack());\r\n \r\n node.paintRed();\r\n assert(node.isRed());\r\n assert(!node.isBlack()); \r\n \r\n node.invertColor();\r\n assert(!node.isRed());\r\n assert(node.isBlack());\r\n \r\n node.invertColor();\r\n assert(node.isRed());\r\n assert(!node.isBlack()); \r\n }",
"public void setColor(int i, int j, int color){\n\t\tdots[i][j].setColor(color);\n\t}",
"public void setColor(int value);",
"public static void testPixellateOneArg(){\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t caterpillar.explore();\n\t caterpillar.pixellate(40);\n\t caterpillar.explore();\n }",
"public void setPointColor(String pointColor)\n {\n myPointColor = pointColor;\n }",
"public void setColor(int r, int g, int b);",
"@Test\n public void testShow() throws Exception {\n System.out.println(\"show\");\n int numLEDs = 150;\n Color color = new Color(63, 123, 255);\n DotStar instance = new MockDotStar(numLEDs);\n for (int i = 0; i < numLEDs; i++) {\n instance.setPixelColor(i, color);\n }\n\n instance.show();\n\n for (int i = 0; i < numLEDs; i++) {\n assertEquals((byte) 0xFF, instance.data[4 * i]);\n assertEquals((byte) color.getBlue(), instance.data[(4 * i) + 1]);\n assertEquals((byte) color.getGreen(), instance.data[(4 * i) + 2]);\n assertEquals((byte) color.getRed(), instance.data[(4 * i) + 3]);\n }\n }",
"@Test\n\tpublic void colorCustomization() {\n\n\t\tset.setFill(1);\n\t\tassertTrue(set.hasFill());\n\t\tassertEquals(1, set.getColor());\n\t\tassertEquals(1, set.getFillColor());\n\n\t\tset.setColor(3);\n\t\tset.setFill(2);\n\t\tassertEquals(3, set.getColor());\n\n\t\tset.setGradientFill(new int[] {1, 2}, new float[] {1.f, 2.f});\n\t\tassertTrue(set.hasGradientFill());\n\t}",
"public void setColor(float r, float g, float b, float a);",
"protected abstract PixelAsColors applyToPixel(Node n) throws IllegalArgumentException;",
"public native void setBackgroundColor(PixelPacket color)\n\t\t\tthrows MagickException;",
"void setStone(int x, int y, int color);",
"@Test\n public void testVictoryBlue(){\n for (Cell c: modelTest.grid) {\n if (c.getY() == 5)\n c.setColor(Color.BLUE);\n }\n\n modelTest.researchVictory(0,1);\n Color winnerTest = modelTest.getWinner();\n\n Assert.assertEquals(winnerTest,Color.BLUE);\n }",
"public void setColor(Color color);",
"public void setColor(Color c);",
"public void SetPixel(int x, int y, Color colour){\n\t\tif(x>=width||y>=height||x<0||y<0)return;\r\n\t\tpixels[x][y] = colour;\r\n\t}",
"@Test\n public void testVictoryRed(){\n for (Cell c: modelTest.grid) {\n if (c.getX() == 6)\n c.setColor(Color.RED);\n }\n\n modelTest.researchVictory(1,0);\n Color winnerTest = modelTest.getWinner();\n\n Assert.assertEquals(winnerTest,Color.RED);\n }",
"public void setFillColor(Color color);",
"void setColorWithRedraw(@ColorInt int color) {\n/* 167 */ this.mPaint.setColor(color);\n/* 168 */ onRedrawIfInitialized();\n/* */ }",
"public void drawPixel(int x,int y, int rgbColor)\n {\n image.setRGB(x,y,rgbColor);\n }",
"public abstract void putPixelRgb(int x, int y, RGBPixel p);",
"void setColor(Vector color);",
"public void setColor(Color newColor) ;",
"public void useStarObjectColor ( ) {\r\n\t\tcolor = null;\r\n\t}",
"public abstract void setColor(Color color);",
"public abstract void setColor(Color color);",
"public void blitPixel(int x, int y, int color)\n {\n if (x < 0 || x > width - 1 || y < 0 || y >= height - 1)\n return;\n if (((color >> 24) & 0xFF) == 255)\n {\n data[y * width + x] = color;\n } else if (((color >> 24) & 0xFF) > 0)\n {\n data[y * width + x] = Color.tint(data[y * width + x], color);\n }\n }",
"public boolean testPixel(EIfcpixeltexture type) throws SdaiException;",
"public void getColor() {\n\t\tPoint point = MouseInfo.getPointerInfo().getLocation();\n\t\trobot.mouseMove(point.x, point.y);\n\t\tColor color = robot.getPixelColor(point.x, point.y);\n//\t\tSystem.out.println(color);\n\t}",
"void setColor(final java.awt.Color color);",
"public String _setcirclecolor(int _nonvaluecolor,int _innercolor) throws Exception{\n_mcirclenonvaluecolor = _nonvaluecolor;\n //BA.debugLineNum = 61;BA.debugLine=\"mCircleFillColor = InnerColor\";\n_mcirclefillcolor = _innercolor;\n //BA.debugLineNum = 62;BA.debugLine=\"Draw\";\n_draw();\n //BA.debugLineNum = 63;BA.debugLine=\"End Sub\";\nreturn \"\";\n}",
"public static void TurnOnPixel(Color c, int idPixel, String idLumio){\n IMqttClient publisher = Connections.connectPublisher();\n JSONObject json = new JSONObject();\n json.put(\"command\", \"set_pixel\");\n json.put(\"led\", idPixel);\n json.put(\"rgb\",c.getRGB());\n MqttMessage message = new MqttMessage();\n message.setPayload(json.toString().getBytes());\n try {\n publisher.publish(\"laumio/\"+idLumio+\"/json\",message);\n } catch (MqttException e) {\n e.printStackTrace();\n }\n }",
"protected void applyToPixel(Node n) throws IllegalArgumentException {\n if (n == null) {\n throw new IllegalArgumentException(\"Null node given.\");\n }\n ArrayList<Double> nodeRGB = new ArrayList<Double>(\n Arrays.asList(n.getRed() + 0.0, n.getGreen() + 0.0, n.getBlue() + 0.0));\n Matrix ogRGB = new MatrixImpl(nodeRGB, 1, 3);\n\n Matrix newRGB = this.generateNewColorMatrix(ogRGB);\n\n n.updateColors(new SimplePixel(\n Utils.roundDouble(newRGB.getValue(0, 0)),\n Utils.roundDouble(newRGB.getValue(0, 1)),\n Utils.roundDouble(newRGB.getValue(0, 2))));\n }",
"private void setPenColor() {\n\t}",
"void handlePixelEnd(int x, int y, int color);",
"public void setColor(Color c) { color.set(c); }",
"@Test\n\tpublic void testGetPixel() {\n\t\tip = new ImagePlus();\n\t\tassertArrayEquals(new int[] {0,0,0,0}, ip.getPixel(0,0));\n\n\t\t// COLOR_256\n\t\tIndexColorModel cm = new IndexColorModel(8,1,new byte[]{1},new byte[]{2},new byte[]{3});\n\t\tproc = new ByteProcessor(1,1,new byte[] {0},cm);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.setImage(new BufferedImage(1,1,BufferedImage.TYPE_BYTE_INDEXED, cm));\n\t\tassertEquals(ImagePlus.COLOR_256,ip.getType());\n\t\tassertArrayEquals(new int[] {1,2,3,0}, ip.getPixel(0,0));\n\n\t\t// GRAY8\n\t\tproc = new ByteProcessor(1,1,new byte[] {53}, null);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY8,ip.getType());\n\t\tassertArrayEquals(new int[] {53,0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// GRAY16\n\t\tproc = new ShortProcessor(1,1,new short[] {30000},null);\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY16,ip.getType());\n\t\tassertArrayEquals(new int[] {30000,0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// COLOR_RGB\n\t\tproc = new ColorProcessor(1,1,new int[] {0xffeedd});\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.COLOR_RGB,ip.getType());\n\t\tassertArrayEquals(new int[] {0xff,0xee,0xdd,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\n\t\t// GRAY32\n\t\tint[] ints = new int[3];\n\t\tproc = new FloatProcessor(1,3,ints);\n\t\tproc.set(0, 0, Float.floatToIntBits(25.0f));\n\t\tip = new ImagePlus(\"SoupySales\",proc);\n\t\tip.getImage(); // make sure img instance var gets set or getPixel() always returns [0,0,0,0]\n\t\tassertEquals(ImagePlus.GRAY32,ip.getType());\n\t\tassertArrayEquals(new int[] {Float.floatToIntBits(25.0f),0,0,0}, ip.getPixel(0,0));\n\t\tassertArrayEquals(new int[] {0,0,0,0},ip.getPixel(-1,-1));\n\t}",
"void setColor(float r, float g, float b) {\n color c = color(r, g, b);\n for(int x = 0; x < _img.width; x++) {\n for(int y = 0; y < _img.height; y++) {\n _img.set(x, y, c);\n }\n }\n }",
"public void setColor(RMColor aColor)\n{\n // Set color\n if(aColor==null) setFill(null);\n else if(getFill()==null) setFill(new RMFill(aColor));\n else getFill().setColor(aColor);\n}",
"void setBitsPerPixel(int bitsPerPixel);",
"public void set(int x, int y, int color){\n if(in(x, y)){\n pixels.putInt((x + y * width) * 4, color);\n }\n }",
"public void setDataColor(Color c)\r\n/* 48: */ {\r\n/* 49: 36 */ this.ballColor = c;repaint();\r\n/* 50: */ }",
"@Test\n public void testSetColorModel() throws FitsException, IOException{\n IndexColorModel colorModel = ColorTable.getColorModel(2);\n ImageData imageData = new ImageData(frArray, IMAGE_TYPE,COLROID, rangeValues, 0,0, 100, 100, true );\n imageData.setColorModel(colorModel);\n Assert.assertEquals(-1, imageData.getColorTableId());\n\n }",
"protected abstract void updateShapeColor(Color color);",
"public abstract void getPixelRgb(int x, int y, RGBPixel p);",
"private native void setModelColor(float r,float g,float b);",
"public void setPixel(int x, int y, Pixel p) {\n\t\tsource.setPixel(x + xOffset, y + yOffset, p);\n\t}",
"public void setColor(Color color) {\n this.color = color;\n }",
"public void setColor(int gnum, Color col);",
"public void setRaw(int x, int y, int color){\n pixels.putInt((x + y * width) * 4, color);\n }",
"public void createTestPattern()\n {\n int i;\n int j;\n RGBPixel p = new RGBPixel();\n\n for ( i = 0; i < getXSize(); i++ ) {\n for ( j = 0; j < getYSize(); j++ ) {\n if ( ((i % 2 != 0) && (j % 2 == 0)) || \n ((j % 2 != 0) && (i % 2 == 0)) ) {\n p.r = (byte)255;\n p.g = (byte)255;\n p.b = (byte)255;\n }\n else {\n p.r = 0;\n p.g = 0;\n p.b = 0;\n }\n if ( j == getYSize()/2 ) {\n p.r = (byte)255;\n p.g = 0;\n p.b = 0;\n }\n if ( i == getXSize()/2) {\n p.r = 0;\n p.g = (byte)255;\n p.b = 0;\n }\n putPixelRgb(i, j, p);\n }\n }\n }",
"protected void onUpdateImageMouseColor(int x, int y, String color) { \n mousePosition.setText(\"X:\" + x + \" Y:\" + y + \" \" + (color != null ? color : \"\"));\n }",
"void xsetColorDepth(com.microsoft.schemas.office.x2006.digsig.STPositiveInteger colorDepth);",
"@Test\n public void getColorTest() {\n assertTrue(red_piece.getColor() == Piece.Color.RED);\n assertTrue(white_piece.getColor() == Piece.Color.WHITE);\n }",
"public PointDetails setColor(int color){\n\t\t\treturn setColor(()->color);\n\t\t}",
"public void setColor( GraphColor newVal ) {\n color = newVal;\n }",
"public void setColor(Color clr){\n color = clr;\n }",
"public PointDetails setColor(Color color){\n\t\t\treturn setColor(color.getRGB());\n\t\t}",
"void testColorChecker(Tester t) {\r\n initData();\r\n Cell topLeft = (Cell) this.game7.indexHelp(0, 0);\r\n Cell topRight = (Cell) this.game7.indexHelp(1, 0);\r\n Cell botLeft = (Cell) this.game7.indexHelp(0, 1);\r\n Cell botRight = (Cell) this.game7.indexHelp(1, 1);\r\n t.checkExpect(topLeft.flooded, true);\r\n t.checkExpect(topRight.flooded, false);\r\n t.checkExpect(botLeft.flooded, false);\r\n t.checkExpect(botRight.flooded, false);\r\n\r\n topRight.colorChecker(topLeft.color);\r\n t.checkExpect(topRight.flooded, true);\r\n t.checkExpect(botRight.flooded, true);\r\n t.checkExpect(botLeft.flooded, false);\r\n t.checkExpect(topLeft.flooded, true);\r\n }",
"public void Color() {\n\t\t\r\n\t}",
"public static void update(){\n\t\t\n\t\tgraphFrame.setColor(color);\n\t}",
"public boolean isSetColor() {\r\n return this.color != null;\r\n }",
"@Override\n public void excute() {\n drawable.setColor(color);\n }",
"public boolean isSetColor() {\n return this.color != null;\n }",
"public void color(Color the_color) {\n \n }",
"public void setColor(String newColor){\n invalidate();\n // Comprobar si el valor del color o el nombre del patrón\n if(newColor.startsWith(\"#\")){\n paintColor = Color.parseColor(newColor);\n drawPaint.setColor(paintColor);\n drawPaint.setShader(null);\n }\n else{\n int patternID = getResources().getIdentifier(newColor, \"drawable\", \"com.example.drawingfun\");\n // decodifica los colores\n Bitmap patternBMP = BitmapFactory.decodeResource(getResources(), patternID);\n BitmapShader patternBMPshader = new BitmapShader(patternBMP,\n Shader.TileMode.REPEAT, Shader.TileMode.REPEAT);\n drawPaint.setColor(0xFFFFFFFF);\n drawPaint.setShader(patternBMPshader);\n }\n }",
"public static void testPixellateThreeArgs(){\n\t Picture caterpillar = new Picture(\"caterpillar.jpg\");\n\t caterpillar.explore();\n\t caterpillar.pixellate(18, 60, 40);\n\t caterpillar.explore();\n }",
"public void setColour(Colour colour);",
"public void setColor(int color){\n this.color = color;\n }",
"void setColorDepth(int colorDepth);",
"@Test\n public void getColorReturnsTheRightColor() {\n assertEquals(0xaa00ff, Tetromino.T.getColor());\n }",
"void fill(int rgb);",
"@JSProperty(\"color\")\n void setColor(@Nullable PatternObject value);",
"protected abstract void updateColor(final Color col, final boolean fill);",
"public void setDotColor(Graphics g, int colorInt) {\n if (colorInt == 0) {\n g.setColor(Color.white);\n }else if (colorInt == 1) {\n Color dorange = Color.orange.darker();\n g.setColor(dorange);\n }else if (colorInt == 2) {\n g.setColor(Color.blue);\n }else if (colorInt == 3) {\n Color dyellow = Color.yellow.darker();\n g.setColor(dyellow);\n }else if (colorInt == 4) {\n Color dgreen = Color.green.darker();\n g.setColor(dgreen);\n }else if (colorInt == 5) {\n Color dred = Color.red.darker();\n g.setColor(dred);\n }else if (colorInt == 6) {\n Color dgray = Color.gray.darker();\n g.setColor(dgray);\n }else if (colorInt == 7) {\n Color dpurple = new Color(111, 32, 119);\n g.setColor(dpurple);\n }\n }",
"public void setColor(DyeColor color) {\n/* 53 */ setData(color.getWoolData());\n/* */ }"
] | [
"0.67630285",
"0.66167516",
"0.6602766",
"0.6519646",
"0.6424044",
"0.64051515",
"0.63188547",
"0.6272888",
"0.62392765",
"0.6118223",
"0.6110622",
"0.6093992",
"0.60887355",
"0.60573405",
"0.6027816",
"0.6020969",
"0.5998306",
"0.598401",
"0.5980708",
"0.5956971",
"0.59395003",
"0.59395003",
"0.5923461",
"0.5912154",
"0.5895109",
"0.58930224",
"0.5881945",
"0.5880828",
"0.58747077",
"0.58528835",
"0.5851777",
"0.58464223",
"0.583838",
"0.5822414",
"0.5812523",
"0.58043766",
"0.5802478",
"0.57942635",
"0.578835",
"0.57868356",
"0.57828003",
"0.57771754",
"0.5772916",
"0.5764436",
"0.5759727",
"0.5742185",
"0.57348853",
"0.57292897",
"0.57267475",
"0.57267475",
"0.5718554",
"0.5713338",
"0.570611",
"0.5699493",
"0.56873834",
"0.56843966",
"0.5670018",
"0.565797",
"0.5654667",
"0.56475663",
"0.5634762",
"0.5627618",
"0.562159",
"0.56011367",
"0.5598615",
"0.5596175",
"0.5588463",
"0.5579592",
"0.55603075",
"0.55581623",
"0.55395406",
"0.553203",
"0.5526453",
"0.5511948",
"0.54994756",
"0.5497844",
"0.5496512",
"0.54943955",
"0.5490584",
"0.5487934",
"0.54860055",
"0.547588",
"0.5464628",
"0.5463697",
"0.5456121",
"0.545371",
"0.54506946",
"0.54501355",
"0.5437779",
"0.5437695",
"0.5437518",
"0.54319054",
"0.54253215",
"0.5412872",
"0.54096234",
"0.54075044",
"0.5405227",
"0.5400165",
"0.5394074",
"0.5389033"
] | 0.8389262 | 0 |
Test that show() does not modify data array | @Test
public void testShow() throws Exception {
System.out.println("show");
int numLEDs = 150;
Color color = new Color(63, 123, 255);
DotStar instance = new MockDotStar(numLEDs);
for (int i = 0; i < numLEDs; i++) {
instance.setPixelColor(i, color);
}
instance.show();
for (int i = 0; i < numLEDs; i++) {
assertEquals((byte) 0xFF, instance.data[4 * i]);
assertEquals((byte) color.getBlue(), instance.data[(4 * i) + 1]);
assertEquals((byte) color.getGreen(), instance.data[(4 * i) + 2]);
assertEquals((byte) color.getRed(), instance.data[(4 * i) + 3]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void showData() {\n\t\tif(dataExample == null) dataExample = new DataExample();\n\t\tsetWidgetAsExample(dataExample);\n\t}",
"private void toggleVisibleArrays() {\n if (showArray == true) {\n showArray = false;\n } else {\n showArray = true;\n }\n }",
"public void displayData();",
"@Test\r\n public void testDisplayArray() {\r\n System.out.println(\"displayArray\");\r\n CreditCardNumber[] objArray = null;\r\n Prog4.displayArray(objArray);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"public static void show() {\n\t\t\n\t}",
"public void display()\n\t{\n\t\tSystem.out.println(data+\" \");\n\t}",
"private void showArray() {\n\t\tSystem.out.println(Arrays.toString(this.array));\n\n\t}",
"@Test\n @SuppressWarnings(\"unchecked\")\n public void f15DisplayRawDataTest() {\n clickOn(\"#thumbnailTab\").sleep(1000);\n FlowPane root = (FlowPane) scene.getRoot().lookup(\"#assetsThumbPane\");\n\n //Go to the 2nd asset\n clickOn(root.getChildren().get(1)).sleep(2000);\n clickOn(\"#rawDataTab\").sleep(1000);\n\n moveBy(90, 200).sleep(1000);\n TableView<ObservableList<String>> table = (TableView<ObservableList<String>>) scene.getRoot().lookup(\"#RawDataTable\");\n\n table.scrollToColumnIndex(15); //scroll to show the end columns\n sleep(3000).clickOn(\"#backBtn\").sleep(1000);\n\n assertTrue(\"There is a raw data table for the selected asset.\", table.getItems().size() > 0);\n }",
"private void printData() {\n\n\t\tfor (int i = 0; i < data.size(); i++) {\n\t\t\tlog(\" *** data index \" + i + \" = \" + data.elementAt(i));\n\t\t}\n\t}",
"private void showDataView() {\n Log.d(LOG_TAG, \"showDataView()\");\n /* First, make sure the error message is invisible */\n mErrorMessageDisplay.setVisibility(View.INVISIBLE);\n /* Then, make sure the data is visible */\n mRecyclerView.setVisibility(View.VISIBLE);\n }",
"@Test\n\tpublic void testShowCommand1() {\n\t\tString label1 = \"TEST1\";\n\t\tString label2 = \"TEST2\";\n\t\ttestData.getTaskMap().put(label1, new ArrayList<Task>());\n\t\ttestData.getTaskMap().put(label2, new ArrayList<Task>());\n\t\t\n\t\tShowCommand comd = new ShowCommand(label1 + \" \" + label2);\n\t\tassertEquals(ShowCommand.MESSAGE_SHOW_FEEDBACK, comd.execute(testData));\n\t\t\n\t\tassertFalse(testData.getHideList().contains(label1));\n\t\tassertFalse(testData.getHideList().contains(label2));\n\t\tassertTrue(testData.getHideList().contains(testData.getCurrLabel()));\n\t}",
"public static void show() {\n\n\t}",
"private void show(final SwingTestBase<?> testCase) {\n try {\n for (int i=0; i<testCase.numTests; i++) {\n show(testCase.create(i), i, testCase.numTests);\n }\n } catch (Exception e) {\n warning(e);\n }\n }",
"public void displayData(int[][] arr);",
"public void show3() {\n\t\t\n\t}",
"public void show() {\r\n show(\"\");\r\n }",
"@Test\n\tpublic void testDisplay1() {\n\t\t\n\t\t\n\t\tSystem.setOut(new PrintStream(Actualout));\n\t\t\n\t\tcircularlist.display();\n\t\t\n\t\tassertEquals(\"List : Empty List.\\r\\n\", Actualout.toString());\n\t}",
"public void showDataView() throws Exception {\n\t\tthis.getControl(\"dataViewButton\").click();\n\t\tbottomPaneState = \"dataView\";\n\t\tVoodooUtils.pause(3000);\n\t}",
"@Test\n\tpublic void testShow() {\n\t}",
"public void show() {\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < columnCount; j++)\n System.out.printf(\"%9.4f \", data[i][j]);\n System.out.println();\n }\n }",
"public void show()\r\n {\r\n\tshow(\"\");\r\n }",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"public void displayData(String[] str);",
"private static void showMemoList() {\n\t\t\n\t}",
"@Override\n public void visualize() {\n if (this.count() > 0){\n for (int i = 0; i < this.count(); i++){\n System.out.println(i + \".- \" + this.bench.get(i).getName() + \" (ID: \" + this.bench.get(i).getId() + \")\");\n }\n } else {\n System.out.println(\"La banca está vacía.\");\n }\n\n }",
"public void showContent() {\n createStream().forEach(System.out::println);\n }",
"@Override\r\n\tpublic void show() {\n\t}",
"public void redisplay();",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}",
"@Test\n\tpublic void testDisplay(){\n\t\tconditions = new CurrentConditionsDisplay();\n\t\t//And: I want it to display its data\n\t\tconditions.setHumidity(75);\n\t\tconditions.setTemperature(99);\n\t\t//When: I ask it to display\n\t\t//Then: It should display the data\n\t\tconditions.display();\n\t\t//Check console for output, manual pass verification here\n\t}",
"static void show(String info, Object[] a) {\n System.out.print(info + \": \");\n show(a);\n }",
"public void displayData(Solution solution);",
"public void show() {\n }",
"@Override\n\tpublic void show() {\n\t}",
"@Override\n\tpublic void show() {\n\t}",
"private void showDataView() {\n mLoadingIndicator.setVisibility(View.INVISIBLE);\n /* Finally, make sure the data is visible */\n mRecycleView.setVisibility(View.VISIBLE);\n }",
"TraceUndefinedDataView undefinedData();",
"public void showSamples(){\n\t\tfor(int i=0; i<arrIns.size(); i++){\n\t\t\tfor(int j=0; j<arrIns.get(i).numAttributes(); j++){\n\t\t\t\tSystem.out.print(\" | \" + arrIns.get(i).value(j) + \" | \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"@Override\n public void show() {\n }",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Test(timeout = 4000)\n public void test134() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot0.getStdDev(1766, 1766);\n int[] intArray0 = new int[2];\n intArray0[0] = 2;\n intArray0[1] = 2;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n resultMatrixPlainText0.setRowNameWidth(13);\n resultMatrixPlainText0.getOptions();\n assertEquals(13, resultMatrixPlainText0.getRowNameWidth());\n \n resultMatrixGnuPlot0.m_Mean = null;\n resultMatrixGnuPlot0.getColHidden(47);\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n }",
"private void showMovieDataView() {\n /* First, make sure the error is invisible */\n mErrorMessageDisplay.setVisibility(View.INVISIBLE);\n /* Then, make sure the weather data is visible */\n mRecyclerView.setVisibility(View.VISIBLE);\n }",
"private void show() {\n System.out.println(team.toString());\n }",
"protected void showViewContents() {\n\t\tnoData.heightHint = 0;\n\t\tyesData.heightHint = -1;\n\n\t\tnoData.exclude = true;\n\t\tyesData.exclude = false;\n\n\t\tnoLabel.setVisible(false);\n\t\tyesComposite.setVisible(true);\n\t\tredraw();\n\t}",
"@Override\r\n public void show()\r\n {\r\n\r\n }",
"@Override\r\n public void show()\r\n {\r\n\r\n }",
"@Test(timeout = 4000)\n public void test192() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n int[] intArray2 = new int[0];\n intArray0[1] = intArray2;\n int[] intArray3 = new int[0];\n intArray0[2] = intArray3;\n int[] intArray4 = new int[6];\n intArray4[1] = 0;\n intArray4[2] = 2;\n intArray4[3] = 0;\n resultMatrixGnuPlot0.getRevision();\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(0, 0);\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixPlainText resultMatrixPlainText1 = new ResultMatrixPlainText();\n resultMatrixPlainText1.setMeanWidth(0);\n resultMatrixPlainText1.setRemoveFilterName(false);\n assertEquals(0, resultMatrixPlainText1.getMeanWidth());\n \n resultMatrixPlainText0.globalInfo();\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot1.getDefaultEnumerateRowNames();\n assertEquals(1, resultMatrixGnuPlot1.getColCount());\n assertEquals(2, resultMatrixGnuPlot1.getStdDevPrec());\n assertEquals(1, resultMatrixGnuPlot1.getRowCount());\n assertTrue(resultMatrixGnuPlot1.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot1.getDefaultMeanPrec());\n }",
"public void show() {\n\tSystem.out.println(\"show-method\");\t\n\t}",
"private void viewExtractedData() {\n txtViewer.setText(extractedData);\n }",
"public void show() {\n hidden = false;\n }",
"@Test\n\tpublic void testPrintData()\n\t{\n\t\tData d = new Data();\n\t\tassertThat(d.print(), instanceOf(String.class));\n\t}",
"private void displayArrays(ArrayList list){}",
"@Override\r\n\tpublic void show() {\n\r\n\t}",
"@Override\r\n\tpublic void show() {\n\r\n\t}",
"void show();",
"void show();",
"void show();",
"void show();",
"void show();",
"void show();",
"void show() {\n System.out.println(\"i and j : \" + i + \" \" + j);\n }",
"void show() {\n System.out.println(\"i and j : \" + i + \" \" + j);\n }",
"public void show()\n\t{\n\t\tSystem.out.println(\"show\");\n\t}",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}",
"public void show() {\n\t\thidden = false;\n\t}",
"public void display() {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tSystem.out.print(a[i] + \"\\t\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"private void showMovieDataView() {\n // hide the error message display\n mErrorMessageDisplay.setVisibility(View.INVISIBLE);\n // show the list of movies\n mMoviesRecyclerView.setVisibility(View.VISIBLE);\n }",
"@Test\r\n\tpublic void testShowStandings2() {\n\t\tassertTrue(\"Error displaying standings\", false);\r\n\t}",
"private void displayData() {\n if (mOutlet1State) {\n //print value\n mCurrent1.setText(returnCurrent(4));\n } else {\n mCurrent1.setText(R.string.off);\n }\n //print timer data\n if (mTimer1State) {\n //print time remaining\n mTimer1.setText(returnControllerTime(7));\n } else {\n mTimer1.setText(R.string.disabled);\n }\n\n //outlet 2\n //print current\n if (mOutlet2State) {\n //print value\n mCurrent2.setText(returnCurrent(12));\n } else {\n mCurrent2.setText(R.string.off);\n }\n //print timer data\n if (mTimer2State) {\n //print time remaining\n mTimer2.setText(returnControllerTime(15));\n } else {\n mTimer2.setText(R.string.disabled);\n }\n }",
"public void show() {\n\t\tSystem.out.println(\"show..\");\n\t}",
"public void show() {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"@Test(timeout = 4000)\n public void test205() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(0, 1025);\n resultMatrixGnuPlot0.colNameWidthTipText();\n int[][] intArray0 = new int[0][0];\n resultMatrixGnuPlot0.setRanking(intArray0);\n resultMatrixGnuPlot0.setStdDevPrec(0);\n int[] intArray1 = new int[9];\n intArray1[0] = 2;\n intArray1[1] = 1025;\n intArray1[2] = 1025;\n intArray1[3] = 2;\n intArray1[4] = 0;\n intArray1[5] = 1;\n intArray1[6] = 2;\n intArray1[7] = 0;\n intArray1[8] = 0;\n resultMatrixGnuPlot0.m_RankingDiff = intArray1;\n resultMatrixGnuPlot0.getCount(1025);\n resultMatrixGnuPlot0.setStdDevWidth(0);\n assertEquals(0, resultMatrixGnuPlot0.getStdDevPrec());\n }",
"private void actionStatisticalData() {\n String message = getStatisticalMsg(true);\n\n JOptionPane.showMessageDialog(null, message, \"Statistical data\",\n JOptionPane.PLAIN_MESSAGE);\n }",
"public void showSlice(int index) {\n if (index >= 1 && index <= imp.getStackSize()) {\n imp.setSlice(index);\n imp.updateAndDraw();\n }\n else if (LociDataBrowser.DEBUG) {\n db.log(\"invalid index: \" + index + \" (size = \" + imp.getStackSize() +\n \"; zSliceSel = \" + zSliceSel.getValue() +\n \"; tSliceSel = \" + tSliceSel.getValue() + \")\");\n }\n }",
"@Override\n\tprotected void show() {\n\t\tsuper.show();\n\t\tSystem.out.println(\"BBBBBBBBBBBBBBBBBBB\");\n\t}",
"@Test(timeout = 4000)\n public void test053() throws Throwable {\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot();\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[][] intArray0 = new int[7][8];\n int[] intArray1 = new int[0];\n intArray0[0] = intArray1;\n intArray0[1] = intArray1;\n int[] intArray2 = new int[0];\n assertFalse(intArray2.equals((Object)intArray1));\n \n int[] intArray3 = new int[6];\n assertFalse(intArray3.equals((Object)intArray2));\n assertFalse(intArray3.equals((Object)intArray1));\n \n intArray3[1] = 0;\n intArray3[2] = 2;\n intArray3[3] = 0;\n intArray3[4] = 2;\n intArray3[5] = 0;\n intArray0[3] = intArray3;\n int[] intArray4 = new int[0];\n assertFalse(intArray4.equals((Object)intArray1));\n assertFalse(intArray4.equals((Object)intArray3));\n assertFalse(intArray4.equals((Object)intArray2));\n \n intArray0[4] = intArray4;\n int[] intArray5 = new int[3];\n assertFalse(intArray5.equals((Object)intArray4));\n assertFalse(intArray5.equals((Object)intArray1));\n assertFalse(intArray5.equals((Object)intArray2));\n assertFalse(intArray5.equals((Object)intArray3));\n \n intArray5[1] = 1;\n intArray5[2] = 0;\n intArray0[5] = intArray5;\n int[] intArray6 = new int[2];\n assertFalse(intArray6.equals((Object)intArray1));\n assertFalse(intArray6.equals((Object)intArray5));\n assertFalse(intArray6.equals((Object)intArray3));\n assertFalse(intArray6.equals((Object)intArray2));\n assertFalse(intArray6.equals((Object)intArray4));\n \n intArray6[0] = 1;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(resultMatrixGnuPlot0);\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertEquals(50, resultMatrixPlainText0.getRowNameWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixPlainText0.setRowNameWidth(586);\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(586, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String[] stringArray0 = resultMatrixPlainText0.getOptions();\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getCountWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertFalse(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(586, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertNotNull(stringArray0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(18, stringArray0.length);\n }"
] | [
"0.6423774",
"0.6353992",
"0.6105038",
"0.5910983",
"0.59067863",
"0.5895876",
"0.5882791",
"0.5780887",
"0.57629156",
"0.57593364",
"0.5741782",
"0.5736936",
"0.5723202",
"0.57075125",
"0.56758195",
"0.56499064",
"0.5648281",
"0.5644316",
"0.5546958",
"0.55438757",
"0.5532542",
"0.54916805",
"0.54916805",
"0.54916805",
"0.54916805",
"0.54916805",
"0.54916805",
"0.54916805",
"0.54916805",
"0.54916805",
"0.54916805",
"0.54916805",
"0.54916805",
"0.54916805",
"0.54916805",
"0.54916805",
"0.5479402",
"0.5479402",
"0.5479402",
"0.5467086",
"0.5464049",
"0.5453883",
"0.5451813",
"0.54517585",
"0.5441528",
"0.543603",
"0.5434359",
"0.5426441",
"0.5422096",
"0.5419171",
"0.54187167",
"0.54187167",
"0.5407346",
"0.5404872",
"0.54028815",
"0.5391831",
"0.53796047",
"0.53796047",
"0.53796047",
"0.53796047",
"0.53796047",
"0.53796047",
"0.53796047",
"0.53796047",
"0.537897",
"0.53600967",
"0.53577924",
"0.5327835",
"0.5327518",
"0.5327518",
"0.5326589",
"0.53209656",
"0.5320316",
"0.5316492",
"0.5315584",
"0.5314309",
"0.5306826",
"0.5306826",
"0.5289174",
"0.5289174",
"0.5289174",
"0.5289174",
"0.5289174",
"0.5289174",
"0.52840316",
"0.52840316",
"0.52716315",
"0.5267675",
"0.5261092",
"0.5259785",
"0.52577794",
"0.5254836",
"0.52485865",
"0.524761",
"0.5246045",
"0.5239922",
"0.5231294",
"0.5227142",
"0.52258444",
"0.52238667"
] | 0.56443477 | 17 |
Test that we have to have at least 1 LED | @Test(expected = IndexOutOfBoundsException.class)
public void testZeroLEDs() {
System.out.println("zero LEDs");
DotStar instance = new MockDotStar(0);
fail("Minimum LED count should be 1");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasReachedLEDTarget() {\n\t\tif (closestWhiteLED != null) {\n\t\t\tif (sens.isCloseTo(closestWhiteLED.getTargetX(), closestWhiteLED.getTargetY(), 2)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Test\n public void testThreshold() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(threshold);\n circuit.incrementAndCheckState(9L);\n assertFalse(\"Circuit opened before reaching the threshold\", circuit.incrementAndCheckState(1L));\n }",
"public static boolean isPresent() {\n // random genrate\n //double ranValue = Math.floor(Math.random() * 10 ) % 3;\n //int ranValue = 0/1;\n return 1 == new Random().nextInt(1000)%2;\n }",
"@Test\n public void testThresholdEqualsZero() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(zeroThreshold);\n assertTrue(\"When the threshold is zero, the circuit is supposed to be always open\", circuit.incrementAndCheckState(0L));\n }",
"@Test\r\n public void testIsValidTap() {\r\n assertTrue(boardManager3.isValidTap(7));\r\n assertTrue(boardManager3.isValidTap(5));\r\n assertFalse(boardManager3.isValidTap(0));\r\n }",
"public void checkIfFieldReady() {\n boolean redReady = isRedReady();\n boolean blueReady = isBlueReady();\n if (redReady && blueReady) {\n fullFieldReady.setBackground(READY);\n GovernThread game = GovernThread.getInstance();\n if (game != null) {\n beginMatchButton.setEnabled(game.isNewMatch());\n } else {\n fullFieldReady.setBackground(NOT_READY);\n beginMatchButton.setEnabled(false);\n }\n } else {\n fullFieldReady.setBackground(NOT_READY);\n beginMatchButton.setEnabled(false);\n }\n if (!Main.isSimpleMode()) {\n if (redReady != prevRedReady || blueReady != prevBlueReady) {\n PLC_Sender.getInstance().updatePLC_Lights(true);\n }\n }\n prevRedReady = redReady;\n prevBlueReady = blueReady;\n }",
"public boolean isOn() throws Exception;",
"boolean isPeripheralAccess();",
"@Test\n public void testIsValidTap() {\n setUpCorrect();\n assertTrue(boardManager.isValidTap(11));\n assertTrue(boardManager.isValidTap(14));\n assertFalse(boardManager.isValidTap(10));\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkBluetooth() {\n\t\tboolean flag = oTest.checkBluetooth();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"@Test\n\tpublic void testReadyNoDevices() {\n\t\tModel contact = addContactSensor(true, false);\n\t\tstageDisarmed(addressesOf(contact));\n\t\tremoveModel(contact);\n\t\t\n\t\talarm.bind(context);\n\t\tassertInactive();\n\t}",
"private boolean shouldClearBoard() {\n return rnd.nextInt(3) == 2 || isMoreThanMoles(2) || (rnd.nextBoolean() && isMoreThanMoles(1));\n }",
"boolean hasPort();",
"boolean hasPort();",
"private boolean checkBatteryLevelOK() {\n return true;\n }",
"public Boolean IsInterrupt() {\n Random r = new Random();\n int k = r.nextInt(100);\n //10%\n if (k <= 10) {\n return true;\n }\n return false;\n }",
"@Test\n public void isRedTest() {\n assertTrue(red_piece.isRed());\n assertTrue(!white_piece.isRed());\n }",
"@Test\n public void testThresholdCircuitBreakingException() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(threshold);\n circuit.incrementAndCheckState(9L);\n assertTrue(\"The circuit was supposed to be open after increment above the threshold\", circuit.incrementAndCheckState(2L));\n }",
"public boolean isOn()\n {\n // Check the pin state\n return ledPin.isHigh();\n }",
"private void checkBTState() {\n if(btAdapter==null) {\n btState.setImageResource(R.drawable.ic_action_off);\n errorExit(\"Fatal Error\", \"Bluetooth не поддерживается\");\n\n } else {\n if (btAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth включен...\");\n btState.setImageResource(R.drawable.ic_action_on);\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(btAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }\n }",
"boolean motorsAreBusy();",
"@Test\n\tpublic void checkReady_test1()\n\t{\n\t\tb.set(0,0, 'x');\n\t\tb.set(0,1, 'o');\n\t\tb.set(1,0, 'x');\n\t\tb.set(0,2, 'o');\n\t\tb.set(2,0, 'x');\n\t\tassertTrue(b.checkReady());\n\t}",
"public static boolean hasTarget() {\n return NetworkTableInstance.getDefault().getTable(\"limelight\").getEntry(\"tv\").getDouble(0) == 0 ? false : true;\n }",
"private void checkBTState() {\n if(btAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not support\");\n } else {\n if (btAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth ON...\");\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }",
"public void testIsEnabledAccuracy() {\r\n assertFalse(\"Should return the proper value.\", log.isEnabled(null));\r\n assertTrue(\"Should return the proper value.\", log.isEnabled(Level.ALL));\r\n }",
"private void checkBTState() {\n if(bluetoothAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not supported\");\n } else {\n if (!bluetoothAdapter.isEnabled()) {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }",
"@Override\n public int checkStatus(){\n return InputOutputController.STATUS_READY;\n }",
"public boolean checkWin (int totalPieces){\n\t\treturn isFull();\n\t}",
"private boolean checkBootstrap ()\n {\n if (game.hasBootstrap()) {\n return true;\n } else {\n log.info(\"Game: \" + game.getGameId() + \" reports that boot is not ready!\");\n game.setStateBootPending();\n return false;\n }\n }",
"boolean hasStrength();",
"private void checkBTState() {\n\n if (btAdapter == null) {\n Toast.makeText(getBaseContext(), \"Device does not support bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }",
"@Test\n public void testIsActionable_FirstCornerCase() {\n board.getCell(3, 4).addLevel();\n board.getCell(3, 3).addLevel();\n board.getCell(4, 3).addLevel();\n assertFalse(godPower.isActionable(board, player.getWorker1()));\n }",
"public boolean isPowered(){\n\t\tint value = sensor.readRawValue();\n\t\tDiscoveryVehicle.getMonitor().log(\"raw: \"+value);\n//\t\treturn Button.ENTER.isDown();\n\t\treturn (value < Configuration.HYDROGEN_MEASURE_TRIGGER_PRECISION);\n\t}",
"private void checkBTState() {\n\t\tif (btAdapter == null) {\n\t\t\terrorExit(\"Fatal Error\", \"Bluetooth not support\");\n\t\t} else {\n\t\t\tif (btAdapter.isEnabled()) {\n\t\t\t\tLog.d(TAG, \"...Bluetooth ON...\");\n\t\t\t} else {\n\t\t\t\t// Prompt user to turn on Bluetooth\n\t\t\t\tIntent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n\t\t\t\tstartActivityForResult(enableBtIntent, 1);\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void testBoardInit(){\n Assert.assertTrue(!board.isBoatInitDone());\n\n // check board dimensions\n Assert.assertTrue(BOARD_SIZE == board.getBoardSize());\n }",
"public boolean checkDrawCondition(int x,int y)\n {\n boolean draw=true;\n JButton [][]board=view.getGameBoard();\n for(int i=0;i<dim && draw;i++)\n {\n for(int j=0;j<dim && draw;j++)\n {\n if(board[i][j].getText().toString().equals(\"\"))\n {\n draw=false;\n }\n }\n }\n halt=true;\n return draw;\n\n }",
"private void checkBTState() {\n\n if(btAdapter==null) {\n Toast.makeText(getBaseContext(), \"Device does not support bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }",
"private void checkBTState() {\n\n if(btAdapter==null) {\n Toast.makeText(getContext(), \"El dispositivo no soporta bluetooth\", Toast.LENGTH_LONG).show();\n } else {\n if (btAdapter.isEnabled()) {\n } else {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, 1);\n }\n }\n }",
"public int hasBlackWon() {\n\t\tif(blackPieces == 0) {\n\t\t\treturn 1;\n\t\t} else if(whitePieces == 0) {\n\t\t\treturn 2;\n\t\t}\n\t\t\n\t\treturn 0;\n\t}",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkInfoPort() {\n\t\tboolean flag = oTest.checkInfoPort();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}",
"public boolean hasWon(Seed seed) {\n return threeInTheRow(seed)\n || threeInTheColumn(seed)\n || threeInTheDiagonal(seed)\n || threeInTheOppositeDiagonal(seed);\n }",
"private void assertService() {\n \t\n if(mLedService == null) {\n throw new IllegalStateException(\"LedClient not connected\");\n }\n }",
"public boolean isAutoTestOn(){\n\t\treturn doc.getElementsByTagName(\"test_switch\").item(0).getAttributes().getNamedItem(\"value\")\n\t\t\t\t\t\t.getNodeValue().equals(\"1\")?true:false;\n\t}",
"public boolean hasPower(){\n \thasPowerUp=false;\n \tRandom rand = new Random();\n \tint num = rand.nextInt(6);//one in six chance of getting power up\n \tif(num==0){\n \t\thasPowerUp=true;\n \t}\n \treturn hasPowerUp;\n }",
"public void testIsFull()\n {\n // An empty board isn't full\n assertFalse(b1.isFull());\n\n // A tied full board\n b1.fromString(\"RBRBRRBRB\");\n assertEquals(b1.checkForTriple(), Cell.EMPTY);\n assertTrue(b1.isFull());\n\n // A generic in progress board\n b1.fromString(\"RRRBEEBBE\");\n assertFalse(b1.isFull());\n\n }",
"@Test\n public void testNoMoreEnabledPortCase1() throws Exception {\n Port port1 = new DefaultPort(dev1, p1, true);\n Port port2 = new DefaultPort(dev1, p2, true);\n Port port3 = new DefaultPort(dev1, p3, true);\n Port port4 = new DefaultPort(dev1, p4, true);\n Port port5 = new DefaultPort(dev1, p5, true);\n List<Port> ports = Lists.newArrayList(port1, port2, port3, port4, port5);\n\n expect(deviceService.getPorts(anyObject(DeviceId.class))).andReturn(ports).anyTimes();\n replay(deviceService);\n assertFalse(rrp.noMoreEnabledPort(devId1, v10));\n assertFalse(rrp.noMoreEnabledPort(devId1, v20));\n assertFalse(rrp.noMoreEnabledPort(devId1, vInt));\n }",
"public boolean isSaddled() {\n\t\treturn dataManager.get(DATA_SADDLED);\n\t}",
"private void checkEnabled() {\n }",
"boolean hasDevice();",
"@Test\n\tpublic void checkReady_test()\n\t{\n\t\tb.set(1,1, 'x');\n\t\tb.set(1,2, 'o');\n\t\tassertFalse(b.checkReady());\n\t}",
"private void checkIsAbleToFire() {\n\n\t\tif (ticksToNextFire <= currentTickCount) {\n\t\t\tisAbleToFire = true;\n\t\t} else {\n\t\t\tisAbleToFire = false;\n\t\t}\n\t}",
"public void checkIfShowerOn(){\n double currentSMA = mySMA.currentAverage();\n Log.d(LOGTAG,\"currentSMA: \"+currentSMA);\n Log.d(LOGTAG,\"isShowerOn: \"+ isShowerOn);\n if (currentSMA>SMA_THRESHOLD && !isShowerOn){\n //Initialize stuff to do once shower is on\n isShowerOn=true;\n startShower();\n } else if (currentSMA<SMA_THRESHOLD && isShowerOn){\n //Shutdown\n isShowerOn=false;\n endShower();\n }\n }",
"@Test\n public void testNoMoreEnabledPortCase5() throws Exception {\n Port port1 = new DefaultPort(dev1, p1, false);\n Port port2 = new DefaultPort(dev1, p2, false);\n Port port3 = new DefaultPort(dev1, p3, false);\n Port port4 = new DefaultPort(dev1, p4, false);\n Port port5 = new DefaultPort(dev1, p5, true);\n List<Port> ports = Lists.newArrayList(port1, port2, port3, port4, port5);\n\n expect(deviceService.getPorts(anyObject(DeviceId.class))).andReturn(ports).anyTimes();\n replay(deviceService);\n assertTrue(rrp.noMoreEnabledPort(devId1, v10));\n assertTrue(rrp.noMoreEnabledPort(devId1, v20));\n assertFalse(rrp.noMoreEnabledPort(devId1, vInt));\n }",
"boolean isReady();",
"boolean isReady();",
"boolean isReady();",
"private boolean player1Wins() {\n\n boolean p1inTriangle = false;\n int target[] = new int[]{53, 61, 62, 69, 70, 71, 77, 78, 79, 80};\n for (int i : target) { \n if (board[i] == 0)\n return false;\n if (board[i] == 1)\n p1inTriangle = true;\n }\n\n return p1inTriangle;\n }",
"new LED();",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"boolean hasPower();",
"public Boolean isReady()\n {\n return (sensorModules != null && !sensorModules.isEmpty());\n }",
"private boolean decideIfEventShouldBeReportedAsAFailure() {\n \tint value = new Random().nextInt(100);\n \tif (value < TARGET_SUCCESS_RATE) {\n \t\treturn false;\n \t} else {\n \treturn true;\n \t}\n }",
"public boolean select(){\n\t\tif(PIN.getTriesRemaining() == 0){\n\t\t\treturn false;\t\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}",
"public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }",
"@Test\n public void testPinCheckDelay() throws Exception {\n LockscreenHelper.getInstance().setScreenLockViaShell(PIN, LockscreenHelper.MODE_PIN);\n if (isTracesEnabled()) {\n createTraceDirectory();\n }\n for (int i = 0; i < mIterationCount; i++) {\n mDevice.sleep();\n if (null != mAtraceLogger) {\n mAtraceLogger.atraceStart(mTraceCategoriesSet, mTraceBufferSize,\n mTraceDumpInterval, mRootTrace,\n String.format(\"%s-%d\", TEST_PINCHECK_DELAY, i));\n }\n\n // Make sure not to launch camera with \"double-tap\".\n Thread.sleep(300);\n mDevice.wakeUp();\n LockscreenHelper.getInstance().unlockScreen(PIN);\n mDevice.waitForIdle();\n if (null != mAtraceLogger) {\n mAtraceLogger.atraceStop();\n }\n }\n LockscreenHelper.getInstance().removeScreenLockViaShell(PIN);\n mDevice.pressHome();\n }",
"public abstract boolean hasWon(int row, int col);",
"private void CheckBtIsOn() {\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n\n if (!mBluetoothAdapter.isEnabled()) {\n Toast.makeText(getApplicationContext(), \"Bluetooth Disabled!\",\n Toast.LENGTH_SHORT).show();\n\n // Start activity to show bluetooth options\n Intent enableBtIntent = new Intent(mBluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n }\n }",
"@Override\n public boolean isConnected()\n {\n // hacky, but should work\n return motor.getFirmwareString() != null;\n }",
"@Test\n public void checkFuelEmpty() {\n Game.getInstance().getPlayer().setSolarSystems(SolarSystems.SOMEBI);\n Game.getInstance().getPlayer().setFuel(0);\n assertFalse(SolarSystems.SOMEBI.canTravel(SolarSystems.ADDAM));\n \n \n \n }",
"boolean hasPass();",
"boolean hasPass();",
"boolean isSetPowerBox();",
"public boolean perdu() {\r\n return this.robots.isEmpty();\r\n }",
"private void waitForCurrentShutterEnabled() {\n if (mIsVersionI || mIsVersionJ || mIsVersionK) {\n mDevice.wait(Until.hasObject(By.res(UI_PACKAGE_NAME, UI_SHUTTER_BUTTON_ID_3X).enabled(true)),\n SHUTTER_WAIT_TIME);\n } else {\n mDevice.wait(Until.hasObject(By.res(UI_PACKAGE_NAME, UI_SHUTTER_BUTTON_ID_2X).enabled(true)),\n SHUTTER_WAIT_TIME);\n }\n }",
"@Test\n public void testNoMoreEnabledPortCase3() throws Exception {\n Port port1 = new DefaultPort(dev1, p1, false);\n Port port2 = new DefaultPort(dev1, p2, true);\n Port port3 = new DefaultPort(dev1, p3, false);\n Port port4 = new DefaultPort(dev1, p4, true);\n Port port5 = new DefaultPort(dev1, p5, true);\n List<Port> ports = Lists.newArrayList(port1, port2, port3, port4, port5);\n\n expect(deviceService.getPorts(anyObject(DeviceId.class))).andReturn(ports).anyTimes();\n replay(deviceService);\n assertFalse(rrp.noMoreEnabledPort(devId1, v10));\n assertTrue(rrp.noMoreEnabledPort(devId1, v20));\n assertFalse(rrp.noMoreEnabledPort(devId1, vInt));\n }",
"public boolean isSensorReady(SensorType type)\n {\n return sensorModules.getSensorsBySensorType(type).size() > 0;\n }",
"private boolean isBoardFull() {\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n if (boardState[i][j] != 'X' && boardState[i][j] != 'O') {\n return false; \n }\n }\n }\n return true; \n }",
"@Override\r\n\tpublic boolean wasIncident() {\r\n\t\tdouble random = Math.random()*100;\r\n\t\tif(random<=25) return true;\r\n\t\treturn false;\r\n\t}",
"public boolean checkmate()\n {\n return checkmate(PieceColor.BLACK)||checkmate(PieceColor.WHITE);\n }",
"private boolean isGoodState() {\n\t resetMask();\n\t checkHorizontal();\n\t checkVertical();\n\n\t for(int i = 0; i < maskArray.length; i++){\n\t for (int j = 0; j < maskArray[i].length; j++){\n\n\t if (maskArray[i][j] == 1){\n\t return false;\n\t }\n\n\t }\n\t }\n\n\t return true;\n }",
"@Test\n public void testIsActionable_FourthCornerCase() {\n board.getCell(3, 3).setDome(true);\n board.getCell(4, 3).setDome(true);\n board.getCell(4, 4).addLevel();\n assertTrue(godPower.isActionable(board, player.getWorker1()));\n }",
"@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkWiFi() {\n\t\tboolean flag = oTest.checkWiFi();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn false;\r\n\t}",
"public abstract Chip checkWinner();",
"protected boolean isValidWaterHeaterStatus(byte[] edt) {\n\t\tif(edt == null || !(edt.length == 1)) return false;\n\t\treturn true;\n\t}",
"private boolean BluetoothAvailable()\n {\n if (BT == null)\n return false;\n else\n return true;\n }",
"@Test\n\tpublic void checkStatus() {\n\t\tclient.execute(\"1095C-16-111111\");\n\t}",
"@Test\n public void testHealthy() {\n checker.checkHealth();\n\n assertThat(checker.isHealthy(), is(true));\n }",
"private void validateBleSupport() {\n if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_BLUETOOTH_LE)) {\n Snackbar.make(txtStatus, \"No LE Support.\", Snackbar.LENGTH_LONG).show();\n } else {\n\n /*\n * We need to enforce that Bluetooth is first enabled, and take the\n * user to settings to enable it if they have not done so.\n */\n BluetoothAdapter mBluetoothAdapter = BluetoothAdapter\n .getDefaultAdapter();\n\n if (mBluetoothAdapter == null || !mBluetoothAdapter.isEnabled()) {\n Log.d(TAG, \"onResume: Bluetooth is disabled\");\n //Bluetooth is disabled, request enabling it\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivity(enableBtIntent);\n }\n }\n\n }",
"public void checkBTState() {\n if(mAdapter==null) {\n errorExit(\"Fatal Error\", \"Bluetooth not support\");\n } else {\n if (mAdapter.isEnabled()) {\n Log.d(TAG, \"...Bluetooth ON...\");\n } else {\n //Prompt user to turn on Bluetooth\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n ((Activity) mContext).startActivityForResult(enableBtIntent, 1);\n }\n }\n }",
"private boolean isBtConnected(){\n \treturn false;\n }",
"public void checkActivation() {\n\t\tplayer.getPackets().sendConfigByFile(10907, 1);\n\t\tplayer.getPackets().sendConfigByFile(10902, 1);\n\t\tfor (int x = 0; x <= 12; x++) {\n\t\t\tif (player.getActivatedLodestones()[x] == true) {\n\t\t\t\tplayer.getPackets().sendConfigByFile(CONFIG_IDS[x], 1);\n\t\t\t}\n\t\t}\n\t\tif (player.getActivatedLodestones()[13] == true) {\n\t\t\tplayer.getPackets().sendConfigByFile(CONFIG_IDS[13], 190);\n\t\t}\n\t\tif (player.getActivatedLodestones()[14] == true) {\n\t\t\tplayer.getPackets().sendConfigByFile(CONFIG_IDS[14], 15);\n\t\t}\n\t}",
"private boolean isStateFullyDetermined() {\n switch (hasSubstance) {\n case No:\n case Unknown:\n return false;\n case Yes:\n // if already established has substance, continue checking only until\n // reach threshold\n return (substanceMin <= 0) ? true : substanceCnt >= substanceMin;\n }\n throw new ShouldNotHappenException();\n }",
"public void pingDevice(View view) {\n if (!ready) {\n Toast.makeText(this, \"devices not ready\", Toast.LENGTH_SHORT).show();\n return;\n }\n if (ConfigSetter.config[4] < 4) // see strings resource file for assignment of power values to ConfigSetter.config\n connToastsDeactivated = true;\n bleHandler.writeExperimentSettingsCharacteristic(\"!\".getBytes());\n }",
"@Test\n public void testIsActionable_SecondCornerCase() {\n board.getCell(3, 3).setDome(true);\n board.getCell(4, 3).setDome(true);\n assertFalse(godPower.isActionable(board, player.getWorker1()));\n }",
"private boolean boardIsFull() {\n int numberOfFieldsOnBoard = boardSize * boardSize;\n return (numberOfFieldsOnBoard == this.numberOfOccupiedFields);\n }",
"private void fullBoardCheck()\r\n {\r\n boolean isfull = true;\r\n for(int i = 0; i < 3; i++)\r\n {\r\n for(int j = 0; j < 3; j++)\r\n {\r\n if(buttons[i][j].getText().charAt(0) == ' ')\r\n {\r\n isfull = false;\r\n break;\r\n }\r\n }\r\n if(!isfull)\r\n {\r\n break;\r\n }\r\n }\r\n if(isfull)\r\n {\r\n simtime.stop();\r\n JOptionPane.showMessageDialog(null,\" Its A Tie!\");\r\n System.exit(0);\r\n }\r\n }",
"private boolean tryCounterExample(BDD reachableStates){\n\t\tBDD counterExample = reachableStates.andWith(buildEndGame());\n\t\t\n\t\treturn counterExample.satCount(this.dimension * this.dimension - 1) == 0 ? true : false;\n\t}",
"public boolean checkRapelState () { return noOfRapels > 0; }",
"public boolean checkTie() {\n\t\t// if none of winning conditions are true and table is full then it's a tie\n\t\tif (!checkRow() && !checkColumn() && !checkDiagonal()) {\n\t\t\tint cnt = 0;\n\t\t\tfor (i = 0; i < xo.length; i++) {\n\t\t\t\tif (bt[i].getText() != \"\") {\n\t\t\t\t\tcnt++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if all nine of buttons are used\n\t\t\tif (cnt == 9) {\n\t\t\t\tjtf.setText(\" IT'S A TIE!\");\n\t\t\t\tjtf.setForeground(Color.green);\n\t\t\t\tjtf.setFont(new Font(\"Arial Black\", Font.BOLD, 50));\n\t\t\t\tfor (i = 0; i < xo.length; i++) {\n\t\t\t\t\tbt[i].setEnabled(false);\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"void raiseNumberOfStonesOnBoard();"
] | [
"0.6067348",
"0.57442355",
"0.5743412",
"0.5741528",
"0.56934154",
"0.5556017",
"0.5555211",
"0.5542576",
"0.5530731",
"0.5514083",
"0.54993546",
"0.5485921",
"0.5439368",
"0.5439368",
"0.54292",
"0.5406918",
"0.5392449",
"0.53639954",
"0.5356402",
"0.532156",
"0.5310095",
"0.53045034",
"0.52981067",
"0.5297315",
"0.5283859",
"0.5280347",
"0.5277858",
"0.5276902",
"0.52765566",
"0.5268108",
"0.52573735",
"0.5252119",
"0.5240086",
"0.5236803",
"0.52286077",
"0.52170193",
"0.5206838",
"0.52035373",
"0.5200579",
"0.5185643",
"0.5179491",
"0.517917",
"0.51784533",
"0.51780766",
"0.5163014",
"0.5157711",
"0.51576465",
"0.5144816",
"0.51414245",
"0.5139217",
"0.5133629",
"0.5133468",
"0.5119532",
"0.51186454",
"0.51186454",
"0.51186454",
"0.5117367",
"0.5111423",
"0.5106519",
"0.51046634",
"0.5101616",
"0.50859827",
"0.5083478",
"0.5079015",
"0.507814",
"0.50774115",
"0.507625",
"0.5075768",
"0.5073608",
"0.50706285",
"0.50706285",
"0.5068683",
"0.50634164",
"0.5063035",
"0.5061351",
"0.5060159",
"0.505599",
"0.50551623",
"0.50521874",
"0.50467366",
"0.50454926",
"0.5040455",
"0.5036326",
"0.5035869",
"0.50340164",
"0.5031916",
"0.5030491",
"0.5028321",
"0.50216603",
"0.50209314",
"0.5019646",
"0.50165254",
"0.50019354",
"0.5001182",
"0.5000404",
"0.4999915",
"0.4992334",
"0.49923155",
"0.49914148",
"0.49912903"
] | 0.62381166 | 0 |
Test that we cannot set negative LEDs | @Test(expected = IndexOutOfBoundsException.class)
public void testNegativeIndex() {
int numLEDs = 150;
Color color = Color.WHITE;
DotStar instance = new MockDotStar(numLEDs);
instance.setPixelColor(-1, color);
fail("Index cannot be less than 0");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void canUseSpecialPowerFalseNoMove() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n //no move\n workerHephaestus.build(nextWorkerCell);\n assertFalse(workerHephaestus.canUseSpecialPower());\n }",
"@Test\n public void canUseSpecialPowerFalseNoMoveNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n //no move, no build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }",
"@Test\n public void canUseSpecialPowerFalseNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.setHasMoved(true);\n //no Build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }",
"@Test(expected = IndexOutOfBoundsException.class)\n public void testZeroLEDs() {\n System.out.println(\"zero LEDs\");\n DotStar instance = new MockDotStar(0);\n fail(\"Minimum LED count should be 1\");\n }",
"@Test\r\n\t@Order(3)\r\n\tvoid testXnegative() {\r\n\t\trobot.setX(-100);\r\n\t\tassertNotEquals(-100, robot.getX() < 0 ,\"X coord test failed\\nREASON: Values less than 0 not allowed!\");\r\n\t}",
"public boolean illegalMove(int bin)\n {\n \treturn (state[bin] == 0 || bin < 0 || bin == 6 || bin > 12);\n }",
"private void checkOffStatus(ServiceState s) {\n assertFalse(s.getRoaming());\n assertNull(s.getOperatorAlphaLong());\n assertNull(s.getOperatorAlphaShort());\n assertNull(s.getOperatorNumeric());\n assertFalse(s.getIsManualSelection());\n }",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"public void encircleFalseTest()\n\t{\n\t\tData d = new Data();\n\t\td.set(15, 29);\n\t\td.set(17, 19);\n\t\tassertFalse(d.isEncircled(29));\n\t}",
"protected boolean disableEnableSvcs() throws Throwable {\n int i = ((int)(Math.random() * nodes));\n portString = \"\" + (i + NODE_PORT_OFFSET);\n \n return (verifySvcs(\"online\") &&\n changeSvcs(\"disable\") &&\n verifySvcs(\"disabled\") &&\n changeSvcs(\"enable\") &&\n verifySvcs(\"online\"));\n }",
"public boolean verifyNoInactives() {\n\t\treturn !btnInactives.isEnabled();\n\n\t}",
"@Test\n public void testNegativeB() {\n assertEquals(-1, PiGenerator.powerMod(2, -1, 23));\n }",
"@Test(expected = IllegalArgumentException.class)\n public void buildAgainFalse() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n //provo a fagli costruire su una cella diversa da nextWorkerCell (non puo!)\n workerHephaestus.specialPower(otherCell);\n assertEquals(1, nextWorkerCell.getLevel());\n assertEquals(0, otherCell.getLevel());\n }",
"@Test\n public void timeCollectionDisabled() {\n mDeviceState.setCharging(true);\n runScenario();\n }",
"@Test\n public void testThresholdEqualsZero() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(zeroThreshold);\n assertTrue(\"When the threshold is zero, the circuit is supposed to be always open\", circuit.incrementAndCheckState(0L));\n }",
"@Test\r\n public void Test012MakeLiveCellWithnegativeRow()\r\n {\r\n\r\n assertFalse(gol.makeLiveCell(-1, 1));\r\n\r\n }",
"@Override\n public void enableDisableDiscrete() {\n // empty bc mock\n }",
"@Test(expected = IllegalArgumentException.class)\n public void buildDomeFalse() {\n nextWorkerCell.setLevel(2);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell); //livello -> 3\n //provo a fagli costruire una cupola (non può!)\n workerHephaestus.specialPower(nextWorkerCell);\n assertEquals(3, nextWorkerCell.getLevel());\n }",
"public void setInvalid();",
"@Test\n void checkNoEffectMove() {\n assertTrue(abilities.checkCanMove(turn, board.getCellFromCoords(0, 1)));\n abilities.doMove(turn, board.getCellFromCoords(0, 1));\n assertEquals(turn.getWorker().getCell(), board.getCellFromCoords(0, 1));\n }",
"@Test\n public void testThresholdCircuitBreakingException() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(threshold);\n circuit.incrementAndCheckState(9L);\n assertTrue(\"The circuit was supposed to be open after increment above the threshold\", circuit.incrementAndCheckState(2L));\n }",
"@Test\n void checkCannotForceWithForcedCellOccupied() {\n assertFalse(abilities.checkCanMove(turn, board.getCellFromCoords(1, 0)));\n }",
"public void changeCanThrowFlag()\r\n\t{\r\n\t\tcanThrowFlag = !canThrowFlag;\r\n\t}",
"@Test\n public void testNegativeM() {\n assertEquals(-1, PiGenerator.powerMod(2, 2, -1));\n }",
"@Test\r\n\t@Order(5)\r\n\tvoid testYnegative() {\r\n\t\trobot.setY(-100);\r\n\t\tassertNotEquals(-100, robot.getY() < 0 ,\"Y coord test failed\\nREASON: Values less than 0 not allowed!\");\r\n\t}",
"public void reportIrreversibleChange() {\r\n Assert.isTrue(isReceiving());\r\n irreversibleChangeReported = true;\r\n }",
"public static void testNegate()\n {\n\t Picture thrudoor = new Picture(\"thruDoor.jpg\");\n\t thrudoor.toNegative();\n\t thrudoor.explore();\n }",
"@Test\n public void mustNotDisableMoreThanOnce() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // First request to disable the UDFPS mode.\n mHbmController.disable(mOnDisabled);\n\n // Should unset the refresh rate and notify the caller.\n verify(mOnDisabled).run();\n verify(mDisplayCallback).onHbmDisabled(eq(DISPLAY_ID));\n\n // Second request to disable the UDFPS mode, when it's already disabled.\n mHbmController.disable(mOnDisabled);\n\n // Should ignore the second request.\n verifyNoMoreInteractions(mOnDisabled);\n verifyNoMoreInteractions(mDisplayCallback);\n }",
"@Test\n public void testIsActionable_SecondCornerCase() {\n board.getCell(3, 3).setDome(true);\n board.getCell(4, 3).setDome(true);\n assertFalse(godPower.isActionable(board, player.getWorker1()));\n }",
"@Test\n\tpublic void testNegativeColor() {\n\t\ttry {\n\t\t\tmapFactory.initializeGameState(\"./src/Mapfiles/SmallBoard_NegativeColor\", 1, rng, gs);\n\t\t} catch (IOException e) {\n\t\t\tfail(\"No Exception expected\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t\tfail(\"No Exception expected\");\n\t\t}\n\t}",
"public void testGetTrackStatusForNegative() throws Exception {\r\n try {\r\n target.getTrackStatus(-10);\r\n fail(\"IllegalArgumentException expected.\");\r\n } catch (IllegalArgumentException ex) {\r\n // success\r\n }\r\n }",
"public void setNeutralState() {\n redLED.set(true);\n greenLED.set(true);\n blueLED.set(true);\n }",
"static boolean settleDown() throws GameActionException {\n\t\treturn !rc.isCircleOccupiedExceptByThisRobot(rc.getLocation(), SETTLERADIUS);\n\t}",
"private void markNegativeCycle(boolean[] checked, int nodeIndex) {\n\t\thasNegativeCycle[nodeIndex] = true;\n\t\tchecked[nodeIndex] = true;\n\t\tdistances[nodeIndex] = Integer.MIN_VALUE;\n\t}",
"@Test\n public void testCircuitDoesNotTripOnFailuresBelowThreshold() {\n try {\n HystrixCommandProperties.Setter properties = HystrixCommandPropertiesTest.getUnitTestPropertiesSetter();\n HystrixCommandMetrics metrics = getMetrics(properties);\n HystrixCircuitBreaker cb = getCircuitBreaker(key, CommandOwnerForUnitTest.OWNER_TWO, metrics, properties);\n\n // this should start as allowing requests\n assertTrue(cb.allowRequest());\n assertFalse(cb.isOpen());\n\n // success with high latency\n metrics.markSuccess(400);\n metrics.markSuccess(400);\n metrics.markFailure(10);\n metrics.markSuccess(400);\n metrics.markSuccess(40);\n metrics.markSuccess(400);\n metrics.markFailure(10);\n metrics.markFailure(10);\n\n // this should remain open as the failure threshold is below the percentage limit\n assertTrue(cb.allowRequest());\n assertFalse(cb.isOpen());\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"Error occurred: \" + e.getMessage());\n }\n }",
"@Test\r\n public void Test014MakeLiveCellWithnegativeColumnRow()\r\n {\r\n\r\n assertFalse(gol.makeLiveCell(-1, -1));\r\n\r\n }",
"private void setBoardDisabled(boolean disabled) {\r\n\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t//If we're enabling the buttons and the button has no text on it (Only enable the unclicked buttons)\r\n\t\t\t//OR if we're disabling the buttons\r\n\t\t\tif(!disabled && buttons[i].getText().equals(\"\") || disabled) {\r\n\t\t\t\tbuttons[i].setDisable(disabled);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"boolean getNegated();",
"public void brakeFailureStatus() {\n \tthis.brakeFailureActive = this.trainModelGUI.brakeFailStatus();\n }",
"@Test\n void invalidWON() {\n win();\n getGame().move(getPlayer(), Direction.NORTH);\n getGame().stop();\n getGame().start();\n assertThat(getGame().isInProgress()).isFalse();\n verifyNoMoreInteractions(observer);\n }",
"public void setAntiConvergence(boolean b){\n antiConvergence = b;\n }",
"@Test\r\n public void Test013MakeLiveCellWithnegativeColumn()\r\n {\r\n\r\n assertFalse(gol.makeLiveCell(1, -1));\r\n\r\n }",
"@Test\r\n public void should_not_be_allowed_to_move_in_wrong_direction() {\r\n game.nextTurn(); // will throw [1,2] and thus black starts\r\n assertFalse(game.move(Location.R12, Location.R10));\r\n }",
"public void setUnstable() {\n this.unstable = true;\n this.unstableTimeline.play();\n if (this.online == true) {\n this.statusLed.setStatus(\"alert\");\n this.statusLed.setFastBlink(true);\n }\n }",
"private boolean isUtilityFailure(){\n\n if (this.selectedTrain.getAC() == -1||\n this.selectedTrain.getHeat() == -1 || this.selectedTrain.getLights() == -1\n || this.selectedTrain.getLeftDoor() == -1 || this.selectedTrain.getRightDoor() == -1){\n return true; // there is a utility failure..\n }\n\n return false; // there isn't a utility failure\n }",
"private void switchOffFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS] = ~(~sim40.memory[Simulator.STATUS_ADDRESS] | (1<<flag));\r\n\t}",
"private void invalidTry(){\n setButtons(false);\n setMsgText(\"There are 2 players in game, you cannot join in now.\");\n }",
"private void checkLeakyEpsilon() {\r\n if (cbUseLeakyLearning.isSelected()) {\r\n tfLeakyEpsilon.setEnabled(true);\r\n } else {\r\n tfLeakyEpsilon.setEnabled(false);\r\n }\r\n }",
"public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }",
"@Test\n\tpublic void testsetBattery2zero() {\n\t\tController control = new Controller();\n\t\tBasicRobot robot = new BasicRobot();\n\t\tExplorer explorer = new Explorer();\n\t\tcontrol.setBuilder(Order.Builder.DFS);\n\t\tcontrol.setRobotAndDriver(robot, explorer);\n\t\trobot.setMaze(control);\n\t\tcontrol.turnOffGraphics();\n\t\tcontrol.setSkillLevel(0);\n\t\tcontrol.switchFromTitleToGenerating(0);\n\t\tcontrol.waitForPlayingState();\n\t\texplorer.setRobot(robot);\n\t\trobot.setBatteryLevel(0);\n\t\ttry {\n\t\t\tassertFalse(explorer.drive2Exit());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void setAsDown () \n\t{ \n\t\tn.setFailureState(false);\n\t\tfinal SortedSet<WLightpathRequest> affectedDemands = new TreeSet<> ();\n\t\tgetOutgoingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tgetIncomingFibers().forEach(f->affectedDemands.addAll(f.getTraversingLpRequestsInAtLeastOneLp()));\n\t\tfor (WLightpathRequest lpReq : affectedDemands)\n\t\t\tlpReq.internalUpdateOfRoutesCarriedTrafficFromFailureState();\n\t}",
"private boolean shouldClearBoard() {\n return rnd.nextInt(3) == 2 || isMoreThanMoles(2) || (rnd.nextBoolean() && isMoreThanMoles(1));\n }",
"public void disabledInit() {\n oi.getXBoxJoystick().setRumble(RumbleType.kLeftRumble, 0);\n oi.getXBoxJoystick().setRumble(RumbleType.kRightRumble, 0);\n oi.getXBoxJoystick2().setRumble(RumbleType.kLeftRumble, 0);\n oi.getXBoxJoystick2().setRumble(RumbleType.kRightRumble, 0);\n }",
"@Test\n public void testNegativeA() {\n assertEquals(-1, PiGenerator.powerMod(-1, 2, 23));\n }",
"void killButton() {\n //goes through all columns\n for (int i = 0; i < 7; i++) {\n //if the not of valid move is true, disable the buttons\n if (!Checker.validMove(currentBoard, i)) {\n Inputbuttons[i].setEnabled(false);\n }\n }\n }",
"@Override\n\tpublic void canTakeOff() {\n\t\tSystem.out.println(\"I CANNOT TAKE OFF UNLESS YA JUMP ME OVER SOMMAT\");\n\t}",
"@Test\n\tpublic void testIllegalMapNegativeCostsTest() {\n\t\ttry {\n\t\t\tmapFactory.initializeGameState(\"./src/Mapfiles/NightlyTests/IllegalMapNegativeCostsTest1\", 1, rng, gs);\n\t\t} catch (IOException e) {\n\t\t\tfail(\"Expected IllegalArgumentException\");\n\t\t} catch (IllegalArgumentException e) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfail(\"Expected IllegalArgumentException\");\n\t}",
"@Test\n void testDisabledOnFailedAssumption(){\n assumeTrue(DayOfWeek.TUESDAY.equals(LocalDate.now().getDayOfWeek()));\n assertEquals(1, 2);\n }",
"@Test\n public void testIsActionable_FirstCornerCase() {\n board.getCell(3, 4).addLevel();\n board.getCell(3, 3).addLevel();\n board.getCell(4, 3).addLevel();\n assertFalse(godPower.isActionable(board, player.getWorker1()));\n }",
"public void turnLightsOff()\n {\n set(Relay.Value.kOff);\n }",
"private void disableDice() {\n\t\ttogglebtnD1.setDisable(true);\n\t\ttogglebtnD2.setDisable(true);\n\t\ttogglebtnD3.setDisable(true);\n\t\tendTurnButton.setDisable(true);\n\t}",
"private void checkButtonUnlock() {\r\n\t\tif (this.isAdressValid && this.isPortValid) {\r\n\t\t\tview.theButton.setDisable(false);\r\n\t\t}\r\n\r\n\t}",
"protected boolean hasNegativeButton() {\n return false;\n }",
"public void setEnabled(boolean enabled) {\n/* 960 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void disableMoves() {\n\t\tList<String> disabledMoves = RemoRaids.getRestraintsConfig().get(RestraintsConfig.DISABLED_PLAYER_MOVES);\n\t\tfor (PixelmonWrapper wrapper : this.controlledPokemon) {\n\t\t\tfor (Attack attack : wrapper.getMoveset().attacks) {\n\t\t\t\tif (attack != null) {\n\t\t\t\t\tif (attack.isAttack(disabledMoves))\n\t\t\t\t\t\tattack.setDisabled(true, wrapper);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void setCanStop() {\n \tleftCanMotor.set(0.0);\n \trightCanMotor.set(0.0); \n\t}",
"@Test\r\n\tpublic void testDeliveryChuteDisable() {\r\n\t\tdcListen.doorOpened(vend.getDeliveryChute());\r\n\t\tassertTrue(vend.getDeliveryChute().isDisabled());\r\n\t}",
"@Test\n public void testToggle() {\n // Toggle on test.\n boolean before = plug.getCondition();\n clickOn(\"ON\");\n assertNotEquals(before, plug.getCondition());\n\n // Toggle off test which also implies that the ON/OFF status is displayed.\n before = plug.getCondition();\n clickOn(\"OFF\");\n assertNotEquals(before, plug.getCondition());\n }",
"@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n QQTetris.calculationThread.cancel();\n return INITIAL_BOARD.execute(false);\n }",
"private void unsetOneAllChecks() {\r\n\r\n checkIman.setEnabled(false);\r\n checkBonferroni.setEnabled(false);\r\n checkHolm.setEnabled(false);\r\n checkHochberg.setEnabled(false);\r\n checkHommel.setEnabled(false);\r\n checkHolland.setEnabled(false);\r\n checkRom.setEnabled(false);\r\n checkFinner.setEnabled(false);\r\n checkLi.setEnabled(false);\r\n\r\n }",
"private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }",
"@Test\n public void defensiveStrategy_notBlocked() throws IOException {\n Board f0 = new Board(\"------\"\n + \"-C----\"\n + \"------\"\n + \"------\"\n + \"P-P---\"\n + \"------\");\n // nicht blockiert, daher selbe Bewertung fuer beide Strategien\n assertEquals(f0.evaluate(true), f0.evaluate(false));\n assertTrue(f0.evaluate(false) < 0);\n\n // ausgeglichene Vorteile beider Spieler\n Board f1 = new Board(\"C--P-P\"\n + \"-C----\"\n + \"------\"\n + \"------\"\n + \"------\"\n + \"------\");\n\n assertEquals(f1.evaluate(false), f1.evaluate(true));\n assertEquals(0, f1.evaluate(false));\n }",
"public void testIsEnabledAccuracy() {\r\n assertFalse(\"Should return the proper value.\", log.isEnabled(null));\r\n assertTrue(\"Should return the proper value.\", log.isEnabled(Level.ALL));\r\n }",
"void disablePWM();",
"public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Override\n boolean canFail() {\n return true;\n }",
"@Override\n public void disabledInit()\n {\n driver.setRumble(RumbleType.kLeftRumble, 0);\n driver.setRumble(RumbleType.kRightRumble, 0);\n driveTrain.zeroSensors();\n pigeonInitializing = false;\n }",
"private void disableP1Buttons(){\n game_BTN_p1_lightAttack.setEnabled(false);\n game_BTN_p1_strongAttack.setEnabled(false);\n game_BTN_p1_brutalAttack.setEnabled(false);\n }",
"private void disableP2Buttons(){\n game_BTN_p2_lightAttack.setEnabled(false);\n game_BTN_p2_strongAttack.setEnabled(false);\n game_BTN_p2_brutalAttack.setEnabled(false);\n }",
"private void disableButtons()\r\n {\r\n }",
"@Test\n public void noFrozenBalance() {\n UnfreezeBalanceActuator actuator = new UnfreezeBalanceActuator(getContractForBandwidth(UnfreezeBalanceActuatorTest.OWNER_ADDRESS), UnfreezeBalanceActuatorTest.dbManager);\n TransactionResultCapsule ret = new TransactionResultCapsule();\n try {\n actuator.validate();\n actuator.execute(ret);\n TestCase.fail(\"cannot run here.\");\n } catch (ContractValidateException e) {\n Assert.assertTrue((e instanceof ContractValidateException));\n Assert.assertEquals(\"no frozenBalance(BANDWIDTH)\", e.getMessage());\n } catch (ContractExeException e) {\n Assert.assertFalse((e instanceof ContractExeException));\n }\n }",
"public abstract void Disabled();",
"private void checkResetUnderflow(int register) {\r\n\t\t/* register values smaller than or equal to 0*/\r\n\t\tif(sim40.memory[register] <= 0) {\r\n\t\t\tsetRegToMin(register);\r\n\t\t\r\n\t\t}\r\n\t}",
"protected boolean isMovementNoisy() {\n/* 1861 */ return (!this.abilities.flying && (!this.onGround || !isDiscrete()));\n/* */ }",
"@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n this.missingFutures = 0;\n this.missingTetromino = 0;\n return INITIAL_BOARD.execute(false);\n }",
"public boolean blackCheck() {\n\t\treturn false;\n\t}",
"private void disableInputs() {\n bulbPressTime.setEnabled(false);\n intervalTime.setEnabled(false);\n numTicks.setEnabled(false);\n startBtn.setEnabled(false);\n connStatus.setText(getString(R.string.StatusRunning));\n connStatus.setTextColor(getColor(R.color.green));\n }",
"@RepeatedTest(20)\n void negTest(){\n assertEquals(bot.neg(),bof);\n assertEquals(bof.neg(),bot);\n assertNotEquals(bot.neg(),bot);\n assertNotEquals(bof.neg(),bof);\n Binary b1 = new Binary(\"10101\");\n Binary notb1 = new Binary(\"01010\");\n Binary b2 = new Binary(\"0100110\");\n Binary notb2 = new Binary(\"1011001\");\n assertEquals(b1.neg(),notb1);\n assertEquals(notb1.neg(),b1);\n assertEquals(b2.neg(),notb2);\n assertEquals(notb2.neg(),b2);\n Binary b3 = new Binary(\"00000000000\");\n Binary notb3 = new Binary(\"1\");\n Binary b4 = new Binary(\"00000000001\");\n Binary notb4 = new Binary(\"10\");\n assertEquals(b3.neg(),notb3);\n assertEquals(notb3.neg(),b3);\n assertEquals(b4.neg(),notb4);\n assertEquals(notb4.neg(),b4);\n Binary b5 = new Binary(\"11111111\");\n Binary notb5 = new Binary(\"0\");\n Binary b6 = new Binary(\"11111110\");\n Binary notb6 = new Binary(\"01\");\n assertEquals(b5.neg(),notb5);\n assertEquals(notb5.neg(),b5);\n assertEquals(b6.neg(),notb6);\n assertEquals(notb6.neg(),b6);\n\n //Nulls\n assertEquals(f.neg(), Null);\n assertEquals(i.neg(), Null);\n assertEquals(st.neg(), Null);\n assertEquals(Null.neg(), Null);\n\n }",
"@Test\r\n\tpublic void testButtonPressedPopRackDisabled() {\r\n\t\tCoin coin = new Coin(200);\r\n\t\ttry {\r\n\t\t\tvend.getPopCanRack(0).disable();\r\n\t\t\tvend.getCoinSlot().addCoin(coin);\r\n\t\t\tvend.getSelectionButton(0).press();\t\r\n\t\t\tassertTrue((vend.getPopCanRack(0).isDisabled()) && (vend.getDeliveryChute().removeItems().length==0));\r\n\t\t} catch (DisabledException e) {\r\n\t\t\tassertTrue(false);\r\n\t\t}\r\n\t}",
"public static void assertNotEnabled(PmObject... pms) {\n for (PmObject pm : pms) {\n if (pm.isPmEnabled()) {\n fail(pm.getPmRelativeName() + \" should not be enabled.\");\n }\n }\n }",
"protected boolean avoidNegativeCoordinates() {\n \t\treturn false;\n \t}",
"public Boolean IsInterrupt() {\n Random r = new Random();\n int k = r.nextInt(100);\n //10%\n if (k <= 10) {\n return true;\n }\n return false;\n }",
"public boolean ignore() {\n\t\tif(ignoreT<=0) return false; // if ignoreT is 0, the user gets control again\n\t\telse return true; // otherwise the user doesn't have control\n\t}",
"@Test\r\n public void testIsValidTap() {\r\n assertTrue(boardManager3.isValidTap(7));\r\n assertTrue(boardManager3.isValidTap(5));\r\n assertFalse(boardManager3.isValidTap(0));\r\n }",
"@Test\n\tpublic void testValidRemainingActions() {\n\t\tassertFalse(Player.isValidRemainingActions(Player.MAX_ALLOWED_ACTIONS + 1));\n\t}",
"public boolean blackCheckmate() {\n\t\treturn false;\n\t}",
"@Test(expected = IllegalArgumentException.class)\n public void buildFalse() {\n nextWorkerCell.setIsOccupied(true);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n assertFalse(workerHephaestus.getHasBuilt());\n }",
"@Override\n boolean check(PixelLogicEvent event) {\n if (event instanceof PixelLogicLevelStatusChangeEvent) {\n PixelLogicLevelStatusChangeEvent statusChangeEvent = (PixelLogicLevelStatusChangeEvent) event;\n PixelLogicLevel level = statusChangeEvent.getLevel();\n // 6x6, 5*7, 4*8 are all ok\n if (PixelLogicLevelStatus.loaded.equals(statusChangeEvent.getStatus())) {\n this.isThePuzzelBigEnough = level.getRows() * level.getColumns() >= 32;\n this.blocked = false;\n return false;\n }\n }\n // reset on board is empty\n if (event instanceof PixelLogicBoardChangedEvent) {\n PixelLogicBoardChangedEvent changedBoardEvent = (PixelLogicBoardChangedEvent) event;\n if (changedBoardEvent.getLevel().isEmpty()) {\n this.blocked = false;\n }\n }\n if (this.isThePuzzelBigEnough == null || this.blocked == null || !this.isThePuzzelBigEnough || this.blocked) {\n return false;\n }\n // check if level is solved or destroyed\n if (event instanceof PixelLogicLevelStatusChangeEvent) {\n PixelLogicLevelStatusChangeEvent statusChangeEvent = (PixelLogicLevelStatusChangeEvent) event;\n PixelLogicLevelStatus status = statusChangeEvent.getStatus();\n if (PixelLogicLevelStatus.solved.equals(status)) {\n // ignore certain level's\n PixelLogicLevel level = statusChangeEvent.getLevel();\n if (\"Heart\".equals(level.getName()) || \"Windows\".equals(level.getName())) {\n return false;\n }\n // achievement reached\n return !this.blocked;\n }\n if (PixelLogicLevelStatus.destroyed.equals(status)) {\n this.isThePuzzelBigEnough = null;\n this.blocked = null;\n return false;\n }\n }\n // check if something is blocked by the user\n if (event instanceof PixelLogicBoardChangedEvent) {\n PixelLogicBoardChangedEvent changedBoardEvent = (PixelLogicBoardChangedEvent) event;\n Boolean value = changedBoardEvent.getValue();\n if (changedBoardEvent.isPixelChanged()) {\n if (value != null && !value) {\n this.blocked = true;\n }\n return false;\n }\n }\n return false;\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}",
"@Test\n public void getPowerStatusDoesntThrowException() {\n PowerStatus.getPowerStatus();\n }"
] | [
"0.6244765",
"0.6228952",
"0.6193473",
"0.6120737",
"0.5879406",
"0.5853931",
"0.5849188",
"0.5824056",
"0.58070016",
"0.57874256",
"0.5781555",
"0.57689565",
"0.5768239",
"0.57278043",
"0.5706687",
"0.5700695",
"0.56965417",
"0.5684228",
"0.56764483",
"0.5674121",
"0.5671514",
"0.56645125",
"0.5658604",
"0.5637799",
"0.56318873",
"0.5619646",
"0.5613073",
"0.56091166",
"0.5604348",
"0.5598418",
"0.5584113",
"0.5580836",
"0.55802256",
"0.5563114",
"0.5540736",
"0.55388296",
"0.55278087",
"0.55247724",
"0.5522682",
"0.5515684",
"0.5514704",
"0.55107176",
"0.55087686",
"0.5506818",
"0.5500567",
"0.5485772",
"0.5483093",
"0.54795367",
"0.54794496",
"0.5475442",
"0.5470941",
"0.54663986",
"0.54654884",
"0.5465128",
"0.5464316",
"0.54610175",
"0.5452729",
"0.5450853",
"0.5450578",
"0.54470795",
"0.5439691",
"0.5436089",
"0.5430566",
"0.54261607",
"0.54191124",
"0.5413784",
"0.5412616",
"0.54088837",
"0.5391591",
"0.53857416",
"0.53809154",
"0.5379118",
"0.5376166",
"0.5374644",
"0.5371929",
"0.53665984",
"0.53664255",
"0.53643984",
"0.53637826",
"0.53611267",
"0.5357944",
"0.53573245",
"0.53567475",
"0.5355561",
"0.53471386",
"0.5341005",
"0.5330914",
"0.53228295",
"0.5316505",
"0.53113014",
"0.5310883",
"0.53089005",
"0.5302982",
"0.5302474",
"0.5300491",
"0.5300007",
"0.5299642",
"0.52924556",
"0.52922314",
"0.5291445"
] | 0.5949742 | 4 |
Test that we cannot set larger LEDs | @Test(expected = IndexOutOfBoundsException.class)
public void testLargerIndex() {
int numLEDs = 150;
Color color = Color.WHITE;
DotStar instance = new MockDotStar(numLEDs);
instance.setPixelColor(numLEDs + 1, color);
fail("Index cannot be less than 0");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(expected = IndexOutOfBoundsException.class)\n public void testZeroLEDs() {\n System.out.println(\"zero LEDs\");\n DotStar instance = new MockDotStar(0);\n fail(\"Minimum LED count should be 1\");\n }",
"@Test\n public void testThresholdCircuitBreakingException() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(threshold);\n circuit.incrementAndCheckState(9L);\n assertTrue(\"The circuit was supposed to be open after increment above the threshold\", circuit.incrementAndCheckState(2L));\n }",
"@Test(expected = IllegalArgumentException.class)\n public void buildAgainFalse() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n //provo a fagli costruire su una cella diversa da nextWorkerCell (non puo!)\n workerHephaestus.specialPower(otherCell);\n assertEquals(1, nextWorkerCell.getLevel());\n assertEquals(0, otherCell.getLevel());\n }",
"@Test\n public void canUseSpecialPowerFalseNoMoveNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n //no move, no build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }",
"@Test\n public void canUseSpecialPowerFalseNoMove() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n //no move\n workerHephaestus.build(nextWorkerCell);\n assertFalse(workerHephaestus.canUseSpecialPower());\n }",
"@Test\n public void canUseSpecialPowerFalseNoBuild() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.setHasMoved(true);\n //no Build\n assertFalse(workerHephaestus.canUseSpecialPower());\n }",
"private boolean shouldClearBoard() {\n return rnd.nextInt(3) == 2 || isMoreThanMoles(2) || (rnd.nextBoolean() && isMoreThanMoles(1));\n }",
"@Test\n public void testCircuitDoesNotTripOnFailuresBelowThreshold() {\n try {\n HystrixCommandProperties.Setter properties = HystrixCommandPropertiesTest.getUnitTestPropertiesSetter();\n HystrixCommandMetrics metrics = getMetrics(properties);\n HystrixCircuitBreaker cb = getCircuitBreaker(key, CommandOwnerForUnitTest.OWNER_TWO, metrics, properties);\n\n // this should start as allowing requests\n assertTrue(cb.allowRequest());\n assertFalse(cb.isOpen());\n\n // success with high latency\n metrics.markSuccess(400);\n metrics.markSuccess(400);\n metrics.markFailure(10);\n metrics.markSuccess(400);\n metrics.markSuccess(40);\n metrics.markSuccess(400);\n metrics.markFailure(10);\n metrics.markFailure(10);\n\n // this should remain open as the failure threshold is below the percentage limit\n assertTrue(cb.allowRequest());\n assertFalse(cb.isOpen());\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"Error occurred: \" + e.getMessage());\n }\n }",
"@Test(expected = IllegalArgumentException.class)\n public void buildDomeFalse() {\n nextWorkerCell.setLevel(2);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell); //livello -> 3\n //provo a fagli costruire una cupola (non può!)\n workerHephaestus.specialPower(nextWorkerCell);\n assertEquals(3, nextWorkerCell.getLevel());\n }",
"@Test\n public void testThreshold() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(threshold);\n circuit.incrementAndCheckState(9L);\n assertFalse(\"Circuit opened before reaching the threshold\", circuit.incrementAndCheckState(1L));\n }",
"private void checkLeakyEpsilon() {\r\n if (cbUseLeakyLearning.isSelected()) {\r\n tfLeakyEpsilon.setEnabled(true);\r\n } else {\r\n tfLeakyEpsilon.setEnabled(false);\r\n }\r\n }",
"@Test\n public void invalidTableOffset() throws InterruptedException {\n this.sfcOfRendererDataListener.onDataTreeChanged(createSfcOfRendererConfig(0, 100));\n Thread.sleep(SLEEP); // otherwise the failure is not detected\n verifySettersNotCalled();\n\n // Table Offset must be greater than 1\n this.sfcOfRendererDataListener.onDataTreeChanged(createSfcOfRendererConfig(1, 100));\n Thread.sleep(SLEEP); // otherwise the failure is not detected\n verifySettersNotCalled();\n\n // Table Offset must be less than 246 (255-maxTableOffset())\n this.sfcOfRendererDataListener.onDataTreeChanged(createSfcOfRendererConfig(250, 100));\n Thread.sleep(SLEEP); // otherwise the failure is not detected\n verifySettersNotCalled();\n }",
"public void setThreshold(int threshold) {\n/* 357 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@Test\n public void equals_DifferentDiningHallBitfield_Test() {\n Assert.assertFalse(bq1.equals(bq6));\n Assert.assertFalse(bq1.equals(bq7));\n }",
"@Test\n void checkCannotForceWithForcedCellOccupied() {\n assertFalse(abilities.checkCanMove(turn, board.getCellFromCoords(1, 0)));\n }",
"@LargeTest\n @Suppress\n public void testWifiTetheringDisableEnable() throws InterruptedException {\n WifiConfiguration config = new WifiConfiguration();\n config.SSID = NETWORK_ID;\n config.allowedKeyManagement.set(KeyMgmt.WPA_PSK);\n config.allowedAuthAlgorithms.set(AuthAlgorithm.OPEN);\n config.preSharedKey = PASSWD;\n int counter;\n try {\n // disable wifiap\n assertTrue(\"wifi hotspot not disabled by default\",\n mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED);\n // Enable wifiap\n assertTrue(\"failed to disable wifi hotspot\",\n mWifiManager.setWifiApEnabled(config, true));\n Log.d(\"MyTestTag\", \"Now checkign wifi ap\");\n counter = 10;\n while (--counter > 0\n && mWifiManager.getWifiApState() != WifiManager.WIFI_AP_STATE_ENABLED) {\n Thread.sleep(mABvtHelper.SHORT_TIMEOUT);\n }\n assertTrue(\"wifi hotspot not enabled\",\n mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_ENABLED);\n // Navigate to Wireless Settings page and verify Wifi AP setting is on\n Intent intent_as = new Intent(\n android.provider.Settings.ACTION_WIRELESS_SETTINGS);\n mContext.startActivity(intent_as);\n Thread.sleep(mABvtHelper.LONG_TIMEOUT);\n mDevice.wait(Until.findObject(By.text(\"Tethering & portable hotspot\")),\n mABvtHelper.LONG_TIMEOUT).click();\n Thread.sleep(mABvtHelper.SHORT_TIMEOUT);\n assertTrue(\"Settings UI for Wifi AP is not ON\",\n mDevice.wait(Until.hasObject(By.text(\"Portable hotspot AndroidAP active\")),\n mABvtHelper.LONG_TIMEOUT));\n\n mDevice.wait(Until.findObject(By.text(\"Portable Wi‑Fi hotspot\")),\n mABvtHelper.LONG_TIMEOUT).click();\n assertTrue(\"Wifi ap disable call fails\", mWifiManager.setWifiApEnabled(config,\n false));\n counter = 5;\n while (--counter > 0\n && mWifiManager.getWifiApState() != WifiManager.WIFI_AP_STATE_DISABLED) {\n Thread.sleep(mABvtHelper.LONG_TIMEOUT);\n }\n assertTrue(\"wifi hotspot not enabled\",\n mWifiManager.getWifiApState() == WifiManager.WIFI_AP_STATE_DISABLED);\n Thread.sleep(mABvtHelper.LONG_TIMEOUT * 2);\n } finally {\n assertTrue(\"Wifi enable call fails\", mWifiManager\n .enableNetwork(mWifiManager.getConnectionInfo().getNetworkId(), false));\n counter = 10;\n while (--counter > 0 && !mWifiManager.isWifiEnabled()) {\n Thread.sleep(mABvtHelper.LONG_TIMEOUT);\n }\n assertTrue(\"Wifi isn't enabled\", mWifiManager.isWifiEnabled());\n }\n }",
"@Test\n public void mustNotDisableMoreThanOnce() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // First request to disable the UDFPS mode.\n mHbmController.disable(mOnDisabled);\n\n // Should unset the refresh rate and notify the caller.\n verify(mOnDisabled).run();\n verify(mDisplayCallback).onHbmDisabled(eq(DISPLAY_ID));\n\n // Second request to disable the UDFPS mode, when it's already disabled.\n mHbmController.disable(mOnDisabled);\n\n // Should ignore the second request.\n verifyNoMoreInteractions(mOnDisabled);\n verifyNoMoreInteractions(mDisplayCallback);\n }",
"@Test\r\n public void testIsValidTap() {\r\n assertTrue(boardManager3.isValidTap(7));\r\n assertTrue(boardManager3.isValidTap(5));\r\n assertFalse(boardManager3.isValidTap(0));\r\n }",
"@Test\n public void testIsActionable_SecondCornerCase() {\n board.getCell(3, 3).setDome(true);\n board.getCell(4, 3).setDome(true);\n assertFalse(godPower.isActionable(board, player.getWorker1()));\n }",
"private static boolean toAllocateOrDeallocate() {\n return random.nextInt() % 2 == 0;\n\n }",
"protected boolean disableEnableSvcs() throws Throwable {\n int i = ((int)(Math.random() * nodes));\n portString = \"\" + (i + NODE_PORT_OFFSET);\n \n return (verifySvcs(\"online\") &&\n changeSvcs(\"disable\") &&\n verifySvcs(\"disabled\") &&\n changeSvcs(\"enable\") &&\n verifySvcs(\"online\"));\n }",
"private void checkResetOverflow(int register) {\r\n\t\t/* register values greater than 1024*/\r\n\t\tif(sim40.memory[register] >= 1024) \r\n\t\t\tsetRegToMax(register);\r\n\t}",
"void killButton() {\n //goes through all columns\n for (int i = 0; i < 7; i++) {\n //if the not of valid move is true, disable the buttons\n if (!Checker.validMove(currentBoard, i)) {\n Inputbuttons[i].setEnabled(false);\n }\n }\n }",
"@Test\n public void testIsValidTap() {\n setUpCorrect();\n assertTrue(boardManager.isValidTap(11));\n assertTrue(boardManager.isValidTap(14));\n assertFalse(boardManager.isValidTap(10));\n }",
"private void reDrawLEDs(){\r\n if (this.isLEDEnable == false) {\r\n for (int i = 1; i < 8; i++) {\r\n LEDs[i].setOff();\t\t\t// turn off all display LEDs\r\n }\r\n }\r\n else {\r\n for (int i = 1; i < 8; i++) {\r\n LEDs[i].setOn(); \r\n LEDs[i].setColor(LEDColor.BLUE);\r\n //Utils.sleep(200);\r\n //leds[i].setOff();\r\n //Utils.sleep(200);\r\n }\r\n }\r\n }",
"@Override\n public void enableDisableDiscrete() {\n // empty bc mock\n }",
"@Test\n public void timeCollectionDisabled() {\n mDeviceState.setCharging(true);\n runScenario();\n }",
"@Test\n public void canUseSpecialPowerTrue() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.setHasMoved(true);\n workerHephaestus.build(nextWorkerCell);\n assertTrue(workerHephaestus.canUseSpecialPower());\n }",
"boolean testRemoveOffScreenPieces(Tester t) {\n return t.checkExpect(new NBullets(10).removeOffScreenPieces(500, 300), new NBullets(10))\n && t.checkExpect(\n new NBullets(this.lob3, this.los3, 5, 5, 0).removeOffScreenPieces(100, 100),\n new NBullets(\n new ConsLoGamePiece(this.bullet9, new ConsLoGamePiece(this.bullet8, this.mt)),\n new ConsLoGamePiece(this.ship3, new ConsLoGamePiece(this.ship2, this.mt)), 5, 5, 0))\n && t.checkExpect(new NBullets(this.mt, this.los3, 5, 5, 0).removeOffScreenPieces(100, 100),\n new NBullets(this.mt,\n new ConsLoGamePiece(this.ship3, new ConsLoGamePiece(this.ship2, this.mt)), 5, 5, 0))\n && t.checkExpect(new NBullets(this.lob3, this.mt, 5, 5, 0).removeOffScreenPieces(100, 100),\n new NBullets(\n new ConsLoGamePiece(this.bullet9, new ConsLoGamePiece(this.bullet8, this.mt)),\n this.mt, 5, 5, 0));\n }",
"@Test(expected = IndexOutOfBoundsException.class)\n public void testNegativeIndex() {\n int numLEDs = 150;\n Color color = Color.WHITE;\n DotStar instance = new MockDotStar(numLEDs);\n instance.setPixelColor(-1, color);\n fail(\"Index cannot be less than 0\");\n }",
"private void checkResetAllRegsAndFlags() {\r\n\t\t//for(int i = 1026; i <= 1028; i++ ) {\r\n\t\tSystem.out.println(\"Checking x val\"+sim40.memory[Simulator.XREG_ADDRESS]);\r\n\t\t\r\n\t\tcheckResetRegisterFlag(Simulator.ACCUMULATOR_ADDRESS);\r\n\t\t\tcheckResetRegisterFlag(Simulator.XREG_ADDRESS);\r\n\t\t\tcheckResetRegisterFlag(Simulator.YREG_ADDRESS);\r\n\t\t\t\r\n\t\t\t\r\n\t\t//}\r\n\t}",
"public boolean checkOverflow() {\n\t\tfor(int i = 0; i < hand.size(); i++) {\n\t\t\tif(hand.get(i).getValue() == 11) {\n\t\t\t\thand.get(i).makeSoft();\n\t\t\t\tSystem.out.println(\"The value of the \" + hand.get(i) +\" was changed to 1\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t\t\n\t}",
"@Test\n public void buildNotDome() {\n nextWorkerCell.setLevel(1);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n assertEquals(2, nextWorkerCell.getLevel());\n }",
"@Test\r\n\t@Order(4)\r\n\tvoid testXmoreThanHundred() {\r\n\t\trobot.setX(1000);\r\n\t\tassertNotEquals(1000, robot.getX() > 100,\"X coord test failed\\nREASON: Values more than 100 not allowed!\");\r\n\t}",
"@Test\n public void buildAgainTrue() {\n nextWorkerCell.setLevel(0);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n workerHephaestus.specialPower(nextWorkerCell);\n assertEquals(2, nextWorkerCell.getLevel());\n\n }",
"public boolean illegalMove(int bin)\n {\n \treturn (state[bin] == 0 || bin < 0 || bin == 6 || bin > 12);\n }",
"@Test\n public void testNoMoreEnabledPortCase5() throws Exception {\n Port port1 = new DefaultPort(dev1, p1, false);\n Port port2 = new DefaultPort(dev1, p2, false);\n Port port3 = new DefaultPort(dev1, p3, false);\n Port port4 = new DefaultPort(dev1, p4, false);\n Port port5 = new DefaultPort(dev1, p5, true);\n List<Port> ports = Lists.newArrayList(port1, port2, port3, port4, port5);\n\n expect(deviceService.getPorts(anyObject(DeviceId.class))).andReturn(ports).anyTimes();\n replay(deviceService);\n assertTrue(rrp.noMoreEnabledPort(devId1, v10));\n assertTrue(rrp.noMoreEnabledPort(devId1, v20));\n assertFalse(rrp.noMoreEnabledPort(devId1, vInt));\n }",
"public boolean failedQC(){\n\t\treturn testBitwiseFlag(512);\n\t}",
"private void checkResetUnderflow(int register) {\r\n\t\t/* register values smaller than or equal to 0*/\r\n\t\tif(sim40.memory[register] <= 0) {\r\n\t\t\tsetRegToMin(register);\r\n\t\t\r\n\t\t}\r\n\t}",
"public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head.getA() >= 1260)\n return true;\n else if(head.getB() <150 || head.getB() >=630)\n return true;\n else \n return false;\n \n \n }",
"@Test\n public void testIsActionable_FirstCornerCase() {\n board.getCell(3, 4).addLevel();\n board.getCell(3, 3).addLevel();\n board.getCell(4, 3).addLevel();\n assertFalse(godPower.isActionable(board, player.getWorker1()));\n }",
"void outOfTime() {\r\n\r\n disableOptionButtons();\r\n }",
"@Override\n boolean check(PixelLogicEvent event) {\n if (event instanceof PixelLogicLevelStatusChangeEvent) {\n PixelLogicLevelStatusChangeEvent statusChangeEvent = (PixelLogicLevelStatusChangeEvent) event;\n PixelLogicLevel level = statusChangeEvent.getLevel();\n // 6x6, 5*7, 4*8 are all ok\n if (PixelLogicLevelStatus.loaded.equals(statusChangeEvent.getStatus())) {\n this.isThePuzzelBigEnough = level.getRows() * level.getColumns() >= 32;\n this.blocked = false;\n return false;\n }\n }\n // reset on board is empty\n if (event instanceof PixelLogicBoardChangedEvent) {\n PixelLogicBoardChangedEvent changedBoardEvent = (PixelLogicBoardChangedEvent) event;\n if (changedBoardEvent.getLevel().isEmpty()) {\n this.blocked = false;\n }\n }\n if (this.isThePuzzelBigEnough == null || this.blocked == null || !this.isThePuzzelBigEnough || this.blocked) {\n return false;\n }\n // check if level is solved or destroyed\n if (event instanceof PixelLogicLevelStatusChangeEvent) {\n PixelLogicLevelStatusChangeEvent statusChangeEvent = (PixelLogicLevelStatusChangeEvent) event;\n PixelLogicLevelStatus status = statusChangeEvent.getStatus();\n if (PixelLogicLevelStatus.solved.equals(status)) {\n // ignore certain level's\n PixelLogicLevel level = statusChangeEvent.getLevel();\n if (\"Heart\".equals(level.getName()) || \"Windows\".equals(level.getName())) {\n return false;\n }\n // achievement reached\n return !this.blocked;\n }\n if (PixelLogicLevelStatus.destroyed.equals(status)) {\n this.isThePuzzelBigEnough = null;\n this.blocked = null;\n return false;\n }\n }\n // check if something is blocked by the user\n if (event instanceof PixelLogicBoardChangedEvent) {\n PixelLogicBoardChangedEvent changedBoardEvent = (PixelLogicBoardChangedEvent) event;\n Boolean value = changedBoardEvent.getValue();\n if (changedBoardEvent.isPixelChanged()) {\n if (value != null && !value) {\n this.blocked = true;\n }\n return false;\n }\n }\n return false;\n }",
"@Test(expected = IllegalArgumentException.class)\n public void buildFalse() {\n nextWorkerCell.setIsOccupied(true);\n workerHephaestus.setCurrentWorkerCell(baseWorkerCell);\n workerHephaestus.build(nextWorkerCell);\n assertFalse(workerHephaestus.getHasBuilt());\n }",
"private void setBoardDisabled(boolean disabled) {\r\n\t\tfor(int i = 0; i < 9; i++) {\r\n\t\t\t//If we're enabling the buttons and the button has no text on it (Only enable the unclicked buttons)\r\n\t\t\t//OR if we're disabling the buttons\r\n\t\t\tif(!disabled && buttons[i].getText().equals(\"\") || disabled) {\r\n\t\t\t\tbuttons[i].setDisable(disabled);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}",
"static boolean settleDown() throws GameActionException {\n\t\treturn !rc.isCircleOccupiedExceptByThisRobot(rc.getLocation(), SETTLERADIUS);\n\t}",
"private void switchOffFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS] = ~(~sim40.memory[Simulator.STATUS_ADDRESS] | (1<<flag));\r\n\t}",
"public void encircleFalseTest()\n\t{\n\t\tData d = new Data();\n\t\td.set(15, 29);\n\t\td.set(17, 19);\n\t\tassertFalse(d.isEncircled(29));\n\t}",
"@Test\n public void mustNotEnableMoreThanOnce() throws RemoteException {\n mHbmController.enable(mOnEnabled);\n\n // Should set the appropriate refresh rate for UDFPS and notify the caller.\n verify(mDisplayCallback).onHbmEnabled(eq(DISPLAY_ID));\n verify(mOnEnabled).run();\n\n // Second request to enable the UDFPS mode, while it's still enabled.\n mHbmController.enable(mOnEnabled);\n\n // Should ignore the second request.\n verifyNoMoreInteractions(mDisplayCallback);\n verifyNoMoreInteractions(mOnEnabled);\n }",
"@Test\n public void testClear() {\n System.out.println(\"clear\");\n int numLEDs = 150;\n DotStar instance = new MockDotStar(numLEDs);\n instance.clear();\n\n for (int i = 0; i < numLEDs; i++) {\n assertEquals((byte) 0xFF, instance.data[4 * i]);\n assertEquals((byte) 0x00, instance.data[(4 * i) + 1]);\n assertEquals((byte) 0x00, instance.data[(4 * i) + 2]);\n assertEquals((byte) 0x00, instance.data[(4 * i) + 3]);\n }\n }",
"@Test\n public void testTripCircuitOnFailuresAboveThreshold() {\n try {\n HystrixCommandProperties.Setter properties = HystrixCommandPropertiesTest.getUnitTestPropertiesSetter();\n HystrixCommandMetrics metrics = getMetrics(properties);\n HystrixCircuitBreaker cb = getCircuitBreaker(key, CommandOwnerForUnitTest.OWNER_TWO, metrics, properties);\n\n // this should start as allowing requests\n assertTrue(cb.allowRequest());\n assertFalse(cb.isOpen());\n\n // success with high latency\n metrics.markSuccess(400);\n metrics.markSuccess(400);\n metrics.markFailure(10);\n metrics.markSuccess(400);\n metrics.markFailure(10);\n metrics.markFailure(10);\n metrics.markSuccess(400);\n metrics.markFailure(10);\n metrics.markFailure(10);\n\n // this should trip the circuit as the error percentage is above the threshold\n assertFalse(cb.allowRequest());\n assertTrue(cb.isOpen());\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"Error occurred: \" + e.getMessage());\n }\n }",
"@Test\n void RookMoveDownBlocked() {\n Board board = new Board(8, 8);\n Piece rook1 = new Rook(board, 7, 1, 1);\n Piece rook2 = new Rook(board, 7, 4, 1);\n\n board.getBoard()[7][1] = rook1;\n board.getBoard()[7][4] = rook2;\n\n board.movePiece(rook1, 7, 7);\n\n Assertions.assertEquals(rook1, board.getBoard()[7][1]);\n Assertions.assertEquals(rook2, board.getBoard()[7][4]);\n Assertions.assertNull(board.getBoard()[7][7]);\n }",
"@Test(timeout = 4000)\n public void test075() throws Throwable {\n Range range0 = Range.of((-2147483660L));\n assertFalse(range0.isEmpty());\n }",
"public void brakeFailureStatus() {\n \tthis.brakeFailureActive = this.trainModelGUI.brakeFailStatus();\n }",
"@Test(timeout = 4000)\n public void test022() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"$lPgx`N_R\");\n assertFalse(boolean0);\n }",
"public Boolean IsInterrupt() {\n Random r = new Random();\n int k = r.nextInt(100);\n //10%\n if (k <= 10) {\n return true;\n }\n return false;\n }",
"@Test(timeout = 500)\n\tpublic void testGetModuloOne() {\n\t\tAssert.fail();\n\t}",
"@Test\n\tpublic void testblankBoard() {\n\t\tGameState test = new GameState();\n\t\ttest.blankBoard();\n\t\tfor (int x = 0; x < 25; x++) {\n\t\t\tassertTrue(!test.state()[x]);\n\t\t}\n\t}",
"@Test(timeout = 4000)\n public void test023() throws Throwable {\n Boolean boolean0 = SQLUtil.mutatesStructure(\"\");\n assertFalse(boolean0);\n }",
"@Test\r\n public void testPlayer_selectNewColor_dumb() {\r\n player2 = new Player(\"\", true);\r\n player2.setStrategy(Player.STRATEGY_DUMB);\r\n player2.setHand(strategyHand.getAllCards());\r\n player2.setLastPlayedCard(wild);\r\n String firstRandomColor = player2.selectNewColor();\r\n boolean differentColorFound = false;\r\n for(int i = 0; i < 25; i++) {\r\n String nextRandomColor = player2.selectNewColor();\r\n if(!nextRandomColor.equalsIgnoreCase(firstRandomColor)) {\r\n differentColorFound = true;\r\n }\r\n }\r\n assertTrue(differentColorFound);\r\n }",
"@Override\n\tpublic void setLED(int index, boolean state) throws emException, TException {\n\n\t}",
"@Test\n public void testIsActionable_FourthCornerCase() {\n board.getCell(3, 3).setDome(true);\n board.getCell(4, 3).setDome(true);\n board.getCell(4, 4).addLevel();\n assertTrue(godPower.isActionable(board, player.getWorker1()));\n }",
"public void testFlagCell()\r\n {\r\n board.loadBoardState(\"OOOO\",\r\n \"OFOO\",\r\n \"O+OO\",\r\n \"OOOO\");\r\n board.flagCell(1, 1);\r\n assertBoard(board, \"OOOO\",\r\n \"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\");\r\n board.loadBoardState(\"OOOO\",\r\n \"OOOO\",\r\n \"OOOO\",\r\n \"OOOO\");\r\n board.flagCell(1, 1);\r\n assertBoard(board, \"OOOO\",\r\n \"OFOO\",\r\n \"OOOO\",\r\n \"OOOO\");\r\n board.loadBoardState(\"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\",\r\n \"OOOO\");\r\n board.flagCell(1, 1);\r\n assertBoard(board, \"OOOO\",\r\n \"OMOO\",\r\n \"OOOO\",\r\n \"OOOO\");\r\n board.loadBoardState(\"OOOO\",\r\n \"OMOO\",\r\n \"OOOO\",\r\n \"OOOO\");\r\n board.flagCell(1, 1);\r\n assertBoard(board, \"OOOO\",\r\n \"O+OO\",\r\n \"OOOO\",\r\n \"OOOO\");\r\n board.loadBoardState(\"OOOO\",\r\n \"O OO\",\r\n \"OOOO\",\r\n \"OOOO\");\r\n board.flagCell(1, 1);\r\n assertBoard(board, \"OOOO\",\r\n \"O OO\",\r\n \"OOOO\",\r\n \"OOOO\");\r\n }",
"@Ignore\n @Test\n public void testCheckPrimeBorder_3() {\n assertTrue(checkerNumber.checkPrime(Integer.MAX_VALUE));\n }",
"public void setEnabled(boolean enabled) {\n/* 960 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private void checkButtonUnlock() {\r\n\t\tif (this.isAdressValid && this.isPortValid) {\r\n\t\t\tview.theButton.setDisable(false);\r\n\t\t}\r\n\r\n\t}",
"@Test\n public void testNoMoreEnabledPortCase3() throws Exception {\n Port port1 = new DefaultPort(dev1, p1, false);\n Port port2 = new DefaultPort(dev1, p2, true);\n Port port3 = new DefaultPort(dev1, p3, false);\n Port port4 = new DefaultPort(dev1, p4, true);\n Port port5 = new DefaultPort(dev1, p5, true);\n List<Port> ports = Lists.newArrayList(port1, port2, port3, port4, port5);\n\n expect(deviceService.getPorts(anyObject(DeviceId.class))).andReturn(ports).anyTimes();\n replay(deviceService);\n assertFalse(rrp.noMoreEnabledPort(devId1, v10));\n assertTrue(rrp.noMoreEnabledPort(devId1, v20));\n assertFalse(rrp.noMoreEnabledPort(devId1, vInt));\n }",
"@Test\n public void setSampleSizeInBits_7() {\n Assertions.assertThrows(IllegalArgumentException.class, () -> {\n final int SAMPLE_SIZE_BITS = 7;\n AudioConfigManager.setSampleSizeInBits(SAMPLE_SIZE_BITS);\n assertEquals(AudioFormatConfig.sampleSizeInBits, SAMPLE_SIZE_BITS);\n });\n }",
"@Test\n public void test14() { \n Board board14 = new Board();\n board14.put(1,1,1); \n board14.put(1,2,1);\n board14.put(1,3,1);\n board14.put(2,1,2);\n board14.put(2,2,2);\n board14.put(2,3,1);\n board14.put(3,1,1);\n board14.put(3,2,1);\n board14.put(3,3,2);\n assertFalse(board14.checkTie());\n }",
"boolean canSetPixel();",
"@Test(timeout = 4000)\n public void test008() throws Throwable {\n Range range0 = Range.ofLength(360L);\n assertFalse(range0.isEmpty());\n }",
"public static void logErrorIfTooManyWarnings(int warningsPerHundred) {\n }",
"@Test\n public void testNoMoreEnabledPortCase1() throws Exception {\n Port port1 = new DefaultPort(dev1, p1, true);\n Port port2 = new DefaultPort(dev1, p2, true);\n Port port3 = new DefaultPort(dev1, p3, true);\n Port port4 = new DefaultPort(dev1, p4, true);\n Port port5 = new DefaultPort(dev1, p5, true);\n List<Port> ports = Lists.newArrayList(port1, port2, port3, port4, port5);\n\n expect(deviceService.getPorts(anyObject(DeviceId.class))).andReturn(ports).anyTimes();\n replay(deviceService);\n assertFalse(rrp.noMoreEnabledPort(devId1, v10));\n assertFalse(rrp.noMoreEnabledPort(devId1, v20));\n assertFalse(rrp.noMoreEnabledPort(devId1, vInt));\n }",
"public boolean hasReachedLEDTarget() {\n\t\tif (closestWhiteLED != null) {\n\t\t\tif (sens.isCloseTo(closestWhiteLED.getTargetX(), closestWhiteLED.getTargetY(), 2)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public void testImproperUseOfTheCircuit() {\n \t fail(\"testImproperUseOfTheCircuit\");\n }",
"@Test\n public void testEnegeryWhOff() {\n byte[] dataBytes = new byte[4];\n dataBytes[0] = (byte) 0x01; // MSB of Energy Metring Value\n dataBytes[1] = (byte) 0x18; // LSB of Energy Metring Value Total, 280\n dataBytes[2] = (byte) 0x04; // Unit of Energy Value\n dataBytes[3] = (byte) 0x7C; // 01111100\n // Servcie Mode: Normal Mode\n // Operation hours flag: lamp operating hours available\n // Error State: Failure on the external periphery\n // Learn Bit: Data Telegram\n // Parameter Mode: Energy metering value\n // Status: 0 Off\n \n Map<EnoceanParameterAddress, Value> values = createBasicPacket(dataBytes);\n \n NumberWithUnit energyValue = (NumberWithUnit) values.get(new EnoceanParameterAddress(sourceEnoceanId, Parameter.ENERGY_METERING_VALUE));\n assertEquals(280, ((Number) energyValue.getValue()).intValue());\n assertEquals(Unit.WATTHOURS, energyValue.getUnit());\n \n OnOffState status = (OnOffState) values.get(new EnoceanParameterAddress(sourceEnoceanId, Parameter.POWER));\n assertEquals(OnOffState.OFF, status);\n \n ExtendedLightingStatus.ErrorState errorState = (ExtendedLightingStatus.ErrorState) values.get(new EnoceanParameterAddress(sourceEnoceanId, Parameter.ERROR_STATE));\n assertEquals(ExtendedLightingStatus.ErrorState.EXTERNAL_FAILURE, errorState);\n \n ExtendedLightingStatus.OperationHoursFlag opHourFlag = (ExtendedLightingStatus.OperationHoursFlag) values.get(new EnoceanParameterAddress(sourceEnoceanId, Parameter.OPERATIONS_HOURS_FLAG));\n assertEquals(ExtendedLightingStatus.OperationHoursFlag.HOURS_AVAILABLE, opHourFlag);\n }",
"@Test(timeout = 4000)\n public void test014() throws Throwable {\n Range range0 = Range.ofLength(581L);\n assertFalse(range0.isEmpty());\n }",
"@Test\n\tpublic void testsetBattery2zero() {\n\t\tController control = new Controller();\n\t\tBasicRobot robot = new BasicRobot();\n\t\tExplorer explorer = new Explorer();\n\t\tcontrol.setBuilder(Order.Builder.DFS);\n\t\tcontrol.setRobotAndDriver(robot, explorer);\n\t\trobot.setMaze(control);\n\t\tcontrol.turnOffGraphics();\n\t\tcontrol.setSkillLevel(0);\n\t\tcontrol.switchFromTitleToGenerating(0);\n\t\tcontrol.waitForPlayingState();\n\t\texplorer.setRobot(robot);\n\t\trobot.setBatteryLevel(0);\n\t\ttry {\n\t\t\tassertFalse(explorer.drive2Exit());\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}",
"private void unsetOneAllChecks() {\r\n\r\n checkIman.setEnabled(false);\r\n checkBonferroni.setEnabled(false);\r\n checkHolm.setEnabled(false);\r\n checkHochberg.setEnabled(false);\r\n checkHommel.setEnabled(false);\r\n checkHolland.setEnabled(false);\r\n checkRom.setEnabled(false);\r\n checkFinner.setEnabled(false);\r\n checkLi.setEnabled(false);\r\n\r\n }",
"@Test\n public void accuseFailTest() throws Exception {\n assertTrue(\"failure - accused status was not set to true\", target.isAccused());\n\n }",
"@Test\n public void invalidTableEgress() throws InterruptedException {\n for (int i = 100; i < 110; ++i) {\n this.sfcOfRendererDataListener.onDataTreeChanged(createSfcOfRendererConfig(100, i));\n Thread.sleep(SLEEP); // otherwise the failure is not detected\n verifySettersNotCalled();\n }\n }",
"@Test(timeout = 4000)\n public void test090() throws Throwable {\n DBUtil.resetMonitors();\n }",
"@Test(timeout = 4000)\n public void test094() throws Throwable {\n HomeEnvironment homeEnvironment0 = new HomeEnvironment();\n homeEnvironment0.setObserverCameraElevationAdjusted(false);\n assertFalse(homeEnvironment0.isObserverCameraElevationAdjusted());\n \n homeEnvironment0.setObserverCameraElevationAdjusted(true);\n assertEquals(13684944, homeEnvironment0.getLightColor());\n }",
"@Test\n public void testThresholdEqualsZero() {\n final ThresholdCircuitBreaker circuit = new ThresholdCircuitBreaker(zeroThreshold);\n assertTrue(\"When the threshold is zero, the circuit is supposed to be always open\", circuit.incrementAndCheckState(0L));\n }",
"@Test\n public void testLowVolumeDoesNotTripCircuit() {\n try {\n int sleepWindow = 200;\n int lowVolume = 5;\n\n HystrixCommandProperties.Setter properties = HystrixCommandPropertiesTest.getUnitTestPropertiesSetter().withCircuitBreakerSleepWindowInMilliseconds(sleepWindow).withCircuitBreakerRequestVolumeThreshold(lowVolume);\n HystrixCommandMetrics metrics = getMetrics(properties);\n HystrixCircuitBreaker cb = getCircuitBreaker(key, CommandOwnerForUnitTest.OWNER_TWO, metrics, properties);\n\n // fail\n metrics.markFailure(1000);\n metrics.markFailure(1000);\n metrics.markFailure(1000);\n metrics.markFailure(1000);\n\n // even though it has all failed we won't trip the circuit because the volume is low\n assertTrue(cb.allowRequest());\n assertFalse(cb.isOpen());\n\n } catch (Exception e) {\n e.printStackTrace();\n fail(\"Error occurred: \" + e.getMessage());\n }\n }",
"public void testGetConfigElementWOptionsWRetries() throws Throwable {\n secretsManagerService.enableRetries(4, 30);\n testGetConfigElementWOptions();\n\n // Disable retries and run testGetConfigElementWOptions.\n secretsManagerService.disableRetries();\n testGetConfigElementWOptions();\n }",
"@Test\n public void offsetGreaterThanEgress() throws InterruptedException {\n int offset = 200;\n int egress = 10;\n this.sfcOfRendererDataListener.onDataTreeChanged(createSfcOfRendererConfig(offset, egress));\n Thread.sleep(100); // Let the thread finish\n verifySettersCalled(offset, egress);\n }",
"private void tooHigh() {\n if (this.hitPoints > 255) {\n System.out.println(\"You set the value too high! Setting it to 255\");\n this.hitPoints = 255;\n }\n }",
"@Test\n void RookMoveOutOfBound() {\n Board board = new Board(8, 8);\n Piece rook = new Rook(board, 1, 5, 1);\n board.getBoard()[1][5] = rook;\n board.movePiece(rook, -1, 5);\n }",
"@Test\n\tpublic void testIfForbriddenSelfKillAdvanced(){\n\t\tboard.commitMove(new Point(2,1), 1);\n\t\tboard.commitMove(new Point(3,1), 1);\n\t\tboard.commitMove(new Point(4,2), 1);\n\t\tboard.commitMove(new Point(3,3), 1);\n\t\tboard.commitMove(new Point(3,4), 1);\n\t\tboard.commitMove(new Point(2,5), 1);\n\t\tboard.commitMove(new Point(1,4), 1);\n\t\tboard.commitMove(new Point(1,3), 1);\n\t\tboard.commitMove(new Point(1,2), 1);\n\t\t\n\t\tboard.commitMove(new Point(2,4), 0);\n\t\tboard.commitMove(new Point(2,3), 0);\n\t\tassertEquals(0, board.commitMove(new Point(2,2), 0));\n\t\tassertNotEquals(0,board.commitMove(new Point(3,2), 0));\n//\t\tboard.printBoard();\n\t}",
"@org.junit.Before\n public void turnOffAllAccessDetection() {\n Settings.INSTANCE.set(Settings.SETT_MTD_ACCS, \"false\"); /* Not tested here. */\n Settings.INSTANCE.set(Settings.SETT_FLD_ACCS, \"false\"); /* Not tested here. */\n }",
"void testAllCellsFlooded(Tester t) {\r\n initData();\r\n t.checkExpect(this.game8.allCellsFlooded(), true);\r\n t.checkExpect(this.game2.allCellsFlooded(), false);\r\n }",
"@Test\n\tpublic void testIfKingHasNotLost()\n\t{\n\t\tData d = new Data();\n\t\td.set(14, 34); // set a black piece to square 34\n\t\td.set(15, 32); // set a black piece to square 32\n\t\td.set(16, 22); //set a black piece to square 22, i.e. one above the king\n\t\td.set(17, 44); // set a black piece to square 44, i.e. one below the king\n\t\t\n\t\tassertFalse(d.kingLost(100)); \n\t}",
"private boolean transmissionFailure(Message[] pumpStates, Message[] pumpControlStates) {\n // Check level readings\n boolean w = false;\n boolean s = false;\n for (int i = 0; i < this.incoming.size(); i++) {\n Message msg = this.incoming.read(i);\n if (msg.getKind().equals(MessageKind.LEVEL_v)) {\n w = true;\n }\n if (msg.getKind().equals(MessageKind.STEAM_v)) {\n s = true;\n }\n }\n\n if (!w || !s) {\n return true;\n }\n\n if (pumpStates.length != this.configuration.getNumberOfPumps()) {\n // Nonsense pump state readings\n return true;\n } else if (pumpControlStates.length != this.configuration.getNumberOfPumps()) {\n // Nonsense pump control state readings\n return true;\n }\n // Done\n return false;\n }",
"public void testGetConfigElementsWOptionsWRetries() throws Throwable {\n secretsManagerService.enableRetries(4, 30);\n testGetConfigElementsWOptions();\n\n // Disable retries and run testGetConfigElementsWOptions.\n secretsManagerService.disableRetries();\n testGetConfigElementsWOptions();\n }",
"@Test\n public void testPinCheckDelay() throws Exception {\n LockscreenHelper.getInstance().setScreenLockViaShell(PIN, LockscreenHelper.MODE_PIN);\n if (isTracesEnabled()) {\n createTraceDirectory();\n }\n for (int i = 0; i < mIterationCount; i++) {\n mDevice.sleep();\n if (null != mAtraceLogger) {\n mAtraceLogger.atraceStart(mTraceCategoriesSet, mTraceBufferSize,\n mTraceDumpInterval, mRootTrace,\n String.format(\"%s-%d\", TEST_PINCHECK_DELAY, i));\n }\n\n // Make sure not to launch camera with \"double-tap\".\n Thread.sleep(300);\n mDevice.wakeUp();\n LockscreenHelper.getInstance().unlockScreen(PIN);\n mDevice.waitForIdle();\n if (null != mAtraceLogger) {\n mAtraceLogger.atraceStop();\n }\n }\n LockscreenHelper.getInstance().removeScreenLockViaShell(PIN);\n mDevice.pressHome();\n }",
"private boolean canAddRedTile() {\n\n\t\tif(isAllPiecesEaten(Game.getInstance().getCurrentPlayerColor())) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public void setHiddenPiece() {\n for(int j = 0; j < 12; j++) {\n controller.getBoard().setPiece(new Forbidden(), 0, j);\n Cell[0][j] = new JButton();\n }\n for(int j = 0; j < 12; j++) {\n controller.getBoard().setPiece(new Forbidden(), 9, j);\n Cell[9][j] = new JButton();\n }\n for(int j = 0; j < 10; j++) {\n controller.getBoard().setPiece(new Forbidden(), j, 0);\n Cell[j][0] = new JButton();\n }\n for(int j = 0; j < 10; j++) {\n controller.getBoard().setPiece(new Forbidden(), j, 11);\n Cell[j][11] = new JButton();\n }\n }",
"@Test\n\tpublic void diagLRWin_test1()\n\t{\n\t\tb.set(0,1, 'x');\n\t\tb.set(0,2, 'o');\n\t\tb.set(1,2, 'x');\n\t\tassertFalse(b.diagLRWin());\t\n\t}",
"@Test\n public void setSampleSizeInBits_1() {\n Assertions.assertThrows(IllegalArgumentException.class, () -> {\n final int SAMPLE_SIZE_BITS = 1;\n AudioConfigManager.setSampleSizeInBits(SAMPLE_SIZE_BITS);\n assertEquals(AudioFormatConfig.sampleSizeInBits, SAMPLE_SIZE_BITS);\n });\n }"
] | [
"0.6032635",
"0.5981536",
"0.588472",
"0.5857173",
"0.58547586",
"0.5804894",
"0.576049",
"0.5699826",
"0.5669888",
"0.5622966",
"0.55033505",
"0.54725957",
"0.54658645",
"0.5459743",
"0.54541504",
"0.54462",
"0.54298025",
"0.5419401",
"0.5386935",
"0.537878",
"0.53638124",
"0.5353031",
"0.5323814",
"0.53233314",
"0.53165734",
"0.53131104",
"0.53113806",
"0.5301546",
"0.5301271",
"0.5297468",
"0.52762604",
"0.526079",
"0.5234121",
"0.52221966",
"0.52193505",
"0.52192277",
"0.5214182",
"0.5204549",
"0.52043635",
"0.5204095",
"0.52020425",
"0.5198495",
"0.5176825",
"0.5169387",
"0.5165167",
"0.5163022",
"0.51399946",
"0.51371807",
"0.51352036",
"0.5120795",
"0.51148766",
"0.511169",
"0.5095071",
"0.5088428",
"0.5077115",
"0.507613",
"0.5073983",
"0.5072611",
"0.50720674",
"0.5069234",
"0.5063004",
"0.50573975",
"0.5056083",
"0.5047013",
"0.504651",
"0.5038504",
"0.5035062",
"0.5030445",
"0.50299585",
"0.50276166",
"0.50251377",
"0.5024361",
"0.5019785",
"0.50100577",
"0.5008699",
"0.5008098",
"0.5008024",
"0.5005802",
"0.50041693",
"0.5003748",
"0.4992996",
"0.49868327",
"0.49841154",
"0.49791476",
"0.49773127",
"0.49760294",
"0.49710178",
"0.49707296",
"0.49678048",
"0.49568614",
"0.4956159",
"0.49560332",
"0.49400976",
"0.49337214",
"0.49319848",
"0.49313802",
"0.49285027",
"0.4927589",
"0.49247384",
"0.49245095"
] | 0.57663405 | 6 |
Search pages Search main page | @GetMapping(value = { "/search" })
public String searchPage() {
return "search";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void search()\n {\n JTextField searchField = (currentSearchView.equals(SEARCH_PANE_VIEW))? searchBar : resultsSearchBar;\n String searchTerm = searchField.getText();\n \n showTransition(2000);\n \n currentPage = 1;\n showResultsView(true);\n paginate(1, getResultsPerPage());\n\n if(searchWeb) showResultsTableView(WEB_RESULTS_PANE);\n else showResultsTableView(IMAGE_RESULTS_PANE);\n\n \n showSearchView(RESULTS_PANE_VIEW);\n resultsSearchBar.setText(searchTerm);\n }",
"private void searchWeb()\n {\n searchWeb = true;\n search();\n }",
"public SearchPage() {\n\t\tPageFactory.initElements(driver, this);\n\t\t\n\t}",
"public SearchPage() {\n\t\tdoRender();\n\t}",
"@Action\r\n public String search() {\n ServiceFunctions.clearCache();\r\n\r\n if (isAdmin()) {\r\n return adminSearch();\r\n }\r\n\r\n return publicSearch();\r\n }",
"public void search() {\r\n \t\r\n }",
"@Test(enabled = true, timeOut = 100000, groups = {\"search\", \"home\"})\n public void searchPackage() throws IOException {\n logger.debug(\"Page is initialised.\");\n logger.trace(\"Searching City Name.\");\n// assertThat(driver.getCurrentUrl(), containsString(\"cleartrip\"));\n// home.search(typeofSearch, fromPlace, toPlace, date, numberOfAdults);\n }",
"public void performSearch() {\n final String url = String.format(BING_SEARCH_URL, Words.getRandomWord(), Words.getRandomWord());\n\n //open page with custom data\n openWebPage(url, \"Search url: \" + url);\n }",
"final void searchPage(DataInputStream dis,String url)\r\n {\r\n try\r\n\t{\r\n String input; // Raw line read in.\r\n\t String upperCaseInput; // Upper case version of the above\r\n\t String link; // HTML link found\r\n\t String temp; \r\n\t String title=\"\"; // Page Title;\r\n\r\n\t // Read a line at a time.\r\n\t while((input=dis.readLine())!=null)\r\n\t {\r\n\t // Convert to Upper case (makes comparisions easier)\r\n\t\tupperCaseInput=input.toUpperCase();\r\n\t\t// Check for document title\r\n\t\ttemp=parseForTitle(input,upperCaseInput,dis);\r\n\t\t// If a title has been found then remember it. So, that it can displayed on the list box.\r\n\t\tif(temp!=null && temp.length()>0)\r\n\t\t title=temp;\r\n\t //Check for match after title has been found (Don't bother Searching the title though)\r\n\t\tif(title.length()>0 && temp==null)\r\n\t\t checkMatch(input,url,title);\r\n \r\n\t\t// Check to see if this line contains a link\r\n\t\tlink=parseForLink(upperCaseInput,input);\r\n\t\tif(link!=null)\r\n\t\t{\r\n\t\t // Check if the maximum number of pages to search has been reached.\r\n\t\t if(app.getTotalPages()>=maxPages)\r\n\t\t return;\r\n if(topLevelSearch==FIND_TOP_LEVEL_PAGES)\r\n\t\t topLevelPages.addElement(link);\r\n else if(topLevelSearch==SEARCH_TOP_LEVEL_PAGES)\r\n\t\t nextLevelPages.addElement(link);\r\n\t\t else checkLink(link);\t \r\n\t\t}\r\n\t }\r\n }\r\n\tcatch(IOException e){ }\r\n }",
"private void executeSearch() {\n if (!view.getSearchContent().getText().isEmpty()) {\n SearchModuleDataHolder filter = SearchModuleDataHolder.getSearchModuleDataHolder();\n //set search content text for full text search\n filter.setSearchText(view.getSearchContent().getText());\n forwardToCurrentView(filter);\n } else {\n eventBus.showPopupNoSearchCriteria();\n }\n }",
"public String search() {\r\n\t\tgetNavigationPanel(3);\r\n\t\treturn SUCCESS;\r\n\t}",
"public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }",
"public SOASearchPage() {\r\n\t\tsuper();\r\n\t}",
"Search getSearch();",
"private void searchMenu(){\n\t\t\n\t}",
"@RequestMapping(value = \"/search\", method = RequestMethod.GET)\n public String renderSearchPage(Model model) {\n model.addAttribute(\"nosites\", true);\n model.addAttribute(\"siteList\", new ArrayList<Site>());\n model.addAttribute(\"statisticsUtils\", new StatisticsUtils());\n return \"search/search-page\";\n }",
"public void search() {\n }",
"private void searchFunction() {\n\t\t\r\n\t}",
"public static void search(){\n\t\tfor (Page p:heap){\n\t\t\tfor(Building b:p.buildings){\n\t\t\t\t\n\t\t\t\t//System.out.println(b.buildingName);\n\t\t\t\tif(b.getBuildingName()!=null) {\n\t\t\t\t\tif(b.getBuildingName().contains(searchQuery)){\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println(\"Building Name: \" + b.getBuildingName());\n\t\t\t\t\t\tSystem.out.println(\"Property ID: \" + b.getPropID());\n\t\t\t\t\t\tSystem.out.println(\"Census year: \" + b.getCensusYear());\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tbuildingsFound++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpagesSearched++;\n\t\t}\n\t}",
"void searchProbed (Search search);",
"public void searchForPageToChange(String searchPage)\n\t{\n\t\twait.waitElementToBeDisplayed(By.xpath(\"//td/input[@class='z-textbox' and @z.type='zul.vd.Txbox']\"));\n\t\tdriver.findElement(By.xpath(\"//td/input[@class='z-textbox' and @z.type='zul.vd.Txbox']\")).sendKeys(searchPage);\n\t\tList<WebElement> searchBtn=driver.findElements(By.xpath(\"//img[@src='/cmscockpit/cockpit/images/BUTTON_search.png']\"));\n\t\tif(searchBtn!=null&&searchBtn.size()>0)\n\t\t{\n\t\t\tsearchBtn.get(0).click();\n\t\t}\n\t}",
"abstract public void search();",
"@Test\n\tpublic void searchPage() throws Exception {\n\t\tgetRequest().andExpect(content().string(CoreMatchers.containsString(\"searchForm\")));\n\t}",
"public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }",
"@Override\r\n\tpublic void find(HttpServletRequest request, HttpServletResponse response) throws IOException {\n\t\tURL1=\"/admin/xiaoshuolist.jsp\";\r\n\t\tthis.searchFields=\"title,content,categorytitle,author\";\r\n\t\tsuper.find(request, response);\r\n\t}",
"private Search() {}",
"@Override\r\n\tpublic void search() {\n\r\n\t}",
"@Override\n\tpublic void search() {\n\t}",
"void searchUI();",
"void search();",
"void search();",
"private void searchforResults() {\n\n List<String> queryList = new SavePreferences(this).getStringSetPref();\n if(queryList != null && queryList.size() > 0){\n Log.i(TAG, \"Searching for results \" + queryList.get(0));\n Intent searchIntent = new Intent(Intent.ACTION_WEB_SEARCH);\n searchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n searchIntent.putExtra(SearchManager.QUERY, queryList.get(0));\n this.startActivity(searchIntent);\n }\n }",
"@Override\n\tpublic Page<Product> findKeyWordPage(Integer pageint, String searchContent) {\n\t\tPageRequest pageable = PageRequest.of(pageint, 9);\n//\t\tPage<Product> page = productRepository.findBydescriptionLike(pageable, searchContent);\n\t\tPage<Product> page = productRepository.searchAll(pageable, searchContent);\n\t\t\n\t\tSystem.out.println(\"page->\"+page.getContent());\n\t\treturn page;\n\t}",
"private void startSearch()\n {\n model.clear();\n ArrayList<String> result;\n if (orRadio.isSelected())\n {\n SearchEngine.search(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n else\n {\n SearchEngine.searchAnd(highTerms.getText(), lowTerms.getText());\n result = SearchEngine.getShortForm();\n }\n for (String s : result)\n {\n model.addElement(s);\n }\n int paragraphsRetrieved = result.size();\n reviewedField.setText(\" Retrieved \" + paragraphsRetrieved + \" paragraphs\");\n }",
"public void searchNextPage() {\n if (!isPerformingQuery\n && isViewingRecipes\n && !isQueryExhausted().getValue()) {\n recipeRepository.searchNextPage();\n }\n }",
"private void searchItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"@RequestMapping(value={\"/search\"}, method={RequestMethod.GET})\n \tpublic ModelAndView handleSearch(@RequestParam(required=false) String q, @RequestParam(required=false,defaultValue=\"1\") Integer page){\n \t\tMap<String,Object> model = new HashMap<String,Object>();\n \t\t\n \t HashMap<String,Object> search = new HashMap<String,Object>();\n \t search.put(\"term\", \"\");\n \t search.put(\"total\",0);\n \n \t List<Map<String,String>> searchResult = new ArrayList<Map<String,String>>();\n \t if(StringUtils.isNotBlank(q)){\n \t \tsearch.put(\"term\", q);\n \t \tLimitedResult<List<NameConceptModelIF>> nameConceptModelList = null;\n \t \tint pageIndex = (page <= 0)?0:(page-1);\n \t \t//use page index +1 to avoid returning a bad page number\n \t\tsearch.put(\"pageNumber\", (pageIndex+1));\n \t\tsearch.put(\"pageSize\", searchService.getPageSize());\n \t\t//check if we want another page than the first one\n \t \tif(pageIndex > 0){\n \t \t\tnameConceptModelList = searchService.searchName(q,pageIndex);\n \t \t}\n \t \telse{\n \t \t\tnameConceptModelList = searchService.searchName(q);\n \t \t}\n \n \t\t search.put(\"total\",nameConceptModelList.getTotal_rows());\n \t\t List<Map<String,String>> searchResults = new ArrayList<Map<String,String>>();\n \t\t Map<String,String> searchRow = null;\n \t\t //TODO use objects directly instead of map\n \t\t for(NameConceptModelIF currNameConceptModel : nameConceptModelList.getRows()){\n \t\t \tif(currNameConceptModel.getClass().equals(NameConceptTaxonModel.class)){\n \t\t \t\tsearchRow = new HashMap<String,String>();\n \t\t \t\tsearchRow.put(\"type\",\"taxon\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"namehtml\",((NameConceptTaxonModel)currNameConceptModel).getNamehtml());\n \t\t \t\tsearchRow.put(\"namehtmlauthor\",((NameConceptTaxonModel)currNameConceptModel).getNamehtmlauthor());\n \t\t \t\tsearchRow.put(\"rankname\",((NameConceptTaxonModel)currNameConceptModel).getRankname());\n \t\t \t\tsearchRow.put(\"parentid\",((NameConceptTaxonModel)currNameConceptModel).getParentid().toString());\n \t\t \t\tsearchRow.put(\"parentnamehtml\",((NameConceptTaxonModel)currNameConceptModel).getParentnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse if(currNameConceptModel.getClass().equals(NameConceptVernacularNameModel.class)){\n \t\t \t\tsearchRow = new HashMap<String, String>();\n \t\t \t\tsearchRow.put(\"type\",\"vernacular\");\n \t\t \t\tsearchRow.put(\"name\", currNameConceptModel.getName());\n \t\t \t\tsearchRow.put(\"id\", Integer.toString(((NameConceptVernacularNameModel)currNameConceptModel).getId()));\n \t\t \t\tsearchRow.put(\"status\", currNameConceptModel.getStatus());\n \t\t \t\tsearchRow.put(\"lang\",((NameConceptVernacularNameModel)currNameConceptModel).getLang());\n \t\t \t\tsearchRow.put(\"taxonid\",currNameConceptModel.getTaxonId().toString());\n \t\t \t\tsearchRow.put(\"taxonnamehtml\",((NameConceptVernacularNameModel)currNameConceptModel).getTaxonnamehtml());\n \t\t \t\tsearchResult.add(searchRow);\n \t\t \t}\n \t\t \telse{\n \t\t \t\t//logger\n \t\t \t\tsearchRow = null;\n \t\t \t}\n \t\t \tsearchResults.add(searchRow);\n \t\t }\n \t\t model.put(\"results\",searchResults);\n \t }\n \t \n \t model.put(\"search\",search);\n \t return new ModelAndView(\"search\", model);\n \t}",
"public void search() {\n\n lazyModel = new LazyDataModel<Pesquisa>() {\n private static final long serialVersionUID = -6541913048403958674L;\n\n @Override\n public List<Pesquisa> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters) {\n\n pesquisarBC.searhValidation(searchParam);\n\n int count = pesquisarBC.count(searchParam);\n lazyModel.setRowCount(count);\n\n if (count > 0) {\n if (first > count) {\n // Go to last page\n first = (count / pageSize) * pageSize;\n }\n SearchFilter parameters = new SearchFilter();\n parameters.setFirst(first);\n parameters.setPageSize(pageSize);\n List<Pesquisa> list = pesquisarBC.search(searchParam, parameters);\n\n logger.info(\"END: load\");\n return list;\n } else {\n return null;\n }\n }\n };\n\n }",
"@Test\n public void searchPageTest (){\n searchPage=new SearchPage();\n\n // loginPage.goToLoginPage();\n // loginPage.login();\n searchPage.searchKeysFromHeader(\"İphone\");\n searchPage.searchResultPage(\"İphone\");\n\n}",
"@Test\n public void stage04_searchAndPage() {\n String keyWord = \"bilgisayar\";\n Integer pageNumber = 2;\n //Searching with parameters\n SearchKey searchKey = new SearchKey(driver);\n HomePage homePage = searchKey.search(keyWord, pageNumber);\n //Getting current url\n String currentUrl = homePage.getCurrentURL();\n //Testing if this is desired page\n assertEquals(currentUrl, \"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\");\n //logging\n if (currentUrl.equals(\"https://www.gittigidiyor.com/arama/?k=bilgisayar&sf=2\")) {\n logger.info(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n } else {\n logger.error(\"( stage02_testOpenLoginPage )Actual location : \" + currentUrl);\n }\n }",
"private void search(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.clearEditText(0);\n solo.typeText(0, searchTerm);\n }",
"private void goSearch() {\n\t\tThread t = new Thread(this);\n\t\tt.start();\n\t}",
"private void getBySearch(HttpServletRequest request, HttpServletResponse response, ArticleService artService) {\n\t\tString search = request.getParameter(\"search\");\n\t\tList<Article> list = new ArrayList<Article>();\n\t\tlist = artService.getAll(\"atitle\", search);\n\t\trequest.setAttribute(\"list\", list);\n\t\ttry {\n\t\t\trequest.getRequestDispatcher(\"/essay/other_essay.jsp\").forward(request, response);\n\t\t} catch (ServletException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void showSearch() {\n\t\tonSearchRequested();\n\t}",
"abstract public boolean performSearch();",
"@Test\n\tpublic void VerifyTheSearchResult() {\n\t\tString searchString = \"The Choice\";\n\t\thomePage.search(searchString);\n\t\tString searchTitle = resultPage.getSearchResultTitle();\n\t\tAssert.assertTrue(searchTitle.contains(searchString));\n\t}",
"private void search() {\n String result = \"<body bgcolor=\\\"black\\\"> \" +\n \"<font color=\\\"#009933\\\"\";\n gs.setQueryString(txtQueury.getText());\n try {\n gsr = gs.doSearch();\n txtCountRes.setText(\"\" + gsr.getEstimatedTotalResultsCount());\n gsre = gsr.getResultElements();\n\n for (int i = 0; i < gsre.length; i++) {\n if (googleTitle.isSelected()) {\n result +=\n \"<font color=\\\"red\\\"><u><b>Title: </u></b><a href=\\\"\" +\n gsre[i].getURL() + \"\\\">\"\n + gsre[i].getTitle() + \"</a><br>\" +\n \"<br><b>URL: \" +\n gsre[i].getHostName() + gsre[i].getURL() +\n \"</b></font><br>\";\n }\n if (googleSummary.isSelected()) {\n result += \"<u><b>Summary: </u></b>\" +\n gsre[i].getSummary() +\n \"<br>\";\n }\n if (googleSnippet.isSelected()) {\n result += \"<u><b>Snippet: </u></b>\" +\n gsre[i].getSnippet() +\n \"<br>\";\n }\n if (googleHostName.isSelected()) {\n result += \"<u><b>Host: </u></b>\" + gsre[i].getHostName() +\n \"<br>\";\n }\n if (googleDirectoryTitle.isSelected()) {\n result += \"<u><b>Directory Title: </u></b>\" +\n gsre[i].getDirectoryTitle() + \"<br>\";\n }\n if (googleCachedSize.isSelected()) {\n result += \"<u><>Cached Size: </u></b>\" +\n gsre[i].getCachedSize() + \"<br>\";\n }\n result += \"<br>\";\n }\n } catch (GoogleSearchFault e) {\n msg(\"Erreur d'exécution \" + e.getMessage(), \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n\n //affichage de la recherche\n editor.setText(result);\n }",
"public MainPage test003TestSearchResults() throws InterruptedException {\n waitForVisibilityOf(view_on_map);\r\n assertThat(driver.findElement(view_on_map).isDisplayed(), is(true));\r\n\r\n /*assertThat(driver.findElement(menu_frame_btn_p2p).isDisplayed(), is(true));\r\n assertThat(driver.findElement(menu_frame_btn_bookmarks).isDisplayed(), is(true));\r\n assertThat(driver.findElement(menu_frame_btn_menu).isDisplayed(), is(true));\r\n assertThat(driver.findElement(menu_frame_btn_search).isDisplayed(), is(true));*/\r\n\r\n Thread.sleep(3000);\r\n return new MainPage(driver);\r\n }",
"public abstract S getSearch();",
"private void searchContext(HttpServletRequest request, HttpServletResponse response, ArticleService artService,QuestionService questionService) throws ServletException, IOException {\n\t\tString text=request.getParameter(\"getText\");\n\t\tString atitle=\"atitle\";\n\t\tString qtitle=\"qtitle\";\n\t\tList<Article> arts=artService.getAll(atitle, text);\n\t\tList<Question> questions=questionService.getAll(qtitle,text);\n\t\trequest.setAttribute(\"arts\", arts);\n\t\trequest.setAttribute(\"questions\", questions);\n\t\trequest.getRequestDispatcher(\"/homepage/afterSearch.jsp\").forward(request, response);\n\t\t\n\t\t\n\t}",
"public abstract Page<CustomerInfo> findAll(GlobalSearch globalSearch, Pageable pageable);",
"public List<Page> searchAll() {\n return mysqlDao.searchAll();\n }",
"public String startSearch(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t\t//这个是传给你的key,是用户输入的搜索参数,得到之后干什么你自己写就行\n\t\tString key = request.getParameter(\"key\");\n\t\tSystem.out.println(key);\n\n\t\trequest.getSession().setAttribute(\"isCrawling\", 1);\n\n\t\treturn \"index.jsp\";\n\t}",
"public void performSearch() {\n OASelect<QueryInfo> sel = getQueryInfoSearch().getSelect();\n sel.setSearchHub(getSearchFromHub());\n sel.setFinder(getFinder());\n getHub().select(sel);\n }",
"private void searchImages()\n {\n searchWeb = false;\n search();\n }",
"public SearchResults() {\n\t\tPageFactory.initElements(driver, this);\n\t}",
"@PostMapping(\"/search\")\n public String searchBookByName(@RequestParam(\"searchName\") String searchName, Model model) {\n Page<Book> books = bookService.getBookByNameContaining(searchName, PageRequest.of(0, 10));\n List<Integer> pageList = IntStream.rangeClosed(1, books.getTotalPages()).boxed().collect(Collectors.toList());\n if (books == null) {\n return \"redirect:/1\";\n }\n model.addAttribute(\"searchName\", searchName);\n model.addAttribute(\"bookSearch\", books);\n model.addAttribute(\"pageList\", pageList);\n return \"searchBookByName\";\n }",
"public String SearchContent()\n\t{\n\t\tSystem.out.println(\"Content:\" + Content);\n\t\tluc = new Lucene_fuction();\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tServletContext servletContext = ServletActionContext.getServletContext();\n\t\trequest.getSession();\n\t\tHttpServletResponse response = ServletActionContext.getResponse();\n\t\t// if the tag is empty\n\t\t\n\t\t\tArrayList<Picture> PicList = new ArrayList<>();\n\t\t\tPicList = luc.queryIndex_Content(Content);\n\t\t\trequest.setAttribute(\"PictureList\", PicList);\n\t\t\treturn \"Content_Result\";\n\t}",
"SearchResultCompany search(String keywords);",
"@Override\n public SearchResult search_item(String keyword, int page, int rows , int search_type) throws Exception{\n return null;\n }",
"protected void showSearch() {\n \t\tIntent search = new Intent(this, SearchActivity.class);\t\t\t\t\n \t\tthis.startActivity(search);\n \t}",
"Page<T> search(Pageable pageable, String query);",
"SearchResponse search(SearchRequest searchRequest) throws IOException;",
"public Page<Search> getAll(Integer page) {\r\n\t\tUser user = userService.getLoggedUser();\r\n\t\treturn searchRepository.findAllByUser(user, user.getUserPreferences().getSearchCount().getPageable(page));\r\n\t}",
"public void run()\r\n {\n\ttopLevelSearch=FIND_TOP_LEVEL_PAGES;\r\n\ttopLevelPages=new Vector();\r\n\tnextLevelPages=new Vector();\r\n \r\n\t// Check to see if a proxy is being used. If so then we use IP Address rather than host name.\r\n\tproxyDetected=detectProxyServer();\r\n\t \r\n\tstartSearch();\r\n \r\n\tapp.enableButtons();\r\n\tapp.abort.disable();\r\n \r\n\tif(hitsFound == 0 && pageOpened == true)\r\n\t app.statusArea.setText(\"No Matches Found\");\r\n else if(hitsFound==1)\r\n\t app.statusArea.setText(hitsFound+\" Match Found\");\r\n else app.statusArea.setText(hitsFound+\" Matches Found\");\r\n }",
"public void search(String url, String searchWord)\n {\n while(this.pagesVisited.size() < MAX_PAGES_TO_SEARCH)\n {\n String currentUrl;\n SpiderLeg leg = new SpiderLeg();\n if(this.pagesToVisit.isEmpty())\n {\n currentUrl = url;\n this.pagesVisited.add(url);\n }\n else\n {\n currentUrl = this.nextUrl();\n }\n leg.crawl(currentUrl); // Lots of stuff happening here. Look at the crawl method in\n // SpiderLeg\n boolean success = leg.searchForWord(searchWord);\n if(success)\n {\n System.out.println(String.format(\"**Success** Word %s found at %s\", searchWord, currentUrl));\n break;\n }\n this.pagesToVisit.addAll(leg.getLinks());\n }\n System.out.println(\"\\n**Done** Visited \" + this.pagesVisited.size() + \" web page(s)\");\n }",
"public SearchPage searchBtnClick(String cityName ) throws InterruptedException, IOException\t{\n\t\n\t//WebDriverWait wait =new WebDriverWait(driver,30);\n\t \n\tWebElement myDynamicElement = (new WebDriverWait(driver, 60).until(ExpectedConditions.presenceOfElementLocated(searchBtn)));\n\t\n\t\n\t\n\tmyDynamicElement.click();\n\t\n\tThread.sleep(4000);\n\t\t\n\t\n\t/*\n\t * Melchi Search Page navigation\n\t * \n\t * \n\t */\n\t\n\t/*driver.get(\"https://www.indiaproperty.com/searchresults.php?q=\");\n\t \n\t Actions act =new Actions(driver);\n\t\n\tact.sendKeys(Keys.ENTER);*/\n\t\n\t\n\n\t/*\n\t * Existing Search Page navigation\n\t * \n\t * \n\t */\n\t\n\t\n\tdriver.get(\"https://www.indiaproperty.com/searchs/ci=alangudi&pt=allresidential&litype=sale&vm=ltrboqViZ6ufnNrKl%5E~%5ETrxOKkmtfecaWPm9bYydegldPppt7MmK6ni96io7GpWuHSp67qxt6XV%5E~%5ETimLKeX6ejnJ5rXaasYKagX6OrkaRn&frm=15&srchtype=quick-search&f=srch&withapi=2&view=grid\");\n\t\n\t\n\tActions act =new Actions(driver);\n\t\n\tact.sendKeys(Keys.ENTER);\n\treturn new SearchPage(driver,cityName);\n\t\n\n\t\n}",
"@Override\n public SearchResult search_hunter(String keyword, int page, int rows ,int search_type) throws Exception{\n\n return null;\n }",
"private void doSearchRedirect(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String search = request.getParameter(\"search\");\n \n if(search == null || search.trim().isEmpty()) {\n error(\"Recherche invalide\", request, response);\n return;\n }\n \n redirect(String.format(\"./search/%s\", search), \"Recherche en cours ...\",\n request, response);\n }",
"@RequestMapping(value = \"/\", method = RequestMethod.POST)\n\tpublic String search(ModelMap model, @RequestParam int page, @RequestParam String query, @RequestParam int dir) {\n\t\tif (dir > 0) {\n\t\t\tpage++;\n\t\t} else if (dir < 0) {\n\t\t\tpage--;\n\t\t} else {\n\t\t\tpage = 1;\n\t\t}\n\n\t\ttry {\n\t\t\tItems items = service.search(page, query);\n\t\t\tmodel.put(\"items\", items);\n\t\t\tmodel.put(\"page\", page);\n\t\t} catch (IOException e) {\n\t\t\tmodel.put(\"page\", 0);\n\t\t\tmodel.put(\"error\", e.getLocalizedMessage());\n\t\t\tLOGGER.error(e.getLocalizedMessage());\n\t\t} finally {\n\t\t\tmodel.put(\"query\", query);\n\t\t}\n\n\t\treturn \"index\";\n\t}",
"@Test(priority = 0)\n public void test_Search_Results_Appear_Correct() {\n\n //Create Google Search Page object\n searchPage = new SearchPage(driver);\n\n //Search for QA string\n searchPage.searchStringGoogle(\"QA\");\n\n // go the next page\n resultsPage = new ResultsPage(driver);\n\n Assert.assertTrue(resultsPage.getSearchedResult().contains(\"Quality assurance - Wikipedia\"));\n\n }",
"public void search() {\n try {\n for(int i = 0; i < this.queries.size(); i++){\n search(i);\n // in case of error stop\n if(!this.searchOK(i)){\n System.out.println(\"\\t\" + new Date().toString() + \" \" + db + \" Search for rest queries cancelled, because failed for query \" + i + \" : \" + this.queries.get(i));\n break;\n }\n }\n } catch (UnsupportedEncodingException ex) {\n Logger.getLogger(EntrezSearcher.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public interface SearchService {\n\n /**\n * Parameter that is appended to the generated links that contains the positive search terms and phrases of the\n * search expression. For several terms it occurs several times.\n */\n String PARAMETER_SEARCHTERM = \"search.term\";\n\n /**\n * Represents a result of the search consisting of a target page and one or more matching subresources. For use by\n * the search result renderer.\n */\n interface Result {\n\n /** The page which contains matches. */\n @NotNull\n Resource getTarget();\n\n /** The content child of the page which contains matches. */\n @NotNull\n Resource getTargetContent();\n\n /** A link that shows the target, including search terms with {@link #PARAMETER_SEARCHTERM} */\n @NotNull\n String getTargetUrl();\n\n /** The title of the search result. */\n @NotNull\n String getTitle();\n\n /** The score of the search result. */\n Float getScore();\n\n /**\n * One or more descendants of {@link #getTarget()} that potentially match the search expression. Mostly useful\n * for generating excerpts; can contain false positives in some search algorithms.\n */\n @NotNull\n List<Resource> getMatches();\n\n /** The fulltext search expression for which this result was found. */\n @NotNull\n String getSearchExpression();\n\n /**\n * A basic excerpt from the matches that demonstrates the occurrences of the terms from {@link\n * #getSearchExpression()} in this result. Might be empty if not applicable (e.g. if the search terms were found\n * in meta information). If there are several matches, we just give one excerpt. You might want to provide your\n * own implementation for that to accommodate for specific requirements.\n *\n * @return a text with the occurrences of the words marked with HTML tag em .\n */\n @NotNull\n String getExcerpt() throws SearchTermParseException;\n }\n\n /**\n * Fulltext search for resources. The resources are grouped if they are subresources of one target page, as\n * determined by the parameter targetResourceFilter.\n * <p>\n * Limitations: if the searchExpression consists of several search terms (implicitly combined with AND) this finds\n * only resources where a single property matches the whole search condition, i.e., all those terms. If several\n * resources of a page contain different subsets of those terms, the page is not found.\n *\n * @param context The context we use for the search.\n * @param selectors a selector string to determine the right search strategy, e.g. 'page'\n * @param root Optional parameter for the node below which we search.\n * @param searchExpression Mandatory parameter for the fulltext search expression to search for. For the syntax\n * see\n * {@link QueryConditionDsl.QueryConditionBuilder#contains(String)}\n * . It is advisable to avoid using AND and OR.\n * @param searchFilter an optional filter to drop resources to ignore.\n * @return possibly empty list of results\n * @see com.composum.sling.core.mapping.jcr.ResourceFilterMapping\n */\n @NotNull\n List<Result> search(@NotNull BeanContext context, @NotNull String selectors,\n @NotNull String root, @NotNull String searchExpression, @Nullable ResourceFilter searchFilter,\n int offset, @Nullable Integer limit)\n throws RepositoryException, SearchTermParseException;\n\n\n interface LimitedQuery {\n\n /**\n * Executes the query with the given limit; returns a pair of a boolean that is true when we are sure that all\n * results have been found in spite of the limit, and the results themselves.\n */\n Pair<Boolean, List<Result>> execQuery(int matchLimit);\n }\n\n /**\n * Execute the query with raising limit until the required number of results is met. We don't know in advance how\n * large we have to set the limit in the query to get all neccesary results, since each page can have an a priori\n * unknown number of matches. Thus, the query is executed with an estimated limit, and is reexecuted with tripled\n * limit if the number of results is not sufficient and there are more limits.\n *\n * @return up to limit elements of the result list with the offset first elements skipped.\n */\n @NotNull\n List<Result> executeQueryWithRaisingLimits(LimitedQuery limitedQuery, int offset, Integer limit);\n}",
"@RequestMapping(value = \"/search\", method = { RequestMethod.GET })\r\n\tpublic String search(Model model) {\n\t\tList<String> indexFieldNamesForMM = ecoreMetamodelService.getAllIndexTags();\r\n\t\tmodel.addAttribute(\"indexFieldNamesForMM\", indexFieldNamesForMM);\r\n\r\n\t\t// Tags for T. (statics)\r\n\t\t// Get all Transformations tags\r\n\t\tList<String> indexFieldNamesForT = atlTransformationService.getAllIndexTags();\r\n\t\tmodel.addAttribute(\"indexFieldNamesForT\", indexFieldNamesForT);\r\n\r\n\t\t// Tags for M. (dinamics)\r\n\t\t// Get all tags\r\n\t\tList<String> indexFieldNamesForM = modelService.getAllIndexTags();\r\n\r\n\t\t// Remove Metamodels and Transformations tags in order to find out only\r\n\t\t// the model tags.\r\n\t\tindexFieldNamesForM.removeAll(indexFieldNamesForMM);\r\n\t\tindexFieldNamesForM.removeAll(indexFieldNamesForT);\r\n\r\n\t\tmodel.addAttribute(\"indexFieldNamesForM\", indexFieldNamesForM);\r\n\r\n\t\treturn \"public.search\";\r\n\t}",
"List<SearchResult> search(SearchQuery searchQuery);",
"public Show search(String title){\n return super.search(title);\n }",
"@Override\n protected void beforeSearch() {\n index = 0;\n numberOfIterations = 0;\n pageCounter = 0;\n }",
"@Test\r\n\tpublic void searchTestFailure() {\r\n\r\n\t\tString searchKeyword = \"Test Automation\";\r\n\t\tLog.startTestCase(\"Search Test Case\");\r\n\t\tHomePage homePage = new HomePage();\r\n\t\tSearchResultsPage firstPage = homePage.searchText(searchKeyword);\r\n\t\tLog.info(\"Searching for \" + searchKeyword);\r\n\r\n\t\tSearchResultsPage secondPage = firstPage.clickNext();\r\n\t\tAssert.assertEquals(secondPage.countSearchResults(), 5);\r\n\r\n\t}",
"public search() {\n }",
"private void search() {\n \t\tString searchString = m_searchEditText.getText().toString();\n \n \t\t// Remove the refresh if it's scheduled\n \t\tm_handler.removeCallbacks(m_refreshRunnable);\n \t\t\n\t\tif ((searchString != null) && (!searchString.equals(\"\"))) {\n \t\t\tLog.d(TAG, \"Searching string: \\\"\" + searchString + \"\\\"\");\n \n \t\t\t// Save the search string\n \t\t\tm_lastSearch = searchString;\n \n \t\t\t// Disable the Go button to show that the search is in progress\n \t\t\tm_goButton.setEnabled(false);\n \n \t\t\t// Remove the keyboard to better show results\n \t\t\t((InputMethodManager) this\n \t\t\t\t\t.getSystemService(Service.INPUT_METHOD_SERVICE))\n \t\t\t\t\t.hideSoftInputFromWindow(m_searchEditText.getWindowToken(),\n \t\t\t\t\t\t\t0);\n \n \t\t\t// Start the search task\n \t\t\tnew HTTPTask().execute(searchString);\n \t\t\t\n \t\t\t// Schedule the refresh\n \t\t\tm_handler.postDelayed(m_refreshRunnable, REFRESH_DELAY);\n \t\t} else {\n \t\t\tLog.d(TAG, \"Ignoring null or empty search string.\");\n \t\t}\n \t}",
"@Test\n public void testAdvancedSearchResult() throws InterruptedException {\n log.info(\"Go to Homepage \" );\n log.info(\"Click on Advanced Search link in footer \" );\n WebElement advancedSearchButton = driver.findElement(By.partialLinkText(\"Advanced Search\"));\n advancedSearchButton.click();\n WebElement searchCassette = driver.findElement(By.id(\"AdvancedSearchResults\")).findElement(By.tagName(\"input\"));\n WebElement searchButton = driver.findElement(By.id(\"AdvancedSearchResults\")).findElement(By.className(\"btn-standard\"));\n searchCassette.click();\n searchCassette.clear();\n log.info(\"Click in Search Casetter and introduce search term sculpture\" );\n searchCassette.sendKeys(\"sculpture\");\n log.info(\"Click on search Button \" );\n searchButton.click();\n log.info(\"Confirm Adavanced Search Page by keywords=sculpture is displayed in browser\" );\n assertTrue(driver.getCurrentUrl().contains(\"keywords=sculpture\"));\n }",
"public IScapSyncSearchPage[] getPages();",
"public SOASearchPage(String title) {\r\n\t\tsuper(title);\r\n\t}",
"public void clickSearch() {\n\t\twaitForDocumentReady(5);\n\t\tlog.debug(\"Clicking on search button\");\n\t\tclickOn(search_button, 20);\n\t\tlog.info(\"Clicked on search button\");\n\t\tlogger.log(Status.INFO, \"Search for cruise completed\");\n\t\t\n\t}",
"private void searchDisplay()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------ Search Menu ----------------\");\r\n System.out.println(\"(1) By Registration Number\");\r\n System.out.println(\"(2) By Car Make and Car Model\");\r\n System.out.println(\"(3) By Age\");\r\n System.out.println(\"(4) By Price (range)\");\r\n System.out.println(\"(5) Back to Main Menu\");\r\n }",
"Page<Tbc_analises_componente> search(String query, Pageable pageable);",
"@Event(value = R.id.search_Layout)\n\t\tprivate void search_relativeClick(View v){\n\t\t\tif(title != null) {\n\t\t\t\tkeywordEt.setText(title);\n\t\t\t\teditString = title;\n\t\t\t\tpage(title, 104);\n\n\t\t\t}\n\t\t}",
"public void search(String url) throws ParseException {\r\n\t\tSpiderLeg leg = new SpiderLeg();\r\n\t\tif (this.pagesToVisit.isEmpty()) {\r\n\t\t\tthis.pagesToVisit.add(url);\r\n\t\t}\r\n\r\n\t\tfor (Iterator iterator = pagesToVisit.iterator(); iterator.hasNext();) {\r\n\t\t\tString page = (String) iterator.next();\r\n\t\t\tleg.crawl(page);\r\n\t\t\tthis.pagesToVisit.addAll(leg.getPageLinks());\r\n\t\t\tthis.reviewPagesToVisit.addAll(leg.getReviewLinks());\r\n\t\t\tthis.pagesVisited.add(page);\r\n\t\t}\r\n\r\n\t\tleg.getReviewContent(this.reviewPagesToVisit);\r\n\t\tSystem.out.println(\"\\n**Done** Visited \" + this.pagesVisited.size()\r\n\t\t\t\t+ \" web page(s)\");\r\n\t}",
"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}",
"void searchStarted (Search search);",
"Page<ExamPackage> searchList(int pageNo, int pageSize, Sort sort);",
"public interface SearchResult\n{\n /**\n * Title of search result item.\n * \n * @return String title\n */\n String getTitle();\n /**\n * Name of search result item.\n * \n * @return String title\n */\n String getName();\n /**\n * Select the link of the search result item.\n * \n * @return true if link found and selected\n */\n HtmlPage clickLink();\n /**\n * Verify if folder or not, true if search row represent\n * a folder.\n * \n * @return boolean true if search result is of folder\n */\n boolean isFolder();\n \n /**\n * Date of search result item.\n * \n * @return String Date\n */\n \n String getDate();\n \n /**\n * Site of search result item.\n * \n * @return String Site\n */\n \n String getSite();\n \n /**\n * Select the site link of the search result item.\n * \n * @return true if link found and selected\n */\n HtmlPage clickSiteLink();\n \n /**\n * Select the Date link of the search result item.\n * \n * @return true if link found and selected\n */\n \n\t HtmlPage clickDateLink();\n\t \n\t /**\n * Actions of search result item.\n * \n * @return enum ActionSet\n */\n\t ActionsSet getActions();\n\n /**\n * Method to click on content path in the details section\n *\n * @return SharePage\n */\n public HtmlPage clickContentPath();\n\n /**\n * Method to get thumbnail url\n *\n * @return String\n */\n public String getThumbnailUrl();\n\n /**\n * Method to get preview url\n *\n * @return String\n */\n public String getPreViewUrl();\n\n /**\n * Method to get thumbnail of element\n *\n * @return String\n */\n public String getThumbnail();\n\n /**\n * Method to click on Download icon for the element\n */\n public void clickOnDownloadIcon();\n\n /**\n * Select the site link of the search result item.\n *\n * @return true if link found and selected\n */\n HtmlPage clickSiteName();\n\t \n\t/**\n * Select the Image link of the search result item.\n * \n * @return PreViewPopUpPage if link found and selected\n */\n\tPreViewPopUpPage clickImageLink();\n\n\tHtmlPage selectItemCheckBox();\n\n\tboolean isItemCheckBoxSelected();\n\t\n}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n try {\n DigitalDAO digitalDAO = new DigitalDAOImpl();\n //get the top of the latest digitals\n List<Digital> top6RecentDigitals = digitalDAO.getTopDigital(6);\n\n //begin of get txtSearch and pageRow\n String txtSearch = request.getParameter(\"txtSearch\").trim();\n String indexPageFromRequest = request.getParameter(\"txtPage\");\n request.setAttribute(\"textSearch\", txtSearch);\n indexPageFromRequest = (indexPageFromRequest == null)\n ? \"1\" : indexPageFromRequest;\n int pageIndex = 0;\n //case control when index page is not numeric\n try {\n pageIndex = Integer.parseInt(indexPageFromRequest);\n } catch (Exception e) {\n pageIndex = -1;\n }\n //end of get txtSearch and pageRow\n\n //number of digital on a page\n int pageSize = 3;\n //number of result search\n int numberOfSearchResult = digitalDAO.getNumberOfSearchResult(txtSearch);\n //maximum of page index\n int maxPage = numberOfSearchResult / pageSize\n + (numberOfSearchResult % pageSize > 0 ? 1 : 0);\n //page index existed then get corresponding degital else return massage\n if (pageIndex <= maxPage && pageIndex != -1) {\n List<Digital> listResultSearch = digitalDAO.\n searchByTitleAndPagging(pageIndex, pageSize, txtSearch);\n for (Digital digital : listResultSearch) {\n String title = digital.getTitle().toUpperCase();\n String titleRoot = digital.getTitle();\n String result = digital.getTitle();\n List<String> listTxtSearch = new ArrayList<>();\n while (title.contains(txtSearch.toUpperCase())) {\n int indexStart = title.indexOf(txtSearch.toUpperCase());\n int indexEnd = indexStart + txtSearch.length();\n String convertText = titleRoot.substring(indexStart, indexEnd);\n if(!listTxtSearch.contains(convertText)){\n listTxtSearch.add(convertText);\n }\n title = title.substring(indexEnd);\n titleRoot = titleRoot.substring(indexEnd);\n }\n for (String string : listTxtSearch) {\n result = result.replaceAll(string, \"<span class='highlightText'>\" + string + \"</span>\");\n }\n\n digital.setTitle(result);\n }\n request.setAttribute(\"listResultSearch\", listResultSearch);\n request.setAttribute(\"maxPage\", maxPage);\n } else {\n request.setAttribute(\"message\", \"This page not found\");\n }\n\n request.setAttribute(\"pageIndex\", pageIndex);\n request.setAttribute(\"shortDes\", top6RecentDigitals.get(0)\n .getShortDes());\n //store text search\n request.setAttribute(\"txtSearch\", txtSearch);\n //get the most recent digital\n request.setAttribute(\"mostRecentNew\", top6RecentDigitals.get(0));\n //store number of results search\n request.setAttribute(\"numberOfResult\", numberOfSearchResult);\n //get top5 next news have time post is most recent\n top6RecentDigitals.remove(0);\n request.setAttribute(\"top5MostRecentNew\", top6RecentDigitals);\n //send data for search page\n request.getRequestDispatcher(\"SearchResultPage.jsp\").forward(request, response);\n\n } catch (Exception ex) {\n request.setAttribute(\"exceptionMessage\", \"An error occurred while searching \");\n request.getRequestDispatcher(\"Error.jsp\").forward(request, response);\n }\n }",
"public void setSearchPagePath(String pagePath) {\r\n this.searchPagePath = pagePath;\r\n }",
"@Test\r\n\tpublic void getSearchPage() throws IOException {\r\n\t\topen(\"https://www.google.com\");\r\n\t\tWebElement element = driver.findElement(By.name(\"q\"));\r\n\t\tassertNotNull(\"Testing driver works\", element);\r\n\t\tgenfilesMd();\r\n\t}",
"private void search(SearchRequest request) {\r\n\t\tif(request == null)return;\r\n\t\tList<Record> results = handler.search(request);\r\n\t\tlist.show(results);\r\n\t\tpanInfo.setNumRec(results.size());\r\n\t\tpanInfo.setTotalAmt(Record.sumBalance(results));\r\n\t}",
"void searchView(String name);",
"protected Document getDocument(String searchString, int page) throws IOException{\n String url = String.format(URL_FORMAT, page);\n\n String referrer = \"https://hh.ru/search/vacancy?text=java\";\n String myUserAgent = \"Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36\";\n Document doc = Jsoup.connect(url).userAgent(myUserAgent).referrer(referrer).get();\n return doc;\n }",
"public List<Element> monitorMainPage(){\n\t\tSystem.out.println(\"monitor main Page\");\n\t\tDocument document;\n\t\tList<Element> results = new ArrayList<Element>();\n\t\t// se connecte au site\n\t\tdocument = connectToPage(\"https://www.supremenewyork.com/shop/all\");\n\t\t// liste tous les éléments de la classe inner-article (i.e. tout ce qu'il y a sur la page\n\t\tElements elements = document.getElementsByClass(\"inner-article\");\n\t\tList<Element> articlesGeneral = new ArrayList<Element>();\n\t\tfor (Element element : elements) {\n\t\t\t// extrait chaque link a des articles \n\t\t\tElement link = element.select(\"a\").first();\n\t\t\tarticlesGeneral.add(link);\n\t\t}\n\t\tresults = articlesGeneral;\t\t\n\n\t\treturn results;\n\n\t}",
"public String getSearchUrl();"
] | [
"0.6846706",
"0.6815302",
"0.67849195",
"0.67709506",
"0.6683284",
"0.66650236",
"0.66637826",
"0.6659441",
"0.66070217",
"0.6601231",
"0.6516505",
"0.65012676",
"0.64794064",
"0.6471728",
"0.6457461",
"0.64535797",
"0.64529675",
"0.6424082",
"0.6365857",
"0.633049",
"0.6294516",
"0.6283509",
"0.62744546",
"0.62480766",
"0.6245315",
"0.6227825",
"0.622171",
"0.6219061",
"0.6205588",
"0.62023807",
"0.62023807",
"0.61711293",
"0.61675197",
"0.6115918",
"0.61128366",
"0.6089765",
"0.60862523",
"0.6070092",
"0.6022586",
"0.6004587",
"0.59691715",
"0.59362346",
"0.5925462",
"0.59246683",
"0.5921968",
"0.5921173",
"0.5911586",
"0.59107095",
"0.5900219",
"0.5894358",
"0.5884943",
"0.58845353",
"0.5879057",
"0.58780986",
"0.5875785",
"0.5858717",
"0.5849282",
"0.5845843",
"0.5841469",
"0.5830001",
"0.5819813",
"0.5810183",
"0.5807577",
"0.58001626",
"0.57939404",
"0.5790691",
"0.57838094",
"0.577061",
"0.577",
"0.5763586",
"0.57633513",
"0.5757036",
"0.57561845",
"0.57542473",
"0.5747452",
"0.5746073",
"0.57455695",
"0.57451874",
"0.57450104",
"0.57368433",
"0.57246345",
"0.5722251",
"0.57088196",
"0.57077086",
"0.56957376",
"0.5688725",
"0.5688574",
"0.5688309",
"0.56878006",
"0.5681638",
"0.5676967",
"0.567224",
"0.56690884",
"0.56656075",
"0.56646895",
"0.56641257",
"0.5660929",
"0.56608266",
"0.56574374",
"0.5648664"
] | 0.65073234 | 11 |
Search by sugar (less then or equal) | @GetMapping(value = { "/search/sugar-search" })
public String sugarSearchPage(@RequestParam(value = "sugar", required = false) String sugar, Model model) {
try {
double doubleSugar = Double.valueOf(sugar);
model.addAttribute("search", productRepo.sugarIsLessThanEqualOrderBySugar(doubleSugar));
return "sugar-search";
} catch (Exception e) {
return "sugar-search";
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@In String search();",
"public static void findByAND_OR() {\n\t\tFindIterable<Document> findIterable = collection.find(\r\n\t\t and(eq(\"status\", \"A\"),\r\n\t\t or(lt(\"qty\", 30), regex(\"item\", \"^p\")))\r\n\t\t);\r\n\t\tprint(findIterable);\r\n\t}",
"public static void findByAND() {\n\t\tFindIterable<Document> findIterable = collection.find(and(eq(\"status\", \"A\"), lt(\"qty\", 30)));\r\n\t\tprint(findIterable);\r\n\t}",
"void compareSearch();",
"private boolean searchCondition(String searched, String actual) {\n return actual.toLowerCase().contains(searched.toLowerCase());\n }",
"private void search(Object value)\r\n\t\t{\n\r\n\t\t}",
"public static void findByOR() {\n\t\tFindIterable<Document> findIterable = collection.find(or(eq(\"status\", \"A\"), lt(\"qty\", 30)));\r\n\t\tprint(findIterable);\r\n\t}",
"public QueryElement addLowerEqualsThen(String property, Object value);",
"Observable<Page<E>> search(C criteria);",
"public ExpressionSearch and(Search srch)\n\t{\n\t\treturn new ExpressionSearch(true).addOps(this, srch);\n\t}",
"Condition lessThanOrEqualTo(QueryParameter parameter, Object x);",
"boolean hasSearchValue();",
"@Query(\"SELECT entity FROM Clientes entity WHERE (:id is null OR entity.id = :id) AND (:nome is null OR entity.nome like concat('%',:nome,'%')) AND (:negocio is null OR entity.negocio like concat('%',:negocio,'%')) AND (:sigla is null OR entity.sigla like concat('%',:sigla,'%')) AND (:status is null OR entity.status like concat('%',:status,'%'))\")\n public Page<Clientes> specificSearch(@Param(value=\"id\") java.lang.Double id, @Param(value=\"nome\") java.lang.String nome, @Param(value=\"negocio\") java.lang.String negocio, @Param(value=\"sigla\") java.lang.String sigla, @Param(value=\"status\") java.lang.String status, Pageable pageable);",
"List<Cemetery> search(String query);",
"public void searchEither(String search)\n {\n // Sets the input to be all lower case\n search = search.toLowerCase();\n r.searchEither(search);\n }",
"@Query(\"SELECT entity FROM VwBancos entity WHERE entity.clientes.id = :id AND (:id is null OR entity.id = :id) AND (:nome is null OR entity.nome like concat('%',:nome,'%'))\")\n public Page<VwBancos> findVwBancosSpecificSearch(@Param(value=\"id\") java.lang.Double id, @Param(value=\"nome\") java.lang.String nome, Pageable pageable);",
"Condition like(QueryParameter parameter, String pattern);",
"public void searchFunction1() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView_recylce.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }",
"public Query lessThanEqualTo(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.LESSTHANEQUAL), key, value);\n return this;\n }",
"public List<Product> search(String searchString);",
"PersonFinder whereFirstNameStartsWith(String prefix);",
"abstract public void search();",
"@Query(\n \"Select t FROM Ticket t WHERE t.user.id = :userId \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType1(@Param(\"userId\") Long userId,@Param(\"searchTerm\") String searchTerm,Pageable pageable);",
"default E find(String key, Object value) {\n\t\tSearchCritera searchCritera = new SearchCritera(key, value);\n\t\treturn find(() -> searchCritera);\n\t}",
"public List<User> searchUser(String searchValue);",
"java.lang.String getSearchValue();",
"@Query(\n \"Select t FROM Ticket t WHERE t.user.id = :userId \"\n + \"AND (t.isOpen = :isOpen) \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType5(@Param(\"userId\") Long userId, @Param(\"isOpen\") Boolean isOpen, @Param(\"searchTerm\") String searchTerm,Pageable pageable);",
"Search getSearch();",
"Condition lessThan(QueryParameter parameter, Object x);",
"public void searchFunction() {\n textField_Search.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n tableView.setPredicate(new Predicate<TreeItem<EntryProperty>>() {\n @Override\n public boolean test(TreeItem<EntryProperty> entryTreeItem) {\n Boolean flag = entryTreeItem.getValue().titleProperty().getValue().toLowerCase().contains(newValue.toLowerCase()) ||\n entryTreeItem.getValue().usernameProperty().getValue().toLowerCase().contains(newValue.toLowerCase());\n return flag;\n }\n });\n }\n });\n }",
"boolean getSearchable();",
"@Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);",
"@Query(\"SELECT entity FROM Clientes entity WHERE entity.nome like concat('%',coalesce(:search,''),'%') OR entity.negocio like concat('%',coalesce(:search,''),'%') OR entity.sigla like concat('%',coalesce(:search,''),'%') OR entity.status like concat('%',coalesce(:search,''),'%')\")\n public Page<Clientes> generalSearch(@Param(value=\"search\") java.lang.String search, Pageable pageable);",
"public ExpressionSearch or(Search srch)\n\t{\n\t\treturn new ExpressionSearch(false).addOps(this, srch);\n\t}",
"PersonFinder whereNameStartsWith(String prefix);",
"List<DataTerm> search(String searchTerm);",
"@Query(\n \"Select t FROM Ticket t WHERE t.responsible IS NOT NULL \"\n + \"AND (t.isOpen = :isOpen) \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType4(@Param(\"isOpen\") Boolean isOpen, @Param(\"searchTerm\") String searchTerm,Pageable pageable);",
"Condition between(QueryParameter parameter, Object x, Object y);",
"@Query(\"select i from Item i where lower(i.name) like lower(?1)\")\n Page<Item> searchInNames(String namePart, Pageable pageable);",
"String search(int key);",
"List<Corretor> search(String query);",
"public List<Ve> searchVe(String maSearch);",
"@Query(\"SELECT i FROM Item i WHERE \"+\n \"upper(i.name) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.number) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.waybill) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.factory) LIKE concat('%',upper(?1),'%')\")\n Page<Item> filterAll(String substring, Pageable pageable);",
"public String getAndOr();",
"public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }",
"public abstract boolean getSensitiveSearch();",
"private static List<SearchData> booleanSearchWord(Query query, Indexer si) {\n Tokenizer tkn = new SimpleTokenizer();\n tkn.tokenize(query.getStr(), \"[a-zA-Z]{3,}\", true, true);\n List<SearchData> searchList = new ArrayList<>();\n LinkedList<Token> wordsList = tkn.getTokens();\n Iterator<Token> wordsIt = wordsList.iterator();\n HashMap<String, LinkedList<Posting>> indexer = si.getIndexer();\n int idx;\n SearchData searched_doc;\n\n while (wordsIt.hasNext()) {\n String word = wordsIt.next().getSequence();\n if (indexer.containsKey(word)) {\n\n LinkedList<Posting> posting = indexer.get(word);\n\n for (Posting pst : posting) {\n\n SearchData sd = new SearchData(query, pst.getDocId());\n\n if (!searchList.contains(sd)) {\n sd.setScore(1);\n searchList.add(sd);\n } else {\n idx = searchList.indexOf(sd);\n searched_doc = searchList.get(idx);\n searched_doc.setScore(searched_doc.getScore() + 1);\n }\n }\n\n }\n\n\n }\n\n Collections.sort(searchList);\n\n return searchList;\n }",
"void search();",
"void search();",
"List<Employee> findByNameContaining(String keyword, Sort sort);",
"public Criteria andStrLessThanOrEqualToColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"str <= \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"@java.lang.Override\n public boolean hasSearch() {\n return inputSourceCase_ == 10;\n }",
"public abstract S getSearch();",
"List<TypePatientPropertyCondition> search(String query);",
"@Query(\"SELECT entity FROM VwBancos entity WHERE entity.clientes.id = :id AND (entity.nome like concat('%',coalesce(:search,''),'%'))\")\n public Page<VwBancos> findVwBancosGeneralSearch(@Param(value=\"search\") java.lang.String search, @Param(value=\"id\") java.lang.Double id, Pageable pageable);",
"private void searchFunction() {\n\t\t\r\n\t}",
"public Query startsWith(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.REGEX), key, \"^\" + value);\n return this;\n }",
"public void search() {\r\n \t\r\n }",
"public QbWhere where();",
"Customer search(String login);",
"public interface OrdineRepository extends JpaRepository<Ordine,Long> {\n\n //Ricerca ordini associati ad un determinato cliente\n @Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);\n}",
"@java.lang.Override\n public boolean hasSearch() {\n return inputSourceCase_ == 10;\n }",
"@Query(\"select i from Item i where lower(i.name) like lower(:namePart)\")\n List<Item> searchInNames(@Param(\"namePart\") String namePart);",
"public ExpressionSearch exp(boolean and)\n\t\t{\n\t\t\treturn new ExpressionSearch(and);\n\t\t}",
"abstract List<String> filterByStartingWithA();",
"@Test\n public void testSearchFilter_WithoutAddedSearchBase_WithoutParensInQuery_WithParensInParam() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"(samaccountname=mary.olowu)\");\n request.setParameters(parameters);\n\n BridgeError unexpectedError = null;\n RecordList list = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }",
"private void search(String product) {\n // ..\n }",
"List<Account> findAccountByAgeLessThanEqual(Integer age);",
"public void addFilterLessThanOrEqual(String column, Object value) {\n controlRelationAndAddToList(criterionList, Restrictions.le(trimColumn(column), value), column);\n }",
"@Test\n public void testSearchFilter_WithoutAddedSearchBase_WithParens() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"(<%=parameter[\\\"Search String\\\"]%>)\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n BridgeError unexpectedError = null;\n RecordList list = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n unexpectedError = e;\n }\n\n assertNull(unexpectedError);\n assertTrue(list.getRecords().size() > 0);\n }",
"@Test\n public void testSearchFilter_WithoutAddedSearchBase_WithoutParensInQuery_WithoutParensInParam() {\n BridgeRequest request = new BridgeRequest();\n\n // Add the fields\n List<String> fields = new ArrayList<>();\n fields.add(\"name\");\n fields.add(\"sn\");\n request.setFields(fields);\n\n // Set the Structure\n // This gets appended to the filter as (objectClass=STRUCTURE)\n request.setStructure(\"User\");\n\n // Set the Query\n request.setQuery(\"<%=parameter[\\\"Search String\\\"]%>\");\n\n // Set the Parameters to be replaced in the Query\n Map parameters = new HashMap();\n parameters.put(\"Search String\", \"samaccountname=mary.olowu\");\n request.setParameters(parameters);\n\n BridgeError expectedError = null;\n RecordList list = null;\n try {\n list = getAdapter().search(request);\n } catch (BridgeError e) {\n expectedError = e;\n }\n\n assertNotNull(expectedError);\n }",
"public String getCaseInsensitiveLike(){\n \t\treturn \"like\";\n \t}",
"public Criteria andStrLessThanColumn(SaleClassifyGood.Column column) {\n addCriterion(new StringBuilder(\"str < \").append(column.getEscapedColumnName()).toString());\n return (Criteria) this;\n }",
"public static void main (String[] args) {\n EntityQuery query = new EntityQuery();\n Harvestable res = new OaiPmhResource();\n query.setFilter(\"test\", res);\n query.setAcl(\"diku\");\n query.setStartsWith(\"cf\",\"name\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"a\"));\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"x\"));\n\n query = new EntityQuery();\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"b\"));\n query.setQuery(\"usedBy=*library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"c\"));\n query.setQuery(\"(=library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"d\"));\n query.setQuery(\"usedBy=\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"e\"));\n query.setQuery(\"(usedBy!=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"f\"));\n query.setQuery(\"(usedBy==library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"g\"));\n query.setQuery(\"(usedBy===library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"h\"));\n }",
"public E find(MongoDBCritera critera);",
"List<User> findByfnameContaining(String search);",
"static Predicate<Beer> priceRangeQuery(Float priceLowest, Float priceHighest) {\n return b -> b.getPrice() >= priceLowest && b.getPrice() <= priceHighest;\n }",
"public abstract Search defaultSearch(StringBuilder sb);",
"abstract List<V> rangeSearch(K key, String comparator);",
"void searchProbed (Search search);",
"static BiPredicate<SibillaValue,SibillaValue> getRelationOperator(String op) {\n if (op.equals(\"<\")) { return (x,y) -> x.doubleOf()<y.doubleOf(); }\n if (op.equals(\"<=\")) { return (x,y) -> x.doubleOf()<=y.doubleOf(); }\n if (op.equals(\"==\")) { return (x,y) -> x.doubleOf()==y.doubleOf(); }\n if (op.equals(\"!=\")) { return (x,y) -> !x.equals(y); }\n if (op.equals(\">\")) { return (x,y) -> x.doubleOf()>y.doubleOf(); }\n if (op.equals(\">=\")) { return (x,y) -> x.doubleOf()>=y.doubleOf(); }\n return (x,y) -> false;\n }",
"@Test\n\tpublic void orGrepTest() throws Exception {\n\t\t// | for 'insane' and 'mistress'\n\t\tHashSet<String> grep1 = loadGrepResults(\"mistress\");\n\t\tHashSet<String> grepFound = loadGrepResults(\"insane\");\n\t\tgrepFound.addAll(grep1);\n\n\t\tCollection<Page> index = queryTest.query(\"mistress | insane\");\n\t\tHashSet<String> indexFound = new HashSet<String>();\n\n\t\tfor (Page p : index)\n\t\t\tindexFound.add(p.getURL().getPath().toLowerCase());\n\n\t\tassertEquals(indexFound, grepFound);\n\n\t}",
"public Boolean find(String searchThis) {\n try{\n Statement statement = con.createStatement();\n ResultSet resultSet = statement.executeQuery(searchThis);\n int i = 0;\n while (resultSet.next()) {\n i++;\n if (i >= 1) {\n break;\n }\n }\n return i == 0 ? false : true;\n }\n catch (SQLException e) {\n //e.printStackTrace();\n }\n return false;\n }",
"public QueryElement addLowerThen(String property, Object value);",
"@Query(\"SELECT s FROM Store s WHERE s.storename LIKE %?1%\" + \" OR CONCAT(s.address, '') LIKE %?1%\")\n\tpublic List<Store> search(String keyword);",
"public List<Produto> findByNomeStartingWithIgnoreCaseAndAtivoEquals(String nome, boolean ativo);",
"List<SearchResult> search(SearchQuery searchQuery);",
"public synchronized static Criteria pesquisarLikeGoogle(Criteria consulta,String variavel, String diferenciador){\n\t\tStringTokenizer tokenizer = new StringTokenizer(diferenciador);\n\t\twhile(tokenizer.hasMoreTokens()){\n\t\t\tString token = \"%\"+tokenizer.nextToken()+\"%\";\n\t\t\tconsulta.add(Expression.like(variavel, token).ignoreCase());\n\t\t}\t\n\t\treturn consulta;\t\t\n\t}",
"public abstract List<CustomerType> findCustomerTypebyCustomerTypeNumber(String searchString);",
"public String getANDClause()\n {\n StringBuilder builder = new StringBuilder();\n\n String colName;\n String term;\n\n for (int i = 0; i < columnNames.length; i++)\n {\n colName = columnNames[i];\n\n String[] terms = Spans.prepareStrings(keywords);\n\n builder.append(\"(\");\n for(int j = 0; j < terms.length; j++)\n {\n term = terms[j];\n builder.append(colName + \" LIKE '%\"+ term + \"%'\" );\n\n if (j != terms.length - 1)\n {\n builder.append(\" AND \");\n }\n }\n builder.append(\")\");\n\n if (i != columnNames.length - 1)\n {\n builder.append(\" OR \");\n }\n }\n\n return builder.toString();\n }",
"public boolean search(String word)\n {\n return true;\n }",
"public boolean query(int a, int b) {\n\t\treturn find(a) == find(b);\n }",
"public void search( final String haystack ) {\n search( mNeedle, haystack );\n }",
"public abstract QueryElement addOrLike(String property, Object value);",
"public Query lessThan(String key, Object value) {\n Preconditions.checkNotNull(key);\n builder.addFilter(builder.getOperator(QueryFilterBuilder.Operators.LESSTHAN), key, value);\n return this;\n }",
"abstract public boolean performSearch();",
"public abstract QueryElement addLike(String property, Object value);",
"List<SongVO> searchSong(String searchText) throws Exception;",
"List<T> searchByExample(T entity);",
"List<Room> selectRoomListWithSearchCondition(@Param(\"condition\") String condition);",
"List<OwnerOperatorDTO> search(String query);"
] | [
"0.6236383",
"0.6199795",
"0.599674",
"0.59412193",
"0.5716803",
"0.56751674",
"0.56185526",
"0.5612022",
"0.55960006",
"0.5573938",
"0.5557571",
"0.5540995",
"0.5511966",
"0.55065715",
"0.5465426",
"0.54585886",
"0.54523075",
"0.54463434",
"0.54391414",
"0.54301053",
"0.5422838",
"0.53839535",
"0.5380572",
"0.5370188",
"0.53623945",
"0.5355483",
"0.53500843",
"0.5349169",
"0.5346147",
"0.5342311",
"0.5341451",
"0.53387314",
"0.53347856",
"0.5323584",
"0.5322083",
"0.53057384",
"0.52977794",
"0.5287914",
"0.5276729",
"0.52523005",
"0.52471",
"0.52446485",
"0.52365696",
"0.52221805",
"0.521112",
"0.52095854",
"0.5182819",
"0.51777333",
"0.51777333",
"0.51755637",
"0.51629883",
"0.5153537",
"0.5133982",
"0.5122574",
"0.511399",
"0.51127875",
"0.5111927",
"0.5103549",
"0.5095129",
"0.50886077",
"0.5086662",
"0.50799024",
"0.507433",
"0.5070113",
"0.50662136",
"0.5063983",
"0.50597537",
"0.5055757",
"0.50540394",
"0.50512123",
"0.50416875",
"0.50390077",
"0.50312555",
"0.5030833",
"0.5024798",
"0.5022168",
"0.5020856",
"0.50205886",
"0.5017249",
"0.50148153",
"0.5012957",
"0.50099397",
"0.50058603",
"0.50028604",
"0.4997844",
"0.49862486",
"0.49826223",
"0.4978176",
"0.49768898",
"0.497195",
"0.49395528",
"0.4939309",
"0.49337488",
"0.49257222",
"0.49235183",
"0.4920646",
"0.4919504",
"0.49191692",
"0.49190173",
"0.4916431",
"0.49163845"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.